joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4244c5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041e08c
and dword [ebp - 4], 0
cmp dword [0x44c380], 0
mov ebx, eax
jne 0x424576
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x424627
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x424627
push eax
call fcn.0041e01a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44c380], eax
call esi
push eax
call fcn.0041e01a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44c384], eax
call esi
push eax
call fcn.0041e01a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44c388], eax
call esi
push eax
call fcn.0041e01a
pop ecx
mov dword [0x44c390], eax
test eax, eax
je 0x424576
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041e01a
pop ecx
mov dword [0x44c38c], eax
mov eax, dword [0x44c38c]
cmp eax, ebx
je 0x4245ce
cmp dword [0x44c390], ebx
je 0x4245ce
push eax
call fcn.0041e095
push dword [0x44c390]
mov esi, eax
call fcn.0041e095
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4245ce
test edi, edi
je 0x4245ce
call esi
test eax, eax
je 0x4245c5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4245c5
test byte [ebp - 0xc], 1
jne 0x4245ce
or dword [ebp + 0x10], 0x200000
jmp 0x424607
mov eax, dword [0x44c384]
cmp eax, ebx
je 0x424607
push eax
call fcn.0041e095
pop ecx
test eax, eax
je 0x424607
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x424607
mov eax, dword [0x44c388]
cmp eax, ebx
je 0x424607
push eax
call fcn.0041e095
pop ecx
test eax, eax
je 0x424607
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44c380]
call fcn.0041e095
pop ecx
test eax, eax
je 0x424627
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x424629
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d7a
sub eax, 0x403d20
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x1000f800
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 3
mov eax, 0x10
sub eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x16bc], eax
jle 0x1000f8e1
mov dword [ebp - 8], 2
movzx edx, word [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x16bc]
shl edx, cl
mov ecx, dword [ebp + 8]
movzx eax, word [ecx + 0x16b8]
or eax, edx
mov ecx, dword [ebp + 8]
mov word [ecx + 0x16b8], ax
arpl di, cx
jg 0x1000f859
lodsd eax, dword [esi]
sbb byte [esi], dl
xor al, 0x2a
mov ch, 0xa7
cdq
enter 0x175d, 0xffffffffffffff8e
test byte [edi + 0x66fbdf21], ah
and al, 0xba
sti
and al, 0xba
test eax, 0xad90aa45
test eax, 0xb4a1100f
pop ecx
inc eax
mov ebx, 0x57e3945e
pop esi
xchg esp, eax
jecxz 0x1000f8d0
scasd eax, dword es:[edi]
in eax, dx
cmp eax, 0xd883a6cb
fimul word [ecx]
adc eax, dword [edi + 0x1c]
test byte [edx - 0x3185a2], bh
push ds
into
call [esi]
leave
mov cl, 0xde
xor ebp, dword [ecx + ebx - 0x76]
invalid
xor eax, 0x61bab18b
and al, 0x74
push cs
lodsb al, byte [esi]
xchg esp, eax
jo 0x1000f864
jo 0x1000f889
arpl bp, di
dec ebx
shr dword [eax - 0x3a], 1
xchg dword [esi + 0x31], ebp
neg dword [edx]
jbe 0x1000f875
xor edi, esi
sbb dh, byte [esi - 0x71]
jo 0x1000f8cb
mov al, 0xa5
jp 0x1000f8f6
dec esp
lahf
or al, 0xd8
or byte [esi], bh
dec esp
mov fs, word [esi]
in al, 0xba
in al, 0xba
xchg edx, eax
in eax, dx
leave
clc
fisttp word [eax - 0x28]
fisub word cs:[eax]
invalid
Function at 0x403380
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x61c850]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x4033e9
lea ecx, [ebp - 0x198]
push ecx
movzx edx, byte [ebp + 0xc]
and edx, 0xff
movzx eax, dl
movzx ecx, byte [ebp + 0x10]
and ecx, 0xff
movzx edx, cl
shl edx, 8
or eax, edx
push eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp - 0x19c]
push eax
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493f9c
mov esp, ebp
pop ebp
ret

Function at 0x403710
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x403751
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
call fcn.00403190
push eax
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402dd0
push 0x5f7008
lea ecx, [ebp - 0x10]
push ecx
call fcn.00402f20
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4182d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x61c850]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x408], ecx
test edi, edi
jne 0x418305
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493f9c
mov esp, ebp
pop ebp
ret 4
push ebx
push esi
push edi
xor bl, bl
call fcn.0049a8b9
add esp, 4
test eax, eax
jne 0x41837f
jmp 0x418320
push edi
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
xor esi, esi
call fcn.0049860a
add esp, 0x10
test bl, bl
jne 0x418357
lea ecx, [ecx]
cmp byte [ebp + esi - 0x404], 0x3c
je 0x418355
inc esi
cmp esi, 0x400
jb 0x418340
jmp 0x418357
mov bl, 1
mov edx, dword [ebp - 0x408]
mov edx, dword [edx + 0x10]
sub eax, esi
lea ecx, [ebp + esi - 0x404]
call fcn.0041bd90
push edi
test eax, eax
je 0x4183a0
call fcn.0049a8b9
add esp, 4
test eax, eax
je 0x418320
mov ecx, dword [ebp - 0x408]
xor eax, eax
cmp byte [ecx + 4], al
pop esi
pop ebx
sete al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493f9c
mov esp, ebp
pop ebp
ret 4
call fcn.0049834c
mov ecx, dword [ebp - 4]
add esp, 4
pop esi
pop ebx
xor ecx, ebp
mov eax, 0xfffffffe
pop edi
call fcn.00493f9c
mov esp, ebp
pop ebp
ret 4

Function at 0x4189a0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, 0x34567890
mov dword [ecx], 0x12345678
mov dword [ecx + 4], 0x23456789
mov dword [ecx + 8], edi
mov dl, byte [eax]
test dl, dl
je 0x418a10
push esi
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
and edx, 0xff
mov edx, dword [ebx + edx*4]
shr eax, 8
xor edx, eax
movzx eax, dl
add esi, eax
mov eax, dword [ebp + 8]
imul esi, esi, 0x8088405
mov dword [ecx], edx
inc esi
mov edx, esi
shr edx, 0x18
xor edx, edi
and edx, 0xff
shr edi, 8
mov dword [ecx + 4], esi
xor edi, dword [ebx + edx*4]
inc eax
mov dword [ecx + 8], edi
mov dl, byte [eax]
mov dword [ebp + 8], eax
test dl, dl
jne 0x4189c6
pop esi
pop edi
pop ebp
ret
Function at 0x419c10
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 0x4090], 0
je 0x419cc0
cmp dword [esi + 0x6c], 0
jbe 0x419cc0
mov eax, 0xffffff78
push ebx
sub eax, esi
push edi
lea edi, [esi + 0x88]
mov dword [ebp - 4], eax
lea ecx, [ecx]
movzx ecx, byte [edi]
mov eax, dword [esi + 0x4094]
mov ebx, dword [esi + 0x40a0]
xor ecx, eax
mov edx, dword [esi + 0x409c]
shr eax, 8
and ecx, 0xff
mov ecx, dword [ebx + ecx*4]
xor ecx, eax
movzx eax, cl
add eax, dword [esi + 0x4098]
mov dword [esi + 0x4094], ecx
mov ecx, dword [esi + 0x409c]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x4098], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [ebx + eax*4]
and edx, 0xfffd
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
mov dword [esi + 0x409c], ecx
mov ecx, dword [ebp - 4]
shr eax, 8
xor byte [edi], al
inc edi
add ecx, edi
cmp ecx, dword [esi + 0x6c]
jb 0x419c40
pop edi
pop ebx
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x20]
push edx
mov edx, dword [esi + 0x1c]
lea eax, [esi + 0x88]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
call eax
add esp, 0x10
cmp eax, dword [esi + 0x6c]
mov dword [esi + 0x6c], 0
je 0x419cee
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x41a3e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x41a3ee
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
pop ebp
jmp fcn.0041a400
Function at 0x41a6c0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [esi]
mov edx, ecx
xor edx, eax
shr ecx, 8
and edx, 0xff
mov edx, dword [edi + edx*4]
xor edx, ecx
movzx ecx, dl
add ecx, dword [esi + 4]
mov dword [esi], edx
mov edx, dword [esi + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, edx
and ecx, 0xff
shr edx, 8
xor edx, dword [edi + ecx*4]
mov dword [esi + 8], edx
ret
Function at 0x4209d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 0xc], edi
jmp 0x4209e3
mov edi, dword [ebp - 0xc]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x420a5d
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.00493fb0
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x420a31
sub eax, edi
jmp 0x420a33
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x420a22
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x420a50
sub eax, edi
jmp 0x420a52
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x420a41
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x420b89
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], edx
cmp ebx, ecx
jbe 0x420a83
mov ebx, ecx
test ebx, ebx
je 0x420ad6
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x420aa5
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.00431c70
jmp 0x420abe
cmp eax, 2
jne 0x420ac4
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x420ab7
xor eax, eax
jmp 0x420ac1
mov edx, ebx
call fcn.0041a400
mov edx, dword [ebp - 8]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.00493fb0
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x420afe
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x420b12
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x4209e0
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x420b89
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x420b58
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x420b39
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.00496f40
add esp, 0xc
add ebx, edi
pop edi
mov dword [esi + 0x16c0], ebx
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x420b89
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x420b72
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call fcn.00496f40
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43d870
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0xffffffff
je 0x43d98e
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x43d8d2
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
and edx, 8
je 0x43d8d2
xor eax, eax
mov word [ebp - 8], ax
xor ecx, ecx
mov word [ebp - 6], cx
lea ecx, [ebp - 0x10]
call fcn.00402da0
lea edx, [ebp - 0x10]
push edx
push 4
lea eax, [ebp - 8]
push eax
push 0x80
push 0xffff
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0043da80
add esp, 0x1c
call fcn.0043d860
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
push eax
call fcn.0045b9d0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x43d98e
push 0
push 0x2733
lea ecx, [ebp - 0x1c]
call fcn.0040bc00
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.00402d60
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x43d947
push 0
push 0x4d5
lea ecx, [ebp - 0x24]
call fcn.0040bc00
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.00402d60
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x43d98e
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0x8004667e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
and edx, 0xfffffffc
mov eax, dword [ebp + 0xc]
mov byte [eax], dl
call fcn.0043d860
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
push eax
call fcn.0045b9d0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x43d9a9
lea ecx, [ebp - 0x2c]
call fcn.00402da0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call fcn.0043d860
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x18]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
push eax
call fcn.0045b9d0
add esp, 8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x18]
call fcn.004091d0
cmp eax, 0x40
jne 0x43da38
push 0x2746
mov ecx, dword [ebp + 0x18]
call fcn.0040bc30
jmp 0x43da54
mov ecx, dword [ebp + 0x18]
call fcn.004091d0
cmp eax, 0x4d2
jne 0x43da54
push 0x274d
mov ecx, dword [ebp + 0x18]
call fcn.0040bc30
cmp dword [ebp - 0xc], 0
je 0x43da5f
or eax, 0xffffffff
jmp 0x43da77
lea ecx, [ebp - 0x18]
call fcn.00402da0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x440d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8498
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x61c850]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x44], 0
je 0x440d90
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x440d9c
mov al, 1
jmp 0x440f3f
mov dword [ebp - 0x10], 8
call fcn.00401410
push eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x58]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.00401410
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.004013d0
add esp, 8
movzx eax, al
test eax, eax
je 0x440ddf
xor al, al
jmp 0x440f3f
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.004407f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x34]
call fcn.00405950
mov ecx, eax
call fcn.00440bf0
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.004613d0
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x34]
call fcn.00405950
mov ecx, eax
call fcn.00440bf0
push eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x4c
push ecx
mov edx, dword [ebp - 0x58]
mov ecx, dword [edx + 0x44]
call fcn.00441e40
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x440e5a
cmp dword [ebp - 0x5c], 1
je 0x440e61
cmp dword [ebp - 0x5c], 3
je 0x440efb
jmp 0x440f13
mov eax, dword [ebp - 0x58]
mov byte [eax + 0x49], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00405950
mov ecx, eax
call fcn.00440bf0
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x440ec4
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.00405950
mov ecx, eax
call fcn.00440bf0
push eax
call fcn.0049991d
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x440ec4
mov byte [ebp - 0x51], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004058b0
mov al, byte [ebp - 0x51]
jmp 0x440f3f
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x440ee7
mov byte [ebp - 0x52], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004058b0
mov al, byte [ebp - 0x52]
jmp 0x440f3f
cmp dword [ebp - 0x38], 0
jne 0x440ef9
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.00407790
jmp 0x440f2b
mov byte [ebp - 0x53], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004058b0
mov al, byte [ebp - 0x53]
jmp 0x440f3f
mov byte [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004058b0
mov al, byte [ebp - 0x54]
jmp 0x440f3f
jmp 0x440df2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00493f9c
mov esp, ebp
pop ebp
ret
Function at 0x4569f0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
mov dword [ebp - 4], eax
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 8]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0045a050
movzx ecx, al
test ecx, ecx
je 0x456a45
push 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x456a68
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
push 0x456a70
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esp, ebp
pop ebp
ret

Function at 0x457be0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.0043d860
mov eax, dword [ebp + 0x14]
push eax
push 1
push 0
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_WSASocketW]
push eax
call fcn.0045b9d0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x457c1e
mov eax, dword [ebp - 4]
jmp 0x457c57
cmp dword [ebp + 8], 0x17
jne 0x457c3f
mov dword [ebp - 8], 0
push 4
lea ecx, [ebp - 8]
push ecx
push 0x1b
push 0x29
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0x10]
call fcn.00402da0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x457da0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x61c850]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xffffffff
jne 0x457dce
push 0x2719
mov ecx, dword [ebp + 0x10]
call fcn.0040bc30
or eax, 0xffffffff
jmp 0x457f37
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x124], 0
jmp 0x457df3
mov eax, dword [ebp - 0x124]
add eax, 1
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
cmp ecx, dword [ebp - 0x110]
jae 0x457e17
mov edx, dword [ebp - 0x124]
mov eax, dword [ebp + edx*4 - 0x10c]
cmp eax, dword [ebp + 8]
jne 0x457e15
jmp 0x457e17
jmp 0x457de4
mov ecx, dword [ebp - 0x124]
cmp ecx, dword [ebp - 0x110]
jne 0x457e4d
cmp dword [ebp - 0x110], 0x40
jae 0x457e4d
mov edx, dword [ebp - 0x124]
mov eax, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x10c], eax
mov ecx, dword [ebp - 0x110]
add ecx, 1
mov dword [ebp - 0x110], ecx
xor edx, edx
jne 0x457dd8
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
movzx eax, byte [ebp + 0xc]
and eax, 1
neg eax
sbb eax, eax
lea ecx, [ebp - 0x118]
and eax, ecx
mov dword [ebp - 0x120], eax
call fcn.0043d860
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x120]
push eax
push 0
lea ecx, [ebp - 0x110]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_select]
push eax
call fcn.0045b9d0
add esp, 8
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x457f10
movzx eax, byte [ebp + 0xc]
and eax, 1
je 0x457ede
push 0
push 0x2733
lea ecx, [ebp - 0x130]
call fcn.0040bc00
mov dword [ebp - 0x144], eax
jmp 0x457eef
lea ecx, [ebp - 0x138]
call fcn.00402da0
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp - 0x128]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov dword [edx + 4], ecx
jmp 0x457f31
cmp dword [ebp - 0x11c], 0
jle 0x457f31
lea ecx, [ebp - 0x140]
call fcn.00402da0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493f9c
mov esp, ebp
pop ebp
ret