joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46759c
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.0040402c
xor eax, eax
push ebp
push 0x46771a
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.00403e54
lea edx, [ebp - 0x1a8]
lea eax, [ebp - 0xa8]
mov cl, 0xf
call fcn.00402a68
movzx esi, byte [ebp - 0xa8]
test esi, esi
jle 0x467704
cmp esi, 0xf
jle 0x46761a
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 0x467620
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 0x46763d
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 0x467659
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 0x467704
cmp dword [ebp - 0x14], 0x34127859
jne 0x467704
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 0x467704
lea eax, [ebp - 0x58]
mov edx, 0x10
call fcn.00467534
cmp eax, dword [ebp - 0x18]
jne 0x467704
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 0x4676fc
mov esi, ebx
dec esi
test esi, esi
jl 0x4676ec
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 0x4676de
lea edx, [ebp - 0x98]
mov ecx, ebx
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 8]
test ebx, ebx
jg 0x4676b4
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467721
lea eax, [ebp - 0xc]
call fcn.00403bf8
ret

Function at 0x467860
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 [0x40fee4]
call fcn.00402e7c
mov esi, eax
push esi
push 0x467848
call sub.user32.dll_EnumWindows
mov edi, dword [esi + 8]
dec edi
test edi, edi
jl 0x4678e0
inc edi
xor ebx, ebx
mov edx, ebx
mov eax, esi
call fcn.00411b18
cmp ebp, eax
je 0x4678dc
push 0x50
lea eax, [esp + 0xc]
push eax
mov edx, ebx
mov eax, esi
call fcn.00411b18
push eax
call sub.user32.dll_GetClassNameA
test eax, eax
jle 0x4678dc
lea eax, [esp + 8]
mov edx, dword [esp]
call fcn.0040996c
test eax, eax
jne 0x4678dc
mov edx, ebx
mov eax, esi
call fcn.00411b18
mov dword [esp + 4], eax
jmp 0x4678e0
inc ebx
dec edi
jne 0x467896
mov eax, esi
call fcn.00402eac
mov eax, dword [esp + 4]
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x467a04
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 0x467a89
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 0x467a70
lea eax, [ebp - 0x83]
call fcn.00409840
mov byte [ebp - 0x84], al
lea eax, [ebp - 0x88]
lea edx, [ebp - 0x84]
call fcn.00403e1c
mov eax, dword [ebp - 0x88]
mov edx, ebx
call fcn.00408ac4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467a90
lea eax, [ebp - 0x88]
call fcn.00403bf8
ret

Function at 0x467d38
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 0x467e4e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov edx, dword [esi]
mov eax, 0x467e64
call fcn.00404164
mov ebx, eax
test ebx, ebx
je 0x467e2d
cmp ebx, dword [ebp - 8]
je 0x467e2d
mov dword [ebp - 8], ebx
mov eax, esi
mov ecx, 1
mov edx, ebx
call fcn.004040c0
mov edx, dword [esi]
mov eax, 0x467e64
call fcn.00404164
mov edi, eax
test edi, edi
je 0x467e2d
lea eax, [ebp - 4]
push eax
mov ecx, edi
sub ecx, ebx
mov eax, dword [esi]
mov edx, ebx
call fcn.00404080
mov ecx, edi
sub ecx, ebx
inc ecx
mov eax, esi
mov edx, ebx
call fcn.004040c0
cmp dword [ebp - 4], 0
je 0x467d64
push 0x467e64
push dword [ebp - 4]
push 0x467e64
lea eax, [ebp - 4]
mov edx, 3
call fcn.00403f38
push 0x104
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 4]
call fcn.00404048
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x10c]
mov ecx, 0x104
call fcn.00403e28
mov eax, dword [ebp - 0x110]
mov edx, esi
mov ecx, ebx
call fcn.00404108
jmp 0x467d64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467e55
lea eax, [ebp - 0x110]
call fcn.00403bf8
lea eax, [ebp - 4]
call fcn.00403bf8
ret

Function at 0x4680a0
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 0x4680ac
pop esi
pop edi
ret
Function at 0x46db90
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 0x46dc68
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x53e8e4], 0
jne 0x46dc4c
lea eax, [ebp - 4]
mov edx, 0x46dc80
call fcn.00403c90
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040403c
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x46dc4c
mov eax, ebx
call fcn.00402744
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x46dc45
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 0x46dc2f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x46dc90
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x46dc2f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x53e8e4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46dc4c
mov eax, dword [ebp - 0xc]
call fcn.0040275c
ret
mov ebx, dword [0x53e8e4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46dc6f
lea eax, [ebp - 4]
call fcn.00403bf8
ret

Function at 0x47a7b4
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test bl, bl
je 0x47a7d1
test byte [esi + 0x20], 0x10
je 0x47a7d1
mov eax, 0x47a840
call fcn.004589d8
jmp 0x47a832
cmp bl, byte [esi + 0x28]
je 0x47a832
test bl, bl
je 0x47a80a
test byte [esi + 0x20], 0x10
jne 0x47a82f
mov cl, 1
mov dl, 1
mov eax, dword [0x47a528]
call fcn.00418c1c
mov edi, eax
mov dword [esi + 0x48], edi
mov dword [edi + 0x30], esi
mov byte [edi + 0xe], 1
mov eax, edi
call fcn.00418d58
mov eax, esi
call fcn.0047a864
jmp 0x47a82f
test byte [esi + 0x20], 0x10
jne 0x47a82f
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.00402eac
mov byte [esi + 0x28], bl
pop edi
pop esi
pop ebx
ret
Function at 0x485684
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 0x48568c
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x48587e
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x485894
mov eax, esi
call fcn.00483414
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00403c4c
lea ecx, [ebp - 0x10]
mov edx, 0x4858a8
mov eax, esi
call fcn.00483414
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00403c4c
lea ecx, [ebp - 0x14]
mov edx, 0x4858c0
mov eax, esi
call fcn.00483414
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00403c4c
lea ecx, [ebp - 0x18]
mov edx, 0x4858dc
mov eax, esi
call fcn.00483414
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00403c4c
lea ecx, [ebp - 0x1c]
mov edx, 0x4858f8
mov eax, esi
call fcn.00483414
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00403c4c
lea ecx, [ebp - 0x24]
mov edx, 0x485910
mov eax, esi
call fcn.00483414
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408d08
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.0040910c
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x485928
mov eax, esi
call fcn.00483414
mov eax, dword [ebp - 0x28]
call fcn.00482540
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x485938
mov eax, esi
call fcn.00483414
mov eax, dword [ebp - 0x2c]
call fcn.00482540
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x485950
mov eax, esi
call fcn.00483414
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.0040910c
inc eax
je 0x485821
lea ecx, [ebp - 0x34]
mov edx, 0x485950
mov eax, esi
call fcn.00483414
mov eax, dword [ebp - 0x34]
call fcn.004090d0
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.0040a208
fstp qword [ebp - 0x3c]
wait
call fcn.0040a640
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x48583c
lea ecx, [ebp - 0x40]
mov edx, 0x485950
mov eax, esi
call fcn.00483414
mov eax, dword [ebp - 0x40]
call fcn.00482540
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x485960
mov eax, esi
call fcn.00483414
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00403c4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485885
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00403c1c
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00403c1c
ret
Function at 0x496e64
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 0x4970c3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x496ec6
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0049692c
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040cd30
cmp al, 1
jne 0x496ec6
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00496c44
test al, al
je 0x497052
cmp dword [ebp - 8], 0
jge 0x496ee4
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.0049692c
mov eax, dword [ebp - 0x210]
call fcn.00403e78
cmp ebx, eax
jge 0x496f2e
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0049692c
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x53d4fc]
and eax, 0xff
bt dword [edx], eax
jae 0x496f2e
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
cmp eax, dword [ebp - 8]
jg 0x496f42
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00496e40
cmp ebx, dword [ebp - 8]
je 0x497044
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 0x496f6e
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00403088
and eax, 0x7f
movzx eax, word [eax*2 + 0x50ec30]
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 0x497031
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00403088
and eax, 0x7f
movzx eax, word [eax*2 + 0x50ec30]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00439da0
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00403088
and eax, 0x7f
movzx eax, word [eax*2 + 0x50ec30]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00439da0
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497038
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 0x4970a5
cmp dword [ebp - 8], 0
jge 0x49705d
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0049692c
mov eax, dword [ebp - 0x218]
call fcn.00403e78
cmp eax, dword [ebp - 8]
jg 0x497097
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0049692c
mov eax, dword [ebp - 0x21c]
call fcn.00403e78
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00496e40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4970ca
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00403c1c
ret
Function at 0x4a8d68
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.004043e0
add esp, 0x208
pop ebx
ret

Function at 0x4aa178
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 0x4aa201
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x53ec98
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x4aa1eb
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040bbdc
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, 0x4aa218
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x53d270]
mov dl, 1
mov eax, dword [0x4a92ec]
call fcn.0040c514
call fcn.00403644
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa208
lea eax, [ebp - 0x1c]
call fcn.00403bf8
ret

Function at 0x4aa894
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004aa7b8
mov cl, 1
mov edx, esi
mov eax, esi
mov bx, 0xffff
call fcn.00403088
push 0x10
lea eax, [esi + 0x18]
push eax
mov eax, dword [esi + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x4aa8f8
call fcn.004aa0c0
mov byte [esi + 0x29], 0
test byte [esi + 0x28], 0x10
jne 0x4aa8ea
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.00403088
pop esi
pop ebx
ret

Function at 0x4aaa50
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.0040403c
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 0x4aaa9b
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 0x4aab78
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 0x4aaba9
mov ecx, dword [0x53d4f4]
mov dl, 1
mov eax, dword [0x4a92ec]
call fcn.0040c4d8
call fcn.00403644
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 0x4aabd6
mov ecx, dword [0x53cf64]
mov dl, 1
mov eax, dword [0x4a92ec]
call fcn.0040c4d8
call fcn.00403644
xor eax, eax
push ebp
push 0x4aac5a
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.00403088
cmp byte [ebp + 8], 0
je 0x4aac34
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.004aaae0
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.004aa814
jmp 0x4aac50
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.004aa3ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aac77
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4aac80
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 0x4aacb1
mov ecx, dword [0x53d058]
mov dl, 1
mov eax, dword [0x4a92ec]
call fcn.0040c4d8
call fcn.00403644
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 0x4aacde
mov ecx, dword [0x53cf64]
mov dl, 1
mov eax, dword [0x4a92ec]
call fcn.0040c4d8
call fcn.00403644
xor eax, eax
push ebp
push 0x4aad5d
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.00403088
cmp byte [ebp + 8], 0
je 0x4aad39
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.004aaae0
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.004aa894
jmp 0x4aad53
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.004aa3ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aad7a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4aaf40
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.004aa638
xor edx, edx
push ebp
push 0x4ab0a0
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 0x4ab08a
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x4aaf8a
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4aaf94
call fcn.004036e4
jmp 0x4ab0a7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00413ff8
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 0x4ab07f
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 0x4ab03d
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x4ab02d
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.00403088
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.004aaef8
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x4ab0b0]
cmp dl, byte [eax + 0x28]
je 0x4ab086
call fcn.0040c3c0
jmp 0x4ab086
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00414008
jmp 0x4ab086
cmp eax, ebx
jge 0x4ab056
mov edx, dword [ebp - 0xc]
add edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00414008
jmp 0x4aaf94
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00413ff8
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00414014
cmp ebx, eax
jne 0x4aaf94
push ebp
call fcn.004aaef8
pop ecx
jmp 0x4ab086
push ebp
call fcn.004aaef8
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab0a7
mov eax, dword [ebp - 4]
call fcn.004aa644
ret
mov al, byte [ebp - 5]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ab0b4
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 0x4ab1d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004aa638
xor eax, eax
push ebp
push 0x4ab1b9
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 0x4ab104
call fcn.004036e4
jmp 0x4ab1c0
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 0x4ab1a3
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4ab1a3
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.00403088
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 0x4ab1a3
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040bbdc
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, 0x4ab1f0
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x53d270]
mov dl, 1
mov eax, dword [0x4a92ec]
call fcn.0040c514
call fcn.00403644
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab1c0
mov eax, dword [ebp - 4]
call fcn.004aa644
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab1dd
lea eax, [ebp - 0x28]
call fcn.00403bf8
ret