joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe58
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.004040a0
xor eax, eax
push ebp
push 0x467d46
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x1a8]
mov edx, dword [ebp - 0xc]
mov ecx, 0xff
call fcn.00403ec8
lea edx, [ebp - 0x1a8]
lea eax, [ebp - 0xa8]
mov cl, 0xf
call fcn.00402a68
movzx esi, byte [ebp - 0xa8]
test esi, esi
jle 0x467d30
cmp esi, 0xf
jle 0x467c46
lea eax, [ebp - 0xa8]
mov edx, 0xf
call fcn.0040296c
mov esi, 0xf
inc esi
xor edi, edi
lea ebx, [ebp - 0x58]
mov eax, edi
cdq
idiv esi
mov al, byte [ebp + edx - 0xa8]
mov byte [ebx], al
inc edi
inc ebx
cmp edi, 0x40
jne 0x467c4c
mov edi, 0x40
lea eax, [ebp - 0x58]
mov dl, byte [eax]
shl edx, 4
xor ecx, ecx
mov cl, byte [eax]
shr ecx, 4
or dl, cl
mov byte [eax], dl
inc eax
dec edi
jne 0x467c69
mov edi, 0x3f
lea eax, [ebp - 0x57]
mov dl, byte [eax]
xor dl, byte [eax - 1]
add dl, 0x17
mov byte [eax], dl
inc eax
dec edi
jne 0x467c85
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 4]
mov ebx, eax
cmp ebx, 4
jne 0x467d30
cmp dword [ebp - 0x14], 0x34127859
jne 0x467d30
lea edx, [ebp - 0x18]
mov ecx, 4
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 4]
mov ebx, eax
cmp ebx, 4
jl 0x467d30
lea eax, [ebp - 0x58]
mov edx, 0x10
call fcn.00467b60
cmp eax, dword [ebp - 0x18]
jne 0x467d30
lea edx, [ebp - 0x98]
mov ecx, 0x40
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 4]
mov ebx, eax
test ebx, ebx
jle 0x467d28
mov esi, ebx
dec esi
test esi, esi
jl 0x467d18
inc esi
lea eax, [ebp - 0x98]
lea edx, [ebp - 0x58]
mov cl, byte [eax]
sub cl, 0x11
xor cl, byte [edx]
mov byte [eax], cl
inc edx
inc eax
dec esi
jne 0x467d0a
lea edx, [ebp - 0x98]
mov ecx, ebx
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 8]
test ebx, ebx
jg 0x467ce0
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467d4d
lea eax, [ebp - 0xc]
call fcn.00403c6c
ret

Function at 0x467e8c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa4
mov ebp, edx
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
mov dl, 1
mov eax, dword [0x41018c]
call fcn.00402ed4
mov esi, eax
push esi
push 0x467e74
call sub.user32.dll_EnumWindows
mov edi, dword [esi + 8]
dec edi
test edi, edi
jl 0x467f0c
inc edi
xor ebx, ebx
mov edx, ebx
mov eax, esi
call fcn.00411dc0
cmp ebp, eax
je 0x467f08
push 0x50
lea eax, [esp + 0xc]
push eax
mov edx, ebx
mov eax, esi
call fcn.00411dc0
push eax
call sub.user32.dll_GetClassNameA
test eax, eax
jle 0x467f08
lea eax, [esp + 8]
mov edx, dword [esp]
call fcn.00409ba4
test eax, eax
jne 0x467f08
mov edx, ebx
mov eax, esi
call fcn.00411dc0
mov dword [esp + 4], eax
jmp 0x467f0c
inc ebx
dec edi
jne 0x467ec2
mov eax, esi
call fcn.00402f04
mov eax, dword [esp + 4]
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x467fa8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
push ebx
xor edx, edx
mov dword [ebp - 0x88], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46802d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x21
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x83]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x468014
lea eax, [ebp - 0x83]
call fcn.00409a78
mov byte [ebp - 0x84], al
lea eax, [ebp - 0x88]
lea edx, [ebp - 0x84]
call fcn.00403e90
mov eax, dword [ebp - 0x88]
mov edx, ebx
call fcn.00408cfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468034
lea eax, [ebp - 0x88]
call fcn.00403c6c
ret

Function at 0x4682dc
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4683f2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov edx, dword [esi]
mov eax, 0x468408
call fcn.004041d8
mov ebx, eax
test ebx, ebx
je 0x4683d1
cmp ebx, dword [ebp - 8]
je 0x4683d1
mov dword [ebp - 8], ebx
mov eax, esi
mov ecx, 1
mov edx, ebx
call fcn.00404134
mov edx, dword [esi]
mov eax, 0x468408
call fcn.004041d8
mov edi, eax
test edi, edi
je 0x4683d1
lea eax, [ebp - 4]
push eax
mov ecx, edi
sub ecx, ebx
mov eax, dword [esi]
mov edx, ebx
call fcn.004040f4
mov ecx, edi
sub ecx, ebx
inc ecx
mov eax, esi
mov edx, ebx
call fcn.00404134
cmp dword [ebp - 4], 0
je 0x468308
push 0x468408
push dword [ebp - 4]
push 0x468408
lea eax, [ebp - 4]
mov edx, 3
call fcn.00403fac
push 0x104
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 4]
call fcn.004040bc
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x10c]
mov ecx, 0x104
call fcn.00403e9c
mov eax, dword [ebp - 0x110]
mov edx, esi
mov ecx, ebx
call fcn.0040417c
jmp 0x468308
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4683f9
lea eax, [ebp - 0x110]
call fcn.00403c6c
lea eax, [ebp - 4]
call fcn.00403c6c
ret

Function at 0x46851c
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
mov edi, eax
mov esi, edx
mov ecx, ecx
shr ecx, 2
cld
lodsd eax, dword [esi]
xor dword [edi], eax
add edi, 4
loop 0x468528
pop esi
pop edi
ret
Function at 0x46fdb8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46fe90
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x53d8e4], 0
jne 0x46fe74
lea eax, [ebp - 4]
mov edx, 0x46fea8
call fcn.00403d04
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004040b0
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x46fe74
mov eax, ebx
call fcn.00402744
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x46fe6d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x46fe57
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x46feb8
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x46fe57
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x53d8e4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fe74
mov eax, dword [ebp - 0xc]
call fcn.0040275c
ret
mov ebx, dword [0x53d8e4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fe97
lea eax, [ebp - 4]
call fcn.00403c6c
ret

Function at 0x480a80
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x53d908], 0
jne 0x480aa3
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x480a04
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x53d908], eax
ret

Function at 0x4815f0
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test bl, bl
je 0x48160d
test byte [esi + 0x20], 0x10
je 0x48160d
mov eax, 0x48167c
call fcn.0045904c
jmp 0x48166e
cmp bl, byte [esi + 0x28]
je 0x48166e
test bl, bl
je 0x481646
test byte [esi + 0x20], 0x10
jne 0x48166b
mov cl, 1
mov dl, 1
mov eax, dword [0x481364]
call fcn.00418f00
mov edi, eax
mov dword [esi + 0x48], edi
mov dword [edi + 0x30], esi
mov byte [edi + 0xe], 1
mov eax, edi
call fcn.0041903c
mov eax, esi
call fcn.004816a0
jmp 0x48166b
test byte [esi + 0x20], 0x10
jne 0x48166b
mov eax, dword [esi + 0x24]
push eax
call sub.winmm.dll_timeKillEvent
push 0
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [esi + 0x48]
call fcn.00402f04
mov byte [esi + 0x28], bl
pop edi
pop esi
pop ebx
ret
Function at 0x48c4c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x48c4c8
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x48c6ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x48c6d0
mov eax, esi
call fcn.0048a250
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00403cc0
lea ecx, [ebp - 0x10]
mov edx, 0x48c6e4
mov eax, esi
call fcn.0048a250
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00403cc0
lea ecx, [ebp - 0x14]
mov edx, 0x48c6fc
mov eax, esi
call fcn.0048a250
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00403cc0
lea ecx, [ebp - 0x18]
mov edx, 0x48c718
mov eax, esi
call fcn.0048a250
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00403cc0
lea ecx, [ebp - 0x1c]
mov edx, 0x48c734
mov eax, esi
call fcn.0048a250
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00403cc0
lea ecx, [ebp - 0x24]
mov edx, 0x48c74c
mov eax, esi
call fcn.0048a250
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408f40
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00409344
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x48c764
mov eax, esi
call fcn.0048a250
mov eax, dword [ebp - 0x28]
call fcn.0048937c
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x48c774
mov eax, esi
call fcn.0048a250
mov eax, dword [ebp - 0x2c]
call fcn.0048937c
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x48c78c
mov eax, esi
call fcn.0048a250
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00409344
inc eax
je 0x48c65d
lea ecx, [ebp - 0x34]
mov edx, 0x48c78c
mov eax, esi
call fcn.0048a250
mov eax, dword [ebp - 0x34]
call fcn.00409308
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a440
fstp qword [ebp - 0x3c]
wait
call fcn.0040a878
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x48c678
lea ecx, [ebp - 0x40]
mov edx, 0x48c78c
mov eax, esi
call fcn.0048a250
mov eax, dword [ebp - 0x40]
call fcn.0048937c
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x48c79c
mov eax, esi
call fcn.0048a250
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00403cc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c6c1
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00403c90
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00403c90
ret
Function at 0x49dca0
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 0x49deff
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x49dd02
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0049d768
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040cf60
cmp al, 1
jne 0x49dd02
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0049da80
test al, al
je 0x49de8e
cmp dword [ebp - 8], 0
jge 0x49dd20
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.0049d768
mov eax, dword [ebp - 0x210]
call fcn.00403eec
cmp ebx, eax
jge 0x49dd6a
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0049d768
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x53c238]
and eax, 0xff
bt dword [edx], eax
jae 0x49dd6a
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
cmp eax, dword [ebp - 8]
jg 0x49dd7e
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0049dc7c
cmp ebx, dword [ebp - 8]
je 0x49de80
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 0x49ddaa
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.004030e0
and eax, 0x7f
movzx eax, word [eax*2 + 0x50dc94]
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 0x49de6d
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.004030e0
and eax, 0x7f
movzx eax, word [eax*2 + 0x50dc94]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0043a3f0
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.004030e0
and eax, 0x7f
movzx eax, word [eax*2 + 0x50dc94]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0043a3f0
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49de74
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 0x49dee1
cmp dword [ebp - 8], 0
jge 0x49de99
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0049d768
mov eax, dword [ebp - 0x218]
call fcn.00403eec
cmp eax, dword [ebp - 8]
jg 0x49ded3
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0049d768
mov eax, dword [ebp - 0x21c]
call fcn.00403eec
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0049dc7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49df06
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00403c90
ret
Function at 0x4afba4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push esp
push 0x208
call sub.kernel32.dll_GetCurrentDirectoryW
mov eax, ebx
mov edx, esp
mov ecx, 0x104
call fcn.00404418
add esp, 0x208
pop ebx
ret

Function at 0x4b0fa4
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 0x4b102d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x53dcbc
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x4b1017
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040be14
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, 0x4b1044
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x53bff8]
mov dl, 1
mov eax, dword [0x4b0118]
call fcn.0040c74c
call fcn.0040369c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1034
lea eax, [ebp - 0x1c]
call fcn.00403c6c
ret

Function at 0x4b16c0
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004b15e4
mov cl, 1
mov edx, esi
mov eax, esi
mov bx, 0xffff
call fcn.004030e0
push 0x10
lea eax, [esi + 0x18]
push eax
mov eax, dword [esi + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x4b1724
call fcn.004b0eec
mov byte [esi + 0x29], 0
test byte [esi + 0x28], 0x10
jne 0x4b1716
cmp dword [esi + 4], 0xffffffff
setne al
mov byte [esi + 8], al
mov cl, 2
mov edx, esi
mov eax, esi
mov bx, 0xffff
call fcn.004030e0
pop esi
pop ebx
ret

Function at 0x4b187c
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.004040b0
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00402b8c
test ebx, ebx
je 0x4b18c7
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 0x4b19a4
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 esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4b19d5
mov ecx, dword [0x53c230]
mov dl, 1
mov eax, dword [0x4b0118]
call fcn.0040c710
call fcn.0040369c
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 0x4b1a02
mov ecx, dword [0x53bd28]
mov dl, 1
mov eax, dword [0x4b0118]
call fcn.0040c710
call fcn.0040369c
xor eax, eax
push ebp
push 0x4b1a86
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xffff
call fcn.004030e0
cmp byte [ebp + 8], 0
je 0x4b1a60
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, esi
mov eax, dword [ebp - 4]
call fcn.004b190c
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004b1640
jmp 0x4b1a7c
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, esi
mov eax, dword [ebp - 4]
call fcn.004b11d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b1aa3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4b1aac
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 esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4b1add
mov ecx, dword [0x53be08]
mov dl, 1
mov eax, dword [0x4b0118]
call fcn.0040c710
call fcn.0040369c
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 0x4b1b0a
mov ecx, dword [0x53bd28]
mov dl, 1
mov eax, dword [0x4b0118]
call fcn.0040c710
call fcn.0040369c
xor eax, eax
push ebp
push 0x4b1b89
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xffff
call fcn.004030e0
cmp byte [ebp + 8], 0
je 0x4b1b65
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, esi
mov eax, dword [ebp - 4]
call fcn.004b190c
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.004b16c0
jmp 0x4b1b7f
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, esi
mov eax, dword [ebp - 4]
call fcn.004b11d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b1ba6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b1d6c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004b1464
xor edx, edx
push ebp
push 0x4b1ecc
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x4b1eb6
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x4b1db6
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4b1dc0
call fcn.0040373c
jmp 0x4b1ed3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004142dc
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 + 4]
mov ebx, eax
test ebx, ebx
jle 0x4b1eab
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
cmp eax, 0xffffffff
jne 0x4b1e69
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x4b1e59
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.004030e0
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.004b1d24
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x4b1edc]
cmp dl, byte [eax + 0x28]
je 0x4b1eb2
call fcn.0040c5f8
jmp 0x4b1eb2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
call fcn.004142ec
jmp 0x4b1eb2
cmp eax, ebx
jge 0x4b1e82
mov edx, dword [ebp - 0xc]
add edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004142ec
jmp 0x4b1dc0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004142dc
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004142f8
cmp ebx, eax
jne 0x4b1dc0
push ebp
call fcn.004b1d24
pop ecx
jmp 0x4b1eb2
push ebp
call fcn.004b1d24
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1ed3
mov eax, dword [ebp - 4]
call fcn.004b1470
ret
mov al, byte [ebp - 5]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b1ee0
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 0x4b2002
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004b1464
xor eax, eax
push ebp
push 0x4b1fe5
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 0x4b1f30
call fcn.0040373c
jmp 0x4b1fec
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 0x4b1fcf
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4b1fcf
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.004030e0
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 0x4b1fcf
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040be14
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, 0x4b201c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x53bff8]
mov dl, 1
mov eax, dword [0x4b0118]
call fcn.0040c74c
call fcn.0040369c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1fec
mov eax, dword [ebp - 4]
call fcn.004b1470
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2009
lea eax, [ebp - 0x28]
call fcn.00403c6c
ret