joyce8/EMBER2024-capa huggingface dataset:
Function at 0x496f20
Capabilities:
Convert ip address from string

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
xor esi, esi
test eax, eax
je 0x4970c4
cmp byte [eax], 0
je 0x4970c4
push ebx
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x4970be
cmp byte [ebx], 0
je 0x4970be
push edi
push eax
call dword [0x612770]
mov edi, eax
add esp, 4
test edi, edi
je 0x4970b7
push ebx
call dword [0x612770]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4970ad
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x496f80
sub ecx, edx
cmp byte [ecx + ebx - 1], 0x2e
jne 0x496f94
mov byte [ecx + ebx - 1], al
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x496fa0
sub ecx, edx
cmp byte [ecx + edi - 1], 0x2e
jne 0x496fb4
mov byte [ecx + edi - 1], al
push ebp
push 0x2a
push edi
call sub.VCRUNTIME140.dll_strchr
mov ebp, eax
add esp, 8
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x497092
lea eax, [esp + 0x10]
push eax
push ebx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x496fe7
xor esi, esi
jmp 0x4970a2
push 0x2e
push edi
call sub.VCRUNTIME140.dll_strchr
mov esi, eax
add esp, 8
test esi, esi
je 0x497092
lea eax, [esi + 1]
push 0x2e
push eax
call sub.VCRUNTIME140.dll_strchr
add esp, 8
test eax, eax
je 0x497092
cmp ebp, esi
ja 0x497092
push 4
push 0x5fdb70
push edi
call fcn.004663a0
add esp, 0xc
test eax, eax
jne 0x497092
push 0x2e
push ebx
call sub.VCRUNTIME140.dll_strchr
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x496fe0
push ebp
push esi
call fcn.00466300
add esp, 8
test eax, eax
je 0x496fe0
mov ecx, ebp
mov eax, esi
sub ecx, ebx
sub eax, edi
cmp ecx, eax
jl 0x496fe0
mov eax, dword [esp + 0x18]
sub esi, eax
sub eax, edi
dec esi
push eax
push ebx
push edi
call fcn.004663a0
add esp, 0xc
test eax, eax
je 0x496fe0
mov eax, dword [esp + 0x18]
sub ebp, esi
push esi
inc eax
push ebp
push eax
call fcn.004663a0
add esp, 0xc
test eax, eax
je 0x496fe0
mov esi, 1
jmp 0x4970a2
push ebx
push edi
call fcn.00466300
add esp, 8
neg eax
sbb esi, esi
neg esi
push ebx
call dword [0x612768]
add esp, 4
pop ebp
push edi
call dword [0x612768]
add esp, 4
pop edi
pop ebx
mov eax, esi
pop esi
pop ecx
ret
pop ebx
mov eax, esi
pop esi
pop ecx
ret
mov eax, esi
pop esi
pop ecx
ret
Function at 0x49a390
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov eax, dword [0x915cc8]
test eax, eax
je 0x49a3a2
inc eax
mov dword [0x915cc8], eax
xor eax, eax
ret
push ebx
mov ebx, dword [esp + 8]
mov dword [0x915cc8], 1
push esi
test bl, 1
je 0x49a45b
push str.iphlpapi.dll
mov dword [0x915cd0], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x915cd0], eax
test eax, eax
jne 0x49a3e1
pop esi
mov eax, 0x16
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5fde6c
push eax
call esi
mov dword [0x915cb8], eax
test eax, eax
jne 0x49a40c
push dword [0x915cd0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov eax, 0x17
pop ebx
ret
push str.GetAdaptersAddresses
push dword [0x915cd0]
call esi
push str.GetBestRoute2
push dword [0x915cd0]
mov dword [0x915cc0], eax
call esi
push str.advapi32.dll
mov dword [0x915cc4], eax
mov dword [0x915cd4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x915cd4], eax
test eax, eax
je 0x49a45b
push str.SystemFunction036
push eax
call esi
mov dword [0x915cbc], eax
pop esi
mov dword [0x915ccc], ebx
xor eax, eax
pop ebx
ret
Function at 0x49b360
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
mov dword [esi], 0
call fcn.0049f7d0
cmp eax, 3
jne 0x49b460
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
mov dword [esp + 0x2c], 0
mov dword [esi], 0
call ebx
test eax, eax
jne 0x49b53f
push esi
push str.NameServer
push dword [esp + 0x14]
call fcn.0049b550
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x49b43c
push esi
push str.DhcpNameServer
push dword [esp + 0x14]
call fcn.0049b550
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x49b43c
lea eax, [esp + 0x18]
push eax
push 9
push edi
push str.Interfaces
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x49b410
push dword [esp + 0xc]
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
push esi
push str.NameServer
push dword [esp + 0x20]
call fcn.0049bc30
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x49b43c
push esi
push str.DhcpNameServer
push dword [esp + 0x20]
call fcn.0049bc30
add esp, 0xc
mov edi, eax
mov eax, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x49b44d
push eax
call ebx
push dword [esp + 0xc]
call ebx
test edi, edi
je 0x49b53f
jmp 0x49b513
cmp eax, 2
jne 0x49b53f
lea eax, [esp + 0x18]
mov dword [esi], 0
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesVxDMSTCP
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x49b53f
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esi], eax
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x18]
push eax
push 0
push str.NameServer
push edi
call ebx
test eax, eax
je 0x49b4c8
cmp eax, 0xea
jne 0x49b535
mov eax, dword [esp + 0xc]
test eax, eax
je 0x49b535
inc eax
push eax
call dword [0x6127b4]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x49b535
lea ecx, [esp + 0xc]
push ecx
push eax
lea eax, [esp + 0x18]
push eax
push 0
push str.NameServer
push edi
call ebx
test eax, eax
jne 0x49b524
mov ecx, dword [esp + 0xc]
cmp ecx, 1
je 0x49b524
mov eax, dword [esi]
mov byte [ecx + eax], 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi], 0
je 0x49b53f
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
push dword [esi]
call dword [0x6127bc]
add esp, 4
mov dword [esi], 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x49b550
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 4]
push eax
push 0
push 0
push 0
push dword [esp + 0x20]
mov dword [esp + 0x18], 0
push dword [esp + 0x20]
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x49b588
cmp eax, 0xea
jne 0x49b5e5
mov eax, dword [esp + 4]
test eax, eax
je 0x49b5e5
inc eax
push eax
call dword [0x6127b4]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x49b5e5
lea ecx, [esp + 4]
push ecx
push eax
push 0
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x49b5d4
mov ecx, dword [esp + 4]
cmp ecx, 1
je 0x49b5d4
mov eax, dword [esi]
pop esi
mov byte [ecx + eax], 0
mov eax, 1
pop ecx
ret
push dword [esi]
call dword [0x6127bc]
add esp, 4
mov dword [esi], 0
xor eax, eax
pop esi
pop ecx
ret
Function at 0x49bc30
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x612790]
xor eax, esp
mov dword [esp + 0x114], eax
mov ecx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
push ebp
push esi
mov esi, dword [esp + 0x12c]
mov ebp, 1
push 0
push 0
push 0
push 0
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], eax
push ecx
push 0
push eax
mov dword [esi], 0
mov dword [esp + 0x30], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x49bd7e
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea eax, [esp + 0x10]
push eax
push 1
push 0
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x49bd3e
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov dword [esi], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
push dword [esp + 0x2c]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x49bcec
cmp eax, 0xea
jne 0x49bd38
mov eax, dword [esp + 0x14]
test eax, eax
je 0x49bd38
inc eax
push eax
call dword [0x6127b4]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x49bd38
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
push 0
push dword [esp + 0x2c]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x49bd27
mov ecx, dword [esp + 0x14]
cmp ecx, 1
jne 0x49bd70
push dword [esi]
call dword [0x6127bc]
add esp, 4
mov dword [esi], 0
push dword [esp + 0x10]
call edi
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0x100
push ecx
lea ecx, [esp + 0x38]
mov eax, ebp
push ecx
push eax
push dword [esp + 0x3c]
inc ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x49bca1
jmp 0x49bd7c
mov eax, dword [esi]
mov byte [ecx + eax], 0
push dword [esp + 0x10]
call edi
pop ebx
pop edi
mov ecx, dword [esp + 0x11c]
xor eax, eax
cmp dword [esi], eax
pop esi
setne al
pop ebp
xor ecx, esp
call fcn.00498b38
add esp, 0x118
ret
Function at 0x49cdb0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x91b8]
test ecx, ecx
je 0x49cdd9
push dword [eax + 0x91bc]
mov eax, dword [ecx + 8]
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x14]
call eax
add esp, 0x10
ret
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_connect]
ret

Function at 0x49d0a0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x24
mov eax, dword [0x612790]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [esp + 0x38]
push edi
cmp dword [esi + 0x91b8], 0
jne 0x49d181
mov edi, dword [esp + 0x34]
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push edi
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [esi + 0x1c], 0
lea eax, [esi + 0x1c]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
jle 0x49d107
push 4
push eax
push 0x1001
push 0xffff
push edi
call ebx
cmp eax, 0xffffffff
je 0x49d1cc
cmp dword [esi + 0x20], 0
lea eax, [esi + 0x20]
jle 0x49d129
push 4
push eax
push 0x1002
push 0xffff
push edi
call ebx
cmp eax, 0xffffffff
je 0x49d1cc
mov eax, dword [esp + 0x38]
cmp eax, 2
jne 0x49d15a
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x49d181
xorps xmm0, xmm0
mov ecx, 2
movups xmmword [esp + 0x10], xmm0
push eax
mov word [esp + 0x14], cx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x14], eax
push 0x10
jmp 0x49d1bc
cmp eax, 0x17
jne 0x49d181
lea ebx, [esi + 0x60]
mov edx, 0x5fe37c
mov ecx, ebx
lea esi, [eax - 0xb]
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x49d195
add ecx, 4
add edx, 4
sub esi, 4
jae 0x49d170
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00498b38
add esp, 0x24
ret
movups xmm0, xmmword [ebx]
xor eax, eax
mov dword [esp + 0x12], 0
mov word [esp + 0x16], ax
mov dword [esp + 0x28], eax
mov eax, 0x17
mov word [esp + 0x10], ax
movups xmmword [esp + 0x18], xmm0
push 0x1c
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x49d181
mov ecx, dword [esp + 0x2c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00498b38
add esp, 0x24
ret
Function at 0x49d340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
push esi
push edi
mov edi, dword [esp + 0x40]
imul esi, ebp, 0x58
add esi, dword [edi + 0x74]
push esi
push edi
call fcn.0049ffe0
lea eax, [esp + 0x20]
push eax
call fcn.0049f8e0
lea eax, [esp + 0x24]
push eax
lea ebx, [esi + 0x44]
call fcn.0049f940
push ebx
mov esi, eax
call fcn.0049f940
movq xmm1, qword [ebx]
add esp, 0x14
movq xmm0, qword [esp + 0x18]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
movq qword [esp + 0x24], xmm0
movq qword [esp + 0x10], xmm1
movq qword [esp + 0x30], xmm1
mov dword [esp + 0x44], ecx
test esi, esi
je 0x49d3c2
push ebx
call fcn.0049f8e0
movq xmm1, qword [esp + 0x14]
add esp, 4
mov ecx, dword [esp + 0x44]
jmp 0x49d3d6
movq qword [ebx], xmm0
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x28]
mov dword [eax], ebx
mov eax, dword [esp + 0x24]
mov dword [eax + 4], ebx
cmp dword [esp + 0x40], 0
je 0x49d3ec
lea eax, [esp + 0x18]
push eax
call fcn.0049f8e0
add esp, 4
jmp 0x49d407
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x18]
movq qword [esp + 0x18], xmm1
mov dword [eax], ecx
mov eax, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x18]
cmp esi, eax
je 0x49d449
mov ebx, dword [esp + 0x48]
nop word [eax + eax]
cmp dword [edi + 0x78], 1
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
jle 0x49d436
mov eax, dword [ecx + 0x5c]
mov dword [eax + ebp*8], 1
push ebx
push ecx
push edi
call fcn.0049d640
lea eax, [esp + 0x24]
add esp, 0xc
cmp esi, eax
jne 0x49d420
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x49d460
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
cmp ebp, 0xc
jl 0x49d632
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x10], 0
movzx ecx, byte [ebx + 4]
lea esi, [ebx + 0xc]
movzx eax, byte [ebx + 5]
movzx edx, byte [ebx + 6]
shl edx, 8
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 7]
or edx, eax
mov dword [esp + 0x28], ecx
movzx eax, byte [ebx + 9]
mov dword [esp + 0x14], edx
movzx edx, byte [ebx + 8]
shl edx, 8
or edx, eax
movzx eax, byte [ebx + 0xb]
mov dword [esp + 0x18], edx
movzx edx, byte [ebx + 0xa]
shl edx, 8
or edx, eax
mov dword [esp + 0x1c], edx
test ecx, ecx
je 0x49d51e
nop dword [eax + eax]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
push ebp
push ebx
push esi
call fcn.004a1320
add esp, 0x14
test eax, eax
jne 0x49d632
push dword [esp + 0x20]
call fcn.004a14e0
mov eax, dword [esp + 0x28]
lea edi, [ebx + ebp]
add eax, 4
add esp, 4
add esi, eax
cmp esi, edi
ja 0x49d632
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x28]
jb 0x49d4d0
jmp 0x49d521
lea edi, [ebx + ebp]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], 0
add eax, dword [esp + 0x18]
je 0x49d5a0
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x2c]
push eax
push ebp
push ebx
push esi
call fcn.004a1320
add esp, 0x14
test eax, eax
jne 0x49d632
push dword [esp + 0x28]
call fcn.004a14e0
mov edx, dword [esp + 0x30]
add esp, 4
add edx, esi
lea eax, [edx + 0xa]
cmp eax, edi
ja 0x49d632
movzx esi, byte [edx + 8]
movzx eax, byte [edx + 9]
add edx, 0xa
shl esi, 8
or esi, eax
add esi, edx
cmp esi, edi
ja 0x49d632
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
add ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x10], eax
cmp eax, ecx
jb 0x49d533
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x38], 0
jbe 0x49d61b
nop
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
push esi
call fcn.004a1320
add esp, 0x14
test eax, eax
jne 0x49d632
push dword [esp + 0x18]
call fcn.004a14e0
mov edx, dword [esp + 0x18]
add esp, 4
add edx, esi
lea eax, [edx + 0xa]
cmp eax, edi
ja 0x49d632
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl cx, 8
or cx, ax
cmp cx, 0x29
je 0x49d625
movzx esi, byte [edx + 8]
movzx eax, byte [edx + 9]
add edx, 0xa
shl esi, 8
or esi, eax
add esi, edx
cmp esi, edi
ja 0x49d632
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x1c]
jb 0x49d5b0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x20
ret
Function at 0x49d910
Capabilities:
Create udp socket

Disassembly:
sub esp, 0x24
mov eax, dword [0x612790]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x30]
push edi
mov eax, dword [ebx]
sub eax, 2
je 0x49d975
sub eax, 0x15
jne 0x49da0c
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
mov eax, 0x17
mov word [esp + 0x10], ax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0xc], 0x1c
test eax, eax
je 0x49d95d
push eax
jmp 0x49d960
push dword [esi + 0x14]
call fcn.00463ab0
movups xmm0, xmmword [ebx + 4]
mov word [esp + 0x16], ax
movups xmmword [esp + 0x1c], xmm0
jmp 0x49d9ae
mov eax, 2
mov dword [esp + 0xc], 0x10
mov word [esp + 0x10], ax
xorps xmm0, xmm0
mov eax, dword [ebx + 0x14]
movlpd qword [esp + 0x18], xmm0
test eax, eax
je 0x49d99a
push eax
jmp 0x49d99d
push dword [esi + 0x14]
call fcn.00463ab0
mov word [esp + 0x16], ax
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x91b8]
add esp, 4
mov ecx, dword [ebx]
test eax, eax
je 0x49d9d1
push dword [esi + 0x91bc]
mov eax, dword [eax]
push 0
push 2
push ecx
call eax
add esp, 0x10
jmp 0x49d9dc
push 0
push 2
push ecx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x49da0c
push esi
push dword [ebx]
push edi
call fcn.0049d0a0
add esp, 0xc
test eax, eax
jns 0x49da3d
mov eax, dword [esi + 0x91b8]
test eax, eax
je 0x49da21
push dword [esi + 0x91bc]
mov eax, dword [eax + 4]
push edi
call eax
add esp, 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00498b38
add esp, 0x24
ret
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00498b38
add esp, 0x24
ret
mov eax, dword [esi + 0x91b0]
push ebp
test eax, eax
je 0x49da5c
push dword [esi + 0x91b4]
push 2
push edi
call eax
mov ebp, eax
add esp, 0xc
test ebp, ebp
js 0x49dac6
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push edi
push esi
call fcn.0049cdb0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x49daa8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2734
je 0x49daa8
cmp eax, 0x2733
je 0x49daa8
push edi
push esi
call fcn.0049cd80
add esp, 8
or eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00498b38
add esp, 0x24
ret
mov eax, dword [esi + 0x91a8]
test eax, eax
je 0x49dae5
push dword [esi + 0x91ac]
push 2
push edi
call eax
mov ebp, eax
add esp, 0xc
test ebp, ebp
jns 0x49dae5
push edi
push esi
call fcn.0049cd80
add esp, 8
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00498b38
add esp, 0x24
ret
mov eax, dword [esi + 0x91a0]
test eax, eax
je 0x49daff
push 0
push 1
push edi
push dword [esi + 0x91a4]
call eax
add esp, 0x10
mov ecx, dword [esp + 0x30]
xor eax, eax
pop ebp
mov dword [ebx + 0x1c], edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00498b38
add esp, 0x24
ret
Function at 0x49e500
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 8
mov edx, dword [ecx + 0x91b8]
test edx, edx
je 0x49e53e
push dword [ecx + 0x91bc]
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
lea eax, [esp + 4]
push 1
push eax
push dword [esp + 0x1c]
mov eax, dword [edx + 0x10]
call eax
add esp, 0x10
add esp, 8
ret
push 0
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
add esp, 8
ret
Function at 0x49e560
Capabilities:
Send data
Send data on socket

Disassembly:
mov edx, dword [esp + 0xc]
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x49e579
cmp edx, 0xffffffff
je 0x49e73e
push ebx
mov ebx, dword [esp + 0x18]
push ebp
xor ebp, ebp
cmp dword [ebx + 0x78], ebp
jle 0x49e73c
xor eax, eax
mov dword [esp + 0xc], eax
push edi
mov edi, dword [ebx + 0x74]
add edi, eax
mov eax, dword [edi + 0x38]
test eax, eax
je 0x49e726
mov ecx, dword [edi + 0x20]
cmp ecx, 0xffffffff
je 0x49e726
cmp dword [edi + 0x54], 0
jne 0x49e726
test esi, esi
je 0x49e62b
push esi
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x49e722
mov esi, dword [esi]
xor ecx, ecx
test esi, esi
je 0x49e620
mov eax, dword [esp + 0x24]
mov edx, dword [edi + 0x20]
add eax, 4
nop dword [eax]
cmp dword [eax], edx
je 0x49e5ee
inc ecx
add eax, 4
cmp ecx, esi
jb 0x49e5e0
jmp 0x49e620
lea eax, [esi - 1]
cmp ecx, eax
jae 0x49e617
mov ebx, dword [esp + 0x24]
lea edx, [ebx + 4]
lea edx, [edx + ecx*4]
nop
mov eax, dword [edx + 4]
lea edx, [edx + 4]
mov dword [edx - 4], eax
inc ecx
mov esi, dword [ebx]
lea eax, [esi - 1]
cmp ecx, eax
jb 0x49e600
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
lea eax, [esi - 1]
mov dword [ecx], eax
mov eax, dword [edi + 0x38]
xor ecx, ecx
test eax, eax
je 0x49e63d
jmp 0x49e633
cmp ecx, edx
jne 0x49e726
xor ecx, ecx
mov eax, dword [eax + 0x10]
inc ecx
test eax, eax
jne 0x49e635
lea eax, [ecx*8]
push eax
call dword [0x6127b4]
mov ecx, dword [edi + 0x38]
mov esi, eax
add esp, 4
test esi, esi
je 0x49e6d2
xor edx, edx
test ecx, ecx
je 0x49e675
mov eax, dword [ecx]
mov dword [esi + edx*8], eax
mov eax, dword [ecx + 4]
mov dword [esi + edx*8 + 4], eax
inc edx
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x49e661
mov ecx, dword [ebx + 0x91b8]
mov eax, dword [edi + 0x20]
test ecx, ecx
je 0x49e695
push dword [ebx + 0x91bc]
push edx
push esi
push eax
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x10
jmp 0x49e6a0
push edx
push esi
push eax
call fcn.004a14f0
add esp, 0xc
push esi
mov edi, eax
call dword [0x6127bc]
add esp, 4
test edi, edi
jns 0x49e6cf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x49e71e
cmp eax, 0x2733
je 0x49e71e
push dword [esp + 0x2c]
push ebp
push ebx
call fcn.0049d340
jmp 0x49e71b
push edi
jmp 0x49e714
mov esi, dword [ebx + 0x91b8]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov edx, dword [edi + 0x20]
test esi, esi
je 0x49e704
push dword [ebx + 0x91bc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push 1
push eax
mov dword [esp + 0x20], ecx
mov eax, dword [esi + 0x10]
push edx
call eax
add esp, 0x10
jmp 0x49e70f
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x49e6b0
push eax
push ebp
push ebx
call fcn.0049ccf0
add esp, 0xc
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
inc ebp
add eax, 0x58
mov dword [esp + 0x10], eax
cmp ebp, dword [ebx + 0x78]
jl 0x49e591
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
Function at 0x49efb0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
push esi
cmp eax, 2
jne 0x49efcb
push 4
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.0049f170
jmp 0x49efdf
cmp eax, 0x17
jne 0x49f003
push 0x10
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.0049f500
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x49eff8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x49eff8
xor eax, eax
pop esi
ret
sar esi, 0x1f
and esi, 0xfffffffe
lea eax, [esi + 1]
pop esi
ret
push 0x273f
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop esi
ret