joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a05b4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x5a05ff
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.005a074d
test al, al
jne 0x5a05f9
sub edx, 2
cmp edx, edi
jne 0x5a05df
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5a0621
lea eax, [edi + 2]
cmp edx, eax
je 0x5a0621
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.005a0500
add esp, 0x10
jmp 0x5a0719
push esi
lea ecx, [ebp - 0x255]
call fcn.005a074d
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5a0662
push dword [ebp - 0x25c]
jmp 0x5a0611
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x5a069f
cmp word [ebp - 0x226], 0
je 0x5a06c0
cmp word [ebp - 0x226], ax
jne 0x5a069f
cmp word [ebp - 0x224], 0
je 0x5a06c0
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.005a0500
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x5a070c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5a0679
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x5a06f4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x5a0719
push 0x5a0330
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0058def0
add esp, 0x10
jmp 0x5a06e9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00583f7f
leave
ret

Function at 0x5a5120
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5a514d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5a514d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x13c
mov eax, dword [0x404008]
xor eax, esp
mov dword [esp + 0x138], eax
push esi
lea eax, [esp + 8]
mov dword [esp + 4], 0
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionOpenWith
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
push reloc.OLEAUT32.dll_SysReAllocString
movaps xmmword [esp + 0x34], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401191
mov esi, dword [esp + 8]
test esi, esi
je 0x401191
push pe_nt_image_headers32
push eax
lea eax, [esp + 0x40]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x1c], pe_nt_image_headers32
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0x403224
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401191
lea ecx, [esp + 0x38]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401130
sub ecx, edx
sar ecx, 1
cmp ecx, 0x26
jne 0x401191
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
js 0x401191
lea eax, [esp + 4]
mov dword [esp + 0xc], 0x6a283fe2
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0x4599ecfa
push eax
push 4
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x24], 0x9e8c491
push eax
mov dword [esp + 0x2c], 0x267b1357
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 4]
pop esi
xor ecx, esp
call fcn.004012f0
mov esp, ebp
pop ebp
ret

Function at 0x4011b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push 2
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
call fcn.00401080
mov ebx, eax
push 0
push ebx
call dword [sym.imp.ole32.dll_CoAllowSetForegroundWindow]
push str..pdf
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
je 0x401232
mov edi, dword [ebx]
push 4
push esi
push dword [ebp - 4]
mov edi, dword [edi + 0xc]
mov ecx, edi
push ebx
call dword [0x403110]
call edi
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x403110]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x8007000e
call fcn.00401030
int3

Function at 0x40892e
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push 0x4085d8
pop edi
sub eax, eax
call fcn.0040894b
add eax, 0xb69db1d5
xor dword [edx], edi
inc edx
cmp edx, esi
jne fcn.0040892e
sub ebx, ebx
ret
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.00406ac4
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.00406c00
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 0x405e90
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x546054], 0
je 0x405ef1
cmp word [0x546330], 0xd7b2
jne 0x405eb9
cmp dword [0x546338], 0
jbe 0x405eb9
mov eax, 0x54632c
call dword [0x546348]
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 0x405f1c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x53d030], 0
jne 0x405f0d
push 0
push 0x53d794
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40609c
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 [0x53d034], 0
je 0x4060c2
mov edx, esi
mov eax, ebx
call dword [0x53d034]
jmp 0x4060d1
mov eax, 8
call fcn.004041f0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x546055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406064
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 0x408964
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 0x408acb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406ac4
cmp si, word [0x53d7d0]
jb 0x4089fe
cmp si, word [0x53d9d0]
ja 0x4089fe
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4089fe
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x53d7d0]
jae 0x4089d8
mov edi, ebx
dec edi
jmp 0x4089f9
cmp si, word [ebx*8 + 0x53d7d0]
jbe 0x4089e8
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4089f9
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x53d7d4]
call fcn.00408874
jmp 0x4089fe
cmp edi, dword [ebp - 0xc]
jae 0x4089c2
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408aad
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408aad
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.00406cd4
push dword [ebp - 0x164]
push 0x408ae8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406cd4
push dword [ebp - 0x168]
push 0x408af8
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406cd4
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.0040708c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ad2
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406abc
ret
Function at 0x408afc
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 0x408ce2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x548b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x548b74]
cmp ax, word [ebp - 2]
jne 0x408b54
mov eax, dword [ebp - 6]
mov edx, 0x548b78
mov ecx, 0x55
call fcn.00406cd4
push 0x548b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408ccc
push 0x548b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.00406ac4
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408c94
cmp byte [0x548b58], 0
je 0x408c4a
call dword [0x548b50]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x548b54]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x408c43
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 [0x548b4c]
test al, al
je 0x408c1c
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.004041f0
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 [0x548b4c]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x408c11
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x408c0d
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x408bfa
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00406c80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c94
movzx eax, word [ebp - 0x16]
push eax
call dword [0x548b54]
cmp dword [ebp - 0x10], 0
je 0x408c42
mov eax, dword [ebp - 0x10]
call fcn.0040420c
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.00408964
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x408c94
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x408c79
mov eax, dword [ebp - 6]
mov edx, 0x408cfc
call fcn.00406ee8
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.00408964
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00406ee8
mov eax, dword [ebp - 6]
push 0x548b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x548b74], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00406b50
push eax
push 0x548b78
call sub.kernel32.dll_lstrcpynW
push 0x548b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ce9
lea eax, [ebp - 0x1c]
call fcn.00406ab4
ret
Function at 0x408f20
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.00406aac
xor eax, eax
push ebp
push 0x409105
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408f60
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408f7a
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406b50
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4090ef
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409114
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409009
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409114
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409009
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409148
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409009
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40917c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4090ef
xor eax, eax
push ebp
push 0x4090e8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408d24
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 0x409078
mov eax, dword [ebp - 0x10]
call fcn.004041f0
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.00406c80
jmp 0x4090c3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4091bc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4090c3
mov eax, dword [ebp - 0x10]
call fcn.004041f0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4091bc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406c80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4090ef
cmp dword [ebp - 8], 0
je 0x4090de
mov eax, dword [ebp - 8]
call fcn.0040420c
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 0x40910c
lea eax, [ebp - 4]
call fcn.00406ab4
ret
Function at 0x4093d0
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.00406aac
mov eax, dword [ebp - 0x21c]
call fcn.00406aac
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40956f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406ac4
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406b50
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 0x409470
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409482
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x40946d
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40953b
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 0x4094ab
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.00408f20
cmp dword [ebp - 0x220], 0
je 0x4094e3
push ebp
mov eax, dword [ebp - 0x220]
call fcn.004092c4
pop ecx
mov ebx, eax
jmp 0x40953b
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408afc
mov eax, dword [ebp - 0x224]
call fcn.004092c4
pop ecx
mov ebx, eax
test bl, bl
jne 0x40952e
cmp byte [0x548b58], 0
jne 0x40952e
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408afc
mov eax, dword [ebp - 0x228]
call fcn.004092c4
pop ecx
mov ebx, eax
test bl, bl
jne 0x40953b
push ebp
call fcn.00409374
pop ecx
mov ebx, eax
test bl, bl
je 0x409551
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406cd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409576
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406abc
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x548c50
push 0xa
push 0x40cbf8
mov eax, dword [0x548c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40cb88
call fcn.0041a318
push ebx
mov eax, dword [0x548c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40cb9f
call fcn.0041a318
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40cbb1
call fcn.0041a318
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x548c54], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x548c58], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x548c5c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x548c60], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x548c64], ecx
add edx, dword [eax + 0x14]
mov dword [0x548c68], edx
pop esi
pop ebx
ret

Function at 0x411b70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x411c19
test eax, edx
je 0x411c1c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x411b99
push edx
mov edx, eax
mov eax, esp
call fcn.00406cf0
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x411baf
push eax
lea eax, [esp + 8]
call fcn.00406cf0
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x411bbe
movzx eax, word [eax]
sub eax, ecx
jmp 0x411be5
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 0x411bff
add ecx, 4
js 0x411bd6
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x411bfc
push eax
mov eax, ecx
mov edx, 2
call fcn.0040613c
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x411be3
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x411be5
xor eax, eax
ret
test eax, eax
je 0x411c2c
test edx, edx
jne 0x411b80
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406b50
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41313e
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41315f
cmp ebx, 3
je 0x41315f
cmp ebx, 0x7b
je 0x41315f
mov eax, esi
call fcn.004130e0
test al, al
jne 0x413163
xor eax, eax
jmp 0x413165
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406b50
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x413181
test al, 0x10
jne 0x413185
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4173d4
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 0x41740d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406c00
jmp 0x417416
mov eax, ebx
mov edx, esi
call fcn.00406ac4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x417420
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 0x417442
movzx eax, word [esp]
jmp 0x417444
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x417bd4
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 0x417cf9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004179e4
mov esi, eax
mov eax, dword [0x544e94]
cmp byte [eax], 0
je 0x417ca1
mov eax, dword [0x544a04]
call fcn.00404704
call fcn.00404358
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 [0x417bac]
call fcn.0040838c
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 0x417d14
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x417cdd
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x544960]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x548c40]
call fcn.00408480
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 0x417d00
lea eax, [ebp - 4]
mov edx, dword [0x417bac]
call fcn.00408398
ret