joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409fe0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x411538
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x20]
xor edi, edi
push eax
push ecx
mov dword [esp + 0x64], edi
call dword [sym.imp.USER32.dll_GetWindowRect]
push edi
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CWindowDC::CWindowDC
lea ecx, [esp + 0x30]
mov byte [esp + 0x5c], 1
call sub.MFC42.DLL_CDC::CDC
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], 0x412ec8
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x40]
neg eax
sbb eax, eax
mov byte [esp + 0x5c], 3
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
sub eax, edi
sub ecx, edx
mov edx, dword [esp + 0x44]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CGdiObject::Attach
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
and eax, ebp
push eax
mov eax, dword [esp + 0x38]
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
push 1
push ecx
lea edx, [esp + 0x70]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
mov edi, eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x28]
mov dword [eax + 0xc], edx
lea eax, [esp + 0x48]
push eax
push ecx
mov ecx, esi
call fcn.0040a520
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
test edi, edi
je 0x40a0f1
mov edi, dword [edi + 4]
mov edx, dword [esp + 0x34]
push edi
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CDC::DeleteDC
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov esi, dword [esp + 0x64]
mov dword [esp + 0x18], 0x412eb4
mov dword [esi], ebp
mov dword [esi + 4], ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x30]
mov dword [esp + 0x18], 0x412ea0
mov byte [esp + 0x5c], 1
call fcn.0041010a
lea ecx, [esp + 0x40]
mov byte [esp + 0x5c], 0
call fcn.00410158
lea ecx, [esp + 0x68]
mov dword [esp + 0x5c], 0xffffffff
call fcn.0040fe76
mov ecx, dword [esp + 0x54]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x50
ret 8
Function at 0x40c320
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x411730
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x28]
push edi
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextColor]
push eax
push 1
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CPen::CPen
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov edi, eax
push ebx
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x34]
push ebx
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
push edi
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0xc], 0x412eb4
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x40dbd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x411870
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
lea ecx, [esp + 0x38]
mov dword [esp + 0x68], ebx
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x70]
mov byte [esp + 0x68], 1
cmp eax, ebx
jne 0x40dc0f
mov dword [esp + 0x1c], ebx
jmp 0x40dc16
mov eax, dword [eax + 0x20]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x78]
lea eax, [esp + 0x74]
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x38], edx
call fcn.0040ffea
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x3c], ebx
cmp eax, ebx
je 0x40dc71
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
jmp 0x40dc7c
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov ecx, dword [esp + 0x1c]
sub esp, 0x44
mov esi, esp
mov dword [esp + 0xb4], esp
mov dword [esi], ecx
mov edx, dword [esp + 0x64]
mov dword [esi + 4], edx
mov ecx, dword [esp + 0x68]
lea eax, [esi + 8]
mov dword [esi + 8], ecx
mov edx, dword [esp + 0x6c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x74]
lea ecx, [esp + 0x7c]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x78]
push ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x18], eax
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x80]
mov dword [esi + 0x20], edx
mov eax, dword [esp + 0x84]
mov dword [esi + 0x24], eax
mov ecx, dword [esp + 0x88]
mov dword [esi + 0x28], ecx
mov edx, dword [esp + 0x8c]
mov dword [esi + 0x2c], edx
mov eax, dword [esp + 0x90]
mov dword [esi + 0x30], eax
mov cl, byte [esp + 0x94]
mov byte [esi + 0x34], cl
mov edx, dword [esp + 0x98]
mov dword [esi + 0x38], edx
mov eax, dword [esp + 0x9c]
mov dword [esi + 0x3c], eax
mov ecx, dword [esp + 0xa0]
mov dword [esi + 0x40], ecx
mov ecx, edi
call fcn.0040ddd0
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], bl
call fcn.0040fe76
lea ecx, [esp + 0x74]
mov dword [esp + 0x68], 0xffffffff
call fcn.0040fe76
mov ecx, dword [esp + 0x60]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret 0x14
Function at 0x40e350
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x411928
push eax
mov dword fs:[0], esp
sub esp, 0x44
push esi
push edi
mov edi, dword [esp + 0x5c]
mov esi, ecx
push edi
call fcn.0040e4a0
test eax, eax
jne 0x40e38d
pop edi
pop esi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 8
lea eax, [esp + 8]
push edi
push eax
lea ecx, [esi + 0x40]
call fcn.0040e730
mov esi, eax
mov edi, dword [esp + 0x60]
mov ecx, dword [esi]
lea eax, [esi + 8]
mov dword [esp + 0x54], 0
mov dword [edi], ecx
mov edx, dword [esi + 4]
mov dword [edi + 4], edx
mov edx, dword [eax]
lea ecx, [edi + 8]
mov dword [edi + 8], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
lea edx, [esi + 0x1c]
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x18]
mov dword [edi + 0x18], ecx
push edx
lea ecx, [edi + 0x1c]
call fcn.0040ffea
mov eax, dword [esi + 0x20]
mov dword [esp + 0x54], 0xffffffff
mov dword [edi + 0x20], eax
mov ecx, dword [esi + 0x24]
mov dword [edi + 0x24], ecx
mov edx, dword [esi + 0x28]
mov dword [edi + 0x28], edx
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x2c], eax
mov ecx, dword [esi + 0x30]
mov dword [edi + 0x30], ecx
mov dl, byte [esi + 0x34]
mov byte [edi + 0x34], dl
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov ecx, dword [esi + 0x3c]
mov dword [edi + 0x3c], ecx
mov edx, dword [esi + 0x40]
lea ecx, [esp + 0x24]
mov dword [edi + 0x40], edx
call fcn.0040fe76
mov ecx, dword [esp + 0x4c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x50
ret 8

Function at 0x40e7d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x411998
push eax
mov dword fs:[0], esp
push esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], 0
mov edx, eax
shl edx, 4
add edx, eax
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x18]
lea esi, [eax + edx*4]
mov dword [esi], ecx
mov edx, dword [esp + 0x1c]
mov dword [esi + 4], edx
mov ecx, dword [esp + 0x20]
lea eax, [esi + 8]
mov dword [esi + 8], ecx
mov edx, dword [esp + 0x24]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x30]
push ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x18], eax
call fcn.0040ffea
mov edx, dword [esp + 0x38]
mov dword [esp + 0xc], 0xffffffff
mov dword [esi + 0x20], edx
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x24], eax
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x28], ecx
mov edx, dword [esp + 0x44]
mov dword [esi + 0x2c], edx
mov eax, dword [esp + 0x48]
mov dword [esi + 0x30], eax
mov cl, byte [esp + 0x4c]
mov byte [esi + 0x34], cl
mov edx, dword [esp + 0x50]
mov dword [esi + 0x38], edx
mov eax, dword [esp + 0x54]
mov dword [esi + 0x3c], eax
mov ecx, dword [esp + 0x58]
mov dword [esi + 0x40], ecx
lea ecx, [esp + 0x34]
call fcn.0040fe76
mov ecx, dword [esp + 4]
pop esi
mov dword fs:[0], ecx
add esp, 0xc
ret 0x48
Function at 0x40e8b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4119b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [esp + 0x20]
mov ebx, dword [edi + 8]
sub esp, 0x44
mov dword [esp + 0x5c], 0
mov esi, esp
mov dword [esp + 0x50], esp
mov dword [esi], eax
mov ecx, dword [esp + 0x68]
mov dword [esi + 4], ecx
mov eax, dword [esp + 0x6c]
lea edx, [esi + 8]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x70]
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x74]
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0x80]
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x7c]
push eax
lea ecx, [esi + 0x1c]
mov dword [esi + 0x18], edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x84]
push ebx
mov dword [esi + 0x20], ecx
mov edx, dword [esp + 0x8c]
mov dword [esi + 0x24], edx
mov eax, dword [esp + 0x90]
mov dword [esi + 0x28], eax
mov ecx, dword [esp + 0x94]
mov dword [esi + 0x2c], ecx
mov edx, dword [esp + 0x98]
mov dword [esi + 0x30], edx
mov al, byte [esp + 0x9c]
mov byte [esi + 0x34], al
mov ecx, dword [esp + 0xa0]
mov dword [esi + 0x38], ecx
mov edx, dword [esp + 0xa4]
mov dword [esi + 0x3c], edx
mov eax, dword [esp + 0xa8]
mov ecx, edi
mov dword [esi + 0x40], eax
call fcn.0040ef00
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], 0xffffffff
call fcn.0040fe76
mov ecx, dword [esp + 0x10]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 0x44
Function at 0x404570
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.00406ddc
test esi, esi
jne 0x4045a8
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.00406f18
jmp 0x4045c6
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044b4
mov edi, eax
test esi, esi
je 0x4045c6
cmp dword [ebx], 0
je 0x4045c6
dec esi
jmp 0x4045af
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405e3c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x565054], 0
je 0x405e9d
cmp word [0x565330], 0xd7b2
jne 0x405e65
cmp dword [0x565338], 0
jbe 0x405e65
mov eax, 0x56532c
call dword [0x565348]
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 0x405ec8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x54e030], 0
jne 0x405eb9
push 0
push 0x54e794
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406048
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 [0x54e034], 0
je 0x40606e
mov edx, esi
mov eax, ebx
call dword [0x54e034]
jmp 0x40607d
mov eax, 8
call fcn.004041fc
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x565055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406010
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 0x408ca8
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 0x408e0f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406ddc
cmp si, word [0x54e7dc]
jb 0x408d42
cmp si, word [0x54e9dc]
ja 0x408d42
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408d42
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x54e7dc]
jae 0x408d1c
mov edi, ebx
dec edi
jmp 0x408d3d
cmp si, word [ebx*8 + 0x54e7dc]
jbe 0x408d2c
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408d3d
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x54e7e0]
call fcn.00408bb8
jmp 0x408d42
cmp edi, dword [ebp - 0xc]
jae 0x408d06
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408df1
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408df1
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.00406fec
push dword [ebp - 0x164]
push 0x408e2c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406fec
push dword [ebp - 0x168]
push 0x408e3c
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406fec
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004073a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e16
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406dd4
ret
Function at 0x408fc8
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 0x4090cd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x567b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x567b74]
jne 0x409014
mov eax, esi
mov edx, 0x567b78
mov ecx, 0x55
call fcn.00406fec
push 0x567b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4090b7
push 0x567b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406ddc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409085
cmp byte [0x567b58], 0
je 0x40904a
mov edx, esi
mov eax, ebx
call fcn.00408ea8
jmp 0x409085
mov edx, esi
mov eax, ebx
call fcn.00408ca8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409085
cmp dword [esi], 0
je 0x40906e
mov eax, esi
mov edx, 0x4090e8
call fcn.00407200
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408ca8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407200
push 0x567b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x567b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406e68
push eax
push 0x567b78
call sub.kernel32.dll_lstrcpynW
push 0x567b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4090d4
lea eax, [ebp - 4]
call fcn.00406dcc
ret
Function at 0x40930c
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.00406dc4
xor eax, eax
push ebp
push 0x4094f1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40934c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409366
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406e68
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4094db
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409500
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4093f5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409500
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4093f5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409534
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4093f5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409568
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4094db
xor eax, eax
push ebp
push 0x4094d4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409110
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 0x409464
mov eax, dword [ebp - 0x10]
call fcn.004041fc
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.00406f98
jmp 0x4094af
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4095a8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4094af
mov eax, dword [ebp - 0x10]
call fcn.004041fc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4095a8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406f98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4094db
cmp dword [ebp - 8], 0
je 0x4094ca
mov eax, dword [ebp - 8]
call fcn.00404218
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 0x4094f8
lea eax, [ebp - 4]
call fcn.00406dcc
ret
Function at 0x4097bc
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.00406dc4
mov eax, dword [ebp - 0x21c]
call fcn.00406dc4
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40995b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406ddc
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406e68
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 0x40985c
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40986e
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409859
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409927
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 0x409897
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.0040930c
cmp dword [ebp - 0x220], 0
je 0x4098cf
push ebp
mov eax, dword [ebp - 0x220]
call fcn.004096b0
pop ecx
mov ebx, eax
jmp 0x409927
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408fc8
mov eax, dword [ebp - 0x224]
call fcn.004096b0
pop ecx
mov ebx, eax
test bl, bl
jne 0x40991a
cmp byte [0x567b58], 0
jne 0x40991a
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408fc8
mov eax, dword [ebp - 0x228]
call fcn.004096b0
pop ecx
mov ebx, eax
test bl, bl
jne 0x409927
push ebp
call fcn.00409760
pop ecx
mov ebx, eax
test bl, bl
je 0x40993d
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406fec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409962
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406dd4
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x567c50
push 0xa
push 0x40d584
mov eax, dword [0x567c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40d514
call fcn.0041a810
push ebx
mov eax, dword [0x567c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40d52b
call fcn.0041a810
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d53d
call fcn.0041a810
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x567c54], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x567c58], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x567c5c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x567c60], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x567c64], ecx
add edx, dword [eax + 0x14]
mov dword [0x567c68], edx
pop esi
pop ebx
ret

Function at 0x4123e4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41248d
test eax, edx
je 0x412490
push 0
push 0
cmp word [eax - 0xa], 2
je 0x41240d
push edx
mov edx, eax
mov eax, esp
call fcn.00407008
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x412423
push eax
lea eax, [esp + 8]
call fcn.00407008
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x412432
movzx eax, word [eax]
sub eax, ecx
jmp 0x412459
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 0x412473
add ecx, 4
js 0x41244a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x412470
push eax
mov eax, ecx
mov edx, 2
call fcn.004060e8
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x412457
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x412459
xor eax, eax
ret
test eax, eax
je 0x4124a0
test edx, edx
jne 0x4123f4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406e68
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41383e
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41385f
cmp ebx, 3
je 0x41385f
cmp ebx, 0x7b
je 0x41385f
mov eax, esi
call fcn.004137e0
test al, al
jne 0x413863
xor eax, eax
jmp 0x413865
mov al, 1
pop esi
pop ebx
ret

Function at 0x4178cc
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 0x417905
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406f18
jmp 0x41790e
mov eax, ebx
mov edx, esi
call fcn.00406ddc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4