joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b470
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ca22
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x411020]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1a4], ecx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1a4]
add ecx, 0x8c
call fcn.004025d0
lea ecx, [ebp - 0x184]
push ecx
mov ecx, dword [ebp - 0x1a4]
add ecx, 0x8c
call fcn.00402600
push eax
lea ecx, [ebp - 0x14]
call fcn.00402ff0
movzx edx, al
test edx, edx
je 0x40b533
lea ecx, [ebp - 0x14]
call fcn.00403da0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x14]
call fcn.00403da0
mov ecx, dword [eax + 4]
push ecx
push str.InitDownloadData:StartNextDownTask_ver___d_taskID___d
call fcn.0040ad30
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.00403da0
mov edx, dword [eax]
push edx
mov eax, dword [ebp - 0x1a4]
mov ecx, dword [eax + 0x84]
mov edx, dword [ebp - 0x1a4]
mov eax, dword [edx + 0x84]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
jmp 0x40b62d
push 0x44
push 0
lea ecx, [ebp - 0x17c]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x17c], 0x44
mov dword [ebp - 0x150], 1
mov word [ebp - 0x14c], 5
mov byte [ebp - 0x124], 0
push 0x103
push 0
lea edx, [ebp - 0x123]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1a0]
push eax
call fcn.0040afd0
add esp, 4
mov dword [ebp - 0x1a8], eax
mov ecx, dword [ebp - 0x1a8]
mov dword [ebp - 0x1ac], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1ac]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push str._sReleasephysx27QQSpeed_Launch.exe
push 0x104
lea edx, [ebp - 0x124]
push edx
call fcn.00403950
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1a0]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x17c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x124]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x124]
push eax
push str.StartNextDownTask_CreateProcess___s:_d_
call fcn.0040ad30
add esp, 0xc
push 0
call dword [sym.imp.MSVCR80.dll_exit]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00405b7a
mov esp, ebp
pop ebp
ret
Function at 0x40bfb0
Capabilities:
Download url
Get common file path
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x411020]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov dword [ebp - 0x144], ecx
mov ecx, 0xb
mov esi, str.http:__speed.qq.com_home_tcls_QQSpeedVer.xml
lea edi, [ebp - 0x140]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x110]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x40e238
lea ecx, [ebp - 0x110]
push ecx
push 0x40e248
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
push str.Path:__S_n
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x140]
push edx
push 0
call sub.urlmon.dll_URLDownloadToFileA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40c066
push 0
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x144]
mov eax, dword [edx]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx]
call eax
jmp 0x40c07e
push 1
mov ecx, dword [ebp - 0x144]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax]
mov edx, dword [edx]
mov eax, dword [edx]
call eax
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00405b7a
mov esp, ebp
pop ebp
ret

Function at 0x40c090
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ca56
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x411020]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x140], ecx
lea eax, [ebp - 0x138]
push eax
call fcn.0040afd0
add esp, 4
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov cl, byte [0x40d90b]
mov byte [ebp - 0x11c], cl
push 0x103
push 0
lea edx, [ebp - 0x11b]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
push str._ver.ini
lea ecx, [ebp - 0x138]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push 0
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.MSVCR80.dll__makepath]
add esp, 0x14
push 0
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.MSVCR80.dll__access]
add esp, 8
test eax, eax
jne 0x40c158
lea edx, [ebp - 0x11c]
push edx
push 0
push str.version
push str.info
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00405b7a
mov esp, ebp
pop ebp
ret
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.004068c0
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.004069fc
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 0x405e08
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4db050], 0
je 0x405e69
cmp word [0x4db32c], 0xd7b2
jne 0x405e31
cmp dword [0x4db334], 0
jbe 0x405e31
mov eax, 0x4db328
call dword [0x4db344]
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 0x405e94
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d8030], 0
jne 0x405e85
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406014
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 [0x4d8034], 0
je 0x40603a
mov edx, esi
mov eax, ebx
call dword [0x4d8034]
jmp 0x406049
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4db051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405fdc
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 0x408664
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 0x4087cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004068c0
cmp si, word [0x4d87d0]
jb 0x4086fe
cmp si, word [0x4d89d0]
ja 0x4086fe
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4086fe
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4d87d0]
jae 0x4086d8
mov edi, ebx
dec edi
jmp 0x4086f9
cmp si, word [ebx*8 + 0x4d87d0]
jbe 0x4086e8
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4086f9
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4d87d4]
call fcn.00408574
jmp 0x4086fe
cmp edi, dword [ebp - 0xc]
jae 0x4086c2
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4087ad
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4087ad
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.00406aa8
push dword [ebp - 0x164]
push 0x4087e8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406aa8
push dword [ebp - 0x168]
push 0x4087f8
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406aa8
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406e60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4087d2
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004068b8
ret
Function at 0x4087fc
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x4089e2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4ddb58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x4ddb70]
cmp ax, word [ebp - 2]
jne 0x408854
mov eax, dword [ebp - 6]
mov edx, 0x4ddb74
mov ecx, 0x55
call fcn.00406aa8
push 0x4ddb58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4089cc
push 0x4ddb58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.004068c0
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408994
cmp byte [0x4ddb54], 0
je 0x40894a
call dword [0x4ddb4c]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x4ddb50]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x408943
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x4ddb48]
test al, al
je 0x40891c
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.004041d4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x4ddb48]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x408911
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x40890d
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x4088fa
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00406a6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408994
movzx eax, word [ebp - 0x16]
push eax
call dword [0x4ddb50]
cmp dword [ebp - 0x10], 0
je 0x408942
mov eax, dword [ebp - 0x10]
call fcn.004041f0
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.00408664
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x408994
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x408979
mov eax, dword [ebp - 6]
mov edx, 0x4089fc
call fcn.00406cbc
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.00408664
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00406cbc
mov eax, dword [ebp - 6]
push 0x4ddb58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x4ddb70], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.0040694c
push eax
push 0x4ddb74
call sub.kernel32.dll_lstrcpynW
push 0x4ddb58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4089e9
lea eax, [ebp - 0x1c]
call fcn.004068b0
ret
Function at 0x408c20
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.004068a8
xor eax, eax
push ebp
push 0x408e05
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408c60
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408c7a
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040694c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408def
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408e14
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408d09
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408e14
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408d09
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408e48
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408d09
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408e7c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408def
xor eax, eax
push ebp
push 0x408de8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408a24
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 0x408d78
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.00406a6c
jmp 0x408dc3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408ebc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408dc3
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 0x408ebc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406a6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408def
cmp dword [ebp - 8], 0
je 0x408dde
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 0x408e0c
lea eax, [ebp - 4]
call fcn.004068b0
ret
Function at 0x4090d0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.004068a8
mov eax, dword [ebp - 0x21c]
call fcn.004068a8
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40926f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.004068c0
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.0040694c
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x409170
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409182
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x40916d
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40923b
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x4091ab
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00408c20
cmp dword [ebp - 0x220], 0
je 0x4091e3
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00408fc4
pop ecx
mov ebx, eax
jmp 0x40923b
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004087fc
mov eax, dword [ebp - 0x224]
call fcn.00408fc4
pop ecx
mov ebx, eax
test bl, bl
jne 0x40922e
cmp byte [0x4ddb54], 0
jne 0x40922e
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004087fc
mov eax, dword [ebp - 0x228]
call fcn.00408fc4
pop ecx
mov ebx, eax
test bl, bl
jne 0x40923b
push ebp
call fcn.00409074
pop ecx
mov ebx, eax
test bl, bl
je 0x409251
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406aa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409276
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.004068b8
ret

Function at 0x4099e8
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 0x40cc4c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4ddc58
push 0xa
push 0x40cce0
mov eax, dword [0x4ddc3c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40cc70
call fcn.00419244
push ebx
mov eax, dword [0x4ddc3c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40cc87
call fcn.00419244
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40cc99
call fcn.00419244
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4ddc5c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4ddc60], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4ddc64], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4ddc68], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4ddc6c], ecx
add edx, dword [eax + 0x14]
mov dword [0x4ddc70], edx
pop esi
pop ebx
ret

Function at 0x411848
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4118f1
test eax, edx
je 0x4118f4
push 0
push 0
cmp word [eax - 0xa], 2
je 0x411871
push edx
mov edx, eax
mov eax, esp
call fcn.00406ac4
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x411887
push eax
lea eax, [esp + 8]
call fcn.00406ac4
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x411896
movzx eax, word [eax]
sub eax, ecx
jmp 0x4118bd
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 0x4118d7
add ecx, 4
js 0x4118ae
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x4118d4
push eax
mov eax, ecx
mov edx, 2
call fcn.004060b4
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4118bb
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4118bd
xor eax, eax
ret
test eax, eax
je 0x411904
test edx, edx
jne 0x411858
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x412c90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.0040694c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x412cae
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x412ccf
cmp ebx, 3
je 0x412ccf
cmp ebx, 0x7b
je 0x412ccf
mov eax, esi
call fcn.00412c50
test al, al
jne 0x412cd3
xor eax, eax
jmp 0x412cd5
mov al, 1
pop esi
pop ebx
ret

Function at 0x4162a8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4162e1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004069fc
jmp 0x4162ea
mov eax, ebx
mov edx, esi
call fcn.004068c0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4162f4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x416316
movzx eax, word [esp]
jmp 0x416318
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x416aa8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x416bcd
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004168b8
mov esi, eax
mov eax, dword [0x4da5c0]
cmp byte [eax], 0
je 0x416b75
mov eax, dword [0x4da334]
call fcn.0040467c
call fcn.0040433c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x416a80]
call fcn.0040808c
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x416be8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x416bb1
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4da2cc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ddc3c]
call fcn.00408180
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416bd4
lea eax, [ebp - 4]
mov edx, dword [0x416a80]
call fcn.00408098
ret