joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014e30
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10014f2e
push 0x20000000
push str.Interenet_Optimizer
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10014efe
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x40], 0x10
je 0x10014eaa
cmp dword [ebp - 0x40], 2
jne 0x10014eb3
mov dword [ebp - 4], 0
jmp 0x10014ef2
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x10014ece
mov dword [ebp - 4], 0
jmp 0x10014ef2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10014ee5
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
jmp 0x10014eec
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10014f22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10014f15
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
jmp 0x10014f1c
mov dword [ebp - 0x1c], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10014f52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x10014f45
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
jmp 0x10014f4c
mov dword [ebp - 0x24], 0xffffffff
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10014f60
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0xffffffff
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10015020
push 0x10000
push str.Interenet_Optimizer
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10014ff0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x10014fc0
mov dword [ebp - 4], 0
jmp 0x10014fe4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10014fd7
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
jmp 0x10014fde
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10015014
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10015007
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
jmp 0x1001500e
mov dword [ebp - 0x1c], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10015044
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x10015037
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
jmp 0x1001503e
mov dword [ebp - 0x24], 0xffffffff
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10015050
Capabilities:
Create service
Get common file path
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0xffffffff
push 0x104
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x105
lea ecx, [ebp - 0x438]
push ecx
push 0
call fcn.10017e4d
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x438]
push edx
lea eax, [ebp - 0x22c]
push eax
push str.__s_rundll32.exe____s__service
push 0x209
lea ecx, [ebp - 0x84c]
push ecx
call fcn.10007f90
add esp, 0x14
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x100151ca
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x84c]
push ecx
push 0
push 2
push 0x10
push 0xa0000000
push 0x100263d0
push str.Interenet_Optimizer
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10015125
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0
jmp 0x100151be
push str.Interenet_Optimizer
push 0x100263d0
push str._s___s_
push 0x200
lea ecx, [ebp - 0xc4c]
push ecx
call fcn.10007f90
add esp, 0x14
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x84c]
push ecx
push 0
push 2
push 0x10
push 0xa0000000
lea edx, [ebp - 0xc4c]
push edx
push str.Interenet_Optimizer
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1001519a
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0
jmp 0x100151be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x100151b1
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
jmp 0x100151b8
mov dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x100151ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x100151e1
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
jmp 0x100151e8
mov dword [ebp - 0x1c], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x10015ab0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b33a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1c]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10003510
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x20], 0
je 0x10015af7
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10015b76
mov ecx, dword [ebp - 0x10]
call fcn.10016a80
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x28], 0
je 0x10015b1f
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x28], 0
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x20], 0
je 0x10015b3f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x20], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], 1
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x40], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x44], 0
mov eax, dword [ebp - 0x10]
add eax, 0x2c
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x48]
push edx
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
jmp 0x10015c1c
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x9c], 1
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0xa0], 0
je 0x10015b9c
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [ebp - 0x1c]
call fcn.100035e0
push 0x1388
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10015bc9
push 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0xa0], 0
je 0x10015bf2
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xa0], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x30], 1
je 0x10015c1c
push 1
mov ecx, dword [ebp - 0x10]
call fcn.10015ab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10003550
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x10016a80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x10016ac1
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.10009190
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esp, ebp
pop ebp
ret

Function at 0x10016b00
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
cmp dword [ebp + 0xc], 1
jne 0x10016c3b
push 0x105
lea eax, [ebp - 0x228]
push eax
push 0
call fcn.10017e4d
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x10016b3b
xor eax, eax
jmp 0x10016c40
lea ecx, [ebp - 0x228]
push ecx
mov ecx, 0x100289d4
call fcn.10007530
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x10016b7b
xor eax, eax
jmp 0x10016c40
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x10016b9e
cmp dword [ebp - 0x10], 0
jne 0x10016ba5
xor eax, eax
jmp 0x10016c40
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 8], eax
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax - 0x150]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax - 0x110]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
mov ecx, dword [eax - 0x10]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0xda7affff
jne 0x10016c3b
mov edx, dword [ebp - 0x14]
movzx eax, word [edx]
test eax, eax
je 0x10016c1b
mov ecx, dword [ebp - 0x14]
push ecx
push 0x40
push str.Interenet_Optimizer
call fcn.1000adbe
add esp, 0xc
mov edx, dword [ebp - 0x18]
movzx eax, word [edx]
test eax, eax
je 0x10016c3b
mov ecx, dword [ebp - 0x18]
push ecx
push pe_nt_image_headers32
push 0x100263d0
call fcn.1000adbe
add esp, 0xc
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10017286
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jne 0x10017297
xor eax, eax
jmp 0x1001741f
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xor eax, 0xffffffff
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0xc], 8
jb 0x100173e6
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
xor eax, dword [ebp + 0x10]
and eax, 0xff
mov ecx, dword [ebp + 0x10]
shr ecx, 8
xor ecx, dword [eax*4 + 0x10026650]
mov dword [ebp + 0x10], ecx
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
xor eax, dword [ebp + 0x10]
and eax, 0xff
mov ecx, dword [ebp + 0x10]
shr ecx, 8
xor ecx, dword [eax*4 + 0x10026650]
mov dword [ebp + 0x10], ecx
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
xor eax, dword [ebp + 0x10]
and eax, 0xff
mov ecx, dword [ebp + 0x10]
shr ecx, 8
xor ecx, dword [eax*4 + 0x10026650]
mov dword [ebp + 0x10], ecx
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
xor eax, dword [ebp + 0x10]
and eax, 0xff
mov ecx, dword [ebp + 0x10]
shr ecx, 8
xor ecx, dword [eax*4 + 0x10026650]
mov dword [ebp + 0x10], ecx
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
xor eax, dword [ebp + 0x10]
and eax, 0xff
mov ecx, dword [ebp + 0x10]
shr ecx, 8
xor ecx, dword [eax*4 + 0x10026650]
mov dword [ebp + 0x10], ecx
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
xor eax, dword [ebp + 0x10]
and eax, 0xff
mov ecx, dword [ebp + 0x10]
shr ecx, 8
xor ecx, dword [eax*4 + 0x10026650]
mov dword [ebp + 0x10], ecx
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
xor eax, dword [ebp + 0x10]
and eax, 0xff
mov ecx, dword [ebp + 0x10]
shr ecx, 8
xor ecx, dword [eax*4 + 0x10026650]
mov dword [ebp + 0x10], ecx
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
xor eax, dword [ebp + 0x10]
and eax, 0xff
mov ecx, dword [ebp + 0x10]
shr ecx, 8
xor ecx, dword [eax*4 + 0x10026650]
mov dword [ebp + 0x10], ecx
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sub eax, 8
mov dword [ebp + 0xc], eax
jmp 0x100172a6
cmp dword [ebp + 0xc], 0
je 0x1001741a
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
xor eax, dword [ebp + 0x10]
and eax, 0xff
mov ecx, dword [ebp + 0x10]
shr ecx, 8
xor ecx, dword [eax*4 + 0x10026650]
mov dword [ebp + 0x10], ecx
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0xc], eax
jne 0x100173ec
mov eax, dword [ebp + 0x10]
not eax
leave
ret
Function at 0x10017421
Capabilities:
Get common file path
Get system information on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b530
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x600
and dword [ebp - 0x10], 0
push 0x24
push 0
lea eax, [ebp - 0x6c]
push eax
call fcn.10009190
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x6c]
cmp eax, 9
je 0x10017488
push str.RUNDLL32.EXE
mov ecx, dword [ebp + 8]
call fcn.100078cf
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
jmp 0x10017652
xor eax, eax
mov word [ebp - 0x28c], ax
push 0x206
push 0
lea eax, [ebp - 0x28a]
push eax
call fcn.10009190
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.100045f0
mov dword [ebp - 4], 1
push 0
push 0
lea ecx, [ebp - 0x60c]
call fcn.1001a7d0
mov byte [ebp - 4], 2
push 3
lea ecx, [ebp - 0x60c]
call fcn.10017e70
cmp dword [ebp - 0x554], 0
je 0x10017528
push 0x104
lea eax, [ebp - 0x28c]
push eax
call dword [ebp - 0x554]
test eax, eax
je 0x10017528
lea eax, [ebp - 0x28c]
push eax
push str._sRUNDLL32.EXE
lea eax, [ebp - 0x48]
push eax
call fcn.10017de8
add esp, 0xc
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x30]
call fcn.10003610
lea ecx, [ebp - 0x48]
call fcn.10002570
jmp 0x100175c6
push 0x104
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x10017592
push 0x104
lea eax, [ebp - 0x28c]
push eax
push str.SYSTEMROOT
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x10017592
push str.RUNDLL32.EXE
mov ecx, dword [ebp + 8]
call fcn.100078cf
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60c]
call fcn.10001c20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.10002570
mov eax, dword [ebp + 8]
jmp 0x10017652
lea eax, [ebp - 0x28c]
push eax
push str._sSysWOW64RUNDLL32.EXE
lea eax, [ebp - 0x84]
push eax
call fcn.10017de8
add esp, 0xc
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.10003610
lea ecx, [ebp - 0x84]
call fcn.10002570
lea ecx, [ebp - 0x30]
call fcn.10003710
movzx eax, al
test eax, eax
jne 0x100175e9
push 0
lea eax, [ebp - 0x30]
push eax
call fcn.10016eb4
pop ecx
pop ecx
movzx eax, al
test eax, eax
jne 0x1001761f
push str.RUNDLL32.EXE
mov ecx, dword [ebp + 8]
call fcn.100078cf
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60c]
call fcn.10001c20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.10002570
mov eax, dword [ebp + 8]
jmp 0x10017652
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
call fcn.1000790f
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60c]
call fcn.10001c20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.10002570
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x100178c3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 8]
push eax
push 0x20219
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
and dword [ebp - 0xc], 0
cmp dword [ebp - 4], 0
jne 0x10017934
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1001792b
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 4
je 0x10017925
jmp 0x1001792b
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x100179d1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b55c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
and dword [ebp - 0x2c], 0
lea eax, [ebp - 0x24]
push eax
push 0x20219
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x4c]
call fcn.100045f0
and dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0
jne 0x10017b7d
push 0x20008
lea ecx, [ebp - 0x14]
call fcn.100079a0
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 0x20000
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.10007a2f
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x10], 0x20000
jbe 0x10017a94
mov eax, dword [ebp - 0x10]
add eax, 8
push eax
lea ecx, [ebp - 0x14]
call fcn.10007a3d
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.10007a2f
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
push 8
push 0
lea ecx, [ebp - 0x14]
call fcn.10007a2f
add eax, dword [ebp - 0x10]
push eax
call fcn.10009190
add esp, 0xc
cmp dword [ebp - 0x1c], 0
jne 0x10017b68
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jbe 0x10017b68
cmp dword [ebp - 0x20], 3
jbe 0x10017ad7
cmp dword [ebp - 0x20], 4
je 0x10017b37
jmp 0x10017b68
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
jmp 0x10017aec
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jae 0x10017b0b
lea ecx, [ebp - 0x14]
call fcn.10007a2f
mov ecx, dword [ebp - 0x18]
movzx eax, word [eax + ecx*2]
test eax, eax
jne 0x10017b09
jmp 0x10017b0b
jmp 0x10017ae5
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.10007a2f
push eax
lea ecx, [ebp - 0x64]
call fcn.1000788c
mov dword [ebp - 0x30], eax
push dword [ebp - 0x30]
lea ecx, [ebp - 0x4c]
call fcn.10003610
lea ecx, [ebp - 0x64]
call fcn.10002570
jmp 0x10017b68
lea ecx, [ebp - 0x14]
call fcn.10007a2f
push dword [eax]
push 0x10021b7c
lea eax, [ebp - 0x7c]
push eax
call fcn.10017de8
add esp, 0xc
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x4c]
call fcn.10003610
lea ecx, [ebp - 0x7c]
call fcn.10002570
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.10007a04
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 8]
call fcn.1000790f
mov eax, dword [ebp - 0x2c]
or eax, 1
mov dword [ebp - 0x2c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.10002570
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x10017d9a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf023f
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10017de6
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret