joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413bd0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41f19c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b11d
and dword [ebp - 0x14], 0
cmp dword [0x421db8], 0
mov dword [ebp - 0x18], eax
jne 0x413c83
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x413d2b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x413d2b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x421db8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x421dbc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x421dc0], eax
call edi
push eax
call esi
mov dword [0x421dc8], eax
test eax, eax
je 0x413c83
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x421dc4], eax
mov eax, dword [0x421dc4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x413cdc
cmp dword [0x421dc8], ecx
je 0x413cdc
push eax
call esi
push dword [0x421dc8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x413cdc
test ebx, ebx
je 0x413cdc
call edi
test eax, eax
je 0x413cd3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x413cd3
test byte [ebp - 8], 1
jne 0x413cdc
or dword [ebp + 0x10], 0x200000
jmp 0x413d0f
mov eax, dword [0x421dbc]
cmp eax, dword [ebp - 0x18]
je 0x413d0f
push eax
call esi
test eax, eax
je 0x413d0f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x413d0f
mov eax, dword [0x421dc0]
cmp eax, dword [ebp - 0x18]
je 0x413d0f
push eax
call esi
test eax, eax
je 0x413d0f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x421db8]
call esi
test eax, eax
je 0x413d2b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x413d2d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407299
leave
ret
Function at 0x11250
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
push 1
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
movzx ecx, word [ebp - 8]
add ecx, 2
push ecx
mov edx, dword [ebp - 4]
push edx
push 1
push str.ComputerName
push str.ComputerNameComputerName
push 2
call dword [sym.imp.ntoskrnl.exe_RtlWriteRegistryValue]
movzx eax, word [ebp - 8]
add eax, 2
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
push str.NV_Hostname
push str.TcpipParameters
push 1
call dword [sym.imp.ntoskrnl.exe_RtlWriteRegistryValue]
lea edx, [ebp - 8]
push edx
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x112d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov dword [ebp - 4], 0
mov byte [ebp - 0x411], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x470]
push ecx
call fcn.00011120
mov dword [ebp - 8], eax
lea edx, [ebp - 0x408]
mov dword [ebp - 0x40c], edx
mov word [ebp - 0x40e], 0x400
push 0x400
push 0
mov eax, dword [ebp - 0x40c]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
push 0x1783c
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
movzx edx, word [ebp - 0x41c]
push edx
mov eax, dword [ebp - 0x418]
push eax
mov ecx, dword [ebp - 0x40c]
push ecx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov dx, word [ebp - 0x41c]
mov word [ebp - 0x410], dx
movzx eax, word [ebp - 0x410]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x40c]
mov word [ecx + eax*2], 0
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
movzx ecx, word [ebp - 0x41c]
push ecx
mov edx, dword [ebp - 0x418]
push edx
movzx eax, word [ebp - 0x410]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x40c]
lea edx, [ecx + eax*2]
push edx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
movzx eax, word [ebp - 0x41c]
movzx ecx, word [ebp - 0x410]
add ecx, eax
mov word [ebp - 0x410], cx
movzx eax, word [ebp - 0x410]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp - 0x40c]
mov word [edx + eax*2], 0
cmp dword [ebp + 8], 0
jbe 0x11500
mov byte [ebp - 0x475], 0
mov byte [ebp - 0x476], 0
cmp dword [ebp + 0x10], 0
jne 0x11469
mov eax, dword [ebp - 8]
add eax, 4
push eax
lea ecx, [ebp - 0x470]
push ecx
push 7
push 0x17878
mov edx, dword [ebp - 0x40c]
push edx
push 1
call dword [sym.imp.ntoskrnl.exe_RtlWriteRegistryValue]
mov dword [ebp - 0x474], eax
cmp dword [ebp - 0x474], 0
jge 0x11452
push str.DrvMotifyIP_failed
call fcn.00011090
add esp, 4
push 0x7d0
call fcn.000110d0
jmp 0x11469
push str.DrvMotifyIP_OK
call fcn.00011090
add esp, 4
push 0x7d0
call fcn.000110d0
cmp dword [ebp + 0x10], 1
jne 0x11499
mov eax, dword [ebp - 8]
add eax, 4
push eax
lea ecx, [ebp - 0x470]
push ecx
push 7
push str.DefaultGateway
mov edx, dword [ebp - 0x40c]
push edx
push 1
call dword [sym.imp.ntoskrnl.exe_RtlWriteRegistryValue]
mov dword [ebp - 0x474], eax
cmp dword [ebp + 0x10], 2
jne 0x114c9
mov eax, dword [ebp - 8]
add eax, 4
push eax
lea ecx, [ebp - 0x470]
push ecx
push 7
push str.SubnetMask
mov edx, dword [ebp - 0x40c]
push edx
push 1
call dword [sym.imp.ntoskrnl.exe_RtlWriteRegistryValue]
mov dword [ebp - 0x474], eax
cmp dword [ebp + 0x10], 3
jne 0x114f9
mov eax, dword [ebp - 8]
add eax, 2
push eax
lea ecx, [ebp - 0x470]
push ecx
push 1
push str.NameServer
mov edx, dword [ebp - 0x40c]
push edx
push 1
call dword [sym.imp.ntoskrnl.exe_RtlWriteRegistryValue]
mov dword [ebp - 0x474], eax
mov dword [ebp - 4], 0
mov al, byte [ebp - 0x411]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x11510
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov dword [ebp - 4], 0
mov byte [ebp - 0x411], 1
lea eax, [ebp - 0x408]
mov dword [ebp - 0x40c], eax
mov word [ebp - 0x40e], 0x400
push 0x400
push 0
mov ecx, dword [ebp - 0x40c]
push ecx
call sub.ntoskrnl.exe_memset
add esp, 0xc
push 0x17900
lea edx, [ebp - 0x41c]
push edx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
movzx eax, word [ebp - 0x41c]
push eax
mov ecx, dword [ebp - 0x418]
push ecx
mov edx, dword [ebp - 0x40c]
push edx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov ax, word [ebp - 0x41c]
mov word [ebp - 0x410], ax
movzx eax, word [ebp - 0x410]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x40c]
mov word [ecx + eax*2], 0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
movzx ecx, word [ebp - 0x41c]
push ecx
mov edx, dword [ebp - 0x418]
push edx
movzx eax, word [ebp - 0x410]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x40c]
lea edx, [ecx + eax*2]
push edx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
movzx eax, word [ebp - 0x41c]
movzx ecx, word [ebp - 0x410]
add ecx, eax
mov word [ebp - 0x410], cx
movzx eax, word [ebp - 0x410]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp - 0x40c]
mov word [edx + eax*2], 0
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push str.EnableDHCP
mov ecx, dword [ebp - 0x40c]
push ecx
push 1
call dword [sym.imp.ntoskrnl.exe_RtlWriteRegistryValue]
mov dword [ebp - 0x420], eax
mov al, byte [ebp - 0x411]
mov esp, ebp
pop ebp
ret 8
Function at 0x11650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov dword [ebp - 0x464], 0
lea eax, [ebp - 0x400]
mov dword [ebp - 0x404], eax
mov word [ebp - 0x406], 0x400
push 0x400
push 0
mov ecx, dword [ebp - 0x404]
push ecx
call sub.ntoskrnl.exe_memset
add esp, 0xc
push str.TcpipParametersInterfaces_
lea edx, [ebp - 0x46c]
push edx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
movzx eax, word [ebp - 0x46c]
push eax
mov ecx, dword [ebp - 0x468]
push ecx
mov edx, dword [ebp - 0x404]
push edx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov ax, word [ebp - 0x46c]
mov word [ebp - 0x408], ax
movzx eax, word [ebp - 0x408]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x404]
mov word [ecx + eax*2], 0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x46c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
movzx ecx, word [ebp - 0x46c]
push ecx
mov edx, dword [ebp - 0x468]
push edx
movzx eax, word [ebp - 0x408]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x404]
lea edx, [ecx + eax*2]
push edx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
movzx eax, word [ebp - 0x46c]
movzx ecx, word [ebp - 0x408]
add ecx, eax
mov word [ebp - 0x408], cx
movzx eax, word [ebp - 0x408]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp - 0x404]
mov word [edx + eax*2], 0
push 0x54
push 0
lea eax, [ebp - 0x460]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov dword [ebp - 0x45c], 0x20
mov dword [ebp - 0x458], str.BSBind
lea ecx, [ebp - 0x464]
mov dword [ebp - 0x454], ecx
mov dword [ebp - 0x450], 4
lea edx, [ebp - 0x464]
mov dword [ebp - 0x44c], edx
mov dword [ebp - 0x448], 4
push 0
push 0
lea eax, [ebp - 0x460]
push eax
mov ecx, dword [ebp - 0x404]
push ecx
push 1
call dword [sym.imp.ntoskrnl.exe_RtlQueryRegistryValues]
test eax, eax
jge 0x117c6
xor al, al
jmp 0x117e2
cmp dword [ebp - 0x464], 1
jne 0x117e0
push str.IsWeBindInterface_OK
call fcn.00011090
add esp, 4
mov al, 1
jmp 0x117e2
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x11a90
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
push edi
mov byte [ebp - 0x429], 1
mov word [ebp - 0x200], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x1fe]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0x14]
push eax
call fcn.00011250
movzx ecx, al
test ecx, ecx
jne 0x11ad2
xor al, al
jmp 0x11ca7
push str.RegistryMachineSYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
lea edx, [ebp - 0x440]
push edx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [ebp - 0x224], 0x18
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x218], 0x40
lea eax, [ebp - 0x440]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
lea ecx, [ebp - 0x224]
push ecx
push 0x20019
lea edx, [ebp - 0x430]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
je 0x11b51
xor al, al
jmp 0x11ca7
mov dword [ebp - 0x204], 0
mov eax, dword [ebp - 0x204]
mov dword [ebp - 0x208], eax
mov ecx, 1
test ecx, ecx
je 0x11c94
lea edx, [ebp - 0x20c]
push edx
push 0x200
lea eax, [ebp - 0x428]
push eax
push 0
mov ecx, dword [ebp - 0x204]
push ecx
mov edx, dword [ebp - 0x430]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0x8000001a
jne 0x11bb4
jmp 0x11c94
cmp dword [ebp - 0x438], 0xc0000023
jne 0x11bcc
mov byte [ebp - 0x429], 0
jmp 0x11c94
lea eax, [ebp - 0x428]
mov dword [ebp - 0x434], eax
mov ecx, dword [ebp - 0x204]
add ecx, 1
mov dword [ebp - 0x204], ecx
mov edx, dword [ebp - 0x434]
cmp dword [edx + 0xc], 0x48
jbe 0x11c8f
push 0x200
push 0
lea eax, [ebp - 0x200]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov ecx, dword [ebp - 0x434]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x434]
add eax, 0x10
push eax
lea ecx, [ebp - 0x200]
push ecx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
lea edx, [ebp - 0x200]
push edx
call fcn.00011650
movzx eax, al
test eax, eax
je 0x11c8f
push 0
lea ecx, [ebp - 0x200]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.000112d0
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x11c6f
push 1
lea ecx, [ebp - 0x200]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.000112d0
push 2
lea eax, [ebp - 0x200]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.000112d0
push 0
lea edx, [ebp - 0x200]
push edx
call fcn.00011510
jmp 0x11b67
mov eax, dword [ebp - 0x430]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, byte [ebp - 0x429]
pop edi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x11d30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 1
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x80000005
je 0x11da3
cmp dword [ebp - 0x14], 0xc0000023
je 0x11da3
cmp dword [ebp - 0x14], 0
jl 0x11d97
push 0
push 0x22b
push str.D:wfbsSrcWFNicPnp_nicpnp.c
push str._NT_SUCCESS_status_
call dword [sym.imp.ntoskrnl.exe_RtlAssert]
mov dword [ebp - 0x18], 0
jmp 0x11d9e
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x14]
jmp 0x11e14
push 0x33333838
mov edx, dword [ebp - 0x10]
push edx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x11dc4
mov eax, 0xc000009a
jmp 0x11e14
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
push 1
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x11e0a
cmp dword [ebp - 4], 0
je 0x11e05
push 0x33333838
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
jmp 0x11e14
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x12330
Capabilities:
Create device object
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
push str.RegistryMachineSystemKB_PNP
call fcn.00012210
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x12361
mov eax, 0xc0000001
jmp 0x1248a
lea eax, [ebp - 0x1c]
push eax
push str.disable
mov ecx, dword [ebp - 8]
push ecx
call fcn.00011eb0
test eax, eax
jl 0x1238b
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, 0xc0000001
jmp 0x1248a
mov byte [0x18cc0], 0
lea eax, [ebp - 0x1c]
push eax
push str.debug
mov ecx, dword [ebp - 8]
push ecx
call fcn.00011eb0
test eax, eax
jl 0x123b1
mov dl, byte [ebp - 0x1c]
mov byte [0x18cc0], dl
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push str.Devicedevnicpnp
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0x22
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x12402
push str.__IoCreateDevice_failed
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x1248a
push 0x17c8c
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x1242d
mov eax, dword [ebp - 0x20]
jmp 0x1248a
mov edx, dword [ebp + 8]
mov dword [edx + 0x38], 0x125f0
mov eax, dword [ebp + 8]
mov dword [eax + 0x40], 0x125f0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x70], 0x125f0
mov edx, dword [ebp + 8]
mov dword [edx + 0x34], 0x12490
call fcn.000120b0
call fcn.00011f40
movzx eax, byte [0x18cc0]
test eax, eax
je 0x1247b
call sub.ntoskrnl.exe_InbvAcquireDisplayOwnership
call sub.ntoskrnl.exe_InbvResetDisplay
push 1
call sub.ntoskrnl.exe_InbvEnableDisplayString
push str.DriverEntry_Exit_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x13090
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0xc0000001
mov eax, dword [ebp + 8]
push eax
call fcn.00012210
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x130e4
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x130f9
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.SetRegValueDword__ws:_ws_failed_n
call fcn.00011090
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x13160
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], 0xc0000001
mov eax, dword [ebp + 0x10]
push eax
call sub.ntoskrnl.exe_wcslen
add esp, 4
lea ecx, [eax + eax + 2]
mov word [ebp - 4], cx
push 0x33333838
movzx edx, word [ebp - 4]
push edx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 8], eax
movzx eax, word [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.ntoskrnl.exe_wcscpy
add esp, 8
mov cx, word [ebp - 4]
mov word [ebp - 0xa], cx
mov dx, word [ebp - 4]
mov word [ebp - 0xc], dx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
movzx edx, word [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
push 1
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 8], 0
je 0x13211
push 0x33333838
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x13450
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push str.RegistryMachineSYSTEMControlSet001ControlNetwork_
call fcn.00012210
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1349f
push str.Config
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push str.DeleteNetworkConfigValue_ok_n
call fcn.00011090
add esp, 4
jmp 0x134ac
push str.DeleteNetworkConfigValue_failed_n
call fcn.00011090
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4421b0
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c7e4d
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push ebx
push ebp
mov ebx, ecx
push esi
push edi
xor edi, edi
cmp dword [ebx + 0x78], edi
jne 0x44221e
push 8
call fcn.004bb72e
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov dword [esp + 0x154], edi
je 0x4421fa
mov ecx, eax
call fcn.004ba12b
jmp 0x4421fc
xor eax, eax
push 0xff00ff
push edi
push 0x10
push 0x407
mov ecx, eax
mov dword [esp + 0x164], 0xffffffff
mov dword [ebx + 0x78], eax
call fcn.004ba1f0
mov eax, dword [ebx + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0xffff0000
push edi
push 0x1101
push eax
mov dword [esp + 0x20], edi
call ebp
mov eax, dword [ebx + 0x40]
lea esi, [ebx + 0x40]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x44226c
lea ecx, [esp + 0x48]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x44237e
lea edx, [esp + 0x48]
mov ecx, esi
push edx
call fcn.004bbb2a
jmp 0x442293
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x48]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x44229d
mov eax, dword [eax + 4]
mov ecx, dword [ebx + 0x1c]
push eax
push 0
push 0x1109
push ecx
call ebp
push eax
call fcn.004ba1bd
lea edx, [esp + 0x48]
push 0x522200
push edx
mov esi, 0xffff0000
call fcn.004ac4bb
add esp, 8
test eax, eax
je 0x442320
mov ecx, dword [ebx + 0x1c]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], esi
push eax
push 0
push 0x1100
push ecx
mov dword [esp + 0x28], 0xffff0002
mov dword [esp + 0x44], 2
mov dword [esp + 0x48], 3
mov dword [esp + 0x2c], 0x23
call ebp
push 0x522200
push 0
mov esi, eax
inc edi
call fcn.004ac4bb
add esp, 8
test eax, eax
jne 0x4422cc
mov dword [esp + 0x10], edi
mov edx, dword [ebx + 0x1c]
xor edi, edi
push edi
push edi
push 0x110a
push edx
call ebp
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x442368
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x1c]
push esi
push 2
push 0x1102
push eax
mov edi, esi
call ebp
mov ecx, dword [ebx + 0x1c]
push esi
push 4
push 0x110a
push ecx
call ebp
mov esi, eax
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x44233d
mov edx, dword [ebx + 0x1c]
push edi
push 9
push 0x110b
push edx
call ebp
push edi
mov ecx, ebx
call fcn.004423a0
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x148
ret
Function at 0x4423a0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c7e6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004bb762
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x442422
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004b8bbd
mov eax, dword [eax]
push 0x522200
push eax
call fcn.004ab364
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004bb9ed
test bl, bl
je 0x442422
push 0x522200
lea ecx, [esp + 0xc]
call fcn.004bbd7d
push 0x525e54
lea ecx, [esp + 0xc]
call fcn.004bbd7d
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x44245e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004bb9ed
jmp 0x442529
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4424e2
lea edx, [esp + 0x7c]
push 0x525e50
push edx
call fcn.004ab364
add esp, 8
test eax, eax
je 0x4424e2
lea eax, [esp + 0x7c]
push 0x525e4c
push eax
call fcn.004ab364
add esp, 8
test eax, eax
je 0x4424e2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x442472
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004bb9ed
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4