joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010de
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425004]
jne 0x4010e8
repz ret
jmp fcn.004013c2

Function at 0x405e5b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x425004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402b03
and dword [ebp - 0x14], 0
cmp dword [0x4279d4], 0
mov dword [ebp - 0x18], eax
jne 0x405f0e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405fb6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405fb6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4279d4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4279d8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4279dc], eax
call edi
push eax
call esi
mov dword [0x4279e4], eax
test eax, eax
je 0x405f0e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4279e0], eax
mov eax, dword [0x4279e0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405f67
cmp dword [0x4279e4], ecx
je 0x405f67
push eax
call esi
push dword [0x4279e4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405f67
test ebx, ebx
je 0x405f67
call edi
test eax, eax
je 0x405f5e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x405f5e
test byte [ebp - 8], 1
jne 0x405f67
or dword [ebp + 0x10], 0x200000
jmp 0x405f9a
mov eax, dword [0x4279d8]
cmp eax, dword [ebp - 0x18]
je 0x405f9a
push eax
call esi
test eax, eax
je 0x405f9a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405f9a
mov eax, dword [0x4279dc]
cmp eax, dword [ebp - 0x18]
je 0x405f9a
push eax
call esi
test eax, eax
je 0x405f9a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4279d4]
call esi
test eax, eax
je 0x405fb6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405fb8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004010de
leave
ret
Function at 0x41a9d0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x808
mov eax, dword [0x425004]
xor eax, esp
mov dword [esp + 0x804], eax
mov eax, dword [esp + 0x80c]
push esi
xor esi, esi
mov dword [esp + 4], eax
test edi, edi
jle 0x41aa6a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp edi, 0x2d
jne 0x41aa25
push 0
push 0
call ebx
push str.supinigelugewa
push str.gafivatagelotogomawurorakeno
push str.woxilekedebivekahefilokapunutew
push str.zalofejeworurucigakabeyew
call ebp
call fcn.0041a920
mov ecx, dword [esp + 0xc]
xor byte [ecx + esi], al
cmp edi, 0xf
jne 0x41aa63
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
inc esi
cmp esi, edi
jl 0x41aa04
pop ebp
pop ebx
pop esi
cmp edi, 0x2d
jne 0x41aa84
mov dword [0x4286c8], 0xa62e7790
mov dword [0x4286cc], 0xffffffff
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.004010de
add esp, 0x808
ret
Function at 0x4041b0
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 0x404283
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 0x4041fd
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 0x40424b
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40423d
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.004a9ef0
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 0x404278
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.004a9ef0
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.004a9ef0
add esp, 0x14
pop edi
add esp, 0x1c
ret

Function at 0x4042b0
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 0x404354
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 0x40432b
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x404321
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x420
je 0x404320
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.004a9ef0
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.004a9ef0
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.004a9ef0
add esp, 0x14
pop ebx
ret
Function at 0x404380
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 0x404433
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 0x404407
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4043fa
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x426
je 0x4043f9
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.004a9ef0
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.004a9ef0
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.004a9ef0
add esp, 0x14
pop edi
add esp, 0x1c
ret
Function at 0x404460
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.004041b0
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4045a5
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.004ad3a0
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x120]
push str.__s___client_svc
push edx
call fcn.00524170
mov eax, dword [esp + 0x130]
add esp, 0xc
push eax
lea ecx, [esp + 0x230]
push ecx
call fcn.00527550
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 0x404532
call fcn.004042b0
push esi
call ebx
jmp 0x404566
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x431
jne 0x404548
call fcn.004042b0
jmp 0x404566
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.004a9ef0
add esp, 0x14
push edi
call ebx
lea eax, [esp + 0x22c]
push eax
call fcn.00401230
lea ecx, [esp + 0x11c]
push ecx
call fcn.00401230
lea edx, [esp + 0xc]
push edx
call fcn.00401230
pop esi
pop ebx
pop edi
mov ecx, dword [esp + 0x434]
xor ecx, esp
call fcn.00549750
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.004a9ef0
mov ecx, dword [esp + 0x44c]
add esp, 0x14
pop edi
xor ecx, esp
call fcn.00549750
add esp, 0x438
ret

Function at 0x404970
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.00523d00
push esi
call fcn.00523df0
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.00404640
test eax, eax
je 0x4049f4
mov eax, dword [esp + 4]
push eax
call fcn.00521d50
push eax
push esi
call fcn.00523cb0
lea ecx, [esp + 0x120]
push ecx
call fcn.00401230
lea edx, [esp + 0x10]
push edx
call fcn.00401230
mov ecx, dword [esp + 0x230]
pop esi
xor ecx, esp
call fcn.00549750
add esp, 0x230
ret 4
Function at 0x48f110
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.00525150
push str.Everything_n
call fcn.0048f0d0
mov edx, dword [esp + 0xc]
push edx
push str.Version__s_n
call fcn.0048f0d0
add esp, 0xc
cmp byte [0x5981a0], 0
mov eax, 0x557ba0
jne 0x48f165
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.0048f0d0
mov eax, dword [0x5981ac]
push eax
push str.Processors__d_n
call fcn.0048f0d0
add esp, 0x18
call fcn.004aed30
push eax
push str.IsAdmin__d_n
call fcn.0048f0d0
movsx ecx, byte [0x598014]
push ecx
push str.AppData__d_n
call fcn.0048f0d0
add esp, 0x10
call fcn.004fcb00
push eax
push str.Service__d_n
call fcn.0048f0d0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.cmdline__S_n
call fcn.0048f0d0
add esp, 8
lea edx, [esp]
push edx
call fcn.00401230
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00549750
add esp, 0x114
ret

Function at 0x48f280
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.00524130
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.00524170
add esp, 0x18
lea edx, [esp + 0x11c]
push edx
call fcn.00401230
mov eax, dword [esp + 0x14]
push eax
push 0x556764
call fcn.0048f0d0
add esp, 8
cmp dword [0x5982d0], 0
je 0x48f37b
lea ecx, [esp + 0x11c]
push ecx
call fcn.00401210
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x120]
push eax
call fcn.00527550
push 0x557bbc
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x48f36c
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.00401230
jmp 0x48f3c5
mov ecx, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
push ecx
push 0x48ed00
call fcn.004afdd0
mov esi, eax
test esi, esi
je 0x48f3a7
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48f3c5
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.004a9ef0
add esp, 0x14
lea edx, [esp + 0xc]
push edx
call fcn.00401230
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x492480
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.00525370
push 0x190
call fcn.004a49a0
push 0x190
mov ebx, eax
push 0
push ebx
call fcn.00549e40
add esp, 0xc
lea ecx, [ebx + 0x15c]
push ecx
call fcn.00401370
lea edx, [ebx + 0x174]
push edx
call fcn.004b5300
or edi, 0xffffffff
mov dword [ebx], edi
mov eax, dword [esp + 0x128]
push eax
call fcn.0051c290
mov dword [ebx + 0xe4], eax
mov ecx, dword [esp + 0xc]
mov dword [ebx + 0xf0], ecx
mov edx, dword [esp + 0x238]
push edx
call fcn.0051c290
mov dword [ebx + 0xec], eax
mov eax, dword [esp + 0x18]
push eax
call fcn.0051c290
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.0051c290
push 0x55065e
mov dword [ebx + 0x114], eax
call fcn.0051c290
mov dword [ebx + 0x118], eax
mov dword [ebx + 0x120], 0
mov dword [ebx + 0x128], edi
push 0
push 0
push 0
push 0x492230
push str.EVERYTHING_ETP_CLIENT
push 0
call fcn.004aa1e0
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.004aa330
push ebx
push eax
mov dword [ebx + 0xdc], eax
call fcn.004ac6f0
lea ecx, [esp + 0x340]
push ecx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4926be
mov dword [ebx + 0xb4], 1
mov cx, word [esp + 0x340]
cmp cl, 1
je 0x49268f
mov ax, cx
shr ax, 8
cmp al, 1
je 0x49268f
movzx edx, al
movzx eax, cl
mov ecx, dword [0x58deec]
push edx
mov edx, dword [ecx + 0x1184]
push eax
push edx
call fcn.004907a0
add esp, 0xc
jmp 0x4926d4
mov dword [ebx + 0xd8], 3
mov eax, dword [0x58deec]
mov edi, dword [eax + 0xf8]
mov esi, ebx
call fcn.004905f0
push ebx
push 0x490820
call fcn.004b1f80
mov dword [ebx + 0x14c], eax
jmp 0x4926dc
mov ecx, dword [0x58deec]
mov edx, dword [ecx + 0x1180]
push eax
push edx
call fcn.004907a0
add esp, 8
push ebx
call fcn.004912a0
xor ebx, ebx
lea eax, [esp + 0x230]
push eax
call fcn.00401230
lea ecx, [esp + 0x10]
push ecx
call fcn.00401230
lea edx, [esp + 0x120]
push edx
call fcn.00401230
mov ecx, dword [esp + 0x4d0]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00549750
add esp, 0x4c8
ret 0x14
Function at 0x493d60
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.00493470
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 0x493f0f
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 0x493e1a
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 0x493e2f
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 0x493efc
mov eax, dword [esi + 0x180]
push closesocket
push eax
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x493ee9
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 0x493ed6
mov ax, word [esp + 0x28]
cmp ax, 0x17
je 0x493e8e
cmp ax, 2
jne 0x493ec4
movzx eax, word [esp + 0x2a]
test eax, eax
je 0x493ec4
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.00492d50
mov dword [esi + 0x178], 2
mov dword [esi + 0x17c], 1
jmp 0x493f27
call fcn.00493470
movsx edx, word [esp + 0x28]
push edx
push str.500_Failed_to_enter_passive_mode__invalid_family__d_r_n
jmp 0x493f20
call fcn.00493470
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_Failed_to_enter_passive_mode__getsockname_failed__d_r_n
jmp 0x493f20
call fcn.00493470
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_Failed_to_enter_passive_mode__socket_listen__d_r_n
jmp 0x493f20
call fcn.00493470
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_Failed_to_enter_passive_mode__bind_failed__d_r_n
jmp 0x493f20
call fcn.00493470
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.00492d50
mov ecx, dword [esp + 0xb0]
add esp, 8
pop edi
pop esi
xor ecx, esp
call fcn.00549750
add esp, 0xa4
ret
Function at 0x495360
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.004a49a0
push 0x248
xor edi, edi
mov esi, eax
push edi
push esi
call fcn.00549e40
mov eax, dword [esp + 0xa0]
add esp, 0xc
push esi
push 0x493d20
push edi
mov dword [esi + 8], eax
mov dword [esi + 0xa8], edi
call fcn.004c0300
push eax
call fcn.004119c0
push 0x55065e
mov dword [esi + 0x8c], eax
call fcn.0051c290
push 0x55065e
mov dword [esi + 0xb8], eax
mov dword [esi + 0x204], 0xffffffff
mov dword [esi + 0xb4], edi
mov dword [esi + 0x200], edi
call fcn.0051c290
push 0x55065e
mov dword [esi + 0xdc], eax
call fcn.0051c290
push 0x55065e
mov dword [esi + 0xe0], eax
mov dword [esi + 0xe8], edi
call fcn.0051c290
push 0x55065e
mov dword [esi + 0x128], eax
call fcn.0051c290
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 0x49548a
mov dword [esi + 0xb4], 1
mov eax, dword [0x59812c]
cmp dword [eax + 8], edi
je 0x4954ae
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 0x4954b7
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.00492b60
mov ecx, dword [esp + 0x94]
add esp, 8
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.00549750
add esp, 0x88
ret 4