joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51e3a5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0051e321
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x51e514
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x51e514
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x51e4c9
jg 0x51e401
test eax, eax
je 0x51e4bf
push 1
push 0x1000
call fcn.0050f1bc
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x51e424
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x51e4b6
push 0x8000
push ebx
call fcn.0050cca8
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x51e44d
jg 0x51e448
cmp ecx, 0x1000
jb 0x51e44d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0050ffd3
add esp, 0x10
cmp eax, 0xffffffff
je 0x51e492
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x51e448
jl 0x51e479
test ecx, ecx
jne 0x51e43a
push dword [ebp - 0xc]
push ebx
call fcn.0050cca8
push esi
call fcn.005101ef
add esp, 0xc
xor ebx, ebx
jmp 0x51e522
cmp byte [edi + 0x24], 0
je 0x51e4a9
cmp dword [edi + 0x20], 5
jne 0x51e4a9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x51e4b4
mov ebx, dword [edi + 0x18]
jmp 0x51e4b6
xor ebx, ebx
push esi
call fcn.005101ef
pop ecx
jmp 0x51e522
test ecx, ecx
jg 0x51e48b
jl 0x51e4c9
test eax, eax
jae 0x51e48b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0051340e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x51e4e9
cmp byte [edi + 0x1c], 0
je 0x51e48b
jmp 0x51e51a
push ebx
call fcn.00517a34
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x51e48b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x51e522
cmp byte [edi + 0x1c], 0
je 0x51e51f
mov ebx, dword [edi + 0x18]
jmp 0x51e522
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0051340e
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x51f690
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x51f6bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x51f6bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41bd60
Capabilities:
Hash data with md5

Disassembly:
push edi
push esi
sub esp, 8
mov eax, 0x699a697b
mov dword [esp + 4], ecx
mov edx, ecx
mov esi, dword [0x4a31b4]
add esi, 0xefdbdea6
mov dword [0x4a31b4], esi
mov dword [ecx], 0
mov esi, dword [0x4984bc]
xor esi, 0xe4e0b00d
mov dword [0x4984bc], esi
mov dword [ecx + 4], 0
mov ecx, dword [0x4a8cf0]
mov esi, dword [0x4aa2c8]
add ecx, esi
add ecx, 0x1c8bb41a
cmp eax, ecx
mov dword [esp], edx
jl 0x41bde2
mov eax, dword [0x4a7134]
mov ecx, eax
inc ecx
mov dword [0x4a7134], ecx
mov ecx, dword [0x4a9bb8]
imul ecx, eax
mov dword [0x4a9bb8], ecx
jmp 0x41be0e
mov ax, word [0x4ace6c]
mov cx, ax
inc ecx
mov dx, cx
mov word [0x4ace6c], dx
movsx ecx, ax
add ecx, 0x8a7aeb9a
mov esi, dword [0x4a8d10]
imul esi, ecx
mov dword [0x4a8d10], esi
mov eax, 0x51855915
mov ecx, dword [esp]
mov dword [ecx + 8], 0x67452301
mov edx, dword [0x49f92c]
not edx
mov si, word [0x4ad9d4]
mov di, si
lea edx, [edx + edi + 0x654aecc5]
mov si, dx
mov word [0x4ad9d4], si
mov dword [ecx + 0xc], 0xefcdab89
mov edx, dword [0x4a94ec]
cmp eax, edx
jl 0x41be69
mov eax, dword [0x49c738]
and eax, 0xaad3037e
mov dword [0x49c738], eax
jmp 0x41be78
mov eax, dword [0x4a4190]
xor eax, 0x1653fd73
mov dword [0x4a4190], eax
mov eax, dword [esp]
mov dword [eax + 0x10], 0x98badcfe
mov ecx, dword [0x4a37c8]
add ecx, 0xcbac3bd7
mov dword [0x4a37c8], ecx
mov dword [eax + 0x14], 0x10325476
mov ecx, dword [0x49aed8]
imul ecx, ecx, 0xf8be3be7
mov dword [0x49aed8], ecx
add esp, 8
pop esi
pop edi
ret
Function at 0x423220
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov ecx, 0x516afe8c
mov dword [esp + 0xc], eax
mov eax, dword [0x49e6e8]
dec eax
mov dword [0x49e6e8], eax
or eax, 0xc2c29f2e
cmp ecx, eax
jne 0x423292
mov eax, 0x6686c9b1
mov cx, word [0x4ab006]
mov dx, cx
dec edx
mov cx, dx
mov word [0x4ab006], cx
movsx edx, cx
xor edx, 0xfbfcef8b
xor edx, 0x3ff2ed5f
cmp eax, edx
jl 0x42328d
mov eax, dword [0x4985c4]
mov ecx, dword [0x4a34a4]
imul ecx, eax
mov dword [0x4a34a4], ecx
jmp 0x423292
mov eax, 1
mov ecx, dword [0x4b4414]
mov edx, esp
mov dword [edx], ecx
mov dword [esp + 8], eax
call fcn.00444600
mov ecx, dword [0x49aa98]
add ecx, 0xb3fedb7a
mov dword [0x49aa98], ecx
mov dword [esp], 1
mov byte [esp + 7], al
call fcn.00455d50
int3
Function at 0x47255c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x496af0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0045d96c
mov dword [ebp - 0x14], eax
cmp dword [0x4b5674], esi
jne 0x47264f
push 0x800
push esi
push 0x487ee0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4725dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x47272f
push esi
push esi
push 0x487ee0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x47272f
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47272f
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4b5674], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4b5678], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4b567c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b5684], eax
test eax, eax
je 0x47264c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b5680], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x472674
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x472667
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x472689
push 4
pop eax
jmp 0x472731
cmp dword [ebp - 0x14], esi
je 0x472689
push dword [0x4b5674]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x47266e
mov eax, dword [0x4b5680]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4726e7
cmp dword [0x4b5684], edi
je 0x4726e7
push eax
call ebx
push dword [0x4b5684]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4726e7
test eax, eax
je 0x4726e7
call ecx
test eax, eax
je 0x4726dc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4726dc
test byte [ebp - 8], 1
jne 0x4726e7
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x472717
mov eax, dword [0x4b5678]
cmp eax, edi
je 0x472714
push eax
call ebx
test eax, eax
je 0x472714
call eax
mov esi, eax
test esi, esi
je 0x472714
mov eax, dword [0x4b567c]
cmp eax, edi
je 0x472714
push eax
call ebx
test eax, eax
je 0x472714
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4b5674]
call ebx
test eax, eax
je 0x47272f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x472731
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00468225
mov esp, ebp
pop ebp
ret
Function at 0x4056c0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40472c
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.00406b14
test esi, esi
jne 0x404762
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.00406c9c
jmp 0x404780
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404610
mov edi, eax
test esi, esi
je 0x404780
cmp dword [ebx], 0
je 0x404780
dec esi
jmp 0x404769
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405d68
mov byte [esp], al
cmp byte [esp], 0
jne 0x405c44
test edi, edi
je 0x405c44
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405b7b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405b56
cmp edi, 0xffffffff
je 0x405b17
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405b17
mov byte [esp], 0
jmp 0x405c44
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405b56
test ebx, ebx
jne 0x405b4c
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402608
test eax, eax
jne 0x405b4c
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405c44
call 0x405dac
dec ebp
test ebp, ebp
jg 0x405afc
cmp edi, 0xffffffff
je 0x405b7b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405b79
mov byte [esp], 0
jmp 0x405c44
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405ac6
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402608
cmp ebx, eax
jne 0x405b7b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405cb4
mov edx, eax
mov ebx, dword [0x4578f0]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405be2
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405be0
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405be2
xor edi, edi
cmp byte [esp], 0
je 0x405c0b
mov ebx, dword [esi]
test bl, 1
jne 0x405c24
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402608
cmp ebx, eax
jne 0x405be8
mov byte [esp + 1], 1
jmp 0x405c24
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402608
cmp ebx, eax
jne 0x405c0b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405b95
cmp byte [esp], 0
je 0x405c44
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4067ac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x457050], 0
je 0x406813
cmp word [0x45733c], 0xd7b2
jne 0x4067d5
cmp dword [0x457344], 0
jbe 0x4067d5
mov eax, 0x457338
call dword [0x457354]
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, 0x406840
call fcn.004071e4
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45102e], 0
jne 0x40682f
push 0
push 0x4519ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4069d0
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 [0x451030], 0
je 0x4069fb
mov edx, edi
mov eax, esi
call dword [0x451030]
mov ebx, eax
jmp 0x406a0c
mov eax, 8
call fcn.0040436c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x457051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406998
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 0x406a41
mov edx, 8
mov eax, ebx
call fcn.00404388
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x408aa4
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 0x408c09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406b14
cmp si, word [0x451a08]
jb 0x408b3c
cmp si, word [0x451c08]
ja 0x408b3c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408b3c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x451a08]
jae 0x408b16
mov edi, ebx
dec edi
jmp 0x408b37
cmp si, word [ebx*8 + 0x451a08]
jbe 0x408b26
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408b37
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x451a0c]
call fcn.004089b4
jmp 0x408b3c
cmp edi, dword [ebp - 8]
jae 0x408b00
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408beb
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408beb
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.00407470
push dword [ebp - 0x160]
push 0x408c24
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407470
push dword [ebp - 0x164]
push 0x408c34
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407470
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004076a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c10
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406b74
ret
Function at 0x408dbc
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 0x408ebf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x459b80
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x459b98]
jne 0x408e08
mov eax, esi
mov edx, 0x459b9a
mov ecx, 0x55
call fcn.00407470
push 0x459b80
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408ea9
push 0x459b80
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406b14
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408e77
cmp byte [0x459b7c], 0
je 0x408e3c
mov edx, esi
mov eax, ebx
call fcn.00408ca0
jmp 0x408e77
mov edx, esi
mov eax, ebx
call fcn.00408aa4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408e77
cmp dword [esi], 0
je 0x408e60
mov eax, esi
mov edx, 0x408ed8
call fcn.004075c8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408aa4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004075c8
push 0x459b80
call sub.kernel32.dll_EnterCriticalSection
mov word [0x459b98], bx
push 0xaa
mov eax, dword [esi]
call fcn.004073dc
push eax
push 0x459b9a
call sub.kernel32.dll_lstrcpynW
push 0x459b80
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ec6
lea eax, [ebp - 4]
call fcn.00406b14
ret
Function at 0x4090f4
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.00406bf8
xor eax, eax
push ebp
push 0x409319
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409134
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40914e
push 0x105
mov eax, dword [ebp - 4]
call fcn.004073dc
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409303
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409328
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40921d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409328
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40921d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409364
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40921d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409364
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40921d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409398
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40921d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4093cc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409303
xor eax, eax
push ebp
push 0x4092fc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408f00
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 0x40928c
mov eax, dword [ebp - 0x10]
call fcn.0040436c
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.00407434
jmp 0x4092d7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40940c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4092d7
mov eax, dword [ebp - 0x10]
call fcn.0040436c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40940c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407434
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409303
cmp dword [ebp - 8], 0
je 0x4092f2
mov eax, dword [ebp - 8]
call fcn.00404388
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 0x409320
lea eax, [ebp - 4]
call fcn.00406b14
ret
Function at 0x4095fc
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406bf8
xor eax, eax
push ebp
push 0x4096bc
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407470
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407620
mov eax, dword [ebx]
call fcn.004094c4
test al, al
jne 0x409699
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407470
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407620
mov eax, dword [ebx]
call fcn.004094c4
test al, al
jne 0x409699
mov eax, ebx
call fcn.00406b14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4096c3
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406b74
lea eax, [ebp - 4]
call fcn.00406b14
ret

Function at 0x40b8a8
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x451ca0
test edx, edx
jne 0x40b8c7
xor eax, eax
jmp 0x40b9e5
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x40b8e4
push esi
push edx
push eax
call fcn.0040b9ec
add esp, 0xc
jmp 0x40b9e5
push esi
push edx
push eax
call fcn.0040bcac
add esp, 0xc
jmp 0x40b9e5
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x40f1b8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, 0x4549d8
push 0x459c84
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
push ebp
push 0x40f27d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [edi], 0
jne 0x40f24d
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4549d4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4549dc
mov ecx, 2
call fcn.00404510
mov edx, 0x40f0bc
lea eax, [esi + 5]
call fcn.0040f0dc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0040f0dc
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x40f222
mov dword [0x4549d4], esi
mov eax, dword [edi]
mov dword [ebp - 4], eax
mov ebx, dword [edi]
mov eax, dword [ebx + 5]
mov dword [edi], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 5], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 9], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f284
push 0x459c84
call sub.kernel32.dll_LeaveCriticalSection_1
ret

Function at 0x40f3f8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x40f40b
add esp, 0xfffffff0
call fcn.0040583c
mov ebx, edx
mov edi, eax
xor edx, edx
mov eax, edi
call fcn.00405548
xor eax, eax
mov dword [edi + 4], eax
mov eax, dword [ebp + 8]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 1
lea eax, [ebp - 4]
push eax
push 0
push edi
push 0x40f504
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov esi, eax
mov dword [edi + 0x14], esi
cmp esi, 0xffffffff
jne 0x40f454
xor eax, eax
mov dword [edi + 0x14], eax
mov eax, edi
test bl, bl
je 0x40f469
call fcn.00405894
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8