joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4305c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5035d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x430725
cmp dword [eax + 0x21c], 0
je 0x43060f
push ebx
push esi
push edi
push eax
call fcn.00430930
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1365
mov esp, ebp
pop ebp
ret 0x10
push 0x104
add eax, 0xc
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004ad44d
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004ad2a7
add esp, 0x1c
lea eax, [ebp - 0x20c]
push 0
push 0
push 3
push 0
push 7
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x430725
test edi, edi
je 0x430725
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x4306f6
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebx
push 0
push eax
mov dword [esi], eax
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
cmp dword [ebx], 0
jne 0x4306a3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x430717
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
push ecx
push dword [ebp - 0x214]
mov dword [ebp - 0x210], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4306f6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1365
mov esp, ebp
pop ebp
ret 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx]
test ecx, ecx
je 0x43070f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx], 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a1365
mov esp, ebp
pop ebp
ret 0x10
Function at 0x431a30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1443
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5035d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
xor eax, eax
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 7
mov word [esi + 0x1c], ax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
lea ecx, [esi + 0x48]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
mov dword [ebp - 4], eax
mov word [ecx], ax
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0xffffffff
push eax
push 0x4f5018
mov byte [ebp - 4], 1
mov dword [esi + 0x60], 4
mov byte [esi + 0x40], al
mov dword [esi + 0x44], eax
call fcn.00408140
mov dword [esi + 0x68], 0
mov eax, esi
mov dword [esi + 0x64], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x431b00
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1473
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5035d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
xor eax, eax
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 7
mov word [esi + 0x1c], ax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi], vtable.TiXmlElement.0
xor ecx, ecx
mov dword [esi + 0x48], 0xffffffff
mov dword [esi + 0x44], 0xffffffff
mov dword [esi + 0x40], vtable.TiXmlAttribute.0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 7
mov dword [ebp - 4], eax
lea eax, [esi + 0x40]
mov word [eax + 0x10], cx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], 7
mov word [eax + 0x28], cx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x44], eax
mov dword [eax + 0x40], eax
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], ecx
lea ebx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431bc0
sub eax, ebx
lea ecx, [esi + 0x1c]
sar eax, 1
push eax
push dword [ebp + 8]
call fcn.00408140
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x435d40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc04
mov eax, dword [0x5035d0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x404]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x435d60
lea ecx, [ebp + 0xc]
sub eax, edx
push ecx
push 0
push dword [ebp + 8]
sar eax, 1
push eax
lea eax, [ebp - 0x404]
push 0x200
push eax
call fcn.00401070
push dword [eax + 4]
push dword [eax]
call fcn.004abe92
mov ecx, dword [0x5059f0]
lea eax, [ecx + 1]
mov dword [0x5059f0], eax
lea eax, [ebp - 0x404]
push eax
push ecx
lea eax, [ebp - 0xc04]
push str.__d__s
push eax
call fcn.004291c0
add esp, 0x30
lea eax, [ebp - 0xc04]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1365
mov esp, ebp
pop ebp
ret

Function at 0x43dec0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x11
mov esi, ecx
call dword [sym.imp.USER32.dll_GetKeyState]
mov di, word [ebp + 8]
and eax, 0x8000
movzx edx, di
add edx, 0xfffffffd
cmp edx, 0x17
ja case.0x43deee.4
movzx ecx, byte [edx + 0x43e050]
jmp dword [ecx*4 + 0x43e038]
test dword [esi + 0xdf8], 0x800
jne 0x43e02d
test eax, eax
jne 0x43e02d
mov eax, dword [esi + 0xe10]
cmp eax, dword [esi + 0xe14]
jne 0x43df49
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.0043d710
mov eax, dword [esi + 0xe14]
test eax, eax
lea ecx, [eax - 1]
cmove ecx, eax
push ecx
push dword [esi + 0xe10]
mov ecx, esi
call fcn.0043d710
mov ecx, esi
call fcn.0043d3f0
mov eax, dword [esi]
push esi
call dword [eax + 0x1c4]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
test byte [esi + 0xdf8], 0x20
jne 0x43e02d
mov eax, dword [esi]
push esi
call dword [eax + 0x1c0]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
test dword [esi + 0xdf8], 0x800
jne 0x43e02d
mov eax, dword [esi]
push esi
call dword [eax + 0x1bc]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
test dword [esi + 0xdf8], 0x820
jne 0x43e02d
mov eax, dword [esi]
push esi
call dword [eax + 0x1c8]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
test dword [esi + 0xdf8], 0x800
jne 0x43e02d
mov ecx, esi
call fcn.0043e810
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
mov eax, dword [esi + 0xdf8]
test eax, 0x2000
je 0x43dfff
cmp di, 0x30
jb 0x43dff9
cmp di, 0x39
jbe 0x43dfff
cmp di, 0x2d
jne 0x43e02d
test eax, 0x800
jne 0x43e02d
cmp di, 0x20
jb 0x43e02d
cmp di, 0x7f
je 0x43e02d
xor eax, eax
mov word [ebp + 8], di
push 1
mov word [ebp + 0xa], ax
mov ecx, esi
push 1
lea eax, [ebp + 8]
push eax
push 1
call fcn.0043e2a0
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
Function at 0x43e0a0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
mov edi, dword [eax + 0xe10]
mov ecx, edi
mov eax, dword [eax + 0xe14]
cmp edi, eax
cmovge ecx, eax
cmovle edi, eax
mov dword [ebp - 4], ecx
cmp edi, ecx
je 0x43e132
sub edi, ecx
push ebx
add edi, edi
push esi
lea eax, [edi + 2]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp + 8]
mov esi, eax
mov eax, dword [ebp - 4]
push edi
mov ecx, dword [ecx + 0xdd8]
lea ecx, [ecx + eax*2]
push ecx
push esi
call fcn.004a4870
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 8]
push dword [eax + 0xc38]
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x43efa0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test dword [esi + 0xdf8], 0x800
jne 0x43f018
push edi
push dword [esi + 0xc38]
call dword [sym.imp.USER32.dll_OpenClipboard]
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x43eff6
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 1
push 1
push eax
push 1
mov ecx, esi
call fcn.0043e2a0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
ret 4
test byte [esi + 0xdf8], 0x20
je 0x43f011
push 1
push 1
push 0x4d7b34
push 1
mov ecx, esi
call fcn.0043e2a0
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
ret 4

Function at 0x442ab0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x11d0]
cmp ebx, 0xffffffff
je 0x442c30
test ebx, ebx
js 0x442c30
mov ecx, dword [edi + 0x11d4]
cmp ebx, ecx
jge 0x442c30
mov eax, dword [edi + 0x11e4]
mov eax, dword [eax + ebx*4]
mov dword [ebp + 8], eax
test eax, eax
je 0x442c30
test ebx, ebx
js 0x442c28
cmp ebx, ecx
jge 0x442c28
test eax, eax
je 0x442c28
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
and eax, 0x8000
push 0x11
mov dword [ebp - 4], eax
call esi
and eax, 0x8000
cmp dword [edi + 0x11cc], 0
je 0x442bdd
cmp dword [ebp - 4], 0
jne 0x442b66
test eax, eax
je 0x442bdd
mov eax, dword [ebp + 8]
mov ecx, eax
cmp dword [eax + 0xc], 0
je 0x442b5a
mov dword [eax + 0xc], 0
push 1
jmp 0x442c22
mov dword [eax + 0xc], 1
jmp 0x442c20
mov edx, dword [edi + 0x11d4]
cmp ebx, edx
jge 0x442c16
mov ecx, dword [edi + 0x11e4]
lea eax, [ebx*4]
mov esi, ebx
add ecx, eax
mov eax, dword [ecx]
cmp dword [eax + 0xc], 0
jne 0x442b97
sub ecx, 4
sub esi, 1
jns 0x442b85
jmp 0x442c16
cmp esi, 0xffffffff
je 0x442c16
test esi, esi
js 0x442c27
cmp esi, edx
jge 0x442c27
cmp esi, ebx
jge 0x442c27
mov eax, dword [edi + 0x11e4]
push 4
mov ecx, dword [eax + esi*4]
mov dword [ecx + 0xc], 1
call fcn.00461b50
inc esi
cmp esi, ebx
jle 0x442bb0
pop esi
push 1
push edi
call fcn.004279c0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor esi, esi
cmp dword [edi + 0x11d4], esi
jle 0x442c16
nop word [eax + eax]
mov eax, dword [edi + 0x11e4]
mov ecx, dword [eax + esi*4]
cmp dword [ecx + 0xc], 0
je 0x442c0d
push 1
mov dword [ecx + 0xc], 0
call fcn.00461b50
inc esi
cmp esi, dword [edi + 0x11d4]
jl 0x442bf0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 1
push 4
call fcn.00461b50
pop esi
push 1
push edi
call fcn.004279c0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x449480
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0xcb0]
mov dword [esi + 0xc24], edi
test edi, edi
je 0x4494b0
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0xc24], edi
pop edi
pop esi
pop ebp
ret 8
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0xc24], edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x44f010
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov eax, dword [edi]
call dword [eax + 0x54]
push 2
push edi
mov esi, eax
call fcn.00428010
push 1
push edi
call fcn.004279c0
cmp esi, 4
jne 0x44f05c
push 5
push 0
push 0
lea eax, [edi + 0xcb0]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push 0
push 0x21
mov ecx, edi
call fcn.004265a0
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x44f070
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 5
push 0
push 0
add eax, 0xcb0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret 4

Function at 0x456fd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
push 1
lea eax, [edi + 0xcb0]
push eax
push edi
call fcn.00426410
test eax, eax
je 0x45703e
mov eax, dword [edi]
push edi
call dword [eax + 0x194]
push 0
push 0
push 1
push 0
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
mov dword [edi + 0xdc0], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0xdc4], eax
lea eax, [ebp + 8]
push eax
push 0
push edi
push 0x456dc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0xdbc], eax
pop edi
pop ebp
ret 4

Function at 0x458f00
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
push edi
mov dword [ebp - 4], eax
mov edi, dword [eax + 0xffc]
mov ecx, edi
mov eax, dword [eax + 0x1000]
cmp edi, eax
cmovge ecx, eax
cmovle edi, eax
mov dword [ebp - 8], ecx
cmp edi, ecx
je 0x458f96
sub edi, ecx
push ebx
add edi, edi
push esi
lea eax, [edi + 2]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp - 4]
mov esi, eax
mov eax, dword [ebp - 8]
push edi
mov ecx, dword [ecx + 0xfcc]
lea ecx, [ecx + eax*2]
push ecx
push esi
call fcn.004a4870
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 4]
push dword [eax + 0xc38]
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x459c70
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push esi
mov esi, ecx
test dword [esi + 0xfe4], 0x800
jne 0x459cbe
push edi
push dword [esi + 0xc38]
call dword [sym.imp.USER32.dll_OpenClipboard]
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x459cb6
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 1
push 1
push eax
push 1
mov ecx, esi
call fcn.0045a530
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
ret
Function at 0x4634b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2133
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5035d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00436350
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], 0
xor eax, eax
mov dword [esi], vtable.duImageStyle.0
lea ecx, [esi + 0x4c]
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
push eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push 0x4f5018
mov dword [ebp - 4], 0
mov word [ecx], ax
call fcn.00408140
xor eax, eax
mov dword [esi + 0x74], 0
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 1
mov dword [ecx + 0x14], 7
push eax
push 0x4f5018
mov word [ecx], ax
call fcn.00408140
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4635c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2158
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5035d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00436350
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], 0
xor eax, eax
mov dword [esi], vtable.duLineStyle.0
lea ecx, [esi + 0x34]
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 1
push eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push 0x4f5018
mov dword [ebp - 4], 0
mov word [ecx], ax
call fcn.00408140
push 0
push 0
lea ecx, [esi + 0x4c]
call fcn.00434800
push 0
push 0
lea ecx, [esi + 0x54]
call fcn.00434800
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x463690
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2158
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5035d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00436350
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], 0
xor eax, eax
mov dword [esi], vtable.duRectStyle.0
lea ecx, [esi + 0x40]
mov dword [esi + 0x2c], 0xffffff
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 1
push eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push 0x4f5018
mov dword [ebp - 4], 0
mov word [ecx], ax
call fcn.00408140
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x463760
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d219e
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5035d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00436350
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], 0
xor eax, eax
mov dword [esi], vtable.duTextStyle.0
lea ecx, [esi + 0x34]
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 1
push eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push 0x4f5018
mov dword [ebp - 4], 0
mov word [ecx], ax
call fcn.00408140
xor eax, eax
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
mov dword [ecx + 0x14], 7
push eax
push 0x4f5018
mov word [ecx], ax
call fcn.00408140
xor eax, eax
mov dword [esi + 0x74], 0
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 2
mov dword [ecx + 0x14], 7
push eax
push 0x4f5018
mov word [ecx], ax
call fcn.00408140
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x465f20
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x466055
cmp word [esi], 0
je 0x466055
mov ecx, dword [ebp + 8]
call fcn.00465c60
push 0
push 0
push 3
push 0
push 7
push accept
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x466055
test esi, esi
je 0x466055
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x466044
push edi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
cmp dword [ebp + 0xc], 0
jne 0x465fbe
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46601b
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x40]
test eax, eax
je 0x46601b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x466b40
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x5035d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x466c7e
cmp dword [ebp + 0x10], 0
jle 0x466c7e
mov eax, dword [edi + 0x210]
test eax, eax
je 0x466b89
push eax
call dword [sym.imp.USER32.dll_DestroyCursor]
mov dword [edi + 0x210], 0
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x466c7e
cmp eax, 0x104
ja 0x466c7e
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x4dd7e4
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x466c7e
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x466c7e
test esi, esi
je 0x466c7e
push 0
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0
push eax
push dword [ebp + 0x10]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
je 0x466c6b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x50
push 0
push 0
push 2
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [edi + 0x210], eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi + 0x210]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1365
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a1365
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4689b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5035d0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x468a03
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4689fd
shr eax, 8
cmp al, 2
jne 0x4689fd
call fcn.0046ce90
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1365
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.004a1365
mov esp, ebp
pop ebp
ret

Function at 0x46d7b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x46d7ce
cmp dword [esi + 0x48], 0
je 0x46d7ce
push 2
push 3
push esi
call fcn.00481970
add esp, 0xc
push dword [ebp + 0xc]
call fcn.00478e20
add esp, 4
test esi, esi
je 0x46d7ee
cmp dword [esi + 0x48], 0
je 0x46d7ee
push 3
push esi
call fcn.004819b0
add esp, 8
pop esi
pop ebp
ret