joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180014c24
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
test r8d, r8d
jle 0x180014c6e
mov r8d, esi
xor r9d, r9d
mov rdx, rbp
sub r8d, ebx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
add rbp, rcx
add ebx, ecx
cmp ecx, 0xffffffff
je 0x180014c85
cmp ebx, esi
jl 0x180014c48
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, 2
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x180014c70

Function at 0x180014ca4
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [rsp + 0x478], 0
mov dword [rsp + 0x47c], 0x64
lea ebx, [rax + 0x7530]
jmp 0x180014d87
mov rax, qword [rdi + 0x20]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x240]
mov qword [rsp + 0x248], rax
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x478]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x240], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 1
call qword [sym.imp.WS2_32.dll_select]
mov rcx, qword [rdi + 0x20]
lea rdx, [rsp + 0x30]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x180014d95
mov rcx, qword [rdi + 0x20]
lea rdx, [rsp + 0x240]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180014d87
mov rcx, qword [rdi + 0x20]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x180014d95
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x180014d95
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jb 0x180014ce8
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180016a6c
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r14, rcx
mov r12d, 0x8000
mov r15, r8
mov ecx, r12d
mov rsi, rdx
call fcn.180019df0
lea r8, str._s
mov r9, r14
mov rcx, rax
mov edx, r12d
mov rbx, rax
call fcn.18001a1ac
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rbx
mov rbp, rax
call fcn.180019db0
cmp rbp, 0xffffffffffffffff
je 0x180016b8a
lea rdi, [rsi + 0x2c]
test byte [rsi], 0x10
je 0x180016b61
mov al, byte [rdi]
cmp al, byte [0x18002c8bc]
jne 0x180016af7
mov al, byte [rdi + 1]
cmp al, byte [0x18002c8bd]
je 0x180016b6d
mov al, byte [rdi]
cmp al, byte [0x18002c8c0]
jne 0x180016b17
mov al, byte [rdi + 1]
cmp al, byte [0x18002c8c1]
jne 0x180016b17
mov al, byte [rdi + 2]
cmp al, byte [0x18002c8c2]
je 0x180016b6d
mov rcx, r12
call fcn.180019df0
lea r8, [0x18002c6c4]
mov r9, rdi
mov rcx, rax
mov rdx, r12
mov rbx, rax
call fcn.18001a1ac
mov r9, r15
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call fcn.180016bac
mov r8d, 1
mov rdx, rbx
mov rcx, r14
call r15
mov rcx, rbx
call fcn.180019db0
jmp 0x180016b6d
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call r15
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180016add
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x180016fcc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x38
call fcn.180016f4c
mov qword [rsp + 0x20], rax
xor eax, eax
cmp eax, 1
je 0x180017044
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x180017035
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0x40
jb 0x180017035
cmp qword [rsp + 0x28], 0x400
jae 0x180017035
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
jne 0x180017035
jmp 0x180017044
mov rax, qword [rsp + 0x20]
dec rax
mov qword [rsp + 0x20], rax
jmp 0x180016fda
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x18001790c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax + 0x18]
mov qword [rsp], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 6]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 8]
dec rax
mov qword [rsp + 8], rax
cmp qword [rsp + 0x20], 0
je 0x1800179f5
mov rax, qword [rsp]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov rax, qword [rsp]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp]
mov eax, dword [rax + 0x10]
mov qword [rsp + 0x18], rax
mov rdi, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x18]
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp]
mov eax, dword [rax + 0x24]
and eax, 0x20000000
cmp eax, 0x20000000
jne 0x1800179e4
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x10]
mov qword [rax], rcx
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x18]
mov dword [rax], ecx
mov rax, qword [rsp]
add rax, 0x28
mov qword [rsp], rax
jmp 0x18001794b
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x18001876c
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r15
sub rsp, 0x40
mov qword [0x180047700], rcx
mov ebx, 0x800
mov ecx, ebx
call fcn.180019df0
mov r8d, ebx
xor edx, edx
mov rcx, rax
mov qword [0x180047708], rax
call fcn.18001a0a0
xor r15d, r15d
lea rbp, str.._._._.._._.__
mov eax, r15d
xor byte [rax + rbp], 0x2e
inc rax
cmp rax, 0x1000
jl 0x1800187b9
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, rbp
call fcn.180013f08
jmp 0x180018886
lea rcx, [rsp + 0x20]
call fcn.180013fb4
lea rcx, [rsp + 0x20]
movsx ebx, ax
call fcn.180013fb4
mov rcx, qword [0x180047708]
movsx rdi, di
mov edx, ebx
movzx esi, ax
shl rdi, 4
mov word [rdi + rcx], bx
dec edx
je 0x180018870
dec edx
je 0x180018859
dec edx
jne 0x180018886
movsx rbx, ax
mov rcx, rbx
call fcn.180019df0
mov rdx, qword [0x180047708]
lea rcx, [rsp + 0x20]
mov qword [rdi + rdx + 8], rax
movsx edx, si
call fcn.180013f50
mov rcx, qword [0x180047708]
mov r8, rbx
mov rcx, qword [rdi + rcx + 8]
mov rdx, rax
call fcn.18001a490
jmp 0x180018886
lea rcx, [rsp + 0x20]
call fcn.180013f18
mov rcx, qword [0x180047708]
mov dword [rdi + rcx + 8], eax
jmp 0x180018886
lea rcx, [rsp + 0x20]
call fcn.180013fb4
mov rdx, qword [0x180047708]
mov word [rdi + rdx + 8], ax
lea rcx, [rsp + 0x20]
call fcn.180013fb4
movzx edi, ax
test ax, ax
jg 0x1800187e0
xor edx, edx
mov r8d, 0x1000
mov rcx, rbp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r15
jmp fcn.18001a0a0

Function at 0x1800190e4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
or rsi, 0xffffffffffffffff
mov rdi, rdx
mov rbx, rcx
lea edx, [rsi + 0x19]
lea r9d, [rsi + 5]
xor ecx, ecx
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [r14 + 0x10], rax
call fcn.18001925c
mov r8, qword [0x180043438]
test r8, r8
je 0x180019159
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, r14
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop r14
ret

Function at 0x180019174
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov esi, 1
mov rdi, rcx
mov rbx, rdx
add dword [0x180043430], esi
lea ecx, [rsi + 0x26]
call fcn.18001873c
cmp ax, si
jne 0x1800191ae
mov rdx, rbx
mov rcx, rdi
call fcn.1800190e4
jmp 0x1800191c9
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, rbx
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1800191dc
Capabilities:
Create thread
Terminate process

Disassembly:
sub rsp, 0x38
mov ecx, 0x37
call fcn.18001873c
mov ecx, 0x27
cmp ax, 1
jne 0x180019216
call fcn.18001873c
cmp ax, 1
jne 0x18001920d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180019200
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
call fcn.18001873c
cmp ax, 1
jne 0x180019251
mov r8, qword [sym.imp.KERNEL32.dll_ExitProcess]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1800195c8
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
lea rax, [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
and dword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r8d, 0x20
mov dl, 2
mov dword [rbp + 0x18], 0
mov word [rbp + 0x1c], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp + 0x10], eax
test eax, eax
je 0x180019648
mov rdx, qword [rbp + 0x20]
lea r8, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp + 0x10], ecx
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp + 0x10]
add rsp, 0x60
pop rbp
ret
Function at 0x180019650
Capabilities:
Impersonate user

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, r9
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
call fcn.180019404
lea rax, [0x180043440]
mov qword [rsp + 0x28], rax
mov r9d, 9
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov dword [rsp + 0x20], 3
call qword [sym.imp.ADVAPI32.dll_LogonUserA]
test eax, eax
jne 0x1800196b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x18
mov edx, eax
call fcn.18000db58
jmp 0x1800197a6
mov rcx, qword [0x180043440]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x1800196d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x19
jmp 0x1800196ad
mov ecx, 0x800
call fcn.180013dfc
mov edx, 0x200
mov rcx, rax
mov qword [0x180043460], rax
call fcn.180013f50
mov rcx, qword [0x180043460]
mov edx, 0x200
mov qword [0x180043448], rax
call fcn.180013f50
mov rcx, qword [0x180043460]
mov edx, 0x400
mov qword [0x180043450], rax
call fcn.180013f50
mov rdx, qword [0x180043450]
mov r8d, 0x100
mov rcx, rbx
mov qword [0x180043458], rax
call fcn.18000f0c4
mov rdx, qword [0x180043448]
mov r8d, 0x100
mov rcx, rsi
call fcn.18000f0c4
mov rdx, qword [0x180043458]
mov r8d, 0x200
mov rcx, rdi
call fcn.18000f0c4
mov rcx, qword [0x180043440]
mov r8d, 0x400
mov rdx, rbx
mov dword [0x180043468], 1
call fcn.180019898
test eax, eax
je 0x1800197a6
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rbx + rdx], 0
jne 0x180019792
mov r8d, reloc.WS2_32.dll_ntohs
mov rcx, rbx
call rbp
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180019acc
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov esi, r8d
mov rdi, rdx
mov rbp, rcx
test r8d, r8d
je 0x180019b26
xor r9d, r9d
mov edx, ebx
mov rcx, rbp
lea r8d, [r9 + 1]
add rdx, rdi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x180019b26
add ebx, eax
cmp ebx, 2
jb 0x180019b22
lea eax, [rbx - 1]
cmp byte [rax + rdi], 0xa
jne 0x180019b22
lea eax, [rbx - 2]
cmp byte [rax + rdi], 0xd
je 0x180019b3e
cmp ebx, esi
jb 0x180019af0
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea ecx, [rbx - 2]
mov eax, ebx
mov byte [rcx + rdi], 0
jmp 0x180019b29

Function at 0x18001af84
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.18001adec

Function at 0x180022a80
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180022a96
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180022a98
xor eax, eax
test eax, eax
je 0x180022aa8
mov ecx, eax
call fcn.18001c4bc
or eax, 0xffffffff
jmp 0x180022aaa
xor eax, eax
add rsp, 0x28
ret
Function at 0x180022ab0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180022ac8
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180022aca
xor eax, eax
test eax, eax
je 0x180022ada
mov ecx, eax
call fcn.18001c4bc
or eax, 0xffffffff
jmp 0x180022adc
xor eax, eax
add rsp, 0x28
ret

Function at 0x180022ae4
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x180022afa
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180022afc
xor eax, eax
test eax, eax
je 0x180022b0c
mov ecx, eax
call fcn.18001c4bc
or eax, 0xffffffff
jmp 0x180022b0e
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001b8c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001bd6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001bd6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001bd6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001bd6
cmp dword [rcx + 0x84], 0xe
jbe 0x140001bd6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001bd8
xor al, al
add rsp, 0x28
ret
Function at 0x140001280
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
sub rsp, 0x228
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
lea rcx, [rsp + 0x60]
mov r8, qword [rax + 0x30]
mov eax, dword [r8 + 0x2fd07]
mov r9d, dword [r8 + 0x2fd0b]
test eax, eax
invalid
je 0x1400012da
lea r10d, [rax - 1]
xor eax, eax
lea rcx, [rsp + 0x60]
jmp 0x1400012c3
mov rax, rdx
mov edx, dword [r8 + rax*4 + 0x2fd0f]
add edx, r9d
cmp r10, rax
ret 0x1489
or dword [rax - 0x73], 0xe6750150
mov qword [rsp + 0x30], rcx
mov eax, dword [rsp + 0x94]
lea rcx, [rsp + 0x20]
add r8, rax
call r8
nop
add rsp, 0x228
ret
Function at 0x140002660
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x260
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x290], rbx
mov rax, qword [0x14003d088]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbp, r8
mov r14, rdx
mov qword [rsp + 0x30], r8
xor ebx, ebx
mov dword [rsp + 0x20], ebx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x40]
call fcn.140010630
cmp qword [rbp + 0x20], 8
jb 0x1400026c2
mov rdx, qword [rbp + 8]
jmp 0x1400026c6
lea rdx, [rbp + 8]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rsi, eax
test eax, eax
jle 0x1400027ab
lea rdi, [rsi + rsi]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x1400027ab
movzx eax, word [rsp + rdi + 0x40]
cmp ax, 0x5c
je 0x140002724
cmp ax, 0x2f
jne 0x14000275f
lea rdx, str.System
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [0x14003db60]
call fcn.140003140
mov rdx, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14000277f
cmp rdi, 0x208
jae 0x140002779
mov word [rsp + rdi + 0x40], bx
dec esi
sub rdi, 2
test esi, esi
jg 0x140002700
jmp 0x1400027ab
call fcn.14000d8ec
int3
cmp word [rsp + 0x40], 0
je 0x14000279a
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140002790
mov r8, rbx
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 8]
call fcn.140005390
lea rax, [0x140036540]
mov qword [r14], rax
lea rax, [0x140036538]
mov qword [r14 + 0x40], rax
mov rdx, rbp
mov rcx, r14
call fcn.140003ee0
nop
mov rcx, rbp
call fcn.140001ee0
mov rax, r14
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14000d750
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400032c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov qword [rcx + 0x18], 0xf
mov rbx, rdx
mov qword [rcx + 0x10], 0
mov rdi, rcx
mov byte [rcx], 0
cmp qword [rdx + 0x18], 0x10
jae 0x1400032fb
mov r8, qword [rdx + 0x10]
add r8, 1
je 0x140003308
call fcn.14000ffa0
jmp 0x140003308
mov rax, qword [rdx]
mov qword [rcx], rax
mov qword [rdx], 0
mov rax, qword [rbx + 0x10]
mov qword [rdi + 0x10], rax
mov rax, qword [rbx + 0x18]
Function at 0x140008350
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x14003d088]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rsi, rcx
mov qword [rsp + 0x40], rdx
xor ecx, ecx
xor r8d, r8d
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov edi, dword [rsi + 8]
mov dword [rsp + 0x50], ecx
or edi, 0x2001f
mov qword [rsp + 0x58], rcx
mov r9d, edi
mov qword [rsp + 0x60], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400084a7
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400083d8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
and edi, 0x300
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], edi
test ebx, ebx
jne 0x1400084a7
xor edi, edi
mov dword [rsp + 0x68], 0x100
lea rax, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x68]
mov qword [rsp + 0x30], rdi
lea r8, [rbp - 0x80]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000847f
nop dword [rax]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x48]
call fcn.140008350
mov ebx, eax
test eax, eax
jne 0x1400084a7
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x68]
mov qword [rsp + 0x30], rdi
lea r8, [rbp - 0x80]
mov qword [rsp + 0x28], rdi
xor edx, edx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x68], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140008430
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140008494
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rdi
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
mov dword [rsp + 0x50], edi
call fcn.1400085c0
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400084b7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14000d750
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x140008510
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140008584
lea rcx, [0x140036b00]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400085a6
lea rdx, [0x140036ae8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400085a6
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x1400085a6
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400085ee
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140008510
cmp byte [0x14003fe28], 0
jne 0x140008639
lea rcx, [0x140036b00]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008629
lea rdx, [0x140036b20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14003fe20], rax
mov byte [0x14003fe28], 1
jmp 0x140008640
mov rax, qword [0x14003fe20]
mov byte [0x14003fe28], 1
jmp 0x140008640
mov rax, qword [0x14003fe20]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14000865f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
Function at 0x1400085c0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140008584
lea rcx, [0x140036b00]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400085a6
lea rdx, [0x140036ae8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400085a6
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x1400085a6
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400085ee
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140008510
cmp byte [0x14003fe28], 0
jne 0x140008639
lea rcx, [0x140036b00]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008629
lea rdx, [0x140036b20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14003fe20], rax
mov byte [0x14003fe28], 1
jmp 0x140008640
mov rax, qword [0x14003fe20]
mov byte [0x14003fe28], 1
jmp 0x140008640
mov rax, qword [0x14003fe20]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14000865f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]