joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x84], 0
call fcn.00401902
mov esi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, esi
or al, 0x40
push eax
lea eax, [0x404415]
lea edx, [fcn.00401974]
sub eax, edx
push eax
push fcn.00401974
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x401341
push esi
call fcn.004017e8
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.00401832
mov eax, esi
add eax, 0x1cc00
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x88]
mov ecx, esi
inc ecx
cdq
idiv ecx
push eax
lea edi, [0x4060e4]
mov eax, esi
lea ebx, [0x4060e4]
or bl, 1
mul ebx
mov dword [ebp - 0x8c], eax
mov ebx, eax
sub edi, eax
push edi
call fcn.00401974
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401902
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x118], 0
xor edi, edi
mov dword [ebp - 0x114], 0xa
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10e]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringA
call sub.KERNEL32.dll_GetLastError
push 0
push 0
call sub.SHLWAPI.DLL_PathAppendA
movsx edi, byte [ebp - 0x10e]
sub edi, 0x41
mov eax, edi
pop edi
leave
ret

Function at 0x5d8e4a
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x5d8b64
add ebx, esi
sub ebx, 0xc7d4c62b
call fcn.005d8e8b
sub esi, ebx
and esi, esi
xor dword [edi], edx
or esi, esi
inc esi
or ebx, ebx
add edi, 2
inc ebx
sub ebx, 0x553caf5
sub ebx, esi
cmp edi, eax
jl fcn.005d8e4a
add ebx, 1
sub esi, 0xe2fffe5a
ret
Function at 0x4d9074
Capabilities:
Execute anti-debugging instructions

Disassembly:
push edx
pop dword [esp + 0xa]
push dword [esp + 4]
pop dword [esp + 8]
jmp 0x4d90b9
push dword [esp + 6]
push dword [esp + 8]
mov byte [esp + 8], bh
jmp 0x4d905b
mov dword [esp + 0xd0], esi
call fcn.004d909a
lea esp, [esp + 0xd8]
jmp 0x4d9128
jmp 0x4d916f
jmp 0x4d914f
lea esi, [esp + 0x20]
not edi
sub esp, 0xa
jne 0x4d9139
je 0x4d9158
pushfd
cpuid
pushal
inc di
jne 0x4d9108
lea edx, [ebp*4]
jmp 0x4d9176
add al, dh
not bh
lea esp, [esp + 2]
jmp 0x4d9188
xchg bh, cl
lea edx, [eax - 0x51]
mov edx, esi
jmp 0x4d910c
add al, dh
not bh
lea esp, [esp + 2]
jmp 0x4d9188
lea edx, [ebp*4]
mov ebp, dword [esp + 0x48]
btr edi, esp
jae 0x4d910a
xchg bh, cl
lea edx, [eax - 0x51]
mov edx, esi
jmp 0x4d910c
sub esp, 0x98
mov edi, esp
setg dh
lea eax, [edi + ebp]
jmp 0x4d9364
rdtsc
rdtsc
jmp 0x4d8efd
mov ecx, ebp
mov bl, 0xf8
inc ax
jmp 0x4d92c0
jne 0x4d91c6
rdtsc
rdtsc
call 0x4d927d
mov al, 0xfe
stc
ja 0x4d91e2
jbe 0x4d91e2

Function at 0x4d90de
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop word [esp + 1]
push edx
push dword [esp]
lea esp, [esp + 2]
mov dword [esp + 0xd8], edi
jmp 0x4d90c5
push dword [esp + 4]
mov byte [esp + 0xa], dh
push esp
pop dword [esp + 2]
pop dword [esp]
jmp 0x4d909f

Function at 0x4d91ab
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [esp + 0xc4], ebp
call 0x4d908f
push word [esp + 0x13]
push dword [esp + 0x24]
mov word [esp + 0x18], bx
mov word [esp], bx
lea esp, [esp + 2]
jmp 0x4d90fc

Function at 0x609d22
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [esp + 0x10], eax
bsf si, ax
inc esi
xchg ebp, edi
mov dh, byte [esp + 4]
cmc
jmp 0x609d3c
sub esp, 0x1a
xchg ebp, esi
mov bp, 0xed45
lea ebx, [edx + ebx]
mov cl, 0x32
not ebp
jmp 0x609ceb
jmp 0x609d0b
mov dl, dh
xchg ebx, edx
cld
mov edx, dword [esp]
lea ecx, [ebp + 0x9f]
not bh
jmp 0x609d4d
clc
mov esi, dword [esp + 3]
pushal
lea esp, [esp + 0x4b]
mov ax, sp
xchg ah, bl
jmp 0x609d24
xchg dh, al
inc ebp
mov al, ah
mov eax, 0xa1f7e5a2
clc
xor di, 0xb774
jmp 0x609d9c
push edx
rdtsc
sub esp, 4
sub esp, 0x1e
bswap edi
inc edx
jmp 0x609d78

Function at 0x609edb
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov bp, dx
pushal
jmp 0x609ee5
mov dx, word [esp + 2]
mov al, ah
mov dword [esp + 8], ebp
jmp 0x609f50
lea ecx, [ecx + 0x23782bb]
push dword [esp + 0x17]
pop dword [esp + 5]
stc
mov byte [esp + 0x19], dh
push word [esp + 8]
jmp 0x609f0c
lea esi, [ebp - 0x253374b1]
mov dword [esp + 0x24], ebp
popal
inc di
push dword [esp + 2]
pushal
jmp 0x609f2e
Function at 0x60c74a
Capabilities:
Parse pe header

Disassembly:
push word [esp + 0x13]
mov word [esp + 0x20], bx
pushal
jmp 0x60c7af
lea esp, [esp + 0x43]
call fcn.0060c790
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x60c801
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0x60affe

Function at 0x60c790
Capabilities:
Parse pe header

Disassembly:
mov dword [esp + 0x64], edi
lea esp, [esp + 0x64]
mov eax, dword fs:[0x30]
jmp 0x60c7b8
Function at 0x404630
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.004071c4
test esi, esi
jne 0x404668
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.00407300
jmp 0x404686
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404574
mov edi, eax
test esi, esi
je 0x404686
cmp dword [ebx], 0
je 0x404686
dec esi
jmp 0x40466f
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4063e8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x52f054], 0
je 0x406449
cmp word [0x52f330], 0xd7b2
jne 0x406411
cmp dword [0x52f338], 0
jbe 0x406411
mov eax, 0x52f32c
call dword [0x52f348]
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 0x406474
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x52b030], 0
jne 0x406465
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4065d4
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 [0x52b038], 0
je 0x4065fa
mov edx, esi
mov eax, ebx
call dword [0x52b038]
jmp 0x406609
mov eax, 8
call fcn.004042b0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x52f055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40659c
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 0x4092b0
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 0x409417
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004071c4
cmp si, word [0x52b7f4]
jb 0x40934a
cmp si, word [0x52b9f4]
ja 0x40934a
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40934a
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x52b7f4]
jae 0x409324
mov edi, ebx
dec edi
jmp 0x409345
cmp si, word [ebx*8 + 0x52b7f4]
jbe 0x409334
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x409345
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x52b7f8]
call fcn.004091c0
jmp 0x40934a
cmp edi, dword [ebp - 0xc]
jae 0x40930e
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4093f9
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4093f9
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.004073ac
push dword [ebp - 0x164]
push 0x409434
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.004073ac
push dword [ebp - 0x168]
push 0x409444
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004073ac
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407764
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40941e
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004071bc
ret
Function at 0x409448
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 0x40962e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x531b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x531b74]
cmp ax, word [ebp - 2]
jne 0x4094a0
mov eax, dword [ebp - 6]
mov edx, 0x531b78
mov ecx, 0x55
call fcn.004073ac
push 0x531b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409618
push 0x531b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.004071c4
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4095e0
cmp byte [0x531b58], 0
je 0x409596
call dword [0x531b50]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x531b54]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x40958f
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 [0x531b4c]
test al, al
je 0x409568
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.004042b0
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 [0x531b4c]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x40955d
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x409559
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x409546
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00407370
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4095e0
movzx eax, word [ebp - 0x16]
push eax
call dword [0x531b54]
cmp dword [ebp - 0x10], 0
je 0x40958e
mov eax, dword [ebp - 0x10]
call fcn.004042cc
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.004092b0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x4095e0
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x4095c5
mov eax, dword [ebp - 6]
mov edx, 0x409648
call fcn.004075c0
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.004092b0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.004075c0
mov eax, dword [ebp - 6]
push 0x531b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x531b74], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00407250
push eax
push 0x531b78
call sub.kernel32.dll_lstrcpynW
push 0x531b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409635
lea eax, [ebp - 0x1c]
call fcn.004071b4
ret
Function at 0x40986c
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.004071ac
xor eax, eax
push ebp
push 0x409a51
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4098ac
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4098c6
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407250
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409a3b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409a60
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409955
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409a60
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409955
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409a94
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409955
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409ac8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409a3b
xor eax, eax
push ebp
push 0x409a34
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409670
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 0x4099c4
mov eax, dword [ebp - 0x10]
call fcn.004042b0
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.00407370
jmp 0x409a0f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409b08
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409a0f
mov eax, dword [ebp - 0x10]
call fcn.004042b0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409b08
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407370
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a3b
cmp dword [ebp - 8], 0
je 0x409a2a
mov eax, dword [ebp - 8]
call fcn.004042cc
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 0x409a58
lea eax, [ebp - 4]
call fcn.004071b4
ret
Function at 0x409d1c
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.004071ac
mov eax, dword [ebp - 0x21c]
call fcn.004071ac
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409ebb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.004071c4
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00407250
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 0x409dbc
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409dce
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409db9
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409e87
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 0x409df7
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.0040986c
cmp dword [ebp - 0x220], 0
je 0x409e2f
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409c10
pop ecx
mov ebx, eax
jmp 0x409e87
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00409448
mov eax, dword [ebp - 0x224]
call fcn.00409c10
pop ecx
mov ebx, eax
test bl, bl
jne 0x409e7a
cmp byte [0x531b58], 0
jne 0x409e7a
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00409448
mov eax, dword [ebp - 0x228]
call fcn.00409c10
pop ecx
mov ebx, eax
test bl, bl
jne 0x409e87
push ebp
call fcn.00409cc0
pop ecx
mov ebx, eax
test bl, bl
je 0x409e9d
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.004073ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409ec2
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.004071bc
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x531c5c
push 0xa
push 0x40e980
mov eax, dword [0x531c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40e910
call fcn.0041b65c
push ebx
mov eax, dword [0x531c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40e927
call fcn.0041b65c
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40e939
call fcn.0041b65c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x531c60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x531c64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x531c68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x531c6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x531c70], ecx
add edx, dword [eax + 0x14]
mov dword [0x531c74], edx
pop esi
pop ebx
ret

Function at 0x413af4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x413b9d
test eax, edx
je 0x413ba0
push 0
push 0
cmp word [eax - 0xa], 2
je 0x413b1d
push edx
mov edx, eax
mov eax, esp
call fcn.004073c8
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x413b33
push eax
lea eax, [esp + 8]
call fcn.004073c8
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x413b42
movzx eax, word [eax]
sub eax, ecx
jmp 0x413b69
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 0x413b83
add ecx, 4
js 0x413b5a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x413b80
push eax
mov eax, ecx
mov edx, 2
call fcn.00406674
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x413b67
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x413b69
xor eax, eax
ret
test eax, eax
je 0x413bb0
test edx, edx
jne 0x413b04
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00407250
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x414de6
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x414e07
cmp ebx, 3
je 0x414e07
cmp ebx, 0x7b
je 0x414e07
mov eax, esi
call fcn.00414d88
test al, al
jne 0x414e0b
xor eax, eax
jmp 0x414e0d
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00407250
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x414e29
test al, 0x10
jne 0x414e2d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4186b4
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 0x4186ed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407300
jmp 0x4186f6
mov eax, ebx
mov edx, esi
call fcn.004071c4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x418eb4
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 0x418fd9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00418cc4
mov esi, eax
mov eax, dword [0x52e634]
cmp byte [eax], 0
je 0x418f81
mov eax, dword [0x52e368]
call fcn.00404a34
call fcn.00404418
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 [0x418e8c]
call fcn.00408cd8
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 0x418ff4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x418fbd
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x52e2fc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x531c40]
call fcn.00408dcc
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 0x418fe0
lea eax, [ebp - 4]
mov edx, dword [0x418e8c]
call fcn.00408ce4
ret