joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406136
Capabilities:
Check os version

Disassembly:
push esi
push edi
mov esi, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x406156
cmp ax, 5
jb 0x406156
push 0x4011d8
jmp 0x40615b
push 0x4011d6
push esi
call fcn.00403f9f
pop ecx
pop ecx
push 0x4011e0
push esi
call fcn.00403f81
push esi
call fcn.00403fae
add esp, 0xc
mov edx, edi
lea ecx, [esi + eax]
pop edi
pop esi
jmp fcn.004061bb

Function at 0x4061ec
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 8
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x406216
xor al, al
jmp 0x406266
lea eax, [ebp - 8]
mov ecx, 0x100
push eax
push ecx
lea eax, [ebp - 0x108]
mov dword [ebp - 8], ecx
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40625b
push esi
call fcn.00406183
push dword [ebp - 0x108]
mov esi, eax
push esi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
push esi
setne bl
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406ddf
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ecx
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push edi
mov edi, dword [esp + 0x18]
not ebx
cmp edi, 8
jbe 0x406edd
mov dword [esp + 0x1c], edx
test dl, 7
je 0x406e20
movzx eax, byte [edx]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x4013e0]
inc edx
dec edi
test dl, 7
jne 0x406e03
mov dword [esp + 0x1c], edx
mov ebp, edi
and edi, 7
and ebp, 0xfffffff8
add ebp, edx
cmp edx, ebp
jae 0x406edd
push esi
push 4
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00403eeb
xor ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov eax, ebx
shr eax, 0x10
add esi, 4
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
push 4
mov ecx, dword [ecx*4 + 0x4027e0]
push esi
xor ecx, dword [eax*4 + 0x402be0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4023e0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x402fe0]
lea eax, [esp + 0x24]
push eax
mov ebx, ecx
call fcn.00403eeb
mov edx, dword [esp + 0x28]
add esi, 4
mov eax, edx
mov dword [esp + 0x38], esi
shr eax, 0x10
add esp, 0x18
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4017e0]
xor ecx, dword [eax*4 + 0x401be0]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4013e0]
movzx eax, dl
mov edx, esi
xor ecx, dword [eax*4 + 0x401fe0]
xor ebx, ecx
cmp edx, ebp
jb 0x406e33
pop esi
test edi, edi
je 0x406ef9
movzx eax, byte [edx]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x4013e0]
inc edx
sub edi, 1
jne 0x406ee1
pop edi
not ebx
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x7ffe53f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x30]
add al, 4
sub al, 4
push es
pop ds
add al, 4
sub al, 4
and al, 0xff
xor eax, ecx
xor eax, ecx
push es
pop ds
push bx
inc esp
inc esp
inc esi
dec esi
pushf
popf
add al, 0
xor eax, ecx
xor eax, ecx
push eax
pop eax
xor eax, ecx
xor eax, ecx
and al, 0xff
pushf
popf
add al, 0
pushf
popf
inc esi
dec esi
add al, 4
sub al, 4
inc esi
dec esi
push bx
inc esp
inc esp
and al, 0xff
nop
call 0x7ffe543e
pop edx
and al, 0xff
pushf
popf
xor dx, dx
nop
add edx, 0xd5e0
xor ecx, ecx
nop
push es
pop ds
mov cl, 0x1e
inc esi
dec esi
xor byte [ecx + edx], 0x31
loop 0x7ffe5458
inc esi
dec esi
push eax
pop eax
clc
push dword fs:[0x24]
pushf
popf
pop dword [edx + 0xa]
and al, 0xff
add al, 4
sub al, 4
nop
mov cl, 0xff
add al, 4
sub al, 4
push es
pop ds
push edx
loop 0x7ffe5480
nop
mov dword [edx + 0x11], 0xffffacbb
mov ecx, dword [eax + 0x2c]
cld
add al, 0
mov dword [edx + 0x1b], ecx
push eax
pop eax
mov dword [edx + 0x100], ecx
pushf
popf
clc
mov dword [eax + 0x2c], esp
not eax
not eax
push 0
push es
pop ds
xor eax, ecx
xor eax, ecx
cld
push 0
add al, 4
sub al, 4
inc esi
dec esi
push 0
clc
push 0
push 0x30
clc
push es
pop ds
push 0x20
push eax
pop eax
push 0
not eax
not eax
stc
push 0
pushf
popf
add edx, 0xffff7f33
and al, 0xff
pushf
popf
clc
push edx
not eax
not eax
and al, 0xff
push edx
cld
push 0
call dword [edx + 0x8210]
push edx
cdq
pop edx
add esp, 0x3f8
inc esi
dec esi
xor eax, eax
push es
pop ds
pushal
inc eax
popal
inc eax
push es
pop ds
add al, 0
ret 0xc
Function at 0x841058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008411a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x84107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x84106a
add dl, dl
jne 0x841089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8410dc
xor eax, eax
add dl, dl
jne 0x841096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x84117d
add dl, dl
jne 0x8410a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8410b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8410bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8410c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8410d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x841075
mov eax, 1
add dl, dl
jne 0x8410ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8410f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8410e1
sub eax, ebx
mov ebx, 1
jne 0x841128
mov ecx, 1
add dl, dl
jne 0x84110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x841119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x841105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x841075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x84113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x84114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x841136
cmp eax, 0x7d00
jae 0x84116d
cmp eax, 0x500
jb 0x841168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x841075
cmp eax, 0x7f
ja 0x841170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x841075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x84119e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x841075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402d88
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402dc5
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402de5
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404f30
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402fc4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404cc0
test esi, esi
jne 0x402ffb
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404db0
jmp 0x40301c
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402e60
mov dword [esp], eax
test esi, esi
je 0x40301c
cmp dword [ebx], 0
je 0x40301c
dec esi
jmp 0x403003
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403710
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5ef008], 0x8088405
inc edx
mov dword [ebx + 0x5ef008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403cbc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x5ef024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403d54
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403d34
xor eax, eax
push ebp
push 0x403d2d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403d70
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403d34
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x5ef024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x5ef024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404a98
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5f704c], 0
je 0x404af9
cmp word [0x5f7220], 0xd7b2
jne 0x404ac1
cmp dword [0x5f7228], 0
jbe 0x404ac1
mov eax, 0x5f721c
call dword [0x5f7238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x5ef094
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 0x404b20
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5ef034], 0
jne 0x404b15
push 0
push 0x5ef08c
push 0x5ef094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404c74
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402b50
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x5f704d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404c3c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x407058
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4070be
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404f30
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040385c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4070a8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4070c5
lea eax, [ebp - 0x10]
call fcn.00404cc0
ret

Function at 0x40a480
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x40a4b1
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x40a4b8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x40a4e9
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040519c
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40a622
test byte [ebp - 0xc], 0x10
jne 0x40a626
xor eax, eax
jmp 0x40a628
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x40a734
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040519c
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret

Function at 0x40a758
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040519c
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40a787
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x40a8fc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040519c
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret
Function at 0x40a924
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040519c
push eax
mov eax, dword [ebp - 4]
call fcn.0040519c
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x40acbc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 4]
call fcn.0040519c
push eax
call sub.kernel32.dll_CreateDirectoryA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x40ace8
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040519c
push eax
call sub.kernel32.dll_RemoveDirectoryA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x40df04
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x40df4c
mov ecx, dword [ebp - 0x10]
dec ecx
lea edx, [ebp - 0x110]
mov eax, dword [ebp + 8]
call fcn.00404db0
jmp 0x40df57
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.00404d14
mov esp, ebp
pop ebp
ret 4

Function at 0x40df60
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40df8e
mov al, byte [ebp - 0xc]
mov byte [ebp - 0xa], al
jmp 0x40df94
mov al, byte [ebp - 9]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret
Function at 0x40e71c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x400
lea ecx, [ebp - 0x44c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040e564
mov eax, dword [0x5f657c]
cmp byte [eax], 0
je 0x40e7af
mov eax, dword [0x5f6284]
call fcn.00403464
call fcn.00402cdc
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x44c]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x44c]
call fcn.0040ad10
push eax
lea eax, [ebp - 0x44c]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40e7f4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40e7e5
push 0x40
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [0x5f6218]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5f7668]
call fcn.004064c4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov esp, ebp
pop ebp
ret

Function at 0x40f23c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40f31a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404d58
lea eax, [ebp - 0xc]
call fcn.004051ec
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040519c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40f304
mov eax, dword [ebp - 0x10]
call fcn.00402b50
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x40f2fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040519c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40f2e7
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x40f328
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40f2e7
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f304
mov eax, dword [ebp - 0x18]
call fcn.00402b80
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f321
lea eax, [ebp - 0xc]
call fcn.00404cc0
ret
Function at 0x40fb28
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40fb92
push dword fs:[eax]
mov dword fs:[eax], esp
push 7
lea eax, [ebp - 0xf]
push eax
push 0x1004
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xf]
mov ecx, 7
call fcn.00404f30
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040a100
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fb99
lea eax, [ebp - 0x14]
call fcn.00404cc0
ret

Function at 0x423314
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindResourceA
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x42334a
push ebp
call fcn.004232a4
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LoadResource
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
jne 0x423370
push ebp
call fcn.004232a4
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SizeofResource
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
push eax
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.00422df0
mov esp, ebp
pop ebp
ret 4

Function at 0x429764
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
setge dl
mov eax, dword [ebp - 4]
call fcn.00429534
cmp dword [ebp - 8], 1
jne 0x429798
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 0
pop ecx
pop ecx
pop ebp
ret
Function at 0x42b034
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
cmp dword [0x5f788c], 0
jne 0x42b0e1
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [0x5f7888]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x5ef674
mov ecx, 2
call fcn.00402e20
mov edx, 0x42aff0
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0042b010
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebp - 0xc]
call fcn.0042b010
mov edx, dword [ebp - 0xc]
mov dword [edx + 1], eax
mov eax, dword [0x5f788c]
mov edx, dword [ebp - 0xc]
mov dword [edx + 5], eax
mov eax, dword [ebp - 0xc]
mov dword [0x5f788c], eax
add dword [ebp - 0xc], 0xd
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x42b09b
mov eax, dword [ebp - 8]
mov dword [0x5f7888], eax
mov eax, dword [0x5f788c]
mov dword [ebp - 4], eax
mov eax, dword [0x5f788c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 5]
mov dword [0x5f788c], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x42c76c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42c772
ret

Function at 0x42f768
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x42f7b9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42f7a0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42f790
jmp 0x42f7b9
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x42f7a1
pop ebx
mov esp, ebp
pop ebp
ret