joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4db07c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4db2dc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4db0df
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004dab44
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040da20
cmp al, 1
jne 0x4db0df
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004dae5c
test al, al
je 0x4db26b
cmp dword [ebp - 8], 0
jge 0x4db0fd
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004dab44
mov eax, dword [ebp - 0x210]
call fcn.004046a4
cmp ebx, eax
jge 0x4db147
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004dab44
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x56e9e4]
and eax, 0xff
bt dword [edx], eax
jae 0x4db147
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4db15b
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004db058
cmp ebx, dword [ebp - 8]
je 0x4db25d
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4db187
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403770
and eax, 0x7f
movzx eax, word [eax*2 + 0x56dffc]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4db24a
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403770
and eax, 0x7f
movzx eax, word [eax*2 + 0x56dffc]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00468f50
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403770
and eax, 0x7f
movzx eax, word [eax*2 + 0x56dffc]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00468f50
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4db251
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4db2be
cmp dword [ebp - 8], 0
jge 0x4db276
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004dab44
mov eax, dword [ebp - 0x218]
call fcn.004046a4
cmp eax, dword [ebp - 8]
jg 0x4db2b0
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004dab44
mov eax, dword [ebp - 0x21c]
call fcn.004046a4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004db058
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4db2e3
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404408
ret
Function at 0x502348
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404894
mov eax, dword [ebp - 8]
call fcn.00404894
mov ebx, 0x56fe18
xor eax, eax
push ebp
push 0x502515
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x50252c
push dword [ebp - 8]
push 0x5025bc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404764
mov eax, dword [ebp - 4]
mov edx, 0x5025dc
call fcn.004047f0
jne 0x5023c3
push 0x5025f0
push dword [ebp - 8]
push 0x502670
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404764
mov eax, dword [ebx]
mov eax, dword [eax + 0x3cc]
call fcn.0049cee4
mov eax, dword [0x56e82c]
mov eax, dword [eax]
mov edx, dword [eax + 0x31c]
mov eax, dword [ebx]
mov eax, dword [eax + 0x3cc]
mov ecx, dword [eax]
call dword [ecx + 0x26c]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00404c6c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx]
mov eax, dword [eax + 0x3cc]
call fcn.004b2f50
mov eax, dword [ebx]
mov eax, dword [eax + 0x3cc]
call fcn.0049ced8
mov eax, dword [ebx]
mov edx, dword [eax + 0x3cc]
mov eax, dword [ebx]
mov eax, dword [eax + 0x3c8]
call fcn.0049a9dc
mov eax, dword [ebx]
mov edx, dword [eax + 0x3c8]
mov eax, dword [ebx]
mov eax, dword [eax + 0x3c4]
call fcn.004f19a0
mov eax, dword [ebx]
mov eax, dword [eax + 0x3c4]
call fcn.00462ab0
mov eax, dword [ebx]
mov eax, dword [eax + 0x3c4]
mov eax, dword [eax + 0x2e4]
xor edx, edx
call fcn.004ed67c
mov edx, 0x32
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebx]
mov eax, dword [eax + 0x3c4]
mov eax, dword [eax + 0x2e4]
mov edx, 1
call fcn.004ed67c
mov edx, 0x64
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebx]
mov eax, dword [eax + 0x3c4]
mov eax, dword [eax + 0x2e4]
mov edx, 2
call fcn.004ed67c
mov edx, 0x32
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebx]
mov eax, dword [eax + 0x3c4]
mov eax, dword [eax + 0x2e4]
mov edx, 3
call fcn.004ed67c
mov edx, 0x1e
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebx]
mov eax, dword [eax + 0x3c4]
call fcn.004ef7f8
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x30]
xor edx, edx
call fcn.00492d44
mov edx, dword [eax]
call dword [edx + 0x58]
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50251c
lea eax, [ebp - 0x10]
call fcn.00404af0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404408
ret
Function at 0x53e9d0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404894
mov eax, dword [ebp - 8]
call fcn.00404894
xor eax, eax
push ebp
push 0x53ea53
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.0040447c
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.0040447c
push 0
mov eax, dword [ebp - 0x10]
call fcn.004048a4
push eax
mov eax, dword [ebp - 0xc]
call fcn.004048a4
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53ea5a
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404408
ret
Function at 0x401d97
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x10]
mov edi, dword [eax]
mov ebp, edi
xor ebp, 0x14d
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x14], 0x10
jb 0x401db4
mov esi, dword [esi]
shr edi, 2
xor ebx, ebx
mov dword [esp + 0x18], edi
test edi, edi
je 0x401e11
mov dword [esp + 0x14], edi
mov edi, esi
push ebx
call dword [0x424004]
push 4
lea eax, [esp + 0x14]
push edi
push eax
call fcn.004072a0
imul ecx, dword [esp + 0x1c], 0x5bd1e991
add esp, 0xc
imul ebp, ebp, 0x5bd1e991
add edi, 4
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebp, eax
mov dword [esp + 0x10], eax
sub dword [esp + 0x14], 1
jne 0x401dc7
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
and eax, 3
sub eax, 1
je 0x401e37
sub eax, 1
je 0x401e2d
sub eax, 1
jne 0x401e45
movsx ebx, byte [esi + edi*4 + 2]
shl ebx, 0x10
movsx eax, byte [esi + edi*4 + 1]
shl eax, 8
xor ebx, eax
movsx eax, byte [esi + edi*4]
xor eax, ebx
imul eax, eax, 0x5bd1e991
xor ebp, eax
mov eax, ebp
shr eax, 0xd
xor eax, ebp
imul ecx, eax, 0x5bd1e991
pop edi
pop esi
pop ebp
pop ebx
mov eax, ecx
shr eax, 0xf
xor eax, ecx
add esp, 0x10
ret

Function at 0x401e61
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x432018]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [0x489c00]
xor ebx, ebx
push edi
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x401ed0
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004023da
test esi, esi
je 0x401ebd
lea ecx, [esp + 0x1c]
call fcn.00401d92
test eax, eax
je 0x401ebd
cmp eax, dword [esp + 0x14]
je 0x401ee8
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00402c98
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x401e98
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00406680
add esp, 0x2c
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00402c98
jmp 0x401ed2

Function at 0x406e81
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x424060]
test eax, eax
je 0x406ec0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406ec0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406ec0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406ec0
cmp dword [ecx + 0x74], 0xe
jbe 0x406ec0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x416b0f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004167b1

Function at 0x416b1a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416940
Function at 0x422e20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x422e4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x422e4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x408660
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x408682
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x408689
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x408678
mov eax, 1
add ebx, ebx
jne 0x40869b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x408690
jne 0x4086ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408690
xor ecx, ecx
sub eax, 3
jb 0x4086c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408732
mov ebp, eax
add ebx, ebx
jne 0x4086cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4086d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4086fc
inc ecx
add ebx, ebx
jne 0x4086e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4086dd
jne 0x4086f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4086dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40871c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40870d
jmp 0x40867e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40871c
add edi, ecx
jmp 0x40867e
pop esi
mov edi, esi
mov ecx, 0x20
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40873a
cmp byte [edi], 4
jne 0x40873a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40873f
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x4087b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9df4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9e4c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40876c
mov ecx, edi
jns 0x40879b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9e54]
or eax, eax
je 0x4087b1
mov dword [ebx], eax
add ebx, 4
jmp 0x408789
call dword [esi + 0x9e50]
mov ebp, dword [esi + 0x9e58]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4087eb
sub esp, 0xffffff80
jmp 0x401b39
Function at 0x407718
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040ad5c
test esi, esi
jne 0x40774e
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.0040aef4
jmp 0x40776c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004075f8
mov edi, eax
test esi, esi
je 0x40776c
cmp dword [ebx], 0
je 0x40776c
dec esi
jmp 0x407755
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4099a4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00409e64
mov byte [esp], al
cmp byte [esp], 0
jne 0x409b2d
test edi, edi
je 0x409b2d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x409a6d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x409a48
cmp edi, 0xffffffff
je 0x409a09
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409a09
mov byte [esp], 0
jmp 0x409b2d
cmp dword [esi], 1
jg 0x409a48
cmp dword [esi], 0
jne 0x409a3a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x409a3a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x409b2d
lea eax, [esp + 0xc]
call fcn.00409658
dec ebp
test ebp, ebp
jg 0x4099ee
cmp edi, 0xffffffff
je 0x409a6d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409a6b
mov byte [esp], 0
jmp 0x409b2d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4099b2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409a6d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409ba8
mov edx, eax
mov ebx, dword [0x4e78f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409ad1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x409acf
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409ad1
xor edi, edi
cmp byte [esp], 0
je 0x409af7
mov ebx, dword [esi]
test bl, 1
jne 0x409b0d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409ad7
mov byte [esp + 1], 1
jmp 0x409b0d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409af7
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x409a84
cmp byte [esp], 0
je 0x409b2d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40a9f4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e7058], 0
je 0x40aa5b
cmp word [0x4e7344], 0xd7b2
jne 0x40aa1d
cmp dword [0x4e734c], 0
jbe 0x40aa1d
mov eax, 0x4e7340
call dword [0x4e735c]
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
mov eax, 0x40aa88
call fcn.0040b5d0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e3032], 0
jne 0x40aa77
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40ac1c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4e3034], 0
je 0x40ac47
mov edx, edi
mov eax, esi
call dword [0x4e3034]
mov ebx, eax
jmp 0x40ac58
mov eax, 8
call fcn.00406fa8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4e7059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40abe4
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40ac88
mov eax, ebx
call fcn.00406fc4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40e4ec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40e653
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040ad5c
cmp si, word [0x4e3c10]
jb 0x40e584
cmp si, word [0x4e3e10]
ja 0x40e584
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40e584
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4e3c10]
jae 0x40e55e
mov edi, ebx
dec edi
jmp 0x40e57f
cmp si, word [ebx*8 + 0x4e3c10]
jbe 0x40e56e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40e57f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4e3c14]
call fcn.0040e408
jmp 0x40e584
cmp edi, dword [ebp - 8]
jae 0x40e548
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40e633
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e633
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b8b8
push dword [ebp - 0x160]
push 0x40e670
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b8b8
push dword [ebp - 0x164]
push 0x40e680
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b8b8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040baf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e65a
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040adbc
pop eax
jmp eax
Function at 0x40e808
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e90e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4e9c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4e9c2c]
jne 0x40e854
mov eax, esi
mov edx, 0x4e9c2e
mov ecx, 0x55
call fcn.0040b8b8
push 0x4e9c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e8f6
push 0x4e9c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040ad5c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e8c3
cmp byte [0x4e9c10], 0
je 0x40e888
mov edx, esi
mov eax, ebx
call fcn.0040e6ec
jmp 0x40e8c3
mov edx, esi
mov eax, ebx
call fcn.0040e4ec
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40e8c3
cmp dword [esi], 0
je 0x40e8ac
mov eax, esi
mov edx, 0x40e928
call fcn.0040ba10
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040e4ec
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040ba10
push 0x4e9c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4e9c2c], bx
mov eax, dword [esi]
call fcn.0040b81c
mov ecx, eax
mov eax, 0x4e9c2e
mov edx, 0xaa
call fcn.0040e368
push 0x4e9c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e915
lea eax, [ebp - 4]
call fcn.0040ad5c
pop eax
jmp eax
Function at 0x40eb50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040ae50
xor eax, eax
push ebp
push 0x40ed78
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40eb96
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40ebb0
mov eax, dword [ebp - 4]
call fcn.0040b81c
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040e368
cmp word [ebp - 0x21e], 0
je 0x40ed5b
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ed88
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ec7f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ed88
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ec7f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40edc4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ec7f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40edc4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ec7f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40edf8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ec7f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ee2c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40ed5b
xor eax, eax
push ebp
push 0x40ed54
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040e950
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40ece2
mov eax, dword [ebp - 0x14]
call fcn.00406fa8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040b87c
jmp 0x40ed2d
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40ee6c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40ed2d
mov eax, dword [ebp - 0x14]
call fcn.00406fa8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40ee6c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040b87c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ed5b
cmp dword [ebp - 0xc], 0
je 0x40ed48
mov eax, dword [ebp - 0xc]
call fcn.00406fc4
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ed7f
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040adbc
pop eax
jmp eax