joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140154850
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov r14, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.140139d68
mov rax, qword [rbp - 0x58]
mov edi, 0xfde9
cmp dword [rax + 0xc], edi
jne 0x14015489b
xor ebx, ebx
cmp byte [rbp - 0x48], bl
je 0x1401548cf
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401548cf
call fcn.140159fa4
xor ebx, ebx
test eax, eax
jne 0x1401548bd
cmp byte [rbp - 0x48], bl
je 0x1401548b6
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, 1
jmp 0x1401548cf
cmp byte [rbp - 0x48], bl
je 0x1401548cd
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, ebx
mov r9d, edi
mov qword [rbp - 0x30], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x28], rbx
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x20], rbx
mov rcx, rsi
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rbx
mov byte [rbp - 8], bl
call fcn.14014a974
mov esi, eax
test eax, eax
je 0x14015490b
call fcn.14015282c
or edi, 0xffffffff
mov dword [rax], esi
jmp 0x140154964
mov r9d, edi
mov qword [rbp - 0x60], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x58], rbx
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x50], rbx
mov rcx, r14
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x38], bl
call fcn.14014a974
mov edi, eax
test eax, eax
je 0x140154947
call fcn.14015282c
mov dword [rax], edi
or edi, 0xffffffff
jmp 0x140154956
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x20]
call fcn.14015eff0
mov edi, eax
cmp byte [rbp - 0x38], bl
je 0x140154964
mov rcx, qword [rbp - 0x50]
call fcn.1401593b0
cmp byte [rbp - 8], bl
je 0x140154972
mov rcx, qword [rbp - 0x20]
call fcn.1401593b0
lea r11, [rsp + 0x80]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1401553e8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140167000
sub rsp, rax
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14014d5a4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140155437
mov rax, rbp
jmp 0x14015553f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x1f1da0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14014f7d0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1f1da0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14015553b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14015553b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14014f7d0
test rax, rax
js 0x14015553b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14015553b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14015552d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14015552d
cmp byte [rcx], 0xd
jne 0x140155513
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140155522
cmp byte [rcx + 1], 0xa
jne 0x140155522
inc rcx
jmp 0x140155522
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1ef180]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401554f5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14015553f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401312e0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14015e8f4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14015e914
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401527a0
or eax, 0xffffffff
jmp 0x14015e916
xor eax, eax
add rsp, 0x28
ret

Function at 0x14015e9b4
Capabilities:
Clear file content

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 rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14014f7d8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14014f7d8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14015eb04
cmp rax, 0xffffffffffffffff
je 0x14015eb04
xor edi, edi
test rbp, rbp
jle 0x14015eaaf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14015c5ec
mov rbx, rax
test rax, rax
jne 0x14015ea3c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14015eaa5
mov edx, 0x8000
mov ecx, r14d
call fcn.140152acc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14014d294
cmp eax, 0xffffffff
je 0x14015ea85
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14015ea4c
mov edx, r15d
mov ecx, r14d
call fcn.140152acc
jmp 0x14015eaa5
cmp byte [rsi + 0x38], dil
je 0x14015ea9c
cmp dword [rsi + 0x34], 5
jne 0x14015ea9c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x14015eaa5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401593b0
jmp 0x14015eb18
jns 0x14015eb18
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14014f7d8
cmp rax, 0xffffffffffffffff
jne 0x14015ead0
cmp byte [rsi + 0x30], dil
je 0x14015eb18
mov edi, dword [rsi + 0x2c]
jmp 0x14015eb18
mov ecx, r14d
call fcn.14014fd6c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14015eb18
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x14015eb18
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14015eb11
mov eax, dword [rsi + 0x2c]
jmp 0x14015eb16
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14014f7d8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14015ec10
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140139d68
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14015ec9a
cmp byte [rbp - 0x21], r15b
je 0x14015ec95
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14015ecd0
call fcn.140159fa4
test eax, eax
jne 0x14015ecbc
cmp byte [rbp - 0x21], r15b
je 0x14015ecb4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14015ecd0
cmp byte [rbp - 0x21], r15b
je 0x14015eccd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14014a974
test eax, eax
jne 0x14015ed70
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140139d68
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14015ed0f
cmp byte [rbp - 0x21], r15b
je 0x14015ed44
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14015ed44
call fcn.140159fa4
test eax, eax
jne 0x14015ed30
cmp byte [rbp - 0x21], r15b
je 0x14015ed29
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14015ed44
cmp byte [rbp - 0x21], r15b
je 0x14015ed41
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14014a974
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14015ed70
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14015ed73
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14015ed81
mov rcx, rdi
call fcn.1401593b0
cmp byte [rbp + 0x3f], r15b
je 0x14015ed90
mov rcx, qword [rbp + 0x27]
call fcn.1401593b0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14015ee84
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14015eeb6
call fcn.14015282c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140137e98
jmp 0x14015efd5
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14015efd5
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14015efd5
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14015eee5
lock or dword [rcx + 0x14], 0x10
jmp 0x14015efd5
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14015eef9
call fcn.140164d44
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14014d5a4
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14014ea00
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14015efc3
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14015ef8e
mov rcx, rsi
call fcn.14014d5a4
cmp eax, edi
je 0x14015ef79
mov rcx, rsi
call fcn.14014d5a4
cmp eax, 0xfffffffe
je 0x14015ef79
mov rcx, rsi
call fcn.14014d5a4
movsxd rbx, eax
lea r14, [0x1401f1da0]
mov rcx, rsi
sar rbx, 6
call fcn.14014d5a4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14015ef80
lea rdx, [0x1401ef420]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14015ef8e
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14015efb2
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14015efb2
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14015efb2
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14015efd8
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1401603dc
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14016040c
xor eax, eax
jmp 0x1401604cf
mov rbp, rbx
cmp word [rax], si
je 0x140160431
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140160418
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140160414
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1401596e4
movsxd r14, eax
test eax, eax
jne 0x14016046f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140160405
mov rcx, r14
call fcn.140159c24
mov rdi, rax
test rax, rax
jne 0x140160488
xor ecx, ecx
call fcn.1401593b0
jmp 0x140160464
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1401596e4
test eax, eax
jne 0x1401604b9
mov rcx, rdi
call fcn.1401593b0
jmp 0x1401604c3
xor ecx, ecx
call fcn.1401593b0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1401604ec
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140160573
mov rsi, rbx
cmp word [rax], bp
je 0x140160532
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14016051c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140160518
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140159c24
mov rdi, rax
test rax, rax
je 0x140160560
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140133620
mov rbp, rdi
xor ecx, ecx
call fcn.1401593b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140163338
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140163358
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401527a0
or eax, 0xffffffff
jmp 0x14016335a
xor eax, eax
add rsp, 0x28
ret
Function at 0x140012420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140012453
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140012499
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140012494
nop
cmp rbx, rcx
jae 0x140012499
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
dec edi
jne 0x140012480
cmp rbx, rcx
jb 0x14001249d
xor eax, eax
jmp 0x1400124a9
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140013eb0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret
Function at 0x1400146f0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14025eb40]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
lea rcx, [rsp + 0x48]
or r9d, 0x2001f
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x58], rbp
call fcn.1400145f0
mov ebx, eax
test eax, eax
jne 0x140014807
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x40], pe_nt_image_headers64
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400147e1
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400146f0
mov ebx, eax
test eax, eax
jne 0x140014807
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x40], pe_nt_image_headers64
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140014790
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400147f6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x50], ebp
call fcn.140014990
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140014817
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140191fc0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400148e0
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 0x140014954
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014976
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140014976
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
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 0x140014976
mov rdx, r8
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 rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x140014990
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x1400149be
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400148e0
cmp byte [0x140270598], 0
jne 0x140014a09
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400149f9
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x140270598], 1
mov qword [0x140270590], rax
jmp 0x140014a10
mov rax, qword [0x140270590]
mov byte [0x140270598], 1
jmp 0x140014a10
mov rax, qword [0x140270590]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140014a2f
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 0x140015570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x14025eb40]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400155fe
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400155fe
call fcn.140015c90
mov ebx, eax
jmp 0x140015726
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14001561f
call fcn.140015c90
jmp 0x140015715
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140015642
call fcn.140015c90
jmp 0x140015715
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140015664
mov ebx, 0x8007000e
jmp 0x140015717
mov ecx, eax
test eax, eax
je 0x14001569c
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140015692
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14001569c
lea rcx, [rsp + 0x70]
call fcn.1400135b0
jmp 0x1400156a6
mov ecx, 0x80070216
call fcn.140015cb0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x1400156b9
cmp qword [rsp + 0x70], 0
jne 0x1400156c8
mov ebx, 0x8007000e
jmp 0x140015717
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1400156f2
call fcn.140015c90
jmp 0x140015715
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140015380
mov ebx, eax
test rdi, rdi
je 0x140015726
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14001573d
lea rcx, [rsp + 0x70]
call fcn.140013590
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140191fc0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140018750
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbp
mov rbp, r8
mov r14, rdx
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x38], ebx
cmp qword [rcx + 8], rbx
jne 0x140018798
lea rdx, [0x14021c758]
mov rcx, r14
call fcn.1400128e0
jmp 0x140018950
call fcn.14001a59c
mov rdx, rax
mov ecx, ebx
test rax, rax
setne cl
test ecx, ecx
jne 0x1400187b7
mov ecx, 0x80004005
call fcn.140015cb0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rdx, [0x14021c758]
test rdx, 0xffffffffffff0000
jne 0x1400187fa
movzx edi, dx
mov ecx, edi
call fcn.140019fac
test rax, rax
je 0x140018808
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400124c0
jmp 0x140018808
xor r8d, r8d
lea rcx, [rsp + 0x40]
call fcn.1400127f0
nop
mov dword [rsp + 0x70], ebx
mov dword [rsp + 0x88], ebx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x88]
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsi + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsi + 0x10], eax
or rdi, 0xffffffffffffffff
mov edx, dword [rsp + 0x70]
test edx, edx
je 0x140018926
mov ecx, dword [rsp + 0x88]
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x1400188bc
lea eax, [rcx - 6]
cmp eax, 1
jbe 0x1400188bc
cmp ecx, 4
jne 0x140018926
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ecx
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsi + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsi + 0x10], eax
test eax, eax
cmove ebx, dword [rsp + 0x30]
mov r8d, ebx
lea rdx, [0x14021bf94]
lea rcx, [rsp + 0x40]
call fcn.140012370
jmp 0x140018926
mov eax, 2
mul rdx
cmovo rax, rdi
mov rcx, rax
call fcn.140019190
mov rbx, rax
test rax, rax
je 0x140018926
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsi + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsi + 0x10], eax
test eax, eax
jne 0x14001891e
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x140018904
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400127f0
mov rcx, rbx
call fcn.140019188
mov rbx, qword [rsp + 0x40]
lea rcx, [rbx - 0x18]
call fcn.140012110
add rax, 0x18
mov qword [r14], rax
lock add dword [rbx - 8], 0xffffffff
jg 0x140018950
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, r14
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret