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

Disassembly:
cmp ecx, dword [0x101e51d0]
jne 0x10003ce6
repz ret
jmp fcn.10003f8d

Function at 0x10004540
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x101e51ac], 0
mov byte [0x101e51b0], 0
mov dword [0x101e51a0], 0x223a
mov dword [0x101e51a8], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jmp 0x1000458e
mov dword [0x101e51a8], 0
jmp 0x100045bf
mov dword [0x101e51a0], 0x23f6
mov eax, dword [0x101e51a8]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x101e51a8]
add eax, 1
mov dword [0x101e51a8], eax
cmp eax, 0x100
jl 0x1000458e
jmp 0x10004582
mov eax, 0x100
mov dword [0x101e51b4], 0
mov ecx, dword [0x101e51ac]
mov edx, dword [0x101e51a8]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + edx]
add edi, ecx
mov dword [ebp - 0x1c], eax
mov eax, edx
xor edx, edx
mov ecx, dword [ebp - 0x10]
div ecx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x101e51b4], edi
mov eax, edi
cdq
mov edi, dword [ebp - 0x1c]
idiv edi
mov dword [0x101e51ac], edx
mov dword [0x101e51a0], 0x9d4
mov edx, dword [0x101e51a8]
mov cl, byte [esi + edx]
mov byte [0x101e51b0], cl
mov dword [0x101e51a0], 0xfffff859
mov edx, dword [0x101e51ac]
mov cl, byte [esi + edx]
mov edx, dword [0x101e51a8]
mov byte [esi + edx], cl
mov dword [0x101e51a0], 0x1f37
mov cl, byte [0x101e51b0]
mov byte [ebp - 0x1d], cl
mov eax, dword [0x101e51ac]
mov ecx, dword [ebp - 0x18]
mov dl, byte [ebp - 0x1d]
mov byte [ecx + eax], dl
mov eax, dword [0x101e51a0]
add eax, 0xfffffbe3
mov dword [0x101e51a0], eax
mov eax, dword [0x101e51a8]
add eax, 1
mov dword [0x101e51a8], eax
cmp eax, 0x100
jl 0x100045bf
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10004d30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, 0x2a
lea ecx, [fcn.10004d30]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jmp 0x10004d78
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
je 0x10004d8d
mov eax, dword [ebp - 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [ebp - 0x10], eax
mov eax, 0x1e0d
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jmp 0x10004d78
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], ecx
je 0x10004d49
jmp 0x10004d58
mov eax, dword [ebp - 0x14]
mov dword [0x101e51a0], eax
mov eax, dword [ebp - 0xc]
add esp, 0x14
pop ebp
ret
Function at 0x10004f40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x101e51a8], 0
mov dword [0x101e51ac], 0
mov dword [0x101e51b8], 0
mov dword [0x101e51a4], 0x1d00
mov dword [0x101e51a0], 0x24ab
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
je 0x100050a2
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov edx, eax
add edx, 1
mov esi, dword [0x101e51a8]
add esi, 1
mov dword [ebp - 0x24], eax
mov eax, esi
mov dword [ebp - 0x28], edx
cdq
idiv ecx
mov dword [0x101e51a8], edx
mov dword [0x101e51a0], 0x11eb
mov esi, dword [0x101e51ac]
mov edi, dword [ebp - 0x1c]
movzx edx, byte [edi + edx]
add edx, esi
mov eax, edx
cdq
idiv ecx
mov dword [0x101e51ac], edx
mov ecx, dword [0x101e51a0]
add ecx, 0x1cfe
mov dword [0x101e51a4], ecx
mov ecx, dword [0x101e51a8]
mov bl, byte [edi + ecx]
mov byte [0x101e51b0], bl
mov dword [0x101e51a0], 0x7d5
mov ecx, dword [0x101e51ac]
mov bl, byte [edi + ecx]
mov ecx, dword [0x101e51a8]
mov byte [edi + ecx], bl
mov bl, byte [0x101e51b0]
mov ecx, dword [0x101e51ac]
mov byte [edi + ecx], bl
mov dword [0x101e51a4], 0x2207
mov ecx, dword [0x101e51a8]
movzx ecx, byte [edi + ecx]
mov edx, dword [0x101e51ac]
movzx edx, byte [edi + edx]
add edx, ecx
and edx, 0xff
mov dword [0x101e51b8], edx
mov bl, byte [edi + edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
movzx esi, byte [ecx + edx]
mov dword [esp], esi
movzx esi, bl
mov dword [esp + 4], esi
call fcn.10001000
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov byte [ecx + edx], al
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x10]
cmp esi, edi
mov dword [ebp - 0x20], esi
jne 0x10004fa3
mov eax, dword [0x101e51a0]
add eax, 0xfffff597
mov dword [0x101e51a0], eax
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10005520
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov dword [0x101e51a0], 0x6a9
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x101e51a4], 0x9a7
mov esi, dword [0x101e51a0]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
jmp 0x10005594
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [0x101e51a0], ecx
mov dword [0x101e51a4], 0x85f
mov edx, dword [ebp - 0x14]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x24], eax
je 0x100055d5
jmp 0x10005655
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffbee
mov edx, dword [ebp - 0x14]
cmp word [edx + eax*2], 0
mov esi, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], esi
je 0x1000556a
mov eax, dword [ebp - 0x28]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
jl 0x10005594
jmp 0x1000556a
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x10005655
mov dword [0x101e51a4], 0x18d
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x10005655
mov dword [0x101e51a4], 0xfffff24c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x10005655
mov dword [0x101e51a0], 0x144b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x10005655
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x10005655
mov eax, 1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x2c], eax
je 0x1000565c
xor eax, eax
mov dword [ebp - 0x2c], eax
jmp 0x1000565c
mov eax, dword [ebp - 0x2c]
add esp, 0x28
pop esi
pop ebp
ret
Function at 0x403140
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 0x40317c
movzx eax, 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 0x40319c
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004059ac
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4034a4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040573c
test esi, esi
jne 0x4034da
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040582c
jmp 0x4034f8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403348
mov edi, eax
test esi, esi
je 0x4034f8
cmp dword [ebx], 0
je 0x4034f8
dec esi
jmp 0x4034e1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403c18
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x403c2e
sub ecx, 2
jne 0x403c50
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x403c57
cmp edx, dword [ebx + 8]
je 0x403c61
mov eax, 0x64
jmp 0x403c5c
mov eax, 0x67
jmp 0x403c5c
call sub.kernel32.dll_GetLastError
call fcn.004030b4
pop ebx
ret

Function at 0x404038
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x40406b
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x404072
cmp edx, dword [ebx + 8]
je 0x40407c
mov eax, 0x65
jmp 0x404077
mov eax, 5
jmp 0x404077
call sub.kernel32.dll_GetLastError
call fcn.004030b4
mov eax, ebx
pop ebx
ret
Function at 0x4045d8
Capabilities:
Query or enumerate registry value

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

Function at 0x4054e8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x55b04c], 0
je 0x405549
cmp word [0x55b220], 0xd7b2
jne 0x405511
cmp dword [0x55b228], 0
jbe 0x405511
mov eax, 0x55b21c
call dword [0x55b238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x405570
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x558030], 0
jne 0x405565
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4056c0
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 [0x558038], 0
je 0x4056e6
mov edx, esi
mov eax, ebx
call dword [0x558038]
jmp 0x4056f5
mov eax, 8
call fcn.00402f38
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x55b04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405688
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 0x4071d8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407408
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40725b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407408
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40725b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407424
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4072e4
xor eax, eax
push ebp
push 0x4072dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00407014
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4072c2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x407444
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4072c2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4072e4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4073fe
cmp byte [ebp - 0xd], 0
jne 0x40732b
cmp byte [ebp - 0x12], 0
je 0x4073fe
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x407344
dec ebx
cmp byte [ebx], 0x2e
je 0x407353
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x407343
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4073fe
inc ebx
cmp byte [ebp - 0x12], 0
je 0x407390
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4073fe
cmp byte [ebp - 0xd], 0
je 0x4073fe
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4073fe
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a5a4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40a5f6
test eax, edx
je 0x40a5f9
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40a5b9
movzx eax, byte [eax]
sub eax, ecx
ret
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]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40a5df
add ecx, 4
js 0x40a5cf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40a5dc
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x40a605
test edx, edx
jne 0x40a5ac
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405bcc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40b519
test al, 0x10
je 0x40b51d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405bcc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40b53d
test al, 0x10
jne 0x40b541
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b548
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405bcc
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x40b55c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00405bcc
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40b57e
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40f15c
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 0x40f195
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040582c
jmp 0x40f19e
mov eax, ebx
mov edx, esi
call fcn.00405790
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40f1a8
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 0x40f1ca
movzx eax, byte [esp]
jmp 0x40f1cc
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40f85c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40f6d4
mov eax, dword [0x55ac7c]
cmp byte [eax], 0
je 0x40f8d8
mov eax, dword [0x55a7f8]
call fcn.0040393c
call fcn.00403094
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.0040ba64
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 0x40f920
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40f90e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x55a744]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x55d7f8]
call fcn.00406fbc
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 0x4101fc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4102d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004057d4
lea eax, [ebp - 4]
call fcn.00405c24
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405bcc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4102bc
mov eax, ebx
call fcn.00402f38
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4102b5
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 - 4]
call fcn.00405bcc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x41029f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4102e4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x41029f
mov eax, dword [ebp - 0x14]
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 0x4102bc
mov eax, dword [ebp - 0x10]
call fcn.00402f54
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4102d9
lea eax, [ebp - 4]
call fcn.0040573c
ret

Function at 0x426838
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x426886
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00426548
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42689f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4268a8
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00426548
dec esi
jne 0x4268ca
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x427a3c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x55f9f0
cmp dword [edi], 0
jne 0x427ab8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x55f9ec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x558c5c
mov ecx, 2
call fcn.00403248
mov edx, 0x427a14
lea eax, [esi + 5]
call fcn.00427a34
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00427a34
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 0x427a8d
mov dword [0x55f9ec], 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