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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47b7e0
cmp dword [edi], 0
jne 0x4417f8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x47b7dc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x478948
mov ecx, 2
call fcn.00402940
mov edx, 0x441754
lea eax, [esi + 5]
call fcn.00441774
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00441774
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 0x4417cd
mov dword [0x47b7dc], 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 0x441914
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x441964]
test si, 4
je 0x441928
or bl, 1
test si, 8
je 0x441932
or bl, 4
test si, 1
je 0x44193c
or bl, 8
test si, 2
je 0x441946
or bl, 0x10
test si, 0x10
je 0x441950
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44195f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x441968
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4419a0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x441981
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x441990
or bl, 4
test esi, 0x20000000
je 0x44199b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x447b48
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x447b5a
add esp, 0xfffffff0
call fcn.00403258
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004146c4
mov eax, ebx
call fcn.00447e94
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x40e5fc]
call fcn.00402f28
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x40e5fc]
call fcn.00402f28
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x40e5fc]
call fcn.00402f28
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x40e5fc]
call fcn.00402f28
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x40e5fc]
call fcn.00402f28
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, 0x447b18
push eax
push 0
push 0
mov eax, dword [0x47a310]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x415b8c]
call fcn.0041704c
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x415b8c]
call fcn.0041704c
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x415b8c]
call fcn.0041704c
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.00448274
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x448190
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x448190
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x448190
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x447c69
call fcn.004032b0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x447f74
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 0x44811f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x448100
mov dl, 1
mov eax, dword [0x40e8fc]
call fcn.00402f28
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403be0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4480ef
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.004364fc
test al, al
je 0x4480e2
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, 0x448130
lea eax, [ebp - 0x254]
call fcn.00409144
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4480e2
xor eax, eax
push ebp
push 0x4480db
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 0x448168
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4480c4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403e10
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 0x4480c4
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403e10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4480e2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x447fe5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.00411758
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 0x448126
lea eax, [ebp - 0x260]
call fcn.00403be0
ret

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

Disassembly:
push ecx
mov eax, dword [0x47b7d0]
cmp byte [eax + 0x95], 0
jne 0x4489dd
cmp dword [0x47b7ec], 0
jne 0x44899e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x448928
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x47b7ec], eax
cmp dword [0x47b7e8], 0
jne 0x4489b9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x47b7e8], eax
cmp dword [0x47b7f0], 0
jne 0x4489dd
push esp
push 0
push 0
push 0x4488cc
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x47b7f0], eax
pop edx
ret
Function at 0x448ad4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x448aeb
add esp, 0xfffffff0
call fcn.00403258
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004146c4
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40e5fc]
call fcn.00402f28
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40e5fc]
call fcn.00402f28
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 [0x4164a4]
call fcn.0041db80
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x448c60
mov eax, dword [0x47a224]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041df50
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44a690
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x47a224]
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.0040c128
test eax, eax
je 0x448bde
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408ae4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c150
test eax, eax
je 0x448bf2
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.00403e10
mov eax, dword [0x47a100]
cmp byte [eax], 0
jne 0x448c23
mov eax, ebx
call fcn.00448d4c
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 0x448c55
call fcn.004032b0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x448fbc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x47b7d0]
cmp dword [eax + 0x24], 0
je 0x44905f
cmp dword [ebx + 0x84], 0
jne 0x449059
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x448f4c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x449059
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 0x449022
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x449059
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.0040fcc0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x449031
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x449a6c
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 0x449aa1
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.00403cc8
jmp 0x449aab
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403c34
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44aa04
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x44aa3c
mov eax, esi
call fcn.0043222c
test al, al
je 0x44aa3c
mov eax, dword [ebx + 0x74]
call fcn.00431f30
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44aa3c
push 0
mov eax, dword [ebx + 0x74]
call fcn.00431f30
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x454df4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x454f65
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x454f40
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00403d88
lea eax, [ebp - 0x118]
mov edx, 0x454f7c
call fcn.00403e68
mov eax, dword [ebp - 0x118]
call fcn.00404024
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x454eb2
lea eax, [ebp - 0x111]
call fcn.00408a7c
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00403cc8
jmp 0x454eb9
mov eax, esi
call fcn.00403be0
cmp bl, 0x61
jae 0x454eda
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040bffc
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00403c34
jmp 0x454ef4
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040bf70
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00403c34
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x454f88
call fcn.004091ac
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00403c34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454f47
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x45764c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404024
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x457665
test al, 0x10
jne 0x457669
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x45a528
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x45a556
mov eax, ebx
call fcn.0045afcc
cmp dword [ebx + 0x3c], 0
je 0x45a54f
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x45a5c7
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x45a5b9
cmp dword [ebx + 8], 0
je 0x45a578
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x45a58a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45a5b9
cmp dword [ebx + 8], 0
je 0x45a56b
cmp eax, 3
je 0x45a59d
dec eax
jne 0x45a56b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45a56b
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x45a56b
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x45a5e5
cmp dword [ebx + 0x10], 0xcc
je 0x45a5e5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045a5f0
pop ebx
ret

Function at 0x46d718
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 0x46d854
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x46d86c
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.0046ee04
mov eax, dword [ebp - 4]
call fcn.0046e694
xor edx, edx
push ebp
push 0x46d837
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x46d7d6
test si, si
jne 0x46d788
mov eax, dword [ebp - 8]
call fcn.00408a7c
mov esi, eax
cmp esi, 0xffff
jbe 0x46d788
call fcn.00402e98
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 0x46d7d6
cmp eax, 0xffffffff
jle 0x46d7b7
sub ebx, eax
jmp 0x46d7c6
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.0046ed38
test ebx, ebx
je 0x46d7d6
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x46d78b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x46d821
mov eax, dword [ebp - 4]
mov byte [eax + 0x10088], 0
mov ecx, 0x46d884
mov dl, 1
mov eax, dword [0x46cd00]
call fcn.0040b3a8
call fcn.004036b0
mov eax, dword [ebp - 4]
cmp word [eax + 0x10282], 0
je 0x46d821
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 0x46d83e
mov eax, dword [ebp - 4]
call fcn.0046e6ec
ret
Function at 0x46dd70
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.00404014
xor eax, eax
push ebp
push 0x46df2d
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x46df44
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.0046ee04
push 0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x40ead0]
call fcn.00411a04
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x46debd
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x46de81
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 0x46de05
call fcn.00402e98
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 0x46de81
cmp eax, 0xffffffff
jle 0x46de52
sub ebx, eax
mov edx, dword [ebp - 4]
add dword [edx + 0x10084], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0x100c2], 0
je 0x46de61
mov edi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [edi + 0x100c4]
call dword [edi + 0x100c0]
jmp 0x46de61
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.0046ed38
mov eax, dword [0x47a380]
mov eax, dword [eax]
call fcn.00449d9c
test ebx, ebx
je 0x46de81
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x46ddf2
mov eax, dword [ebp - 0xc]
call fcn.004117e0
mov ebx, eax
mov eax, dword [ebp - 0xc]
call fcn.004117fc
cmp ebx, eax
je 0x46dea7
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x46ddcb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46dec4
mov eax, dword [ebp - 0xc]
call fcn.00402f58
ret
Function at 0x46df6c
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.00404014
xor eax, eax
push ebp
push 0x46e142
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x46e158
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.0046ee04
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x100b4], edx
mov eax, dword [ebp - 4]
call fcn.0046e694
xor eax, eax
push ebp
push 0x46e11d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffff
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x40ead0]
call fcn.00411a04
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x46e0b5
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x46e08f
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 0x46e053
mov eax, dword [ebp - 4]
lea edx, [eax + 0x24]
mov ecx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0041186c
mov eax, dword [ebp - 4]
add dword [eax + 0x100b4], ebx
mov eax, dword [ebp - 4]
cmp word [eax + 0x100ba], 0
je 0x46e04b
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.0046e694
cmp ebx, 0xffffffff
jne 0x46e07f
call sub.wsock32.dll_WSAGetLastError
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x1008c], esi
cmp esi, 0x2749
je 0x46e09f
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.0046ed38
test ebx, ebx
je 0x46e09f
mov eax, dword [0x47a380]
mov eax, dword [eax]
call fcn.00449d9c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x46dfef
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e0bc
mov eax, dword [ebp - 0xc]
call fcn.00402f58
ret
Function at 0x46e180
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 0x46e354
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x46e36c
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.0046ee04
mov eax, esi
call fcn.00403be0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x100b4], edx
mov eax, dword [ebp - 4]
call fcn.0046e694
xor eax, eax
push ebp
push 0x46e337
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x46e2b2
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 0x46e2d6
cmp ebx, 1
jle 0x46e27c
mov eax, dword [esi]
call fcn.00403e60
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
add edx, ebx
mov eax, esi
call fcn.00404194
mov eax, esi
call fcn.00404030
mov edx, dword [ebp - 8]
inc edx
dec edx
cmp edx, dword [eax - 4]
jb 0x46e238
call fcn.00402e98
inc edx
lea edx, [eax + edx - 1]
mov eax, dword [ebp - 4]
add eax, 0x24
mov ecx, ebx
call fcn.00402940
mov eax, dword [ebp - 4]
add dword [eax + 0x100b4], ebx
mov eax, dword [ebp - 4]
cmp word [eax + 0x100ba], 0
je 0x46e272
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.0046e694
jmp 0x46e2a6
inc ebx
jne 0x46e2a6
call sub.wsock32.dll_WSAGetLastError
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x1008c], ebx
cmp ebx, 0x2749
je 0x46e2d6
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.0046ed38
mov eax, dword [0x47a380]
mov eax, dword [eax]
call fcn.00449d9c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x46e2d6
cmp edi, 0xffffffff
je 0x46e1df
mov eax, dword [esi]
call fcn.00403e60
cmp edi, eax
jg 0x46e1df
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x46e321
mov eax, dword [ebp - 4]
mov byte [eax + 0x10088], 0
mov ecx, 0x46e384
mov dl, 1
mov eax, dword [0x46cd00]
call fcn.0040b3a8
call fcn.004036b0
mov eax, dword [ebp - 4]
cmp word [eax + 0x10282], 0
je 0x46e321
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 0x46e33e
mov eax, dword [ebp - 4]
call fcn.0046e6ec
ret
Function at 0x46ec40
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x46ed0c
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x46ed20
mov dl, 4
mov eax, ebx
call fcn.0046ee04
mov byte [ebx + 0x10290], 0
mov si, word [ebx + 0x10288]
cmp si, 0xffff
je 0x46ecf6
movzx eax, si
push eax
call sub.wsock32.dll_closesocket
test eax, eax
jne 0x46ece8
test byte [ebx + 0x20], 8
jne 0x46eca5
cmp word [ebx + 0x1004a], 0
je 0x46eca5
mov edx, ebx
mov eax, dword [ebx + 0x1004c]
call dword [ebx + 0x10048]
cmp byte [ebx + 0x10089], 0
jne 0x46ecf6
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
cmp esi, 0xffff
jbe 0x46ecc8
call fcn.00402e98
mov word [ebx + 0x10288], si
push 0x3d
push 0x465
mov eax, dword [ebx + 0x1028c]
push eax
movzx eax, si
push eax
call sub.wsock32.dll_WSAAsyncSelect
jmp 0x46ecf6
lea ecx, [ebp - 4]
mov dx, 0x2733
mov eax, ebx
call fcn.0046ed38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ed13
lea eax, [ebp - 4]
call fcn.00403be0
ret

Function at 0x46eeac
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, eax
mov ecx, 0x46eee8
mov dl, 8
mov eax, ebx
call fcn.0046ee04
push 2
push 1
lea eax, [ebx + 0x24]
push eax
movzx eax, word [ebx + 0x10288]
push eax
call sub.wsock32.dll_recv
test eax, eax
jle 0x46eeda
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret