joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1403b9070
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1403b907d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1403b908d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1403b9075
lea eax, [rcx + 1]
jmp 0x1403b909b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1403b90ae
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1403b9094
sub eax, 3
jb 0x1403b90ce
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1403b911d
sar eax, 1
movsxd rbp, eax
jb 0x1403b9104
jmp 0x1403b90dc
add ebx, ebx
jne 0x1403b90da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1403b9104
inc ecx
add ebx, ebx
jne 0x1403b90ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1403b9104
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1403b90fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1403b90ec
add ecx, 2
jmp 0x1403b9109
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1403b9032
jmp 0x1403b907d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x278400
mov dl, 0x82
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1403b9169
cmp rsi, rcx
jae 0x1403b9171
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1403b9150
cmp al, 0x8f
ja 0x1403b9150
cmp byte [rsi - 2], 0xf
je 0x1403b9156
sub al, 0xe8
cmp al, 1
ja 0x1403b913a
cmp rsi, rcx
jae 0x1403b9171
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1403b9140
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1403b9171
lodsb al, byte [rsi]
jmp 0x1403b9150
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x3b4000]
mov eax, dword [rdi]
or eax, eax
je 0x1403b91da
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x3bab20]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1403b917e
jns 0x1403b91b3
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1403b91bd
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1403b91d4
mov qword [rbx], rax
add rbx, 8
jmp 0x1403b919e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1403b921e
cmp al, 0xef
ja 0x1403b9206
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1403b91e6
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1403b91f5
mov eax, dword [rdi]
add rdi, 4
jmp 0x1403b91f5
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x247]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1403b9272
sub rsp, 0xffffffffffffff80
jmp 0x1402523dc
Function at 0x401700
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov byte [rax + 0x18], r8b
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov r15, r9
mov r13, rdx
mov rsi, rcx
mov rax, qword [rcx]
mov qword [rsp + 0x30], rax
mov rbx, qword [rax + 8]
mov r12, rax
mov dil, 1
cmp byte [rbx + 0x19], 0
jne 0x401838
mov rax, qword [r9 + 0x18]
mov r14, qword [r9 + 0x10]
mov r12, rbx
test r8b, r8b
je 0x4017b6
lea rcx, [rbx + 0x20]
cmp rax, 0x10
jb 0x40176c
mov rdx, qword [r15]
jmp 0x40176f
mov rdx, r15
lea rsi, [rcx + 0x10]
cmp qword [rcx + 0x18], 0x10
jb 0x40177d
mov rcx, qword [rcx]
mov rsi, qword [rsi]
mov r8, r14
cmp rsi, r14
cmovb r8, rsi
test r8, r8
je 0x40179a
call sub.VCRUNTIME140.dll_memcmp
mov edi, eax
test eax, eax
jne 0x4017ad
cmp rsi, r14
jae 0x4017a4
or edi, 0xffffffff
jmp 0x4017ad
xor edi, edi
cmp rsi, r14
seta dil
shr edi, 0x1f
xor dil, 1
jmp 0x401809
lea rdx, [rbx + 0x20]
lea rdi, [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x4017c8
mov rdx, qword [rdx]
cmp rax, 0x10
jb 0x4017d3
mov rcx, qword [r15]
jmp 0x4017d6
mov rcx, r15
mov rdi, qword [rdi]
mov r8, rdi
cmp r14, rdi
cmovb r8, r14
test r8, r8
je 0x4017f1
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x401803
cmp r14, rdi
jae 0x4017fb
or eax, 0xffffffff
jmp 0x401803
xor eax, eax
cmp r14, rdi
seta al
shr eax, 0x1f
movzx edi, al
test dil, dil
je 0x401813
mov rbx, qword [rbx]
jmp 0x401817
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x19], 0
mov rax, qword [r15 + 0x18]
movzx r8d, byte [rsp + 0x80]
je 0x401755
mov rax, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x70]
mov rbx, r12
test dil, dil
je 0x4018ea
cmp r12, qword [rax]
jne 0x401881
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r15
mov r9, r12
mov r8b, 1
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.00401430
mov rax, qword [rax]
mov qword [r13], rax
mov byte [r13 + 8], 1
mov rax, r13
jmp 0x40193c
cmp byte [r12 + 0x19], 0
je 0x401890
mov rbx, qword [r12 + 0x10]
jmp 0x4018ea
mov rax, qword [r12]
cmp byte [rax + 0x19], 0
jne 0x4018bf
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
jne 0x4018ea
nop word [rax + rax]
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
je 0x4018b0
jmp 0x4018ea
mov rax, qword [r12 + 8]
cmp byte [rax + 0x19], 0
jne 0x4018e2
nop word [rax + rax]
cmp rbx, qword [rax]
jne 0x4018e2
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x4018d0
cmp byte [rbx + 0x19], 0
cmove rbx, rax
lea rcx, [rbx + 0x20]
mov rdx, r15
call fcn.00401360
test al, al
je 0x401930
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r15
mov r9, r12
movzx r8d, dil
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.00401430
mov rax, qword [rax]
mov qword [r13], rax
mov byte [r13 + 8], 1
mov rax, r13
jmp 0x40193c
mov qword [r13], rbx
mov byte [r13 + 8], 0
mov rax, r13
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140002738
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002782
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002782
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002782
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002782
cmp dword [rcx + 0x84], 0xe
jbe 0x140002782
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002784
xor al, al
add rsp, 0x28
ret

Function at 0x1400087d0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000883f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000883f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000883f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000883f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000883f
cmp dword [rcx + 0x84], 0xe
jbe 0x14000883f
cmp dword [rcx + 0xf8], 0
je 0x14000883f
mov ecx, ebx
call fcn.1400088f0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400086cc
nop
cmp dword [rbp + 0x20], 0
je 0x14000888d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140008898
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400087d0

Function at 0x1400089d4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400087d0
Function at 0x14000df48
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 0x14000df78
xor eax, eax
jmp 0x14000e03b
mov rbp, rbx
cmp word [rax], si
je 0x14000df9d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000df84
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000df80
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.14000a58c
movsxd r14, eax
test eax, eax
jne 0x14000dfdb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000df71
mov rcx, r14
call fcn.14000a52c
mov rdi, rax
test rax, rax
jne 0x14000dff4
xor ecx, ecx
call fcn.1400098b4
jmp 0x14000dfd0
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.14000a58c
test eax, eax
jne 0x14000e025
mov rcx, rdi
call fcn.1400098b4
jmp 0x14000e02f
xor ecx, ecx
call fcn.1400098b4
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 0x14001225c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140012272
mov al, 1
jmp 0x1400122d2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140012283
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400122d0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000e7b0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400122d0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400122d0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400122d0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400122d2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140013390
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.140007a60
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001341a
cmp byte [rbp - 0x21], r15b
je 0x140013415
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140013450
call fcn.140009b04
test eax, eax
jne 0x14001343c
cmp byte [rbp - 0x21], r15b
je 0x140013434
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140013450
cmp byte [rbp - 0x21], r15b
je 0x14001344d
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.14000c7b0
test eax, eax
jne 0x1400134f0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140007a60
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001348f
cmp byte [rbp - 0x21], r15b
je 0x1400134c4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400134c4
call fcn.140009b04
test eax, eax
jne 0x1400134b0
cmp byte [rbp - 0x21], r15b
je 0x1400134a9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400134c4
cmp byte [rbp - 0x21], r15b
je 0x1400134c1
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.14000c7b0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400134f0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400134f3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140013501
mov rcx, rdi
call fcn.1400098b4
cmp byte [rbp + 0x3f], r15b
je 0x140013510
mov rcx, qword [rbp + 0x27]
call fcn.1400098b4
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 0x140015a40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140015a68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140015a68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1000049a4
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r12
push r13
sub rsp, 0x1c0
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x1c0], rbx
mov qword [rbp + 0x1c8], rsi
mov qword [rbp + 0x1d0], rdi
mov rax, qword [0x10000b170]
xor rax, rbp
mov qword [rbp + 0x190], rax
mov eax, dword [0x10000b9fc]
mov r13d, 1
test r13b, al
jne 0x100004a2b
or eax, r13d
mov ebx, 0x114
lea rcx, [rbp + 0x70]
mov r8, rbx
xor edx, edx
mov dword [0x10000b9fc], eax
call sub.msvcrt.dll_memset
lea rcx, [rbp + 0x70]
mov dword [rbp + 0x70], ebx
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov r11d, dword [rbp + 0x80]
mov dword [0x10000b9f8], r13d
mov dword [0x10000b9d8], r11d
mov eax, dword [rsp]
sub rsp, 0x10
lea rsi, [rsp + 0x20]
mov eax, dword [rsi]
lea rdx, [rbp + 8]
mov r8d, 0x30
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x100004a58
xor eax, eax
jmp 0x100004b1f
mov rbx, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp + 0x3c]
mov ecx, 0x11000
lea edi, [rax - 1]
mov r12, rax
not rdi
and rdi, rsi
mov esi, 0x2000
sub rdi, rax
mov eax, dword [0x10000b9d8]
cmp eax, r13d
cmove rsi, rcx
add rsi, rbx
cmp rdi, rsi
jb 0x100004a51
cmp eax, r13d
je 0x100004aff
lea rdx, [rbp + 8]
mov r8d, 0x30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x100004a51
add rbx, qword [rbp + 0x20]
bt dword [rbp + 0x28], 0xc
jae 0x100004a9c
bt dword [rbp + 0x2c], 8
mov rbx, qword [rbp + 8]
jae 0x100004acf
mov eax, r13d
jmp 0x100004b1f
cmp rdi, rbx
jb 0x100004a51
cmp rbx, rsi
mov r9d, 4
mov r8d, 0x1000
cmovb rbx, rsi
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10000b9d8]
jmp 0x100004b02
mov rbx, rdi
mov r8d, 0x104
cmp eax, r13d
lea r9, [rbp]
mov rdx, r12
mov rcx, rbx
cmove r8d, r13d
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rbp + 0x190]
xor rcx, rbp
call fcn.100007a20
mov rbx, qword [rbp + 0x1c0]
mov rsi, qword [rbp + 0x1c8]
mov rdi, qword [rbp + 0x1d0]
lea rsp, [rbp + 0x1a0]
pop r13
pop r12
pop rbp
ret
Function at 0x100004bd0
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x290
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x10000b170]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rsi, rdx
mov rdi, rcx
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x100004d4a
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x100004c54
call qword [entry0]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rcx
test ebx, ebx
jne 0x100004d4f
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x80]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x100004d13
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x48]
call fcn.100004bd0
mov ebx, eax
test eax, eax
jne 0x100004cff
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x100004ca3
jmp 0x100004d13
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x100004d0f
call qword [entry0]
mov eax, ebx
jmp 0x100004d5c
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x100004d29
call qword [entry0]
and qword [rsp + 0x48], 0
mov rdx, rsi
mov rcx, rdi
call fcn.100004db0
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x100004d46
call qword [entry0]
mov eax, ebx
jmp 0x100004d5c
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x100004d5a
call qword [entry0]
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.100007a20
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x100006404
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
lea rdx, [0x100001bd8]
mov ecx, 0x10
call fcn.1000065c8
lea rdx, [0x100001bd8]
mov ecx, 0x20
add rsp, 0x28
jmp fcn.1000065c8

Function at 0x1000065c8
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
sub rsp, 0x248
mov rax, qword [0x10000b170]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp dword [0x10000b9a0], 0
jne 0x100006607
cmp ecx, 0x80
jne 0x1000066ed
sub ecx, 1
je 0x100006677
sub ecx, 1
je 0x10000666e
sub ecx, 2
je 0x100006665
sub ecx, 4
je 0x10000665c
sub ecx, 8
je 0x100006653
sub ecx, 0x10
je 0x10000664a
sub ecx, 0x20
je 0x100006641
cmp ecx, 0x40
je 0x100006638
lea rbx, [0x100001ccc]
jmp 0x10000667e
lea rbx, [0x100001cb8]
jmp 0x10000667e
lea rbx, [0x100001cc4]
jmp 0x10000667e
lea rbx, [0x100001c90]
jmp 0x10000667e
lea rbx, [0x100001c88]
jmp 0x10000667e
lea rbx, [0x100001cb0]
jmp 0x10000667e
lea rbx, [0x100001ca8]
jmp 0x10000667e
lea rbx, [0x100001c98]
jmp 0x10000667e
lea rbx, [0x100001ca0]
mov r8, rdx
mov esi, 0xff
lea r9, [rsp + 0x270]
lea rcx, [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.msvcrt.dll__vsnprintf]
test eax, eax
js 0x1000066a9
cdqe
cmp rax, rsi
ja 0x1000066a9
jne 0x1000066b1
mov byte [rsp + 0x12f], 0
lea rax, [rsp + 0x30]
lea r8, [0x100001cd8]
lea rcx, [rsp + 0x130]
mov r9, rbx
mov edx, 0x100
mov qword [rsp + 0x20], rax
call fcn.10000655c
lea rcx, [rsp + 0x130]
mov byte [rsp + 0x22f], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.100007a20
add rsp, 0x248
pop rsi
pop rbx
ret
Function at 0x100006780
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x310
mov rax, qword [0x10000b170]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov rbx, qword [rsp + 0x370]
xor edi, edi
xor esi, esi
mov r15d, r8d
mov qword [rsp + 0x58], rdx
add rbx, 0x18
cmp esi, dword [rsp + 0x378]
jae 0x100006891
mov ebp, dword [rbx + 8]
mov r12, qword [rbx]
mov r13d, dword [rbx + 0xc]
mov r14, qword [rbx - 8]
xor edi, edi
and qword [rsp + 0x50], rdi
cmp dword [rbx - 0x18], edi
je 0x100006883
mov r8, qword [rbx - 0x10]
lea rcx, [rsp + 0x70]
mov r9d, r15d
mov edx, 0x144
call fcn.100006710
test eax, eax
jns 0x10000680b
movzx edi, ax
jmp 0x100006873
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
lea r9, [0x100001e6c]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
jne 0x100006873
mov rcx, qword [rsp + 0x50]
mov r9d, r13d
xor r8d, r8d
mov rdx, r14
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x100006883
call qword [entry0]
inc esi
add rbx, 0x28
test edi, edi
je 0x1000067c1
mov eax, edi
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.100007a20
mov rbx, qword [rsp + 0x350]
add rsp, 0x310
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x100007000
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor eax, eax
mov ebx, edx
mov dword [rsp + 0x48], eax
test dl, 4
je 0x100007025
test dl, 1
je 0x100007025
test dl, 2
jne 0x1000070d1
mov edx, 8
lea ecx, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x100007043
lea eax, [rdi + 0xe]
jmp 0x1000070d1
and dword [rax + 4], 0
mov dword [rax], ebx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r8, [0x100006eb0]
mov r9, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x1000070b5
mov edx, 0x2710
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x48], eax
test eax, eax
jne 0x1000070bf
lea rdx, [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x1000070a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rsp + 0x48]
jmp 0x1000070bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
test rbx, rbx
je 0x1000070d1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret