joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016798
Capabilities:
Authenticate hmac
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 r12
push r13
push r14
sub rsp, 0x350
mov rdi, r9
mov r12d, r8d
mov r13d, edx
mov rbp, rcx
mov ebx, 0x14
call fcn.14001610c
cmp r12d, ebx
mov r14d, 0xff
lea rcx, [rsp + 0x151]
cmovb ebx, r12d
xor esi, esi
mov r8, r14
xor edx, edx
mov byte [rsp + 0x150], sil
call fcn.14001d490
lea rcx, [rsp + 0x51]
mov r8, r14
xor edx, edx
mov byte [rsp + 0x50], sil
call fcn.14001d490
lea rcx, [rsp + 0x251]
mov r8, r14
xor edx, edx
mov byte [rsp + 0x250], sil
call fcn.14001d490
lea rcx, [rsp + 0x150]
mov r8, rbx
mov rdx, rdi
call fcn.14001cf80
lea rcx, [rsp + 0x50]
mov r8, rbx
mov rdx, rdi
call fcn.14001cf80
cmp r12d, esi
jbe 0x14001686a
mov rax, rsi
mov rcx, r12
xor byte [rsp + rax + 0x150], 0x5c
xor byte [rsp + rax + 0x50], 0x36
add rax, 1
sub rcx, 1
jne 0x140016853
lea rax, [rsp + 0x250]
lea r8, [rsp + 0x50]
mov r9d, r12d
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x3a0]
mov edx, r13d
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x398]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.14001628c
mov rcx, rbp
call fcn.14001610c
mov rdx, qword [rbp]
mov rcx, qword [rbp + 0xc0]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov r8d, r13d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
call fcn.14001c800
cmp eax, esi
je 0x14001694d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rbp + 0xc0]
lea r8, [rsp + 0x150]
mov r9d, r12d
mov dword [rsp + 0x20], esi
call fcn.14001c8a8
cmp eax, esi
je 0x14001693c
mov edx, r13d
mov rcx, rbp
call fcn.140016180
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rbp + 0xc0]
lea r8, [rsp + 0x250]
mov r9d, eax
mov dword [rsp + 0x20], esi
call fcn.14001c8a8
cmp eax, esi
je 0x14001693c
mov rcx, qword [rsp + 0x3a8]
mov rax, qword [rsp + 0x40]
mov esi, 1
mov qword [rcx], rax
jmp 0x14001694d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rbp + 0xc0]
call fcn.14001c900
lea r11, [rsp + 0x350]
mov eax, esi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x140016974
Capabilities:
Encode data using xor

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, 0xc0
mov rbx, r9
mov r15, r8
mov r12d, edx
mov r13, rcx
call fcn.14001610c
xor ebp, ebp
lea edi, [rbp + 0x3f]
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8, rdi
mov byte [rsp + 0x40], bpl
call fcn.14001d490
lea rcx, [rsp + 0x81]
mov r8, rdi
xor edx, edx
mov byte [rsp + 0x80], bpl
call fcn.14001d490
mov edx, r12d
mov rcx, r13
call fcn.140016180
lea r14d, [rbp + 0x40]
cmp r12d, 0x800e
mov edi, eax
mov eax, 0x80
mov r9, r15
cmove r14d, eax
lea rax, [rsp + 0x80]
mov rcx, r13
mov qword [rsp + 0x38], rax
lea eax, [rbp + 0x14]
mov r8d, r14d
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], eax
call fcn.140016388
mov r11d, dword [rsp + 0x118]
add r11d, 0xffffffff
je 0x140016aa6
mov rbx, rdi
mov esi, r11d
lea rax, [rsp + 0x40]
mov r9, r15
mov r8d, r14d
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x80]
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rax
mov edx, r12d
mov rcx, r13
mov dword [rsp + 0x20], 0x14
call fcn.140016388
test edi, edi
mov ebp, eax
je 0x140016a8b
xor edx, edx
mov r8, rbx
mov cl, byte [rsp + rdx + 0x80]
add rdx, 1
xor byte [rsp + rdx + 0x3f], cl
sub r8, 1
jne 0x140016a76
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x80]
mov r8, rbx
call fcn.14001cf80
sub rsi, 1
jne 0x140016a37
mov rcx, qword [rsp + 0x120]
lea rdx, [rsp + 0x40]
mov r8, rdi
call fcn.14001cf80
lea r11, [rsp + 0xc0]
mov eax, ebp
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140016ba4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x5d0
or qword [rax - 0x538], 0xffffffffffffffff
xor edi, edi
mov rbx, r8
mov r8, rdx
lea rcx, [rax - 0x538]
lea rdx, [0x140031d94]
mov rsi, r9
mov byte [rax - 0x530], dil
mov byte [rax - 0x168], dil
mov byte [rax - 0x2ac], dil
call fcn.14000a4a0
lea rcx, [rsp + 0xb0]
mov byte [rsp + 0x30], dil
call fcn.14000a530
cmp eax, edi
je 0x140016d55
mov rbp, qword [rsp + 0x610]
test byte [rsp + 0x1fc], 0x10
je 0x140016d22
lea rdx, [0x140031e04]
lea rcx, [rsp + 0x228]
call fcn.14001d590
cmp eax, edi
je 0x140016d22
lea rdx, [0x140031e00]
lea rcx, [rsp + 0x228]
call fcn.14001d590
cmp eax, edi
je 0x140016d22
mov al, byte [rsp + 0x228]
cmp al, 0x53
je 0x140016c6f
cmp al, 0x73
jne 0x140016c81
cmp byte [rsp + 0x229], 0x2d
lea rdx, [rsp + 0x228]
je 0x140016c89
mov rdx, qword [rsp + 0x618]
lea rcx, [rsp + 0x30]
mov r8d, 0x80
call fcn.140009284
mov rcx, qword [rsp + 0x5f0]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x33c]
mov r9, rsi
mov r8, rbx
mov qword [rsp + 0x20], rbp
call fcn.140016ba4
cmp eax, edi
jne 0x140016d50
mov rcx, rbx
call fcn.14001d780
lea rcx, [rsp + 0x33c]
mov rbx, rax
call fcn.14001d780
lea rcx, [rbx + rax + 1]
mov rbx, qword [rsp + 0x600]
cmp rcx, 0x104
jae 0x140016d0e
lea rcx, [rsp + 0x33c]
mov r8, rsi
mov rdx, rbx
call fcn.1400094c0
jmp 0x140016d11
mov byte [rsi], dil
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140016d38
mov byte [rsi], dil
lea rcx, [rsp + 0xb0]
call fcn.14000a530
cmp eax, edi
je 0x140016d55
jmp 0x140016c1a
mov edi, 1
lea rdx, [rsp + 0x30]
mov rcx, rbp
lea r8d, [rdi + 0x7f]
call fcn.140009284
jmp 0x140016d55
mov edi, 1
mov rcx, qword [rsp + 0xb0]
cmp rcx, 0xffffffffffffffff
je 0x140016d69
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
mov rbx, qword [rsp + 0x5f8]
add rsp, 0x5d0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140016d80
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
xor r13d, r13d
mov r15, r8
mov r14, rcx
mov rbx, rdx
lea rcx, [rax - 0x77]
lea r8d, [r13 + 0x3f]
xor edx, edx
mov byte [rax - 0x78], r13b
call fcn.14001d490
movdqu xmm5, xmmword [rbx]
movdqu xmmword [rsp + 0x70], xmm5
mov rdx, qword [rsp + 0x78]
mov r9, qword [rsp + 0x70]
mov rax, rdx
mov r12, rdx
movzx r10d, dl
shr rax, 0x30
shr r12, 0x38
movzx ebp, al
mov dword [rsp + 0x68], r12d
mov rax, rdx
shr rax, 0x28
mov dword [rsp + 0x60], ebp
movzx esi, al
mov rax, rdx
shr rax, 0x20
mov dword [rsp + 0x58], esi
movzx edi, al
mov rax, rdx
shr rax, 0x18
mov dword [rsp + 0x50], edi
movzx ebx, al
mov rax, rdx
shr rax, 0x10
mov dword [rsp + 0x48], ebx
movzx r11d, al
mov rax, rdx
mov rdx, r9
mov dword [rsp + 0x40], r11d
shr rax, 8
shr rdx, 0x30
movzx r8d, al
mov rax, r9
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], edx
shr rax, 0x20
lea r8, str._8.8X__4.4X__4.4X__2.2X_2.2X__2.2X_2.2X_2.2X_2.2X_2.2X_2.2X
lea edx, [r13 + 0x40]
movzx ecx, ax
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x80]
call fcn.14001cea0
xor ebp, ebp
cmp dword [r14 + 0x1f0], ebp
mov ebx, ebp
mov rdi, rbp
jle 0x140016ee5
mov rsi, qword [rsp + 0x118]
cmp rdi, rbp
jl 0x140016ea7
cmp ebx, dword [r14 + 0x1f0]
jge 0x140016ea7
mov rax, qword [r14 + 0x1d8]
mov edx, dword [rax + rdi*4]
add rdx, qword [r14 + 0x1e0]
jmp 0x140016eaa
mov rdx, rbp
lea rax, [0x14003164b]
lea r8, [rsp + 0x80]
mov r9, r15
mov qword [rsp + 0x28], rax
mov rcx, r14
mov qword [rsp + 0x20], rsi
call fcn.140016ba4
cmp eax, ebp
mov r13d, eax
jne 0x140016ee5
add ebx, 1
add rdi, 1
cmp ebx, dword [r14 + 0x1f0]
jl 0x140016e86
cmp r13d, ebp
je 0x140016f74
xor edx, edx
mov rcx, r15
call fcn.140008cfc
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x140016f71
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
lea rcx, [r14 + 0xa8]
mov edx, eax
mov edi, eax
call fcn.14000a6e8
cmp edi, 0x32
jbe 0x140016f63
mov rdx, qword [r14 + 0xa8]
lea r9, [rsp + 0x100]
mov r8d, edi
mov rcx, rbx
mov dword [rsp + 0x100], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rdx, qword [r14 + 0xa8]
lea rcx, [r14 + 8]
mov r8d, 0xa0
mov r13d, eax
call fcn.14001cf80
jmp 0x140016f66
mov r13d, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140016f74
mov r13d, ebp
mov eax, r13d
mov rbx, qword [rsp + 0x108]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140018d14
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov r11b, dl
mov bl, cl
xor r9b, r9b
mov r10d, 7
mov cl, r10b
mov r8b, r11b
mov al, bl
shr r8b, cl
mov cl, r9b
shr cl, 7
and r8b, 1
imul r8b
mov dl, al
mov al, 0x1d
imul cl
mov cl, r9b
xor dl, al
add cl, cl
mov r9b, dl
xor r9b, cl
sub r10d, 1
jns 0x140018d27
mov rbx, qword [rsp + 8]
mov al, r9b
ret
Function at 0x140019270
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd rax, ecx
lea rcx, [0x140032878]
mov r11d, 0xa
mov r10d, dword [rcx + rax*4]
lea r9d, [r11 - 9]
shl r10d, 3
or r10d, edx
mov edx, r10d
mov ecx, edx
lea eax, [rdx + rdx]
sar ecx, 9
imul ecx, ecx, 0x537
mov edx, ecx
xor edx, eax
sub r11, r9
jne 0x1400192a1
shl r10d, 0xa
or r10d, edx
xor r10d, 0x5412
xor edi, edi
mov r11d, edi
movzx edx, byte [r8]
mov ecx, r11d
mov eax, r10d
sar eax, cl
imul edx, r11d
add edx, 8
mov ebx, edx
sar edx, 3
add edx, r9d
and ebx, 7
test r9b, al
movsxd rdx, edx
mov ecx, ebx
mov eax, r9d
je 0x1400192fe
shl al, cl
or byte [rdx + r8], al
jmp 0x140019306
shl al, cl
not al
and byte [rdx + r8], al
add r11d, r9d
cmp r11d, 5
jle 0x1400192cb
movzx edx, byte [r8]
mov eax, r10d
sar eax, 6
imul edx, edx, 7
add edx, 8
mov ecx, edx
sar edx, 3
add edx, r9d
and ecx, 7
test r9b, al
movsxd rdx, edx
mov eax, r9d
je 0x14001933d
shl al, cl
or byte [rdx + r8], al
jmp 0x140019345
shl al, cl
not al
and byte [rdx + r8], al
movzx eax, byte [r8]
lea edx, [rax*8 + 8]
mov eax, r10d
mov ecx, edx
sar edx, 3
sar eax, 7
add edx, r9d
and ecx, 7
test r9b, al
movsxd rdx, edx
mov eax, r9d
je 0x140019374
shl al, cl
or byte [rdx + r8], al
jmp 0x14001937c
shl al, cl
not al
and byte [rdx + r8], al
movzx eax, byte [r8]
lea edx, [rax*8 + 7]
mov eax, r10d
mov ecx, edx
sar edx, 3
sar eax, 8
add edx, r9d
and ecx, 7
test r9b, al
movsxd rdx, edx
mov eax, r9d
je 0x1400193ab
shl al, cl
or byte [rdx + r8], al
jmp 0x1400193b3
shl al, cl
not al
and byte [rdx + r8], al
mov r11d, 9
movzx edx, byte [r8]
mov ecx, r11d
mov eax, r10d
shl edx, 3
sar eax, cl
sub edx, r11d
add edx, 0xe
mov ebx, edx
sar edx, 3
add edx, r9d
and ebx, 7
test r9b, al
movsxd rdx, edx
mov ecx, ebx
mov eax, r9d
je 0x1400193ee
shl al, cl
or byte [rdx + r8], al
jmp 0x1400193f6
shl al, cl
not al
and byte [rdx + r8], al
add r11d, r9d
cmp r11d, 0xf
jl 0x1400193b9
movzx ebx, byte [r8]
movzx eax, byte [r8]
mov ecx, edi
shl eax, 3
sub eax, edi
lea edx, [rax + rbx - 1]
mov eax, r10d
mov r11d, edx
sar edx, 3
sar eax, cl
add edx, r9d
and r11d, 7
test r9b, al
movsxd rdx, edx
mov ecx, r11d
mov eax, r9d
je 0x14001943a
shl al, cl
or byte [rdx + r8], al
jmp 0x140019442
shl al, cl
not al
and byte [rdx + r8], al
add edi, r9d
cmp edi, 8
jl 0x140019403
mov r11d, 8
movzx eax, byte [r8]
lea edx, [rbx + r11 - 0xf]
mov ecx, r11d
imul edx, eax
add edx, 8
mov eax, r10d
mov edi, edx
sar edx, 3
sar eax, cl
add edx, r9d
and edi, 7
test r9b, al
movsxd rdx, edx
mov ecx, edi
mov eax, r9d
je 0x140019487
shl al, cl
or byte [rdx + r8], al
jmp 0x14001948f
shl al, cl
not al
and byte [rdx + r8], al
add r11d, r9d
cmp r11d, 0xf
jl 0x140019450
movzx eax, byte [r8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
lea ecx, [rbx - 8]
mov rbx, qword [rsp + 8]
imul ecx, eax
add ecx, 8
mov eax, ecx
and ecx, 7
sar eax, 3
add eax, r9d
shl r9b, cl
movsxd rdx, eax
or byte [rdx + r8], r9b
ret
Function at 0x140019e8c
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x2040
call fcn.14002e9a0
sub rsp, rax
mov rdi, rdx
xor edx, edx
mov rbx, r8
test ecx, ecx
mov rsi, r9
lea r8d, [rax - 0x40]
lea rcx, [rsp + 0x31]
je 0x140019f0a
call fcn.14001d490
mov r11, qword [rsp + 0x2090]
mov byte [rsp + 0x30], 0
mov edx, dword [r11]
test edx, edx
je 0x140019ee9
lea r8, [rsp + 0x30]
mov rcx, rsi
call fcn.140009a2c
mov r9, qword [rsp + 0x2098]
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov r13d, eax
jmp 0x140019fc8
mov byte [rsp + 0x30], 0
call fcn.14001d490
mov r11, qword [rsp + 0x2098]
mov qword [rsp + 0x28], r11
lea r9, [rsp + 0x30]
lea r8, [0x14003164b]
mov rdx, rbx
mov rcx, rdi
mov dword [rsp + 0x20], 0x2000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor r13d, r13d
lea rcx, [rsp + 0x30]
test eax, eax
setne r13b
call fcn.14001d780
test eax, eax
je 0x140019fc8
mov rbp, qword [rsp + 0x2090]
xor edi, edi
xor ebx, ebx
test eax, eax
mov r14d, dword [rbp]
movsxd r12, eax
jle 0x140019fc8
mov al, byte [rsp + rbx + 0x30]
cmp al, 0x20
jne 0x140019f7d
add rbx, 1
jmp 0x140019fbc
cmp edi, r14d
mov byte [rsp + 0x2070], al
mov al, byte [rsp + rbx + 0x31]
mov byte [rsp + 0x2071], al
mov byte [rsp + 0x2072], 0
jae 0x140019fc1
xor edx, edx
lea rcx, [rsp + 0x2070]
lea r8d, [rdx + 0x10]
call fcn.14001e610
add edi, 1
mov byte [rsi], al
add rsi, 1
add rbx, 2
cmp rbx, r12
jl 0x140019f6f
test edi, edi
je 0x140019fc8
mov dword [rbp], edi
lea r11, [rsp + 0x2040]
mov eax, r13d
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x140019fe8
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x120
test ecx, ecx
mov eax, r9d
mov rdi, r8
mov rsi, rdx
je 0x14001a053
mov rax, qword [rsp + 0x150]
lea rcx, [rsp + 0x21]
xor edx, edx
mov ebx, dword [rax]
mov r8d, 0xfe
mov byte [rsp + 0x20], 0
call fcn.14001d490
lea rdx, [rsp + 0x20]
mov r8d, 0xa
mov ecx, ebx
call fcn.14001e160
mov r9, qword [rsp + 0x158]
mov rdx, rdi
mov r8, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x14001a074
mov r9, qword [rsp + 0x158]
mov r8d, eax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov rcx, qword [rsp + 0x150]
mov dword [rcx], eax
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14001a08c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x38]
mov rdi, r9
lea rdx, str.SYSTEMSelect
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x14001a10a
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rdx, str.Current
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x30], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [rbx + 1]
cmp eax, ebx
cmove ebx, ecx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x14001a118
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x40
lea rax, [r11 - 0x10]
mov rdi, r9
mov rsi, r8
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x28], rax
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x14001a19a
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x34]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x14001a18f
mov ecx, dword [rsp + 0x30]
mov byte [rcx + rdi], bl
mov ebx, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x14001a330
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov rdi, rcx
mov rcx, qword [rcx]
cmp rcx, rbp
mov rsi, rdx
mov ebx, ebp
je 0x14001a35e
call fcn.14001d830
mov qword [rdi], rbp
xor edx, edx
mov rcx, rsi
call fcn.140008cfc
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x14001a3c2
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [rdi + 8], ecx
call fcn.14001d8c0
mov r8d, dword [rdi + 8]
lea r9, [rsp + 0x40]
mov rdx, rax
mov rcx, rsi
mov qword [rdi], rax
mov dword [rsp + 0x40], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebp
mov ebx, eax
je 0x14001a3b9
mov rcx, qword [rdi]
cmp dword [rcx], 0x66676572
cmovne ebx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14001c6c8
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
jne 0x14001c7b2
lea rcx, str.advapi32.dll
call fcn.140009e1c
lea rdx, str.CryptAcquireContextA
mov rcx, rax
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptReleaseContext
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptCreateHash
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptGetHashParam
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptHashData
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptDestroyHash
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptDecrypt
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptDeriveKey
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptImportKey
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptDestroyKey
mov qword [rbx + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x50], rax
add rsp, 0x20
pop rbx
ret
Function at 0x140020f90
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x1400394b8]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.1400213a0
test rax, rax
je 0x140020fe4
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x140021079
mov ecx, 2
call fcn.140027820
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.14001d490
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x140021065
test ebx, ebx
jne 0x140021065
lea ecx, [rax + 2]
call fcn.140027820
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140022260
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x140037210]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x14002229e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x140022280
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x140022485
mov ecx, 3
call fcn.1400286f0
cmp eax, 1
je 0x14002243c
mov ecx, 3
call fcn.1400286f0
test eax, eax
jne 0x1400222d5
cmp dword [0x140037060], 1
je 0x14002243c
cmp edi, 0xfc
je 0x140022485
mov qword [rsp + 0x50], rbp
lea rbp, [0x140039530]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.140025550
test eax, eax
je 0x140022319
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140020ef0
lea rdx, [0x140039549]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14003964d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140022369
lea r8, str._program_name_unknown_
lea rcx, [0x140039549]
mov edx, 0x2fb
call fcn.140025550
test eax, eax
je 0x140022369
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140020ef0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x140039549]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x1400223b8
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x140039844]
lea r9d, [rax + 3]
lea r8, [0x14002ff34]
sub rdx, rcx
call fcn.1400285d0
test eax, eax
je 0x1400223b8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140020ef0
lea r8, [0x14002ff30]
mov edx, 0x314
mov rcx, rbp
call fcn.140028510
test eax, eax
je 0x1400223e4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140020ef0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.140028510
test eax, eax
je 0x140022414
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140020ef0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.1400282b0
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140022485
cmp rax, 0xffffffffffffffff
je 0x140022485
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x1400224a0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.1400286f0
cmp eax, 1
je 0x1400224d2
mov ecx, 3
call fcn.1400286f0
test eax, eax
jne 0x140022586
cmp dword [0x140037060], 1
jne 0x140022586
mov qword [rsp + 0x48], rbx
lea rbx, [0x140037210]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x1400224fe
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x1400224e8
jmp 0x140022572
cmp edi, 0x17
jae 0x140022572
mov ecx, 3
call fcn.1400286f0
cmp eax, 1
je 0x140022529
mov ecx, 3
call fcn.1400286f0
test eax, eax
jne 0x140022572
cmp dword [0x140037060], 1
jne 0x140022572
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140022572
cmp rax, 0xffffffffffffffff
je 0x140022572
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.140022260
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret