joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f5e0
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
push ebx
push esi
mov ebx, 0x4848e8
call fcn.0040f580
mov esi, eax
lea eax, [esp + 0xa8]
push esi
push eax
call fcn.00413990
push esi
call fcn.004112ef
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.0040f6a0
lea eax, [esp + 0xa8]
mov ecx, esi
call fcn.0040f6d0
xor ebx, ebx
mov dword [edi + 8], ebx
xor ecx, ecx
mov eax, ebx
movzx edx, byte [esp + ecx + 0x18]
add eax, edx
movzx edx, byte [esp + ecx + 0x19]
add eax, edx
movzx edx, byte [esp + ecx + 0x1a]
add eax, edx
movzx edx, byte [esp + ecx + 0x1b]
add ecx, 4
add eax, edx
cmp ecx, 0x10
jl 0x40f631
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
push 0x4876c8
push eax
call fcn.00414e06
add esp, 8
mov dword [edi], eax
cmp eax, ebx
je 0x42b2ee
push edi
call fcn.0040f450
cmp eax, ebx
je 0x42b2f8
mov ecx, dword [edi]
push ecx
mov esi, eax
call fcn.00414e94
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop es
add byte [eax], al
add byte [eax], al
cmp dword ds:[ecx], edi

Function at 0x40f6a0
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.004131f0
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret

Function at 0x40f700
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x44]
mov esi, eax
mov eax, ecx
shr eax, 3
lea ecx, [ecx + esi*8]
lea edx, [esi*8]
and eax, 0x3f
mov dword [edi + 0x44], ecx
cmp ecx, edx
jb 0x429d76
mov ecx, esi
shr ecx, 0x1d
add dword [edi + 0x48], ecx
mov ebx, 0x40
sub ebx, eax
cmp esi, ebx
jae 0x40f75b
xor ebx, ebx
sub esi, ebx
push esi
add ebx, ebp
lea ecx, [eax + edi + 0x4c]
push ebx
push ecx
call fcn.00410f70
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret 4
push ebx
lea edx, [eax + edi + 0x4c]
push ebp
push edx
call fcn.00410f70
add esp, 0xc
lea eax, [edi + 0x4c]
call fcn.0040f890
lea eax, [ebx + 0x3f]
cmp eax, esi
jb 0x429d7e
xor eax, eax
jmp 0x40f741
or byte [ebx + 0x53590000], dl
Function at 0x40f790
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
lea ebx, [edi + 0x44]
push esi
mov edx, 8
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.0040f850
mov ecx, dword [ebx]
shr ecx, 3
and ecx, 0x3f
cmp ecx, 0x38
jae 0x42a349
mov eax, 0x38
sub eax, ecx
push 0x492388
mov ecx, edi
call fcn.0040f700
lea eax, [esp + 0x10]
push eax
mov eax, 8
mov ecx, edi
call fcn.0040f700
lea esi, [edi + 0x34]
mov edx, 0x10
mov eax, esi
mov ecx, edi
call fcn.0040f850
push 8
push 0
push ebx
call fcn.004131f0
push 0x10
push 0
push esi
call fcn.004131f0
push 0x40
lea ecx, [edi + 0x4c]
push 0
push ecx
call fcn.004131f0
lea ebx, [edi + 0x10]
add esp, 0x24
mov byte [ebx], 0
xor esi, esi
movzx edx, byte [esi + edi]
push edx
lea eax, [esp + 0x10]
push str._02X
push eax
call fcn.00415258
lea ecx, [esp + 0x18]
push ecx
push ebx
call fcn.004139a0
inc esi
add esp, 0x14
cmp esi, 0x10
jl 0x40f820
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4101f0
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
push edi
push 0xf
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push 0x7f00
xor ebx, ebx
push ebx
mov edi, eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
mov ebp, eax
mov eax, dword [0x4972c8]
push 0x63
push eax
call esi
mov ecx, dword [0x4972c8]
push 0xa4
push ecx
mov dword [0x4a7ce8], eax
call esi
mov edx, dword [0x4972c8]
push 0xa2
push edx
mov dword [0x4a7cf0], eax
call esi
mov dword [0x4a7cf4], eax
mov eax, dword [0x4a939c]
cmp byte [eax + 0x1f], bl
je 0x42b9d3
mov ecx, dword [0x4972c8]
push ebx
push 0x10
push 0x10
push 1
push 0x63
push ecx
call dword [sym.imp.USER32.dll_LoadImageW]
mov edx, dword [0x4972c8]
mov ecx, dword [0x4a7ce8]
mov dword [esp + 0x24], edx
lea edx, [esp + 0x10]
push edx
mov dword [0x4a7cec], eax
mov dword [esp + 0x14], 0x30
mov dword [esp + 0x18], 0x23
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], str.Sordumorg
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], 0x4010d0
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov ecx, dword [0x4a7ce8]
mov word [0x49728c], ax
mov eax, dword [0x4a7cec]
push eax
push ecx
call fcn.004102f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov esp, 0x66fffff3
mov edx, dword [ecx]

Function at 0x4103e0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x4972c8]
push esi
push 0
mov esi, dword [sym.imp.USER32.dll_CreateWindowExW]
push eax
push 0
push 0
push 0x64
push 0x12c
push accept
push accept
push 0xcf0000
push str.Sordumorg
push str.Sordumorg
push 0
call esi
mov ecx, dword [0x4972c8]
push 0
push ecx
push 1
push eax
push 0
push 0
push 0
push 0
push 0x50b008c4
push 0
push str.edit
push 0
mov dword [0x4972c0], eax
call esi
mov edx, dword [0x4972c0]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edx
mov dword [0x4972bc], eax
call esi
mov eax, dword [0x4972c0]
push 0
push eax
call esi
pop esi
ret

Function at 0x4107b0
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0x10
mov dword [edi + 8], 4
call fcn.0041171a
add esp, 4
test eax, eax
je 0x429e18
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 8]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0xc]
mov dword [eax + 0xc], ecx
inc dword [ecx]
mov dword [edi + 0xc], eax
mov eax, edi
ret
push esp
loopne 0x429e1a

Function at 0x4107f0
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esi]
test eax, eax
jne 0x42a2ba
mov dword [esi + 8], 0
ret
add byte [edx + 0x52], bl

Function at 0x4108c0
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [eax + 4]
test eax, eax
jne 0x42a2f4
ret
add al, ch
or al, byte [eax]
add byte [eax], al
Function at 0x410ae0
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
mov dword [esi], 0x487630
ja 0x42b9e2
mov ecx, dword [esi + 4]
push ecx
mov dword [esi + 8], 0
call fcn.004112ef
add esp, 4
pop esi
ret
test dword [ebx + esi*8 - 0x3f7c0001], edi
add cl, byte [ecx - 0xc437b]
jmp dword [esi - 0x75]

Function at 0x422f38
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004169e0
and dword [ebp - 4], 0
cmp dword [0x496efc], 0
mov ebx, eax
jne 0x422fe9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42309a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x483de0
push edi
call esi
test eax, eax
je 0x42309a
push eax
call fcn.0041696e
mov dword [esp], 0x483dd0
push edi
mov dword [0x496efc], eax
call esi
push eax
call fcn.0041696e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x496f00], eax
call esi
push eax
call fcn.0041696e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x496f04], eax
call esi
push eax
call fcn.0041696e
pop ecx
mov dword [0x496f0c], eax
test eax, eax
je 0x422fe9
push 0x483d88
push edi
call esi
push eax
call fcn.0041696e
pop ecx
mov dword [0x496f08], eax
mov eax, dword [0x496f08]
cmp eax, ebx
je 0x423041
cmp dword [0x496f0c], ebx
je 0x423041
push eax
call fcn.004169e9
push dword [0x496f0c]
mov esi, eax
call fcn.004169e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x423041
test edi, edi
je 0x423041
call esi
test eax, eax
je 0x423038
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x423038
test byte [ebp - 0xc], 1
jne 0x423041
or dword [ebp + 0x10], 0x200000
jmp 0x42307a
mov eax, dword [0x496f00]
cmp eax, ebx
je 0x42307a
push eax
call fcn.004169e9
pop ecx
test eax, eax
je 0x42307a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42307a
mov eax, dword [0x496f04]
cmp eax, ebx
je 0x42307a
push eax
call fcn.004169e9
pop ecx
test eax, eax
je 0x42307a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x496efc]
call fcn.004169e9
pop ecx
test eax, eax
je 0x42309a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42309c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4417bc
Capabilities:
Encode data using xor

Disassembly:
add ebp, dword [ecx - 0x74]
nop
mov ecx, 0x360202ec
aad 0x69
mov word [eax + 0x202ecbb], ds
leave
mov byte [ebx + 0x590202f9], dh
leave
mov byte [ecx + edi*8 - 0x3693fdfe], dh
mov byte [ebp + 0x750202f9], dh
leave
mov byte [esi + 0x770202f9], dh
leave
mov byte [edi + 0x780202f9], dh
leave
mov byte [eax + 0x640202f9], bh
leave
mov byte [ecx + 0x6f0202f9], bh
mov ecx, 0x6f0202f9
leave
mov byte [edx + 0x530202f9], bh
leave
mov byte [ebx + 0x750202f9], bh
leave
mov byte [ecx + edi*8 - 0x368dfdfe], bh
mov byte [ebp + 0x770202f9], bh
leave
mov byte [esi + 0x680202f9], bh
leave
mov byte [edi + 0x660202f9], bh
leave
mov al, al
stc
add al, byte [edx]
ja 0x4417f9
mov cl, al
stc
add al, byte [edx]
add ecx, edx
mov byte [edi], ah
out 2, al
add al, byte [ebx]
add eax, dword [ebx]
add ecx, dword [esi + 0x2e3bb88]
add cl, byte [eax + ecx*4 + 0x202f87b]
pop edx
test dl, ch
push ebp
mov byte [ebx], al
add eax, dword [edx + ecx*8 + 0x3046367]
test dl, dh
rcr dword [edi + 3], cl
add esp, dword [edx + 0x56]
pop edx
xchg bh, al
pop es
test dh, ah
popfd
test al, 3
add eax, dword [esi + eax*8 + 0x3047eb4]
pop esi
pop ecx
push ebp
xchg bh, al
pop es
test cl, bh
out 0x5f, al
add al, 3
popal
mov ss, word [bx + si]
sbb eax, dword [ebx]
add eax, dword [ebx]
mov word [eax + 0x202e667], ss
mov ds, word [eax + 0x202e667]
mov es, word [ebp + 0x33]
mov word [eax + 0x202e663], cs
mov ss, word [eax + 0x202e663]
mov word [eax + 0x202eef7], ss
pop edx
test dl, dl
dec eax
sbb dword [ebx], eax
add eax, dword [edx + edi*8 + 0x303009b]
out dx, al
pop es
push ecx
push edx
xor eax, 0xc2d2844f
scasd eax, dword es:[edi]
add eax, dword [ebx]
bound ebx, qword [ecx + 0x53]
xchg bh, al
pop es
test cl, cl
and bl, byte [eax]
add eax, dword [ebx]
test cl, bh
dec bx
add al, 3
test cl, ch
jbe 0x441872
add eax, dword [ebx]
popal
xchg al, al
imul esi
add al, byte [edx]
add edi, dword [eax + 0x12]
retf 0x6388

Function at 0x442c52
Capabilities:
Encode data using xor

Disassembly:
add eax, dword [ebx]
add ebp, esi
jle 0x33d63e4
add cl, byte [eax + ecx*4 + 0x202f887]
xchg al, al
xchg eax, edi
add al, byte [edx]
add edi, dword [eax + 0x3a]
push esi
push ebp
xchg bh, al
pop es
test dh, al
popfd
add eax, dword [ebx]
pop esi
pop ecx
test cl, dl
call 0xeb473032
or eax, 0x3030303
dec eax
xor eax, 0x4b3c383a
cmp dword [ebx + 0x36], edx
xchg bh, al
pop es
test cl, dh
daa
pop edx
add al, 3
test cl, cl
mov edi, 0x61030484
in al, dx
dec esp
or byte [ebx], al
add edx, dword [esi - 0x7c]
invalid
Function at 0x44b64f
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x30], 0
lea esi, [edi + 0x30]
je 0x44b6b7
mov eax, dword [edi + 0x34]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ebx, [edi + 0x34]
push eax
push ebx
call ebp
cmp eax, 0x1f6
je 0x44b6b5
add edi, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi]
push 0x1f6
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call fcn.004356cd
add esp, 4
push 0x1f6
push ebx
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop ebx
pop edi
pop esi
ret 4

Function at 0x44bf8d
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa88
mov ecx, dword [ebp + 8]
push ebx
push esi
lea eax, [esp + 0x18]
mov byte [esp + 0xf], 0
call fcn.0040ffb0
lea eax, [esp + 0x18]
push eax
call fcn.00436ac4
add esp, 4
test al, al
je 0x44bfcf
lea ecx, [esp + 0x18]
push 0x487240
push ecx
call fcn.00411663
add esp, 8
lea edx, [esp + 0x680]
push edx
lea eax, [esp + 0x88c]
push eax
lea ecx, [esp + 0x480]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00413db0
add esp, 0x14
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov bl, 1
cmp esi, 0xffffffff
je 0x44c094
cmp bl, 1
jne 0x44c094
test byte [esp + 0x228], 0x10
jne 0x44c06e
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x17], bl
call fcn.00411691
lea edx, [esp + 0x480]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00411663
lea ecx, [esp + 0x264]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00411663
add esp, 0x18
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x44c085
lea ecx, [esp + 0x228]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x44c015
xor bl, bl
jmp 0x44c015
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [esp + 0xf]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44c718
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [esp + 8]
mov byte [esi + 7], 0
mov byte [esi], 0xff
push edi
mov edi, dword [esp + 0x10]
mov byte [esi + 1], 0
mov byte [esi + 2], 0
mov byte [esi + 3], 0
mov byte [esi + 4], 0
mov byte [esi + 5], 0
mov byte [esi + 6], 0
push esi
mov byte [esi + 0xa], 0
mov word [esi + 8], di
call fcn.00437a12
test al, al
je 0x44c763
push edi
call dword [sym.imp.USER32.dll_VkKeyScanW]
movzx eax, ax
cmp ax, 0xffff
jne 0x44c76a
xor al, al
pop edi
pop esi
ret 8
push ebx
mov ebx, eax
mov byte [esi], al
movzx eax, al
push 0
push eax
sar ebx, 8
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov byte [esi + 7], al
mov al, 1
test al, bl
je 0x44c78a
mov byte [esi + 1], al
test bl, 2
je 0x44c792
mov byte [esi + 3], al
test bl, 4
pop ebx
je 0x44c765
pop edi
mov byte [esi + 4], al
pop esi
ret 8

Function at 0x44c7a0
Capabilities:
Log keystrokes

Disassembly:
mov cl, byte [esp + 8]
push ebx
xor ebx, ebx
push esi
mov esi, dword [esp + 0xc]
mov byte [esi + 7], bl
xor eax, eax
mov word [esi + 8], ax
mov byte [esi + 1], bl
mov byte [esi + 2], bl
mov byte [esi + 3], bl
mov byte [esi + 4], bl
mov byte [esi + 5], bl
mov byte [esi + 6], bl
push esi
mov byte [esi + 0xa], bl
mov byte [esi], cl
call fcn.00437a22
test al, al
jne 0x44c7db
pop esi
pop ebx
ret 8
movzx edx, byte [esp + 0x10]
push ebx
push edx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov byte [esi + 7], al
pop esi
mov al, 1
pop ebx
ret 8

Function at 0x44cc86
Capabilities:
Contain obfuscated stackstrings
Get number of processors
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [eax + 4]
test eax, eax
jne 0x42a043
ret
xor al, 0xeb
mov dword [ecx], 0x484c08
lea eax, [ecx + 4]
jmp 0x410850
Function at 0x404548
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.00406898
test esi, esi
jne 0x404580
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.004069d4
jmp 0x40459e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x40459e
cmp dword [ebx], 0
je 0x40459e
dec esi
jmp 0x404587
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405de0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x521050], 0
je 0x405e41
cmp word [0x52132c], 0xd7b2
jne 0x405e09
cmp dword [0x521334], 0
jbe 0x405e09
mov eax, 0x521328
call dword [0x521344]
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 0x405e6c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x51a030], 0
jne 0x405e5d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405fec
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 [0x51a034], 0
je 0x406012
mov edx, esi
mov eax, ebx
call dword [0x51a034]
jmp 0x406021
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x521051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405fb4
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 0x4086cc
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 0x408833
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406898
cmp si, word [0x51a7dc]
jb 0x408766
cmp si, word [0x51a9dc]
ja 0x408766
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408766
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x51a7dc]
jae 0x408740
mov edi, ebx
dec edi
jmp 0x408761
cmp si, word [ebx*8 + 0x51a7dc]
jbe 0x408750
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408761
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x51a7e0]
call fcn.004085dc
jmp 0x408766
cmp edi, dword [ebp - 0xc]
jae 0x40872a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408815
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408815
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.00406a80
push dword [ebp - 0x164]
push 0x408850
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406a80
push dword [ebp - 0x168]
push 0x408860
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a80
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406e38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40883a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406890
ret
Function at 0x4089ec
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 0x408af1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x523b58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x523b70]
jne 0x408a38
mov eax, esi
mov edx, 0x523b74
mov ecx, 0x55
call fcn.00406a80
push 0x523b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408adb
push 0x523b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406898
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408aa9
cmp byte [0x523b54], 0
je 0x408a6e
mov edx, esi
mov eax, ebx
call fcn.004088cc
jmp 0x408aa9
mov edx, esi
mov eax, ebx
call fcn.004086cc
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408aa9
cmp dword [esi], 0
je 0x408a92
mov eax, esi
mov edx, 0x408b0c
call fcn.00406c94
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004086cc
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406c94
push 0x523b58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x523b70], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406924
push eax
push 0x523b74
call sub.kernel32.dll_lstrcpynW
push 0x523b58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408af8
lea eax, [ebp - 4]
call fcn.00406888
ret
Function at 0x408d30
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.00406880
xor eax, eax
push ebp
push 0x408f15
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408d70
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408d8a
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406924
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408eff
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408f24
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408e19
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408f24
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408e19
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408f58
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408e19
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408f8c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408eff
xor eax, eax
push ebp
push 0x408ef8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408b34
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 0x408e88
mov eax, dword [ebp - 0x10]
call fcn.004041d4
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.00406a44
jmp 0x408ed3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408fcc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408ed3
mov eax, dword [ebp - 0x10]
call fcn.004041d4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408fcc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406a44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408eff
cmp dword [ebp - 8], 0
je 0x408eee
mov eax, dword [ebp - 8]
call fcn.004041f0
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 0x408f1c
lea eax, [ebp - 4]
call fcn.00406888
ret