joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5161e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x574010
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
xor esi, esi
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x20], esi
lea eax, [esp + 0x14]
push eax
mov ecx, str.SYSTEMCurrentControlSet_servicesTcpipParametersInterfaces
mov dword [esp + 0x34], ebx
call fcn.0040ff50
mov ecx, dword [esp + 0x38]
push ecx
push 0x5ac83c
lea edi, [esp + 0x1c]
mov byte [esp + 0x38], 1
call fcn.00410c20
mov eax, dword [esp + 0x1c]
add esp, 8
lea edx, [esp + 0x18]
push edx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x5162a6
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push eax
push ebx
push str.EnableDHCP
mov edi, 4
push esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x5162a6
cmp dword [esp + 0x24], edi
jne 0x5162a6
cmp dword [esp + 0x1c], ebx
je 0x5162a6
lea ebp, [ebx + 1]
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5162ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x5162d5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 0x5166d0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x573fe0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x10], esi
lea eax, [esp + 0x14]
push eax
mov ecx, str.SYSTEMCurrentControlSet_servicesTcpipParametersInterfaces
mov dword [esp + 0x28], esi
call fcn.0040ff50
mov ecx, dword [esp + 0x2c]
push ecx
push 0x5ac83c
lea edi, [esp + 0x1c]
mov byte [esp + 0x2c], 1
call fcn.00410c20
mov eax, dword [esp + 0x1c]
add esp, 8
lea edx, [esp + 0x18]
push edx
push 0x20006
push ebp
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5167c8
mov esi, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
push eax
push str.EnableDHCP
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], 1
call edi
test eax, eax
jne 0x5167c8
push 0x58c320
push str.IPAddress
lea edx, [esp + 0x18]
push edx
call fcn.00517960
push 0x58c320
push str.SubnetMask
lea eax, [esp + 0x18]
push eax
call fcn.00517960
push 0x58c320
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push 0x58c320
push 1
push ebp
push str.NameServer
push esi
call edi
mov ebp, 1
mov byte [esp + 0x24], 0
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 0x5167ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x5167f8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x516810
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x573fe0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x10], esi
lea eax, [esp + 0x14]
push eax
mov ecx, str.SYSTEMCurrentControlSet_servicesTcpipParametersInterfaces
mov dword [esp + 0x28], esi
call fcn.0040ff50
mov ecx, dword [esp + 0x2c]
push ecx
push 0x5ac83c
lea edi, [esp + 0x1c]
mov byte [esp + 0x2c], 1
call fcn.00410c20
mov eax, dword [esp + 0x1c]
add esp, 8
lea edx, [esp + 0x18]
push edx
push 0x20006
push ebp
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x516908
mov esi, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
push eax
push str.EnableDHCP
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], 1
call edi
test eax, eax
jne 0x516908
push str.0.0.0.0
push str.IPAddress
lea edx, [esp + 0x18]
push edx
call fcn.00517960
push str.0.0.0.0
push str.SubnetMask
lea eax, [esp + 0x18]
push eax
call fcn.00517960
push 0x58c320
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push 0x58c320
push 1
push ebp
push str.NameServer
push esi
call edi
mov ebp, 1
mov byte [esp + 0x24], 0
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 0x51692d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x516938
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x516950
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x573f96
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x23c]
lea eax, [esp + 0x18]
mov edi, ecx
push eax
mov ecx, str.SYSTEMCurrentControlSet_servicesTcpipParametersInterfaces
xor ebx, ebx
xor esi, esi
call fcn.0040ff50
mov dword [esp + 0x234], ebx
mov dword [esp + 0x14], ebx
push edi
push 0x5ac83c
lea edi, [esp + 0x20]
mov byte [esp + 0x23c], 1
call fcn.00410c20
mov edx, dword [esp + 0x20]
add esp, 8
lea ecx, [esp + 0x14]
push ecx
push 0x20006
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x516acf
mov edi, dword [esp + 0x14]
push 4
lea eax, [esp + 0x20]
push eax
push 4
push ebx
push str.EnableDHCP
push edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
jne 0x516ac4
push 0x206
lea ecx, [esp + 0x26]
push ebx
push ecx
mov word [esp + 0x2c], bx
call sub.MSVCR80.dll_memset
mov eax, ebp
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x516a40
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x24]
push ebp
push edx
call dword [sym.imp.MSVCR80.dll_wcsncpy]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push str.IPAddress
lea ecx, [esp + 0x1c]
push ecx
call fcn.00517960
push str.255.255.255.0
push str.SubnetMask
lea edx, [esp + 0x1c]
push edx
call fcn.00517960
push 0x58c320
push str.DefaultGateway
lea eax, [esp + 0x1c]
push eax
call fcn.00517960
push 0x58c320
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push 0x58c320
push 1
push ebx
push str.NameServer
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, 1
cmp edi, ebx
je 0x516acf
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x234], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x516afa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00569ed6
add esp, 0x224
ret
Function at 0x516c60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x571699
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x14], ebx
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov esi, ecx
mov ecx, 0x5e736c
mov dword [esp + 0x18], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x30], ebx
mov ecx, dword [esi]
xor eax, eax
mov dword [esp + 0x1d], eax
mov word [esp + 0x21], ax
mov byte [esp + 0x23], al
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], ebx
mov byte [esp + 0x20], bl
call fcn.00439b20
add esp, 4
lea esi, [esp + 0x10]
lea ecx, [esp + 0x1c]
call fcn.00515a90
test eax, eax
je 0x516d0a
mov ecx, dword [esp + 0x10]
push ecx
call sub.WS2_32.dll_inet_ntoa
mov ebx, eax
mov eax, edi
call fcn.004159e0
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00569ed6
add esp, 0x28
ret
Function at 0x517320
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x576ae8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
cmp byte [0x619d0d], 0
je 0x517362
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
xor esi, esi
xor edi, edi
mov dword [esp + 0x10], esi
lea eax, [esp + 0xc]
push eax
push 0x2001f
push esi
push str.SYSTEMCurrentControlSetControlNetwork
mov dword [esp + 0x2c], esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5173b5
mov esi, dword [esp + 0xc]
push str.Config
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x5173b5
mov byte [0x619d0d], 1
mov edi, 1
push edi
push str.RepairNetworkConfig___result:_d
mov ecx, 0x6180b8
call fcn.00435a30
add esp, 8
test esi, esi
je 0x5173d3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x517960
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x517973
push 0x80004005
call fcn.0040fcd0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x517980
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x5179e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
test esi, esi
je 0x5179f3
cmp dword [edi], 2
jae 0x5179f3
mov eax, 0x7a
pop ecx
ret 8
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x517a63
cmp dword [esp + 0xc], 7
je 0x517a33
mov eax, 0xd
pop ecx
ret 8
test esi, esi
mov ecx, dword [esp]
je 0x517a5d
test cl, 1
jne 0x517a2a
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x517a2a
cmp word [esi + eax*2 - 2], 0
jne 0x517a2a
cmp eax, 1
jbe 0x517a5d
cmp word [esi + eax*2 - 4], 0
jne 0x517a2a
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
pop ecx
ret 8
Function at 0x518170
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x573e9b
mov eax, dword fs:[0]
push eax
mov eax, 0x1010
call fcn.0056a4b0
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x100c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x1024]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1034]
mov dword [esp + 0x18], 0
mov dword [esp + 0x102c], 1
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 + 0x102c], 2
mov ebx, dword [esp + 0x1038]
push ebx
push str.SYSTEMCurrentControlSetControlClass_s
lea edi, [esp + 0x24]
mov dword [esp + 0x20], 0x800
call fcn.00410c00
push 0x800
lea eax, [esp + 0x2c]
push 0
push eax
call sub.MSVCR80.dll_memset
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov edi, dword [esp + 0x103c]
jne 0x518265
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
lea ecx, [esp + 0x24]
call fcn.0040ff50
lea eax, [esi - 0x10]
mov byte [esp + 0x102c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x518293
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x102c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5182b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x102c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5182de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x1024]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00569ed6
add esp, 0x101c
ret 0xc
Function at 0x519630
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x573df0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x5e736c
mov dword [esp + 0x20], ebx
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], ebx
mov eax, dword [0x619c48]
mov edi, dword [eax]
mov ebp, 0x619c44
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebp
cmp ebp, ebx
mov esi, dword [0x619c48]
je 0x5196a3
cmp ebp, 0x619c44
je 0x5196a9
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, esi
je 0x51975a
cmp ebp, ebx
mov esi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jne 0x5196bd
call esi
cmp edi, dword [ebp + 4]
jne 0x5196cb
call esi
cmp edi, dword [ebp + 4]
jne 0x5196cb
call esi
mov esi, dword [edi + 0x10]
mov edx, dword [0x5e736c]
mov eax, dword [edx + 0xc]
shl esi, 0x10
add esi, dword [edi + 0x14]
mov ecx, 0x5e736c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x38], 1
cmp edi, dword [ebp + 4]
jne 0x5196fb
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [edi + 0xc]
push esi
push ecx
push str._d__ld_
lea edi, [esp + 0x24]
call fcn.00410c00
mov esi, dword [esp + 0x24]
mov eax, dword [esi - 0xc]
add esp, 0xc
push eax
push esi
lea edx, [esp + 0x24]
push edx
call fcn.00410240
lea eax, [esi - 0x10]
mov byte [esp + 0x38], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x519744
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x24]
call fcn.0043d840
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
jmp 0x519691
push ebx
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWAREkingsoftkwifiKSetting
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
mov esi, dword [esp + 0x1c]
jne 0x5197bf
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x5197d4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x519792
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
push esi
push 1
push ebx
push str.hotkey
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
mov edi, 1
je 0x5197c3
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x5197d8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5197d8
mov edi, dword [esp + 0x20]
lea eax, [esi - 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x519800
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51b0a0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get common file path
Get ntdll base address
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x576978
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x240]
xor esi, esi
mov dword [esp + 0x238], esi
mov dword [esp + 0x18], esi
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
mov dword [esp + 0x20], ebp
call edx
add eax, 0x10
mov dword [ebp], eax
push 0x206
lea eax, [esp + 0x2a]
mov dword [esp + 0x23c], esi
push esi
mov ebx, 1
push eax
mov dword [esp + 0x24], ebx
mov word [esp + 0x30], si
call sub.MSVCR80.dll_memset
add esp, 0xc
xor edi, edi
lea esi, [esp + 0x14]
call fcn.004122f0
mov edx, eax
lea eax, [ebx + 2]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x238], ebx
call fcn.004100a0
mov edi, ebp
mov byte [esp + 0x238], 2
call fcn.004101e0
mov byte [esp + 0x238], bl
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 0x51b186
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x238], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51b1ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp]
cmp dword [ecx - 0xc], 0
je 0x51b1e9
call fcn.00418760
cmp eax, 2
mov edx, 0x5ad200
je 0x51b1cb
mov edx, str.Program_Files
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x51b1d0
sub eax, esi
sar eax, 1
push eax
push edx
push ebp
call fcn.00410240
jmp 0x51b24b
push str.programfiles
call dword [sym.imp.MSVCR80.dll__wgetenv]
add esp, 4
test eax, eax
jne 0x51b1ff
xor ecx, ecx
jmp 0x51b213
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x51b204
sub ecx, esi
sar ecx, 1
push eax
mov ebx, ecx
mov eax, ebp
call fcn.00410570
mov edx, dword [ebp]
cmp dword [edx - 0xc], 0
jne 0x51b24b
push 0
push 0x26
lea eax, [esp + 0x2c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
mov edi, ebp
lea edx, [esp + 0x24]
jne 0x51b246
mov edx, str.c:Program_Files
call fcn.00410020
mov esi, ebp
call fcn.00412840
push 0xc
push str.zkzkremote_
push ebp
call fcn.00410240
mov eax, ebp
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00569ed6
add esp, 0x228
ret
Function at 0x51b340
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x579448
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
xor esi, esi
call fcn.0051b0a0
add esp, 4
push 0xc
push str.zkremote.exe
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x24], esi
call fcn.00410240
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x51b3ac
mov eax, dword [esp + 0xc]
push esi
push esi
push esi
push esi
push eax
xor ecx, ecx
call fcn.00418290
add esp, 0x14
mov esi, eax
mov dword [esp + 0x18], 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 0x51b3d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x51b3f0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5746f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
call fcn.0051b0a0
push eax
lea ecx, [esp + 0x14]
push ecx
mov ebx, str.zkremote.exe
mov dword [esp + 0x28], 0
call fcn.0041a8a0
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x51b462
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x51b48f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x51b8f0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x618040]
test eax, eax
jne 0x51b90f
push 0x208
call fcn.00569ecc
add esp, 4
test eax, eax
mov dword [0x618040], eax
je 0x51b959
push 0x104
push eax
mov word [eax], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x51b959
mov ecx, dword [0x618040]
movzx edx, word [ecx + eax*2 - 2]
cmp dx, 0x2f
je 0x51b93b
cmp dx, 0x5c
jne 0x51b942
mov word [ecx + eax*2 - 2], 0
mov edx, 0x103
sub edx, eax
push edx
push str.explorer.exe
push ecx
call dword [sym.imp.MSVCR80.dll_wcsncat]
add esp, 0xc
ret