joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b3a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41671c
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
mov eax, dword [0x42601c]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x54], ebx
mov esi, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
call fcn.0040abe0
mov dword [esp + 0x54], ebx
push str.K8BugReport.exe
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push esi
push ecx
mov dword [esp + 0x60], 1
call sub.K8Common.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_GameMgr::GMFileName::JoinFileName_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 0xc
push eax
mov ecx, esi
mov byte [esp + 0x58], 2
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x4c
ret
Function at 0x4149a0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42601c]
jne 0x4149aa
repz ret
jmp fcn.00414e1c
Function at 0x10001ab0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
push ecx
push 0
push 0
mov edx, 3
mov word [esp + 0x50], 0x6261
lea ecx, [esp + 0x50]
mov byte [esp + 0x52], 0x63
call fcn.10001730
add esp, 0xc
push eax
call fcn.100070b2
lea eax, [esp + 4]
mov dword [esp + 4], 0x3020100
push 0x40
push eax
xor edx, edx
mov dword [esp + 0x10], 0x7060504
xor ecx, ecx
mov dword [esp + 0x14], 0xb0a0908
mov dword [esp + 0x18], 0xf0e0d0c
mov dword [esp + 0x1c], 0x13121110
mov dword [esp + 0x20], 0x17161514
mov dword [esp + 0x24], 0x1b1a1918
mov dword [esp + 0x28], 0x1f1e1d1c
mov dword [esp + 0x2c], 0x23222120
mov dword [esp + 0x30], 0x27262524
mov dword [esp + 0x34], 0x2b2a2928
mov dword [esp + 0x38], 0x2f2e2d2c
mov dword [esp + 0x3c], 0x33323130
mov dword [esp + 0x40], 0x37363534
mov dword [esp + 0x44], 0x3b3a3938
mov dword [esp + 0x48], 0x3f3e3d3c
call fcn.10001730
add esp, 0xc
push eax
call fcn.100070b2
lea eax, [esp + 4]
mov byte [esp + 0x47], 0
push 0x40
push eax
mov edx, 1
mov dword [esp + 0xc], 0x3020100
lea ecx, [esp + 0x4f]
mov dword [esp + 0x10], 0x7060504
mov dword [esp + 0x14], 0xb0a0908
mov dword [esp + 0x18], 0xf0e0d0c
mov dword [esp + 0x1c], 0x13121110
mov dword [esp + 0x20], 0x17161514
mov dword [esp + 0x24], 0x1b1a1918
mov dword [esp + 0x28], 0x1f1e1d1c
mov dword [esp + 0x2c], 0x23222120
mov dword [esp + 0x30], 0x27262524
mov dword [esp + 0x34], 0x2b2a2928
mov dword [esp + 0x38], 0x2f2e2d2c
mov dword [esp + 0x3c], 0x33323130
mov dword [esp + 0x40], 0x37363534
mov dword [esp + 0x44], 0x3b3a3938
mov dword [esp + 0x48], 0x3f3e3d3c
call fcn.10001730
add esp, 0xc
push eax
call fcn.100070b2
mov dword [esp + 0x4c], 0x3020100
mov dword [esp + 0x50], 0x7060504
mov dword [esp + 0x54], 0xb0a0908
mov dword [esp + 0x58], 0xf0e0d0c
mov dword [esp + 0x5c], 0x13121110
mov dword [esp + 0x60], 0x17161514
mov dword [esp + 0x64], 0x1b1a1918
mov dword [esp + 0x68], 0x1f1e1d1c
mov dword [esp + 0x6c], 0x23222120
mov dword [esp + 0x70], 0x27262524
mov dword [esp + 0x74], 0x2b2a2928
mov dword [esp + 0x78], 0x2f2e2d2c
mov dword [esp + 0x7c], 0x33323130
mov dword [esp + 0x80], 0x37363534
mov dword [esp + 0x84], 0x3b3a3938
mov dword [esp + 0x88], 0x3f3e3d3c
mov dword [esp + 4], 0x3020100
mov dword [esp + 8], 0x7060504
mov dword [esp + 0xc], 0xb0a0908
lea eax, [esp + 4]
mov dword [esp + 0x10], 0xf0e0d0c
push 0x40
push eax
mov edx, 0x40
mov dword [esp + 0x1c], 0x13121110
lea ecx, [esp + 0x54]
mov dword [esp + 0x20], 0x17161514
mov dword [esp + 0x24], 0x1b1a1918
mov dword [esp + 0x28], 0x1f1e1d1c
mov dword [esp + 0x2c], 0x23222120
mov dword [esp + 0x30], 0x27262524
mov dword [esp + 0x34], 0x2b2a2928
mov dword [esp + 0x38], 0x2f2e2d2c
mov dword [esp + 0x3c], 0x33323130
mov dword [esp + 0x40], 0x37363534
mov dword [esp + 0x44], 0x3b3a3938
mov dword [esp + 0x48], 0x3f3e3d3c
call fcn.10001730
add esp, 0xc
push eax
call fcn.100070b2
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x10002050
Capabilities:
Check mutex on windows
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x214]
mov dword [ebp - 0x218], 0x104
push 0
push eax
call fcn.10003230
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
call fcn.10001050
xor eax, eax
nop
mov cl, byte [eax + str.aefd_]
test cl, cl
je 0x100020b7
mov byte [ebp + eax - 0x110], cl
inc eax
cmp eax, 5
jb 0x100020a0
mov byte [ebp + eax - 0x110], 0
call fcn.10001050
cmp byte [ebp - 0x110], 0
lea eax, [ebp - 0x110]
je 0x100020d9
inc eax
cmp byte [eax], 0
jne 0x100020d3
mov cl, byte [ebp - 0x214]
lea edx, [ebp - 0x214]
sub edx, eax
mov byte [eax], cl
lea eax, [eax + 1]
mov cl, byte [edx + eax]
test cl, cl
jne 0x100020e7
mov byte [eax], cl
lea eax, [ebp - 0x110]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call fcn.10001050
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000212d
call fcn.10001050
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000223c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.1000223c
mov esp, ebp
pop ebp
ret

Function at 0x10002140
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.10001050
call fcn.10001ab0
call fcn.10002050
test eax, eax
jne 0x10002178
call fcn.10001050
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000223c
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
push str.msvcrt.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xc], eax
call fcn.10001050
call fcn.10001d60
mov ebx, eax
call fcn.10001ab0
call fcn.10001050
lea eax, [ebp - 8]
push eax
push 0x40
push 0x3000
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.10001ab0
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
call fcn.10001050
push str.NtTestAlert
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
call fcn.10001ab0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
call fcn.10001050
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
call fcn.10001ab0
call fcn.10001050
call edi
cmp dword [ebp - 0xc], 0
pop edi
pop esi
pop ebx
jne 0x10002211
call fcn.10001050
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000223c
mov esp, ebp
pop ebp
ret

Function at 0x100072f0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000732f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000732f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000732f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000732f
cmp dword [ecx + 0x74], 0xe
jbe 0x1000732f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000852f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100155f0
push 0x100155e8
push str.FlsAlloc
push 0x1f
call fcn.1000844b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10008563
push dword [ebp + 8]
mov ecx, esi
call dword [0x10014138]
call esi
jmp 0x10008569
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100085ad
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015600
push 0x100155f8
push str.FlsGetValue
push 0x21
call fcn.1000844b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100085e4
push dword [ebp + 8]
mov ecx, esi
call dword [0x10014138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100085ec
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015608
push 0x10015600
push str.FlsSetValue
push 0x22
call fcn.1000844b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10008626
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10014138]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000bd42
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000bddf
push ebx
push esi
call fcn.1000bd0b
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000bc9f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000bd8c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000bdde
push edi
push eax
call fcn.10008cde
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000bdac
call fcn.100082f8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000bddd
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000bc9f
add esp, 0x20
test eax, eax
jne 0x1000bdcb
push edi
call fcn.100082f8
jmp 0x1000bdd3
push ebx
call fcn.100082f8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10013540
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001356d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001356d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4045a8
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.00406a60
test esi, esi
jne 0x4045e0
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.00406b9c
jmp 0x4045fe
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x4045fe
cmp dword [ebx], 0
je 0x4045fe
dec esi
jmp 0x4045e7
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405e74
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ec054], 0
je 0x405ed5
cmp word [0x4ec330], 0xd7b2
jne 0x405e9d
cmp dword [0x4ec338], 0
jbe 0x405e9d
mov eax, 0x4ec32c
call dword [0x4ec348]
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 0x405f00
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e5030], 0
jne 0x405ef1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406060
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 [0x4e5034], 0
je 0x406086
mov edx, esi
mov eax, ebx
call dword [0x4e5034]
jmp 0x406095
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4ec055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406028
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 0x4088f8
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 0x408a5f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406a60
cmp si, word [0x4e57dc]
jb 0x408992
cmp si, word [0x4e59dc]
ja 0x408992
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408992
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4e57dc]
jae 0x40896c
mov edi, ebx
dec edi
jmp 0x40898d
cmp si, word [ebx*8 + 0x4e57dc]
jbe 0x40897c
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x40898d
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4e57e0]
call fcn.00408808
jmp 0x408992
cmp edi, dword [ebp - 0xc]
jae 0x408956
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408a41
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408a41
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.00406c60
push dword [ebp - 0x164]
push 0x408a7c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406c60
push dword [ebp - 0x168]
push 0x408a8c
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406c60
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407018
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a66
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406a58
ret
Function at 0x408c18
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 0x408d1d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4eeb5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4eeb74]
jne 0x408c64
mov eax, esi
mov edx, 0x4eeb78
mov ecx, 0x55
call fcn.00406c60
push 0x4eeb5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408d07
push 0x4eeb5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406a60
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408cd5
cmp byte [0x4eeb58], 0
je 0x408c9a
mov edx, esi
mov eax, ebx
call fcn.00408af8
jmp 0x408cd5
mov edx, esi
mov eax, ebx
call fcn.004088f8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408cd5
cmp dword [esi], 0
je 0x408cbe
mov eax, esi
mov edx, 0x408d38
call fcn.00406e74
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004088f8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406e74
push 0x4eeb5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4eeb74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406aec
push eax
push 0x4eeb78
call sub.kernel32.dll_lstrcpynW
push 0x4eeb5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d24
lea eax, [ebp - 4]
call fcn.00406a50
ret
Function at 0x408f5c
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.00406a48
xor eax, eax
push ebp
push 0x409141
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408f9c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408fb6
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406aec
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40912b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409150
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409045
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409150
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409045
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409184
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409045
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4091b8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40912b
xor eax, eax
push ebp
push 0x409124
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408d60
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 0x4090b4
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.00406c0c
jmp 0x4090ff
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4091f8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4090ff
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 0x4091f8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406c0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40912b
cmp dword [ebp - 8], 0
je 0x40911a
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 0x409148
lea eax, [ebp - 4]
call fcn.00406a50
ret
Function at 0x40940c
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.00406a48
mov eax, dword [ebp - 0x21c]
call fcn.00406a48
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x4095ab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406a60
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406aec
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 0x4094ac
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4094be
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4094a9
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409577
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 0x4094e7
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.00408f5c
cmp dword [ebp - 0x220], 0
je 0x40951f
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409300
pop ecx
mov ebx, eax
jmp 0x409577
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408c18
mov eax, dword [ebp - 0x224]
call fcn.00409300
pop ecx
mov ebx, eax
test bl, bl
jne 0x40956a
cmp byte [0x4eeb58], 0
jne 0x40956a
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408c18
mov eax, dword [ebp - 0x228]
call fcn.00409300
pop ecx
mov ebx, eax
test bl, bl
jne 0x409577
push ebp
call fcn.004093b0
pop ecx
mov ebx, eax
test bl, bl
je 0x40958d
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406c60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4095b2
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406a58
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x4eec50
push 0xa
push 0x40cb14
mov eax, dword [0x4eec40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40caa4
call fcn.00419620
push ebx
mov eax, dword [0x4eec40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40cabb
call fcn.00419620
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40cacd
call fcn.00419620
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4eec54], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4eec58], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4eec5c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4eec60], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4eec64], ecx
add edx, dword [eax + 0x14]
mov dword [0x4eec68], edx
pop esi
pop ebx
ret

Function at 0x4116c8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x411771
test eax, edx
je 0x411774
push 0
push 0
cmp word [eax - 0xa], 2
je 0x4116f1
push edx
mov edx, eax
mov eax, esp
call fcn.00406c7c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x411707
push eax
lea eax, [esp + 8]
call fcn.00406c7c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x411716
movzx eax, word [eax]
sub eax, ecx
jmp 0x41173d
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 0x411757
add ecx, 4
js 0x41172e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x411754
push eax
mov eax, ecx
mov edx, 2
call fcn.00406100
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41173b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41173d
xor eax, eax
ret
test eax, eax
je 0x411784
test edx, edx
jne 0x4116d8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406aec
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x412a92
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x412ab3
cmp ebx, 3
je 0x412ab3
cmp ebx, 0x7b
je 0x412ab3
mov eax, esi
call fcn.00412a34
test al, al
jne 0x412ab7
xor eax, eax
jmp 0x412ab9
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406aec
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x412ad5
test al, 0x10
jne 0x412ad9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret