joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4512e4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x470bb4]
cmp dword [eax + 0x30], 0
je 0x45138e
cmp dword [ebx + 0x94], 0
jne 0x451388
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451274
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451388
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45134e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451388
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414460
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45135d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x451ef0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x451f25
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404234
jmp 0x451f32
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404198
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452f84
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x452fc5
mov eax, esi
call fcn.004397e0
test al, al
je 0x452fc5
mov eax, dword [ebx + 0x84]
call fcn.004394dc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x452fc5
push 0
mov eax, dword [ebx + 0x84]
call fcn.004394dc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x454c90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x454ef0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x454cf3
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00454758
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040c6ec
cmp al, 1
jne 0x454cf3
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00454a70
test al, al
je 0x454e7f
cmp dword [ebp - 8], 0
jge 0x454d11
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00454758
mov eax, dword [ebp - 0x210]
call fcn.00404404
cmp ebx, eax
jge 0x454d5b
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00454758
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x46f360]
and eax, 0xff
bt dword [edx], eax
jae 0x454d5b
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x454d6f
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00454c6c
cmp ebx, dword [ebp - 8]
je 0x454e71
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x454d9b
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040356c
and eax, 0x7f
movzx eax, word [eax*2 + 0x46edf0]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x454e5e
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040356c
and eax, 0x7f
movzx eax, word [eax*2 + 0x46edf0]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.004394dc
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040356c
and eax, 0x7f
movzx eax, word [eax*2 + 0x46edf0]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.004394dc
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454e65
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x454ed2
cmp dword [ebp - 8], 0
jge 0x454e8a
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00454758
mov eax, dword [ebp - 0x218]
call fcn.00404404
cmp eax, dword [ebp - 8]
jg 0x454ec4
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00454758
mov eax, dword [ebp - 0x21c]
call fcn.00404404
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00454c6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454ef7
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404168
ret
Function at 0x463e70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
call sub.kernel32.dll_EnterCriticalSection_1
xor edx, edx
push ebp
push 0x463ec7
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x10]
xor edx, edx
div ecx
mov eax, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
shl eax, 2
add edx, eax
add edx, 0xc
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x463ed1
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
call sub.kernel32.dll_LeaveCriticalSection_1
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4643fc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push ebx
xor ebx, ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004045f4
mov eax, dword [ebp - 8]
call fcn.004045f4
mov eax, dword [ebp - 0xc]
call fcn.004045f4
xor eax, eax
push ebp
push 0x4645a2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x464471
mov eax, dword [ebp - 4]
call fcn.004086b4
test al, al
jne 0x464471
mov eax, dword [ebp - 4]
call fcn.004086d8
jmp 0x46449b
cmp dword [ebp - 4], 0
jne 0x46449b
lea eax, [ebp - 0x116]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 4]
lea edx, [ebp - 0x116]
mov ecx, 0x106
call fcn.004043b4
lea eax, [ebp - 0x116]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404604
push eax
mov eax, dword [ebp - 4]
call fcn.00404604
push eax
call sub.kernel32.dll_GetTempFileNameA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x116]
mov ecx, 0x106
call fcn.004043b4
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.00404198
mov edx, 0x4645b8
mov eax, dword [ebp - 0xc]
call fcn.00407f28
test eax, eax
je 0x464557
lea edx, [ebp - 0x11c]
mov eax, 1
call fcn.004643b0
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
call fcn.00404450
mov ecx, ebx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0040887c
mov eax, dword [ebx]
call fcn.00404604
mov edx, eax
lea eax, [ebp - 0x120]
call fcn.0040433c
mov eax, dword [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404604
mov edx, eax
lea eax, [ebp - 0x124]
call fcn.0040433c
mov eax, dword [ebp - 0x124]
pop edx
call fcn.004087d8
test al, al
je 0x4644e9
cmp byte [ebp + 0xc], 0
jne 0x464577
lea edx, [ebp - 0x128]
mov eax, dword [ebx]
call fcn.00408944
mov edx, dword [ebp - 0x128]
mov eax, ebx
call fcn.00404198
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4645a9
lea eax, [ebp - 0x128]
mov edx, 4
call fcn.00404168
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404168
ret
Function at 0x465a90
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe70
push esp
push 0x101
call sub.wsock32.dll_WSAStartup
mov dl, 1
mov eax, dword [0x465a38]
call fcn.00465e58
mov dword [0x470c60], eax
mov dl, 1
mov eax, dword [0x462010]
call fcn.00462704
mov dword [0x470c64], eax
mov eax, dword [0x470c64]
mov edx, dword [0x470c60]
mov dword [eax + 0x14], edx
mov dword [eax + 0x10], 0x465ec4
mov eax, dword [0x470c64]
mov edx, dword [0x470c60]
mov dword [eax + 0x24], edx
mov dword [eax + 0x20], 0x465ecc
add esp, 0x190
ret

Function at 0x465b10
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov byte [ebp - 1], cl
mov edi, edx
mov ebx, eax
xor esi, esi
mov word [ebp - 0x14], 2
push ebx
call sub.wsock32.dll_htons
mov word [ebp - 0x12], ax
xor eax, eax
mov dword [ebp - 0x10], eax
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
test ebx, ebx
jle 0x465bd8
push 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.wsock32.dll_bind
test eax, eax
jge 0x465b64
push ebx
call sub.wsock32.dll_closesocket
jmp 0x465bd8
push ebx
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4659b4]
call fcn.00465fa4
mov esi, eax
mov dword [esi + 0x64], edi
mov al, byte [ebp - 1]
mov byte [esi + 0x60], al
mov eax, dword [ebp + 8]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x24], eax
mov dl, 1
mov eax, dword [0x461f70]
call fcn.00462100
mov edi, eax
mov dword [esi + 0x30], edi
mov eax, dword [0x470c60]
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], 0x465ec4
lea edx, [esi + 0x48]
lea eax, [ebp - 0x14]
mov ecx, 0x10
call fcn.00402910
push 0x28
push 0x1195
mov eax, dword [0x470c60]
mov eax, dword [eax + 4]
push eax
push ebx
call sub.wsock32.dll_WSAAsyncSelect
push 5
push ebx
call sub.wsock32.dll_listen
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x465be4
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x465c83
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
test esi, esi
jle 0x465c83
push 0x33
push 0x1195
mov eax, dword [0x470c60]
mov eax, dword [eax + 4]
push eax
push esi
call sub.wsock32.dll_WSAAsyncSelect
push esi
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4659b4]
call fcn.00465fa4
mov ebx, eax
mov al, byte [ebp - 5]
mov byte [ebx + 0x60], al
lea edx, [ebx + 0x48]
mov eax, edi
mov ecx, 0x10
call fcn.00402910
mov eax, dword [ebp - 4]
mov dword [ebx + 0x64], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x24], eax
push 0x10
lea eax, [ebx + 0x48]
push eax
push esi
call sub.wsock32.dll_connect
test eax, eax
jge 0x465c83
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x465c83
mov eax, ebx
call fcn.00465c90
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x465ccc
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004045f4
xor eax, eax
push ebp
push 0x465d43
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
mov eax, dword [ebp - 4]
call fcn.00404604
mov edi, eax
push edi
call sub.wsock32.dll_inet_addr
mov ebx, eax
mov dword [ebp - 8], ebx
cmp ebx, 0xffffffff
jne 0x465d2b
push edi
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x465d2d
cmp dword [eax + 0xc], 0
je 0x465d2d
mov edx, dword [eax + 0xc]
cmp dword [edx], 0
je 0x465d2d
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
jmp 0x465d2d
mov esi, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465d4a
lea eax, [ebp - 4]
call fcn.00404144
ret

Function at 0x465d94
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, eax
xor ebx, ebx
push 0xff
lea eax, [esp + 4]
push eax
call sub.wsock32.dll_gethostname
test eax, eax
jne 0x465de9
mov eax, esp
push eax
call sub.wsock32.dll_gethostbyname
mov edx, eax
test edx, edx
je 0x465de9
cmp dword [edx + 0xc], 0
je 0x465de9
mov eax, dword [edx + 0xc]
cmp dword [eax], 0
je 0x465de9
xor eax, eax
mov edx, dword [edx + 0xc]
jmp 0x465de3
mov ecx, dword [edx + eax*4]
cmp esi, dword [ecx]
sete bl
test bl, bl
jne 0x465de9
inc eax
cmp dword [edx + eax*4], 0
jne 0x465dd6
mov eax, ebx
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x465df4
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff00
xor esi, esi
push 0xff
lea eax, [esp + 4]
push eax
call sub.wsock32.dll_gethostname
test eax, eax
jne 0x465e4a
mov eax, esp
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x465e4a
cmp dword [eax + 0xc], 0
je 0x465e4a
mov edx, dword [eax + 0xc]
cmp dword [edx], 0
je 0x465e4a
xor ebx, ebx
mov edi, dword [eax + 0xc]
jmp 0x465e44
mov eax, dword [edi + ebx*4]
mov esi, dword [eax]
mov eax, esi
call fcn.00465d54
test al, al
je 0x465e4a
inc ebx
cmp dword [edi + ebx*4], 0
jne 0x465e33
mov eax, esi
add esp, 0x100
pop edi
pop esi
pop ebx
ret
Function at 0x466738
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor ecx, ecx
push ebp
push 0x466866
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
test eax, eax
jge 0x46676b
pop dword fs:[0]
add esp, 8
jmp 0x466870
push eax
call sub.wsock32.dll_closesocket
mov eax, dword [ebp - 4]
cmp dword [eax + 0x30], 0
je 0x466803
mov eax, dword [ebp - 4]
call fcn.00466720
xor edx, edx
push ebp
push 0x4667cb
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 8]
mov dword [ebp - 0xc], edx
mov edx, dword [eax + 4]
mov dword [ebp - 8], edx
xor edx, edx
mov dword [eax + 4], edx
xor edx, edx
mov dword [eax + 8], edx
xor edx, edx
mov dword [eax + 0xc], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4667d2
mov eax, dword [ebp - 4]
call fcn.0046672c
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x466821
mov edx, dword [eax + 0x30]
test edx, edx
je 0x466821
mov eax, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 4]
cmp word [eax + 0x22], 0
je 0x46684a
mov eax, dword [ebp - 4]
add eax, 0x44
push eax
mov eax, dword [ebp - 4]
add eax, 0x44
push eax
mov ebx, dword [ebp - 4]
mov ecx, 0x20
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x24]
call dword [ebx + 0x20]
mov eax, dword [ebp - 4]
mov dword [eax + 0x44], 0xffffffff
mov eax, dword [ebp - 4]
call fcn.004655a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x466870
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x469be4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004045f4
xor eax, eax
push ebp
push 0x469cd0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.004086a4
test al, al
je 0x469cb5
mov edx, 0x40
mov eax, dword [ebp - 4]
call fcn.00408514
mov edi, eax
push 0
push edi
call sub.kernel32.dll_GetFileSize
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404790
cmp dword [ebp - 8], 0
je 0x469c61
mov eax, dword [ebp - 8]
call fcn.00404404
push eax
lea eax, [ebp - 8]
call fcn.0040465c
mov edx, eax
mov eax, edi
pop ecx
call fcn.00408598
mov eax, edi
call fcn.00408634
cmp dword [ebp - 8], 0
je 0x469cb5
mov eax, dword [ebp - 8]
call fcn.00404604
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
call fcn.00404404
dec eax
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x4678b0]
call fcn.00403340
mov ebx, eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0x10]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x14]
mov edx, ebx
mov eax, esi
call fcn.00468dec
mov eax, ebx
call fcn.00403370
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469cd7
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404168
ret
Function at 0x469dbc
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x469f0b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
or ebx, 0xffffffff
mov eax, dword [esi + 4]
mov edx, dword [eax + 0x94]
lea eax, [ebp - 0x10]
mov ecx, dword [esi + 0xc]
call fcn.00404450
mov eax, dword [ebp - 0x10]
call fcn.004086a4
test al, al
jne 0x469e4e
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00408910
mov eax, dword [ebp - 0xc]
call fcn.004086b4
test al, al
jne 0x469e28
mov eax, dword [ebp - 0xc]
call fcn.004086d8
mov eax, dword [ebp - 0x10]
call fcn.0040856c
mov ebx, eax
push dword [esi + 0x14]
push dword [esi + 0x10]
xor edx, edx
mov eax, ebx
call fcn.004085fc
push ebx
call sub.kernel32.dll_SetEndOfFile
mov eax, ebx
call fcn.00408634
mov eax, dword [ebp - 0x10]
call fcn.004086a4
test al, al
je 0x469e69
mov edx, 0x40
mov eax, dword [ebp - 0x10]
call fcn.00408514
mov ebx, eax
mov eax, dword [ebp + 0xc]
sub edi, dword [eax]
mov eax, edi
cdq
push edx
push eax
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax]
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
cmp edx, dword [esi + 0x14]
jne 0x469e91
cmp eax, dword [esi + 0x10]
jbe 0x469e9f
jmp 0x469e93
jle 0x469e9f
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov edi, dword [esi + 0x10]
sub edi, eax
jmp 0x469ea3
mov byte [ebp - 5], 0
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
add esi, dword [eax]
mov eax, dword [ebp + 0xc]
add dword [eax], edi
test ebx, ebx
jl 0x469edd
mov eax, dword [ebp + 0x10]
push dword [eax + 4]
push dword [eax]
xor edx, edx
mov eax, ebx
call fcn.004085fc
mov edx, esi
mov ecx, edi
mov eax, ebx
call fcn.00408598
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov eax, ebx
call fcn.00408634
mov eax, edi
cdq
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx]
adc edx, dword [ecx + 4]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469f12
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404168
ret
Function at 0x46a590
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov ebx, edx
mov edi, eax
mov eax, dword [edi + 0x28]
mov edx, 0x40
call fcn.00408514
mov esi, eax
push 0
push esi
call sub.kernel32.dll_GetFileSize
mov edx, eax
mov eax, ebx
call fcn.00404790
mov eax, dword [ebx]
call fcn.00404404
test eax, eax
jle 0x46a5df
mov eax, dword [ebx]
call fcn.00404404
push eax
mov eax, ebx
call fcn.0040465c
mov edx, eax
mov eax, esi
pop ecx
call fcn.00408598
mov eax, esi
call fcn.00408634
xor ecx, ecx
mov dl, 1
mov eax, dword [0x460a18]
call fcn.0041a308
mov esi, eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x40]
mov eax, dword [ebx]
call fcn.00404404
push eax
mov eax, ebx
call fcn.0040465c
mov edx, eax
mov eax, esi
pop ecx
mov ebp, dword [eax]
call dword [ebp + 0x4c]
mov edx, esp
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, esi
call fcn.00403370
mov eax, dword [edi + 0x20]
mov esi, dword [eax + 0x50]
mov eax, dword [edi + 0x24]
lea eax, [eax + eax*4]
lea edx, [esi + eax*4]
mov eax, esp
call fcn.00467d24
test eax, eax
je 0x46a647
mov eax, ebx
call fcn.00404144
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x46af44
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46b0f7
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x2e], 0
je 0x46b0b5
mov byte [ebp - 5], 0
mov ecx, dword [ebp - 4]
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x1c]
call fcn.0046bb40
mov esi, eax
test esi, esi
je 0x46b0d4
push 0
push 0
push 0x4000
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov eax, dword [esi + 0x30]
call fcn.00462fc0
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
jne 0x46b004
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [esi + 0x38]
cmp eax, 0x2710
jb 0x46b004
lea edx, [ebp - 0x14]
mov eax, dword [esi + 0x30]
call fcn.004633d8
mov eax, dword [ebp - 0x14]
push eax
lea edx, [ebp - 0x18]
mov eax, dword [esi + 0x2c]
call fcn.004633d8
mov edx, dword [ebp - 0x18]
pop eax
call fcn.00404550
je 0x46b004
lea edx, [ebp - 0x1c]
mov eax, dword [esi + 0x2c]
call fcn.004633d8
mov edx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x30]
call fcn.00463488
cmp byte [ebp - 5], 0
je 0x46b0d4
call sub.kernel32.dll_GetTickCount_1
mov edi, eax
mov dword [esi + 0x38], edi
mov dword [ebx + 0x40], edi
inc dword [ebx + 0x4c]
mov eax, dword [ebx + 0x1c]
mov edx, dword [ebp - 0x10]
add dword [eax + 0x44], edx
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_htonl
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
mov eax, dword [ebp - 0xc]
push eax
call sub.wsock32.dll_htonl
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
mov eax, dword [ebp - 0x10]
push eax
call sub.wsock32.dll_htonl
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x24]
mov edx, 2
call fcn.004646b4
mov ecx, dword [ebp - 0x24]
mov dl, 6
mov eax, dword [ebx + 0x1c]
call fcn.0046b5c8
mov edx, dword [ebp - 0x20]
mov eax, dword [ebx + 0x24]
mov ecx, dword [eax]
call dword [ecx + 4]
cmp dword [ebx + 0x4c], 0x10
jge 0x46b0d4
mov edi, dword [ebx + 0x1c]
mov eax, dword [edi + 0x44]
cmp eax, dword [edi + 0x48]
ja 0x46b0d4
push 0
push 0
push 0x4000
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov eax, dword [esi + 0x30]
call fcn.00462fc0
test al, al
jne 0x46b00e
jmp 0x46b0d4
mov byte [ebp - 5], 1
lea eax, [ebp - 0x40]
push eax
xor ecx, ecx
mov dl, 2
mov eax, dword [ebx + 0x1c]
call fcn.0046b5c8
mov edx, dword [ebp - 0x40]
mov eax, dword [ebx + 0x24]
mov ecx, dword [eax]
call dword [ecx + 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b0fe
lea eax, [ebp - 0x40]
call fcn.00404144
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.00404168
ret