joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424550
Capabilities:
Get socket status

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x210
push ebx
push ebp
xor ebx, ebx
push esi
push edi
cmp eax, ebx
mov edi, ecx
mov ebp, eax
jbe 0x42464a
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 4]
mov ecx, 1
cmp edx, ebx
mov dword [esp + 0x120], eax
mov dword [esp + 0x11c], ecx
mov dword [esp + 0x18], ebx
je 0x424595
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push ebx
lea ecx, [esp + 0x124]
push edx
inc eax
push ecx
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0x32
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, ebx
je 0x42456c
jl 0x424684
cmp eax, 2
jg 0x424684
mov eax, dword [edi + 4]
lea edx, [esp + 0x18]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4245f0
mov ecx, edi
call fcn.004243e0
test eax, eax
je 0x424675
mov edx, dword [edi + 4]
lea ecx, [esp + 0x11c]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x424642
mov eax, dword [esp + 0x224]
push ebp
push eax
mov ecx, edi
call fcn.00424500
mov esi, eax
cmp esi, ebx
jle 0x42462f
mov ecx, dword [esp + 0x224]
add ecx, esi
sub ebp, esi
mov dword [esp + 0x224], ecx
jmp 0x424642
jge 0x42463e
call fcn.00431ff3
cmp dword [eax], 0x2733
jne 0x42465a
cmp esi, ebx
je 0x424661
cmp ebp, ebx
ja 0x42456c
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x210
ret 8
push str.D:_vncwinvncVSocket.cpp:_tsocket_error_n
jmp 0x424666
push str.D:_vncwinvncVSocket.cpp:_tzero_bytes_read_n
push 4
push 0x44b018
call fcn.004024a0
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x210
ret 8
push str.D:_vncwinvncVSocket.cpp:_tsocket_error_in_select___n
jmp 0x424666
Function at 0x424c90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43b084
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x31c
push 0
push 0x100
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
lea ecx, [esp]
call fcn.00418d80
lea ecx, [esp]
mov dword [esp + 0x324], 0
call fcn.00418da0
test eax, eax
jne 0x424d18
push eax
mov eax, dword [0x44890c]
push eax
push str.Another_instance_of_WinVNC_is_already_running
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp]
mov dword [esp + 0x324], 0xffffffff
call fcn.00418d90
xor eax, eax
mov ecx, dword [esp + 0x31c]
mov dword fs:[0], ecx
add esp, 0x328
ret
push ebx
push ebp
push esi
lea ecx, [esp + 0x30]
call fcn.0041ee50
mov ecx, dword [0x44890c]
mov bl, 1
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0x334], bl
call fcn.00420c80
push str.D:_vncwinvncWinVNC.cpp:_tserver_created_ok_n
push 0
push 0x44b018
call fcn.004024a0
push 0x27c
call fcn.004305ac
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x330], 2
je 0x424d7b
lea edx, [esp + 0x30]
mov ecx, eax
push edx
call fcn.0041b550
mov esi, eax
jmp 0x424d7d
xor esi, esi
test esi, esi
mov byte [esp + 0x330], bl
jne 0x424da2
push str.D:_vncwinvncWinVNC.cpp:_tfailed_to_create_tray_menu_n
push esi
push 0x44b018
call fcn.004024a0
add esp, 0xc
push esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ebp, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call ebp
test eax, eax
je 0x424e12
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ecx, dword [esp + 0x1c]
push ecx
push str.D:_vncwinvncWinVNC.cpp:_tmessage__d_received_n
push 9
push 0x44b018
call fcn.004024a0
add esp, 0x10
lea edx, [esp + 0x18]
mov ecx, 0x44bd98
push edx
call fcn.00418310
test eax, eax
jne 0x424e00
lea eax, [esp + 0x18]
push eax
call edi
lea ecx, [esp + 0x18]
push ecx
call ebx
push 0
push 0
lea edx, [esp + 0x20]
push 0
push edx
call ebp
test eax, eax
jne 0x424dc6
pop edi
push str.D:_vncwinvncWinVNC.cpp:_tshutting_down_server_n
push 0
push 0x44b018
call fcn.004024a0
add esp, 0xc
test esi, esi
je 0x424e3a
mov ecx, esi
call fcn.0041b760
push esi
call fcn.004304f0
add esp, 4
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
mov byte [esp + 0x330], 0
call fcn.0041f570
lea ecx, [esp + 0xc]
mov dword [esp + 0x330], 0xffffffff
call fcn.00418d90
mov ecx, dword [esp + 0x328]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x328
ret
Function at 0x424f1f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x424f77
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x44aff8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x424f6a
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x424f79
xor eax, eax
pop esi
leave
ret 4

Function at 0x425780
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x43b168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov ecx, edi
mov dword [esp + 0x14], edi
call fcn.00424fd0
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], 0
test eax, eax
je 0x4257d0
mov al, byte [esp + 0xb]
lea ecx, [esp + 0xb]
push 0x440428
push ecx
mov byte [esp + 0x13], al
call fcn.00432224
lea edx, [esp + 0xc]
push edx
push 4
push esi
push 0x425450
push 0
push 0
call fcn.0043225e
mov ecx, dword [esp + 0x24]
add esp, 0x18
test eax, eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
jne 0x425810
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x10]
push 0x4402f0
push edx
mov dword [esp + 0x18], eax
call fcn.00432224
mov ecx, dword [esi + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x425838
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x10]
push 0x4402f0
push edx
mov dword [esp + 0x18], eax
call fcn.00432224
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x425860
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
push 0x4402f0
push ecx
mov dword [esp + 0x18], eax
call fcn.00432224
mov ecx, edi
mov dword [esi + 0x1c], 1
call fcn.00424fe0
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4366e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x44a7d8
cmp edx, dword [eax]
je 0x436707
add eax, 8
inc ecx
cmp eax, 0x44a868
jl 0x4366f8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x44a7d8]
jne 0x436835
mov eax, dword [0x44be78]
cmp eax, 1
je 0x43680f
test eax, eax
jne 0x436738
cmp dword [0x44a2d4], 1
je 0x43680f
cmp edx, 0xfc
je 0x436835
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43676f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004379a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00435400
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4367b2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00435400
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43ed70
push edi
call fcn.00430bb0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004379a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004379b0
lea eax, [ebp - 0xa0]
push 0x43ed50
push eax
call fcn.004379b0
push dword [esi + 0x44a7dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004379b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004386ba
add esp, 0x2c
pop edi
jmp 0x436835
lea eax, [ebp + 8]
lea esi, [esi + 0x44a7dc]
push 0
push eax
push dword [esi]
call fcn.00435400
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x872a6d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x108
call fcn.0088dadc
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x8b2a32
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
push 0x108
call fcn.0088dadc
add esp, 4
mov dword [ebp - 8], eax
mov edi, eax
mov esi, 0x8b2a32
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 4]
xor eax, 0x12476359
mov dword [ebp + 4], eax
push eax
mov eax, dword [ebp]
xor eax, 0x97815643
mov dword [ebp], eax
push eax
mov ebx, dword [ebp - 4]
call fcn.00872a4d
mov eax, 0
cmp eax, ecx
jl 0x872b05
push 0x20b
push 0x4011022
push 1
call fcn.0088daf4
add esp, 0xc
add ebx, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov byte [ebx], 0
mov ebx, dword [ebp - 8]
call fcn.00872a4d
mov eax, 0
cmp eax, ecx
jl 0x872b38
push 0x234
push 0x4011022
push 1
call fcn.0088daf4
add esp, 0xc
add ebx, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov byte [ebx], 0
mov eax, dword [ebp - 4]
add eax, 8
mov ecx, 0x100
xor ebx, ebx
sub bl, cl
mov byte [ebx + eax], bl
loop 0x872b4e
push eax
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
mov edi, dword [edx + 4]
add edx, 8
mov esi, dword [ebp - 8]
add esi, 8
mov ecx, 0x100
xor ebx, ebx
cmp ebx, edi
jb 0x872b76
xor ebx, ebx
mov ah, byte [ebx + edx]
mov byte [esi], ah
inc esi
inc ebx
loop 0x872b70
pop edi
xor ebx, ebx
sub esi, 0x100
xor eax, eax
mov ecx, 0x100
mov dl, byte [eax + esi]
add bl, dl
mov dl, byte [eax + edi]
add bl, dl
mov dl, byte [eax + edi]
mov dh, byte [ebx + edi]
mov byte [eax + edi], dh
mov byte [ebx + edi], dl
inc eax
loop 0x872b8f
mov esi, dword [ebp + 8]
mov esi, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0xc], ecx
add esi, 8
push 0x80000301
push 0
push dword [ebp - 0xc]
push 1
mov ebx, 0x1bc
call fcn.0088e9d0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x872beb
push ebx
call fcn.0088dad6
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
add edx, 8
xor eax, eax
xor ebx, ebx
push ecx
movzx ecx, al
inc cl
push edx
mov dh, byte [ecx + edi]
add bl, dh
mov dl, byte [ebx + edi]
mov byte [ecx + edi], dl
mov byte [ebx + edi], dh
add dl, dh
movzx edx, dl
mov dl, byte [edx + edi]
mov cl, byte [eax + esi]
xor cl, dl
pop edx
mov byte [eax + edx], cl
inc eax
pop ecx
loop 0x872c00
push eax
pushfd
mov eax, dword [esp + 8]
xor eax, 0x97815643
mov dword [ebp], eax
mov eax, dword [esp + 0xc]
xor eax, 0x12476359
mov dword [ebp + 4], eax
xchg dword [esp + 4], eax
popfd
pop eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.0088dad6
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
call fcn.0088dad6
add esp, 4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x88f450
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x88f46e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x88f463
pop esi
ret

Function at 0x892b0a
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00892b89
jae 0x892b16
xor ecx, ecx
call fcn.00892b89
jae 0x892b40
xor eax, eax
call fcn.00892b89
jae 0x892b51
mov al, 0x10
call fcn.00892b89
adc al, al
jae 0x892b32
jne 0x892b7e
stosb byte es:[edi], al
jmp 0x892b17
call fcn.00892b95
dec ecx
loop 0x892b5d
mov eax, ebp
call fcn.00892b93
jmp 0x892b7f
lodsb al, byte [esi]
shr eax, 1
je 0x892ba5
adc ecx, 2
mov ebp, eax
jmp 0x892b7f
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00892b93
cmp eax, 0x7d00
jae 0x892b7d
cmp eax, 0x500
jae 0x892b7e
cmp eax, 0x7f
ja 0x892b7f
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x892b17
pop ebp
ret 8

Function at 0x8d0f49
Capabilities:
Check for software breakpoints
Encode data using base64

Disassembly:
push dword [esp + 4]
popfd
lea esp, [esp + 0x10]
call fcn.00a117ba

Function at 0x8f920f
Capabilities:
Check for software breakpoints
Check http status code
Encode data using base64
Parse pe header

Disassembly:
mov eax, dword [eax + 4]
test edi, 0x66113c46
cmp eax, 0x42792bda
add eax, 8
push eax
call fcn.0088dadc
pop ecx
pop esi
mov bx, dx
xchg bx, di
mov edi, eax
movsx ebx, cx
bswap bx
mov bx, 0x331a
rep movsb byte es:[edi], byte [esi]
not bl
sete bl
bswap esi
pop edi
pop esi
movzx cx, ah
stosd dword es:[edi], eax
bswap cx
movsx ebx, bp
cbw
mov ecx, 3
movsx ebx, cx
rep movsd dword es:[edi], dword [esi]
pop eax
sbb edi, edi
pop edi
mov dword [edi], eax
rcl bh, cl
shr ebx, cl
cmp ebp, eax
mov ebx, dword [ebp - 0x70]
clc
push ebx
cmp edi, 0x29803894
jmp 0x8f7f80
add ebx, 4
stc
clc
push ebx
test sp, 0x440e
mov ebx, dword [ebx]
test ebx, ebx
je 0x8f7fa0
push ebx
call fcn.0088dad6
add esp, 4
xchg bl, bl
pop ebx
call fcn.0088dad6
add esp, 4
cwde
not ax
push dword [esp + 0x30]
popfd
lea esp, [esp + 0x40]
call fcn.008d4963
stosd dword es:[edi], eax
movzx ax, cl
lodsd eax, dword [esi]
push esi
clc
cmc
push edi
clc
test sp, bx
test eax, 0x3e303414
test eax, eax
je 0x8ee482
push eax
jmp 0x8ee44e

Function at 0x949aac
Capabilities:
Authenticate hmac

Disassembly:
mov dword [ebp - 4], 0
jmp 0x9d011b
stosd dword es:[edi], eax
lodsd eax, dword [esi]
jmp 0x9a95fa
push ebp
mov ebp, esp
sub esp, 0x98
jmp 0x917af7
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x91624d
stosd dword es:[edi], eax
jmp 0x9ab78d
mov dword [ebp - 0xc], 0
jmp 0x95f2fb
push 8
call fcn.0088dadc
add esp, 4
xchg di, si
movsx edi, cx
mov dword [ebp - 8], eax
movsx esi, bp
mov edi, eax
cbw
mov esi, 0x89223e
movsx ax, dh
lodsd eax, dword [esi]
jmp 0x947869
Function at 0xa129aa
Capabilities:
Authenticate hmac

Disassembly:
push esi
pushfd
mov esi, 0x149741e
call fcn.009a93ea
Function at 0xa3b1b2
Capabilities:
Authenticate hmac
Encode data using base64
Parse pe header

Disassembly:
xor dword [esp + 0xc], 0x1b9e1148
push dword [esp + 8]
popfd
lea esp, [esp + 0x10]
call fcn.009a9a05
push esi
jne 0x94de59
cmc

Function at 0xa45693
Capabilities:
Check for software breakpoints
Check http status code
Encode data using base64
Parse pe header

Disassembly:
push dword [esp + 0x10]
popfd
lea esp, [esp + 0x20]
call fcn.00915b0b

Function at 0xa47071
Capabilities:
Check for software breakpoints
Check http status code
Encode data using base64
Parse pe header

Disassembly:
mov dword [esp + 4], 0xfd091814
pushfd
call fcn.00873bf7
Function at 0x4048a0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004073c4
test esi, esi
jne 0x4048d8
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00407500
jmp 0x4048f6
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004047e4
mov edi, eax
test esi, esi
je 0x4048f6
cmp dword [ebx], 0
je 0x4048f6
dec esi
jmp 0x4048df
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4061f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48b054], 0
je 0x406251
cmp word [0x48b330], 0xd7b2
jne 0x406219
cmp dword [0x48b338], 0
jbe 0x406219
mov eax, 0x48b32c
call dword [0x48b348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40627c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x488030], 0
jne 0x40626d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4063dc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x488034], 0
je 0x406402
mov edx, esi
mov eax, ebx
call dword [0x488034]
jmp 0x406411
mov eax, 8
call fcn.0040452c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x48b055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4063a4
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x40942c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x409593
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004073c4
cmp si, word [0x4887cc]
jb 0x4094c6
cmp si, word [0x4889cc]
ja 0x4094c6
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4094c6
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4887cc]
jae 0x4094a0
mov edi, ebx
dec edi
jmp 0x4094c1
cmp si, word [ebx*8 + 0x4887cc]
jbe 0x4094b0
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4094c1
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4887d0]
call fcn.0040933c
jmp 0x4094c6
cmp edi, dword [ebp - 0xc]
jae 0x40948a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x409575
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409575
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004075c4
push dword [ebp - 0x164]
push 0x4095b0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.004075c4
push dword [ebp - 0x168]
push 0x4095c0
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004075c4
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.0040797c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40959a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004073bc
ret
Function at 0x4095c4
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x4097aa
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x48db5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x48db74]
cmp ax, word [ebp - 2]
jne 0x40961c
mov eax, dword [ebp - 6]
mov edx, 0x48db78
mov ecx, 0x55
call fcn.004075c4
push 0x48db5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409794
push 0x48db5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.004073c4
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40975c
cmp byte [0x48db58], 0
je 0x409712
call dword [0x48db50]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x48db54]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x40970b
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x48db4c]
test al, al
je 0x4096e4
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.0040452c
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x48db4c]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x4096d9
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x4096d5
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x4096c2
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00407570
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40975c
movzx eax, word [ebp - 0x16]
push eax
call dword [0x48db54]
cmp dword [ebp - 0x10], 0
je 0x40970a
mov eax, dword [ebp - 0x10]
call fcn.00404548
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.0040942c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x40975c
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x409741
mov eax, dword [ebp - 6]
mov edx, 0x4097c4
call fcn.004077d8
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.0040942c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.004077d8
mov eax, dword [ebp - 6]
push 0x48db5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x48db74], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00407450
push eax
push 0x48db78
call sub.kernel32.dll_lstrcpynW
push 0x48db5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097b1
lea eax, [ebp - 0x1c]
call fcn.004073b4
ret
Function at 0x4099e8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004073ac
xor eax, eax
push ebp
push 0x409bcd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409a28
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409a42
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407450
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409bb7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409bdc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409ad1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409bdc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409ad1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c10
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409ad1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c44
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409bb7
xor eax, eax
push ebp
push 0x409bb0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004097ec
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409b40
mov eax, dword [ebp - 0x10]
call fcn.0040452c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407570
jmp 0x409b8b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409c84
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409b8b
mov eax, dword [ebp - 0x10]
call fcn.0040452c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409c84
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407570
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409bb7
cmp dword [ebp - 8], 0
je 0x409ba6
mov eax, dword [ebp - 8]
call fcn.00404548
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409bd4
lea eax, [ebp - 4]
call fcn.004073b4
ret