joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c75
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4050f8
cmp edx, dword [eax]
je 0x401c97
add eax, 8
inc ecx
cmp eax, 0x405188
jl 0x401c88
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4050f8]
jne 0x401dc5
mov eax, dword [0x4054a8]
cmp eax, 1
je 0x401d9f
test eax, eax
jne 0x401cc8
cmp dword [0x40504c], 1
je 0x401d9f
cmp edx, 0xfc
je 0x401dc5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401cff
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402220
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402390
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x401d42
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402390
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x404380
push edi
call fcn.00403020
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402220
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402230
lea eax, [ebp - 0xa0]
push 0x404360
push eax
call fcn.00402230
push dword [esi + 0x4050fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402230
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00402f8e
add esp, 0x2c
pop edi
jmp 0x401dc5
lea eax, [ebp + 8]
lea esi, [esi + 0x4050fc]
push 0
push eax
push dword [esi]
call fcn.00402390
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4018e0
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebx
call fcn.00401220
add esp, 4
test eax, eax
jne 0x4018f9
mov eax, 0xff
pop ebx
ret
push ebx
call fcn.004013e0
add esp, 4
test eax, eax
je 0x4018f2
mov eax, dword [0x40668c]
cmp dword [eax + 8], 0
push esi
je 0x401944
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
push edi
push 0
call esi
mov edi, dword [sym.imp.MSVCR90.dll_setbuf]
push eax
call edi
add esp, 8
push 0
call esi
add eax, 0x20
push eax
call edi
add esp, 8
push 0
call esi
add eax, 0x40
push eax
call edi
add esp, 8
pop edi
mov esi, dword [sym.imp.MSVCR90.dll_getenv]
push 0x405238
call esi
add esp, 4
test eax, eax
je 0x401973
push 0x405248
call esi
push eax
call dword [sym.imp.MSVCR90.dll_atoi]
mov ecx, dword [0x40582c]
add esp, 8
mov dword [ecx], eax
jmp 0x40197f
mov edx, dword [0x40582c]
mov dword [edx], 0
mov eax, dword [0x405844]
mov dword [eax], 1
mov ecx, dword [0x405834]
mov dword [ecx], 1
mov edx, dword [0x40668c]
mov eax, dword [edx + 4]
mov ecx, dword [0x40583c]
push 0x406140
mov dword [ecx], eax
call dword [0x4056d4]
add esp, 4
call fcn.00401660
call dword [0x405744]
test eax, eax
jne 0x4019d5
call fcn.004016f0
test eax, eax
jne 0x401a3b
call dword [0x4056ac]
jmp 0x4019de
call fcn.004017d0
test eax, eax
jne 0x401a3b
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x401a0b
push 1
call dword [0x405824]
push eax
push 0x405258
call dword [0x4057c4]
add esp, 0xc
push ebx
call fcn.00401540
add esp, 4
pop esi
xor eax, eax
pop ebx
ret
push eax
call dword [0x4057d4]
mov esi, eax
add esp, 4
test esi, esi
je 0x401a30
push esi
push 0x405260
call dword [0x4057c4]
push esi
call fcn.00401c40
add esp, 0xc
push ebx
call fcn.00401540
add esp, 4
xor eax, eax
pop esi
pop ebx
ret

Function at 0x401b90
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push esi
push edi
push eax
push ecx
call dword [0x4057ec]
push 1
call dword [0x405854]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401bf0
call dword [0x4056c4]
push eax
call dword [0x4057d4]
add esp, 4
test eax, eax
je 0x401be7
push eax
push 0
push esi
call dword [0x40585c]
add esp, 0xc
test eax, eax
jne 0x401be7
push esi
push 0x405288
call dword [0x4057c4]
add esp, 8
push esi
call fcn.00401c40
add esp, 4
call fcn.00401aa0
push 0x405268
mov edi, eax
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x401c35
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
push 0x405278
call esi
push eax
call dword [0x4057dc]
add esp, 8
test eax, eax
je 0x401c35
push 0x405280
call esi
push eax
call dword [0x4057e4]
add esp, 8
call dword [0x4056bc]
mov eax, edi
pop edi
pop esi
ret
Function at 0x401ff0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x408adb
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x40e4b8]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov eax, dword [0x40e4b8]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x248], edi
mov esi, dword [eax + 4]
mov eax, dword [eax]
lea edx, [esp + 0x20]
push edx
or esi, 0x2001f
push esi
push edi
push ecx
push eax
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp ebx, edi
jne 0x4020a3
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, edi
je 0x402087
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x20]
and esi, 0x300
mov dword [esp + 0x18], edi
mov ebx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], esi
cmp eax, edi
je 0x4020c8
mov dword [esp + 0x248], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x4020c1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], edi
mov eax, ebx
jmp 0x402171
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x2c]
push eax
push edi
push edi
push edi
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x48]
push eax
push edi
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x40212a
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401ff0
mov ebx, eax
cmp ebx, edi
jne 0x4020a3
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x18]
push edi
push edi
push edi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
push ecx
push edi
push edx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x4020f0
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40213d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
mov dword [esp + 0x1c], edi
call fcn.004015a0
mov esi, eax
mov dword [esp + 0x248], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40216f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], edi
mov eax, esi
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004080de
mov esp, ebp
pop ebp
ret 4

Function at 0x402720
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x40273c
pop esi
pop ecx
ret
push edi
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x401f70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x402764
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x4045d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x408f30
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x40e4b8]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov edi, dword [ebp + 0x414]
mov ebx, dword [ebp + 0x418]
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp], edx
mov byte [ebp - 4], 1
push 2
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x404652
call fcn.00401430
mov edi, eax
jmp 0x40473f
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40466b
call fcn.00401430
jmp 0x404736
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x404686
call fcn.00401430
jmp 0x404736
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x18], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x4046c7
mov byte [ebp - 4], 0
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4046ae
lea ecx, [ebp]
call fcn.00401f20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401eb0
mov eax, 0x8007000e
jmp 0x40475c
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp]
call fcn.00403300
mov dword [ebp - 4], 1
jmp 0x4046f3
mov eax, dword [ebp]
test eax, eax
jne 0x404701
mov edi, 0x8007000e
jmp 0x404738
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40471a
call fcn.00401430
jmp 0x404736
xor ecx, ecx
mov edx, dword [ebp]
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x41c]
push eax
mov ecx, dword [ebp]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00404480
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x404753
lea ecx, [ebp]
call fcn.00401f20
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.004080de
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4080de
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e4b8]
jne 0x4080e8
repz ret
jmp fcn.00408694
Function at 0x40493c
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.00406c38
test esi, esi
jne 0x404972
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.00406dc0
jmp 0x404990
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404880
mov edi, eax
test esi, esi
je 0x404990
cmp dword [ebx], 0
je 0x404990
dec esi
jmp 0x404979
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4059b4
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.00405dac
mov byte [esp], al
cmp byte [esp], 0
jne 0x405b40
test edi, edi
je 0x405b40
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405a77
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405a52
cmp edi, 0xffffffff
je 0x405a13
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405a13
mov byte [esp], 0
jmp 0x405b40
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405a52
test ebx, ebx
jne 0x405a48
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402824
test eax, eax
jne 0x405a48
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405b40
call 0x405ed0
dec ebp
test ebp, ebp
jg 0x4059f8
cmp edi, 0xffffffff
je 0x405a77
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405a75
mov byte [esp], 0
jmp 0x405b40
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4059c2
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402824
cmp ebx, eax
jne 0x405a77
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405bb0
mov edx, eax
mov ebx, dword [0x59e8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405ade
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405adc
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405ade
xor edi, edi
cmp byte [esp], 0
je 0x405b07
mov ebx, dword [esi]
test bl, 1
jne 0x405b20
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402824
cmp ebx, eax
jne 0x405ae4
mov byte [esp + 1], 1
jmp 0x405b20
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402824
cmp ebx, eax
jne 0x405b07
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405a91
cmp byte [esp], 0
je 0x405b40
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 0x4068d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x59e058], 0
je 0x406937
cmp word [0x59e344], 0xd7b2
jne 0x4068f9
cmp dword [0x59e34c], 0
jbe 0x4068f9
mov eax, 0x59e340
call dword [0x59e35c]
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, 0x406964
call fcn.004074a0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x596032], 0
jne 0x406953
push 0
push 0x5969c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406af4
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 [0x596034], 0
je 0x406b1f
mov edx, edi
mov eax, esi
call dword [0x596034]
mov ebx, eax
jmp 0x406b30
mov eax, 8
call fcn.004045bc
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x59e059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406abc
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 0x406b65
mov edx, 8
mov eax, ebx
call fcn.004045d8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x4090ec
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 0x409251
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406c38
cmp si, word [0x596a00]
jb 0x409184
cmp si, word [0x596c00]
ja 0x409184
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409184
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x596a00]
jae 0x40915e
mov edi, ebx
dec edi
jmp 0x40917f
cmp si, word [ebx*8 + 0x596a00]
jbe 0x40916e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40917f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x596a04]
call fcn.00408ffc
jmp 0x409184
cmp edi, dword [ebp - 8]
jae 0x409148
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x409233
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409233
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.00407890
push dword [ebp - 0x160]
push 0x40926c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407890
push dword [ebp - 0x164]
push 0x40927c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407890
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407ac8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409258
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406c98
ret
Function at 0x409404
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 0x409507
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5a0b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5a0ba0]
jne 0x409450
mov eax, esi
mov edx, 0x5a0ba2
mov ecx, 0x55
call fcn.00407890
push 0x5a0b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4094f1
push 0x5a0b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406c38
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4094bf
cmp byte [0x5a0b84], 0
je 0x409484
mov edx, esi
mov eax, ebx
call fcn.004092e8
jmp 0x4094bf
mov edx, esi
mov eax, ebx
call fcn.004090ec
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4094bf
cmp dword [esi], 0
je 0x4094a8
mov eax, esi
mov edx, 0x409520
call fcn.004079e8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004090ec
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004079e8
push 0x5a0b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5a0ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.004077ec
push eax
push 0x5a0ba2
call sub.kernel32.dll_lstrcpynW
push 0x5a0b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40950e
lea eax, [ebp - 4]
call fcn.00406c38
ret
Function at 0x40973c
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.00406d1c
xor eax, eax
push ebp
push 0x409961
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40977c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409796
push 0x105
mov eax, dword [ebp - 4]
call fcn.004077ec
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40994b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409970
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409865
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409970
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409865
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4099ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409865
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4099ac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409865
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4099e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409865
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409a14
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40994b
xor eax, eax
push ebp
push 0x409944
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409548
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 0x4098d4
mov eax, dword [ebp - 0x10]
call fcn.004045bc
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.00407854
jmp 0x40991f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409a54
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40991f
mov eax, dword [ebp - 0x10]
call fcn.004045bc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409a54
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407854
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40994b
cmp dword [ebp - 8], 0
je 0x40993a
mov eax, dword [ebp - 8]
call fcn.004045d8
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 0x409968
lea eax, [ebp - 4]
call fcn.00406c38
ret
Function at 0x409c44
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.00406d1c
xor eax, eax
push ebp
push 0x409d04
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.00407890
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407a40
mov eax, dword [ebx]
call fcn.00409b0c
test al, al
jne 0x409ce1
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407890
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407a40
mov eax, dword [ebx]
call fcn.00409b0c
test al, al
jne 0x409ce1
mov eax, ebx
call fcn.00406c38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409d0b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406c98
lea eax, [ebp - 4]
call fcn.00406c38
ret

Function at 0x40a6c8
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 0x41dd80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41ddd9
test eax, edx
je 0x41dddc
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41dd97
movzx eax, word [eax]
sub eax, ecx
jmp 0x41ddbe
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 0x41ddbf
add ecx, 4
js 0x41ddaf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41ddbc
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41ddbe
xor eax, eax
ret
test eax, eax
je 0x41dde8
test edx, edx
jne 0x41dd88
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret