joyce8/EMBER2024-capa huggingface dataset:
Function at 0x503db8
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, ecx
sub esp, 0x28
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp], 2
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [ebx + 4]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
xor eax, eax
lock xadd dword [0x718d50], eax
test eax, eax
mov eax, dword [ebx]
je 0x503e23
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x503e52
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0x501bac
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov eax, dword [ebx]
sub esp, 0xc
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
push eax
add esp, 0x28
pop ebx
ret

Function at 0x503e5a
Capabilities:
Initialize winsock library

Disassembly:
push ebx
shl ecx, 8
movzx edx, dl
or edx, ecx
mov ebx, eax
sub esp, 0x1a8
movzx edx, dx
lea eax, [esp + 0x10]
mov dword [esp], edx
mov dword [esp + 4], eax
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
push edx
push edx
xchg dword [ebx + 4], eax
add esp, 0x1a8
pop ebx
ret
push ebx
mov eax, dword [esp + 8]
mov ebx, 1
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lock xadd dword [eax], ebx
test ebx, ebx
jne 0x503e80
pop ebx
movzx ecx, cl
movzx edx, dl
jmp 0x501cb2
pop ebx
ret

Function at 0x504f6a
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, ecx
sub esp, 0x3c
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
mov dword [esp], edi
call fcn.00503a40
mov ecx, dword [esi + 4]
push edx
call fcn.0061c494
mov eax, ebp
test al, al
je 0x504fae
mov ecx, dword [esi + 4]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
jmp 0x505039
mov eax, dword [edi]
cmp eax, 0xffffffff
jne 0x504fca
mov ecx, dword [esi + 4]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x2719
jmp 0x505039
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov dword [esp], eax
mov dword [esp + 0x10], edx
lea edx, [esp + 0x2c]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 4], edx
call dword [sym.imp.WS2_32.dll_WSASend]
sub esp, 0x1c
mov edi, eax
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov edx, 0x274d
cmp eax, 0x4d2
mov ecx, dword [esi + 4]
cmove eax, edx
test edi, edi
je 0x505046
cmp eax, 0x3e5
je 0x505046
mov edx, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], ebx
call fcn.00504cca
sub esp, 0xc
jmp 0x50504f
mov dword [esp], ebx
call fcn.00504d2c
push eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
Function at 0x505136
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, ecx
sub esp, 0x3c
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
mov dword [esp], edi
call fcn.00503a40
mov ecx, dword [esi + 4]
push edx
call fcn.0061c494
mov eax, ebp
test al, al
je 0x50517a
mov ecx, dword [esi + 4]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
jmp 0x50521c
mov eax, dword [edi]
cmp eax, 0xffffffff
jne 0x505199
mov ecx, dword [esi + 4]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x2719
jmp 0x50521c
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov dword [esp], eax
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x2c]
mov dword [esp + 0x10], edx
lea edx, [esp + 0x28]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 4], edx
call dword [sym.imp.WS2_32.dll_WSARecv]
sub esp, 0x1c
mov edi, eax
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
cmp eax, 0x40
je 0x5051fd
cmp eax, 0x4d2
mov edx, 0x274d
cmove eax, edx
jmp 0x505202
mov eax, 0x2746
test edi, edi
mov ecx, dword [esi + 4]
je 0x505229
cmp eax, 0x3e5
je 0x505229
mov edx, dword [esp + 0x28]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], ebx
call fcn.00504cca
sub esp, 0xc
jmp 0x505232
mov dword [esp], ebx
call fcn.00504d2c
push eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret 0x18

Function at 0x50523c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0x40
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x68]
mov dword [esp], edi
call fcn.00503a40
mov ecx, dword [esi + 4]
push edx
call fcn.0061c494
mov eax, dword [edi]
cmp eax, 0xffffffff
jne 0x50527c
mov ecx, dword [esi + 4]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x2719
jmp 0x505303
mov edx, dword [esp + 0x60]
mov dword [esp + 0x38], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
mov dword [esp], eax
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x14], edx
lea edx, [esp + 0x3c]
mov dword [esp + 0x10], edx
lea edx, [esp + 0x38]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 4], edx
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
sub esp, 0x24
mov edi, eax
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov edx, 0x274d
cmp eax, 0x4d2
mov ecx, dword [esi + 4]
cmove eax, edx
test edi, edi
je 0x505310
cmp eax, 0x3e5
je 0x505310
mov edx, dword [esp + 0x38]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], ebx
call fcn.00504cca
sub esp, 0xc
jmp 0x505319
mov dword [esp], ebx
call fcn.00504d2c
push eax
add esp, 0x40
pop ebx
pop esi
pop edi
ret 0x1c
Function at 0x5056f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp dword [esp + 0x40], 0xffffffff
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
jne 0x50571d
call fcn.004dccc9
mov dword [ebx], 0x2719
mov dword [ebx + 4], eax
jmp 0x5057a6
mov eax, edi
mov esi, edi
test al, al
jne 0x50573b
test byte [ebp], 1
je 0x50573b
call fcn.004dccc9
mov dword [ebx], 0x2726
mov dword [ebx + 4], eax
jmp 0x5057a8
call fcn.00614c34
mov eax, edi
mov dword [esp + 4], 0x8004667e
movzx eax, al
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call dword [sym.imp.WSOCK32.DLL_ioctlsocket]
sub esp, 0xc
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00614c10
test eax, eax
js 0x5057a6
lea ecx, [esp + 0x18]
call fcn.0062d0ac
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [ebx], eax
mov eax, edi
mov dword [ebx + 4], edx
test al, al
je 0x50579b
or byte [ebp], 2
jmp 0x5057a8
and byte [ebp], 0xfd
mov esi, 1
jmp 0x5057a8
xor esi, esi
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x5059ba
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
push ebx
sub esp, 0x34
mov ebx, dword [esp + 0x50]
call fcn.00614c34
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_WSARecv]
sub esp, 0x1c
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00614c10
mov esi, eax
mov eax, dword [ebx]
cmp eax, 0x40
jne 0x505a3a
call fcn.004dccc9
mov dword [ebx], 0x2746
jmp 0x505a4c
cmp eax, 0x4d2
jne 0x505a4f
call fcn.004dccc9
mov dword [ebx], 0x274d
mov dword [ebx + 4], eax
or eax, 0xffffffff
test esi, esi
jne 0x505a70
lea ecx, [esp + 0x28]
call fcn.0062d0ac
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [ebx], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 4], edx
add esp, 0x34
pop ebx
pop esi
ret
Function at 0x505c3a
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push ebx
sub esp, 0x34
mov ebx, dword [esp + 0x50]
call fcn.00614c34
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_WSASend]
sub esp, 0x1c
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00614c10
mov esi, eax
mov eax, dword [ebx]
cmp eax, 0x40
jne 0x505cb2
call fcn.004dccc9
mov dword [ebx], 0x2746
jmp 0x505cc4
cmp eax, 0x4d2
jne 0x505cc7
call fcn.004dccc9
mov dword [ebx], 0x274d
mov dword [ebx + 4], eax
or eax, 0xffffffff
test esi, esi
jne 0x505ce8
lea ecx, [esp + 0x28]
call fcn.0062d0ac
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 4], edx
add esp, 0x34
pop ebx
pop esi
ret

Function at 0x505d47
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push ebx
sub esp, 0x44
mov ebx, dword [esp + 0x68]
call fcn.00614c34
mov eax, dword [esp + 0x64]
mov dword [esp + 0x34], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x34]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_WSASendTo]
sub esp, 0x24
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00614c10
mov esi, eax
mov eax, dword [ebx]
cmp eax, 0x40
jne 0x505dcf
call fcn.004dccc9
mov dword [ebx], 0x2746
jmp 0x505de1
cmp eax, 0x4d2
jne 0x505de4
call fcn.004dccc9
mov dword [ebx], 0x274d
mov dword [ebx + 4], eax
or eax, 0xffffffff
test esi, esi
jne 0x505e05
lea ecx, [esp + 0x38]
call fcn.0062d0ac
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [ebx], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 4], edx
add esp, 0x44
pop ebx
pop esi
ret
Function at 0x505e0b
Capabilities:
Set socket configuration

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
cmp ebp, 0xffffffff
jne 0x505e3a
call fcn.004dccc9
mov dword [esi], 0x2719
mov dword [esi + 4], eax
or eax, 0xffffffff
jmp 0x505e9c
call fcn.00614c34
mov eax, dword [esp + 0x58]
mov dword [esp + 8], edi
mov dword [esp], ebp
mov dword [esp + 4], eax
call dword [sym.imp.WSOCK32.DLL_ioctlsocket]
sub esp, 0xc
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00614c10
test eax, eax
js 0x505e9c
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], eax
call fcn.0062d0ac
cmp dword [esp + 0x58], 0x8004667e
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 4], edx
jne 0x505e9c
cmp dword [edi], 0
je 0x505e99
or byte [ebx], 1
jmp 0x505e9c
and byte [ebx], 0xfc
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x505ea4
Capabilities:
Get socket status

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov edi, dword [esp + 0x68]
mov ebp, dword [esp + 0x6c]
mov esi, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
call fcn.00614c34
cmp dword [esp + 0x64], 0
jne 0x505f12
test edi, edi
jne 0x505f12
test ebp, ebp
jne 0x505f12
test esi, esi
je 0x505f12
mov eax, dword [esi + 4]
imul ecx, dword [esi], 0x3e8
mov esi, 0x3e8
cdq
idiv esi
mov edx, 1
add eax, ecx
cmove eax, edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push eax
lea ecx, [esp + 0x38]
call fcn.0062d0ac
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [ebx], eax
mov dword [ebx + 4], edx
xor eax, eax
jmp 0x505f82
test esi, esi
je 0x505f30
cmp dword [esi], 0
jne 0x505f30
mov eax, dword [esi + 4]
lea edx, [eax - 1]
cmp edx, 0x3e6
ja 0x505f30
mov dword [esi + 4], 0x3e8
mov eax, dword [esp + 0x64]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebp
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call dword [sym.imp.WSOCK32.DLL_select]
sub esp, 0x14
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00614c10
test eax, eax
js 0x505f82
lea ecx, [esp + 0x38]
mov dword [esp + 0x2c], eax
call fcn.0062d0ac
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
mov dword [ebx], esi
mov dword [ebx + 4], edi
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x505f8a
Capabilities:
Get socket status

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x14c
mov edi, dword [esp + 0x160]
mov ebx, dword [esp + 0x164]
mov esi, dword [esp + 0x168]
cmp edi, 0xffffffff
jne 0x505fbb
call fcn.004dccc9
mov dword [esi], 0x2719
jmp 0x506036
lea ebp, [esp + 0x2c]
and bl, 1
mov eax, 0
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], 1
cmove ebp, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call fcn.00614c34
lea eax, [esp + 0x3c]
inc edi
mov dword [esp + 0x10], ebp
mov dword [esp], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call dword [sym.imp.WSOCK32.DLL_select]
sub esp, 0x14
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00614c10
cmp eax, 0
mov edi, eax
jne 0x50603b
test bl, bl
je 0x50603d
call fcn.004dccc9
mov dword [esi], 0x2733
mov dword [esi + 4], eax
jmp 0x506053
jle 0x506053
lea ecx, [esp + 0x34]
call fcn.0062d0ac
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esi], eax
mov dword [esi + 4], edx
add esp, 0x14c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x50641e
Capabilities:
Get socket status

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x14c
mov edi, dword [esp + 0x160]
mov ebx, dword [esp + 0x164]
mov esi, dword [esp + 0x168]
cmp edi, 0xffffffff
jne 0x50644f
call fcn.004dccc9
mov dword [esi], 0x2719
jmp 0x5064ca
lea ebp, [esp + 0x2c]
and bl, 1
mov eax, 0
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], 1
cmove ebp, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call fcn.00614c34
lea eax, [esp + 0x3c]
inc edi
mov dword [esp + 0x10], ebp
mov dword [esp], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
call dword [sym.imp.WSOCK32.DLL_select]
sub esp, 0x14
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00614c10
cmp eax, 0
mov edi, eax
jne 0x5064cf
test bl, bl
je 0x5064d1
call fcn.004dccc9
mov dword [esi], 0x2733
mov dword [esi + 4], eax
jmp 0x5064e7
jle 0x5064e7
lea ecx, [esp + 0x34]
call fcn.0062d0ac
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esi], eax
mov dword [esi + 4], edx
add esp, 0x14c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x506f0a
Capabilities:
Connect socket

Disassembly:
push esi
push ebx
sub esp, 0x34
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x4c]
cmp esi, 0xffffffff
jne 0x506f2f
call fcn.004dccc9
mov dword [ebx], 0x2719
mov dword [ebx + 4], eax
or eax, 0xffffffff
jmp 0x506f7e
call fcn.00614c34
mov eax, dword [esp + 0x48]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
call dword [sym.imp.WSOCK32.DLL_connect]
sub esp, 0xc
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00614c10
test eax, eax
jne 0x506f7e
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], eax
call fcn.0062d0ac
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [ebx], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 4], edx
add esp, 0x34
pop ebx
pop esi
ret
Function at 0x506f84
Capabilities:
Set socket configuration

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
cmp dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
mov ebp, dword [esp + 0x70]
mov ebx, dword [esp + 0x78]
jne 0x506fb3
call fcn.004dccc9
mov dword [ebx], 0x2719
jmp 0x506fd0
cmp edi, 0xa5100000
sete dl
cmp esi, 2
jne 0x506fdb
test dl, dl
je 0x506fdb
call fcn.004dccc9
mov dword [ebx], 0x2726
mov dword [ebx + 4], eax
or eax, 0xffffffff
jmp 0x50707d
cmp esi, 1
jne 0x507013
test dl, dl
je 0x507013
cmp dword [esp + 0x74], 4
jne 0x506fc5
cmp dword [ebp], 0
je 0x506ff6
or byte [eax], 4
jmp 0x506ff9
and byte [eax], 0xfb
lea ecx, [esp + 0x38]
call fcn.0062d0ac
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [ebx], eax
xor eax, eax
mov dword [ebx + 4], edx
jmp 0x50707d
cmp edi, 0xffff
jne 0x507026
cmp esi, 0x80
jne 0x507026
or byte [eax], 8
call fcn.00614c34
mov eax, dword [esp + 0x74]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call dword [sym.imp.WSOCK32.DLL_setsockopt]
sub esp, 0x14
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00614c10
test eax, eax
jne 0x50707d
lea ecx, [esp + 0x38]
mov dword [esp + 0x2c], eax
call fcn.0062d0ac
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
mov dword [ebx], esi
mov dword [ebx + 4], edi
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x50723d
Capabilities:
Set socket configuration

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
cmp esi, 0xffffffff
je 0x507369
test al, al
je 0x5072af
test byte [edi], 8
je 0x5072af
lea ebp, [esp + 0x48]
mov word [esp + 0x40], 0
mov word [esp + 0x42], 0
mov ecx, ebp
call fcn.0062d0ac
lea eax, [esp + 0x40]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], pe_nt_image_headers32
mov dword [esp + 8], 0xffff
mov dword [esp + 0x10], eax
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00506f84
call fcn.00614c34
mov eax, dword [sym.imp.WSOCK32.DLL_closesocket]
mov dword [esp], esi
mov dword [esp + 0x2c], eax
call eax
push ecx
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00614c10
test eax, eax
mov ebp, eax
je 0x507369
call fcn.004dccc9
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
mov dword [esp], ebx
mov dword [esp + 0x38], 0x2733
mov dword [esp + 4], eax
call fcn.0062db94
test al, al
jne 0x507323
call fcn.004dccc9
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
mov dword [esp], ebx
mov dword [esp + 0x40], 0x4d5
mov dword [esp + 4], eax
call fcn.0062db94
test al, al
je 0x507381
lea eax, [esp + 0x48]
mov dword [esp + 0x48], 0
mov dword [esp + 4], 0x8004667e
mov dword [esp], esi
mov dword [esp + 8], eax
call dword [sym.imp.WSOCK32.DLL_ioctlsocket]
and byte [edi], 0xfc
sub esp, 0xc
call fcn.00614c34
mov dword [esp], esi
call dword [esp + 0x2c]
push edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00614c10
test eax, eax
mov ebp, eax
jne 0x507381
lea ecx, [esp + 0x48]
xor ebp, ebp
call fcn.0062d0ac
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [ebx], eax
mov dword [ebx + 4], edx
add esp, 0x5c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
cmp ebp, 0xffffffff
jne 0x507acb
call fcn.004dccc9
mov dword [ebx], 0x2719
mov dword [ebx + 4], eax
or eax, 0xffffffff
jmp 0x507b24
call fcn.00614c34
mov eax, dword [edi]
lea esi, [esp + 0x28]
mov dword [esp], ebp
mov dword [esp + 8], esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
call dword [sym.imp.WSOCK32.DLL_getsockname]
sub esp, 0xc
mov edx, dword [esp + 0x28]
mov dword [edi], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00614c10
test eax, eax
jne 0x507b24
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.0062d0ac
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [ebx], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 4], edx
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x50974c
Capabilities:
Create thread

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x50]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
sub esp, 0x10
test eax, eax
mov esi, eax
mov dword [ebx + 4], eax
jne 0x5097ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
call fcn.004dccc9
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
mov dword [esp + 4], str.thread.entry_event
mov dword [esp + 0x28], ebp
mov dword [esp], eax
call fcn.00614ee8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 4], eax
sub esp, 0x10
mov dword [ebx + 8], eax
cmp dword [edi + 4], 0
jne 0x50981e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
call fcn.004dccc9
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
mov dword [esp + 4], str.thread.exit_event
mov dword [esp + 0x28], ebp
mov dword [esp], eax
call fcn.00614ee8
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x501bbc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x54]
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll__beginthreadex]
test eax, eax
mov dword [edi], eax
jne 0x5098ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
test esi, esi
je 0x50987a
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
mov eax, dword [edi + 4]
test eax, eax
je 0x50988b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call fcn.004dccc9
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
mov dword [esp + 4], str.thread
mov dword [esp + 0x28], ebp
mov dword [esp], eax
call fcn.00614ee8
test esi, esi
je 0x5098cd
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
push eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x50e0b3
Capabilities:
Move file

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [esp + 0x68]
lea esi, [esp + 0x10]
lea edi, [esp + 0x28]
mov ecx, ebx
call fcn.0062d090
mov eax, dword [esp + 0x60]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0058e66f
mov eax, dword [esp + 0x64]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.0058e66f
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wrename]
test eax, eax
jns 0x50e11a
call fcn.004dcd16
mov ebp, eax
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [ebx + 4], ebp
mov dword [ebx], eax
mov ecx, edi
call fcn.006bfc70
mov ecx, esi
call fcn.006bfc70
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret