joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4043b0
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 0x404463
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 0x404437
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40442a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x426
je 0x404429
call ebx
push eax
mov eax, dword [0x58de7c]
mov ecx, dword [eax + 0x104c]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a98f0
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 [0x58de7c]
mov ecx, dword [eax + 0x103c]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a98f0
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 [0x58de7c]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a98f0
add esp, 0x14
pop edi
add esp, 0x1c
ret
Function at 0x404490
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x438
mov eax, dword [0x596f48]
xor eax, esp
mov dword [esp + 0x434], eax
push edi
call fcn.004041e0
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4045d5
push ebx
push esi
lea eax, [esp + 0xc]
push eax
call fcn.00522730
lea ecx, [esp + 0x11c]
push ecx
call fcn.00522730
lea edx, [esp + 0x22c]
push edx
call fcn.00522730
push 0
lea eax, [esp + 0x10]
push eax
call fcn.004acea0
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x120]
push str.__s___client_svc
push edx
call fcn.00523500
mov eax, dword [esp + 0x130]
add esp, 0xc
push eax
lea ecx, [esp + 0x230]
push ecx
call fcn.00526830
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 0x404562
call fcn.004042e0
push esi
call ebx
jmp 0x404596
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x431
jne 0x404578
call fcn.004042e0
jmp 0x404596
call esi
push eax
mov eax, dword [0x58de7c]
mov ecx, dword [eax + 0x1040]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a98f0
add esp, 0x14
push edi
call ebx
lea eax, [esp + 0x22c]
push eax
call fcn.00401260
lea ecx, [esp + 0x11c]
push ecx
call fcn.00401260
lea edx, [esp + 0xc]
push edx
call fcn.00401260
pop esi
pop ebx
pop edi
mov ecx, dword [esp + 0x434]
xor ecx, esp
call fcn.0054899c
add esp, 0x438
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58de7c]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a98f0
mov ecx, dword [esp + 0x44c]
add esp, 0x14
pop edi
xor ecx, esp
call fcn.0054899c
add esp, 0x438
ret

Function at 0x4049a0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x230
mov eax, dword [0x596f48]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
mov esi, dword [esp + 0x238]
lea eax, [esp + 0x10]
push eax
call fcn.00522730
lea ecx, [esp + 0x120]
push ecx
call fcn.00522730
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea edx, [esp + 0x14]
push edx
call fcn.00523090
push esi
call fcn.00523180
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.00404670
test eax, eax
je 0x404a24
mov eax, dword [esp + 4]
push eax
call fcn.00521180
push eax
push esi
call fcn.00523040
lea ecx, [esp + 0x120]
push ecx
call fcn.00401260
lea edx, [esp + 0x10]
push edx
call fcn.00401260
mov ecx, dword [esp + 0x230]
pop esi
xor ecx, esp
call fcn.0054899c
add esp, 0x230
ret 4
Function at 0x48e490
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 0x48e4a5
mov dword [esp + 4], eax
jmp fcn.004a5c20
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.004b8cb0
ret 0x14

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

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

Disassembly:
sub esp, 0x114
mov eax, dword [0x596f48]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp]
push eax
call fcn.00522730
lea ecx, [esp]
push ecx
call fcn.005244e0
push str.Everything_n
call fcn.0048f0a0
mov edx, dword [esp + 0xc]
push edx
push str.Version__s_n
call fcn.0048f0a0
add esp, 0xc
cmp byte [0x59811c], 0
mov eax, 0x557a80
jne 0x48f135
mov eax, 0x55068a
mov ecx, dword [0x598124]
mov edx, dword [0x598120]
push ecx
push edx
push eax
push str.Windows_s__d._d_n
call fcn.0048f0a0
mov eax, dword [0x598128]
push eax
push str.Processors__d_n
call fcn.0048f0a0
add esp, 0x18
call fcn.004ae850
push eax
push str.IsAdmin__d_n
call fcn.0048f0a0
movsx ecx, byte [0x597f7f]
push ecx
push str.AppData__d_n
call fcn.0048f0a0
add esp, 0x10
call fcn.004fc080
push eax
push str.Service__d_n
call fcn.0048f0a0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.cmdline__S_n
call fcn.0048f0a0
add esp, 8
lea edx, [esp]
push edx
call fcn.00401260
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0054899c
add esp, 0x114
ret

Function at 0x48f250
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.00522730
lea ecx, [esp + 0x11c]
push ecx
call fcn.00522730
mov eax, dword [esp + 0x340]
lea edx, [esp + 0x344]
push edx
push eax
lea ecx, [esp + 0x124]
push ecx
call fcn.005234c0
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.00523500
add esp, 0x18
lea edx, [esp + 0x11c]
push edx
call fcn.00401260
mov eax, dword [esp + 0x14]
push eax
push 0x556644
call fcn.0048f0a0
add esp, 8
cmp dword [0x598230], 0
je 0x48f34b
lea ecx, [esp + 0x11c]
push ecx
call fcn.00522730
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x120]
push eax
call fcn.00526830
push 0x557a9c
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x48f33c
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.00401260
jmp 0x48f395
mov ecx, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
push ecx
push 0x48ecd0
call fcn.004af8f0
mov esi, eax
test esi, esi
je 0x48f377
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48f395
mov edx, dword [esp + 0x14]
mov eax, dword [0x58de7c]
mov ecx, dword [eax]
push edx
push 0x5538d0
push ecx
push 0x10
push 0
call fcn.004a98f0
add esp, 0x14
lea edx, [esp + 0xc]
push edx
call fcn.00401260
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x492420
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x4c8
mov eax, dword [0x596f48]
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.00522730
lea ecx, [esp + 0x10]
push ecx
call fcn.00522730
lea edx, [esp + 0x230]
push edx
call fcn.00522730
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.00524700
push 0x190
call fcn.004a3fd0
push 0x190
mov ebx, eax
push 0
push ebx
call fcn.00549090
add esp, 0xc
lea ecx, [ebx + 0x15c]
push ecx
call fcn.004013a0
lea edx, [ebx + 0x174]
push edx
call fcn.004b4990
or edi, 0xffffffff
mov dword [ebx], edi
mov eax, dword [esp + 0x128]
push eax
call fcn.0051b6c0
mov dword [ebx + 0xe4], eax
mov ecx, dword [esp + 0xc]
mov dword [ebx + 0xf0], ecx
mov edx, dword [esp + 0x238]
push edx
call fcn.0051b6c0
mov dword [ebx + 0xec], eax
mov eax, dword [esp + 0x18]
push eax
call fcn.0051b6c0
mov ecx, dword [esp + 0x4e8]
mov edx, dword [esp + 0x4dc]
mov dword [ebx + 0xe8], eax
mov eax, dword [esp + 0x4e0]
push 0x55068a
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.0051b6c0
push 0x55068a
mov dword [ebx + 0x114], eax
call fcn.0051b6c0
mov dword [ebx + 0x118], eax
mov dword [ebx + 0x120], 0
push 0
push 0
push 0
push 0x4921d0
push str.EVERYTHING_ETP_CLIENT
push 0
call fcn.004a9be0
push 0
push 0
call dword [0x597cc8]
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.004a9d30
push ebx
push eax
mov dword [ebx + 0xdc], eax
call fcn.004ac210
lea ecx, [esp + 0x340]
push ecx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x492658
mov dword [ebx + 0xb4], 1
mov cx, word [esp + 0x340]
cmp cl, 1
je 0x492629
mov ax, cx
shr ax, 8
cmp al, 1
je 0x492629
movzx edx, al
movzx eax, cl
mov ecx, dword [0x58de7c]
push edx
mov edx, dword [ecx + 0x1184]
push eax
push edx
call fcn.00490760
add esp, 0xc
jmp 0x49266e
mov dword [ebx + 0xd8], 3
mov eax, dword [0x58de7c]
mov edi, dword [eax + 0xf8]
mov esi, ebx
call fcn.004905b0
push ebx
push 0x4907e0
call fcn.004b1890
mov dword [ebx + 0x14c], eax
jmp 0x492676
mov ecx, dword [0x58de7c]
mov edx, dword [ecx + 0x1180]
push eax
push edx
call fcn.00490760
add esp, 8
push ebx
call fcn.00491260
xor ebx, ebx
lea eax, [esp + 0x230]
push eax
call fcn.00401260
lea ecx, [esp + 0x10]
push ecx
call fcn.00401260
lea edx, [esp + 0x120]
push edx
call fcn.00401260
mov ecx, dword [esp + 0x4d0]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0054899c
add esp, 0x4c8
ret 0x14
Function at 0x493d00
Capabilities:
Create tcp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
sub esp, 0xa4
mov eax, dword [0x596f48]
xor eax, esp
mov dword [esp + 0xa0], eax
push esi
push edi
mov esi, ecx
call fcn.00493410
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 0x493eaf
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 [0x5980a8]
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 0x493dba
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 0x493dcf
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 0x493e9c
mov eax, dword [esi + 0x180]
push closesocket
push eax
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x493e89
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 0x493e76
mov ax, word [esp + 0x28]
cmp ax, 0x17
je 0x493e2e
cmp ax, 2
jne 0x493e64
movzx eax, word [esp + 0x2a]
test eax, eax
je 0x493e64
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.00492cf0
mov dword [esi + 0x178], 2
mov dword [esi + 0x17c], 1
jmp 0x493ec7
call fcn.00493410
movsx edx, word [esp + 0x28]
push edx
push str.500_Failed_to_enter_passive_mode__invalid_family__d_r_n
jmp 0x493ec0
call fcn.00493410
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_Failed_to_enter_passive_mode__getsockname_failed__d_r_n
jmp 0x493ec0
call fcn.00493410
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_Failed_to_enter_passive_mode__socket_listen__d_r_n
jmp 0x493ec0
call fcn.00493410
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_Failed_to_enter_passive_mode__bind_failed__d_r_n
jmp 0x493ec0
call fcn.00493410
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.00492cf0
mov ecx, dword [esp + 0xb0]
add esp, 8
pop edi
pop esi
xor ecx, esp
call fcn.0054899c
add esp, 0xa4
ret
Function at 0x495310
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x596f48]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
push edi
push 0x248
call fcn.004a3fd0
push 0x248
xor edi, edi
mov esi, eax
push edi
push esi
call fcn.00549090
mov eax, dword [esp + 0xa0]
add esp, 0xc
push esi
push 0x493cc0
push edi
mov dword [esi + 8], eax
mov dword [esi + 0xa8], edi
call fcn.004bf5f0
push eax
call fcn.00411980
push 0x55068a
mov dword [esi + 0x8c], eax
call fcn.0051b6c0
push 0x55068a
mov dword [esi + 0xb8], eax
mov dword [esi + 0x204], 0xffffffff
mov dword [esi + 0xb4], edi
mov dword [esi + 0x200], edi
call fcn.0051b6c0
push 0x55068a
mov dword [esi + 0xdc], eax
call fcn.0051b6c0
push 0x55068a
mov dword [esi + 0xe0], eax
mov dword [esi + 0xe8], edi
call fcn.0051b6c0
push 0x55068a
mov dword [esi + 0x128], eax
call fcn.0051b6c0
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 [0x5980a8]
cmp dword [eax + 8], edi
je 0x49545e
mov ecx, dword [eax + 0xc]
mov dword [ecx + 0xac], esi
mov edx, dword [0x5980a8]
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 [0x5980a8]
push str.Connected._r_n
push esi
mov dword [ecx + 0xc], esi
call fcn.00492b00
mov ecx, dword [esp + 0x94]
add esp, 8
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0054899c
add esp, 0x88
ret 4
Function at 0x496920
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x3b4
mov eax, dword [0x596f48]
xor eax, esp
mov dword [esp + 0x3b0], eax
cmp byte [0x58a703], 0
push edi
mov edi, dword [esp + 0x3bc]
je 0x496b81
lea eax, [esp + 4]
push eax
call fcn.00522730
lea ecx, [esp + 4]
push ecx
call fcn.00523180
cmp dword [0x5980a8], 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.004a3fd0
mov dword [0x5980a8], eax
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [0x5980a8]
mov dword [eax + 4], ecx
mov edx, dword [0x5980a8]
mov dword [edx + 8], ecx
mov eax, dword [0x5980a8]
mov dword [eax + 0xc], ecx
mov edx, dword [0x5980a8]
mov dword [edx + 0x10], ecx
mov eax, dword [0x5980a8]
mov dword [eax + 0x14], ecx
mov edx, dword [0x5980a8]
mov dword [edx + 0x18], ecx
mov eax, dword [0x597fac]
push eax
call fcn.0051b6c0
mov ecx, dword [0x5980a8]
push 0
push 0
push 0
push 0x496540
mov dword [ecx + 0x18], eax
mov edx, dword [0x5980a8]
mov eax, dword [0x58a704]
push str.EVERYTHING_ETP_SERVER
push 0
mov dword [edx + 0x14], eax
call fcn.004a9be0
push 0
push 0
call dword [0x597cc8]
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.004a9d30
mov ecx, dword [0x5980a8]
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 [0x58de7c]
push edx
mov edx, dword [ecx + 0x1184]
push eax
push edx
lea eax, [esp + 0x10]
push eax
call fcn.00523500
add esp, 0x10
jmp 0x496afa
mov ecx, dword [0x597fac]
cmp byte [ecx], 0
je 0x496aee
push esi
lea edx, [esp + 0x118]
push edx
call fcn.00522730
mov eax, dword [0x597fac]
push eax
lea eax, [esp + 0x11c]
push eax
call fcn.00524290
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.00492950
test eax, eax
je 0x496ade
push esi
lea edx, [esp + 0x11c]
push edx
call fcn.00524290
mov esi, eax
test esi, esi
jne 0x496ab0
lea eax, [esp + 0x118]
push eax
call fcn.00401260
pop esi
jmp 0x496afa
lea ecx, [esp + 4]
push ecx
xor eax, eax
call fcn.00492950
mov edx, dword [0x5980a8]
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.0048f0c0
add esp, 0xc
push str.ETP_server_online._r_n
push 0
call fcn.00492b00
add esp, 8
jmp 0x496b77
call fcn.00495270
jmp 0x496b53
push eax
mov eax, dword [0x58de7c]
mov ecx, dword [eax + 0x1180]
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.00523500
add esp, 0xc
mov eax, dword [esp + 0xc]
cmp byte [eax], 0
je 0x496b77
push eax
mov eax, dword [0x58de7c]
mov ecx, dword [eax + 0x1130]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push edi
call fcn.004a98f0
add esp, 0x14
lea eax, [esp + 4]
push eax
call fcn.00401260
mov ecx, dword [esp + 0x3b4]
pop edi
xor ecx, esp
call fcn.0054899c
add esp, 0x3b4
ret 4
Function at 0x4973b0
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.004a9410
mov ebx, eax
cmp ebx, 0xffffffff
je 0x497454
push esi
lea ecx, [esp + 0xc]
push ecx
push ebx
call fcn.004ab260
test eax, eax
je 0x49744c
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x497437
push edi
call fcn.004a4010
mov esi, eax
test esi, esi
je 0x49744b
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 0x49741e
cmp dword [esp + 0x1c], edi
jne 0x49741e
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.004a4030
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 0x497460
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x596f48]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
push ebx
push esi
mov esi, dword [esp + 0x34]
push edi
push 1
push eax
xor edi, edi
call fcn.004a9410
mov ebx, eax
cmp ebx, 0xffffffff
je 0x49751c
push edi
lea eax, [esp + 0x10]
push eax
push 0x1a
lea ecx, [esp + 0x1c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x497515
cmp dword [esp + 0xc], 0x1a
jne 0x497515
mov edx, dword [esp + 0x10]
and edx, 0xffffff00
cmp edx, 0x474e5000
jne 0x497515
cmp dword [esp + 0x1c], 0x52444849
jne 0x497515
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
bswap eax
bswap ecx
mov dword [esi], eax
movzx eax, byte [esp + 0x29]
sub eax, 2
mov dword [esi + 4], ecx
movzx ecx, byte [esp + 0x28]
mov dword [esi + 8], ecx
je 0x49750a
sub eax, 2
je 0x497502
sub eax, 2
jne 0x497510
lea edx, [ecx*4]
mov dword [esi + 8], edx
jmp 0x497510
lea eax, [ecx + ecx]
mov dword [esi + 8], eax
jmp 0x497510
lea ecx, [ecx + ecx*2]
mov dword [esi + 8], ecx
mov edi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0054899c
add esp, 0x24
ret 8

Function at 0x497540
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.004a9410
mov esi, eax
cmp esi, 0xffffffff
je 0x4975a7
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 0x4975a0
cmp dword [esp + 0x2c], 0x1e
jne 0x4975a0
cmp word [esp + 8], 0x4d42
jne 0x4975a0
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