joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008697
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001b18
call fcn.01008948
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10086d2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10086d2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10086ea
cmp eax, 0x20b
je 0x10086d7
mov dword [ebp - 0x1c], edi
jmp 0x10086fe
cmp dword [ecx + 0x84], 0xe
jbe 0x10086d2
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x10086f8
cmp dword [ecx + 0x74], 0xe
jbe 0x10086d2
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100f05c], 0xffffffff
or dword [0x100f060], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100f040]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100f03c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100f064], eax
call fcn.01008942
cmp dword [0x100f020], edi
jne 0x1008759
push fcn.01008942
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01008930
push 0x10012cc
push 0x10012c8
call sub.msvcrt.dll__initterm
mov eax, dword [0x100f038]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x100f034]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x10012c4
push 0x10012c0
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01002f3c
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x10087d0
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1008805
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01008981
ret
Function at 0x1009213
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
push edi
xor eax, eax
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x30], ebx
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], ebx
jne 0x1009251
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01008d88
xor eax, eax
jmp 0x1009309
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push esi
push 0xfffffffffffffff6
call edi
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x10], esi
jne 0x100926c
xor eax, eax
jmp 0x1009308
cmp esi, 3
je 0x100927f
cmp esi, 0xffffffff
je 0x100927f
mov dword [ebp - 0x1c], 1
jmp 0x1009297
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
test eax, eax
je 0x1009265
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleW]
cmp dword [ebp - 0x1c], 1
push 0
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
jne 0x100930f
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1009265
cmp dword [ebp - 0x14], 0
jne 0x100931d
push dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
push dword [ebp - 0x10]
and word [eax + ecx*2], 0
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push 0x1001bac
lea eax, [ebp - 0x30]
push 0x1001ba4
push eax
call ebx
add esp, 0xc
push 0
lea eax, [ebp - 0xc]
push eax
push 2
lea eax, [ebp - 0x30]
push eax
push 0xfffffffffffffff5
call edi
push eax
call esi
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
leave
ret 8
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
test eax, eax
je 0x10093f0
mov ax, word [ebp - 4]
cmp ax, 0xd
je 0x10092c8
cmp ax, 8
jne 0x10093a8
cmp dword [ebp - 8], 0
je 0x10092a3
push 8
lea eax, [ebp - 0x30]
push 0x1001b9c
push eax
call ebx
add esp, 0xc
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x30]
push eax
push 0xfffffffffffffff5
call edi
push eax
call esi
push 0
lea eax, [ebp - 0x30]
push 0x1001b9c
push eax
call ebx
add esp, 0xc
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x30]
push eax
push 0xfffffffffffffff5
call edi
push eax
call esi
push 8
lea eax, [ebp - 0x30]
push 0x1001b9c
push eax
call ebx
add esp, 0xc
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x30]
push eax
push 0xfffffffffffffff5
call edi
push eax
call esi
dec dword [ebp - 8]
jmp 0x10092a3
mov ecx, dword [ebp + 0xc]
dec ecx
cmp dword [ebp - 8], ecx
jne 0x10093ca
push 0
lea eax, [ebp - 0xc]
push eax
push 1
push 0x1001b98
push 0xfffffffffffffff5
call edi
push eax
call esi
jmp 0x10092a3
cmp ax, 0xa
je 0x10092a3
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 8]
inc dword [ebp - 8]
push 0
mov word [ecx + edx*2], ax
lea eax, [ebp - 0xc]
push eax
push 1
push 0x1001390
jmp 0x10093be
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
jmp 0x1009265
Function at 0x100a765
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
and dword [ebp - 4], 0
cmp dword [0x100f044], 0
jne 0x100a7af
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100a7a5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100a84e
mov dword [0x100f044], 1
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esi + 5]
push 1
push eax
call dword [sym.imp.msvcrt.dll_calloc]
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x100a7e4
push 0x8007000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01008d88
xor eax, eax
jmp 0x100a84c
push esi
push edi
push dword [ebp + 8]
call fcn.01008e41
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x100a80c
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push 0x800300fd
jmp 0x100a7d5
push 2
push 4
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
mov esi, eax
test esi, esi
je 0x100a7e0
push edi
call dword [sym.imp.msvcrt.dll_free]
cmp dword [ebp + 0x10], 0
mov eax, dword [esi]
pop ecx
jne 0x100a83e
push 0x1001c08
push eax
call dword [sym.imp.msvcrt.dll_strtok]
pop ecx
pop ecx
push 0xf
push dword [ebp + 0xc]
push eax
call fcn.01008ede
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 0xc

Function at 0x100a86c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
push edi
push 0x3f
xor ebx, ebx
pop ecx
xor eax, eax
cmp dword [ebp + 8], ebx
lea edi, [ebp - 0x100]
mov dword [ebp - 0x104], ebx
rep stosd dword es:[edi], eax
push 0x3f
pop ecx
lea edi, [ebp - 0x200]
mov dword [ebp - 0x204], ebx
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
je 0x100a946
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x100a946
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x104]
push eax
mov edi, 0x80
push 4
mov dword [ebp - 4], edi
call esi
push ebx
push 1
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.010094bc
test eax, eax
je 0x100a946
push dword [ebp + 8]
call fcn.0100a588
cmp eax, 1
jne 0x100a91b
push ebx
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
call fcn.0100a765
test eax, eax
je 0x100a949
push ebx
push 1
lea eax, [ebp - 0x204]
push eax
jmp 0x100a933
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x104]
push eax
push 7
mov dword [ebp - 4], edi
call esi
push ebx
push 1
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.010094bc
neg eax
sbb eax, eax
inc eax
jmp 0x100a949
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100ab6b
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push esi
push edi
push 0x7e
pop ecx
xor eax, eax
xor esi, esi
mov dword [ebp - 0x420], esi
lea edi, [ebp - 0x41c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x7e
pop ecx
mov dword [ebp - 0x220], esi
xor eax, eax
lea edi, [ebp - 0x21c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
push edi
call fcn.0100a86c
cmp eax, 1
jne 0x100abec
cmp dword [ebp + 0xc], esi
je 0x100abe5
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x100abe5
mov esi, 0xa0010001
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x157e
call fcn.010098d6
push eax
call fcn.01008b40
mov eax, esi
jmp 0x100ad17
xor eax, eax
jmp 0x100ad17
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
lea eax, [ebp - 0x220]
push eax
call esi
push edi
call fcn.0100a852
cmp eax, 1
jne 0x100ac14
add edi, 4
push edi
lea eax, [ebp - 0x220]
push eax
call esi
lea eax, [ebp - 0x220]
push eax
call fcn.0100a653
test eax, eax
jne 0x100ac2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100ad17
push ebx
mov ebx, 0x1001394
push ebx
lea eax, [ebp - 0x420]
push eax
call esi
xor esi, esi
cmp dword [ebp + 0x14], esi
je 0x100ac74
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x100ac74
push dword [ebp + 0x14]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x420]
push 0x1001c2c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x100ac90
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x420]
push 0x100139c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 8
pop ecx
xor eax, eax
push esi
push dword [ebp + 0xc]
lea edi, [ebp - 0x20]
push dword [ebp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call sub.MPR.dll_WNetAddConnection2W
mov edi, eax
cmp edi, esi
je 0x100acd8
cmp edi, 0x4b8
je 0x100acd1
call fcn.01008d88
jmp 0x100ad14
call fcn.01008dd8
jmp 0x100ad14
push ebx
xor edi, edi
call fcn.01008b40
lea eax, [ebp - 0x220]
push eax
call fcn.0100a950
cmp eax, 0x1388
jae 0x100ad14
lea eax, [ebp - 0x220]
push eax
call fcn.0100ab58
push 0x157f
call fcn.010098d6
push eax
call fcn.01008b40
mov edi, 0x4b8
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x406b84
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.00409328
test esi, esi
jne 0x406bba
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.004094b0
jmp 0x406bd8
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406ac8
mov edi, eax
test esi, esi
je 0x406bd8
cmp dword [ebx], 0
je 0x406bd8
dec esi
jmp 0x406bc1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408088
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.0040846c
mov byte [esp], al
cmp byte [esp], 0
jne 0x408212
test edi, edi
je 0x408212
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408152
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40812d
cmp edi, 0xffffffff
je 0x4080ed
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4080ed
mov byte [esp], 0
jmp 0x408212
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40812d
test ebx, ebx
jne 0x40811f
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40811f
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408212
lea eax, [esp + 0xc]
call fcn.00407d68
dec ebp
test ebp, ebp
jg 0x4080d2
cmp edi, 0xffffffff
je 0x408152
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408150
mov byte [esp], 0
jmp 0x408212
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408096
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408152
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408280
mov edx, eax
mov ebx, dword [0x60f8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4081b6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4081b4
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4081b6
xor edi, edi
cmp byte [esp], 0
je 0x4081dc
mov ebx, dword [esi]
test bl, 1
jne 0x4081f2
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4081bc
mov byte [esp + 1], 1
jmp 0x4081f2
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4081dc
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408169
cmp byte [esp], 0
je 0x408212
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 0x408fb8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x60f05c], 0
je 0x40901f
cmp word [0x60f348], 0xd7b2
jne 0x408fe1
cmp dword [0x60f350], 0
jbe 0x408fe1
mov eax, 0x60f344
call dword [0x60f360]
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, 0x40904c
call fcn.00409c8c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x609032], 0
jne 0x40903b
push 0
push 0x6099c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4091e8
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 [0x609034], 0
je 0x409213
mov edx, edi
mov eax, esi
call dword [0x609034]
mov ebx, eax
jmp 0x409224
mov eax, 8
call fcn.00406804
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x60f05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4091b0
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 0x409254
mov eax, ebx
call fcn.00406820
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40bbc8
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 0x40bd2d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409328
cmp si, word [0x609a00]
jb 0x40bc60
cmp si, word [0x609c00]
ja 0x40bc60
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40bc60
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x609a00]
jae 0x40bc3a
mov edi, ebx
dec edi
jmp 0x40bc5b
cmp si, word [ebx*8 + 0x609a00]
jbe 0x40bc4a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bc5b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x609a04]
call fcn.0040bae8
jmp 0x40bc60
cmp edi, dword [ebp - 8]
jae 0x40bc24
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bd0f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bd0f
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.0040a08c
push dword [ebp - 0x160]
push 0x40bd48
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a08c
push dword [ebp - 0x164]
push 0x40bd58
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a08c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a2c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bd34
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409388
ret
Function at 0x40bee0
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 0x40bfe4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x611b8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x611ba4]
jne 0x40bf2c
mov eax, esi
mov edx, 0x611ba6
mov ecx, 0x55
call fcn.0040a08c
push 0x611b8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40bfce
push 0x611b8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409328
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bf9b
cmp byte [0x611b88], 0
je 0x40bf60
mov edx, esi
mov eax, ebx
call fcn.0040bdc4
jmp 0x40bf9b
mov edx, esi
mov eax, ebx
call fcn.0040bbc8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40bf9b
cmp dword [esi], 0
je 0x40bf84
mov eax, esi
mov edx, 0x40bffc
call fcn.0040a1e4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040bbc8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a1e4
push 0x611b8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x611ba4], bx
mov eax, dword [esi]
call fcn.00409fe8
mov ecx, eax
mov eax, 0x611ba6
mov edx, 0xaa
call fcn.0040ba48
push 0x611b8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bfeb
lea eax, [ebp - 4]
call fcn.00409328
ret
Function at 0x40c214
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.0040940c
xor eax, eax
push ebp
push 0x40c439
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c254
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c26e
mov eax, dword [ebp - 4]
call fcn.00409fe8
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040ba48
cmp word [ebp - 0x21a], 0
je 0x40c423
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c448
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c33d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c448
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c33d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c484
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c33d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c484
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c33d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c4b8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c33d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c4ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c423
xor eax, eax
push ebp
push 0x40c41c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c024
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 0x40c3ac
mov eax, dword [ebp - 0x10]
call fcn.00406804
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.0040a050
jmp 0x40c3f7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c52c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c3f7
mov eax, dword [ebp - 0x10]
call fcn.00406804
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c52c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a050
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c423
cmp dword [ebp - 8], 0
je 0x40c412
mov eax, dword [ebp - 8]
call fcn.00406820
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 0x40c440
lea eax, [ebp - 4]
call fcn.00409328
ret
Function at 0x40c728
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.0040940c
xor eax, eax
push ebp
push 0x40c7e8
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.0040a08c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a23c
mov eax, dword [ebx]
call fcn.0040c5f0
test al, al
jne 0x40c7c5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a08c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a23c
mov eax, dword [ebx]
call fcn.0040c5f0
test al, al
jne 0x40c7c5
mov eax, ebx
call fcn.00409328
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c7ef
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409388
lea eax, [ebp - 4]
call fcn.00409328
ret

Function at 0x40d168
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x420efc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x420f55
test eax, edx
je 0x420f58
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x420f13
movzx eax, word [eax]
sub eax, ecx
jmp 0x420f3a
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x420f3b
add ecx, 4
js 0x420f2b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x420f38
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x420f3a
xor eax, eax
ret
test eax, eax
je 0x420f64
test edx, edx
jne 0x420f04
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x422158
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x422185
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4