joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4040c0
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 0x404193
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 0x40410d
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 0x40415b
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40414d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x581de4]
mov ecx, dword [eax + 0x1050]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a78c0
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 0x404188
call esi
push eax
mov eax, dword [0x581de4]
mov ecx, dword [eax + 0x103c]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a78c0
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 [0x581de4]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a78c0
add esp, 0x14
pop edi
add esp, 0x1c
ret

Function at 0x4041c0
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 0x404264
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 0x40423b
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x404231
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x420
je 0x404230
call edi
push eax
mov eax, dword [0x581de4]
mov ecx, dword [eax + 0x1048]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a78c0
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 [0x581de4]
mov ecx, dword [eax + 0x103c]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a78c0
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 [0x581de4]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a78c0
add esp, 0x14
pop ebx
ret
Function at 0x404290
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 0x404343
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 0x404317
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40430a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x426
je 0x404309
call ebx
push eax
mov eax, dword [0x581de4]
mov ecx, dword [eax + 0x104c]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a78c0
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 [0x581de4]
mov ecx, dword [eax + 0x103c]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a78c0
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 [0x581de4]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a78c0
add esp, 0x14
pop edi
add esp, 0x1c
ret

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

Disassembly:
sub esp, 0x434
push edi
call fcn.004040c0
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x404499
push ebx
push esi
lea eax, [esp + 0xc]
push eax
call fcn.0051ec40
lea ecx, [esp + 0x11c]
push ecx
call fcn.0051ec40
lea edx, [esp + 0x22c]
push edx
call fcn.0051ec40
push 0
lea eax, [esp + 0x10]
push eax
call fcn.004aaa50
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x120]
push str.__s___client_svc
push edx
call fcn.0051fa10
mov eax, dword [esp + 0x130]
add esp, 0xc
push eax
lea ecx, [esp + 0x230]
push ecx
call fcn.00522b90
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 0x404434
call fcn.004041c0
push esi
call ebx
jmp 0x404468
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x431
jne 0x40444a
call fcn.004041c0
jmp 0x404468
call esi
push eax
mov eax, dword [0x581de4]
mov ecx, dword [eax + 0x1040]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a78c0
add esp, 0x14
push edi
call ebx
lea eax, [esp + 0x22c]
push eax
call fcn.00522920
lea ecx, [esp + 0x11c]
push ecx
call fcn.00522920
lea edx, [esp + 0xc]
push edx
call fcn.00522920
pop esi
pop ebx
pop edi
add esp, 0x434
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x581de4]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a78c0
add esp, 0x14
pop edi
add esp, 0x434
ret
Function at 0x404860
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x22c
push esi
lea eax, [esp + 0x10]
push eax
call fcn.0051ec40
lea ecx, [esp + 0x120]
push ecx
call fcn.0051ec40
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea edx, [esp + 0x14]
push edx
call fcn.0051f5c0
mov esi, dword [esp + 0x234]
push esi
call fcn.0051f690
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.00404530
test eax, eax
je 0x4048d6
mov eax, dword [esp + 4]
push eax
call fcn.0051d920
push eax
push esi
call fcn.0051f570
lea ecx, [esp + 0x120]
push ecx
call fcn.00522920
lea edx, [esp + 0x10]
push edx
call fcn.00522920
pop esi
add esp, 0x22c
ret 4
Function at 0x48d020
Capabilities:
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 0x48d035
mov dword [esp + 4], eax
jmp fcn.004a3f90
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.004b6110
ret 0x14

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

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x48d0c5
mov dword [esp + 4], eax
jmp fcn.004b2720
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.004b6160
ret 0x14
Function at 0x48dc50
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x110
lea eax, [esp]
push eax
call fcn.0051ec40
lea ecx, [esp]
push ecx
call fcn.00520930
push str.Everything_n
call fcn.0048dc10
mov edx, dword [esp + 0xc]
push edx
push str.Version__s_n
call fcn.0048dc10
add esp, 0xc
cmp byte [0x58b3b8], 0
mov eax, 0x54d4c0
jne 0x48dc97
mov eax, 0x5465b6
mov ecx, dword [0x58b3c0]
mov edx, dword [0x58b3bc]
push ecx
push edx
push eax
push str.Windows_s__d._d_n
call fcn.0048dc10
mov eax, dword [0x58b3c4]
push eax
push str.Processors__d_n
call fcn.0048dc10
add esp, 0x18
call fcn.004ac140
push eax
push str.IsAdmin__d_n
call fcn.0048dc10
movsx ecx, byte [0x58b212]
push ecx
push str.AppData__d_n
call fcn.0048dc10
add esp, 0x10
call fcn.004f8c70
push eax
push str.Service__d_n
call fcn.0048dc10
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.cmdline__S_n
call fcn.0048dc10
add esp, 8
lea edx, [esp]
push edx
call fcn.00522920
add esp, 0x110
ret

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

Disassembly:
sub esp, 0x328
push esi
lea eax, [esp + 8]
push eax
call fcn.0051ec40
lea ecx, [esp + 0x118]
push ecx
call fcn.0051ec40
mov eax, dword [esp + 0x33c]
lea edx, [esp + 0x340]
push edx
push eax
lea ecx, [esp + 0x120]
push ecx
call fcn.0051f9d0
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x338]
mov ecx, dword [esp + 0x334]
push edx
mov edx, dword [esp + 0x334]
push eax
push ecx
push edx
lea eax, [esp + 0x18]
push str._s__d_:__s__:_Fatal_error:__s
push eax
call fcn.0051fa10
add esp, 0x18
lea ecx, [esp + 0x118]
push ecx
call fcn.00522920
mov edx, dword [esp + 0x10]
push edx
push 0x54c0b4
call fcn.0048dc10
add esp, 8
cmp dword [0x58b4cc], 0
je 0x48de9a
lea eax, [esp + 0x118]
push eax
call fcn.0051ec40
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x11c]
push edx
call fcn.00522b90
push 0x54d4dc
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x48de8b
push 0
lea eax, [esp + 0x124]
push eax
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 ecx, [esp + 0x118]
push ecx
call fcn.00522920
jmp 0x48dee5
mov eax, dword [esp + 0x10]
lea edx, [esp + 4]
push edx
push eax
push 0x48d860
call fcn.004ad1e0
mov esi, eax
test esi, esi
je 0x48dec6
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48dee5
mov ecx, dword [esp + 0x10]
mov edx, dword [0x581de4]
mov eax, dword [edx]
push ecx
push 0x549680
push eax
push 0x10
push 0
call fcn.004a78c0
add esp, 0x14
lea ecx, [esp + 8]
push ecx
call fcn.00522920
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x490d50
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x4c4
push esi
push edi
lea eax, [esp + 0x11c]
push eax
call fcn.0051ec40
lea ecx, [esp + 0xc]
push ecx
call fcn.0051ec40
lea edx, [esp + 0x22c]
push edx
call fcn.0051ec40
lea eax, [esp + 0x22c]
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x4e4]
push 0x15
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x12c]
push eax
push ecx
call fcn.00520b30
push 0x160
call fcn.004a2340
push 0x160
mov esi, eax
push 0
push esi
call fcn.00545659
or edi, 0xffffffff
mov dword [esi], edi
mov edx, dword [esp + 0x130]
add esp, 0xc
push edx
call fcn.00517e60
mov dword [esi + 0xe4], eax
mov eax, dword [esp + 8]
mov dword [esi + 0xf0], eax
mov ecx, dword [esp + 0x234]
push ecx
call fcn.00517e60
mov dword [esi + 0xec], eax
mov edx, dword [esp + 0x14]
push edx
call fcn.00517e60
mov ecx, dword [esp + 0x4d4]
mov edx, dword [esp + 0x4d8]
mov dword [esi + 0xe8], eax
mov eax, dword [esp + 0x4e0]
push 0x5465b6
mov dword [esi + 0xf4], eax
mov dword [esi + 0xd8], 0
mov dword [esi + 0xac], ecx
mov dword [esi + 0xb0], edx
mov dword [esi], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x58], 0
mov dword [esi + 0x1c], edi
call fcn.00517e60
push 0x5465b6
mov dword [esi + 0x114], eax
call fcn.00517e60
push 0
push 0
push 0
push 0x490b00
push str.EVERYTHING_ETP_CLIENT
push 0
mov dword [esi + 0x118], eax
mov dword [esi + 0x120], 0
call fcn.004a7b80
push 0
push 0
call dword [0x58af6c]
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.004a7ca0
push esi
push eax
mov dword [esi + 0xdc], eax
call fcn.004a9da0
lea eax, [esp + 0x33c]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x490f61
mov dword [esi + 0xb4], 1
mov cx, word [esp + 0x33c]
cmp cl, 1
je 0x490f33
mov ax, cx
shr ax, 8
cmp al, 1
je 0x490f33
movzx edx, al
movzx eax, cl
mov ecx, dword [0x581de4]
push edx
mov edx, dword [ecx + 0x1184]
push eax
mov eax, dword [esp + 0x4d8]
push edx
push eax
call fcn.0048f100
add esp, 0x10
jmp 0x490f7f
mov dword [esi + 0xd8], 3
mov ecx, dword [0x581de4]
mov edi, dword [ecx + 0xf8]
call fcn.0048ef60
push esi
push 0x48f160
call fcn.004af1a0
mov dword [esi + 0x14c], eax
jmp 0x490f87
mov edx, dword [0x581de4]
mov ecx, dword [esp + 0x4d0]
push eax
mov eax, dword [edx + 0x1180]
push eax
push ecx
call fcn.0048f100
add esp, 0xc
push esi
call fcn.0048fb80
xor esi, esi
lea edx, [esp + 0x22c]
push edx
call fcn.00522920
lea eax, [esp + 0xc]
push eax
call fcn.00522920
lea ecx, [esp + 0x11c]
push ecx
call fcn.00522920
pop edi
mov eax, esi
pop esi
add esp, 0x4c4
ret 0x14
Function at 0x4927e0
Capabilities:
Create tcp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
sub esp, 0x28
push esi
push edi
mov esi, eax
call fcn.00491b30
xor edi, edi
cmp dword [esi + 0x34], edi
jne 0x4929ac
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x100], eax
je 0x49299e
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 [0x58b338]
mov eax, dword [edx + 0x10]
mov ecx, dword [esi + 0x100]
push 0x28
push 0x402
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
xor eax, eax
mov dword [esp + 0x10], eax
push 0x10
mov dword [esp + 0x18], eax
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x100]
push edx
push eax
mov word [esp + 0x1c], 2
mov dword [esp + 0x20], edi
mov word [esp + 0x1e], di
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x492990
mov ecx, dword [esi + 0x100]
push accept
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x492982
mov ecx, dword [esi + 8]
mov edi, dword [sym.imp.WS2_32.dll_getsockname]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x14], 0x10
call edi
cmp eax, 0xffffffff
je 0x492974
mov ax, word [esp + 0x10]
cmp ax, 2
jne 0x492969
mov ecx, dword [esi + 0x100]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x18], 0x10
call edi
cmp eax, 0xffffffff
je 0x49295b
mov ax, word [esp + 0x20]
cmp ax, 2
jne 0x492950
movzx eax, word [esp + 0x22]
movzx ecx, byte [esp + 0x16]
mov edx, eax
shr edx, 8
push edx
movzx edx, byte [esp + 0x19]
and eax, 0xff
push eax
movzx eax, byte [esp + 0x1f]
push eax
movzx eax, byte [esp + 0x20]
push ecx
push edx
push eax
push str.227_Entering_Passive_Mode.___d__d__d__d__d__d__r_n
mov eax, esi
mov dword [esi + 0xf8], 2
call fcn.00491580
add esp, 0x1c
pop edi
pop esi
add esp, 0x28
ret
movsx ecx, ax
push ecx
push str.500_Failed_to_enter_passive_mode__invalid_pasv_family__d_r_n
jmp 0x4929b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_Failed_to_enter_passive_mode__pasv_getsockname_error__d_r_n
jmp 0x4929b8
movsx edx, ax
push edx
push str.500_Failed_to_enter_passive_mode__invalid_control_family__d_r_n
jmp 0x4929b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_Failed_to_enter_passive_mode__control_getsockname_error__d_r_n
jmp 0x4929b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_Failed_to_enter_passive_mode__listen_error__d_r_n
jmp 0x4929b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_Failed_to_enter_passive_mode__bind_error__d_r_n
jmp 0x4929b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_Failed_to_enter_passive_mode__socket_error__d._r_n
jmp 0x4929b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_PASV_is_not_available_when_using_IPv6__please_use_IPv4_or_EPSV._r_n
mov eax, esi
call fcn.00491580
add esp, 8
call fcn.00491b30
pop edi
pop esi
add esp, 0x28
ret
Function at 0x493810
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x84
push esi
push edi
push 0x150
call fcn.004a2340
push 0x150
xor edi, edi
mov esi, eax
push edi
push esi
call fcn.00545659
mov eax, dword [esp + 0x9c]
add esp, 0xc
push esi
push 0x492390
push edi
mov dword [esi + 8], eax
mov dword [esi + 0x28], edi
call fcn.004bc700
push eax
call fcn.00411430
push 0x5465b6
mov dword [esi + 0xc], eax
call fcn.00517e60
push 0x5465b6
mov dword [esi + 0x38], eax
mov dword [esi + 0x110], 0xffffffff
mov dword [esi + 0x34], edi
mov dword [esi + 0x10c], edi
call fcn.00517e60
push 0x5465b6
mov dword [esi + 0x5c], eax
call fcn.00517e60
push 0x5465b6
mov dword [esi + 0x60], eax
mov dword [esi + 0x68], edi
call fcn.00517e60
push 0x5465b6
mov dword [esi + 0xa8], eax
call fcn.00517e60
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
mov dword [esi + 0xac], eax
mov eax, dword [esi + 8]
push edx
push eax
mov dword [esi + 0xb4], edi
mov dword [esi + 0x3c], 1
mov dword [esi + 0x70], 0xffffffff
mov dword [esp + 0x14], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
cmp word [esp + 0xc], 0x17
jne 0x4938f3
mov dword [esi + 0x34], 1
mov eax, dword [0x58b338]
cmp dword [eax + 8], edi
je 0x493911
mov ecx, dword [eax + 0xc]
mov dword [ecx + 0x2c], esi
mov edx, dword [0x58b338]
mov eax, dword [edx + 0xc]
mov dword [esi + 0x30], eax
jmp 0x493917
mov dword [eax + 8], esi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov ecx, dword [0x58b338]
push str.Connected._r_n
push esi
mov dword [ecx + 0xc], esi
call fcn.004913b0
add esp, 8
pop edi
mov eax, esi
pop esi
add esp, 0x84
ret 4
Function at 0x494dd0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x3b0
cmp byte [0x57e712], 0
je 0x495026
lea eax, [esp]
push eax
call fcn.0051ec40
lea ecx, [esp]
push ecx
call fcn.0051f690
cmp dword [0x58b338], 0
jne 0x494ff2
lea edx, [esp + 0x220]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x494fd7
push 0x1c
call fcn.004a2340
mov dword [0x58b338], eax
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [0x58b338]
mov dword [eax + 4], ecx
mov edx, dword [0x58b338]
mov dword [edx + 8], ecx
mov eax, dword [0x58b338]
mov dword [eax + 0xc], ecx
mov edx, dword [0x58b338]
mov dword [edx + 0x10], ecx
mov eax, dword [0x58b338]
mov dword [eax + 0x14], ecx
mov edx, dword [0x58b338]
mov dword [edx + 0x18], ecx
mov eax, dword [0x58b23c]
push eax
call fcn.00517e60
mov ecx, dword [0x58b338]
push 0
push 0
push 0
push 0x494a60
mov dword [ecx + 0x18], eax
mov edx, dword [0x58b338]
mov eax, dword [0x57e70c]
push str.EVERYTHING_ETP_SERVER
push 0
mov dword [edx + 0x14], eax
call fcn.004a7b80
push 0
push 0
call dword [0x58af6c]
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.004a7ca0
mov ecx, dword [0x58b338]
mov dword [ecx + 0x10], eax
mov cx, word [esp + 0x220]
cmp cl, 1
je 0x494f0b
mov ax, cx
shr ax, 8
cmp al, 1
je 0x494f0b
movzx edx, al
movzx eax, cl
mov ecx, dword [0x581de4]
push edx
mov edx, dword [ecx + 0x1184]
push eax
push edx
lea eax, [esp + 0xc]
push eax
call fcn.0051fa10
add esp, 0x10
jmp 0x494f89
mov ecx, dword [0x58b23c]
cmp byte [ecx], 0
je 0x494f7e
push esi
lea edx, [esp + 0x114]
push edx
call fcn.0051ec40
mov eax, dword [0x58b23c]
push eax
lea eax, [esp + 0x118]
push eax
call fcn.005206e0
mov esi, eax
test esi, esi
je 0x494f6e
lea ecx, [ecx]
mov ecx, dword [esp + 0x11c]
cmp byte [ecx], 0
je 0x494f5a
lea edx, [esp + 4]
push edx
call fcn.00491210
test eax, eax
je 0x494f6e
push esi
lea eax, [esp + 0x118]
push eax
call fcn.005206e0
mov esi, eax
test esi, esi
jne 0x494f40
lea ecx, [esp + 0x114]
push ecx
call fcn.00522920
pop esi
jmp 0x494f89
lea edx, [esp]
push edx
xor ecx, ecx
call fcn.00491210
mov eax, dword [0x58b338]
cmp dword [eax], 0
je 0x494fd0
mov eax, dword [esp + 8]
cmp byte [eax], 0
je 0x494faf
push eax
push str.ETP_server_started__but_with_errors:__s_n
push 0xffff0000
call fcn.0048dc30
add esp, 0xc
push str.ETP_server_online._r_n
push 0
call fcn.004913b0
add esp, 8
lea ecx, [esp]
push ecx
call fcn.00522920
add esp, 0x3b0
ret 4
call fcn.00493770
jmp 0x494ff2
mov ecx, dword [0x581de4]
mov edx, dword [ecx + 0x1180]
push eax
push edx
lea eax, [esp + 8]
push eax
call fcn.0051fa10
add esp, 0xc
mov eax, dword [esp + 8]
cmp byte [eax], 0
je 0x49501d
push eax
mov eax, dword [0x581de4]
mov ecx, dword [eax + 0x1130]
mov edx, dword [eax]
mov eax, dword [esp + 0x3b8]
push ecx
push edx
push 0x10
push eax
call fcn.004a78c0
add esp, 0x14
lea ecx, [esp]
push ecx
call fcn.00522920
add esp, 0x3b0
ret 4
Function at 0x495820
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
push ebp
push 1
push eax
xor ebp, ebp
call fcn.004a74a0
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4958c4
push esi
lea ecx, [esp + 0xc]
push ecx
push ebx
call fcn.004a8fb0
test eax, eax
je 0x4958bc
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x4958a7
push edi
call fcn.004a2380
mov esi, eax
test esi, esi
je 0x4958bb
push ebp
lea edx, [esp + 0x20]
push edx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49588e
cmp dword [esp + 0x1c], edi
jne 0x49588e
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push ecx
push edi
push esi
call dword [esp + 0x30]
mov ebp, eax
push esi
call fcn.004a23a0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
push eax
push 0
push 0
call dword [esp + 0x30]
mov ebp, eax
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret 0x10

Function at 0x4958d0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
push esi
push edi
push 1
push eax
xor esi, esi
call fcn.004a74a0
mov edi, eax
cmp edi, 0xffffffff
je 0x49597a
push esi
lea ecx, [esp + 0x2c]
push ecx
push 0x1a
lea edx, [esp + 0x14]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x495973
cmp dword [esp + 0x28], 0x1a
jne 0x495973
mov eax, dword [esp + 8]
and eax, 0xffffff00
cmp eax, 0x474e5000
jne 0x495973
cmp dword [esp + 0x14], 0x52444849
jne 0x495973
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
bswap ecx
bswap edx
mov dword [eax], ecx
movzx ecx, byte [esp + 0x21]
sub ecx, 2
mov dword [eax + 4], edx
movzx edx, byte [esp + 0x20]
mov dword [eax + 8], edx
je 0x495968
sub ecx, 2
je 0x495961
sub ecx, 2
jne 0x49596e
lea ecx, [edx*4]
jmp 0x49596b
add edx, edx
mov dword [eax + 8], edx
jmp 0x49596e
lea ecx, [edx + edx*2]
mov dword [eax + 8], ecx
mov esi, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
add esp, 0x1c
ret 8

Function at 0x495990
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20
push esi
push edi
push 1
push eax
xor edi, edi
call fcn.004a74a0
mov esi, eax
cmp esi, 0xffffffff
je 0x4959f7
push edi
lea ecx, [esp + 0x30]
push ecx
push 0x1e
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4959f0
cmp dword [esp + 0x2c], 0x1e
jne 0x4959f0
cmp word [esp + 8], 0x4d42
jne 0x4959f0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1a]
mov edx, dword [esp + 0x1e]
mov dword [eax], ecx
movzx ecx, word [esp + 0x24]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x20
ret 8