joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431300
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aab93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x18], esi
call fcn.00401000
xor edi, edi
lea ebx, [esi + 0x1c]
push edi
mov ecx, ebx
mov dword [ebp - 4], edi
mov dword [esi], 0x4b2ec8
call fcn.004259a0
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov ecx, ebx
mov byte [ebp - 4], 1
mov dword [esi + 0x18], 0x7d0
call fcn.004259f0
xor ebx, ebx
mov dword [ebp - 0x10], 0x41200000
mov dword [ebp - 0x14], ebx
jmp 0x431370
xor edi, edi
lea ebx, [ebx]
fild dword [ebp - 0x14]
mov dword [ebp + 8], edi
fstp dword [ebp - 0x14]
lea esp, [esp]
push 0x10
call fcn.0047e72d
add esp, 4
mov edi, eax
push edi
lea ecx, [esi + 0x1c]
call fcn.00425da0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov ecx, dword [esi + 4]
push 0
push 0x168
add ecx, 0x3da4
call fcn.00425f10
mov dword [edi + 8], eax
mov ecx, dword [esi + 4]
push 0
push 5
add ecx, 0x3da4
call fcn.00425f10
add eax, 5
test ebx, ebx
mov dword [edi + 0xc], eax
jne 0x4313de
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4313de
mov dword [esi + 0x34], edi
mov eax, dword [ebp + 8]
inc eax
cmp eax, 2
mov dword [ebp + 8], eax
jl 0x431380
fld dword [ebp - 0x10]
inc ebx
cmp ebx, 0x32
fmul dword [0x4b2ed8]
mov dword [ebp - 0x14], ebx
fstp dword [ebp - 0x10]
jl 0x431368
fild dword [ebp + 0xc]
mov edi, dword [esi + 4]
mov byte [esi + 0x38], 0
fst dword [esi + 8]
fild dword [ebp + 0x10]
fst dword [esi + 0xc]
mov eax, dword [edi + 0x494]
mov ecx, dword [eax + 0x78]
mov dword [esi + 0x54], ecx
mov eax, dword [ecx + 0x10]
cdq
sub eax, edx
mov edx, dword [ecx + 8]
sar eax, 1
add eax, edx
mov dword [esi + 0x58], eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
cdq
sub eax, edx
sar eax, 1
lea ebx, [eax + ecx]
mov dword [esi + 0x5c], ebx
call fcn.0047e73c
mov dword [ebp + 8], eax
call fcn.0047e73c
mov edx, eax
mov eax, dword [esi + 0x58]
mov dword [ebp - 0x14], edx
mov ecx, eax
sub ecx, edx
mov edx, ebx
sub edx, dword [ebp + 8]
mov ebx, edx
imul ebx, edx
mov edx, ecx
imul edx, ecx
add ebx, edx
mov dword [ebp + 0x10], ebx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
fild dword [ebp + 0x10]
push ecx
mov ecx, dword [esi + 0x5c]
push edx
fsqrt
push ecx
push eax
lea ecx, [edi + 0x325c]
fstp dword [esi + 0x3c]
call fcn.00421b00
mov dword [ebp + 8], eax
fild dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [esi + 0x50], 0
fst dword [esi + 0x44]
mov eax, esi
fmul dword [0x4b2ed4]
fld st(0)
fsin
fmul dword [esi + 0x3c]
fiadd dword [esi + 0x58]
fstp dword [esi + 8]
fild dword [esi + 0x5c]
fxch st(1)
fcos
fxch st(1)
fxch st(1)
fmul dword [esi + 0x3c]
fsubp st(1)
fstp dword [esi + 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x437540
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x234]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0x220], 1
pop esi
ret
Function at 0x4393d0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 0x234]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4394bc
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
push edi
inc eax
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [esi + 0x18], 0x10
lea ecx, [esi + 4]
mov dword [ebp + 8], ecx
jb 0x439416
mov ecx, dword [ecx]
mov edx, eax
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x439418
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, dword [sym.imp.USER32.dll_SetClipboardData]
push edi
push 1
call ebx
push edi
push 7
call ebx
push edi
push 0x10
call ebx
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
cmp ecx, 0x10
mov ecx, dword [ebp + 8]
jb 0x43944e
mov ecx, dword [ecx]
push 0
push 0
push eax
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
lea edx, [edi + edi + 2]
push edx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
cmp edx, 0x10
mov edx, dword [ebp + 8]
mov dword [ebp - 4], eax
jb 0x43948c
mov edx, dword [edx]
push edi
push eax
push ecx
push edx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 4]
push ebx
mov word [eax + edi*2], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43e670
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov al, byte [esi + 0x338]
test al, al
push edi
mov edi, dword [ebp + 8]
je 0x43e6bc
cmp dword [esi + 0x354], 0x10
mov ecx, dword [esi + 0x350]
jb 0x43e69b
mov eax, dword [esi + 0x340]
jmp 0x43e6a1
lea eax, [esi + 0x340]
push ecx
push eax
mov eax, dword [edi + 0x14]
push eax
push 0
mov ecx, edi
call fcn.004387b0
test eax, eax
jne 0x43e6bc
pop edi
mov al, 1
pop esi
pop ebp
ret 8
mov cl, byte [ebp + 0xc]
push 0xffffffffffffffff
push 0
mov byte [esi + 0x339], cl
push edi
lea ecx, [esi + 0x33c]
mov byte [esi + 0x338], 1
call fcn.00403610
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x358], eax
cmp dword [edi + 0x18], 0x10
jb 0x43e6f3
mov eax, dword [edi + 4]
jmp 0x43e6f6
lea eax, [edi + 4]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x43e6b4
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x44]
pop edi
xor al, al
pop esi
pop ebp
ret 8

Function at 0x43e720
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab0b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push esi
push edi
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x18], 0x10
mov dword [ebp - 4], ebx
lea esi, [edi + 4]
jb 0x43e763
mov eax, dword [esi]
jmp 0x43e765
mov eax, esi
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp + 0xc], eax
jbe 0x43e7fe
push eax
call fcn.0047ea2e
mov ebx, eax
mov eax, dword [edi + 0x18]
add esp, 4
cmp eax, 0x10
jb 0x43e78c
mov esi, dword [esi]
mov eax, dword [ebp + 0xc]
push ebx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
push str.StringFileInfo040904B0ProductVersion
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x43e7c1
mov edx, dword [ebp - 0x10]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43e7b8
jmp 0x43e7e7
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
push str.StringFileInfo040904E4ProductVersion
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x43e7f3
mov edx, dword [ebp - 0x10]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43e7e0
sub eax, esi
push eax
lea ecx, [ebp - 0x2c]
push edx
call fcn.004036d0
push ebx
call fcn.0047df89
add esp, 4
xor ebx, ebx
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x2c]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], 0
call fcn.00403610
cmp dword [ebp - 0x14], 0x10
jb 0x43e82f
mov eax, dword [ebp - 0x28]
push eax
call fcn.0047df89
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x43fd00
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab0b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
mov eax, dword [ecx + 0x234]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x43fd83
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
cmp esi, ebx
je 0x43fd7d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
je 0x43fd7d
mov ecx, eax
push edi
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x43fd62
sub ecx, edi
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.004036d0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2c]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00403610
cmp dword [ebp - 0x14], 0x10
jb 0x43fdb3
mov edx, dword [ebp - 0x28]
push edx
call fcn.0047df89
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4460a0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4abae6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x30]
mov ecx, edi
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.Sexy::WidgetManager.0
call fcn.004398e0
xor ebx, ebx
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov eax, dword [ebp + 8]
mov dword [esi + 0x60], ebx
push 0x5c
mov dword [ebp - 4], ebx
mov dword [esi + 0xc], eax
mov byte [esi + 0x50], bl
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
mov byte [esi + 0x18], bl
mov dword [esi + 0x14], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov byte [esi + 0x3c], 1
call fcn.0047e72d
add esp, 4
mov dword [ebp + 8], eax
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x44612b
mov ecx, eax
call fcn.004664d0
jmp 0x44612d
xor eax, eax
mov dword [esi + 0x28], eax
mov dword [esi + 4], ebx
mov dword [esi + 0x164], ebx
mov dword [esi + 0x168], ebx
xor eax, eax
lea edi, [esi + 0x64]
mov ecx, 0x3f
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0xc]
stosw word es:[edi], ax
stosb byte es:[edi], al
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x4513c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac59b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi], vtable.Sexy::Widget.0
mov dword [ebp - 0x10], esi
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
lea ecx, [esi + 0x38]
mov dword [ebp - 4], ebx
call fcn.00466730
mov ecx, dword [ebp - 0xc]
mov al, 1
mov byte [esi + 0x19], al
mov byte [esi + 0x1a], al
mov byte [esi + 0x18], al
mov dword [esi + 0x24], ebx
mov dword [esi + 4], ebx
mov byte [esi + 0x1c], bl
mov byte [esi + 0x1e], bl
mov byte [esi + 0x1f], bl
mov byte [esi + 0x48], bl
mov byte [esi + 0x1b], bl
mov byte [esi + 0x1d], bl
mov byte [esi + 0x20], bl
mov byte [esi + 0x21], bl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x45c800
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], esi
call fcn.004371d0
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 0x24], ebx
call dword [eax + 0x48]
mov edi, dword [ebp + 8]
mov esi, ebx
shr esi, 0x18
cmp esi, 0xff
mov dword [ebp - 8], eax
mov eax, dword [edi + 4]
jne 0x45c88c
mov ecx, dword [edi + 0xc]
add ecx, eax
cmp eax, ecx
jge 0x45c9b4
mov esi, dword [edi + 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 4]
mov edx, dword [edi]
imul ecx, eax
add ecx, edx
mov edx, dword [ebp - 8]
lea ecx, [edx + ecx*4]
xor edx, edx
test esi, esi
jle 0x45c86e
mov dword [ecx], ebx
mov esi, dword [edi + 8]
add ecx, 4
inc edx
cmp edx, esi
jl 0x45c861
mov ecx, dword [edi + 4]
mov edx, dword [edi + 0xc]
inc eax
add ecx, edx
cmp eax, ecx
jl 0x45c848
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
call dword [edx + 0x30]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [edi + 0xc]
add edx, eax
cmp eax, edx
mov dword [ebp + 0xc], eax
jge 0x45c9b4
mov edx, dword [edi + 8]
nop
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
imul ecx, eax
add ecx, dword [edi]
test edx, edx
mov eax, dword [ebp - 8]
lea ecx, [eax + ecx*4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], 0
jle 0x45c99f
mov eax, ebx
and eax, 0xff0000
mov dword [ebp - 0x1c], eax
mov eax, ebx
and eax, 0xff
and ebx, 0xff00
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ebx
mov ecx, dword [ecx]
mov ebx, ecx
shr ebx, 0x18
mov edi, 0xff
sub edi, ebx
imul edi, esi
mov eax, 0x80808081
imul edi
add edx, edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
add edx, ebx
mov edi, edx
mov eax, esi
imul eax, eax, 0xff
cdq
idiv edi
mov ebx, dword [ebp - 0x18]
mov edx, ecx
and edx, 0xff
mov dword [ebp - 0x20], edi
mov edi, 0x100
mov esi, eax
mov eax, dword [ebp - 0x14]
imul ebx, esi
imul eax, esi
sub edi, esi
imul edx, edi
shr eax, 8
shr edx, 8
add edx, eax
mov eax, ecx
and eax, 0xff00
imul eax, edi
shr eax, 8
movzx edx, dl
shr ebx, 8
add eax, ebx
mov dh, ah
mov eax, dword [ebp - 0x1c]
and ecx, 0xff0000
imul eax, esi
imul ecx, edi
mov edi, dword [ebp + 8]
shr ecx, 8
shr eax, 8
add ecx, eax
mov eax, dword [ebp - 0x20]
and ecx, 0xff0000
or edx, ecx
mov ecx, dword [ebp - 0xc]
shl eax, 0x18
or edx, eax
mov eax, dword [ebp - 0x10]
mov dword [ecx], edx
mov edx, dword [edi + 8]
add ecx, 4
inc eax
cmp eax, edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
jl 0x45c8e0
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
add ecx, dword [edi + 0xc]
inc eax
cmp eax, ecx
mov dword [ebp + 0xc], eax
jl 0x45c8a0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
call dword [edx + 0x30]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x464f10
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push str.IMAGEHLP.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x508984], eax
jne 0x464f33
xor al, al
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SymInitialize
push eax
call esi
test eax, eax
mov dword [0x508988], eax
jne 0x464f52
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x508984]
push str.SymSetOptions
push eax
call esi
test eax, eax
mov dword [0x50898c], eax
je 0x464f4b
mov ecx, dword [0x508984]
push str.SymCleanup
push ecx
call esi
test eax, eax
mov dword [0x508994], eax
je 0x464f4b
mov edx, dword [0x508984]
push str.UnDecorateSymbolName
push edx
call esi
test eax, eax
mov dword [0x508990], eax
je 0x464f4b
mov eax, dword [0x508984]
push str.StackWalk
push eax
call esi
test eax, eax
mov dword [0x508998], eax
je 0x464f4b
mov ecx, dword [0x508984]
push str.SymFunctionTableAccess
push ecx
call esi
test eax, eax
mov dword [0x50899c], eax
je 0x464f4b
mov edx, dword [0x508984]
push str.SymGetModuleBase
push edx
call esi
test eax, eax
mov dword [0x5089a0], eax
je 0x464f4b
mov eax, dword [0x508984]
push str.SymGetSymFromAddr
push eax
call esi
test eax, eax
mov dword [0x5089a4], eax
je 0x464f4b
push 4
call dword [0x50898c]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x108]
push 0x2f
push edx
call fcn.004808d0
add esp, 8
test eax, eax
jne 0x46503e
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.004808d0
add esp, 8
test eax, eax
je 0x465041
mov byte [eax], 0
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x108]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x465050
sub eax, esi
mov dword [ebp - 4], eax
jne 0x465060
xor edx, edx
push 1
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x508988]
test eax, eax
setne al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4650a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov edi, dword [ebp + 8]
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x4650c2
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp - 0x1c]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x465123
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 0x14]
add eax, esi
lea ecx, [ecx + eax + 0x18]
movzx eax, word [eax + 6]
sub edi, esi
xor ebx, ebx
test eax, eax
mov dword [ebp - 4], eax
jbe 0x465123
lea eax, [ecx + 0x10]
lea ebx, [ebx]
mov ecx, dword [eax]
mov edx, dword [eax - 8]
cmp ecx, edx
mov esi, dword [eax - 4]
ja 0x46510e
mov ecx, edx
cmp edi, esi
jb 0x465118
add ecx, esi
cmp edi, ecx
jbe 0x46512c
mov ecx, dword [ebp - 4]
inc ebx
add eax, 0x28
cmp ebx, ecx
jb 0x465100
pop esi
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
inc ebx
sub edi, esi
pop esi
mov dword [edx], ebx
mov dword [eax], edi
pop ebx
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x466e40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ace58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor ebx, ebx
lea eax, [esi + 0xc]
push eax
mov dword [esi], vtable.Sexy::DSoundInstance.0
mov dword [esi + 4], ecx
mov byte [esi + 0x12], bl
mov byte [esi + 0x10], bl
mov byte [esi + 0x11], bl
mov dword [esi + 8], edx
mov dword [eax], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], 0x3ff00000
mov ecx, dword [ecx + 0x898]
mov edi, dword [ecx]
push edx
push ecx
mov dword [ebp - 4], ebx
call dword [edi + 0x14]
cmp eax, ebx
je 0x466f13
cmp eax, 0x8878000a
jg 0x466ee0
je 0x466ed3
cmp eax, 0x8007000e
je 0x466ec6
cmp eax, 0x80070057
jne 0x466f0d
push ebx
push 0x4b4d8c
push str.DSERR_INVALIDPARAM
jmp 0x466f06
push ebx
push 0x4b4d8c
push str.DSERR_OUTOFMEMORY
jmp 0x466f06
push ebx
push 0x4b4d8c
push str.DSERR_ALLOCATED
jmp 0x466f06
cmp eax, 0x88780032
je 0x466efb
cmp eax, 0x887800aa
jne 0x466f0d
push ebx
push 0x4b4d8c
push str.DSERR_UNINITIALIZED
jmp 0x466f06
push ebx
push 0x4b4d8c
push str.DSERR_INVALIDCALL
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.00480886
mov ecx, esi
call fcn.00466c90
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x46e450
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x46e483
push esi
call fcn.00474b70
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x46e47c
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
pop ebp
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x46e504
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x46e4f3
lea ebx, [ebx]
mov eax, dword [esi + 8]
test eax, eax
je 0x46e4ad
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46e4ee
cmp eax, 2
je 0x46e4f3
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46e4a0
cmp eax, 3
je 0x46e4d3
cmp eax, 1
jne 0x46e4a0
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x46e4a0
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x46e4a0
xor al, al
pop esi
pop ebp
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.0046e2e0
pop esi
pop ebp
ret
cmp eax, 0xcc
je 0x46e524
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
call fcn.0046e2e0
pop esi
pop ebp
ret
Function at 0x47edf5
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4b7968
call fcn.00482dd8
mov edi, 0x94
mov eax, edi
call fcn.0047ea40
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x5089c4], ecx
mov eax, dword [esi + 4]
mov dword [0x5089d0], eax
mov edx, dword [esi + 8]
mov dword [0x5089d4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x5089c8], esi
cmp ecx, 2
je 0x47ee55
or esi, 0x8000
mov dword [0x5089c8], esi
shl eax, 8
add eax, edx
mov dword [0x5089cc], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x47ee90
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47ee90
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x47eea8
cmp eax, 0x20b
je 0x47ee95
mov dword [ebp - 0x1c], esi
jmp 0x47eebc
cmp dword [ecx + 0x84], 0xe
jbe 0x47ee90
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x47eeb6
cmp dword [ecx + 0x74], 0xe
jbe 0x47ee90
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0048377a
pop ecx
test eax, eax
jne 0x47eed0
push 0x1c
call fcn.0047edd1
pop ecx
call fcn.00482c38
test eax, eax
jne 0x47eee1
push 0x10
call fcn.0047edd1
pop ecx
call fcn.0048511f
mov dword [ebp - 4], esi
call fcn.00484f21
test eax, eax
jge 0x47eefa
push 0x1b
call fcn.0047edac
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x50a8d4], eax
call fcn.00484dff
mov dword [0x5089b0], eax
call fcn.00484d5d
test eax, eax
jge 0x47ef20
push 8
call fcn.0047edac
pop ecx
call fcn.00484b2a
test eax, eax
jge 0x47ef31
push 9
call fcn.0047edac
pop ecx
call fcn.0048074e
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x47ef44
push eax
call fcn.0047edac
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00484ac1
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x47ef65
movzx eax, word [ebp - 0x34]
jmp 0x47ef68
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00405ad0
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x47ef86
push edi
call fcn.00480886
call fcn.004808a8
jmp 0x47efb8
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00482e13
ret