joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4198dc
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00406604
add esp, 0x800
pop ebx
ret

Function at 0x41a310
Capabilities:
Encrypt data using rc6

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
lea edx, [esp + 4]
mov eax, dword [0x424f8c]
mov ecx, 0x40
call fcn.00403de8
mov dword [0x424ed8], 0xb7e15163
mov ebx, 0x2b
mov eax, 0x424ed8
mov edx, dword [eax]
add edx, 0x9e3779b9
mov dword [eax + 4], edx
add eax, 4
dec ebx
jne 0x41a33e
xor ebx, ebx
xor edi, edi
xor esi, esi
xor ebp, ebp
mov dword [esp], 0x84
mov eax, dword [ebx*4 + 0x424ed8]
add eax, esi
add eax, ebp
mov edx, 3
call fcn.0041a1bc
mov esi, eax
mov dword [ebx*4 + 0x424ed8], esi
lea edx, [ebp + esi]
mov eax, dword [esp + edi*4 + 4]
add eax, esi
add eax, ebp
call fcn.0041a1bc
mov ebp, eax
mov dword [esp + edi*4 + 4], ebp
lea eax, [ebx + 1]
mov ecx, 0x2c
cdq
idiv ecx
mov ebx, edx
inc edi
and edi, 0x8000000f
jns 0x41a3ae
dec edi
or edi, 0xfffffff0
inc edi
dec dword [esp]
jne 0x41a35e
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41a400
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
mov eax, dword [0x424f84]
sub dword [ebx + 8], eax
mov eax, dword [0x424f80]
sub dword [ebx], eax
mov esi, 0x14
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov dword [ebx + 0xc], edx
mov edx, dword [ebx + 4]
mov dword [ebx + 8], edx
mov edx, dword [ebx]
mov dword [ebx + 4], edx
mov dword [ebx], eax
mov eax, dword [ebx + 0xc]
mov edx, eax
add eax, eax
inc eax
imul edx, eax
mov eax, edx
mov edx, 5
call fcn.0041a1bc
mov ebp, eax
mov eax, dword [ebx + 4]
mov edx, eax
add eax, eax
inc eax
imul edx, eax
mov eax, edx
mov edx, 5
call fcn.0041a1bc
mov edi, eax
mov eax, dword [ebx + 8]
mov edx, esi
add edx, edx
sub eax, dword [edx*4 + 0x424edc]
mov edx, edi
call fcn.0041a1dc
xor eax, ebp
mov dword [ebx + 8], eax
mov eax, dword [ebx]
mov edx, esi
add edx, edx
sub eax, dword [edx*4 + 0x424ed8]
mov edx, ebp
call fcn.0041a1dc
xor edi, eax
mov dword [ebx], edi
dec esi
test esi, esi
jne 0x41a41a
mov eax, dword [0x424edc]
sub dword [ebx + 0xc], eax
mov eax, dword [0x424ed8]
sub dword [ebx + 4], eax
mov al, 1
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41a80c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.00405f38
xor eax, eax
push ebp
push 0x41a8b9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x102
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.00406570
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
mov eax, dword [ebp - 8]
mov dword [eax + 0x40], ebx
xor eax, eax
push ebp
push 0x41a89c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
add eax, 0x3c
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x44]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a8a3
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x40]
push eax
call sub.kernel32.dll_CloseHandle_1
ret

Function at 0x41a8c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00405f38
xor eax, eax
push ebp
push 0x41aa17
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0xa
mov eax, dword [ebp - 4]
call fcn.00406570
push eax
mov eax, dword [0x422c44]
push eax
call sub.kernel32.dll_FindResourceW
mov esi, eax
mov dword [edi + 4], esi
test esi, esi
je 0x41aa01
push esi
mov eax, dword [0x422c44]
push eax
call sub.kernel32.dll_LoadResource
mov dword [edi + 8], eax
cmp dword [edi + 8], 0
je 0x41aa01
mov eax, 0x41aa34
call fcn.0041a3bc
call fcn.0041a310
mov eax, dword [edi + 8]
push eax
call sub.kernel32.dll_LockResource
mov dword [edi + 0xc], eax
mov eax, dword [edi + 4]
push eax
mov eax, dword [0x422c44]
push eax
call sub.kernel32.dll_SizeofResource
xor edx, edx
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], edx
mov eax, dword [edi + 0x30]
call fcn.00403c44
mov dword [edi + 0x44], eax
mov eax, dword [edi + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x44]
mov dword [edi + 0x14], eax
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
jmp 0x41a9b9
lea edx, [edi + 0x18]
mov eax, dword [edi + 0x10]
mov ecx, 0x10
call fcn.00403de8
lea eax, [edi + 0x18]
call fcn.0041a400
mov edx, dword [edi + 0x14]
lea eax, [edi + 0x18]
mov ecx, 0x10
call fcn.00403de8
add dword [edi + 0x28], 0x10
adc dword [edi + 0x2c], 0
add dword [edi + 0x10], 0x10
add dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x30]
mov edx, dword [edi + 0x34]
sub eax, dword [edi + 0x28]
sbb edx, dword [edi + 0x2c]
cmp edx, 0
jne 0x41a9d1
cmp eax, 0x10
jae 0x41a981
jmp 0x41a9d3
jge 0x41a981
call fcn.0041a3f4
mov eax, dword [edi + 0x30]
mov ecx, eax
add ecx, dword [edi + 0x44]
dec ecx
mov dword [edi + 0x10], ecx
movzx eax, byte [ecx]
mov byte [edi + 0x38], al
mov bl, 1
movzx eax, al
mov edx, dword [edi + 0x30]
sub edx, eax
dec edx
mov dword [edi + 0x48], edx
mov eax, dword [edi + 8]
push eax
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41aa1e
lea eax, [ebp - 4]
call fcn.00405e54
ret
Function at 0x402770
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40d02c], 0x8088405
inc edx
mov dword [0x40d02c], edx
mul edx
mov eax, edx
ret

Function at 0x40453c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404528
add esp, 0x104
pop ebx
ret

Function at 0x4055f8
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
test eax, eax
jle 0x405631
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403230
jmp 0x40563a
mov eax, ebx
mov edx, esi
call fcn.004031e4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405644
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
test eax, eax
jle 0x405665
mov al, byte [esp]
jmp 0x405667
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406dc8
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406e10
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406d64
mov eax, dword [ebp - 4]
call fcn.004033cc
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406e17
lea eax, [ebp - 4]
call fcn.00403150
ret

Function at 0x407018
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4070a6
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x407063
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403230
jmp 0x407090
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x407077
lea eax, [ebp - 4]
call fcn.00403150
jmp 0x407086
lea edx, [ebp - 4]
call fcn.00406edc
test ebx, ebx
je 0x407086
dec ebx
jmp 0x407068
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004031e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4070ad
lea eax, [ebp - 4]
call fcn.00403150
ret

Function at 0x4070b4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.004051cc
add esp, 0x104
pop ebx
ret

Function at 0x4070e0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
mov eax, esp
call fcn.004051cc
add esp, 0x104
pop ebx
ret
Function at 0x407228
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x407360
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x40734a
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x407285
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x40734a
cmp dword [ebp - 0x10], 0
jne 0x40729a
mov eax, dword [ebp - 8]
call fcn.00403150
mov bl, 1
jmp 0x40734a
cmp dword [ebp - 0x10], 0x70000000
jb 0x4072a8
call fcn.00405c70
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
lea eax, [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.00403230
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.004033d8
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x40724e
test eax, eax
jne 0x40734a
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x4072f8
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x40734a
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
jmp 0x407303
dec esi
test esi, esi
je 0x407311
mov eax, dword [ebp - 0x14]
cmp byte [eax + esi - 1], 0
je 0x407302
cmp dword [ebp - 0xc], 7
jne 0x40731c
test esi, esi
je 0x40731c
inc esi
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.004034a8
cmp dword [ebp - 0xc], 7
jne 0x40733d
test esi, esi
je 0x40733d
lea eax, [ebp - 0x14]
call fcn.004033d8
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.004031a0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407367
lea eax, [ebp - 0x14]
call fcn.00403150
ret

Function at 0x407ca8
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40d55c
mov eax, esi
mov edx, 8
test al, 1
je 0x407cc4
shr eax, 1
xor eax, 0xedb88320
jmp 0x407cc6
shr eax, 1
dec edx
jne 0x407cb7
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x407cb0
pop esi
ret

Function at 0x407cdc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40d558], 0
jne 0x407cff
call fcn.00407ca8
push 1
push 0x40d558
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x407d2a
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40d55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x407d05
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x409384
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00409338
test al, al
jne 0x4093a5
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4093f1
xor eax, eax
push ebp
push 0x4093e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004033cc
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4093e8
lea eax, [ebp - 0xc]
call fcn.00409374
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40971c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x40980b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0040710c
mov edx, dword [ebp - 8]
mov ecx, 0x409824
xor eax, eax
call fcn.00409610
push 0
mov eax, dword [ebp - 4]
call fcn.004033cc
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x4097d9
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x40973c
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x36
call fcn.004091c0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00405080
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.0040769c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x68
call fcn.00409190
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x404a4c
call fcn.00405c7c
call fcn.00402e88
jmp 0x40973c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004031e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409812
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00403170
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403170
ret

Function at 0x409834
Capabilities:
Shutdown system

Disassembly:
push ebx
push esi
add esp, 0xffffffec
mov esi, edx
mov ebx, eax
cmp dword [0x40c07c], 2
jne 0x4098a1
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x40985c
xor eax, eax
jmp 0x4098ae
lea eax, [esp + 8]
push eax
push 0x4098b4
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x4098a1
xor eax, eax
jmp 0x4098ae
push esi
push ebx
call sub.user32.dll_ExitWindowsEx
neg eax
sbb eax, eax
neg eax
add esp, 0x14
pop esi
pop ebx
ret

Function at 0x4098c8
Capabilities:
Check if file exists

Disassembly:
xor edx, edx
mov eax, 2
call fcn.00409834
ret
Function at 0x4098d8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x409932
inc esi
xor edi, edi
cmp edi, 1
jne 0x4098fe
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x40990c
cmp edi, 1
jle 0x40990c
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00409384
test eax, eax
jne 0x409932
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x409932
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x409932
inc edi
dec esi
jne 0x4098ee
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x40993c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], dl
mov esi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test edi, edi
je 0x409989
xor ebx, ebx
jmp 0x40997e
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, edi
call fcn.0040502c
test eax, eax
jne 0x40997d
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x409a39
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x40995f
mov al, byte [ebp - 1]
sub al, 1
jb 0x409994
je 0x40999d
jmp 0x4099a6
call fcn.0040743c
mov edi, eax
jmp 0x4099a8
call sub.kernel32.dll_GetUserDefaultLangID
mov edi, eax
jmp 0x4099a8
xor edi, edi
test di, di
je 0x409a39
xor ebx, ebx
jmp 0x4099e4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, di
cmp eax, edx
jne 0x4099e3
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
je 0x4099d8
call sub.kernel32.dll_GetACP
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x2c]
jne 0x4099e3
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x409a39
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x4099b5
xor ebx, ebx
jmp 0x409a2e
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, edi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x409a2d
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
je 0x409a22
call sub.kernel32.dll_GetACP
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x2c]
jne 0x409a2d
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x409a39
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x4099f3
mov al, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x409dec
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409ebf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409ed8
push ebx
push 0x409ee4
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040336c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402750
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004033cc
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409e6c
mov al, 0x6a
call fcn.00409a48
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409dc0
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409e75
call fcn.00409dc0
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409ec6
lea eax, [ebp - 4]
call fcn.00403150
ret

Function at 0x409f58
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40a00c
jmp 0x40a001
cmp dword [esi + 0x10], 0x1000
jne 0x409fed
test byte [esi + 0x15], 1
jne 0x409fed
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409fac
cmp eax, 2
je 0x409fac
cmp eax, 0x10
je 0x409fac
cmp eax, 0x20
jne 0x409fc1
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409fc1
mov bl, 1
xor ebp, ebp
jmp 0x409fd2
mov eax, dword [esi]
add eax, ebp
call fcn.00409f50
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409fc5
test bl, bl
je 0x409fed
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40a00c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409f84
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40f450
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x10020
call fcn.00425210
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x492380]
mov dl, byte [eax + 0x492378]
mov byte [esp + eax + 0xc], cl
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, 8
jl 0x40f460
lea eax, [esp]
push 0x4876e8
push eax
call fcn.00413990
push 4
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00410f70
add esp, 0x14
push ebx
push ebp
push esi
mov dword [esp + 0x14], 0
push edi
jmp 0x40f4b0
mov eax, dword [esp + 0x10034]
mov ecx, dword [eax]
push ecx
push 0x10000
lea edx, [esp + 0x38]
push 1
push edx
call fcn.004151b0
add esp, 0x10
cmp eax, 0x18
jl 0x40f531
mov ebp, eax
lea edi, [ebp - 0x14]
test edi, edi
jle 0x40f4fd
xor edx, edx
mov edi, edi
xor ecx, ecx
lea esi, [esp + edx + 0x30]
mov al, byte [esp + ecx + 0x1c]
cmp al, byte [esi + ecx]
je 0x40f521
cmp ecx, 0x14
je 0x42937a
inc edx
cmp edx, edi
jl 0x40f4e0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10034]
lea edx, [ecx + ebp - 0x14]
mov ecx, dword [eax]
push 1
push 0xffffffffffffffec
push ecx
mov dword [esp + 0x24], edx
call fcn.0041557c
add esp, 0xc
jmp 0x40f4b0
mov bl, byte [esp + ecx + 0x1d]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x31]
je 0x40f543
inc ecx
jmp 0x40f4ef
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10020
ret 4
mov bl, byte [esp + ecx + 0x1e]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x32]
je 0x40f555
add ecx, 2
jmp 0x40f4ef
mov bl, byte [esp + ecx + 0x1f]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x33]
jne 0x429372
mov bl, byte [esp + ecx + 0x20]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x34]
je 0x429361
add ecx, 4
jmp 0x40f4ef
add ecx, 5
cmp ecx, 0x14
jl 0x40f4e6
jmp 0x40f4ef
add ecx, 3
jmp 0x40f4ef
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10034]
lea ecx, [eax + edx + 0x14]
mov edx, dword [esi]
push 0
push ecx
push edx
call fcn.0041557c
mov eax, dword [esi]
push eax
push 4
lea ecx, [esp + 0x24]
push 1
push ecx
call fcn.004151b0
lea edx, [esp + 0x2c]
push 0x4876d8
push edx
mov byte [esp + 0x38], 0
call fcn.004151d0
add esp, 0x24
neg eax
sbb eax, eax
and eax, 4
jmp 0x40f536

Function at 0x40f5e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
push ebx
push esi
invalid
invalid

Function at 0x40f6a0
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.004131f0
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret

Function at 0x4353b4
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
mov dword [0x4a72e8], eax
mov edx, 1
mov eax, 0x4a72e8
push edi
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4a7ca4
jl 0x4353c8
mov dword [0x49223c], 1
mov dword [0x4a7cb8], 1
pop edi
ret