joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a92a0
Capabilities:
Modify service

Disassembly:
push 0xffffffffffffffff
push 0x5f0c78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x6656b0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
mov eax, dword [0x6656b0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, 7
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], ax
mov dword [esp + 0x3c], ebx
push 0xffffffffffffffff
push ebx
lea eax, [edi + 4]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1b], bl
call fcn.0040f320
xor ecx, ecx
cmp ecx, str.GnPCInspectorSvc
je 0x4a9333
mov eax, str.GnPCInspectorSvc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a9310
sub eax, edx
sar eax, 1
push eax
mov eax, str.GnPCInspectorSvc
lea esi, [esp + 0x18]
call fcn.0040f730
mov esi, 7
cmp dword [esp + 0x28], ebx
jne 0x4a9370
push 0x62ed10
call fcn.004a7cf0
add esp, 4
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x4a9362
mov edx, dword [esp + 0x18]
push edx
call fcn.004c4802
add esp, 4
xor eax, eax
mov word [esp + 0x18], ax
xor al, al
jmp 0x4a9491
cmp byte [edi + 0x58], 1
jne 0x4a946a
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
cmp ebp, ebx
jne 0x4a93ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CDriverService::ChangeServiceStartType___:_Service_Manager
mov dword [edi + 0x60], eax
call fcn.004a7cf0
add esp, 8
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x4a93c0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004c4802
add esp, 4
xor edx, edx
mov word [esp + 0x18], dx
xor al, al
jmp 0x4a9491
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x4a93dd
lea eax, [esp + 0x18]
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
jne 0x4a9423
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x62ee38
mov dword [edi + 0x60], eax
call fcn.004a7cf0
add esp, 8
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [esp + 0x3c], 0xffffffff
lea esi, [esp + 0x14]
call fcn.0040f810
xor al, al
jmp 0x4a9499
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
cmp eax, 1
jne 0x4a9442
mov byte [esp + 0x13], al
jmp 0x4a9459
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CDriverService::ChangeServiceStartType___:
mov dword [edi + 0x60], eax
call fcn.004a7cf0
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
mov esi, 7
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x4a9486
mov eax, dword [esp + 0x18]
push eax
call fcn.004c4802
add esp, 4
mov al, byte [esp + 0x13]
xor ecx, ecx
mov word [esp + 0x18], cx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005b7e8e
add esp, 0x30
ret
Function at 0x4a95f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5e9770
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x6656b0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CEventWorkThread.0
mov dword [esp + 0x18], 2
xor ebx, ebx
cmp byte [esi + 0x30], bl
je 0x4a9663
mov eax, dword [esi + 0x24]
push eax
mov byte [esi + 0x31], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x28]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0x50]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov byte [esi + 0x30], bl
call fcn.004a9b30
mov byte [esp + 0x18], 1
lea eax, [esi + 0x50]
push eax
call fcn.004a99d0
mov byte [esp + 0x18], bl
cmp dword [esi + 0x4c], 8
jb 0x4a9687
mov eax, dword [esi + 0x38]
push eax
call fcn.004c4802
add esp, 4
mov dword [esi + 0x4c], 7
mov dword [esi + 0x48], ebx
xor ecx, ecx
mov word [esi + 0x38], cx
mov dword [esp + 0x18], 0xffffffff
mov ecx, esi
call fcn.004c86f4
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x4ab380
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5f0bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x6656b0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
call fcn.004ab440
xor esi, esi
mov dword [esp + 0x30], esi
mov eax, dword [0x66edb4]
mov dword [esp + 0x18], 2
cmp eax, esi
jne 0x4ab3c9
xor eax, eax
jmp 0x4ab3d0
push 2
call eax
add esp, 4
mov dword [esp + 0x1c], eax
mov eax, dword [0x66edb0]
cmp eax, esi
jne 0x4ab3e1
xor eax, eax
jmp 0x4ab3e8
push 2
call eax
add esp, 4
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
lea edi, [esp + 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], esi
call fcn.004ab610
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0xc], vtable.CHashLib.0
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret
Function at 0x4ac9b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e85f0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6656b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
call fcn.004b04e0
mov eax, dword [eax + 0xd8]
test eax, eax
je 0x4acabc
mov dword [ebp - 4], 0
call fcn.004b04e0
mov eax, dword [eax + 0xd8]
push edi
call eax
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x4aca7f
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push edi
cmp eax, 2
jne 0x4aca3e
push 0x62fcf8
call fcn.004a7cf0
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x4aca6f
push str.CLaunchApp::DeleteUrlCache___:_Lock
call fcn.004a7cf0
add esp, 8
mov dword [ebp - 4], 0xffffffff
cmp esi, 1
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call ebx
push eax
push 0x62fe00
call fcn.004a7cf0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
cmp esi, 1
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4aed90
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5f0908
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x6656b0]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebp
push esi
push edi
mov eax, dword [0x6656b0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [esp + 0x84]
xor ebp, ebp
mov edi, ecx
mov dword [esp + 0x10], eax
xor ecx, ecx
push ebp
mov eax, 0x622024
lea esi, [esp + 0x54]
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ebp
mov word [esp + 0x58], cx
call fcn.0040f730
mov dword [esp + 0x78], ebp
mov eax, edi
lea edx, [eax + 2]
jmp 0x4aee00
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4aee00
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x54]
call fcn.0040f730
mov ecx, 0x20
mov edx, esi
call fcn.004bce60
push 0x3c
lea edx, [esp + 0x18]
push ebp
push edx
call fcn.005bfee0
mov eax, dword [ebx + 0x2a4]
add esp, 0xc
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0x40
cmp eax, ebp
je 0x4aee5a
mov eax, dword [eax + 0x20]
mov dword [esp + 0x1c], eax
jmp 0x4aee5e
mov dword [esp + 0x1c], ebp
mov esi, 8
mov dword [esp + 0x20], str.open
cmp dword [ebx + 0x3bc], esi
jb 0x4aee7f
mov ecx, dword [ebx + 0x3a8]
mov dword [esp + 0x24], ecx
jmp 0x4aee89
lea edx, [ebx + 0x3a8]
mov dword [esp + 0x24], edx
cmp dword [esp + 0x68], esi
jb 0x4aee99
mov eax, dword [esp + 0x54]
mov dword [esp + 0x28], eax
jmp 0x4aeea1
lea ecx, [esp + 0x54]
mov dword [esp + 0x28], ecx
cmp dword [ebx + 0x324], esi
jb 0x4aeeb5
mov edx, dword [ebx + 0x310]
mov dword [esp + 0x2c], edx
jmp 0x4aeebf
lea eax, [ebx + 0x310]
mov dword [esp + 0x2c], eax
movzx ecx, word [esp + 0x80]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x34], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4aef1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CLaunchApp::LaunchApp_ShellExecuteEx___:
mov dword [ebx + 0x2c8], eax
call fcn.004a7cf0
add esp, 8
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x68], esi
jb 0x4aef0f
mov eax, dword [esp + 0x54]
push eax
call fcn.004c4802
add esp, 4
xor ecx, ecx
mov word [esp + 0x54], cx
xor al, al
jmp 0x4aef56
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x10]
mov dword [edi], esi
cmp esi, ebp
je 0x4aef31
push ebx
call fcn.004ae450
mov dword [edi + 8], eax
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x68], 8
jb 0x4aef4d
mov edx, dword [esp + 0x54]
push edx
call fcn.004c4802
add esp, 4
xor eax, eax
mov word [esp + 0x54], ax
mov al, 1
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], 7
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.005b7e8e
add esp, 0x6c
ret 8
Function at 0x4b1190
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi + 0x20], 0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push edi
mov byte [esi + 0xf4], 1
jne 0x4b11c7
push str.KERNEL32.DLL
call ebp
mov dword [esi + 0x20], eax
test eax, eax
jne 0x4b11c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CLibEx::LoadLibrary_ProcessList___:_KERNEL32.DLL
call fcn.004a7cf0
add esp, 8
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4b129d
cmp dword [esi + 0xf8], 0
jne 0x4b1207
push str.CreateToolhelp32Snapshot
push eax
call edi
mov dword [esi + 0xf8], eax
test eax, eax
jne 0x4b1207
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CLibEx::LoadLibrary_ProcessList___:_CreateToolhelp32Snapshot__
call fcn.004a7cf0
add esp, 8
cmp dword [esi + 0xfc], 0
jne 0x4b1239
mov eax, dword [esi + 0x20]
push str.Process32First
push eax
call edi
mov dword [esi + 0xfc], eax
test eax, eax
jne 0x4b1239
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CLibEx::LoadLibrary_ProcessList___:_Process32First__
call fcn.004a7cf0
add esp, 8
cmp dword [esi + 0x100], 0
jne 0x4b126b
mov ecx, dword [esi + 0x20]
push str.Process32Next
push ecx
call edi
mov dword [esi + 0x100], eax
test eax, eax
jne 0x4b126b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CLibEx::LoadLibrary_ProcessList___:_Process32Next__
call fcn.004a7cf0
add esp, 8
cmp dword [esi + 0xc0], 0
jne 0x4b129d
mov edx, dword [esi + 0x20]
push str.ProcessIdToSessionId
push edx
call edi
mov dword [esi + 0xc0], eax
test eax, eax
jne 0x4b129d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CLibEx::LoadLibrary_ProcessList___:_ProcessIdToSessionId__
call fcn.004a7cf0
add esp, 8
cmp byte [esi + 0x1c], 1
jne 0x4b1337
cmp dword [esi + 0x30], 0
jne 0x4b12cf
push str.PSAPI.DLL
call ebp
mov dword [esi + 0x30], eax
test eax, eax
jne 0x4b12cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CLibEx::LoadLibrary_ProcessList___:_PSAPI.DLL
call fcn.004a7cf0
add esp, 8
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4b1337
cmp dword [esi + 0x104], 0
jne 0x4b1305
push str.EnumProcessModules
push eax
call edi
mov dword [esi + 0x104], eax
test eax, eax
jne 0x4b1305
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CLibEx::LoadLibrary_ProcessList___:_EnumProcessModules__
call fcn.004a7cf0
add esp, 8
cmp dword [esi + 0x108], 0
jne 0x4b1337
mov eax, dword [esi + 0x30]
push str.GetModuleFileNameExW
push eax
call edi
mov dword [esi + 0x108], eax
test eax, eax
jne 0x4b1337
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CLibEx::LoadLibrary_ProcessList___:_GetModuleFileNameEx__
call fcn.004a7cf0
add esp, 8
pop edi
pop ebp
ret
Function at 0x4b19e0
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x5f2250
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x6656b0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
mov eax, dword [0x6656b0]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x5c]
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], cx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov byte [esp + 0x54], 1
cmp eax, ebx
jne 0x4b1a4c
mov eax, 0x622024
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x4b1a51
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x14]
call fcn.0040f730
mov edx, esi
push edx
call fcn.004b2440
mov eax, dword [esp + 0x14]
mov ebp, 8
cmp dword [esp + 0x28], ebp
jae 0x4b1a85
lea eax, [esp + 0x14]
lea ecx, [edi + 0x60]
push ecx
push eax
lea esi, [edi + 8]
lea edx, [edi + 0x44]
push edi
mov ecx, esi
call fcn.004b1bc0
test al, al
je 0x4b1b39
cmp dword [edi + 0x1c], ebx
je 0x4b1b39
cmp dword [edi + 0x58], ebx
je 0x4b1b39
cmp dword [esi + 0x18], ebp
jb 0x4b1abc
mov esi, dword [esi + 4]
jmp 0x4b1abf
add esi, 4
push esi
lea ecx, [esp + 0x30]
call fcn.004bc9f0
mov eax, dword [esp + 0x34]
mov esi, 0x10
add esp, 4
cmp dword [esp + 0x44], esi
jae 0x4b1adf
lea eax, [esp + 0x30]
push eax
call sub.WSOCK32.dll_inet_addr
push eax
mov dword [edi + 0x24], eax
call sub.WSOCK32.dll_htonl
mov dword [edi + 0x28], eax
mov byte [esp + 0x54], bl
cmp dword [esp + 0x44], esi
jb 0x4b1b08
mov edx, dword [esp + 0x30]
push edx
call fcn.004c4802
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x54], 0xffffffff
cmp dword [esp + 0x28], ebp
jb 0x4b1b33
mov eax, dword [esp + 0x14]
push eax
call fcn.004c4802
add esp, 4
xor ecx, ecx
mov al, 1
jmp 0x4b1b80
mov byte [esp + 0x54], bl
cmp dword [esp + 0x44], 0x10
jb 0x4b1b51
mov edx, dword [esp + 0x30]
push edx
call fcn.004c4802
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x54], 0xffffffff
cmp dword [esp + 0x28], ebp
jb 0x4b1b7c
mov eax, dword [esp + 0x14]
push eax
call fcn.004c4802
add esp, 4
xor ecx, ecx
xor al, al
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], cx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.005b7e8e
add esp, 0x48
ret 4
Function at 0x4b1f50
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x5ef4b8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x6656b0]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6656b0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
xor ebx, ebx
mov ebp, 0xf
mov esi, ecx
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov dword [esp + 0x78], ebx
call fcn.004b04e0
cmp dword [eax + 0xf0], ebx
jne 0x4b1fcb
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x68], 0x10
jb 0x4b1fc4
mov eax, dword [esp + 0x54]
push eax
call fcn.004c4802
add esp, 4
xor eax, eax
jmp 0x4b204f
cmp esi, ebx
jne 0x4b1fef
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x68], 0x10
jb 0x4b1fc4
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004c4802
add esp, 4
xor eax, eax
jmp 0x4b204f
push esi
lea ecx, [esp + 0x54]
call fcn.004bc9f0
mov edi, dword [esp + 0x58]
add esp, 4
cmp dword [esp + 0x68], 0x10
jae 0x4b200b
lea edi, [esp + 0x54]
call fcn.004b04e0
mov esi, dword [eax + 0xf0]
lea edx, [esp + 0x18]
push edx
push ebx
push edi
call sub.WSOCK32.dll_inet_addr
push eax
call esi
cmp eax, ebx
jne 0x4b1fa8
mov esi, dword [esp + 0x28]
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x68], 0x10
jb 0x4b204d
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004c4802
add esp, 4
mov eax, esi
mov byte [esp + 0x54], bl
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebp
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.005b7e8e
add esp, 0x68
ret

Function at 0x4b2080
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, eax
test eax, eax
je 0x4b20c0
jmp 0x4b2090
lea eax, [edi + 4]
push eax
call sub.WSOCK32.dll_inet_addr
test eax, eax
je 0x4b20ba
mov esi, dword [ebx]
xor edx, edx
test esi, esi
jle 0x4b20ba
lea ecx, [ebx + 0x1a]
cmp dword [ecx - 0x16], eax
jne 0x4b20b2
test byte [ecx], 1
jne 0x4b20c5
inc edx
add ecx, 0x18
cmp edx, esi
jl 0x4b20a8
mov edi, dword [edi]
test edi, edi
jne 0x4b2090
pop edi
xor eax, eax
pop esi
ret
mov eax, edi
pop edi
pop esi
ret
Function at 0x4b2330
Capabilities:
Access peb ldr_data
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x5f14a2
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6656b0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6656b0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor eax, eax
mov edi, ecx
mov esi, edx
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
mov dword [esp + 0x50], 1
mov ebx, dword [edi + 0x10]
cmp dword [edi + 0xc], ebx
jbe 0x4b2392
call fcn.005b8d91
mov ebp, dword [edi + 0xc]
mov ecx, dword [edi]
mov dword [esp + 0x18], ecx
cmp ebp, dword [edi + 0x10]
jbe 0x4b23a5
call fcn.005b8d91
mov edx, dword [esp + 0x18]
mov eax, dword [edi]
push ebx
push edx
push ebp
push eax
lea eax, [esp + 0x28]
push eax
mov ebx, edi
call fcn.004abe40
xor ebp, ebp
mov ebx, esi
cmp esi, ebp
je 0x4b240f
push ebp
mov eax, 0x622024
lea esi, [esp + 0x24]
call fcn.0040f730
lea ecx, [esp + 0x20]
push ecx
lea esi, [ebx + 4]
push esi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
call fcn.004bcad0
add esp, 8
push esi
call sub.WSOCK32.dll_inet_addr
push eax
mov dword [esp + 0x40], eax
call sub.WSOCK32.dll_htonl
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x44], eax
call fcn.004abc80
mov ebx, dword [ebx]
cmp ebx, ebp
jne 0x4b23c3
mov dword [esp + 0x50], 0xffffffff
lea eax, [esp + 0x20]
push eax
call fcn.004b3a50
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005b7e8e
add esp, 0x40
ret
Function at 0x4b2440
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x5f2190
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x6656b0]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6656b0]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x84]
lea eax, [esp + 0x34]
push eax
call fcn.004ab8a0
xor esi, esi
mov dword [esp + 0x7c], esi
mov edi, 0xf
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], esi
mov byte [esp + 0x1c], 0
mov byte [esp + 0x7c], 1
cmp dword [ebp + 0x14], esi
jne 0x4b24d0
mov byte [esp + 0x7c], 0
cmp dword [esp + 0x30], 0x10
jb 0x4b24be
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004c4802
add esp, 4
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], esi
mov byte [esp + 0x1c], 0
jmp 0x4b2642
mov ebx, 8
cmp dword [ebp + 0x18], ebx
jb 0x4b24df
mov eax, dword [ebp + 4]
jmp 0x4b24e2
lea eax, [ebp + 4]
push eax
lea ecx, [esp + 0x1c]
call fcn.004bc9f0
mov eax, dword [esp + 0x20]
mov edi, 0x10
add esp, 4
cmp dword [esp + 0x30], edi
jae 0x4b2502
lea eax, [esp + 0x1c]
push eax
call sub.WSOCK32.dll_inet_addr
or esi, 0xffffffff
cmp eax, esi
je 0x4b2545
mov byte [esp + 0x7c], 0
cmp dword [esp + 0x30], edi
jb 0x4b2527
mov edx, dword [esp + 0x1c]
push edx
call fcn.004c4802
add esp, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 0x7c], esi
jmp 0x4b264a
cmp dword [ebp + 0x18], ebx
jb 0x4b254f
mov eax, dword [ebp + 4]
jmp 0x4b2552
lea eax, [ebp + 4]
mov edx, eax
lea ecx, [esp + 0x34]
call fcn.004ab9d0
test al, al
jne 0x4b2572
mov byte [esp + 0x7c], al
cmp dword [esp + 0x30], edi
jb 0x4b2527
mov eax, dword [esp + 0x1c]
push eax
jmp 0x4b251f
mov ecx, dword [esp + 0x64]
sub ecx, dword [esp + 0x60]
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
test ecx, ecx
jg 0x4b25b3
push 0x6337b0
call fcn.004a7cf0
add esp, 4
mov byte [esp + 0x7c], 0
lea ecx, [esp + 0x18]
call fcn.0040f080
mov dword [esp + 0x7c], esi
jmp 0x4b264a
xor edi, edi
lea esi, [esp + 0x34]
call fcn.004b1710
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4b2626
test ebx, ebx
je 0x4b2626
cmp ebx, 0x7f000001
je 0x4b2626
call fcn.004b16b0
cmp dword [ebp + 0x18], 8
jb 0x4b25e1
mov ecx, dword [ebp + 4]
jmp 0x4b25e4
lea ecx, [ebp + 4]
push ebx
push eax
push ecx
push str.CNetworkInfo::NetworkHostByName___:_Domain___s___IP___s_0x_X__n
call fcn.004a7cf0
add esp, 0x10
xor edi, edi
lea esi, [esp + 0x34]
call fcn.004b16b0
push ebp
call fcn.0040f7e0
mov byte [esp + 0x7c], 0
lea ecx, [esp + 0x18]
call fcn.0040f080
mov dword [esp + 0x7c], 0xffffffff
mov ecx, esi
call fcn.004ab940
mov al, 1
jmp 0x4b2655
push ebx
push str.CNetworkInfo::NetworkHostByName___:
call fcn.004a7cf0
add esp, 8
mov byte [esp + 0x7c], 0
lea ecx, [esp + 0x18]
call fcn.0040f080
mov dword [esp + 0x7c], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.004ab940
xor al, al
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.005b7e8e
add esp, 0x6c
ret 4