joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421ce0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x421d5a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0xc], eax
add eax, 0xffffd8ec
cmp eax, 0x36
ja case.0x421d1b.10005
movzx ecx, byte [eax + 0x421d84]
jmp dword [ecx*4 + 0x421d68]
mov eax, 2
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
mov eax, 0xc
pop esi
pop ebp
ret
mov eax, 0xd
pop esi
pop ebp
ret
mov eax, 0x10
pop esi
pop ebp
ret
mov eax, 5
pop esi
pop ebp
ret
mov eax, 6
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x421d63
mov dword [ecx], eax
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 2
push edi
lea edi, [ebp - 0x14]
jbe 0x421e09
xor ecx, ecx
mov eax, esi
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
jne 0x421e09
mov eax, dword [ebp + 8]
pop edi
mov dword [eax + 0xc], 0x802
mov eax, 0x10
pop esi
mov esp, ebp
pop ebp
ret
xor ecx, ecx
test esi, esi
push ebx
jbe 0x421e35
mov ebx, dword [ebp + 0xc]
mov edx, edi
lea eax, [ebx + 4]
sub edx, ebx
lea ebx, [ebx]
mov ebx, dword [eax - 4]
mov dword [edx + eax], ebx
mov ebx, dword [eax]
mov dword [edi + ecx*8], ebx
add ecx, 1
add eax, 8
cmp ecx, esi
jb 0x421e20
mov ebx, dword [ebp + 8]
mov edx, dword [ebx]
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push edi
push edx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp esi, 2
mov dword [ebp + 0x10], eax
jbe 0x421e5e
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp + 0x10], 0xffffffff
jne 0x421ed9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx + 0xc], eax
add eax, 0xffffd8ec
cmp eax, 0x36
ja case.0x421e7e.10005
movzx eax, byte [eax + 0x421f0c]
jmp dword [eax*4 + 0x421ef0]
pop ebx
pop edi
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 0xc
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 0xd
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 0x10
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 5
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 6
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x421ee5
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x421f50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x421fc2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0xc], eax
add eax, 0xffffd8ec
cmp eax, 0x36
ja case.0x421f8b.10005
movzx ecx, byte [eax + 0x421fe4]
jmp dword [ecx*4 + 0x421fcc]
mov eax, 2
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
mov eax, 0xc
pop esi
pop ebp
ret
mov eax, 0xd
pop esi
pop ebp
ret
mov eax, 5
pop esi
pop ebp
ret
mov eax, 6
pop esi
pop ebp
ret
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
xor eax, eax
pop esi
pop ebp
ret
Function at 0x422020
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4c0120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 4]
sub eax, 2
push edi
mov dword [ebp - 0x2c], edx
je 0x422079
sub eax, 0x15
je 0x422072
pop edi
mov dword [esi + 0xc], 0x800
pop esi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
mov edi, 0x1c
jmp 0x42207e
mov edi, 0x10
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp + 0x14]
lea edx, [ebp - 0x20]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [esi]
push edx
push ecx
push eax
mov dword [ebp - 0x28], edi
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x422133
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0xc], eax
add eax, 0xffffd8ec
cmp eax, 0x35
ja case.0x4220be.10005
movzx ecx, byte [eax + 0x4221dc]
jmp dword [ecx*4 + 0x4221c8]
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 5
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x28], edi
je 0x422155
pop edi
mov dword [esi + 0xc], 0x802
pop esi
mov eax, 0xe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 4]
sub ecx, 2
je 0x422193
sub ecx, 0x15
jne 0x4221b0
test ebx, ebx
je 0x42216d
mov dx, word [ebp - 0x1e]
mov word [ebx], dx
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4221b0
cmp dword [ebp + 0x1c], 0x10
jb 0x422138
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov edx, dword [ebp - 0x14]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0xc]
mov dword [ecx + 0xc], edx
jmp 0x4221b0
test ebx, ebx
je 0x42219e
mov cx, word [ebp - 0x1e]
mov word [ebx], cx
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4221b0
cmp dword [ebp + 0x1c], 4
jb 0x422138
mov edx, dword [ebp - 0x1c]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
Function at 0x422280
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4c0120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 4]
sub eax, 2
push edi
mov edi, dword [ebp + 0x14]
je 0x4222d0
sub eax, 0x15
je 0x4222c9
pop edi
mov dword [esi + 0xc], 0x800
pop esi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
mov ebx, 0x1c
jmp 0x4222d5
mov ebx, 0x10
mov eax, dword [esi]
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x20]
push edx
push eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x422345
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0xc], eax
sub eax, 0x2714
je 0x42232f
sub eax, 0x22
je 0x422319
pop edi
pop esi
mov eax, 6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 5
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x28], ebx
je 0x422367
pop edi
mov dword [esi + 0xc], 0x802
pop esi
mov eax, 0xe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
sub eax, 2
je 0x4223b6
sub eax, 0x15
jne 0x4223d7
test edi, edi
je 0x42237f
mov cx, word [ebp - 0x1e]
mov word [edi], cx
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4223d7
cmp dword [ebp + 0x10], 0x10
jb 0x42234a
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [eax + 8], edx
pop esi
mov dword [eax + 0xc], ecx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4223c1
mov dx, word [ebp - 0x1e]
mov word [edi], dx
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4223d7
cmp dword [ebp + 0x10], 4
jb 0x42234a
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
Function at 0x422ca0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 1
cmp byte [ebp + 0xc], al
mov dword [ebp - 4], eax
jne 0x422cb8
mov dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
lea eax, [ebp - 4]
push eax
push 0x8004667e
push ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x422d06
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0xc], eax
sub eax, 0x2714
je 0x422cfc
sub eax, 0x22
je 0x422cf2
mov eax, 6
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 5
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x423490
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x18]
sub esp, 8
xor eax, eax
test ecx, ecx
jl 0x4234c7
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 8], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [ebp - 4], ecx
lea eax, [ebp - 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x423523
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
sub eax, 0x2714
je 0x42351a
sub eax, 0x12
je 0x423511
sub eax, 0x10
je 0x423508
mov eax, 6
mov esp, ebp
pop ebp
ret
mov eax, 2
mov esp, ebp
pop ebp
ret
mov eax, 1
mov esp, ebp
pop ebp
ret
mov eax, 5
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x1c]
mov dword [edx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x423a90
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4c0120]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, 1
cmp byte [0x50049c], al
push esi
mov esi, dword [ebp + 8]
jne 0x423ac2
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
push edi
push 0x4e047c
mov byte [0x50049c], al
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4c0478
call fcn.00422e00
push 0x4e0498
call fcn.00422e00
add esp, 8
cmp dword [0x5086b8], 0
jne 0x423b24
call fcn.004537e0
test eax, eax
je 0x423b74
test esi, esi
mov byte [0x50049c], 0
je 0x423b5f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
pop edi
mov eax, 6
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [ebp - 0x194]
push eax
push 2
call edi
test eax, eax
je 0x423b74
cmp eax, 0x276c
jne 0x423b52
lea ecx, [ebp - 0x194]
push ecx
push 0x101
call edi
test eax, eax
je 0x423b74
test esi, esi
mov byte [0x50049c], 0
je 0x423b5f
mov dword [esi], eax
pop edi
mov eax, 6
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
Function at 0x423c20
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4c0120]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
sub eax, 2
je 0x423caa
sub eax, 0x15
je 0x423c79
mov dword [esi + 0xc], 0x800
mov eax, 3
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 0x10
jne 0x423cb0
mov dx, word [edx]
mov word [ebp - 0x1e], dx
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x14], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov eax, 0x1c
mov word [ebp - 0x20], 0x17
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
jmp 0x423ce2
cmp dword [ebp + 0x10], 4
je 0x423ccb
mov dword [esi + 0xc], 0x802
mov eax, 0xe
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
mov dx, word [edx]
mov ecx, dword [ecx]
mov eax, 0x10
mov word [ebp - 0x20], 2
mov word [ebp - 0x1e], dx
mov dword [ebp - 0x1c], ecx
push eax
mov eax, dword [esi]
lea edx, [ebp - 0x20]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x423dfb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0xc], eax
add eax, 0xffffd8ec
cmp eax, 0x39
ja case.0x423d17.10005
movzx ecx, byte [eax + 0x423e30]
jmp dword [ecx*4 + 0x423e0c]
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
push 0x4e047c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x8000
push 0x4c0478
push esi
call fcn.00422e10
add esp, 0xc
push 0x4e047c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0xb
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
mov eax, 0xa
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
mov eax, 7
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
mov eax, 8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
mov eax, 5
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
mov eax, 6
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
Function at 0x433bb0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
mov dword [ebp + 0x1c], ecx
je 0x433c47
cmp word [ecx + 8], 2
push ebx
push edi
jne 0x433c18
cmp word [ecx + 0xa], 4
jne 0x433c18
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x433c18
mov ebx, dword [ebp + 0x10]
mov edx, dword [eax]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ebx
push ecx
call fcn.00433b30
test eax, eax
mov dword [esi], eax
je 0x433c3b
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x433bf2
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x18]
push 0x400
push edx
push 0x401
push eax
call dword [sym.imp.MSVCR80.dll_strncpy_s]
add esp, 0x10
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret 0x18
pop edi
pop ebx
mov eax, 8
pop esi
pop ebp
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x433c57.11001
jmp dword [eax*4 + 0x433c7c]
mov eax, 0x2af9
pop esi
pop ebp
ret 0x18
mov eax, 0x2afa
pop esi
pop ebp
ret 0x18
mov eax, 0x2afb
pop esi
pop ebp
ret 0x18
Function at 0x434470
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4c0120]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5004e8], 0
mov dword [ebp - 0x230], str.getaddrinfo
mov dword [ebp - 0x22c], 0x433f20
mov dword [ebp - 0x228], str.getnameinfo
mov dword [ebp - 0x224], 0x4341e0
mov dword [ebp - 0x220], str.freeaddrinfo
mov dword [ebp - 0x21c], fcn.00433ed0
je 0x4344e3
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x4be498]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret 4
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x434606
push ebx
push esi
push edi
mov edi, dword [sym.imp.MSVCR80.dll_strcpy_s]
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x110]
push 0x10c
push eax
call edi
mov ebx, dword [sym.imp.MSVCR80.dll_strcat_s]
push str.ws2_32
lea ecx, [ebp - 0x110]
push 0x10c
push ecx
call ebx
add esp, 0x18
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x434561
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4345ba
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x110]
push 0x10c
push ecx
call edi
push str.wship6
lea edx, [ebp - 0x110]
push 0x10c
push edx
call ebx
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x434603
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x4345c0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x434603
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
mov ecx, dword [ebp + edi*8 - 0x230]
push ecx
push esi
call ebx
test eax, eax
mov dword [ebp + edi*8 - 0x22c], eax
je 0x4345b1
add edi, 1
cmp edi, 3
jl 0x4345c2
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x21c]
mov dword [0x4be498], edx
mov dword [0x4be4a0], eax
mov dword [fcn.00433ed0], ecx
pop edi
pop esi
pop ebx
movzx edx, word [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [edx*8 + 0x4be498]
xor ecx, ebp
mov dword [0x5004e8], 1
call fcn.00455bf8
mov esp, ebp
pop ebp
ret 4

Function at 0x4354e0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x43556b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [str.internal_error]
push eax
mov eax, dword [str.NI__network_interface_]
push str.gethostname
push str.NiPMyHostName
push 0xffffffffffffffff
push edx
push 1
push 0x306
push str.ninti.c
push 0x27
push eax
call fcn.00451010
add esp, 0x28
cmp dword [0x508130], 1
jl 0x435566
call fcn.0044c570
push 0x309
push str.ninti.c
call fcn.0044c350
mov ecx, dword [0x508154]
push str.NiPMyHostName
push str._s:_gethostnameU_failed_n
push ecx
call fcn.0044df70
add esp, 0x14
call fcn.0044c580
or eax, 0xffffffff
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x445210
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
push esi
mov esi, dword [ebp + 0x14]
mov byte [esi], 1
mov byte [0x500d00], 0
mov dword [eax], 0x500d00
push edi
mov dword [ecx], 0
jne 0x44525d
mov edx, dword [str.sncxxpar.c]
push str.SncIProfileParam__:_p_default___NULL______n
push 0x364
push edx
call fcn.00446100
mov ebx, 0x45907b
add esp, 0xc
mov dword [ebp + 0x10], ebx
mov eax, dword [0x500e00]
test eax, eax
mov ecx, dword [ebp + 8]
je 0x44532e
push eax
mov eax, dword [ebp + 0xc]
push 0xfe
push 0x500d00
push str.void
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, 0x500d00
mov byte [eax + 0x500d00], 0
mov eax, 5
mov ecx, edi
mov edx, str.void
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4452b8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4452a0
test eax, eax
je 0x445315
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x445307
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x445315
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x445307
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x445315
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x445307
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x445315
movzx eax, byte [ecx]
movzx esi, byte [edx]
sub esi, eax
je 0x445315
test esi, esi
mov eax, 1
jg 0x445317
or eax, 0xffffffff
jmp 0x445317
xor eax, eax
test eax, eax
jne 0x445326
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov byte [ecx], 1
jmp 0x44537d
mov edx, dword [ebp + 0x14]
mov byte [edx], 0
jmp 0x44537d
mov eax, dword [ebp + 0xc]
push eax
push ecx
push str._.16s__.40s
push 0x500d00
call dword [sym.imp.MSVCR80.dll_sprintf]
push 0x500d00
call fcn.00446180
mov edi, eax
add esp, 0x14
test edi, edi
je 0x445360
cmp byte [edi], 0
je 0x445360
mov byte [esi], 0
jmp 0x44537d
push 0x500d00
mov byte [esi], 1
call fcn.00446190
mov edi, eax
add esp, 4
test edi, edi
je 0x44537b
cmp byte [edi], 0
jne 0x44537d
mov edi, ebx
cmp byte [edi], 0
mov esi, edi
je 0x4453c8
mov ebx, dword [sym.imp.MSVCR80.dll_isspace]
lea ebx, [ebx]
mov al, byte [esi]
cmp al, 0x30
jb 0x44539a
cmp al, 0x39
jbe 0x4453b9
cmp al, 0x2d
je 0x4453b9
cmp al, 0x2b
je 0x4453b9
movzx edx, al
push edx
call ebx
add esp, 4
test eax, eax
je 0x4453c8
add esi, 1
cmp byte [esi], 0
jne 0x445390
jmp 0x4453c8
push esi
call dword [sym.imp.MSVCR80.dll_atoi]
mov ecx, dword [ebp + 0x1c]
add esp, 4
mov dword [ecx], eax
mov edx, dword [ebp + 0x18]
mov dword [edx], edi
mov eax, dword [0x508130]
cmp eax, 4
jl 0x44540d
cmp eax, 3
jl 0x44540d
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
mov eax, str.default
jne 0x4453ee
mov eax, str.custom
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push edi
push ecx
push edx
push eax
push str.______SncIProfileParam__:___.16s___.16s__.40s____.256s__value_d_n
push 3
call fcn.004460a0
add esp, 0x1c
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4454f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x500e04]
sub esp, 0xc
test eax, eax
jne 0x445575
push esi
push edi
push str.SNC_LIB
mov esi, str.sncgss32.dll
mov edi, 1
call dword [sym.imp.MSVCR80.dll_getenv]
add esp, 4
test eax, eax
mov dword [ebp - 8], eax
je 0x445527
mov esi, eax
mov edi, 2
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 1]
push edx
push 0x45907b
push str.gssapi_lib
push 0x468444
call fcn.00445210
mov eax, dword [ebp - 8]
add esp, 0x18
test eax, eax
je 0x44555d
cmp byte [eax], 0
je 0x44555d
mov esi, eax
mov edi, 3
push 0
push esi
call fcn.004454a0
add esp, 8
mov dword [0x500e08], edi
pop edi
mov dword [0x500e04], eax
pop esi
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4455a8
cmp dword [0x508130], 0
je 0x4455a8
push eax
mov eax, dword [0x500e08]
mov edx, dword [eax*4 + 0x4be964]
push edx
push ecx
push str._s__:_Trying__s_as_a_n______gssapi_library_name:___s_._n
push 1
call fcn.004460a0
mov eax, dword [0x500e04]
add esp, 0x14
mov esp, ebp
pop ebp
ret
Function at 0x446180
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00452960