joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d400
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46cc33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00460461
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00465af9
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00467015
test eax, eax
je 0x43d51c
mov ecx, dword [esp + 0x3c]
call fcn.00465b26
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43d4e0
push edi
mov ecx, esi
call fcn.0046318a
mov ecx, esi
call fcn.0043d680
cmp dword [esp + 0x38], 1
jne 0x43d515
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004632c5
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43ff40
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43ff73
push esi
call fcn.00443050
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43ff6c
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 0x43fff9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43ffe2
mov eax, dword [esi + 8]
test eax, eax
je 0x43ff97
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 0x43ffde
cmp eax, 2
je 0x43ffe2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43ff8a
cmp eax, 3
je 0x43ffbd
cmp eax, 1
jne 0x43ff8a
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 0x43ff8a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43ff8a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00440020
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x440008
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00440020
add esp, 4
pop esi
ret

Function at 0x461256
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46128e
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.0045f30d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045f2e5
jmp 0x46129a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x462944
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 0x462986
call fcn.004683fb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x462986
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46297d
xor eax, eax
jmp 0x46298e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00462994
pop edi
pop esi
pop ebx
ret 4

Function at 0x46892b
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 0x468959
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x468977
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00468891
jmp 0x468977
mov eax, dword [esi + 0x14]
test eax, eax
je 0x468977
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00468891
test edi, edi
mov eax, edi
jne 0x468961
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4027b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40280b
cmp byte [esi + ebx - 1], 0xa
je 0x4027df
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4040f8], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x402870
Capabilities:
Schedule task via itaskservice

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x4c]
sub esp, 0xa4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x40611c
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x40541c
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
js 0x402991
xor edx, edx
xor ecx, ecx
mov eax, dword [ebp - 0x4c]
xor ebx, ebx
mov word [ebp - 0x48], dx
xor edx, edx
mov word [ebp - 0x38], cx
mov word [ebp - 0x18], dx
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax]
mov word [ebp - 0x28], bx
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp - 0x14]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp - 0x10]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp - 0xc]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp - 0x28]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp - 0x24]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp - 0x20]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp - 0x38]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp - 0x30]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp - 0x48]
mov dword [esp + 4], ecx
mov ecx, dword [ebp - 0x44]
mov dword [esp], eax
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0x40]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 0x10], ecx
call dword [edx + 0x28]
sub esp, 0x44
test eax, eax
js 0x402988
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x18]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x1c]
mov ebx, eax
mov eax, dword [ebp - 0x4c]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x18]
sub esp, 4
test ebx, ebx
js 0x4029a0
mov ebx, dword [ebp - 4]
leave
ret
test byte [0x404020], 1
jne 0x4029c0
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
test byte [0x404020], 1
je 0x402991
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.GetFolder_failed:__08lx_n
jmp 0x4029cc
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Connect_failed:__08lx_n
mov dword [esp + 8], str.get_tasks_root_folder
mov dword [esp + 4], 0x404020
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
xor eax, eax
jmp 0x402993
Function at 0x4036a0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x84], 0
call fcn.00401902
mov esi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, esi
or al, 0x40
push eax
lea eax, [0x404415]
lea edx, [fcn.00401974]
sub eax, edx
push eax
push fcn.00401974
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x401341
push esi
call fcn.004017e8
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.00401832
mov eax, esi
add eax, 0x1cc00
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x88]
mov ecx, esi
inc ecx
cdq
idiv ecx
push eax
lea edi, [0x4060e4]
mov eax, esi
lea ebx, [0x4060e4]
or bl, 1
mul ebx
mov dword [ebp - 0x8c], eax
mov ebx, eax
sub edi, eax
push edi
call fcn.00401974
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401902
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x118], 0
xor edi, edi
mov dword [ebp - 0x114], 0xa
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10e]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringA
call sub.KERNEL32.dll_GetLastError
push 0
push 0
call sub.SHLWAPI.DLL_PathAppendA
movsx edi, byte [ebp - 0x10e]
sub edi, 0x41
mov eax, edi
pop edi
leave
ret
Function at 0x100069c6
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ad2d
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1002100c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov ecx, dword [0x10021798]
mov eax, dword [ecx]
call dword [eax + 0x98]
movss xmm0, dword [eax]
mulss xmm0, dword [esi]
movss xmm1, dword [eax + 4]
mulss xmm1, dword [esi + 4]
addss xmm1, xmm0
movss xmm0, dword [eax + 8]
mulss xmm0, dword [esi + 8]
addss xmm1, xmm0
addss xmm1, dword [eax + 0xc]
movss dword [edi], xmm1
movss xmm0, dword [eax + 0x10]
mulss xmm0, dword [esi]
movss xmm2, dword [eax + 0x14]
mulss xmm2, dword [esi + 4]
addss xmm2, xmm0
movss xmm0, dword [eax + 0x18]
mulss xmm0, dword [esi + 8]
addss xmm2, xmm0
addss xmm2, dword [eax + 0x1c]
and dword [edi + 8], 0
movss dword [edi + 4], xmm2
movss xmm0, dword [eax + 0x30]
mulss xmm0, dword [esi]
movss xmm3, dword [eax + 0x34]
mulss xmm3, dword [esi + 4]
addss xmm3, xmm0
movss xmm0, dword [eax + 0x38]
mulss xmm0, dword [esi + 8]
addss xmm3, xmm0
movss xmm0, dword [0x1001db58]
addss xmm3, dword [eax + 0x3c]
comiss xmm0, xmm3
jbe 0x10006aa7
mulss xmm1, dword [0x1001de00]
mov al, 1
mulss xmm2, dword [0x1001de00]
jmp 0x10006abd
movss xmm0, dword [0x1001dbb4]
xor al, al
divss xmm0, xmm3
mulss xmm1, xmm0
mulss xmm2, xmm0
movss dword [edi + 4], xmm2
movss dword [edi], xmm1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
leave
ret

Function at 0x1000a6e5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x7b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1000a6e9
mov eax, 0xff
lea ecx, [ebp - 4]
push eax
push 0
push eax
push eax
call fcn.10004f4c
mov ecx, dword [0x100217a0]
push str.Unhooking_succeded__...__n
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x20]
add esp, 0xc
call fcn.1000a5ef
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push dword [0x1002178c]
call dword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]

Function at 0x1000a73b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push 0x1001ca9c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 7
pop ecx
lea edi, [ebp - 0x20]
lea esi, [eax + 0x464d4]
xor eax, eax
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp dword [ebp - 0xc], 1
je 0x1000a7a7
and dword [ebp - 4], 0
lea eax, [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push 5
push esi
call edi
test eax, eax
je 0x1000a7a7
push 5
push 0x90
push esi
call dword [sym.imp.VCRUNTIME140.dll_memset]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 5
push esi
call edi
pop edi
pop esi
leave
ret
Function at 0x1000b800
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1000b831
push esi
mov esi, dword [ebp + 8]
mov dword [0x1002178c], esi
test esi, esi
je 0x1000b81e
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
push eax
push eax
push esi
push 0x1000a7ab
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
xor eax, eax
inc eax
pop ebp
ret 0xc
Function at 0x1000eedb
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov edx, dword [0x10022418]
sub esp, 0x10
lea eax, [edx + 0x10]
push esi
push edi
cmp dword [0x10022414], eax
jle 0x1000f0ae
mov ecx, dword [0x10022420]
lea eax, [ecx - 1]
cmp eax, dword [0x10022440]
jne 0x1000f0ae
test ecx, ecx
je 0x1000f0ae
mov eax, dword [0x10022424]
test eax, eax
je 0x1000ef3d
dec eax
cmp eax, dword [0x10022444]
jne 0x1000f0ae
movaps xmm0, xmmword [0x1001de30]
lea esi, [ebp - 0x10]
mov eax, dword [0x10022410]
sub esp, 0x10
mov edi, esp
add eax, 0x99
movups xmmword [ebp - 0x10], xmm0
push ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp], 0x40c00000
push 0x10
push 0x8c
push edx
push eax
call fcn.10005bfc
movaps xmm0, xmmword [0x1001de50]
lea esi, [ebp - 0x10]
mov eax, dword [0x10022410]
push str.Aimbot_Key
push 0x1001c800
push 0
push dword [0x10021f80]
movups xmmword [ebp - 0x10], xmm0
sub esp, 0x10
add eax, 6
mov edi, esp
push dword [0x10022418]
movsd dword es:[edi], dword [esi]
push eax
push 0x10021f7c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.100062e5
mov ecx, dword [0x100217dc]
add esp, 0x2c
xor esi, esi
mov eax, dword [ecx]
push 0x6b
mov eax, dword [eax + 0x2c]
call eax
test al, al
je 0x1000effb
mov ecx, dword [0x10022410]
mov edx, dword [0x10022418]
push 0x10
push 0x8c
lea ecx, [ecx + 0x99]
call fcn.1000caa8
pop ecx
pop ecx
test al, al
je 0x1000effb
mov al, 1
mov byte [0x10023100], al
jmp 0x1000f027
mov al, byte [0x10023100]
test al, al
jne 0x1000f02b
mov ecx, dword [0x10021030]
cmp ecx, 0x7c
jbe 0x1000f016
mov esi, 0x1002244c
jmp 0x1000f01f
imul esi, ecx, 0x18
add esi, 0x1002244c
cmp dword [esi + 0x14], 0x10
jb 0x1000f027
mov esi, dword [esi]
test al, al
je 0x1000f052
mov esi, 0x1001cfc8
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x1000f045
inc edi
cmp edi, 0x7c
jl 0x1000f032
jmp 0x1000f052
mov dword [0x10021030], edi
mov byte [0x10023100], 0
movaps xmm0, xmmword [0x1001de50]
push esi
mov eax, dword [0x10022410]
lea esi, [ebp - 0x10]
push 0x1001c800
push 0
push dword [0x10021f80]
movups xmmword [ebp - 0x10], xmm0
sub esp, 0x10
add eax, 0x9f
mov edi, esp
push dword [0x10022418]
movsd dword es:[edi], dword [esi]
push eax
push 0x10021f7c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.100062e5
mov eax, dword [0x10022418]
add esp, 0x2c
mov dword [0x1002241c], eax
add eax, 0x1a
and dword [0x10022448], 0
mov dword [0x10022418], eax
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
Function at 0x10012aeb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
call fcn.100128a1
mov ecx, eax
test ecx, ecx
je 0x10012bbb
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x10012bbb
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x10012bbb
mov eax, dword [eax + ecx + 0x50]
xor esi, esi
add eax, ecx
mov edi, ebx
mov dword [ebp - 0xc], eax
cmp ecx, eax
jae 0x10012bbb
mov bl, byte [edi]
cmp bl, 0x3f
je 0x10012b89
lea eax, [ebx - 0x30]
movzx edx, bl
cmp al, 9
ja 0x10012b51
add edx, 0xffffffd0
jmp 0x10012b57
and edx, 0xffffffdf
sub edx, 0x37
mov al, byte [edi + 1]
movzx ebx, al
sub al, 0x30
cmp al, 9
ja 0x10012b68
add ebx, 0xffffffd0
jmp 0x10012b6e
and ebx, 0xffffffdf
sub ebx, 0x37
movzx eax, byte [ecx]
shl edx, 4
or edx, ebx
cmp eax, edx
je 0x10012b87
test esi, esi
je 0x10012bb5
mov edi, dword [ebp - 8]
mov ecx, esi
xor esi, esi
jmp 0x10012bb5
mov bl, byte [edi]
test esi, esi
mov eax, ecx
cmovne eax, esi
cmp byte [edi + 2], 0
mov esi, eax
je 0x10012bc2
mov eax, 0x3f3f
cmp word [edi], ax
je 0x10012bab
cmp bl, 0x3f
jne 0x10012bab
push 2
jmp 0x10012bad
push 3
pop eax
add edi, eax
cmp byte [edi], 0
je 0x10012bc2
inc ecx
cmp ecx, dword [ebp - 0xc]
jb 0x10012b3b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, esi
jmp 0x10012bbd

Function at 0x10013e17
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x78
mov eax, dword [0x1002100c]
xor eax, esp
mov dword [esp + 0x74], eax
push 0x58
lea eax, [esp + 0xc]
mov dword [esp + 8], ecx
push 0
push eax
call dword [sym.imp.VCRUNTIME140.dll_memset]
and dword [esp + 0x24], 0
lea edx, [esp + 0x10]
and dword [esp + 0x28], 0
lea ecx, [esp + 0x14]
add esp, 8
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.10013cdd
pop ecx
lea edx, [esp + 8]
lea ecx, [esp + 0x64]
call fcn.10013d89
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x6a]
xor ecx, esp
call fcn.100190f2
mov esp, ebp
pop ebp
ret
Function at 0x402d90
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 0x402dcd
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 0x402ded
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404e68
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402fcc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404bf8
test esi, esi
jne 0x403003
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.00404ce8
jmp 0x403024
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402e68
mov dword [esp], eax
test esi, esi
je 0x403024
cmp dword [ebx], 0
je 0x403024
dec esi
jmp 0x40300b
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403c38
Capabilities:
Query or enumerate registry value

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

Function at 0x4049f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a204c], 0
je 0x404a51
cmp word [0x4a2220], 0xd7b2
jne 0x404a19
cmp dword [0x4a2228], 0
jbe 0x404a19
mov eax, 0x4a221c
call dword [0x4a2238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49f074
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 0x404a78
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49f034], 0
jne 0x404a6d
push 0
push 0x49f06c
push 0x49f074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404bac
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.00402b90
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4a204d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404b74
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc