joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e5e40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56fd28
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x30], 0
call fcn.00488e50
mov edx, 0x5a4fb0
mov ecx, eax
call fcn.00488aa0
test eax, eax
jne 0x4e5f3f
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.00488e50
mov edx, 0x5a4fb0
mov ecx, eax
call fcn.00488b70
test eax, eax
jne 0x4e5f3f
call fcn.00488e50
cmp dword [eax + 4], 0
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
je 0x4e5f00
call fcn.00488e50
mov edi, dword [eax + 4]
movzx edx, si
push 0x5a4fb0
push edx
push edi
call ebx
test eax, eax
je 0x4e5f00
push edi
lea ecx, [esp + 0x14]
call fcn.00488c40
add esp, 4
test eax, eax
jne 0x4e5f3f
movzx eax, si
push 0x5a4fb0
push eax
push 0x400000
call ebx
test eax, eax
je 0x4e5f29
push 0x400000
lea ecx, [esp + 0x14]
call fcn.00488c40
add esp, 4
test eax, eax
jne 0x4e5f3f
push 0x5a4fb0
push esi
call fcn.00488e50
lea ecx, [esp + 0x18]
mov edx, eax
call fcn.00488ce0
mov ebx, dword [esp + 0x10]
mov esi, dword [ebx - 0xc]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push ebx
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0
push edi
mov dword [esp + 0x20], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov edx, dword [esp + 0x14]
push 0x10
mov dword [esp + 0x1c], edx
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x4e5fad
lea eax, [esi + 4]
push eax
mov dword [eax], 0
mov eax, dword [esp + 0x1c]
push eax
mov dword [esi], vtable.Gdiplus::Image.0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x4e5faf
xor esi, esi
mov ecx, dword [ebp + 8]
push edi
mov dword [ecx], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [ebx - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e5ff2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e8090
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x579b8e
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c]
fld dword [0x5b28f8]
lea ecx, [ebp + 8]
mov dword [ebp], vtable.BkSkinPool.0
fstp dword [ecx + 0xc]
fld dword [0x5b28f4]
xor esi, esi
fstp dword [ecx + 0x10]
mov dword [ecx], esi
fld dword [0x5b28f0]
mov dword [ecx + 4], esi
fstp dword [ecx + 0x14]
mov dword [ecx + 8], 0x11
mov dword [ecx + 0x18], 0xffffffff
mov dword [ecx + 0x1c], esi
mov dword [ecx + 0x20], esi
mov dword [ecx + 0x24], 0xa
mov dword [ecx + 0x28], esi
mov dword [ecx + 0x2c], esi
call fcn.004e1840
mov dword [esp + 0x34], esi
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [ebp + 0x38], eax
mov eax, 1
mov byte [esp + 0x34], al
mov dword [esp + 0x18], eax
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [ebp + 4]
push ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call sub.gdiplus.dll_GdiplusStartup
mov edi, 0x400000
lea ebx, [esp + 0x14]
call fcn.004125d0
lea edi, [ebp + 0x38]
mov byte [esp + 0x34], 2
call fcn.004101e0
mov byte [esp + 0x34], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4e818e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x4f4450
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56fef8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.00531d00
mov ebx, dword [ebp + 8]
push eax
lea eax, [esp + 0x14]
push eax
add ebx, 0x10
mov dword [esp + 0x30], 0
call fcn.00411700
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f44ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f44ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4f8fd0
Capabilities:
Create thread

Disassembly:
push 0x18
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
jne 0x4f8fdf
ret
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
push 0
push 0
push eax
push 0x4f9150
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
push 0
push 0
mov dword [eax + 0x10], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
ret
Function at 0x4fbe70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x56fe88
mov eax, dword fs:[0]
push eax
sub esp, 8
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esi + 4], vtable.IKWifiHostedNetflow.0
mov dword [esi + 8], vtable.IKWifiNetflow.0
xor edi, edi
mov dword [esi], vtable.KWifiNetflow.0
mov dword [esi + 4], vtable.KWifiNetflow.1.0
mov dword [esi + 8], vtable.KWifiNetflow.2.0
mov dword [esi + 0xc], edi
mov dword [esi + 0x20], vtable.KGetConnectedNet.0
mov dword [esp + 0x18], 0xffffffff
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esi + 0x38], eax
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], 0xffffffff
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 + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x14
ret

Function at 0x4fc4f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x577fe8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x54]
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax]
push edx
push edi
push eax
mov eax, dword [ecx + 0x1c]
call eax
lea ecx, [esp + 0x10]
lea esi, [edi + 4]
push ecx
mov ebx, eax
call fcn.004399c0
mov dword [esp + 0x24], 0
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
push ebx
push edx
mov edx, dword [edi + 0x14]
push ecx
mov ecx, dword [edi + 0x10]
push edx
mov edx, dword [eax]
push ecx
push edx
push str.KWifiNetflow::AddCtrlFlow:_s__u:_I64u__d:_I64u__result:0x_x
mov ecx, 0x6180b8
call fcn.00435a30
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x20
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4fc597
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4fc5b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x577fe8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x54]
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
push edi
push eax
call edx
mov ebx, eax
lea eax, [esp + 0x10]
lea esi, [edi + 4]
push eax
call fcn.004399c0
mov dword [esp + 0x24], 0
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x18]
mov eax, dword [eax]
push ebx
push ecx
mov ecx, dword [edi + 0x14]
push edx
mov edx, dword [edi + 0x10]
push ecx
push edx
push eax
push str.KWifiNetflow::DelCtrlFlow:_s__u:_I64u__d:_I64u__result:0x_x
mov ecx, 0x6180b8
call fcn.00435a30
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x20
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4fc653
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4fc6d0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
xor esi, esi
push esi
lea eax, [esp + 8]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SOFTWAREkingsoftkwifiKSetting
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4fc72a
mov eax, dword [esp + 4]
test eax, eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 8], ecx
je 0x4fc739
push 4
lea edx, [esp + 0xc]
push edx
push 4
push esi
push 0x5a734c
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4fc72a
lea esi, [eax + 1]
mov eax, dword [esp + 4]
test eax, eax
je 0x4fc739
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x4fd300
Capabilities:
Access firewall rule properties via inetfwrule

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push edi
push str.Kingsoft_Wireless_Manager
mov edi, eax
call esi
push str.Kingsoft_Wireless_Manager
mov ebx, eax
call esi
mov ebp, eax
mov eax, dword [esp + 0x1c]
push eax
call esi
lea ecx, [esp + 0x10]
push ecx
push 0x5a780c
push 1
push 0
push 0x5a77fc
mov dword [esp + 0x28], eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jge 0x4fd356
push esi
push str.CoCreateInstance_for_Firewall_Rule_failed:_0x_x
jmp 0x4fd3ef
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push ebx
push eax
mov eax, dword [edx + 0x20]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
push ebp
push eax
call edx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
push 0x100
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x70]
push 1
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x98]
push SysReAllocString
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa8]
push 1
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x88]
push 0xffffffffffffffff
push eax
call edx
mov ecx, dword [esp + 0x10]
mov eax, dword [edi]
mov edx, dword [eax + 0x20]
push ecx
push edi
call edx
mov esi, eax
test esi, esi
jge 0x4fd3fc
push esi
push str.Firewall_Rule_Add_failed:_0x_x
mov ecx, 0x6180b8
call fcn.00435a30
add esp, 8
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
call edi
push ebp
call edi
mov eax, dword [esp + 0x14]
push eax
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4fd41f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x501940
Capabilities:
Send data
Send data on socket

Disassembly:
push edi
call dword [sym.imp.MSVCR80.dll__errno]
mov dword [eax], 0
mov eax, dword [esi]
and dword [eax], 0x7fffffff
mov eax, dword [esi + 4]
sub eax, esi
sub eax, 8
mov cx, ax
sub cx, 2
mov dword [esi + 0x133c], eax
movzx eax, cx
push eax
lea edi, [esi + 8]
call sub.WS2_32.dll_htons
mov edx, dword [esi + 0x133c]
push 0
push edx
mov word [edi], ax
mov eax, dword [esi + 0x1310]
push edi
push eax
call sub.WS2_32.dll_send
cmp dword [esi + 0x133c], eax
pop edi
jne 0x5019a9
call sub.WS2_32.dll_WSAGetLastError
test eax, eax
jne 0x5019a9
mov ax, word [esi + 0x133c]
ret
xor ax, ax
ret
Function at 0x505180
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
mov edi, eax
cmp dword [edi + 0x56c], 0
je 0x50530a
cmp byte [edi + 0xc8c], 0
je 0x5051a8
cmp byte [edi + 0xc8d], 5
jne 0x50530a
mov ecx, dword [edi]
mov eax, dword [edi + 0xa84]
cmp eax, ecx
jbe 0x5051b6
mov ecx, eax
mov eax, dword [edi + 0x56c]
or dword [eax + 0x10], 4
mov eax, dword [edi + 0x56c]
mov ebx, 2
or dword [eax + 0x10], ebx
mov esi, dword [edi + 0x56c]
call fcn.00505b10
mov eax, dword [edi + 0x56c]
push eax
push 0
push 0x508f10
call dword [sym.imp.MSVCR80.dll__beginthread]
add esp, 0xc
cmp byte [0x617f25], bl
je 0x5051ff
mov eax, edi
call fcn.00505a20
mov bl, 1
cmp byte [0x617f22], bl
jb 0x5052cd
mov eax, dword [edi]
test eax, eax
je 0x50524e
cmp dword [edi + 0x548], 0
je 0x50524e
push eax
mov eax, dword [edi + 0x14]
mov esi, 0x5e7b78
call fcn.00507470
push eax
lea ecx, [edi + 0x404]
push ecx
lea edx, [edi + 0x504]
push edx
push str.Host__s___s__allotted__s_for__u_seconds
push 0x5e7878
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x18
jmp 0x5052b3
cmp byte [edi + 0xc8c], 0
mov esi, 0x5e7b78
je 0x505289
push eax
mov eax, dword [edi + 0x14]
call fcn.00507470
push eax
lea eax, [edi + 0x404]
push eax
lea ecx, [edi + 0x504]
push ecx
push str.Host__s___s__renewed__s_for__u_seconds
push 0x5e7878
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x18
jmp 0x5052b3
mov eax, dword [edi + 0x14]
call fcn.00507470
push eax
lea edx, [edi + 0x404]
push edx
lea eax, [edi + 0x504]
push eax
push str.BOOTP_Host__s___s__allotted__s
push 0x5e7878
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x14
cmp byte [0x617f22], bl
jb 0x5052cd
push 0x5e7878
push 0x6180b8
call fcn.00435820
add esp, 8
cmp byte [0x617f25], 0
je 0x5052fd
mov ecx, dword [0x617f14]
cmp ecx, dword [0x61972c]
jl 0x5052fd
jg 0x5052f4
mov edx, dword [0x617f10]
cmp edx, dword [0x619728]
jbe 0x5052fd
push edi
call fcn.00505c40
add esp, 4
mov eax, dword [edi + 0x56c]
mov eax, dword [eax + 0x18]
pop edi
pop esi
pop ebx
ret
mov ebx, 2
cmp byte [0x617f22], bl
jb 0x50538c
cmp byte [edi + 0xc8d], bl
jne 0x50538c
mov eax, dword [edi + 0x14]
mov esi, dword [sym.imp.MSVCR80.dll_sprintf]
mov ecx, eax
shr ecx, 0x18
push ecx
mov edx, eax
shr edx, 0x10
movzx ecx, dl
push ecx
mov edx, eax
shr edx, 8
movzx ecx, dl
push ecx
movzx edx, al
push edx
push str._u._u._u._u
push 0x5e7b78
call esi
push 0x5e7b78
lea eax, [edi + 0x404]
push eax
add edi, 0x504
push edi
push str.Host__s___s__offered__s
push 0x5e7878
call esi
add esp, 0x2c
cmp byte [0x617f22], bl
jb 0x50538c
push 0x5e7878
push 0x6180b8
call fcn.00435820
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x505c40
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x114
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x110], eax
push ebp
mov ebp, dword [esp + 0x11c]
cmp byte [ebp + 0xf4], 0xff
lea eax, [ebp + 0xf4]
push esi
push edi
mov dl, 8
je 0x505c92
mov ecx, dword [ebp + 0x568]
cmp eax, ecx
jae 0x505c92
cmp byte [eax], 0x35
je 0x505c8f
movzx esi, byte [eax + 1]
cmp byte [eax + esi + 2], 0xff
lea eax, [eax + esi + 2]
jne 0x505c75
jmp 0x505c92
mov byte [eax + 2], dl
cmp byte [ebp + 0xbc1], 0
jne 0x505cb4
lea edi, [esp + 0x10]
mov esi, ebp
mov byte [esp + 0x10], 0x35
mov byte [esp + 0x11], 1
mov byte [esp + 0x12], dl
call fcn.005058d0
cmp byte [ebp + 0x404], 0
lea edx, [ebp + 0x404]
je 0x505d02
cmp byte [ebp + 0xb98], 0
jne 0x505d02
mov eax, edx
mov byte [esp + 0x10], 0xc
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x505cd6
sub eax, esi
mov byte [esp + 0x11], al
movzx eax, al
push eax
push edx
lea ecx, [esp + 0x1a]
push ecx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
lea edi, [esp + 0x10]
mov esi, ebp
call fcn.005058d0
mov edx, dword [ebp + 0x568]
mov edi, dword [sym.imp.MSVCR80.dll__errno]
mov byte [edx], 0xff
add dword [ebp + 0x568], 1
mov eax, dword [ebp + 0x568]
sub eax, ebp
sub eax, 4
lea esi, [ebp + 4]
mov dword [ebp + 0x54c], eax
mov byte [esi], 1
call edi
push 0x10
push 0x5e8f58
mov dword [eax], 0
mov eax, dword [ebp + 0x54c]
mov ecx, dword [0x5eff78]
push 0
push eax
push esi
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp + 0x54c], eax
call edi
mov esi, eax
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi], eax
cmp dword [ebp + 0x54c], 0
jg 0x505dee
cmp byte [0x617f22], 1
mov dword [0x617f10], 0
mov dword [0x617f14], 0
jb 0x505dd4
cmp byte [0x617f25], 1
jne 0x505da1
call edi
mov edx, dword [eax]
push edx
push str.WSAError__u_Sending_DHCP_Update_to_Secondary_Server
jmp 0x505dab
call edi
mov eax, dword [eax]
push eax
push str.WSAError__u_Sending_DHCP_Update_to_Primary_Server
push 0x5e7878
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
cmp byte [0x617f22], 1
jb 0x505dd4
push 0x5e7878
push 0x6180b8
call fcn.00435820
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00569ed6
add esp, 0x114
ret
cmp byte [0x617f22], 2
jb 0x505e61
cmp byte [0x617f25], 1
mov ecx, dword [ebp + 0x56c]
mov eax, dword [ecx + 0x18]
mov esi, 0x5e7b78
jne 0x505e24
call fcn.00507470
mov edx, dword [ebp + 0x56c]
push eax
mov eax, dword [edx]
push eax
push str.DHCP_Update_for_host__s___s__sent_to_Secondary_Server
jmp 0x505e38
call fcn.00507470
mov edx, dword [ebp + 0x56c]
push eax
mov eax, dword [edx]
push eax
push str.DHCP_Update_for_host__s___s__sent_to_Primary_Server
push 0x5e7878
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x10
cmp byte [0x617f22], 2
jb 0x505e61
push 0x5e7878
push 0x6180b8
call fcn.00435820
add esp, 8
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00569ed6
add esp, 0x114
ret
Function at 0x507e40
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x11c
push ebp
push esi
push edi
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
lea edx, [esp + 0x2c]
lea eax, [ebx + 1]
push edx
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], 1
mov dword [esp + 0x2c], 5
mov dword [esp + 0x30], 0
call sub.WS2_32.dll_select
test eax, eax
je 0x507f9f
mov esi, dword [sym.imp.MSVCR80.dll__errno]
call esi
mov edi, dword [esp + 0x12c]
push 0
push 2
push edi
push ebx
mov dword [eax], 0
call sub.WS2_32.dll_recv
movzx eax, ax
mov dword [esp + 0x10], eax
call esi
mov ebp, eax
call sub.WS2_32.dll_WSAGetLastError
mov dword [ebp], eax
call esi
cmp dword [eax], 0
jne 0x507f9f
mov ebp, 2
cmp word [esp + 0x10], bp
jne 0x507f9f
movzx ecx, word [edi]
push ecx
mov dword [esp + 0x18], ebp
call sub.WS2_32.dll_ntohs
add ax, bp
movzx ebp, ax
cmp bp, 0x800
mov dword [esp + 0x10], ebp
ja 0x507f9f
cmp bp, 2
jbe 0x507f90
jmp 0x507f0b
mov edi, dword [esp + 0x12c]
mov ebp, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push 0
push 0
lea eax, [esp + 0x2c]
push eax
lea eax, [ebx + 1]
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], 1
mov dword [esp + 0x2c], 5
mov dword [esp + 0x30], 0
call sub.WS2_32.dll_select
test eax, eax
je 0x507f9f
call esi
mov dword [eax], 0
movzx eax, word [esp + 0x14]
movzx ecx, bp
push 0
sub ecx, eax
push ecx
add eax, edi
push eax
push ebx
call sub.WS2_32.dll_recv
movzx edi, ax
call esi
mov ebp, eax
call sub.WS2_32.dll_WSAGetLastError
test di, di
mov dword [ebp], eax
jle 0x507f9f
call esi
cmp dword [eax], 0
jne 0x507f9f
mov eax, dword [esp + 0x14]
add eax, edi
cmp ax, word [esp + 0x10]
mov dword [esp + 0x14], eax
jb 0x507f00
mov ax, word [esp + 0x14]
pop edi
pop esi
pop ebp
add esp, 0x11c
ret
pop edi
pop esi
xor ax, ax
pop ebp
add esp, 0x11c
ret
Function at 0x50ba40
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x577058
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jge 0x50baaa
cmp eax, 0x80010119
je 0x50baaa
push eax
push str.KWMIResetIP::Init_CoInitializeSecurity:_d
mov ecx, 0x6180b8
call fcn.00435a30
mov eax, dword [ebp + 8]
add esp, 8
jmp 0x50bbc6
mov esi, dword [ebp + 8]
lea edi, [esi + 4]
push edi
push 0x586c24
push 1
push 0
push 0x586cf4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x50baf3
push eax
push str.KWMIResetIP::Init_CoCreateInstance:_d
mov ecx, 0x6180b8
call fcn.00435a30
mov eax, dword [esi]
add esp, 8
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [edi]
lea ecx, [esp + 0x10]
push ecx
mov edi, str.ROOTCIMV2
call fcn.0050b6d0
mov dword [esp + 0x20], 0
mov eax, dword [eax]
test eax, eax
je 0x50bb16
mov eax, dword [eax]
jmp 0x50bb18
xor eax, eax
mov edx, dword [ebx]
add esi, 8
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push eax
mov eax, dword [edx + 0xc]
push ebx
call eax
lea edi, [esp + 0x10]
mov ebx, eax
mov dword [esp + 0x20], 0xffffffff
call fcn.0050b770
test ebx, ebx
jge 0x50bb75
push ebx
push str.KWMIResetIP::Init_ConnectServer:_d
mov ecx, 0x6180b8
call fcn.00435a30
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
add esp, 8
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [esi]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push esi
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jge 0x50bbbd
push eax
push str.KWMIResetIP::Init_CoSetProxyBlanket:_d
mov ecx, 0x6180b8
call fcn.00435a30
mov edx, dword [ebp + 8]
mov eax, dword [edx]
add esp, 8
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov dword [eax], 1
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4