joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001940
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14001e0b4]
mov r12, rcx
test ebx, ebx
jle 0x140001a70
mov rax, qword [0x14001e0b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000198c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001a13
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140001970
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140001a92
mov rax, qword [0x14001e0b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14001e0b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001a0c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a20
add dword [0x14001e0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14001e0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x140001997
mov rax, qword [0x14001e0b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001f50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14001e120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001e100]
test rbx, rbx
je 0x140001fa4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140001f9b
test r12, r12
je 0x140001f9b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f80
lea rcx, [0x14001e120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400021c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400021d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400021e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400021f0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14000223c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x140002233
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x14000223e
add rax, 0x28
cmp rax, r9
jne 0x140002220
xor eax, eax
ret

Function at 0x140002240
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x1400022d0
mov rdx, qword [0x14001aee0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x1400022be
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400022be
cmp word [rax + 0x18], 0x20b
jne 0x1400022be
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x1400022d0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x1400022a9
add r12, 0x28
cmp r12, rsi
je 0x1400022d0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x1400022a0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x1400022e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001aee0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002300
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002308
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002300
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002355
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000234c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002300
add rax, 0x28
cmp rax, r9
jne 0x140002338
xor eax, eax
ret

Function at 0x140002360
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001aee0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002380
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002388
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002380
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1400023a0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14001aee0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400023c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400023c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400023c0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002408
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400023ff
test rcx, rcx
je 0x1400023c0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400023f0
xor eax, eax
ret
Function at 0x140002410
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001aee0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002430
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002438
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140002450
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x14001aee0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002470
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002478
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002470
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002470
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400024b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400024c8
add rax, 0x28
cmp r9, rax
jne 0x1400024a0
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

Function at 0x1400024e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14001aee0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002502
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002510
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002502
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002502
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002502
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14000255d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002570
add rdx, 0x28
cmp r10, rdx
jne 0x140002548
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000257f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000258f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002566
test ecx, ecx
jg 0x140002578
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140003c00
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14001af60]
mov rax, qword [rsi]
test rax, rax
je 0x140003c90
cmp qword [rax + 0x30], 0
jne 0x140003cb0
lea rbx, [0x140019078]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140003c60
cmp qword [rax + 0x30], 0
jne 0x140003c80
lea rdx, [0x140019078]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
pop rbx
pop rsi
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140003c42
test rax, rax
jne 0x140003c80
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140003c50
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140003c20
test rax, rax
jne 0x140003cb0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140003c2b
Function at 0x140007880
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x14001af60]
mov rax, qword [rbx]
mov r12, rcx
mov esi, edx
test rax, rax
je 0x140007950
cmp qword [rax + 0x60], 0
jne 0x140007970
lea rcx, [0x140019068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_lock
mov rcx, r12
call sym.__pthread_get_pointer
test rax, rax
je 0x140007980
cmp qword [rax + 0x1d8], r12
jne 0x140007980
test byte [rax + 0x40], 0xc
jne 0x140007980
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x140007980
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x140007980
mov rax, qword [rbx]
test rax, rax
je 0x1400079e0
cmp qword [rax + 0x60], 0
jne 0x140007a00
lea rcx, [0x140019068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
test esi, esi
je 0x140007a10
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x140007a18
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
jmp sym.pthread_cancel
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x1400078ab
test rax, rax
jne 0x140007970
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x1400078b6
mov rax, qword [rbx]
test rax, rax
je 0x1400079b0
cmp qword [rax + 0x60], 0
jne 0x1400079d0
lea rcx, [0x140019068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rbx]
cmp qword [r8 + 0x60], 0
je 0x14000798f
test rax, rax
jne 0x1400079d0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x14000799a
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x14000791a
test rax, rax
jne 0x140007a00
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140007925
xor eax, eax
jmp 0x1400079a4
mov eax, 0x16
jmp 0x1400079a4
Function at 0x180001370
Capabilities:
Access peb ldr_data
Allocate or change rwx memory
Get kernel32 base address

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov rax, qword gs:[0x60]
lea rsi, str.clr.dll
mov rcx, qword [rax + 0x18]
mov rdi, qword [rcx + 0x20]
mov qword [rsp + 0x30], rdi
mov r13, rdi
mov qword [rsp + 0x20], rdi
nop word [rax + rax]
cmp word [r13 + 0x38], 2
jbe 0x18000158c
mov rbp, qword [r13 + 0x20]
mov r15, qword [r13 + 0x50]
mov r8, rbp
mov rcx, qword [r13 + 0x40]
mov rdx, r15
mov qword [rsp + 0xa0], rbp
call fcn.1800015b0
mov r12, rax
test rax, rax
je 0x18000158c
movsxd rax, dword [rax + 0x3c]
mov rdx, rbp
add rax, r12
mov rcx, r12
mov qword [rsp + 0xa8], rax
mov ebx, dword [rax + 0x54]
mov r8d, ebx
call fcn.180015b80
test eax, eax
je 0x180001454
lea r9, [rsp + 0x90]
mov r8d, 0x40
mov edx, ebx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180001454
mov r8d, dword [rsp + 0x90]
lea r9, [rsp + 0x90]
mov rdi, rbp
mov rsi, r12
mov ecx, ebx
mov edx, ebx
rep movsb byte [rdi], byte [rsi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rsi, str.clr.dll
movsxd rdx, dword [r12 + 0x3c]
xor ebx, ebx
mov rax, qword [rsp + 0xa8]
add rdx, 0x108
add rdx, r12
mov r14d, ebx
mov qword [rsp + 0x28], rdx
cmp bx, word [rax + 6]
jae 0x18000156f
mov r13, rax
nop dword [rax]
nop word [rax + rax]
mov eax, r14d
lea rcx, [rax + rax*4]
cmp dword [rdx + rcx*8 + 0x24], 0
lea rdx, [rdx + rcx*8]
jl 0x18000154d
mov rcx, rbx
nop dword [rax]
movzx eax, word [r15 + rcx*2]
inc rcx
cmp ax, word [rsi + rcx*2 - 2]
jne 0x1800014e5
cmp rcx, 8
jne 0x1800014b0
mov rax, rbx
lea rdi, str..text
nop
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [rdi + rax - 1]
jne 0x1800014e5
cmp rax, 6
jne 0x1800014d0
jmp 0x18000154d
mov eax, dword [rdx + 0xc]
mov ebx, dword [rdx + 8]
add rbp, rax
mov r8d, ebx
mov rdx, rbp
lea rsi, [rax + r12]
mov rcx, rsi
call fcn.180015b80
test eax, eax
je 0x180001543
lea r9, [rsp + 0x98]
mov r8d, 0x40
mov edx, ebx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180001543
mov r8d, dword [rsp + 0x98]
lea r9, [rsp + 0x98]
mov rdi, rbp
mov ecx, ebx
rep movsb byte [rdi], byte [rsi]
mov rcx, rbp
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbp, qword [rsp + 0xa0]
xor ebx, ebx
movzx eax, word [r13 + 6]
lea rsi, str.clr.dll
mov rdx, qword [rsp + 0x28]
inc r14d
cmp r14d, eax
jb 0x180001490
mov r13, qword [rsp + 0x20]
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdi, qword [rsp + 0x30]
lea rsi, str.clr.dll
mov r13, qword [r13]
mov qword [rsp + 0x20], r13
cmp r13, rdi
jne 0x1800013b0
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180001fd0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rbx, [0x180023c50]
mov r8d, 0x104
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edi, edi
movsxd rcx, eax
mov edx, edi
test eax, eax
jle 0x180002017
nop dword [rax]
cmp word [rbx + rcx*2], 0x5c
jne 0x18000200d
test edx, edx
je 0x18000207e
dec edx
dec eax
dec rcx
test rcx, rcx
jg 0x180002000
lea rdx, str.conf.error
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
lea r8, [0x180001f30]
mov qword [0x180023c48], rax
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x180023c48]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
call fcn.180004e14
int3
cdqe
lea rax, [rax*2 + 2]
cmp rax, 0x208
jae 0x180002096
mov word [rax + rbx], di
jmp 0x180002017
call fcn.180002aec
int3

Function at 0x1800020b0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
xor ecx, ecx
call fcn.1800077b4
mov rcx, rax
call fcn.180004e84
call fcn.180004e58
mov esi, eax
mov eax, 0x30c30c31
imul esi
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x15
sub esi, ecx
movsxd rbx, esi
mov rcx, rbx
call fcn.180007df8
mov r8, rbx
xor edx, edx
mov rcx, rax
mov rbp, rax
call fcn.180003e00
xor ebx, ebx
test esi, esi
jle 0x180002139
mov qword [rsp + 0x30], rdi
mov rdi, rbp
call fcn.180004e58
and eax, 0x8000007f
jge 0x180002127
dec eax
or eax, 0xffffff80
inc eax
add al, bl
inc ebx
mov byte [rdi], al
inc rdi
cmp ebx, esi
jl 0x180002114
mov rdi, qword [rsp + 0x30]
mov rcx, rbp
call fcn.1800077f4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x180002150
Capabilities:
Query or enumerate registry key
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x41c0]
mov eax, 0x42c0
call fcn.180015af0
sub rsp, rax
mov rax, qword [0x180022008]
xor rax, rsp
mov qword [rbp + 0x41b0], rax
xor edx, edx
lea rcx, [rbp + 0xa0]
mov r8d, 0x104
call fcn.180003e00
xor edi, edi
mov dword [rsp + 0x64], 0x104
lea r8, [rsp + 0x70]
mov dword [rsp + 0x60], edi
lea rdx, str..DEFAULTSoftware
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x64]
lea rax, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0xa0]
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x180002291
mov qword [rsp + 0x42d0], rbx
mov ebx, edi
nop
mov rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x68]
mov qword [rsp + 0x30], rdi
lea r8, [rbp - 0x60]
mov qword [rsp + 0x28], rdi
mov edx, ebx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x68], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x180002281
lea r8, [rbp - 0x60]
lea rdx, [0x18001f144]
lea rcx, [rbp + 0x1b0]
call fcn.180001060
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x180002230
mov rbx, qword [rsp + 0x42d0]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x180002560
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x180022008]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov r15d, 0x400
lea rbx, [0x18001f0e4]
mov r10d, r15d
lea r9, [0x180023e70]
mov r12d, 0x14
lea rax, [0x180023e84]
xor r13d, r13d
mov dil, 0x2e
nop word [rax + rax]
inc rbx
cmp dil, 0x25
jne 0x1800026df
movzx edi, byte [rbx]
inc rbx
cmp dil, 0x25
je 0x1800026df
cmp dil, 0x32
jl 0x180002723
cmp dil, 0x33
jle 0x180002619
cmp dil, 0x64
je 0x180002619
cmp dil, 0x69
je 0x18000260b
cmp dil, 0x72
jne 0x180002723
xor r13d, r13d
jmp 0x1800026c4
inc r12d
inc r15d
inc r10d
jmp 0x1800026ea
xor r11d, r11d
xor r8d, r8d
nop
mov eax, 0x66666667
lea esi, [r11 + 1]
imul r10d
mov r14d, r11d
mov r11d, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r10b, cl
or r10b, 0x30
mov byte [rsp + r8 + 0x20], r10b
inc r8
mov r10d, edx
test edx, edx
jne 0x180002620
cmp dil, 0x64
je 0x18000269b
sub dil, 0x30
movsx rcx, dil
cmp r14d, ecx
jge 0x180002723
cmp esi, ecx
jge 0x18000269b
mov rax, rcx
lea rdi, [rsp + 0x20]
sub rax, r8
sub ecx, esi
add r11d, eax
movsxd rcx, ecx
add r8, rax
movsxd rax, esi
add rdi, rax
mov eax, 0x30
rep stosb byte [rdi], al
movsxd rax, r11d
lea rcx, [0x180023e84]
add rax, r9
cmp rax, rcx
jae 0x180002723
nop dword [rax]
movzx eax, byte [rsp + r8 + 0x1f]
dec r8
mov byte [r9], al
inc r9
test r8, r8
jne 0x1800026b0
mov eax, 1
mov r10d, r15d
sub eax, r13d
mov r13d, eax
lea rax, [0x180023e84]
cmovne r10d, r12d
jmp 0x1800026ea
mov byte [r9], dil
inc r9
cmp r9, rax
jae 0x180002723
movzx edi, byte [rbx]
test dil, dil
jne 0x1800025c0
mov byte [r9], dil
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800029c0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x180002730
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x180022008]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov r15d, 0x400
lea rbx, [0x18001f184]
mov r10d, r15d
lea r9, [0x180023e58]
mov r12d, 0x14
lea rax, [0x180023e6c]
xor r13d, r13d
mov dil, 0x66
nop word [rax + rax]
inc rbx
cmp dil, 0x25
jne 0x1800028af
movzx edi, byte [rbx]
inc rbx
cmp dil, 0x25
je 0x1800028af
cmp dil, 0x32
jl 0x1800028f3
cmp dil, 0x33
jle 0x1800027e9
cmp dil, 0x64
je 0x1800027e9
cmp dil, 0x69
je 0x1800027db
cmp dil, 0x72
jne 0x1800028f3
xor r13d, r13d
jmp 0x180002894
inc r12d
inc r15d
inc r10d
jmp 0x1800028ba
xor r11d, r11d
xor r8d, r8d
nop
mov eax, 0x66666667
lea esi, [r11 + 1]
imul r10d
mov r14d, r11d
mov r11d, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r10b, cl
or r10b, 0x30
mov byte [rsp + r8 + 0x20], r10b
inc r8
mov r10d, edx
test edx, edx
jne 0x1800027f0
cmp dil, 0x64
je 0x18000286b
sub dil, 0x30
movsx rcx, dil
cmp r14d, ecx
jge 0x1800028f3
cmp esi, ecx
jge 0x18000286b
mov rax, rcx
lea rdi, [rsp + 0x20]
sub rax, r8
sub ecx, esi
add r11d, eax
movsxd rcx, ecx
add r8, rax
movsxd rax, esi
add rdi, rax
mov eax, 0x30
rep stosb byte [rdi], al
movsxd rax, r11d
lea rcx, [0x180023e6c]
add rax, r9
cmp rax, rcx
jae 0x1800028f3
nop dword [rax]
movzx eax, byte [rsp + r8 + 0x1f]
dec r8
mov byte [r9], al
inc r9
test r8, r8
jne 0x180002880
mov eax, 1
mov r10d, r15d
sub eax, r13d
mov r13d, eax
lea rax, [0x180023e6c]
cmovne r10d, r12d
jmp 0x1800028ba
mov byte [r9], dil
inc r9
cmp r9, rax
jae 0x1800028f3
movzx edi, byte [rbx]
test dil, dil
jne 0x180002790
mov byte [r9], dil
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800029c0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x180004e14
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x180004c34
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180004c34
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180004c34
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180004c34
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180004c34
cmp dword [rcx + 0x84], 0xe
jbe 0x180004c34
cmp dword [rcx + 0xf8], esi
je 0x180004c34
mov ecx, r14d
call fcn.180004d7c
mov ecx, 2
call fcn.180009024
nop
cmp byte [0x180023228], 0
jne 0x180004cfe
mov r15d, 1
mov eax, r15d
xchg dword [0x180023218], eax
test ebx, ebx
jne 0x180004ca7
mov rdi, qword [0x180022008]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x180023220]
cmp rcx, rax
je 0x180004c9e
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [0x1800172f0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x180023358]
jmp 0x180004cb3
cmp ebx, r15d
jne 0x180004cb9
lea rcx, [0x180023370]
call fcn.1800088e8
nop
test ebx, ebx
jne 0x180004cd0
lea rdx, [0x180017358]
lea rcx, [0x180017338]
call fcn.180007e00
lea rdx, [0x180017368]
lea rcx, [0x180017360]
call fcn.180007e00
movzx eax, byte [0x180023228]
test esi, esi
cmove eax, r15d
mov byte [0x180023228], al
jmp 0x180004cfe
mov ecx, 2
call fcn.180009078
test esi, esi
jne 0x180004d15
mov ecx, r14d
call fcn.180004d30
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x180004bc4