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

Disassembly:
cmp ecx, dword [0x30020490]
jne 0x30016bf1
repz ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x30021d98], eax
mov dword [0x30021d94], ecx
mov dword [0x30021d90], edx
mov dword [0x30021d8c], ebx
mov dword [0x30021d88], esi
mov dword [0x30021d84], edi
mov word [0x30021db0], ss
mov word [0x30021da4], cs
mov word [0x30021d80], ds
mov word [0x30021d7c], es
mov word [0x30021d78], fs
mov word [0x30021d74], gs
pushfd
pop dword [0x30021da8]
mov eax, dword [ebp]
mov dword [0x30021d9c], eax
mov eax, dword [ebp + 4]
mov dword [0x30021da0], eax
lea eax, [ebp + 8]
mov dword [0x30021dac], eax
mov eax, dword [ebp - 0x320]
mov dword [0x30021ce8], 0x10001
mov eax, dword [0x30021da0]
mov dword [0x30021c9c], eax
mov dword [0x30021c90], 0xc0000409
mov dword [0x30021c94], 1
mov eax, dword [0x30020490]
mov dword [ebp - 0x328], eax
mov eax, dword [0x30020494]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x30021ce0], eax
push 1
call fcn.3001ac97
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x30002c70
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x30021ce0], 0
jne 0x30016ce1
push 1
call fcn.3001ac97
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret

Function at 0x30019b3c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x30019b4b
pop dword [ebp - 0x24]
mov eax, 0x4f446149
sub eax, 0x1f42c5fe
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x3b391
push 0
mov eax, 0xb75f9b4e
add eax, 0x78a075ca
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x4f60
mov edi, eax
mov edx, 0x783b322a
add edx, 0xb7c735d6
add edx, dword [ebp - 0x24]
mov esi, 0x1bcd127d
sub dword [ebp - 0x14], ecx
mov ebx, dword [edx]
xor dword [ebp - 8], 0x569007e0
sub ebx, esi
add dword [ebp - 0x1c], eax
mov dword [edi], ebx
add dword [ebp - 0x10], edi
add edi, 0xc8e6fcb2
sub edi, 0xc8e6fcae
add edx, 4
loop 0x30019b9e
add eax, 0x43d89670
sub eax, 0x43d7661d
xor ebx, ebx
add ebx, eax
add eax, 0x7b43b4c9
add eax, 0x84bc4b3c
mov ecx, 0x30000000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4042e8
Capabilities:
Encode data using xor

Disassembly:
push 0x338118d2
mov edi, 0x352e855
pop ecx
xor edi, ecx
mov ecx, 0x2e8497c7
xor edi, ecx
xor edi, 0x50c0100c
push 0x1e64b6bd
mov eax, 0x1e1e2e19
pop ebx
xor eax, ebx
push eax
mov edx, 0x42615002
mov eax, 0xc8c8540
or al, 0x31
ret 0x315e
xor edx, edi
mov ebx, edx
mov esi, 0
xor esi, ebx
mov ebx, esi
mov eax, ebx
mov edi, 0xfffffffc
add esp, edi
mov dword [esp], eax
mov ecx, esi
mov edi, ecx
mov ebx, edi
xor esi, esi
add esi, ebx
jmp 0x403f36

Function at 0x40520c
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 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405258
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 0x405279
mov al, byte [esp]
jmp 0x40527b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4069dc
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 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
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 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406c2c
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 0x406cba
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c77
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.00403278
jmp 0x406ca4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c8b
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406c9a
lea edx, [ebp - 4]
call fcn.00406af0
test ebx, ebx
je 0x406c9a
dec ebx
jmp 0x406c7c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cc1
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406cc8
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.00404de0
add esp, 0x104
pop ebx
ret
Function at 0x401290
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x403137
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
push 0x66
mov dword [esp + 0x1c], esi
call sub.MFC42.DLL_CDialog::CDialog
xor edi, edi
lea ecx, [esi + 0x70]
mov dword [esp + 0x20], edi
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esi + 0x84]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esi + 0x98]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esi + 0xac]
mov byte [esp + 0x20], 3
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esi + 0xc0]
mov byte [esp + 0x20], 4
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esi + 0xd4]
mov byte [esp + 0x20], 5
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esi + 0xe8]
mov byte [esp + 0x20], 6
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esi + 0xfc]
mov byte [esp + 0x20], 7
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esi + 0x110]
mov byte [esp + 0x20], 8
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esi + 0x124]
mov byte [esp + 0x20], 9
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esi + 0x138]
mov byte [esp + 0x20], 0xa
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esi + 0x14c]
mov byte [esp + 0x20], 0xb
call sub.MFC42.DLL_CStringArray::CStringArray
lea ebp, [esi + 0x160]
mov byte [esp + 0x20], 0xc
mov ecx, ebp
call sub.MFC42.DLL_CString::CString
lea ebx, [esi + 0x16c]
mov byte [esp + 0x20], 0xd
mov ecx, ebx
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x170]
mov byte [esp + 0x20], 0xe
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x20], 0xf
mov dword [esi], 0x4045d0
mov dword [esi + 0x168], 0x14
mov dword [esi + 0x184], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
push 0x406208
mov ecx, ebp
mov dword [esi + 0x64], edi
mov dword [esi + 0x164], edi
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
push ecx
call sub.MFC42.DLL_CTime::GetTickCount
mov edx, dword [eax]
lea eax, [esp + 0x10]
push str._Y__m__d__H__M__S
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], edx
call sub.MFC42.DLL_CTime::Format
push eax
mov ecx, ebx
mov byte [esp + 0x24], 0x10
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0xf
call fcn.00402ca6
lea ecx, [esp + 0x10]
push 0x406020
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CTime::Format
push eax
lea ecx, [esi + 0x170]
mov byte [esp + 0x24], 0x11
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0xf
call fcn.00402ca6
call sub.MFC42.DLL_AfxGetModuleState
push 0x80
push 0xe
push 0x80
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x188], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x40e8fd
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x4129f9
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x413b8c
push 1
xor ebx, ebx
push ebx
push 0x413c3c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x412aca
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x413c2c
push eax
call dword [ecx]
test eax, eax
jl 0x412ac1
cmp byte [ebp + 8], bl
je 0x412a4c
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x412a69
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x412a7b
push 0x413734
jmp 0x412a7e
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x412a93
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x412aa4
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x412ab8
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x412ae4
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403394
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0046f4e0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x403401
push 0x2a
push 0x40335f8
push 6
call fcn.0046d484
add esp, 0xc
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x403411
push ebx
call fcn.0046d47e
add esp, 4
cmp dword [ebp - 4], 0
jg 0x403422
mov dword [ebp - 4], 0x100
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.0046ff20
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403455
push ebx
call fcn.0046d47e
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40348e
push 0x125
push 0x40335f8
push 6
call fcn.0046d484
add esp, 0xc
push VariantClear
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4034a1
mov eax, 0x4982fc
push eax
push 1
mov ebx, 0x174
call fcn.0046ff60
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4034cb
push ebx
call fcn.0046d47e
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x4982fc
push dword [ebp - 8]
call fcn.00401b6b
add esp, 8
cmp eax, 0
jne 0x403508
call fcn.0040353f
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403504
push ebx
call fcn.0046d47e
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x403524
push eax
mov ebx, eax
call fcn.0040130d
inc eax
push eax
call fcn.0046d472
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x403529
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40353a
push ebx
call fcn.0046d47e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x40460e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push VariantCopy
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x9dc
call fcn.0046fe40
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404658
mov eax, 0
jmp 0x4046c1
mov dword [ebp - 0xc], esp
push dword [ebp + 0x24]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push dword [ebp - 4]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x404697
push 0x100
push 0x403338c
push 6
call fcn.0046d484
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp + 0x18], 0
jne 0x4046b1
push dword [ebp - 8]
call fcn.00402759
jmp 0x4046b9
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
mov eax, dword [ebp - 8]
jmp 0x4046c1
mov esp, ebp
pop ebp
ret 0x24
Function at 0x40a661
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x40a691
mov edx, 0xffffffff
mov eax, 0xffffffff
jmp 0x40a6cc
mov dword [ebp - 0xc], esp
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40a6c1
push 0xa0
push 0x4032f9e
push 6
call fcn.0046d484
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
jmp 0x40a6cc
mov esp, ebp
pop ebp
ret 4

Function at 0x40c280
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x40c2ab
mov eax, 0x4983cc
jmp 0x40c40d
cmp dword [ebp + 0xc], 0
jg 0x40c303
mov dword [ebp - 0xc], esp
mov eax, dword [ebp + 0xc]
cdq
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40c2ef
push 0xe2
push 0x4032f9d
push 6
call fcn.0046d484
add esp, 0xc
cmp dword [ebp + 0xc], 0
jg 0x40c303
mov eax, 0x4983cc
jmp 0x40c40d
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call fcn.0040c425
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40c33a
mov eax, 0x4983cc
jmp 0x40c40d
mov dword [ebp - 0xc], esp
push 0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40c374
push 0x2a4
push 0x4032f9d
push 6
call fcn.0046d484
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40c38b
mov eax, 0x4983cc
jmp 0x40c40d
push 0x80000301
push 0
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x910
call fcn.0046fd60
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40c3ca
push ebx
call fcn.0046d47e
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.0040c4b2
mov eax, dword [ebp - 8]
test eax, eax
je 0x40c408
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0046d472
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40c40d
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40c41e
push ebx
call fcn.0046d47e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4627a8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.00471810
add esp, 0x1c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x40
push dword [ebp - 8]
push 0xe
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x462820
push 0x75
push 0x4033433
push 6
call fcn.0046d484
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x462837
mov eax, 0
jmp 0x462872
mov eax, dword [ebp]
mov eax, dword [eax + 8]
mov ecx, eax
mov ebx, dword [ebp + 8]
dec ebx
imul ebx, ebx, 4
mov eax, dword [eax]
mov eax, dword [eax]
add eax, ebx
mov ebx, dword [eax]
mov eax, dword [ebp - 4]
mov word [eax], 0xb85b
mov dword [eax + 2], ebx
mov byte [eax + 6], 0x68
mov dword [eax + 7], ecx
mov word [eax + 0xb], 0xff53
mov byte [eax + 0xd], 0xe0
mov eax, dword [ebp - 4]
jmp 0x462872
mov esp, ebp
pop ebp
ret 4

Function at 0x462878
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x46289c
mov eax, 0
jmp 0x462905
mov dword [ebp - 8], esp
push dword [ebp + 0x24]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 8], esp
je 0x4628db
push 0xb9
push 0x403338d
push 6
call fcn.0046d484
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 0
jne 0x4628f5
push dword [ebp - 4]
call fcn.00402759
jmp 0x4628fd
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
mov eax, dword [ebp - 4]
jmp 0x462905
mov esp, ebp
pop ebp
ret 0x24

Function at 0x46f500
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.00488b9a
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x46f56a
push esi
lea edi, [eax + 0x400]
call fcn.00488bc3
push edi
call fcn.00488b9a
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x46f53a
push esi
xor edi, edi
call dword [0x4a87d4]
add esp, 4
test eax, eax
je 0x46f586
push eax
push esi
call fcn.00474b60
add esp, 8
mov edi, eax
push esi
call fcn.00488bc3
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x472210
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
mov dword [esp], 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
ret

Function at 0x4725f0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x47260e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x472603
pop esi
ret

Function at 0x472ad0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x472b62
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x472b54
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x472b4c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x472b15
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x472bd0
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push 0x104
call fcn.0046efd0
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0x104
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x472c27
push ebx
push edi
call fcn.0046f0e0
push esi
mov ebx, esi
call fcn.0046efd0
add esp, 8
mov edi, eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
ja 0x472bfe
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x472c40
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x472ca9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.0046f020
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x472cb0
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x1c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x472cda
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x472cda
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
ret
Function at 0x4733a0
Capabilities:
Get file size

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x4733ae
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.00475bb0
add esp, 4
test eax, eax
jne 0x4733c0
or eax, 0xffffffff
pop esi
ret
mov ecx, dword [esi]
or eax, 0xffffffff
cmp ecx, 1
je 0x4733de
cmp ecx, 3
je 0x4733de
cmp ecx, 2
jne 0x4733ed
mov ecx, dword [esi + 4]
call fcn.004762b0
pop esi
ret
mov esi, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop esi
ret