joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404190
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x404263
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push ebp
push esi
push 0x20
push str.Everything_Client
push edi
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4041dd
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call ebp
push 0x10000
push str.Everything_Client
push edi
call ebx
mov esi, eax
test esi, esi
je 0x40422b
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40421d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58deec]
mov ecx, dword [eax + 0x1050]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a9e40
add esp, 0x14
push esi
call ebp
push edi
call ebp
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x1c
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x424
je 0x404258
call esi
push eax
mov eax, dword [0x58deec]
mov ecx, dword [eax + 0x103c]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a9e40
add esp, 0x14
push edi
call ebp
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58deec]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a9e40
add esp, 0x14
pop edi
add esp, 0x1c
ret

Function at 0x404290
Capabilities:
Start service

Disassembly:
push ebx
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x404334
push ebp
push esi
push 0x10
push str.Everything_Client
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x40430b
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x404301
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x420
je 0x404300
call edi
push eax
mov eax, dword [0x58deec]
mov ecx, dword [eax + 0x1048]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a9e40
add esp, 0x14
pop edi
push esi
call ebp
push ebx
call ebp
pop esi
pop ebp
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58deec]
mov ecx, dword [eax + 0x103c]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a9e40
add esp, 0x14
push ebx
call ebp
pop esi
pop ebp
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58deec]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a9e40
add esp, 0x14
pop ebx
ret
Function at 0x404360
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x404413
push ebp
push esi
push 0x20
push str.Everything_Client
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4043e7
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4043da
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x426
je 0x4043d9
call ebx
push eax
mov eax, dword [0x58deec]
mov ecx, dword [eax + 0x104c]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a9e40
add esp, 0x14
pop ebx
push esi
call ebp
push edi
call ebp
pop esi
pop ebp
pop edi
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58deec]
mov ecx, dword [eax + 0x103c]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a9e40
add esp, 0x14
push edi
call ebp
pop esi
pop ebp
pop edi
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58deec]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a9e40
add esp, 0x14
pop edi
add esp, 0x1c
ret
Function at 0x404440
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x438
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x434], eax
push edi
call fcn.00404190
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x404585
push ebx
push esi
lea eax, [esp + 0xc]
push eax
call fcn.00401210
lea ecx, [esp + 0x11c]
push ecx
call fcn.00401210
lea edx, [esp + 0x22c]
push edx
call fcn.00401210
push 0
lea eax, [esp + 0x10]
push eax
call fcn.004ad320
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x120]
push str.__s___client_svc
push edx
call fcn.00524040
mov eax, dword [esp + 0x130]
add esp, 0xc
push eax
lea ecx, [esp + 0x230]
push ecx
call fcn.00527430
mov edx, dword [esp + 0x234]
push 0
push 0
push 0
push 0
push 0
push edx
push 0
push 2
push 0x10
push 2
push str.Everything_Client
push str.Everything_Client
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x404512
call fcn.00404290
push esi
call ebx
jmp 0x404546
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x431
jne 0x404528
call fcn.00404290
jmp 0x404546
call esi
push eax
mov eax, dword [0x58deec]
mov ecx, dword [eax + 0x1040]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a9e40
add esp, 0x14
push edi
call ebx
lea eax, [esp + 0x22c]
push eax
call fcn.00523250
lea ecx, [esp + 0x11c]
push ecx
call fcn.00523250
lea edx, [esp + 0xc]
push edx
call fcn.00523250
pop esi
pop ebx
pop edi
mov ecx, dword [esp + 0x434]
xor ecx, esp
call fcn.0054962d
add esp, 0x438
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58deec]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a9e40
mov ecx, dword [esp + 0x44c]
add esp, 0x14
pop edi
xor ecx, esp
call fcn.0054962d
add esp, 0x438
ret

Function at 0x404950
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x230
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
mov esi, dword [esp + 0x238]
lea eax, [esp + 0x10]
push eax
call fcn.00401210
lea ecx, [esp + 0x120]
push ecx
call fcn.00401210
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea edx, [esp + 0x14]
push edx
call fcn.00523bd0
push esi
call fcn.00523cc0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 4]
lea eax, [esp + 0x120]
push edx
mov dword [esp + 0x10], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0
call fcn.00404620
test eax, eax
je 0x4049d4
mov eax, dword [esp + 4]
push eax
call fcn.00521ca0
push eax
push esi
call fcn.00523b80
lea ecx, [esp + 0x120]
push ecx
call fcn.00523250
lea edx, [esp + 0x10]
push edx
call fcn.00523250
mov ecx, dword [esp + 0x230]
pop esi
xor ecx, esp
call fcn.0054962d
add esp, 0x230
ret 4
Function at 0x48e470
Capabilities:
Enumerate pe sections
Read file on windows
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x48e485
mov dword [esp + 4], eax
jmp fcn.004a60d0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [ecx]
push eax
mov eax, dword [esp + 0x10]
push edx
mov edx, dword [ecx + 0x2d8]
push eax
push edx
call fcn.004b95d0
ret 0x14

Function at 0x48e500
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x48e515
mov dword [esp + 4], eax
jmp fcn.004b5a40
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [ecx]
push eax
mov eax, dword [esp + 0x10]
push edx
mov edx, dword [ecx + 0x2d8]
push eax
push edx
call fcn.004b9620
ret 0x14
Function at 0x48f0c0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x114
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp]
push eax
call fcn.00401210
lea ecx, [esp]
push ecx
call fcn.00525020
push str.Everything_n
call fcn.0048f080
mov edx, dword [esp + 0xc]
push edx
push str.Version__s_n
call fcn.0048f080
add esp, 0xc
cmp byte [0x5981a0], 0
mov eax, 0x557ba0
jne 0x48f115
mov eax, 0x55065e
mov ecx, dword [0x5981a8]
mov edx, dword [0x5981a4]
push ecx
push edx
push eax
push str.Windows_s__d._d_n
call fcn.0048f080
mov eax, dword [0x5981ac]
push eax
push str.Processors__d_n
call fcn.0048f080
add esp, 0x18
call fcn.004aeca0
push eax
push str.IsAdmin__d_n
call fcn.0048f080
movsx ecx, byte [0x598014]
push ecx
push str.AppData__d_n
call fcn.0048f080
add esp, 0x10
call fcn.004fca00
push eax
push str.Service__d_n
call fcn.0048f080
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.cmdline__S_n
call fcn.0048f080
add esp, 8
lea edx, [esp]
push edx
call fcn.00523250
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0054962d
add esp, 0x114
ret

Function at 0x48f230
Capabilities:
Access the windows event log
Terminate process

Disassembly:
sub esp, 0x328
push esi
mov esi, dword [esp + 0x330]
push edi
mov edi, dword [esp + 0x33c]
lea eax, [esp + 0xc]
push eax
call fcn.00401210
lea ecx, [esp + 0x11c]
push ecx
call fcn.00401210
mov eax, dword [esp + 0x340]
lea edx, [esp + 0x344]
push edx
push eax
lea ecx, [esp + 0x124]
push ecx
call fcn.00524000
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x338]
push edx
push edi
push eax
push esi
lea ecx, [esp + 0x1c]
push str._s__d_:__s__:_Fatal_error:__s
push ecx
call fcn.00524040
add esp, 0x18
lea edx, [esp + 0x11c]
push edx
call fcn.00523250
mov eax, dword [esp + 0x14]
push eax
push 0x556764
call fcn.0048f080
add esp, 8
cmp dword [0x5982d0], 0
je 0x48f32b
lea ecx, [esp + 0x11c]
push ecx
call fcn.00401210
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x120]
push eax
call fcn.00527430
push 0x557bbc
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x48f31c
push 0
lea ecx, [esp + 0x128]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea edx, [esp + 0x11c]
push edx
call fcn.00523250
jmp 0x48f375
mov ecx, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
push ecx
push 0x48ecb0
call fcn.004afd40
mov esi, eax
test esi, esi
je 0x48f357
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48f375
mov edx, dword [esp + 0x14]
mov eax, dword [0x58deec]
mov ecx, dword [eax]
push edx
push 0x553940
push ecx
push 0x10
push 0
call fcn.004a9e40
add esp, 0x14
lea edx, [esp + 0xc]
push edx
call fcn.00523250
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x492430
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x4c8
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x4c4], eax
push ebx
push esi
mov esi, dword [esp + 0x4d4]
push edi
mov edi, dword [esp + 0x4e4]
lea eax, [esp + 0x120]
push eax
call fcn.00401210
lea ecx, [esp + 0x10]
push ecx
call fcn.00401210
lea edx, [esp + 0x230]
push edx
call fcn.00401210
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x15
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x130]
push eax
push edi
call fcn.00525240
push 0x190
call fcn.004a48f0
push 0x190
mov ebx, eax
push 0
push ebx
call fcn.00549d20
add esp, 0xc
lea ecx, [ebx + 0x15c]
push ecx
call fcn.00401350
lea edx, [ebx + 0x174]
push edx
call fcn.004b5260
or edi, 0xffffffff
mov dword [ebx], edi
mov eax, dword [esp + 0x128]
push eax
call fcn.0051c1e0
mov dword [ebx + 0xe4], eax
mov ecx, dword [esp + 0xc]
mov dword [ebx + 0xf0], ecx
mov edx, dword [esp + 0x238]
push edx
call fcn.0051c1e0
mov dword [ebx + 0xec], eax
mov eax, dword [esp + 0x18]
push eax
call fcn.0051c1e0
mov ecx, dword [esp + 0x4e8]
mov edx, dword [esp + 0x4dc]
mov dword [ebx + 0xe8], eax
mov eax, dword [esp + 0x4e0]
push 0x55065e
mov dword [ebx + 0xf4], ecx
mov dword [ebx + 0xd8], 0
mov dword [ebx + 0xac], edx
mov dword [ebx + 0xb0], eax
mov dword [ebx], edi
mov dword [ebx + 0x40], edi
mov dword [ebx + 0x44], edi
mov dword [ebx + 0x48], edi
mov dword [ebx + 0x4c], edi
mov dword [ebx + 0x50], edi
mov dword [ebx + 0x54], edi
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x3c], edi
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x1c], edi
call fcn.0051c1e0
push 0x55065e
mov dword [ebx + 0x114], eax
call fcn.0051c1e0
mov dword [ebx + 0x118], eax
mov dword [ebx + 0x120], 0
mov dword [ebx + 0x128], edi
push 0
push 0
push 0
push 0x4921e0
push str.EVERYTHING_ETP_CLIENT
push 0
call fcn.004aa140
push 0
push 0
call dword [0x597d38]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.EVERYTHING_ETP_CLIENT
push str.EVERYTHING_ETP_CLIENT
push 0
call fcn.004aa290
push ebx
push eax
mov dword [ebx + 0xdc], eax
call fcn.004ac650
lea ecx, [esp + 0x340]
push ecx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x49266e
mov dword [ebx + 0xb4], 1
mov cx, word [esp + 0x340]
cmp cl, 1
je 0x49263f
mov ax, cx
shr ax, 8
cmp al, 1
je 0x49263f
movzx edx, al
movzx eax, cl
mov ecx, dword [0x58deec]
push edx
mov edx, dword [ecx + 0x1184]
push eax
push edx
call fcn.00490750
add esp, 0xc
jmp 0x492684
mov dword [ebx + 0xd8], 3
mov eax, dword [0x58deec]
mov edi, dword [eax + 0xf8]
mov esi, ebx
call fcn.004905a0
push ebx
push 0x4907d0
call fcn.004b1ef0
mov dword [ebx + 0x14c], eax
jmp 0x49268c
mov ecx, dword [0x58deec]
mov edx, dword [ecx + 0x1180]
push eax
push edx
call fcn.00490750
add esp, 8
push ebx
call fcn.00491250
xor ebx, ebx
lea eax, [esp + 0x230]
push eax
call fcn.00523250
lea ecx, [esp + 0x10]
push ecx
call fcn.00523250
lea edx, [esp + 0x120]
push edx
call fcn.00523250
mov ecx, dword [esp + 0x4d0]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0054962d
add esp, 0x4c8
ret 0x14
Function at 0x493d10
Capabilities:
Create tcp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
sub esp, 0xa4
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0xa0], eax
push esi
push edi
mov esi, ecx
call fcn.00493420
mov edi, dword [esi + 0xb4]
neg edi
sbb edi, edi
push 6
and edi, 0x15
push 1
add edi, 2
push edi
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x180], eax
je 0x493ebf
push 4
lea ecx, [esp + 0xc]
push ecx
push 1
push 0xffff
push eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [0x59812c]
mov eax, dword [edx + 0x10]
mov ecx, dword [esi + 0x180]
push 0x28
push 0x402
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
xor eax, eax
cmp edi, 0x17
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
jne 0x493dca
push 0x1c
lea edx, [esp + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x180]
push edx
mov word [esp + 0x14], di
push eax
jmp 0x493ddf
mov edx, dword [esi + 0x180]
push 0x10
lea ecx, [esp + 0x10]
push ecx
mov word [esp + 0x14], 2
push edx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x493eac
mov eax, dword [esi + 0x180]
push closesocket
push eax
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x493e99
mov eax, dword [esi + 0x180]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x14], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x493e86
mov ax, word [esp + 0x28]
cmp ax, 0x17
je 0x493e3e
cmp ax, 2
jne 0x493e74
movzx eax, word [esp + 0x2a]
test eax, eax
je 0x493e74
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
push ecx
push str.229_Entering_Extended_Passive_Mode___d__r_n
mov ecx, esi
call fcn.00492d00
mov dword [esi + 0x178], 2
mov dword [esi + 0x17c], 1
jmp 0x493ed7
call fcn.00493420
movsx edx, word [esp + 0x28]
push edx
push str.500_Failed_to_enter_passive_mode__invalid_family__d_r_n
jmp 0x493ed0
call fcn.00493420
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_Failed_to_enter_passive_mode__getsockname_failed__d_r_n
jmp 0x493ed0
call fcn.00493420
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_Failed_to_enter_passive_mode__socket_listen__d_r_n
jmp 0x493ed0
call fcn.00493420
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_Failed_to_enter_passive_mode__bind_failed__d_r_n
jmp 0x493ed0
call fcn.00493420
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_Failed_to_enter_passive_mode__socket_failed__d_r_n
mov ecx, esi
call fcn.00492d00
mov ecx, dword [esp + 0xb0]
add esp, 8
pop edi
pop esi
xor ecx, esp
call fcn.0054962d
add esp, 0xa4
ret
Function at 0x495310
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
push edi
push 0x248
call fcn.004a48f0
push 0x248
xor edi, edi
mov esi, eax
push edi
push esi
call fcn.00549d20
mov eax, dword [esp + 0xa0]
add esp, 0xc
push esi
push 0x493cd0
push edi
mov dword [esi + 8], eax
mov dword [esi + 0xa8], edi
call fcn.004c0270
push eax
call fcn.00411980
push 0x55065e
mov dword [esi + 0x8c], eax
call fcn.0051c1e0
push 0x55065e
mov dword [esi + 0xb8], eax
mov dword [esi + 0x204], 0xffffffff
mov dword [esi + 0xb4], edi
mov dword [esi + 0x200], edi
call fcn.0051c1e0
push 0x55065e
mov dword [esi + 0xdc], eax
call fcn.0051c1e0
push 0x55065e
mov dword [esi + 0xe0], eax
mov dword [esi + 0xe8], edi
call fcn.0051c1e0
push 0x55065e
mov dword [esi + 0x128], eax
call fcn.0051c1e0
lea ecx, [esp + 8]
push ecx
lea edx, [esi + 0xc]
mov dword [esi + 0x12c], eax
mov eax, dword [esi + 8]
push edx
push eax
mov dword [esi + 0x134], edi
mov dword [esi + 0xbc], 1
mov dword [esi + 0xf0], 0xffffffff
mov dword [esp + 0x14], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
mov eax, dword [esi + 8]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x14], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
cmp word [esp + 0xc], 0x17
jne 0x49543a
mov dword [esi + 0xb4], 1
mov eax, dword [0x59812c]
cmp dword [eax + 8], edi
je 0x49545e
mov ecx, dword [eax + 0xc]
mov dword [ecx + 0xac], esi
mov edx, dword [0x59812c]
mov eax, dword [edx + 0xc]
mov dword [esi + 0xb0], eax
jmp 0x495467
mov dword [eax + 8], esi
mov dword [esi + 0xb0], edi
mov dword [esi + 0xac], edi
mov ecx, dword [0x59812c]
push str.Connected._r_n
push esi
mov dword [ecx + 0xc], esi
call fcn.00492b10
mov ecx, dword [esp + 0x94]
add esp, 8
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0054962d
add esp, 0x88
ret 4
Function at 0x496920
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x3b4
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x3b0], eax
cmp byte [0x58a758], 0
push edi
mov edi, dword [esp + 0x3bc]
je 0x496b81
lea eax, [esp + 4]
push eax
call fcn.00401210
lea ecx, [esp + 4]
push ecx
call fcn.00523cc0
cmp dword [0x59812c], 0
jne 0x496b53
lea edx, [esp + 0x224]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x496b39
push 0x1c
call fcn.004a48f0
mov dword [0x59812c], eax
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [0x59812c]
mov dword [eax + 4], ecx
mov edx, dword [0x59812c]
mov dword [edx + 8], ecx
mov eax, dword [0x59812c]
mov dword [eax + 0xc], ecx
mov edx, dword [0x59812c]
mov dword [edx + 0x10], ecx
mov eax, dword [0x59812c]
mov dword [eax + 0x14], ecx
mov edx, dword [0x59812c]
mov dword [edx + 0x18], ecx
mov eax, dword [0x59802c]
push eax
call fcn.0051c1e0
mov ecx, dword [0x59812c]
push 0
push 0
push 0
push 0x496540
mov dword [ecx + 0x18], eax
mov edx, dword [0x59812c]
mov eax, dword [0x58a74c]
push str.EVERYTHING_ETP_SERVER
push 0
mov dword [edx + 0x14], eax
call fcn.004aa140
push 0
push 0
call dword [0x597d38]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.EVERYTHING_ETP_SERVER
push str.EVERYTHING_ETP_SERVER
push 0
call fcn.004aa290
mov ecx, dword [0x59812c]
mov dword [ecx + 0x10], eax
mov cx, word [esp + 0x224]
cmp cl, 1
je 0x496a73
mov ax, cx
shr ax, 8
cmp al, 1
je 0x496a73
movzx edx, al
movzx eax, cl
mov ecx, dword [0x58deec]
push edx
mov edx, dword [ecx + 0x1184]
push eax
push edx
lea eax, [esp + 0x10]
push eax
call fcn.00524040
add esp, 0x10
jmp 0x496afa
mov ecx, dword [0x59802c]
cmp byte [ecx], 0
je 0x496aee
push esi
lea edx, [esp + 0x118]
push edx
call fcn.00401210
mov eax, dword [0x59802c]
push eax
lea eax, [esp + 0x11c]
push eax
call fcn.00524dd0
mov esi, eax
test esi, esi
je 0x496ade
jmp 0x496ab0
mov eax, dword [esp + 0x120]
cmp byte [eax], 0
je 0x496aca
lea ecx, [esp + 8]
push ecx
call fcn.00492960
test eax, eax
je 0x496ade
push esi
lea edx, [esp + 0x11c]
push edx
call fcn.00524dd0
mov esi, eax
test esi, esi
jne 0x496ab0
lea eax, [esp + 0x118]
push eax
call fcn.00523250
pop esi
jmp 0x496afa
lea ecx, [esp + 4]
push ecx
xor eax, eax
call fcn.00492960
mov edx, dword [0x59812c]
cmp dword [edx], 0
je 0x496b32
mov eax, dword [esp + 0xc]
cmp byte [eax], 0
je 0x496b21
push eax
push str.ETP_server_started__but_with_errors:__s_n
push 0xffff0000
call fcn.0048f0a0
add esp, 0xc
push str.ETP_server_online._r_n
push 0
call fcn.00492b10
add esp, 8
jmp 0x496b77
call fcn.00495270
jmp 0x496b53
push eax
mov eax, dword [0x58deec]
mov ecx, dword [eax + 0x1180]
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.00524040
add esp, 0xc
mov eax, dword [esp + 0xc]
cmp byte [eax], 0
je 0x496b77
push eax
mov eax, dword [0x58deec]
mov ecx, dword [eax + 0x1130]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push edi
call fcn.004a9e40
add esp, 0x14
lea eax, [esp + 4]
push eax
call fcn.00523250
mov ecx, dword [esp + 0x3b4]
pop edi
xor ecx, esp
call fcn.0054962d
add esp, 0x3b4
ret 4