joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43dfc0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43dff3
push esi
call fcn.004410b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43dfec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43e079
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43e062
mov eax, dword [esi + 8]
test eax, eax
je 0x43e017
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43e05e
cmp eax, 2
je 0x43e062
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43e00a
cmp eax, 3
je 0x43e03d
cmp eax, 1
jne 0x43e00a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43e00a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43e00a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043e0a0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43e088
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043e0a0
add esp, 4
pop esi
ret

Function at 0x449c00
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x449ca3
test eax, eax
jbe 0x449ca3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x449ca3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x449c4e
xor esi, esi
jmp 0x449c54
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x449c7f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004030c0
add esi, eax
push esi
mov ebx, esi
call fcn.004030c0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x449c60
pop ebp
test edi, edi
pop edi
jne 0x449ca3
test ebx, ebx
je 0x449ca3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004590c0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x449de5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x449efd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x449efd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046a7a5
mov esi, eax
test esi, esi
je 0x449efd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x449efd
mov ecx, esi
call fcn.00449d50
cmp edi, eax
jge 0x449efd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x449e83
mov dword [esp + 0x34], 1
jmp 0x449ede
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x449efd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00449300
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x44ddc0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x44de09
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x44e280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4794c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044de30
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044deb0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044deb0
lea ecx, [esi + 0xc]
call fcn.00468ce1
lea ecx, [esi + 0x10]
call fcn.00468ce1
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044f440
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044f440
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044f440
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00468d56
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00468d56
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x44f630
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x44f696
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x44f696
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x44f677
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x46b149
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46b181
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004691fd
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004691d5
jmp 0x46b18d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46c83b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46c87d
call fcn.004725e2
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46c87d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46c874
xor eax, eax
jmp 0x46c885
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046c88b
pop edi
pop esi
pop ebx
ret 4

Function at 0x472b12
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x472b40
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x472b5e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00472a78
jmp 0x472b5e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x472b5e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00472a78
test edi, edi
mov eax, edi
jne 0x472b48
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x515fbe
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0051603d
jae 0x515fca
xor ecx, ecx
call fcn.0051603d
jae 0x515ff4
xor eax, eax
call fcn.0051603d
jae 0x516005
mov al, 0x10
call fcn.0051603d
adc al, al
jae 0x515fe6
jne 0x516032
stosb byte es:[edi], al
jmp 0x515fcb
call fcn.00516049
dec ecx
loop 0x516011
mov eax, ebp
call fcn.00516047
jmp 0x516033
lodsb al, byte [esi]
shr eax, 1
je 0x516059
adc ecx, 2
mov ebp, eax
jmp 0x516033
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00516047
cmp eax, 0x7d00
jae 0x516031
cmp eax, 0x500
jae 0x516032
cmp eax, 0x7f
ja 0x516033
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x515fcb
pop ebp
ret 8
Function at 0x42be36
Capabilities:
Encode data using xor

Disassembly:
push esi
push 0xffffffffffffffe1
xchg esp, eax
mov edx, 0x2ae8591e
std
das
sbb al, 0x52
loop 0x42be63
inc esi
sbb dword [ebp + 0x1e], edx
jae 0x42bdc2
stc
sbb byte [edi - 0x3c], al
dec ebp
shl dword [eax], cl
adc eax, dword [edx + ebp*2 - 1]
push 0xffffffffffffffff
cmp esi, esi
sbb bh, byte [esi]
xchg esi, eax
mov ah, 0x47
jb 0x42be71
pop ecx
mov dword [esi - 0x37eb6c97], esi
jbe 0x42be0f
daa
ret
adc dl, byte [ebp - 0x7c]
aad 0xfe
pop ds
push ebp
jne 0x42bea6
mov bh, 0x24
push ds
inc esi
mov al, 7
or al, 0xca
and eax, 0x95a652c3
sub byte [ecx], bl
aad 0x13
daa
les ebp, [eax + 0x1f]
invalid
pop ebx
jl 0x42be47
mov ebx, 0xf8d416d0
push ecx
or al, 0x2f
sbb eax, 0xc67cd662
sbb byte [edi], bl
leave
inc esp
daa
mov dword [eax - 0x753fa4e9], esp
push ds
retf 0x4325

Function at 0x401001
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
pushal
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
lea esi, [ebp - 0x104]
lea edi, section..data
cld
lodsb al, byte [esi]
or al, al
je 0x401031
stosb byte es:[edi], al
jmp 0x401029
mov esi, dword [ebp + 8]
lodsb al, byte [esi]
or al, al
je 0x40103c
stosb byte es:[edi], al
jmp 0x401034
popal
leave
ret 4

Function at 0x4010dc
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
lea eax, [ebp - 4]
push eax
push str.SoftWareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call sub.ADVAPI32.dll_RegCreateKeyA
or eax, eax
jne 0x401119
push 0x16
push str.C:_Windows_Rokit1.exe
push 1
push 0
push str.RUNAUTO
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegSetValueExA
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegCloseKey
leave
ret
Function at 0x407340
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ee81
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x40f350
mov dword [esi + 4], str.t__f3
mov dword [esi + 8], 0x40f32c
mov dword [esi + 0xc], 0x40f31c
mov dword [esi + 0x10], 0x40f308
mov eax, dword [esi + 0x1d30]
mov dword [ebp - 4], 1
push eax
call fcn.00409560
lea edi, [esi + 0x30]
add esp, 4
mov dword [esi + 0x1d30], 0
mov dword [ebp - 0x14], edi
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.004092e0
mov edi, dword [edi + 0x18]
mov byte [ebp - 4], 0
test edi, edi
je 0x4073c6
mov ecx, dword [edi]
push edi
call dword [ecx + 8]
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00409430
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x407630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
mov eax, dword [edi]
jbe 0x40766b
push ebx
xor ecx, ecx
mov ebx, eax
mov cl, byte [edx]
and ebx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x4166e8]
xor eax, ecx
inc edx
dec esi
jne 0x407644
mov dword [edi], eax
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov dword [edi], eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x468340
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
push edi
mov edi, dword [esp + 0x10]
xor ebx, ebx
cmp edi, ebx
je 0x4683f6
cmp word [edi], bx
je 0x4683f6
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x4683f0
inc eax
push esi
push eax
call fcn.0046a6d4
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4683ef
mov eax, dword [esp + 0x14]
push esi
push eax
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4683e6
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x47dcb4
push esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], 0x34
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4683e6
mov eax, dword [esp + 0xc]
mov cx, word [eax + 0xa]
mov edx, dword [esp + 0x18]
mov word [edx], cx
mov cx, word [eax + 8]
mov edx, dword [esp + 0x1c]
mov word [edx], cx
mov cx, word [eax + 0xe]
mov edx, dword [esp + 0x20]
mov word [edx], cx
mov ax, word [eax + 0xc]
mov ecx, dword [esp + 0x24]
mov word [ecx], ax
mov bl, 1
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
pop esi
pop edi
mov al, bl
pop ebx
pop ecx
ret
push 0x132b3a1
call fcn.00469470
add esp, 4
pop edi
xor al, al
pop ebx
pop ecx
ret

Function at 0x40ade0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp eax, edi
mov dword [esp + 0x18], eax
jge 0x40adee
lea eax, [esp + 0x70]
jmp 0x40adfa
cmp eax, ebx
lea eax, [esp + 0x28]
jg 0x40adfa
lea eax, [esp + 0x18]
mov edi, dword [eax]
fld dword [esi + 0x4c]
sub esp, 8
fstp qword [esp]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x78], 0
call 0x400551
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jge 0x40ae27
invalid
dec esp
invalid
Function at 0x402fe4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45f020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40307c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40305c
xor eax, eax
push ebp
push 0x403055
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 0x403098
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 0x40305c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45f020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45f020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d48
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46104c], 0
je 0x403da9
cmp word [0x461220], 0xd7b2
jne 0x403d71
cmp dword [0x461228], 0
jbe 0x403d71
mov eax, 0x46121c
call dword [0x461238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45f06c
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 0x403dd0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45f030], 0
jne 0x403dc5
push 0
push 0x45f064
push 0x45f06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405cec
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 0x405d52
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.00404134
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ba8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d3c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d59
lea eax, [ebp - 0x10]
call fcn.00403ec4
ret

Function at 0x40adc0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40adf9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403fb4
jmp 0x40ae02
mov eax, ebx
mov edx, esi
call fcn.00403f18
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ae0c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ae2d
mov al, byte [esp]
jmp 0x40ae2f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b4b4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b32c
mov eax, dword [0x4601d4]
cmp byte [eax], 0
je 0x40b530
mov eax, dword [0x45ffd8]
call fcn.00402a14
call fcn.004028ac
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408600
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b578
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b566
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45ff84]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x461668]
call fcn.004051e4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40be20
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bef6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403f5c
lea eax, [ebp - 8]
call fcn.004043d4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404384
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bee0
mov eax, ebx
call fcn.00402744
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bed9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404384
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bec3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bf08
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bec3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bee0
mov eax, dword [ebp - 0x10]
call fcn.00402764
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40befd
lea eax, [ebp - 8]
call fcn.00403ec4
ret

Function at 0x40c400
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c464
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404134
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408128
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c46b
lea eax, [ebp - 0xc]
call fcn.00403ec4
ret

Function at 0x41db68
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x461888
cmp dword [edi], 0
jne 0x41dbe4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x461884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45f3fc
mov ecx, 2
call fcn.00402940
mov edx, 0x41db40
lea eax, [esi + 5]
call fcn.0041db60
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041db60
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41dbb9
mov dword [0x461884], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41f120
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 0x41f126
ret
Function at 0x4215ac
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 0x4215fd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4215e4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4215d4
jmp 0x4215fd
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 0x4215e5
pop ebx
mov esp, ebp
pop ebp
ret