joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50cc00
Capabilities:
Access peb ldr_data
Get local ipv4 addresses

Disassembly:
push 0xffffffffffffffff
push 0x574c28
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x5e736c
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x30], ebx
xor ebp, ebp
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x50cc6d
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
mov ebp, eax
lea edx, [esp + 0x14]
push edx
push ebp
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x50cce8
cmp ebp, ebx
mov esi, ebp
je 0x50ccf6
lea ebx, [esi + 8]
lea eax, [esp + 0x1c]
call fcn.004159e0
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x1c]
push eax
push edi
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x50ccad
mov esi, dword [esi]
test esi, esi
jne 0x50cc82
jmp 0x50cce8
mov ecx, dword [esi + 0x1a0]
mov eax, dword [esp + 0x34]
mov dword [eax + 0xc], ecx
mov edx, dword [esi + 0x19c]
lea ebx, [esi + 0x10c]
mov dword [eax + 8], edx
call fcn.004159e0
mov eax, dword [esp + 0x34]
lea ebx, [esi + 0x1b0]
add eax, 4
call fcn.004159e0
mov dword [esp + 0x18], 1
test ebp, ebp
je 0x50ccf6
push ebp
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
lea eax, [edi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50cd1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
Function at 0x50f370
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x576dd0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x5e736c
mov dword [esp + 0x18], ebx
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x28], ebx
call fcn.0051a800
add esp, 4
mov byte [esp + 0x24], 1
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
je 0x50f4ae
mov ecx, dword [esp + 0x30]
push eax
call fcn.00516950
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x50f408
mov eax, dword [ebp]
mov ecx, dword [esp + 0x30]
push 0x5a9730
push eax
push ecx
call fcn.00516b30
add esp, 0xc
push esi
push str.KWifiShell::ReSetIpAddress_Return:_x
mov ecx, 0x6180b8
call fcn.00435a30
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
mov dword [esp + 0x2c], ebx
push 0x64
call esi
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x14]
push edx
call fcn.00516040
mov edi, dword [esp + 0x18]
push edi
push str.KHostedNetworkIPMgr::GetIpAddressByGuid_Result:_s
mov ecx, 0x6180b8
call fcn.00435a30
xor eax, eax
add esp, 0xc
cmp edi, ebx
setne al
cmp eax, ebx
je 0x50f525
mov eax, dword [ebp]
mov ecx, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x50f488
cmp dx, bx
je 0x50f484
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x50f488
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x50f462
xor eax, eax
jmp 0x50f48d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
jne 0x50f52f
mov eax, dword [esp + 0x2c]
add eax, 1
cmp eax, 0xa
mov dword [esp + 0x2c], eax
jl 0x50f425
mov esi, dword [esp + 0x18]
push esi
push str.KHostedNetworkIPMgr::_ResetAdhocAdapter_Result:_d
mov ecx, 0x6180b8
call fcn.00435a30
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50f4e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50f50d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0x80004005
call fcn.0040fcd0
mov esi, 1
jmp 0x50f4b2
Function at 0x50f640
Capabilities:
Set registry value

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREkingsoftkwifiAdapter
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x50f692
mov eax, dword [esp]
test eax, eax
je 0x50f6a0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0xa4
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
test eax, eax
je 0x50f6a0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret

Function at 0x50f6b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREkingsoftkwifiAdapter
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0xa4
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x50f70c
mov eax, dword [esp + 4]
test eax, eax
je 0x50f71b
mov edx, dword [esp + 0x18]
lea ecx, [esp + 8]
push ecx
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x50f70c
lea esi, [eax + 1]
mov eax, dword [esp + 4]
test eax, eax
je 0x50f71b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x511b00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x58], eax
push esi
mov esi, ecx
test esi, esi
je 0x511baf
test edi, edi
je 0x511baf
push 0
lea eax, [esp + 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREkingsoftkwifiKSetting
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x511ba0
push 0x50
push eax
lea ecx, [esp + 0x10]
push ecx
call sub.MSVCR80.dll_memset
push esi
mov esi, dword [sym.imp.MSVCR80.dll_wcscpy_s]
lea edx, [esp + 0x18]
push 0x14
push edx
call esi
push edi
lea eax, [esp + 0x4c]
push 0x14
push eax
call esi
mov eax, dword [esp + 0x28]
add esp, 0x24
test eax, eax
je 0x511baf
push 0x50
lea ecx, [esp + 0xc]
push ecx
push 3
push 0
push 0x594110
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 4]
test eax, eax
je 0x511baf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x5c]
pop esi
xor ecx, esp
call fcn.00569ed6
mov esp, ebp
pop ebp
ret
Function at 0x512fd0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x576be8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SYSTEMCurrentControlSet_servicesSharedAccessParameters
mov dword [esp + 0x34], 0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [esp + 8]
test eax, eax
je 0x513062
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1c
push str.192.168.175.1
push 1
push 0
push str.ScopeAddress
push eax
call esi
mov eax, dword [esp + 8]
test eax, eax
je 0x513062
push 0x1c
push str.192.168.175.1
push 1
push 0
push str.ScopeAddressBackup
push eax
call esi
push str.CIcsManager::SloveIpAddrConflict_returned
mov ecx, 0x6180b8
call fcn.00435a30
mov eax, dword [esp + 0xc]
add esp, 4
test eax, eax
je 0x513083
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x513ce0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x224
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x21c], eax
xor eax, eax
cmp byte [0x619d0c], al
je 0x513d13
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00569ed6
add esp, 0x224
ret
push 0x206
push eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x1a]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x103
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xc]
push eax
push 0xffffffffffffffff
push str._s_netshell.dll
push str.regsvr32
xor ecx, ecx
call fcn.00418290
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 8]
push edx
push 0xffffffffffffffff
push str._s_netcfgx.dll
push str.regsvr32
xor ecx, ecx
call fcn.00418290
add esp, 0x14
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0xffffffffffffffff
push str._s_netman.dll
push str.regsvr32
xor ecx, ecx
call fcn.00418290
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add esp, 0x14
push edx
push eax
push ecx
push str.RegisterServerClass___1:_x__2:_x__3:_x
mov ecx, 0x6180b8
mov byte [0x619d0c], 1
call fcn.00435a30
mov ecx, dword [esp + 0x22c]
add esp, 0x10
xor ecx, esp
mov eax, 1
call fcn.00569ed6
add esp, 0x224
ret
Function at 0x5140a0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x579758
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], 0
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov bl, 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.004184f0
lea edi, [esp + 0x10]
mov byte [esp + 0x24], 2
call fcn.004101e0
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51413b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str._c_netsh_wlan_start_hostednetwork
lea edi, [esp + 0x18]
call fcn.00410c00
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
mov ebx, 0x5abd50
call fcn.0041a8a0
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov eax, dword [eax]
add esp, 0xc
push 0
push esi
push edi
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebx, ebx
cmp eax, 0x20
mov eax, dword [esp + 0x18]
setge bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5141a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5141c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5141e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x514200
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x579758
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], 0
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov bl, 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.004184f0
lea edi, [esp + 0x10]
mov byte [esp + 0x24], 2
call fcn.004101e0
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51429b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
push str._c__netsh_wlan_set_hostednetwork_modeallow_ssid_s_key_s_
lea edi, [esp + 0x20]
call fcn.00410c00
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ebx, 0x5abd50
call fcn.0041a8a0
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov eax, dword [eax]
add esp, 0x14
push 0
push esi
push edi
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebx, ebx
cmp eax, 0x20
mov eax, dword [esp + 0x18]
setge bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x51430e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51432f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x514353
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x514910
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5796b8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
xor ebp, ebp
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], ebp
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x30], 1
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov bl, 2
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], bl
call fcn.004184f0
lea edi, [esp + 0x1c]
mov byte [esp + 0x30], 3
call fcn.004101e0
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5149c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x619880]
cmp eax, ebp
jne 0x5149d8
call fcn.00418600
mov dword [0x619880], eax
cmp eax, 7
lea eax, [esp + 0x18]
jl 0x5149ed
push str.netsh_interface_ipv4_set_address
mov ebx, 0x20
jmp 0x5149f7
push str.netsh_interface_ip_set_address
mov ebx, 0x1e
call fcn.00410570
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x18]
push ecx
push edx
push esi
push str._c___s_name__s__static__s_255.255.255.0_
lea edi, [esp + 0x30]
call fcn.00410c00
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ebx, 0x5abd50
call fcn.0041a8a0
push 0
push 0
mov byte [esp + 0x50], 4
mov edi, dword [esp + 0x40]
mov eax, dword [eax]
push 0xffffffffffffffff
push edi
push eax
xor ecx, ecx
call fcn.00418290
mov ebx, eax
mov byte [esp + 0x5c], 2
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
add esp, 0x2c
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x514a71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x514a7a
mov ebp, 1
push ebp
push edi
push str.KWifiShell::ReSetIpAddress:_s__result:_d
mov ecx, 0x6180b8
call fcn.00435a30
lea eax, [esi - 0x10]
add esp, 0xc
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x514aaf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x514ad4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x514af8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x5157f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push edi
xor ebp, ebp
lea edi, [esi + 0x24]
push 0x5ac688
lea ebx, [ebp + 0xb]
mov eax, edi
call fcn.00410570
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi + 0x20], eax
je 0x5158be
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WZCQueryInterface
push eax
call edi
mov dword [esi], eax
mov eax, dword [esi + 0x20]
test eax, eax
je 0x51583a
push str.WZCSetInterface
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi + 0x20]
test eax, eax
je 0x51584c
push str.WZCRefreshInterface
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi + 0x20]
test eax, eax
je 0x51585e
push str.WZCDeleteIntfObj
push eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x20]
test eax, eax
je 0x515870
push str.WZCEnumInterfaces
push eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x20]
test eax, eax
je 0x515882
push str.WZCEapolGetInterfaceParams
push eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x20]
test eax, eax
je 0x515894
push str.WZCEapolSetInterfaceParams
push eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x5158aa
pop edi
pop ebp
mov dword [esi + 0x1c], eax
mov eax, 1
pop ebx
ret
push str.WZCPassword2Key
push eax
call edi
pop edi
pop ebp
mov dword [esi + 0x1c], eax
mov eax, 1
pop ebx
ret
pop edi
mov eax, ebp
pop ebp
pop ebx
ret

Function at 0x5158d0
Capabilities:
Resolve dns

Disassembly:
push ecx
push esi
xor esi, esi
push esi
lea eax, [esp + 8]
push eax
push esi
push 0xe8
push 1
push ecx
mov dword [esp + 0x1c], esi
call sub.DNSAPI.dll_DnsQuery_W
test eax, eax
mov ecx, dword [esp + 4]
jne 0x51591d
test ecx, ecx
je 0x515929
mov eax, ecx
lea ebx, [ebx]
cmp word [eax + 8], 1
je 0x51590f
mov eax, dword [eax]
test eax, eax
jne 0x515900
jmp 0x515918
mov edx, dword [eax + 0x18]
mov eax, dword [esp + 0xc]
mov dword [eax], edx
mov esi, 1
test ecx, ecx
je 0x515929
push 1
push ecx
call sub.DNSAPI.dll_DnsFree
mov eax, esi
pop esi
pop ecx
ret
Function at 0x515f00
Capabilities:
Access peb ldr_data
Get local ipv4 addresses
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x571721
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
mov dword [esp + 0x14], ebx
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov esi, 1
mov dword [esp + 0x28], esi
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
mov ecx, dword [esp + 0x30]
add eax, 0x10
mov dword [ecx], eax
lea edx, [esp + 0x14]
push edx
push ebx
mov dword [esp + 0x24], esi
xor ebp, ebp
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x515f92
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
mov ebp, eax
lea ecx, [esp + 0x14]
push ecx
push ebp
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x515fec
cmp ebp, ebx
mov esi, ebp
je 0x515ffa
jmp 0x515fb0
lea ebx, [esi + 8]
lea eax, [esp + 0x18]
call fcn.004159e0
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x18]
push edx
push edi
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x515fdb
mov esi, dword [esi]
test esi, esi
jne 0x515fb0
jmp 0x515fea
mov eax, dword [esp + 0x30]
lea ebx, [esi + 0x1b0]
call fcn.004159e0
xor ebx, ebx
cmp ebp, ebx
je 0x515ffa
push ebp
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
add edi, 0xfffffff0
mov byte [esp + 0x28], bl
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51601a
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x516040
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x574046
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x24c]
xor ebx, ebx
xor ebp, ebp
mov esi, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebp
lea ecx, [esp + 0x18]
push ecx
mov ecx, str.SYSTEMCurrentControlSet_servicesTcpipParametersInterfaces
mov dword [esp + 0x248], ebx
call fcn.0040ff50
push esi
push 0x5ac83c
lea edi, [esp + 0x20]
mov byte [esp + 0x24c], 1
call fcn.00410c20
mov eax, dword [esp + 0x20]
add esp, 8
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x51617e
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x34]
push eax
push ebx
push str.EnableDHCP
mov esi, 4
push ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x51617e
cmp dword [esp + 0x2c], esi
jne 0x51617e
cmp dword [esp + 0x20], ebx
jne 0x51617e
push 0x206
lea ecx, [esp + 0x36]
push ebx
push ecx
mov word [esp + 0x3c], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push str.IPAddress
lea edx, [esp + 0x20]
push edx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x38]
mov dword [esp + 0x1c], 0x104
call fcn.005179e0
cmp eax, ebx
jne 0x51617e
cmp dword [esp + 0x14], 0x10
ja 0x51617e
mov edi, dword [esp + 0x24]
mov edx, esi
call fcn.00410020
lea esi, [ebx + 1]
jmp 0x516182
mov esi, dword [esp + 0x28]
mov byte [esp + 0x244], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5161a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebp, ebx
je 0x5161b4
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00569ed6
add esp, 0x234
ret