joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409bc6
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
mov esi, ecx
push edi
push 1
xor ebx, ebx
mov eax, dword [esi + 0x18]
pop edi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edi
je 0x409d00
cmp word [esi + 0x1c], 3
jne 0x409c9a
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x128]
push ebx
push eax
push edi
mov dword [ebp - 0x14], 0x10
mov dword [ebp - 0x128], edi
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
jle 0x409d00
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x18]
call dword [sym.imp.WSOCK32.dll_accept]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x409d00
lea ecx, [ebp - 8]
mov dword [ebp - 8], edi
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x409c68
push dword [ebp - 4]
call dword [sym.imp.WSOCK32.dll_closesocket]
jmp 0x409d00
push 0x1a
call fcn.0040da48
pop ecx
mov ecx, dword [ebp - 4]
mov dword [eax + 0xc], ecx
cmp byte [esi + 0x1e], bl
je 0x409c8a
push edi
push eax
push ebx
push 0x1a
call fcn.0040dc33
add esp, 0x10
jmp 0x409d00
push ebx
push edi
push eax
push ebx
push 0x1a
call fcn.0040dbba
add esp, 0x14
jmp 0x409d00
cmp byte [esi + 0x15], bl
jne 0x409cd4
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x128]
push eax
push ebx
push ebx
push edi
mov dword [ebp - 0x128], edi
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
jle 0x409ccb
push ebx
mov ecx, esi
call fcn.00409d26
mov ecx, esi
call fcn.004098a8
jmp 0x409d00
mov ecx, esi
call fcn.00409941
mov ecx, esi
call fcn.004098a8
cmp byte [esi + 0x14], bl
je 0x409d00
mov eax, 0x1000
sub eax, dword [esi + 0x2024]
cmp eax, 0x410
jbe 0x409d00
mov ecx, esi
call fcn.00409e6b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40af0f
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create raw socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
mov eax, 0x4910f2
call fcn.0046cdfc
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
lea eax, [esi + 0x214]
lea ecx, [ebp - 0x14]
push eax
call fcn.00484016
and dword [ebp - 4], 0
lea eax, [esi + 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00484016
lea eax, [esi + 0x114]
lea ecx, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 1
call fcn.00484016
push esi
mov byte [ebp - 4], 2
call fcn.0040da9c
pop ecx
lea eax, [ebp + 0xc]
push eax
or ebx, 0xffffffff
push dword [ebp - 0x10]
mov ecx, edi
mov dword [ebp + 0xc], ebx
push dword [ebp - 0x14]
call fcn.0040aa5d
mov esi, eax
cmp esi, ebx
je 0x40b07d
cmp dword [ebp + 0xc], ebx
je 0x40b07d
push 6
push 1
pop ebx
push ebx
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [ebp - 0x18], eax
push 0x10
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.0046c780
add esp, 0xc
mov word [ebp - 0x34], 2
push dword [ebp - 0x1c]
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 0x1a21
mov dword [ebp - 0x30], eax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x32], ax
lea eax, [ebp - 0x20]
push eax
push 0x8004667e
push dword [ebp - 0x18]
mov dword [ebp - 0x20], ebx
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
lea eax, [ebp - 0x34]
push 0x10
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WSOCK32.dll_connect]
push 0x2170
call fcn.004804d7
pop ecx
mov dword [ebp - 0x24], eax
test eax, eax
mov byte [ebp - 4], 3
je 0x40b012
mov ecx, eax
call fcn.00408de8
mov ebx, eax
jmp 0x40b014
xor ebx, ebx
push 1
mov ecx, ebx
push dword [ebp - 0x10]
mov byte [ebp - 4], 2
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [0x5689cc]
call fcn.00409a64
mov eax, esi
mov ecx, dword [ebp + 0xc]
imul eax, eax, 0x10c
imul esi, esi, 0x43
add ecx, eax
mov byte [ebp - 4], 1
mov byte [ecx + edi + 0x30c], 1
add esi, dword [ebp + 0xc]
mov dword [edi + esi*4 + 0x314], ebx
mov ecx, dword [ebp + 0xc]
add eax, ecx
lea ecx, [ebp - 0x1c]
and byte [eax + edi + 0x394], 0
call fcn.00483fa8
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00483fa8
or dword [ebp - 4], 0xffffffff
jmp 0x40b098
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00483fa8
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00483fa8
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x14]
call fcn.00483fa8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40b0b1
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
mov eax, 0x491106
call fcn.0046cdfc
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x70], 0
jne 0x40b135
push edi
push 6
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
push 0x2170
mov edi, eax
call fcn.004804d7
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x40b0f3
call fcn.00408de8
jmp 0x40b0f5
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0x1a20
push 1
push edi
mov dword [esi + 0x70], eax
push dword [0x5689cc]
mov ecx, eax
call fcn.00409ab9
test al, al
pop edi
je 0x40b135
push 0
push 0x1a200009
push 0x466
push dword [esi + 0x2b4]
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [esi + 0x2c4], 1
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40ca1c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
mov eax, 0x491306
call fcn.0046cdfc
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
lea eax, [esi + 0x214]
lea ecx, [ebp - 0x10]
push eax
call fcn.00484016
and dword [ebp - 4], 0
lea eax, [esi + 0x14]
push eax
lea ecx, [ebp + 0xc]
call fcn.00484016
lea eax, [esi + 0x114]
lea ecx, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 1
call fcn.00484016
push esi
mov byte [ebp - 4], 2
call fcn.0040da9c
lea ecx, [ebp - 0x14]
mov dword [esp], 0x4b5d14
call fcn.00484016
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call fcn.004840e1
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.00483d1d
mov ecx, dword [0x5673dc]
lea edx, [ebp - 0x20]
call fcn.00436110
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
call fcn.004840e1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.00483fa8
push dword [ebp + 0xc]
mov ecx, edi
push dword [ebp - 0x10]
call fcn.0040c4aa
cmp eax, 0xffffffff
je 0x40cb0f
push 0x2719
call fcn.0040da48
push dword [ebp - 0x10]
mov esi, eax
lea eax, [esi + 0x14]
push eax
call fcn.0046d4a0
push dword [ebp + 0xc]
lea eax, [esi + 0x54]
push eax
call fcn.0046d4a0
add esp, 0x14
push esi
push 0xb
push 0x466
push dword [edi + 0x2b4]
call dword [sym.imp.USER32.dll_PostMessageA]
push dword [ebp + 0xc]
mov ecx, edi
push dword [ebp - 0x10]
call fcn.0040c7b7
mov esi, eax
cmp esi, 0xffffffff
je 0x40cbe7
push 6
push 1
pop ebx
push ebx
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [ebp - 0x18], eax
push 0x10
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.0046c780
add esp, 0xc
mov word [ebp - 0x38], 2
push dword [ebp - 0x1c]
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 0x1a20
mov dword [ebp - 0x34], eax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x36], ax
lea eax, [ebp - 0x24]
push eax
push 0x8004667e
push dword [ebp - 0x18]
mov dword [ebp - 0x24], ebx
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
lea eax, [ebp - 0x38]
push 0x10
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WSOCK32.dll_connect]
push 0x2170
call fcn.004804d7
pop ecx
mov dword [ebp - 0x28], eax
test eax, eax
mov byte [ebp - 4], 5
je 0x40cbae
mov ecx, eax
call fcn.00408de8
mov ebx, eax
jmp 0x40cbb0
xor ebx, ebx
push 0
mov ecx, ebx
push dword [ebp + 0xc]
mov byte [ebp - 4], 3
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [0x5689cc]
call fcn.00409a64
lea eax, [esi + esi*8]
and byte [edi + eax*4 + 0x320], 0
lea eax, [edi + eax*4]
mov byte [eax + 0x30c], 1
mov dword [eax + 0x310], ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00483fa8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00483fa8
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00483fa8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00483fa8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x40d1f1
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
mov eax, 0x491352
call fcn.0046cdfc
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x70], 0
jne 0x40d275
push ebx
push 6
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
push 0x2170
mov ebx, eax
call fcn.004804d7
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x40d233
call fcn.00408de8
jmp 0x40d235
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0x1a21
push 0
push ebx
mov dword [esi + 0x70], eax
push dword [0x5689cc]
mov ecx, eax
call fcn.00409ab9
test al, al
pop ebx
je 0x40d275
push 0
push 0x1a210009
push 0x466
push dword [esi + 0x2b4]
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [esi + 0x2c8], 1
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40d7cf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
jbe 0x40d872
cmp esi, 0x800
ja 0x40d872
mov edi, dword [ebp + 8]
push ebx
push esi
lea eax, [ebp - 0x800]
push edi
push eax
call fcn.0046c7e0
mov cl, byte [ebp - 0x800]
mov al, byte [ebp + esi - 0x801]
add esp, 0xc
sar cl, 4
push 1
and cl, 0xf
shl al, 4
pop ebx
or al, cl
cmp esi, ebx
mov byte [edi], al
jbe 0x40d85c
lea eax, [ebp - 0x800]
lea edx, [edi + 1]
lea ecx, [ebp - 0x800]
sub ebx, eax
mov al, byte [ecx + 1]
lea esi, [ecx + 1]
sar al, 4
and al, 0xf
mov byte [edx], al
mov cl, byte [ecx]
shl cl, 4
or cl, al
mov byte [edx], cl
mov ecx, esi
inc edx
lea eax, [ebx + ecx]
cmp eax, dword [ebp + 0xc]
jb 0x40d838
mov esi, dword [ebp + 0xc]
mov cl, byte [ebp + 0x10]
pop ebx
test cl, cl
je 0x40d872
xor eax, eax
test esi, esi
jbe 0x40d872
xor byte [eax + edi], cl
inc eax
cmp eax, esi
jb 0x40d86a
pop edi
pop esi
leave
ret

Function at 0x40d876
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
mov cl, byte [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
test cl, cl
je 0x40d89d
xor eax, eax
test esi, esi
jbe 0x40d89d
xor byte [eax + ebx], cl
inc eax
cmp eax, esi
jb 0x40d895
push esi
lea eax, [ebp - 0x800]
push ebx
push eax
call fcn.0046c7e0
lea ecx, [esi - 1]
add esp, 0xc
xor edi, edi
test ecx, ecx
jbe 0x40d8f1
mov dword [ebp + 0x10], ebx
lea eax, [ebp - 0x7ff]
sub dword [ebp + 0x10], eax
mov dl, byte [ebp + edi - 0x7ff]
mov bl, byte [ebp + edi - 0x800]
lea eax, [ebp + edi - 0x7ff]
sar dl, 4
and dl, 0xf
shl bl, 4
or dl, bl
mov ebx, dword [ebp + 0x10]
inc edi
cmp edi, ecx
mov byte [ebx + eax], dl
jb 0x40d8c3
mov ebx, dword [ebp + 8]
mov cl, byte [ebp - 0x800]
mov al, byte [ebp + esi - 0x801]
sar cl, 4
shl al, 4
and cl, 0xf
pop edi
or al, cl
mov byte [ebx + esi - 1], al
pop esi
pop ebx
leave
ret
Function at 0x40ec59
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.0046d3d0
cmp eax, 8
pop ecx
je 0x40ec73
xor eax, eax
jmp 0x40eced
push esi
push edi
mov esi, str.123.123.123.123
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
mov al, byte [ebx + 1]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
mov al, byte [ebx]
push eax
movsd dword es:[edi], dword [esi]
call fcn.0040ec13
mov byte [ebp + 0xb], al
mov al, byte [ebx + 3]
push eax
mov al, byte [ebx + 2]
push eax
call fcn.0040ec13
mov byte [ebp - 1], al
mov al, byte [ebx + 5]
push eax
mov al, byte [ebx + 4]
push eax
call fcn.0040ec13
mov byte [ebp - 2], al
mov al, byte [ebx + 7]
push eax
mov al, byte [ebx + 6]
push eax
call fcn.0040ec13
movzx ecx, byte [ebp + 0xb]
push ecx
movzx ecx, byte [ebp - 1]
push ecx
movzx ecx, byte [ebp - 2]
movzx eax, al
push ecx
push eax
lea eax, [ebp - 0x14]
push str._d._d._d._d
push eax
call fcn.0046d44b
add esp, 0x38
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40edad
Capabilities:
Connect socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 1
lea eax, [ebp - 4]
pop esi
push eax
push 0x8004667e
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x40ee4c
push 0x10
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WSOCK32.dll_connect]
mov eax, dword [ebp + 0x14]
mov ecx, 0x3e8
cdq
mov ebx, ecx
idiv ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
cdq
idiv ecx
imul edx, edx, 0x3e8
xor ebx, ebx
mov dword [ebp - 8], edx
mov dword [ebp + 0x14], ebx
mov eax, dword [ebp + 0x10]
cmp byte [eax], bl
jne 0x40ee51
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10c], edi
push eax
lea eax, [ebp - 0x110]
push ebx
push eax
push ebx
push esi
mov dword [ebp - 0x110], esi
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
je 0x40ee4c
cmp eax, ebx
jne 0x40ee44
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp + 0x18]
jg 0x40ee48
jmp 0x40ee07
mov eax, esi
jmp 0x40ee54
push 0xfffffffffffffffe
jmp 0x40ee53
or eax, 0xffffffff
jmp 0x40ee54
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ee59
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 8]
push eax
xor ebx, ebx
push 0x8004667e
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x40ee85
or eax, eax
jmp 0x40eeee
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], eax
mov dword [ebp + 8], ebx
mov eax, dword [ebp + 0x14]
cmp byte [eax], bl
jne 0x40eeeb
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10c], edi
push eax
push ebx
lea eax, [ebp - 0x110]
push ebx
push eax
push 1
mov dword [ebp - 0x110], 1
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
jl 0x40eed5
cmp eax, ebx
jg 0x40eed5
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x1c]
jle 0x40ee91
push 0xfffffffffffffffe
jmp 0x40eeed
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, ebx
jne 0x40eeee
push 0xfffffffffffffffc
jmp 0x40eeed
push 0xfffffffffffffffd
pop eax
pop edi
pop ebx
leave
ret
Function at 0x41177e
Capabilities:
Create directory
Set file attributes

Disassembly:
mov eax, 0x4919b4
call fcn.0046cdfc
sub esp, 0x160
push ebx
push esi
push edi
xor edi, edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.0047f6c4
push 0x4b5d14
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00484016
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp - 0x16c]
push eax
mov byte [ebp - 4], 2
push dword [ebp + 8]
call esi
cmp dword [ebp - 0x16c], 0x10
mov dword [ebp - 0x18], eax
jne 0x4117d8
mov bl, 1
jmp 0x4118c5
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x2c]
call fcn.0047f757
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [eax - 8], ebx
jle 0x411843
mov al, byte [edi + eax]
cmp al, 0x5c
je 0x411804
mov byte [ebp - 0x14], al
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.004843ab
jmp 0x411820
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x24]
call fcn.0047f8cc
push 0x4ae930
lea ecx, [ebp - 0x10]
call fcn.00484384
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
dec ecx
cmp edi, ecx
jne 0x41183d
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x24]
call fcn.0047f8cc
mov eax, dword [ebp + 8]
inc edi
cmp edi, dword [eax - 8]
jl 0x4117ed
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
pop edi
cmp dword [ebp - 0x24], edi
jle 0x41189c
lea eax, [ebp - 0x14]
push edi
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409d05
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004840e1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00483fa8
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, ebx
je 0x411896
push 0x80
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
inc edi
cmp edi, dword [ebp - 0x24]
jl 0x411854
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0047f757
lea eax, [ebp - 0x16c]
push eax
push dword [ebp + 8]
call esi
cmp dword [ebp - 0x16c], 0x10
mov dword [ebp - 0x18], eax
je 0x4117d1
xor bl, bl
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00483fa8
and byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0047f6f7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00483fa8
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41535e
Capabilities:
Create thread

Disassembly:
mov eax, 0x492614
call fcn.0046cdfc
push ecx
mov eax, dword [0x4b1dc8]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], eax
push 1
xor edi, edi
pop esi
mov dword [ebp - 4], edi
cmp dword [0x567778], esi
jne 0x41538a
xor esi, esi
jmp 0x4153c8
cmp word [ebp + 8], di
mov eax, dword [0x56775c]
jne 0x415399
cmp eax, edi
je 0x415386
cmp word [ebp + 8], di
mov dword [0x567778], esi
je 0x4153e7
cmp eax, edi
jne 0x4153e7
push 0x153
lea ecx, [ebp - 0x10]
call fcn.004863e2
push edi
push edi
push dword [ebp - 0x10]
call fcn.0048914b
xor esi, esi
mov dword [0x567778], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00483fa8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
mov eax, dword [ebx + 0x3dc]
cmp dword [eax + 4], 0xffffffff
jne 0x4153c0
cmp dword [0x567754], edi
jne 0x4153c0
mov eax, dword [0x5689cc]
cmp dword [eax - 8], edi
je 0x4153c0
mov eax, dword [0x5689d0]
cmp dword [eax - 8], edi
je 0x4153c0
cmp word [0x567774], di
mov dword [0x567764], edi
je 0x415446
push 0xa7
lea ecx, [ebp - 0x10]
call fcn.004863e2
push dword [ebp - 0x10]
mov ecx, ebx
push 0x3eb
call fcn.0048346d
push 0x4b5d14
push 0x3ec
jmp 0x415462
push 0x92
lea ecx, [ebp - 0x10]
mov word [0x567774], si
call fcn.004863e2
push dword [ebp - 0x10]
push 0x3eb
mov ecx, ebx
call fcn.0048346d
cmp ebx, edi
jne 0x415471
xor eax, eax
jmp 0x415474
mov eax, dword [ebx + 0x1c]
push eax
push edi
push 0x4154f3
call fcn.0046e49b
add esp, 0xc
jmp 0x4153c2
Function at 0x41c810
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push dword [esp + 8]
push 0x5671d0
call fcn.0046d4a0
push dword [esp + 0x14]
push 0x5670d0
call fcn.0046d4a0
add esp, 0x10
test esi, esi
jne 0x41c83a
xor eax, eax
jmp 0x41c83d
mov eax, dword [esi + 0x1c]
push eax
push 0
push 0x41c626
call fcn.0046e49b
add esp, 0xc
pop esi
ret 8

Function at 0x41cacc
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
cmp dword [ebp + 0x14], 0
jne 0x41cae2
mov dword [ebp + 0x14], 0x567764
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea eax, [ebp - 8]
pop esi
push eax
push 0x8004667e
push ebx
mov dword [ebp - 8], esi
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
mov eax, dword [ebp + 0x18]
mov ecx, 0x3e8
cdq
mov edi, ecx
and dword [ebp - 0x114], 0
idiv edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
cdq
idiv ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [eax]
mov dword [ebp + 0x18], edi
imul edx, edx, 0x3e8
and dword [ebp + 8], 0
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], esi
xor eax, eax
cmp edi, eax
jle 0x41cbf2
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], eax
jne 0x41cbf2
cmp dword [0x567764], eax
jne 0x41cbf2
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x110], ebx
push ecx
lea ecx, [ebp - 0x114]
push eax
push ecx
push eax
push esi
mov dword [ebp - 0x114], esi
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
je 0x41cbed
test eax, eax
je 0x41cbc6
push 0
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
jne 0x41cbb1
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x41cbd6
cmp dword [ebp + 0x18], 2
jle 0x41cb33
mov eax, dword [ebp + 0x18]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 0x18], eax
jmp 0x41cb33
test eax, eax
je 0x41cb30
add dword [ebp + 0xc], eax
sub edi, eax
mov dword [ebp + 0x18], edi
jmp 0x41cb33
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x1c]
jge 0x41cbe8
jmp 0x41cb33
cmp eax, 0x2745
je 0x41cbe4
cmp eax, 0x2746
jne 0x41cbed
push 0xfffffffffffffffc
jmp 0x41cbea
push 0xfffffffffffffffe
pop eax
jmp 0x41cbf5
or eax, 0xffffffff
jmp 0x41cbf5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
pop edi
pop esi
sub dword [ecx], edx
cmp dword [0x567764], 0
pop ebx
je 0x41cc0c
push 0xfffffffffffffffd
pop eax
leave
ret
Function at 0x41cc0e
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [ebp + 0x18]
push ebx
mov ecx, 0x3e8
push esi
cdq
mov esi, ecx
push edi
idiv esi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
cdq
idiv ecx
mov eax, dword [ebp + 0x10]
mov esi, dword [eax]
lea eax, [ebp - 8]
push eax
push 0x8004667e
push edi
imul edx, edx, 0x3e8
mov dword [ebp - 0xc], edx
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp dword [ebp + 0x14], ebx
jne 0x41cc65
mov dword [ebp + 0x14], 0x567764
mov dword [ebp + 0x18], 1
cmp esi, ebx
jle 0x41cd06
mov eax, dword [ebp + 0x14]
cmp dword [eax], ebx
jne 0x41cd06
cmp dword [0x567764], ebx
jne 0x41cd06
push 1
lea ecx, [ebp - 0x10]
pop eax
mov dword [ebp - 0x110], edi
push ecx
push ebx
lea ecx, [ebp - 0x114]
push ebx
push ecx
push eax
mov dword [ebp - 0x114], eax
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
je 0x41cd02
cmp eax, ebx
je 0x41cccf
push ebx
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x41ccdc
cmp eax, ebx
je 0x41ccf0
add dword [ebp + 0xc], eax
sub esi, eax
jmp 0x41cc6c
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x1c]
jge 0x41ccf9
jmp 0x41cc6c
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2745
je 0x41ccf0
cmp eax, 0x2746
jne 0x41cd02
mov dword [ebp + 0x18], 0xfffffffc
jmp 0x41cd06
mov dword [ebp + 0x18], 0xfffffffe
jmp 0x41cd06
or dword [ebp + 0x18], 0xffffffff
mov eax, dword [ebp + 0x10]
pop edi
sub dword [eax], esi
cmp dword [0x567764], ebx
pop esi
pop ebx
je 0x41cd1d
mov dword [ebp + 0x18], 0xfffffffd
mov eax, dword [ebp + 0x18]
leave
ret