joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180020ea0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
test eax, eax
jne 0x180020eae
xor eax, eax
test eax, eax
jne 0x180020eae
movzx eax, byte [0x1800c5730]
test eax, eax
jne 0x180020eff
lea rcx, [0x1800a05e0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x180020ef8
lea rdx, [0x1800a05d0]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800c5728], rax
mov byte [0x1800c5730], 1
cmp qword [0x1800c5728], 0
je 0x180020f2a
xor r9d, r9d
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 8]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
call qword [0x1800c5728]
jmp 0x180020f3d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add rsp, 0x38
ret

Function at 0x180020f50
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor eax, eax
test eax, eax
jne 0x180020f5e
xor eax, eax
test eax, eax
jne 0x180020f5e
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
add rsp, 0x28
ret

Function at 0x180021150
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov rax, qword [0x1800c34c8]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rcx, [rsp + 0x50]
call fcn.180020de0
mov r11, qword [rsp + 0x2a0]
mov r9d, dword [r11 + 8]
or r9d, 0x2001f
mov r8, qword [rsp + 0x2a8]
mov rdx, qword [rsp + 0x2a0]
mov rdx, qword [rdx]
lea rcx, [rsp + 0x50]
call fcn.1800210c0
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x1800211d9
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x270], eax
lea rcx, [rsp + 0x50]
call fcn.180020e10
mov eax, dword [rsp + 0x270]
jmp 0x18002129d
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x180021266
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.180021150
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x180021259
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x274], eax
lea rcx, [rsp + 0x50]
call fcn.180020e10
mov eax, dword [rsp + 0x274]
jmp 0x18002129d
mov dword [rsp + 0x40], 0x100
jmp 0x1800211e1
lea rcx, [rsp + 0x50]
call fcn.180020f90
mov rdx, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x2a0]
call fcn.180020ea0
mov dword [rsp + 0x278], eax
lea rcx, [rsp + 0x50]
call fcn.180020e10
mov eax, dword [rsp + 0x278]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.18003c690
add rsp, 0x298
ret
Function at 0x180021860
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
test eax, eax
jne 0x180021873
xor eax, eax
test eax, eax
jne 0x180021873
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x1800218c0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
test eax, eax
jne 0x1800218d8
xor eax, eax
test eax, eax
jne 0x1800218d8
cmp qword [rsp + 0x60], 0
je 0x1800218f6
mov dword [rsp + 0x34], 1
jmp 0x1800218fe
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x180021914
mov eax, reloc.WS2_32.dll_listen
jmp 0x180021956
xor eax, eax
test eax, eax
jne 0x1800218e4
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cdqe
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x48
ret

Function at 0x180021960
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
xor eax, eax
test eax, eax
jne 0x180021973
xor eax, eax
test eax, eax
jne 0x180021973
cmp qword [rsp + 0x70], 0
je 0x180021991
mov dword [rsp + 0x48], 1
jmp 0x180021999
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1800219b2
mov eax, reloc.WS2_32.dll_listen
jmp 0x180021a33
xor eax, eax
test eax, eax
jne 0x18002197f
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [rsp + 0x40], eax
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x38]
lea rax, [rax + rcx*2]
mov qword [rsp + 0x38], rax
mov ecx, dword [rsp + 0x40]
mov eax, dword [rsp + 0x30]
lea rax, [rax + rcx*2]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x40], 1
jne 0x1800219ca
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x58
ret
Function at 0x1800263a0
Capabilities:
Schedule task via itaskscheduler

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
cmp qword [rsp + 0x50], 0
je 0x1800263ce
call fcn.1800366b0
movzx eax, al
test eax, eax
jne 0x1800263d5
mov eax, 0xffffffff
jmp 0x180026435
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x1800a0900]
mov r8d, 1
xor edx, edx
lea rcx, [0x1800a0920]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jge 0x180026418
mov eax, dword [rsp + 0x38]
jmp 0x180026435
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call qword [rax + gethostname]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
add rsp, 0x48
ret
Function at 0x18002abe0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x3d0
mov qword [rsp + 0x390], 0xfffffffffffffffe
mov rax, qword [0x1800c34c8]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
mov dword [rsp + 0x40], 0
lea rdi, [rsp + 0x44]
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0xffffffffffffffff
cmp qword [rsp + 0x3e8], 0
jne 0x18002ac47
jmp 0x18002ae88
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x18002ac65
jmp 0x18002ae88
mov dword [rsp + 0x40], 0x238
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x18002ac85
jmp 0x18002ae88
mov rdx, qword [rsp + 0x3e8]
lea rcx, [rsp + 0x6c]
call fcn.18003ce48
test eax, eax
jne 0x18002ae71
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x48], eax
je 0x18002ae71
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x280], 0
mov ecx, dword [rsp + 0x20]
call fcn.180026440
mov qword [rsp + 0x280], rax
cmp qword [rsp + 0x280], 0
je 0x18002ae71
mov rdx, qword [rsp + 0x280]
lea rcx, [rsp + 0x288]
call fcn.1800118d0
nop
xor r8d, r8d
mov dx, 0x7b
lea rcx, [rsp + 0x288]
call fcn.18002b7b0
mov dword [rsp + 0x2b0], eax
cmp dword [rsp + 0x2b0], 0
je 0x18002ad91
lea rcx, [rsp + 0x288]
call fcn.18002b770
mov r9, rax
movsxd rax, dword [rsp + 0x2b0]
sub r9, rax
movsxd r8, dword [rsp + 0x2b0]
lea rdx, [rsp + 0x2b8]
lea rcx, [rsp + 0x288]
call fcn.18002b830
mov qword [rsp + 0x398], rax
mov rax, qword [rsp + 0x398]
mov qword [rsp + 0x3a0], rax
mov rdx, qword [rsp + 0x3a0]
lea rcx, [rsp + 0x288]
call fcn.180015c80
nop
lea rcx, [rsp + 0x2b8]
call fcn.180011f30
mov rax, qword [rsp + 0x280]
mov qword [rsp + 0x2e0], rax
mov rcx, qword [rsp + 0x2e0]
call fcn.18003b7f8
lea rax, [rsp + 0x318]
mov qword [rsp + 0x340], rax
lea rdx, [rsp + 0x288]
mov rcx, qword [rsp + 0x340]
call fcn.180011b10
mov qword [rsp + 0x3a8], rax
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x3a8]
lea rcx, [rsp + 0x348]
call fcn.18002e6c0
mov qword [rsp + 0x3b0], rax
mov rax, qword [rsp + 0x3b0]
mov qword [rsp + 0x3b8], rax
mov rdx, qword [rsp + 0x3b8]
lea rcx, [rsp + 0x2e8]
call fcn.18002e720
nop
mov rcx, qword [rsp + 0x3e0]
add rcx, 0x120
lea r8, [rsp + 0x2e8]
lea rdx, [rsp + 0x378]
call fcn.18002b930
nop
lea rcx, [rsp + 0x2e8]
call fcn.18002aec0
nop
lea rcx, [rsp + 0x348]
call fcn.18002aec0
nop
lea rcx, [rsp + 0x288]
call fcn.180011f30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x18002ac85
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x18002aea4
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x28], 0xffffffffffffffff
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.18003c690
add rsp, 0x3d0
pop rdi
ret
Function at 0x18002b6e0
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x411
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x18002b710
xor al, al
jmp 0x18002b73b
xor edx, edx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x18002b725
xor al, al
jmp 0x18002b73b
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x20], 0
mov al, 1
add rsp, 0x38
ret
Function at 0x1800321f0
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xcc0
mov qword [rsp + 0xca8], 0xfffffffffffffffe
mov rax, qword [0x1800c34c8]
xor rax, rsp
mov qword [rsp + 0xcb8], rax
mov byte [rsp + 0x870], 0
xor eax, eax
mov word [rsp + 0x40], ax
lea rdi, [rsp + 0x42]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0xa90], ax
lea rdi, [rsp + 0xa92]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x250], ax
lea rdi, [rsp + 0x252]
xor eax, eax
mov ecx, 0x616
rep stosb byte [rdi], al
lea rdx, [0x1800a1a98]
lea rcx, [rsp + 0x880]
call fcn.180035b60
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x880]
call fcn.180035bc0
lea r8, [rsp + 0x40]
mov edx, 0x104
lea rcx, [rsp + 0xa90]
call fcn.18003c9d4
mov cl, 1
call fcn.180036620
movzx eax, al
test eax, eax
je 0x1800322cb
lea rax, [0x1800a1aa8]
mov qword [rsp + 0xcb0], rax
jmp 0x1800322da
lea rax, [0x1800a1ac8]
mov qword [rsp + 0xcb0], rax
mov r8, qword [rsp + 0xcb0]
mov edx, 0x104
lea rcx, [rsp + 0xa90]
call fcn.18003ca58
lea rcx, [rsp + 0xa90]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1800323a7
mov edx, 0x30c
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, str._rundll32.exe__
mov edx, 0x30c
lea rcx, [rsp + 0x250]
call fcn.18003ca58
lea r8, [rsp + 0xa90]
mov edx, 0x30c
lea rcx, [rsp + 0x250]
call fcn.18003ca58
lea r8, [0x1800a1b08]
mov edx, 0x30c
lea rcx, [rsp + 0x250]
call fcn.18003ca58
lea r8, str.RundllInstall
mov edx, 0x30c
lea rcx, [rsp + 0x250]
call fcn.18003ca58
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x250]
xor ecx, ecx
call fcn.180034bd0
mov byte [rsp + 0x870], al
movzx eax, byte [rsp + 0x870]
mov byte [rsp + 0xca0], al
lea rcx, [rsp + 0x880]
call fcn.1800378d0
mov al, byte [rsp + 0xca0]
mov rcx, qword [rsp + 0xcb8]
xor rcx, rsp
call fcn.18003c690
add rsp, 0xcc0
pop rdi
ret
Function at 0x1800334b0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x6c0
mov rax, qword [0x1800c34c8]
xor rax, rsp
mov qword [rsp + 0x6b8], rax
xor eax, eax
mov word [rsp + 0x280], ax
lea rdi, [rsp + 0x282]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8, qword [rsp + 0x6d0]
mov edx, 0x104
lea rcx, [rsp + 0x280]
call fcn.18003c9d4
lea rcx, [rsp + 0x280]
call fcn.18003d0c8
movzx eax, word [rsp + rax*2 + 0x27e]
cmp eax, 0x5c
je 0x180033539
lea r8, [0x1800a20f8]
mov edx, 0x104
lea rcx, [rsp + 0x280]
call fcn.18003ca58
jmp 0x180033552
lea r8, [0x1800a2100]
mov edx, 0x104
lea rcx, [rsp + 0x280]
call fcn.18003ca58
mov dword [rsp + 0x30], 0
lea rdi, [rsp + 0x34]
xor eax, eax
mov ecx, 0x24c
rep stosb byte [rdi], al
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x490], rax
cmp qword [rsp + 0x490], 0xffffffffffffffff
je 0x1800336a7
lea rdx, [0x1800a2104]
lea rcx, [rsp + 0x5c]
call fcn.18003ce48
test eax, eax
je 0x18003367e
lea rdx, [0x1800a2108]
lea rcx, [rsp + 0x5c]
call fcn.18003ce48
test eax, eax
je 0x18003367e
xor eax, eax
mov word [rsp + 0x4a0], ax
lea rdi, [rsp + 0x4a2]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8, qword [rsp + 0x6d0]
mov edx, 0x104
lea rcx, [rsp + 0x4a0]
call fcn.18003c9d4
lea r8, [0x1800a2110]
mov edx, 0x104
lea rcx, [rsp + 0x4a0]
call fcn.18003ca58
lea r8, [rsp + 0x5c]
mov edx, 0x104
lea rcx, [rsp + 0x4a0]
call fcn.18003ca58
mov edx, 0x80
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [rsp + 0x30]
and eax, 0x10
test eax, eax
je 0x180033656
lea rcx, [rsp + 0x4a0]
call fcn.1800334b0
jmp 0x18003367e
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18003367e
mov r8d, 4
xor edx, edx
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x490]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180033592
mov rcx, qword [rsp + 0x490]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x6d0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1800336bf
mov al, 1
jmp 0x1800336f2
mov r8d, 4
xor edx, edx
mov rcx, qword [rsp + 0x6d0]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1800336e3
mov byte [rsp + 0x6b0], 1
jmp 0x1800336eb
mov byte [rsp + 0x6b0], 0
mov al, byte [rsp + 0x6b0]
mov rcx, qword [rsp + 0x6b8]
xor rcx, rsp
call fcn.18003c690
add rsp, 0x6c0
pop rdi
ret
Function at 0x180033710
Capabilities:
Check if file exists
Get file size

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rsp + 0x48], 0xffffffffffffffff
mov dword [rsp + 0x40], 0
lea rdi, [rsp + 0x44]
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1800337a2
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x1800337a2
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x40]
add rsp, 0x50
pop rdi
ret
Function at 0x180033c90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call fcn.180011f90
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x180033ccc
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
jne 0x180033ccc
mov dword [rsp + 0x24], 1
jmp 0x180033cd4
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x24]
add rsp, 0x38
ret

Function at 0x180033de0
Capabilities:
Read .ini file

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
call fcn.180011f90
mov r9, rax
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add rsp, 0x28
ret

Function at 0x180033e20
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x110
mov rax, qword [0x1800c34c8]
xor rax, rsp
mov qword [rsp + 0x100], rax
xor eax, eax
mov word [rsp + 0x40], ax
lea rdi, [rsp + 0x42]
xor eax, eax
mov ecx, 0x5e
rep stosb byte [rdi], al
mov r9, qword [rsp + 0x138]
lea r8, [0x1800a2278]
mov edx, Ordinal_50
lea rcx, [rsp + 0x40]
call fcn.18003d0a4
mov rcx, qword [rsp + 0x120]
call fcn.180011f90
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], Ordinal_50
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0x40]
mov rdx, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0xa0]
call fcn.18003db10
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.18003c690
add rsp, 0x110
pop rdi
ret
Function at 0x180034350
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x310
mov rax, qword [0x1800c34c8]
xor rax, rsp
mov qword [rsp + 0x308], rax
mov qword [rsp + 0x270], 0
lea rdi, [rsp + 0x278]
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov dword [rsp + 0x290], 0
lea rdi, [rsp + 0x298]
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x60], ax
lea rdi, [rsp + 0x62]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
cmp qword [rsp + 0x328], 0
je 0x1800343f4
mov r8, qword [rsp + 0x328]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.18003c9d4
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rcx, [rsp + 0x60]
call fcn.18003d0c8
test rax, rax
jbe 0x180034412
lea rax, [rsp + 0x60]
mov qword [rsp + 0x300], rax
jmp 0x18003441e
mov qword [rsp + 0x300], 0
lea rax, [rsp + 0x270]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x290]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x300]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x330]
mov rcx, qword [rsp + 0x328]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x180034482
xor eax, eax
jmp 0x180034498
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x308]
xor rcx, rsp
call fcn.18003c690
add rsp, 0x310
pop rdi
ret
Function at 0x1800344c0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x330
mov rax, qword [0x1800c34c8]
xor rax, rsp
mov qword [rsp + 0x328], rax
mov qword [rsp + 0x288], 0
lea rdi, [rsp + 0x290]
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov dword [rsp + 0x2b0], 0
lea rdi, [rsp + 0x2b8]
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x70], ax
lea rdi, [rsp + 0x72]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov qword [rsp + 0x2a0], 0
mov rcx, qword [rsp + 0x340]
call fcn.1800346d0
mov qword [rsp + 0x280], rax
cmp qword [rsp + 0x280], 0
jne 0x18003456a
xor eax, eax
jmp 0x1800346b5
cmp qword [rsp + 0x348], 0
je 0x180034597
mov r8, qword [rsp + 0x348]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.18003c9d4
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov dword [rsp + 0x2b0], WSASetLastError
lea rax, str.winsta0default
mov qword [rsp + 0x2c0], rax
mov r8d, 1
mov rdx, qword [rsp + 0x280]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov dword [rsp + 0x2a8], 0x430
lea rcx, [rsp + 0x70]
call fcn.18003d0c8
test rax, rax
jbe 0x1800345f6
lea rax, [rsp + 0x70]
mov qword [rsp + 0x320], rax
jmp 0x180034602
mov qword [rsp + 0x320], 0
lea rax, [rsp + 0x288]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x2b0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x320]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x2a0]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x2a8]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x350]
mov rdx, qword [rsp + 0x348]
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x18003467b
xor eax, eax
jmp 0x1800346b5
cmp qword [rsp + 0x2a0], 0
je 0x180034694
mov rcx, qword [rsp + 0x2a0]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp qword [rsp + 0x290], 0
je 0x1800346ad
mov rcx, qword [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x288]
mov rcx, qword [rsp + 0x328]
xor rcx, rsp
call fcn.18003c690
add rsp, 0x330
pop rdi
ret
Function at 0x1800346d0
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov dword [rsp + 0x48], 0xffffffff
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0xffffffff
jne 0x180034715
mov dword [rsp + 0x48], 1
mov rax, qword [rsp + 0x80]
movzx eax, byte [rax + 1]
test eax, eax
je 0x180034740
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x40]
mov edx, 0xf00ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
jmp 0x18003479b
mov rax, qword [rsp + 0x80]
movzx eax, byte [rax]
test eax, eax
je 0x18003479b
lea rdx, [rsp + 0x40]
mov ecx, dword [rsp + 0x48]
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
jne 0x18003479b
mov rcx, qword [rsp + 0x80]
call fcn.1800348d0
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18003479b
lea r8, [rsp + 0x40]
mov edx, 0xf00ff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rsp + 0x38]
mov edx, reloc.WS2_32.dll_send
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1800347f4
mov rax, qword [rsp + 0x80]
movzx eax, byte [rax + 1]
test eax, eax
je 0x1800347ef
mov r9d, 4
lea r8, [rsp + 0x48]
mov edx, reloc.WS2_32.dll_inet_ntoa
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
jmp 0x1800348c2
mov dword [rsp + 0x60], 0
lea rdi, [rsp + 0x64]
xor eax, eax
mov ecx, reloc.WS2_32.dll_inet_ntoa
rep stosb byte [rdi], al
mov dword [rsp + 0x58], 0
lea rdi, [rsp + 0x5c]
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
lea r8, [rsp + 0x58]
lea rdx, [0x1800a22f8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [rsp + 0x60], 1
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x64], rax
mov dword [rsp + 0x6c], 2
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 1
xor r8d, r8d
mov edx, 0x2000000
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x1800348c2
mov r9d, 4
lea r8, [rsp + 0x48]
mov edx, reloc.WS2_32.dll_inet_ntoa
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rax, qword [rsp + 0x38]
add rsp, 0x70
pop rdi
ret