joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45aefc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45b0d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x60]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
je 0x45af59
lea edx, [ebp - 0x14]
mov eax, 0x45add8
call fcn.0040689c
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x45ad7c]
call fcn.0040cbb8
call fcn.00404338
mov eax, dword [ebp - 4]
mov esi, eax
lea edi, [ebx + 8]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x44]
mov esi, eax
mov ecx, eax
sub ecx, 0x40
mov edx, dword [ebp - 4]
add edx, 0x40
mov eax, dword [ebx + 0x64]
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, dword [ebp - 4]
add eax, esi
cmp dword [eax], 0x4550
je 0x45afae
lea edx, [ebp - 0x18]
mov eax, 0x45ade0
call fcn.0040689c
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x45ad7c]
call fcn.0040cbb8
call fcn.00404338
add esi, 4
mov eax, dword [ebp - 4]
add eax, esi
push esi
mov esi, eax
lea edi, [ebx + 0x48]
movsd dword es:[edi], dword [esi]
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 esi
add esi, 0x14
mov edi, dword [ebp - 4]
add edi, esi
cmp word [edi], 0x10b
je 0x45aff2
lea edx, [ebp - 0x1c]
mov eax, 0x45ade8
call fcn.0040689c
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x45ad7c]
call fcn.0040cbb8
call fcn.00404338
movzx edx, word [ebx + 0x58]
lea eax, [ebx + 0x5c]
call fcn.004027a4
movzx ecx, word [ebx + 0x58]
mov edx, dword [ebx + 0x5c]
mov eax, edi
call fcn.00402a10
movzx eax, word [ebx + 0x58]
add esi, eax
mov edi, dword [ebp - 4]
add edi, esi
movzx eax, word [ebx + 0x4a]
shl eax, 3
lea eax, [eax + eax*4]
add eax, esi
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x14]
sub eax, dword [ebp - 0xc]
mov dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 0
jle 0x45b051
mov eax, dword [ebx + 0x6c]
call fcn.00402764
mov dword [ebx + 0x68], eax
mov edx, dword [ebx + 0x68]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebx + 0x6c]
call fcn.00402a10
movzx eax, word [ebx + 0x4a]
dec eax
test eax, eax
jl 0x45b08b
inc eax
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 4]
add edi, esi
push edi
mov eax, dword [edi + 0x14]
add eax, dword [ebp - 4]
push eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x45ac00]
call fcn.0045b7d0
mov edx, eax
mov eax, dword [ebx + 0x60]
call fcn.0042711c
add esi, 0x28
dec dword [ebp - 0x10]
jne 0x45b05e
mov esi, dword [edi + 0x14]
add esi, dword [edi + 0x10]
mov edi, dword [ebp - 8]
sub edi, esi
mov dword [ebx + 0x74], edi
test edi, edi
jle 0x45b0b7
mov eax, edi
call fcn.00402764
mov dword [ebx + 0x70], eax
mov edx, dword [ebx + 0x70]
mov eax, dword [ebp - 4]
add eax, esi
mov ecx, dword [ebx + 0x74]
call fcn.00402a10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b0d9
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004049c0
ret
Function at 0x45b9b4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], edx
xor edx, edx
push ebp
push 0x45bb6c
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x30]
mov ecx, dword [edx + 4]
add ecx, eax
mov esi, ecx
mov edx, esi
movzx ebx, word [edx + 0xc]
movzx edx, word [edx + 0xe]
add ebx, edx
mov edx, ebx
mov ebx, dword [ebp + 8]
mov ebx, ecx
add ebx, 0x10
dec edx
test edx, edx
jl 0x45bb51
inc edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], 0
movzx eax, word [esi + 0xc]
cmp eax, dword [ebp - 8]
setle byte [ebp - 9]
mov eax, dword [ebp - 4]
sub eax, 1
jb 0x45ba2c
je 0x45ba50
dec eax
je 0x45ba74
jmp 0x45baa3
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov ecx, dword [ebx]
mov al, byte [ebp - 9]
call fcn.0045b974
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
call fcn.00404a34
jmp 0x45baa3
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov ecx, dword [ebx]
mov al, byte [ebp - 9]
call fcn.0045b974
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
call fcn.00404a34
jmp 0x45baa3
cmp byte [ebp - 9], 0
jne 0x45ba9b
lea edx, [ebp - 0x20]
mov eax, 0x45adf8
call fcn.0040689c
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x45ad7c]
call fcn.0040cbb8
call fcn.00404338
mov eax, dword [ebp + 8]
mov edx, dword [ebx]
mov dword [eax - 0x10], edx
mov edx, dword [ebx + 4]
test edx, 0x80000000
jbe 0x45bac5
mov eax, dword [ebp + 8]
push eax
mov eax, edx
and eax, 0x7fffffff
mov edx, dword [ebp - 4]
inc edx
call fcn.0045b9b4
pop ecx
jmp 0x45bb42
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 4]
mov ecx, eax
add ecx, edx
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0xc]
push edx
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
push edx
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 4]
push edx
mov edx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
add eax, dword [edx]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
sub eax, dword [edx + 0x14]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x14]
mov eax, dword [0x45a394]
call fcn.0045a784
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 8]
mov dword [eax + 0xc], edx
mov edx, dword [esi]
mov dword [eax + 0x28], edx
movzx edx, word [esi + 8]
shl edx, 0x10
movzx ecx, word [esi + 0xa]
add edx, ecx
mov dword [eax + 0x20], edx
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x14]
mov edx, dword [edx + 0x78]
xchg edx, eax
call fcn.0042711c
add ebx, 8
inc dword [ebp - 8]
dec dword [ebp - 0x14]
jne 0x45ba12
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bb73
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004049c0
ret
Function at 0x45cca4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
cmp edx, dword [ebp + 8]
jne 0x45ccc5
mov esi, eax
mov eax, edx
test eax, eax
jbe 0x45ccc1
mov dl, byte [esi]
xor dl, 8
mov byte [ecx], dl
inc esi
inc ecx
dec eax
jne 0x45ccb5
mov al, 1
jmp 0x45ccc7
xor eax, eax
pop esi
pop ebp
ret 4

Function at 0x45cccc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
cmp edx, dword [ebp + 8]
jne 0x45cced
mov esi, eax
mov eax, edx
test eax, eax
jbe 0x45cce9
mov dl, byte [esi]
xor dl, 8
mov byte [ecx], dl
inc esi
inc ecx
dec eax
jne 0x45ccdd
mov al, 1
jmp 0x45ccef
xor eax, eax
pop esi
pop ebp
ret 4

Function at 0x45cfa4
Capabilities:
Encrypt data using des

Disassembly:
push ebx
mov ecx, edx
and cl, 0x20
mov ebx, edx
and bl, 0x1e
and ebx, 0xff
shr ebx, 1
or cl, bl
and dl, 1
shl edx, 4
or cl, dl
mov edx, ecx
and edx, 0xff
and eax, 0xff
shl eax, 3
lea eax, [eax*8 + 0x4a7f50]
mov al, byte [eax + edx]
and al, 0xf
pop ebx
ret

Function at 0x45d2a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x45d2b9
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x45d2b2
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x45d2cb
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x45d2c4
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.0045ce94
mov ebx, 6
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x45d2e5
mov al, byte [ebp - 0xa]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
mov dl, byte [ebp - 9]
xor ecx, ecx
mov cl, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
shl edx, 2
mov al, byte [ebp - 8]
xor ecx, ecx
mov cl, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
mov al, byte [ebp - 7]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
mov al, byte [ebp - 6]
and al, 0xf
shl eax, 2
xor edx, edx
mov dl, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
mov al, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
mov dl, byte [esi]
call fcn.0045cfa4
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x45d36a
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x45d387
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.0045cf24
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x45d3b0
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45d3c8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x45d3e1
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x45d3da
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x45d3f5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0045cd8c
test bl, bl
jne 0x45d4c8
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x4abd2c
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x45d42c
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x45d440
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0045d2a0
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov bl, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x45d472
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x45d421
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x45d495
mov eax, 4
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x45d4a6
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x45d4ba
jmp 0x45d583
cmp bl, 1
jne 0x45d583
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x4abd86
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x45d4e8
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x45d4fc
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0045d2a0
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov cl, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x45d52e
sub ebx, 6
inc dword [ebp - 8]
jne 0x45d4dd
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
mov cl, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x45d555
mov eax, 4
mov ebx, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x45d566
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov cl, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x45d57a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0045ce10
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x45e908
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 0x45e991
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4abd94
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x45e97b
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040c38c
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, 0x45e9a8
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4a9e74]
mov dl, 1
mov eax, dword [0x45d8f0]
call fcn.0040ccb0
call fcn.00404338
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e998
lea eax, [ebp - 0x1c]
call fcn.0040499c
ret

Function at 0x45f05c
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0045ef80
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403da8
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x45f0c0
call fcn.0045e80c
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x45f0b2
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.00403da8
pop esi
pop ebx
ret

Function at 0x45f0e4
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0045ee04
xor eax, eax
push ebp
push 0x45f163
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040499c
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x45f11d
call fcn.004043e4
jmp 0x45f16a
mov dword [ebp - 8], 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_getsockname
test eax, eax
jne 0x45f14d
push dword [ebp - 0x14]
call sub.wsock32.dll_inet_ntoa_1
mov edx, eax
mov eax, ebx
call fcn.00404b94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f16a
mov eax, dword [ebp - 4]
call fcn.0045ee10
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45f170
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.0045ee04
xor eax, eax
push ebp
push 0x45f1e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040499c
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x45f1ac
call fcn.004043e4
jmp 0x45f1f0
push 0x100
lea eax, [ebp - 0x104]
push eax
call sub.wsock32.dll_gethostname_1
test eax, eax
jne 0x45f1d3
mov eax, ebx
lea edx, [ebp - 0x104]
mov ecx, 0x100
call fcn.00404c0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f1f0
mov eax, dword [ebp - 4]
call fcn.0045ee10
ret
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45f1f8
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0045ee04
xor eax, eax
push ebp
push 0x45f273
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x45f22e
call fcn.004043e4
jmp 0x45f27a
mov dword [ebp - 0xc], 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_getsockname
test eax, eax
jne 0x45f25d
mov ax, word [ebp - 0x1a]
push eax
call sub.wsock32.dll_ntohs
movzx eax, ax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f27a
mov eax, dword [ebp - 4]
call fcn.0045ee10
ret
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x45f3b4
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404e5c
push eax
call sub.wsock32.dll_gethostbyname_1
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.004032e4
test ebx, ebx
je 0x45f3ff
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 0x45f4dc
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 0x45f50d
mov ecx, dword [0x4a9fd0]
mov dl, 1
mov eax, dword [0x45d8f0]
call fcn.0040cc74
call fcn.00404338
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 0x45f53a
mov ecx, dword [0x4a9c88]
mov dl, 1
mov eax, dword [0x45d8f0]
call fcn.0040cc74
call fcn.00404338
xor eax, eax
push ebp
push 0x45f5bb
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.00403da8
cmp byte [ebp + 8], 0
je 0x45f595
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.0045f444
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.0045efdc
jmp 0x45f5b1
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.0045eb3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45f5d8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45f5e4
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 0x45f615
mov ecx, dword [0x4a9d28]
mov dl, 1
mov eax, dword [0x45d8f0]
call fcn.0040cc74
call fcn.00404338
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 0x45f642
mov ecx, dword [0x4a9c88]
mov dl, 1
mov eax, dword [0x45d8f0]
call fcn.0040cc74
call fcn.00404338
xor eax, eax
push ebp
push 0x45f6be
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.00403da8
cmp byte [ebp + 8], 0
je 0x45f69a
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.0045f444
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.0045f05c
jmp 0x45f6b4
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.0045eb3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45f6db
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45f8bc
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.0045ee04
xor eax, eax
push ebp
push 0x45fa2d
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 0x45fa17
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x45f907
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45f911
call fcn.004043e4
jmp 0x45fa34
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00417cf8
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 0x45fa0c
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 0x45f9bf
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x45f9ac
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403da8
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.0045f874
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x45fa40]
cmp dl, byte [eax + 0x28]
je 0x45fa13
call fcn.0040cb98
jmp 0x45fa13
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00417d18
jmp 0x45fa13
cmp ecx, ebx
jge 0x45f9db
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.00417d18
jmp 0x45f911
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.00417cf8
cmp edx, dword [esp + 4]
jne 0x45f9fb
cmp eax, dword [esp]
pop edx
pop eax
jne 0x45f911
push ebp
call fcn.0045f874
pop ecx
jmp 0x45fa13
push ebp
call fcn.0045f874
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fa34
mov eax, dword [ebp - 4]
call fcn.0045ee10
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45fa44
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 0x45fb66
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0045ee04
xor eax, eax
push ebp
push 0x45fb49
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 0x45fa94
call fcn.004043e4
jmp 0x45fb50
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 0x45fb33
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x45fb33
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403da8
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 0x45fb33
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c38c
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, 0x45fb80
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4a9e74]
mov dl, 1
mov eax, dword [0x45d8f0]
call fcn.0040ccb0
call fcn.00404338
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fb50
mov eax, dword [ebp - 4]
call fcn.0045ee10
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fb6d
lea eax, [ebp - 0x28]
call fcn.0040499c
ret