joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401cb0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4eeea5
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x539050]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov eax, dword [0x539050]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, 1
test byte [0x545e70], al
jne 0x401d10
or dword [0x545e70], eax
push 0x4eeed0
mov dword [0x545e38], 0
call fcn.00404d58
add esp, 4
call fcn.00401110
mov ebx, str.ServerMain_start
call fcn.00403150
mov esi, dword [sym.imp.WININET.dll_InternetCheckConnectionW]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401d30
push 0
push 1
push str.http:__www.baidu.com
call esi
test eax, eax
jne 0x401d56
push eax
push 1
push str.http:__www.sina.com.cn_
call esi
test eax, eax
jne 0x401d56
push 0xbb8
call ebx
jmp 0x401d30
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], eax
call fcn.00401ad0
test eax, eax
je 0x401dc5
push 5
mov eax, str.__SER
lea ecx, [esp + 0x10]
call fcn.00402020
mov eax, dword [esp + 0x10]
mov esi, 8
cmp dword [esp + 0x24], esi
jae 0x401da1
lea eax, [esp + 0x10]
push eax
call fcn.004013e0
add esp, 4
test eax, eax
jne 0x401dc5
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x24], esi
jae 0x401dbc
lea eax, [esp + 0x10]
push eax
call fcn.00401790
add esp, 4
push 0x2932e00
call ebx
call fcn.00403d80
jmp 0x401dc5
Function at 0x402bb0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x539050]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.00406000
add esp, 0xc
push 0x104
lea edx, [esp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_StrRStrIW]
push 0x5365a0
push 0
lea eax, [esp + 0xc]
push eax
call esi
test eax, eax
jne 0x402c1e
push 0x5365a4
push eax
lea ecx, [esp + 0xc]
push ecx
call esi
test eax, eax
je 0x402cf8
xor edx, edx
mov word [eax], dx
lea eax, [esp + 4]
add eax, 0xfffffffe
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x402c30
mov ecx, dword [0x5365a8]
mov edx, dword [0x5365ac]
mov dword [eax], ecx
mov cx, word [0x5365b0]
mov dword [eax + 4], edx
lea edx, [esp + 4]
push edx
mov word [eax + 8], cx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402c75
push 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
lea edi, [esp + 8]
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402c80
mov ecx, dword [0x5365a0]
mov eax, ebx
mov dword [edi], ecx
mov edx, eax
jmp 0x402ca0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402ca0
lea edi, [esp + 8]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x402cb4
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 8]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 2]
pop edi
jmp 0x402ce0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402ce0
sub eax, edx
sar eax, 1
lea ecx, [esp + 4]
call fcn.00403650
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.004047dd
add esp, 0x20c
ret
Function at 0x4038d0
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push edi
push closesocket
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4038ee
pop edi
add esp, 0x1c
ret
push ebx
push esi
push closesocket
push 0x542fc8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
mov esi, eax
call ebx
xor eax, eax
test esi, esi
je 0x40394d
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push esi
mov edi, eax
call ebx
xor eax, eax
test edi, edi
je 0x40394d
cmp dword [esp + 0x10], 4
sete al
pop esi
pop ebx
pop edi
add esp, 0x1c
ret

Function at 0x403960
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x218
mov eax, dword [0x539050]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov ebx, str.InstallService
call fcn.00403150
call fcn.00403cf0
test eax, eax
jne 0x403a36
mov ebx, str.InstallService_open_begin
call fcn.00403150
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x403a02
mov ebx, str.InstallService_create_begin
call fcn.00403150
push 0x104
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push str.RPCSS
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push 0x542fc8
push 0x542fc8
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x403a1c
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004047dd
add esp, 0x218
ret
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
call fcn.00403af0
lea eax, [esp + 0x10]
call fcn.00403c20
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004047dd
add esp, 0x218
ret

Function at 0x403a60
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00403cf0
test eax, eax
jne 0x403a7b
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x20
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x403aae
push 0x10020
push 0x542fc8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x403ab7
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x20
ret
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
pop edi
xor eax, eax
test ebx, ebx
pop esi
setne al
pop ebx
add esp, 0x20
ret
Function at 0x403af0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x539050]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov ebx, str.SetServiceDesc_RegOpen_begin
call fcn.00403150
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.00406000
add esp, 0xc
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + str.SYSTEMCurrentControlSetServices_]
mov word [esp + eax + 0x10], cx
add eax, 2
test cx, cx
jne 0x403b30
mov eax, 0x542fc8
mov edx, eax
jmp 0x403b50
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403b50
lea edi, [esp + 0x10]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x403b64
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0xc]
push edx
push 0x20006
mov ecx, eax
push 0
lea eax, [esp + 0x1c]
push eax
and ecx, 3
push reloc.WS2_32.dll_bind
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403c04
mov eax, 0x536260
lea edx, [eax + 2]
jmp 0x403bb0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403bb0
sub eax, edx
mov edx, dword [esp + 0xc]
sar eax, 1
lea ecx, [eax + eax]
push ecx
push 0x536260
push 1
push 0
push str.Description
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004047dd
add esp, 0x218
ret
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004047dd
add esp, 0x218
ret

Function at 0x403c20
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, str.SetServiceSupportEvent_RegOpen_begin
mov esi, eax
call fcn.00403150
lea eax, [esp + 0x10]
push eax
push 0x2001f
push 0
push str.SYSTEMCurrentControlSetServicesEventLogApplication_
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403ce3
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x10]
push edx
push eax
push 0x2001f
push eax
push eax
push eax
mov eax, dword [esp + 0x2c]
push 0x542fc8
push eax
mov dword [esp + 0x38], 7
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x403cd0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0xc]
lea ecx, [eax + eax + 2]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
push 0
push str.EventMessageFile
push edx
call esi
test eax, eax
jne 0x403cc9
mov ecx, dword [esp + 0xc]
push 4
lea eax, [esp + 0x18]
push eax
push 4
push 0
push str.TypesSupported
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call edi
mov eax, dword [esp + 0x10]
push eax
call edi
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x10
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x404660
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
push esi
add eax, eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
push 0
mov dword [edi], 0
mov ecx, dword [eax]
push 0x5361ec
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4046ce
mov eax, dword [esp + 8]
cmp eax, 1
je 0x40469f
cmp eax, 2
jne 0x4046ba
mov eax, dword [esp]
test esi, esi
je 0x4046c8
test eax, eax
je 0x4046c3
test al, 1
jne 0x4046ba
mov edx, eax
shr edx, 1
cmp word [esi + edx*2 - 2], 0
je 0x4046c8
mov eax, 0xd
pop ecx
ret 4
xor ecx, ecx
mov word [esi], cx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 4

Function at 0x4047dd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x539050]
jne 0x4047e7
repz ret
jmp fcn.00405ce6

Function at 0x40fd99
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.00406989
and dword [ebp - 4], 0
cmp dword [0x543d48], 0
mov ebx, eax
jne 0x40fe4a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40fefb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4f0d60
push edi
call esi
test eax, eax
je 0x40fefb
push eax
call fcn.00406917
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x543d48], eax
call esi
push eax
call fcn.00406917
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x543d4c], eax
call esi
push eax
call fcn.00406917
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x543d50], eax
call esi
push eax
call fcn.00406917
pop ecx
mov dword [0x543d58], eax
test eax, eax
je 0x40fe4a
push 0x4f0d08
push edi
call esi
push eax
call fcn.00406917
pop ecx
mov dword [0x543d54], eax
mov eax, dword [0x543d54]
cmp eax, ebx
je 0x40fea2
cmp dword [0x543d58], ebx
je 0x40fea2
push eax
call fcn.00406992
push dword [0x543d58]
mov esi, eax
call fcn.00406992
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40fea2
test edi, edi
je 0x40fea2
call esi
test eax, eax
je 0x40fe99
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40fe99
test byte [ebp - 0xc], 1
jne 0x40fea2
or dword [ebp + 0x10], 0x200000
jmp 0x40fedb
mov eax, dword [0x543d4c]
cmp eax, ebx
je 0x40fedb
push eax
call fcn.00406992
pop ecx
test eax, eax
je 0x40fedb
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40fedb
mov eax, dword [0x543d50]
cmp eax, ebx
je 0x40fedb
push eax
call fcn.00406992
pop ecx
test eax, eax
je 0x40fedb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x543d48]
call fcn.00406992
pop ecx
test eax, eax
je 0x40fefb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40fefd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416030
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x416062
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x4161a0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x4161bb
mov edx, dword [esi + 0x134]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x4161ef
cmp eax, 2
jg 0x4161ef
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [eax + eax*2 + 0x4f2118]
push 2
push edx
call fcn.004e51d7
mov eax, dword [esi + 0x130]
push eax
push 1
push edi
push ebx
call fcn.004e51d7
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x154]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x41657d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x416554
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.00413b80
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.00416380
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x8614], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x416e40
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x470], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x416e7e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004162f0
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0x474]
push edx
mov dword [esp + 0xc], 1
call fcn.0041e1a0
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x478]
push eax
call fcn.0041e1a0
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x416ef7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.004162f0
add esp, 0x10
add esp, 0x14
ret
Function at 0x4174f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x539050]
xor eax, esp
mov dword [esp + 0x108], eax
push ebp
mov ebp, dword [esp + 0x114]
cmp dword [ebp + 0x8c], 2
push edi
mov edi, dword [ebp]
mov dword [esp + 0xc], edi
je 0x417665
cmp dword [ebp + 0x1f8], 0
push ebx
push esi
jne 0x41765a
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x41757c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00413b80
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.00416380
add esp, 0x18
jmp 0x417663
push ebx
lea edx, [esp + 0x1c]
push 0
push edx
mov dword [esp + 0x1c], ebx
call fcn.00406000
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4175c9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00413b80
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.00416380
add esp, 0x18
jmp 0x417663
lea edi, [ebp + 0xb8]
lea ebx, [ebp + 0xe8]
lea esi, [esp + 0x98]
call fcn.004174b0
test eax, eax
jne 0x41760a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00413b80
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.00416380
add esp, 0x18
jmp 0x417663
lea edi, [ebp + 0x58]
mov ecx, 0xb
lea esi, [ebp + 0xb8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [ebp + 0x11c]
lea edi, [ebp + 0xec]
lea esi, [esp + 0x18]
call fcn.004174b0
test eax, eax
jne 0x41765a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00413b80
push eax
mov eax, dword [esp + 0x20]
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.00416380
add esp, 0x18
jmp 0x417663
push ebp
call fcn.00417450
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
pop edi
pop ebp
xor ecx, esp
call fcn.004047dd
add esp, 0x10c
ret

Function at 0x417680
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x364]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x4176c3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00413b80
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004162f0
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004162f0
add esp, 8
pop esi
pop ecx
ret
Function at 0x4176e0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xac
mov eax, dword [0x539050]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [0x543e58]
push esi
mov dword [esp + 4], 0x4020
mov dword [esp + 8], 0
mov dword [esp + 0xc], 4
test eax, eax
jne 0x4177a4
push 0x9c
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00406000
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
push 3
push 2
push 0
push 0
mov dword [esp + 0x20], 0x9c
mov dword [esp + 0x24], 6
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push edx
push eax
push 0x33
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x417798
mov dword [0x543e58], 2
pop esi
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.004047dd
add esp, 0xac
ret
mov dword [0x543e58], 1
jmp 0x4177a9
cmp eax, 2
je 0x4177f1
mov esi, dword [esp + 0xb4]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4177d9
mov ecx, dword [esp + 8]
cmp ecx, dword [esp + 4]
jg 0x4177f1
push 4
lea edx, [esp + 8]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esp + 0xac]
pop esi
xor ecx, esp
call fcn.004047dd
add esp, 0xac
ret
Function at 0x419460
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
push ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x18], ebx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x419611
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x4195ef
push esi
jmp 0x4194b0
cmp dword [edi + 4], 2
jne 0x419568
cmp dword [edi + 0x18], ebx
je 0x419568
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x419568
cmp eax, 0x10
jb 0x419568
push 0x20
call dword [0x539f70]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x419575
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [0x539f70]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x41957f
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x419555
push eax
call dword [0x539f7c]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x419593
cmp dword [esp + 0x10], ebx
jne 0x41955f
mov dword [esp + 0x10], esi
cmp ebp, ebx
je 0x419566
mov dword [ebp + 0x1c], esi
mov ebp, esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x4194b0
jmp 0x4195af
mov dword [esp + 0x14], 8
jmp 0x4195af
push esi
mov dword [esp + 0x18], 8
call dword [0x539f74]
add esp, 4
jmp 0x4195af
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x539f74]
push esi
call dword [0x539f74]
add esp, 8
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x4195bf
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0x10], ebx
je 0x4195e9
mov eax, dword [esp + 0xc]
push eax
call fcn.00419420
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
mov ecx, ebx
pop ebp
mov dword [esp + 4], ebx
mov dword [edx], ecx
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0xc], ebx
jne 0x419602
push 0x2af9
mov dword [esp + 0x14], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov dword [edx], ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x4198c0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.004e5a51
add esp, 0x18
test eax, eax
je 0x4198e3
cmp eax, 0xffffffff
jne 0x4198e5
xor eax, eax
ret
Function at 0x419a20
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x419a2f
jmp dword [ecx*4 + 0x419a84]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x41e1c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push eax
call fcn.0041e1b0
add esp, 4
mov dword [esp + 0xc], eax
jmp fcn.004e855b
Function at 0x425240
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x4f222c
push ecx
call fcn.004162f0
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.00424400
test eax, eax
jne 0x425270
mov eax, esi
jmp fcn.00424890
ret