joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444eb4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47c7e4
cmp dword [edi], 0
jne 0x444f30
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x47c7e0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47a9ac
mov ecx, 2
call fcn.00402824
mov edx, 0x444e8c
lea eax, [esi + 5]
call fcn.00444eac
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00444eac
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x444f05
mov dword [0x47c7e0], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x44504c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44509c]
test si, 4
je 0x445060
or bl, 1
test si, 8
je 0x44506a
or bl, 4
test si, 1
je 0x445074
or bl, 8
test si, 2
je 0x44507e
or bl, 0x10
test si, 0x10
je 0x445088
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x445097
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4450a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4450d8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4450b9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4450c8
or bl, 4
test esi, 0x20000000
je 0x4450d3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44b280
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44b292
add esp, 0xfffffff0
call fcn.0040315c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00415af0
mov eax, ebx
call fcn.0044b5cc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x40d1dc]
call fcn.00402dec
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x40d1dc]
call fcn.00402dec
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x40d1dc]
call fcn.00402dec
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x40d1dc]
call fcn.00402dec
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x40d1dc]
call fcn.00402dec
mov dword [ebx + 0x70], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x44b250
push eax
push 0
push 0
mov eax, dword [0x47bba4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x416fb8]
call fcn.004184f0
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x416fb8]
call fcn.004184f0
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x416fb8]
call fcn.004184f0
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.0044b9ac
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44b8c8
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44b8c8
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44b8c8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44b3a1
call fcn.004031b4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44b6ac
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44b857
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x44b838
mov dl, 1
mov eax, dword [0x40d658]
call fcn.00402dec
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403b68
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44b827
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00439c34
test al, al
je 0x44b81a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44b868
lea eax, [ebp - 0x254]
call fcn.004094e0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44b81a
xor eax, eax
push ebp
push 0x44b813
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44b8a0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44b7fc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403d98
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x44b7fc
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403d98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b81a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44b71d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.00410cf0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b85e
lea eax, [ebp - 0x260]
call fcn.00403b68
ret

Function at 0x44c0a4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x47c7d4]
cmp byte [eax + 0x95], 0
jne 0x44c115
cmp dword [0x47c7f0], 0
jne 0x44c0d6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44c060
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x47c7f0], eax
cmp dword [0x47c7ec], 0
jne 0x44c0f1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x47c7ec], eax
cmp dword [0x47c7f4], 0
jne 0x44c115
push esp
push 0
push 0
push 0x44c004
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x47c7f4], eax
pop edx
ret
Function at 0x44c20c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44c223
add esp, 0xfffffff0
call fcn.0040315c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00415af0
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40d1dc]
call fcn.00402dec
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40d1dc]
call fcn.00402dec
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x417948]
call fcn.0041f184
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x44c398
mov eax, dword [0x47babc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041f554
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44dd40
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x47babc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040a868
test eax, eax
je 0x44c316
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408e74
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040a890
test eax, eax
je 0x44c32a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403d98
mov eax, dword [0x47b98c]
cmp byte [eax], 0
jne 0x44c35b
mov eax, ebx
call fcn.0044c484
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44c38d
call fcn.004031b4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44c6f4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x47c7d4]
cmp dword [eax + 0x24], 0
je 0x44c797
cmp dword [ebx + 0x84], 0
jne 0x44c791
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44c684
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x44c791
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 0x44c75a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44c791
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0040ece4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44c769
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x44d1a4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x44d1d9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403c50
jmp 0x44d1e3
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403bbc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44e0b4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x44e0ec
mov eax, esi
call fcn.00435964
test al, al
je 0x44e0ec
mov eax, dword [ebx + 0x74]
call fcn.00435668
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44e0ec
push 0
mov eax, dword [ebx + 0x74]
call fcn.00435668
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45eae8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
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 0x45ed47
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x45eb4a
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0045e5b0
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040a6c8
cmp al, 1
jne 0x45eb4a
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0045e8c8
test al, al
je 0x45ecd6
cmp dword [ebp - 8], 0
jge 0x45eb68
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.0045e5b0
mov eax, dword [ebp - 0x210]
call fcn.00403de8
cmp ebx, eax
jge 0x45ebb2
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0045e5b0
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x47bd6c]
and eax, 0xff
bt dword [edx], eax
jae 0x45ebb2
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
cmp eax, dword [ebp - 8]
jg 0x45ebc6
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0045eac4
cmp ebx, dword [ebp - 8]
je 0x45ecc8
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 0x45ebf2
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00402ff8
and eax, 0x7f
movzx eax, word [eax*2 + 0x47ad18]
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 + 0x224], 1
xor eax, eax
push ebp
push 0x45ecb5
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00402ff8
and eax, 0x7f
movzx eax, word [eax*2 + 0x47ad18]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00435668
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00402ff8
and eax, 0x7f
movzx eax, word [eax*2 + 0x47ad18]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00435668
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ecbc
mov eax, dword [ebp - 4]
mov byte [eax + 0x224], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x218], edx
jmp 0x45ed29
cmp dword [ebp - 8], 0
jge 0x45ece1
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0045e5b0
mov eax, dword [ebp - 0x218]
call fcn.00403de8
cmp eax, dword [ebp - 8]
jg 0x45ed1b
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0045e5b0
mov eax, dword [ebp - 0x21c]
call fcn.00403de8
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045eac4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ed4e
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00403b8c
ret
Function at 0x469d44
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x469e80
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x469e98
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.0046b430
mov eax, dword [ebp - 4]
call fcn.0046acc0
xor edx, edx
push ebp
push 0x469e63
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x469e02
test si, si
jne 0x469db4
mov eax, dword [ebp - 8]
call fcn.00408e0c
mov esi, eax
cmp esi, 0xffff
jbe 0x469db4
call fcn.00402d5c
movzx ebx, si
push 0
push ebx
movzx eax, si
sub eax, ebx
mov edx, dword [ebp - 8]
lea eax, [edx + eax]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10288]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x469e02
cmp eax, 0xffffffff
jle 0x469de3
sub ebx, eax
jmp 0x469df2
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.0046b364
test ebx, ebx
je 0x469e02
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x469db7
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x469e4d
mov eax, dword [ebp - 4]
mov byte [eax + 0x10088], 0
mov ecx, 0x469eb0
mov dl, 1
mov eax, dword [0x46932c]
call fcn.00409e04
call fcn.004035b4
mov eax, dword [ebp - 4]
cmp word [eax + 0x10282], 0
je 0x469e4d
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x10284]
call dword [ebx + 0x10280]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469e6a
mov eax, dword [ebp - 4]
call fcn.0046ad18
ret
Function at 0x46a39c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00403f9c
xor eax, eax
push ebp
push 0x46a559
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x46a570
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.0046b430
push 0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x40d82c]
call fcn.00411168
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x46a4e9
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x46a4ad
mov eax, dword [ebp - 4]
lea edx, [eax + 0x24]
mov ecx, 0x10000
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 4]
mov esi, eax
mov ebx, esi
push 0
push ebx
mov eax, esi
sub eax, ebx
cmp eax, 0x10000
jbe 0x46a431
call fcn.00402d5c
mov edx, dword [ebp - 4]
lea eax, [edx + eax + 0x24]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10288]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x46a4ad
cmp eax, 0xffffffff
jle 0x46a47e
sub ebx, eax
mov edx, dword [ebp - 4]
add dword [edx + 0x10084], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0x100c2], 0
je 0x46a48d
mov edi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [edi + 0x100c4]
call dword [edi + 0x100c0]
jmp 0x46a48d
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.0046b364
mov eax, dword [0x47bc18]
mov eax, dword [eax]
call fcn.0044d44c
test ebx, ebx
je 0x46a4ad
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x46a41e
mov eax, dword [ebp - 0xc]
call fcn.00410d78
mov ebx, eax
mov eax, dword [ebp - 0xc]
call fcn.00410d94
cmp ebx, eax
je 0x46a4d3
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x46a3f7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a4f0
mov eax, dword [ebp - 0xc]
call fcn.00402e1c
ret
Function at 0x46a598
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00403f9c
xor eax, eax
push ebp
push 0x46a76e
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x46a784
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.0046b430
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x100b4], edx
mov eax, dword [ebp - 4]
call fcn.0046acc0
xor eax, eax
push ebp
push 0x46a749
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffff
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x40d82c]
call fcn.00411168
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x46a6e1
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x46a6bb
push 0
push 0x10000
mov eax, dword [ebp - 4]
add eax, 0x24
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10288]
push eax
call sub.wsock32.dll_recv
mov ebx, eax
test ebx, ebx
jle 0x46a67f
mov eax, dword [ebp - 4]
lea edx, [eax + 0x24]
mov ecx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00410e04
mov eax, dword [ebp - 4]
add dword [eax + 0x100b4], ebx
mov eax, dword [ebp - 4]
cmp word [eax + 0x100ba], 0
je 0x46a677
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x100bc]
call dword [esi + 0x100b8]
mov eax, dword [ebp - 4]
call fcn.0046acc0
cmp ebx, 0xffffffff
jne 0x46a6ab
call sub.wsock32.dll_WSAGetLastError
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x1008c], esi
cmp esi, 0x2749
je 0x46a6cb
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.0046b364
test ebx, ebx
je 0x46a6cb
mov eax, dword [0x47bc18]
mov eax, dword [eax]
call fcn.0044d44c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x46a61b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a6e8
mov eax, dword [ebp - 0xc]
call fcn.00402e1c
ret
Function at 0x46a7ac
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46a980
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x46a998
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.0046b430
mov eax, esi
call fcn.00403b68
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x100b4], edx
mov eax, dword [ebp - 4]
call fcn.0046acc0
xor eax, eax
push ebp
push 0x46a963
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x46a8de
push 0
push 0x10000
mov eax, dword [ebp - 4]
add eax, 0x24
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10288]
push eax
call sub.wsock32.dll_recv
mov ebx, eax
test ebx, ebx
je 0x46a902
cmp ebx, 1
jle 0x46a8a8
mov eax, dword [esi]
call fcn.00403de8
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
add edx, ebx
mov eax, esi
call fcn.0040411c
mov eax, esi
call fcn.00403fb8
mov edx, dword [ebp - 8]
inc edx
dec edx
cmp edx, dword [eax - 4]
jb 0x46a864
call fcn.00402d5c
inc edx
lea edx, [eax + edx - 1]
mov eax, dword [ebp - 4]
add eax, 0x24
mov ecx, ebx
call fcn.00402824
mov eax, dword [ebp - 4]
add dword [eax + 0x100b4], ebx
mov eax, dword [ebp - 4]
cmp word [eax + 0x100ba], 0
je 0x46a89e
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x100bc]
call dword [ebx + 0x100b8]
mov eax, dword [ebp - 4]
call fcn.0046acc0
jmp 0x46a8d2
inc ebx
jne 0x46a8d2
call sub.wsock32.dll_WSAGetLastError
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x1008c], ebx
cmp ebx, 0x2749
je 0x46a902
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.0046b364
mov eax, dword [0x47bc18]
mov eax, dword [eax]
call fcn.0044d44c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x46a902
cmp edi, 0xffffffff
je 0x46a80b
mov eax, dword [esi]
call fcn.00403de8
cmp edi, eax
jg 0x46a80b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x46a94d
mov eax, dword [ebp - 4]
mov byte [eax + 0x10088], 0
mov ecx, 0x46a9b0
mov dl, 1
mov eax, dword [0x46932c]
call fcn.00409e04
call fcn.004035b4
mov eax, dword [ebp - 4]
cmp word [eax + 0x10282], 0
je 0x46a94d
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x10284]
call dword [ebx + 0x10280]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a96a
mov eax, dword [ebp - 4]
call fcn.0046ad18
ret