joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445b40
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x4865d4], 2
jne 0x445b79
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
push 0
push 0x424760
push 0
push 0
call fcn.0045233c
add esp, 0x18
test eax, eax
jne 0x445b72
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ecx
ret

Function at 0x445c00
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4865d4]
sub esp, 0x524
dec eax
mov dword [0x486608], 1
push esi
push edi
mov dword [0x485b0c], 0
je 0x445cfd
dec eax
jne 0x445d24
lea eax, [esp + 8]
mov dword [esp + 8], 0x47343c
push eax
mov dword [esp + 0x10], 0x445df0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x445d24
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov esi, eax
call edi
cmp dword [0x4865d4], 1
je 0x445d24
mov ecx, esi
test esi, esi
mov dword [0x486600], ecx
jne 0x445c8f
mov ecx, eax
mov dword [0x486600], ecx
cmp ecx, 0x3e5
jne 0x445c9f
xor ecx, ecx
mov dword [0x486600], ecx
push 0x47ca0c
push ecx
push 0x474e90
push 0x47c9f0
lea ecx, [esp + 0x28]
push 0x514
push ecx
call fcn.0045279b
mov edx, dword [0x486600]
add esp, 0x18
test edx, edx
mov eax, 0x6d
mov ecx, 4
je 0x445cdf
mov eax, 0x6e
mov ecx, 1
push 0
lea edx, [esp + 0x1c]
push 0
push edx
push eax
push ecx
call fcn.00446f40
add esp, 0x14
xor eax, eax
pop edi
pop esi
add esp, 0x524
ret
push 1
push 0x475c40
call fcn.0042b430
mov edi, eax
add esp, 8
test edi, edi
je 0x445d24
push 0x47c9d8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x445d2f
pop edi
xor eax, eax
pop esi
add esp, 0x524
ret
push 1
push 0
call esi
push 0
call fcn.00438170
add esp, 4
push 0
push 0
call esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4466a0
Capabilities:
Delete registry value
Delete service
Enumerate gui resources
Persist via run registry key
Query service status
Stop service

Disassembly:
mov eax, dword [0x4865d4]
sub esp, 0x20
dec eax
push esi
push edi
je 0x446831
dec eax
jne 0x4468ec
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
mov dword [esp + 8], edi
je 0x446802
push 0xf01ff
push 0x47343c
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x4467d0
push ebx
lea eax, [esp + 0x10]
push ebp
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ebp, dword [esp + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x446764
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
je 0x44673a
cmp dword [esp + 0x18], 3
jne 0x44673a
push 0xbb8
call ebx
lea edx, [esp + 0x14]
push edx
push esi
call edi
test eax, eax
jne 0x446720
cmp dword [esp + 0x18], 1
je 0x446760
test ebp, ebp
je 0x446760
push 0x2710
push 0x30
push 0x474e90
push 0x47cdc0
push 0
call fcn.0042f2f0
add esp, 0x14
mov edi, dword [esp + 0x10]
push 0x3e8
call ebx
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4467a3
test ebp, ebp
je 0x446794
push 0x2710
push 0x30
push 0x474e90
push 0x47cd90
push eax
call fcn.0042f2f0
add esp, 0x14
push 0
push 0
push 0x474e90
push 0x66
push 1
jmp 0x4467b0
push 0
push 0
push 0x474e90
push 0x65
push 4
call fcn.00446f40
add esp, 0x14
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebp
pop ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4467f3
push 0x2710
push 0x30
push 0x474e90
push 0x47cd64
push 0
call fcn.0042f2f0
add esp, 0x14
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4468ec
push 0x2710
push 0x30
push 0x474e90
push 0x47ccbc
push 0
call fcn.0042f2f0
add esp, 0x14
xor eax, eax
pop edi
pop esi
add esp, 0x20
ret
push 0
push 0x445b90
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [esp + 0x2c]
test eax, eax
je 0x446865
test esi, esi
je 0x446865
push 0x2710
push 0x30
push 0x474e90
push 0x47cc8c
push 0
call fcn.0042f2f0
add esp, 0x14
lea eax, [esp + 8]
push eax
push 0x47cb24
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4468a5
test esi, esi
je 0x4468ec
push 0x2710
push 0x30
push 0x474e90
push 0x47cc48
push 0
call fcn.0042f2f0
add esp, 0x14
xor eax, eax
pop edi
pop esi
add esp, 0x20
ret
mov ecx, dword [esp + 8]
push 0x47343c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4468e5
mov edx, dword [esp + 8]
push edx
call edi
test esi, esi
je 0x4468e5
push 0x2710
push 0x30
push 0x474e90
push 0x47cd90
push 0
call fcn.0042f2f0
add esp, 0x14
mov eax, dword [esp + 8]
push eax
call edi
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
Function at 0x446f40
Capabilities:
Access the windows event log

Disassembly:
mov eax, dword [0x4865d4]
sub esp, 0x114
cmp eax, 1
push esi
je 0x447075
push edi
mov edi, dword [esp + 0x128]
test edi, edi
jne 0x446f66
mov edi, 0x481910
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x40
push eax
call fcn.004520a2
add esp, 4
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x481a98]
test eax, eax
je 0x446fd7
mov al, byte [0x481910]
mov ecx, 0x40
mov byte [esp + 0x18], al
xor eax, eax
lea edi, [esp + 0x19]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [0x481a94]
stosw word es:[edi], ax
push ecx
push 0x47ce64
push edx
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push esi
call edi
push 0x47ce5c
push esi
call edi
jmp 0x446ff3
mov eax, dword [0x486608]
test eax, eax
je 0x446fe7
push 0x47ce54
jmp 0x446fec
push 0x47ce4c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [esp + 0x12c]
mov edx, dword [esp + 0x130]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp + 0x10], edx
xor edi, edi
lea eax, [esp + 8]
mov ecx, 3
cmp dword [eax], 0
je 0x44701e
inc edi
add eax, 4
dec ecx
jne 0x447018
mov eax, dword [0x486724]
test eax, eax
jne 0x447042
push 0x47343c
push eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
test eax, eax
mov dword [0x486724], eax
je 0x447067
mov edx, dword [esp + 0x124]
lea ecx, [esp + 8]
push 0
push ecx
mov ecx, dword [esp + 0x128]
push 0
push edi
push 0
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
test esi, esi
pop edi
je 0x447075
push esi
call fcn.00451fb9
add esp, 4
pop esi
add esp, 0x114
ret
Function at 0x448171
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], 1
mov eax, dword [esi + 0xa14]
test eax, eax
jl 0x44818d
pop edi
xor eax, eax
pop esi
pop ecx
ret
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
test eax, eax
mov dword [esi + 0xa14], eax
jge 0x4481a9
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov edi, dword [sym.imp.WSOCK32.dll_setsockopt]
lea ecx, [esp + 8]
push 4
push ecx
push 4
push 0xffff
push eax
call edi
test eax, eax
je 0x4481ca
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esi + 0xa14]
lea edx, [esp + 8]
push 4
push edx
push 1
push 6
push eax
call edi
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
pop ecx
ret

Function at 0x4481f0
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xa14]
test eax, eax
jge 0x44820b
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 8], eax
push esi
mov dword [esp + 0x10], eax
mov word [esp + 0xc], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x44825a
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x448201
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
test eax, eax
jne 0x448254
pop edi
pop esi
add esp, 0x10
ret 8
mov edx, dword [eax]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov edx, dword [edi + 0xa14]
lea ecx, [esp + 8]
push 0x10
push ecx
push edx
mov word [esp + 0x16], ax
call dword [sym.imp.WSOCK32.dll_connect]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
add esp, 0x10
ret 8

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

Disassembly:
sub esp, 0x200
push esi
mov esi, ecx
push 0x19
lea eax, [esi + 0xa18]
push eax
call fcn.004481f0
test eax, eax
jne 0x4482fe
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
add esi, 8
push 0x47cec0
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor eax, eax
pop esi
add esp, 0x200
ret
push 0
mov ecx, esi
call fcn.00448690
test eax, eax
jne 0x448313
pop esi
add esp, 0x200
ret
lea ecx, [esi + 0xb1c]
push edi
push ecx
lea edx, [esp + 0xc]
push 0x47ceb4
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0
push ecx
mov ecx, dword [esi + 0xa14]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_send]
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push 1
mov ecx, esi
call fcn.00448690
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x200
ret
Function at 0x448480
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0x2800
call fcn.004520a2
mov esi, eax
add esp, 4
test esi, esi
jne 0x4484b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x47cfcc
call fcn.00446e00
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ecx, 0xa00
xor eax, eax
mov edi, esi
push 0x47cfc4
rep stosd dword es:[edi], eax
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
mov eax, dword [ebx + 0xa14]
mov edi, dword [sym.imp.WSOCK32.dll_send]
not ecx
dec ecx
push 0
push ecx
push esi
push eax
call edi
mov ebp, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
call ebp
push 7
mov ecx, ebx
call fcn.00448690
test eax, eax
jne 0x448516
push esi
call fcn.00451fb9
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
lea ecx, [ebx + 0x1d24]
push ecx
push 0x47cfb8
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebx + 0xa14]
push 0
push eax
push esi
push edx
call edi
call ebp
lea eax, [ebx + 0x910]
push eax
push 0x47cfac
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebx + 0xa14]
push 0
push eax
push esi
push ecx
call edi
call ebp
lea edx, [ebx + 0x80c]
push edx
push 0x47cfa0
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
push eax
mov eax, dword [ebx + 0xa14]
push esi
push eax
call edi
call ebp
mov ecx, dword [esp + 0x14]
push ecx
push 0x47cf80
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebx + 0xa14]
push 0
push eax
push esi
push edx
call edi
call ebp
push 0x2800
push 0x47cf1c
push esi
call fcn.0042f1a0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
push eax
mov eax, dword [ebx + 0xa14]
push esi
push eax
call edi
call ebp
mov ecx, dword [esp + 0x18]
push 0x2800
push ecx
push esi
call fcn.0042f1a0
push 0x2800
push 0x46f06c
push esi
call fcn.0042f1f0
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebx + 0xa14]
push 0
push eax
push esi
push edx
call edi
call ebp
push 0x2800
push 0x46efe4
push esi
call fcn.0042f1a0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
push eax
mov eax, dword [ebx + 0xa14]
push esi
push eax
call edi
call ebp
push 5
mov ecx, ebx
call fcn.00448690
test eax, eax
push esi
jne 0x44866e
call fcn.00451fb9
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
call fcn.00451fb9
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x448af0
Capabilities:
Initialize winsock library

Disassembly:
push esi
push 0x486728
mov esi, ecx
push 2
call dword [sym.imp.WSOCK32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [esi], eax
mov eax, esi
pop esi
ret

Function at 0x448ba0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], 1
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x448bc1
call fcn.00448c80
mov ecx, dword [esi + 8]
push 0
push ecx
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov edi, dword [sym.imp.WSOCK32.dll_setsockopt]
lea edx, [esp + 8]
push 4
push edx
push 4
push 0xffff
push eax
mov dword [esi + 4], eax
call edi
test eax, eax
je 0x448c1d
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x448c60
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
test eax, eax
mov dword [esi + 0x10], eax
jne 0x448c60
call fcn.00452f4b
cmp dword [eax], 0
je 0x448c60
call fcn.00452f4b
mov eax, dword [eax]
pop edi
mov dword [esi + 0x10], eax
xor eax, eax
pop esi
pop ecx
ret 4
cmp dword [esi + 8], 2
je 0x448c68
mov edx, dword [esi + 4]
lea ecx, [esp + 8]
push 4
push ecx
push 1
push 6
push edx
call edi
test eax, eax
je 0x448c68
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x448c60
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
test eax, eax
mov dword [esi + 0x10], eax
jne 0x448c60
call fcn.00452f4b
cmp dword [eax], 0
je 0x448c60
call fcn.00452f4b
mov eax, dword [eax]
mov dword [esi + 0x10], eax
pop edi
xor eax, eax
pop esi
pop ecx
ret 4
pop edi
mov eax, 1
pop esi
pop ecx
ret 4
Function at 0x4490e0
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0xffffffff
je 0x449202
mov edi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 8], eax
push edi
mov dword [esp + 0x10], eax
mov word [esp + 0xc], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x449176
push edi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x4491a8
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
test eax, eax
jne 0x449170
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x449202
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
test eax, eax
mov dword [esi + 0x10], eax
jne 0x449202
call fcn.00452f4b
cmp dword [eax], 0
je 0x449202
call fcn.00452f4b
mov edx, dword [eax]
pop edi
mov dword [esi + 0x10], edx
xor eax, eax
pop esi
add esp, 0x10
ret 8
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [esi + 4]
mov word [esp + 0xa], ax
lea eax, [esp + 8]
push 0x10
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
jne 0x4491da
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret 8
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x449202
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
test eax, eax
mov dword [esi + 0x10], eax
jne 0x449202
call fcn.00452f4b
cmp dword [eax], 0
je 0x449202
call fcn.00452f4b
mov ecx, dword [eax]
pop edi
mov dword [esi + 0x10], ecx
xor eax, eax
pop esi
add esp, 0x10
ret 8
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x449202
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
test eax, eax
mov dword [esi + 0x10], eax
jne 0x449202
call fcn.00452f4b
cmp dword [eax], 0
je 0x449202
call fcn.00452f4b
mov edx, dword [eax]
mov dword [esi + 0x10], edx
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8
Function at 0x449260
Capabilities:
Set socket configuration

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], 1
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x449398
xor edi, edi
push edi
push edi
push eax
call dword [sym.imp.WSOCK32.dll_accept]
mov ebx, eax
cmp ebx, edi
jge 0x4492c3
cmp dword [esi + 0x10], edi
jne 0x449398
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, edi
mov dword [esi + 0x10], eax
jne 0x449398
call fcn.00452f4b
cmp dword [eax], edi
je 0x449398
call fcn.00452f4b
mov eax, dword [eax]
pop edi
mov dword [esi + 0x10], eax
pop esi
xor eax, eax
pop ebx
pop ecx
ret
cmp dword [0x485b08], edi
je 0x449363
cmp dword [0x485b0c], edi
jne 0x449363
push 0x1c
call fcn.00451b7b
add esp, 4
cmp eax, edi
je 0x449327
lea ecx, [esp + 0xc]
push 4
push ecx
push 1
push 6
mov dword [eax], 0x462e5c
mov dword [eax + 4], 0xffffffff
mov dword [eax + 8], 1
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], edi
push ebx
mov edi, eax
mov dword [eax + 4], ebx
call dword [sym.imp.WSOCK32.dll_setsockopt]
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret
cmp dword [esi + 0x10], edi
jne 0x44934c
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, edi
mov dword [esi + 0x10], eax
jne 0x44934c
call fcn.00452f4b
cmp dword [eax], edi
je 0x44934c
call fcn.00452f4b
mov edx, dword [eax]
mov dword [esi + 0x10], edx
push 2
push ebx
call dword [sym.imp.WSOCK32.dll_shutdown]
push ebx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret
cmp dword [esi + 0x10], edi
jne 0x449388
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, edi
mov dword [esi + 0x10], eax
jne 0x449388
call fcn.00452f4b
cmp dword [eax], edi
je 0x449388
call fcn.00452f4b
mov eax, dword [eax]
mov dword [esi + 0x10], eax
push 2
push ebx
call dword [sym.imp.WSOCK32.dll_shutdown]
push ebx
call dword [sym.imp.WSOCK32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret

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

Disassembly:
sub esp, 0x14
lea eax, [esp]
lea edx, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push edx
push eax
mov dword [esp + 0xc], 0x10
call dword [sym.imp.WSOCK32.dll_getsockname]
cmp eax, 0xffffffff
je 0x449463
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
test eax, eax
jne 0x449468
mov eax, 0x47d0f4
add esp, 0x14
ret

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

Disassembly:
sub esp, 0x14
lea eax, [esp]
lea edx, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push edx
push eax
mov dword [esp + 0xc], 0x10
call dword [sym.imp.WSOCK32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4494ad
push 2
lea ecx, [esp + 0xc]
push 4
push ecx
call dword [sym.imp.WSOCK32.dll_gethostbyaddr]
test eax, eax
je 0x4494ad
mov eax, dword [eax]
test eax, eax
jne 0x4494b2
mov eax, 0x47d0f4
add esp, 0x14
ret
Function at 0x449510
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
mov ebp, ecx
push esi
mov esi, dword [esp + 0x14]
push edi
cmp dword [ebp + 4], 0xffffffff
jne 0x449529
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
test esi, esi
jle 0x449577
mov ebx, dword [sym.imp.WSOCK32.dll_recv]
mov edi, dword [esp + 0x14]
mov eax, dword [ebp + 4]
cmp eax, 0xffffffff
je 0x449565
push 0
push esi
push edi
push eax
call ebx
test eax, eax
jle 0x449550
add edi, eax
sub esi, eax
jmp 0x44955f
je 0x449565
call fcn.00452f4b
cmp dword [eax], 0x2733
jne 0x449565
test esi, esi
jle 0x449577
jmp 0x449537
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
pop edi
mov dword [ebp + 0x14], eax
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8

Function at 0x449590
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jne 0x4495a3
pop edi
xor eax, eax
pop esi
ret 4
cmp byte [0x486728], 2
jae 0x4495b3
pop edi
xor eax, eax
pop esi
ret 4
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.WSOCK32.dll_setsockopt]
lea edx, [esp + 0xc]
push 4
push edx
push 0x1006
push 0xffff
push eax
mov dword [esp + 0x20], ecx
call esi
cmp eax, 0xffffffff
jne 0x4495e1
pop edi
xor eax, eax
pop esi
ret 4
mov ecx, dword [edi + 4]
lea eax, [esp + 0xc]
push 4
push eax
push 0x1005
push 0xffff
push ecx
call esi
xor edx, edx
cmp eax, 0xffffffff
setne dl
pop edi
mov eax, edx
pop esi
ret 4
Function at 0x449610
Capabilities:
Set socket configuration

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push 0x47354c
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x44965f
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x449649
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x449649
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x449649
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 0x47d120
call fcn.00446e00
add esp, 8
xor eax, eax
pop esi
pop ebx
pop ecx
ret 4
push edi
push 0x47d114
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4496d9
mov ecx, dword [esp + 0x14]
push 0
push 0
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
call eax
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x4496d9
mov edi, dword [sym.imp.WSOCK32.dll_setsockopt]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0xffff
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x20], 1
call edi
test eax, eax
je 0x4496bc
mov dword [esp + 0xc], 0
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push 4
push eax
push 1
push 6
push ecx
call edi
test eax, eax
je 0x4496d9
mov dword [esp + 0xc], 0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x449742
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
test eax, eax
jne 0x449712
call edi
test eax, eax
mov dword [esi + 0x10], eax
jne 0x449712
call fcn.00452f4b
cmp dword [eax], 0
je 0x449712
call fcn.00452f4b
mov edx, dword [eax]
mov dword [esi + 0x10], edx
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x449729
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x449729
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x449729
call edi
push eax
push 0x47d104
call fcn.00446e00
mov eax, dword [esp + 0x14]
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0xc]
mov dword [esi + 0xc], 1
pop edi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x449760
Capabilities:
Get socket status

Disassembly:
mov ecx, dword [ecx + 4]
sub esp, 0x10c
cmp ecx, 0xffffffff
jne 0x449779
xor eax, eax
add esp, 0x10c
ret 8
mov edx, dword [esp + 0x110]
mov eax, dword [esp + 0x114]
test edx, edx
jne 0x44979d
test eax, eax
jne 0x44979d
mov eax, 1
add esp, 0x10c
ret 8
lea eax, [eax + eax*4]
mov dword [esp], edx
lea edx, [esp]
mov dword [esp + 0xc], ecx
lea eax, [eax + eax*4]
push edx
push 0
push 0
lea eax, [eax + eax*4]
mov dword [esp + 0x14], 1
shl eax, 3
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_select]
add esp, 0x10c
ret 8