joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400060b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
xor r8b, r8b
lea rax, [rdx - 1]
mov r14, rcx
cmp rax, 0xfffe
ja 0x140006217
movzx edi, dx
mov ecx, edi
call fcn.140023b8c
mov rsi, rax
test rax, rax
je 0x140006214
mov edx, edi
mov r8d, 6
shr rdx, 4
mov rcx, rax
inc rdx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x140006214
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140006214
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140006214
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140006179
nop word [rax + rax]
cmp rbx, rcx
jae 0x140006214
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140006160
cmp rbx, rcx
jae 0x140006214
cmp word [rbx], 0
je 0x140006214
movzx r9d, word [rbx]
lea r8, [rbx + 2]
xor ebp, ebp
xor edx, edx
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
lea ecx, [rbp + 3]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
test eax, eax
js 0x140006236
mov rax, qword [r14]
mov edx, 1
mov ecx, dword [rax - 0xc]
sub edx, dword [rax - 8]
sub ecx, edi
or edx, ecx
jge 0x1400061d9
mov edx, edi
mov rcx, r14
call fcn.1400063d0
mov rax, qword [r14]
lea r8, [rbx + 2]
movzx r9d, word [rbx]
xor edx, edx
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], edi
lea ecx, [rdx + 3]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rax, qword [r14]
cmp edi, dword [rax - 0xc]
jg 0x140006236
mov dword [rax - 0x10], edi
mov rax, qword [r14]
mov byte [rdi + rax], bpl
mov r8b, 1
mov rbx, qword [rsp + 0x50]
movzx eax, r8b
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
mov ecx, 0x80070057
call fcn.140002530
int3
Function at 0x140006250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov eax, r8d
mov rbp, rdx
shr eax, 4
mov edi, r8d
inc ax
mov rsi, rcx
movzx edx, ax
mov r8d, 6
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r14, rax
test rax, rax
je 0x14000639d
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000639d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000639d
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400062f9
nop word [rax + rax]
cmp rbx, rcx
jae 0x14000639d
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1400062e0
cmp rbx, rcx
jae 0x14000639d
cmp word [rbx], 0
je 0x14000639d
movzx r9d, word [rbx]
lea r8, [rbx + 2]
xor r14d, r14d
xor edx, edx
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea ecx, [rdx + 3]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
test eax, eax
js 0x1400063ba
mov rcx, qword [rsi]
mov edx, 1
sub edx, dword [rcx - 8]
mov ecx, dword [rcx - 0xc]
sub ecx, edi
or edx, ecx
jge 0x14000635b
mov edx, edi
mov rcx, rsi
call fcn.1400063d0
mov rdx, qword [rsi]
lea r8, [rbx + 2]
movzx r9d, word [rbx]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdx
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [rsi]
cmp edi, dword [rcx - 0xc]
jg 0x1400063ba
mov dword [rcx - 0x10], edi
mov eax, 1
mov rcx, qword [rsi]
mov byte [rdi + rcx], r14b
jmp 0x14000639f
xor eax, eax
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
mov ecx, 0x80070057
call fcn.140002530
int3

Function at 0x140007670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialog.virtual_720
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov qword [rcx + 0xf0], rdx
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
cmp rdx, 0x10000
jae 0x14002175f
cmp dword [rcx + 0xe8], 0
jne 0x14002175f
movzx eax, dx
mov dword [rcx + 0xe8], eax
call fcn.140032550
mov r8d, 5
mov rdx, rdi
mov rsi, qword [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x1400217a3
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400217a3
mov r9, rsi
mov r8, rbp
mov rdx, rax
mov rcx, rbx
call fcn.140021ad4
jmp 0x1400217a5
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140009320
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x14000932b
xor eax, eax
ret
lea r11, [0x140226eb0]
not ecx
cmp r8d, 8
jb 0x140009401
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x140009350
test r8d, r8d
je 0x14000942d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x140009410
not ecx
mov eax, ecx
ret

Function at 0x140009e00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov r10, r8
mov rdi, r9
imul r10d, edx
mov rsi, rdx
cmp byte [r9], 0
mov r11, rcx
je 0x140009e5a
mov rdx, rcx
mov qword [rsp + 0x20], 0
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x48]
mov r8d, r10d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140009e46
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
xor edx, edx
div rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
sub ecx, edx
mov qword [rsp + 0x40], rbx
lea eax, [rdx + r10]
cmp eax, dword [r9 + 0x28]
cmovbe ecx, r10d
add rdx, qword [r9 + 0x20]
mov ebx, ecx
mov r8d, ecx
mov rcx, r11
call fcn.1401c8040
add dword [rdi + 0x2c], ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
xor edx, edx
div rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140009ea0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x30
cmp byte [rcx], 0
mov r14, rdx
mov qword [rsp + 0x58], rbp
mov rbx, rcx
mov qword [rsp + 0x68], rsi
mov esi, 1
je 0x140009ef4
lea rdi, [rcx + 0x10]
mov qword [rsp + 0x20], 0
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x60]
mov r8d, esi
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140009eee
mov byte [rdi], sil
mov ebp, dword [rsp + 0x60]
jmp 0x140009f25
mov edi, dword [rcx + 0x2c]
mov ecx, dword [rcx + 0x28]
lea eax, [rdi + 1]
cmp eax, ecx
jbe 0x140009f05
mov esi, ecx
sub esi, edi
mov rdx, rdi
mov r8d, esi
add rdx, qword [rbx + 0x20]
lea rcx, [rsp + 0x50]
mov ebp, esi
call fcn.1401c8040
lea eax, [rdi + rsi]
mov dword [rbx + 0x2c], eax
lea rdi, [rbx + 0x10]
mov rsi, qword [rsp + 0x68]
cmp ebp, 1
mov rbp, qword [rsp + 0x58]
jne 0x140009f47
movzx eax, byte [rsp + 0x50]
mov dword [r14], eax
xor eax, eax
add rsp, 0x30
pop r14
pop rdi
pop rbx
ret
cmp byte [rbx], 0
je 0x140009f3c
cmp byte [rdi], 0
je 0x140009f3c
mov eax, 0xffffffff
add rsp, 0x30
pop r14
pop rdi
pop rbx
ret
Function at 0x14000ac40
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x14000ae76
cmp dword [rcx + 0x1c], 0
je 0x14000ae76
mov qword [rsp + 0x48], rbx
mov rbx, qword [rcx + 0x80]
mov qword [rsp + 0x20], rbp
xor ebp, ebp
test rbx, rbx
je 0x14000aca8
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000ac85
call fcn.14019d5d0
mov qword [rbx], rbp
cmp dword [rbx + 0x64], ebp
je 0x14000ac96
lea rcx, [rbx + 8]
call fcn.1400095d0
mov rcx, rbx
mov dword [rbx + 0x64], ebp
call fcn.14019d5d0
mov qword [rdi + 0x80], rbp
lea r9, [rsp + 0x50]
mov rcx, rdi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.14000a990
test eax, eax
je 0x14000acd9
mov rbx, qword [rsp + 0x48]
mov eax, 0xffffff99
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
call fcn.14019d5e4
mov rbx, rax
test rax, rax
je 0x14000ad16
mov ecx, 0x4000
call fcn.14019d5e4
mov ecx, dword [rsp + 0x40]
mov dword [rbx + 0x68], ecx
mov ecx, dword [rsp + 0x50]
mov dword [rbx + 0x6c], ecx
mov qword [rbx], rax
mov dword [rbx + 0x70], ebp
test rax, rax
jne 0x14000ad2c
mov rcx, rbx
call fcn.14019d5d0
mov rbx, qword [rsp + 0x48]
mov eax, 0xffffff98
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov dword [rbx + 0x64], ebp
mov eax, dword [rdi + 0x40]
mov ecx, dword [rdi + 0x38]
mov dword [rbx + 0x78], eax
mov dword [rbx + 0x74], ebp
mov eax, dword [rdi + 0x38]
mov dword [rbx + 0x90], eax
mov rax, qword [rdi]
mov qword [rbx + 0x88], rax
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x94], eax
mov dword [rbx + 0x24], ebp
test ecx, ecx
je 0x14000ad7e
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.1400096b0
test eax, eax
jne 0x14000ad7e
mov dword [rbx + 0x64], 1
mov eax, dword [rdi + 0x44]
mov dword [rbx + 0x7c], eax
mov eax, dword [rdi + 0x48]
mov dword [rbx + 0x80], eax
movzx ecx, byte [rdi + 0x34]
and cl, 1
mov byte [rbx + 0x98], cl
mov eax, dword [rdi + 0x34]
shr eax, 3
test al, 1
je 0x14000adaa
movzx eax, byte [rdi + 0x3d]
jmp 0x14000adae
movzx eax, byte [rdi + 0x43]
mov byte [rbx + 0xac], al
neg cl
mov dword [rbx + 0x9c], 0x12345678
sbb eax, eax
mov dword [rbx + 0xa0], 0x23456789
and eax, 0xc
mov dword [rbx + 0xa4], 0x34567890
mov dword [rbx + 0xa8], eax
test rsi, rsi
je 0x14000ae4a
lea r8, [0x140226eb0]
nop dword [rax + rax]
movzx eax, byte [rsi]
test al, al
je 0x14000ae4a
mov edx, dword [rbx + 0x9c]
xor rax, rdx
movzx ecx, al
shr edx, 8
xor edx, dword [r8 + rcx*4]
mov ecx, dword [rbx + 0xa4]
movzx eax, dl
add eax, dword [rbx + 0xa0]
mov dword [rbx + 0x9c], edx
imul edx, eax, 0x8088405
movzx eax, cl
shr ecx, 8
inc edx
mov dword [rbx + 0xa0], edx
shr rdx, 0x18
xor rax, rdx
xor ecx, dword [r8 + rax*4]
mov dword [rbx + 0xa4], ecx
add rsi, 1
jne 0x14000adf0
mov ecx, dword [rdi + 0x7c]
mov eax, dword [rsp + 0x58]
mov dword [rbx + 0x10], ebp
add eax, 0x1e
mov rbp, qword [rsp + 0x20]
add ecx, eax
mov dword [rbx + 0x60], ecx
xor eax, eax
mov qword [rdi + 0x80], rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x14000b960
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14000b98e
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14000b98e
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
movzx eax, byte [rdi]
test al, al
je 0x14000ba6c
mov qword [rsp + 0x250], rsi
mov rcx, rdi
mov rsi, rdi
cmp al, 0x2f
je 0x14000b9af
cmp al, 0x5c
jne 0x14000b9b2
mov rsi, rcx
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x14000b9a7
cmp rsi, rdi
je 0x14000b9f0
sub rsi, rdi
lea rcx, [rsp + 0x130]
mov r8, rsi
mov rdx, rdi
call fcn.1401c8040
lea rdx, [rsp + 0x130]
mov byte [rsp + rsi + 0x130], 0
mov rcx, rbx
call fcn.14000b960
mov rsi, qword [rsp + 0x250]
mov byte [rsp + 0x20], 0
test rbx, rbx
je 0x14000ba1e
lea rcx, [rsp + 0x20]
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x14000ba10
lea rcx, [rsp + 0x20]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14000ba26
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdi + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14000ba40
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14000ba6c
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret
Function at 0x14000c080
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov ecx, 0x258
call fcn.1400213a4
mov rsi, rax
mov qword [rsp + 0x78], rax
mov rdi, 0xffffffffffffffff
xor ebp, ebp
test rax, rax
je 0x14000c0d4
mov qword [rax], rbp
mov dword [rax + 8], edi
mov dword [rax + 0x138], edi
mov qword [rax + 0x140], rbp
mov qword [rax + 0x148], rbp
jmp 0x14000c0d7
mov rsi, rbp
cmp qword [rsi], 0
jne 0x14000c1fc
cmp dword [rsi + 8], 0xffffffff
jne 0x14000c1fc
lea rbx, [rsi + 0x150]
mov rdx, rbx
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rdi, [rdi + 1]
cmp byte [rbx + rdi], 0
jne 0x14000c100
movzx eax, byte [rdi + rsi + 0x14f]
cmp al, 0x5c
je 0x14000c133
cmp al, 0x2f
je 0x14000c133
dec rbx
nop dword [rax]
lea rbx, [rbx + 1]
cmp byte [rbx], 0
jne 0x14000c120
movzx eax, word [0x1402287c8]
mov word [rbx], ax
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
lea rcx, str.C:Program_Files__x86_Funshiondecvsd.xml
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14000c1f5
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
cmp eax, 0xffffffff
setne bl
mov ecx, 0x30
call fcn.1400213a4
mov r14, rax
mov byte [rax], 1
mov byte [rax + 0x18], 1
mov byte [rax + 1], bl
mov qword [rax + 8], r15
mov byte [rax + 0x10], 0
mov dword [rax + 0x14], ebp
cmp edi, 0xffffffff
je 0x14000c1c9
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [r14 + 0x14], eax
mov rcx, r14
call fcn.14000a1f0
mov qword [rsi], rax
test rax, rax
je 0x14000c1f5
mov dword [0x140269c10], ebp
mov ecx, 0x10
call fcn.1400213a4
mov dword [rax], 1
mov qword [rax + 8], rsi
jmp 0x14000c246
mov eax, 0x200
jmp 0x14000c201
mov eax, 0x1000000
mov dword [0x140269c10], eax
mov rcx, qword [rsi + 0x140]
test rcx, rcx
je 0x14000c218
call fcn.140003e60
mov qword [rsi + 0x140], rbp
mov rcx, qword [rsi + 0x148]
test rcx, rcx
je 0x14000c230
call fcn.140003e60
mov qword [rsi + 0x148], rbp
mov edx, 0x258
mov rcx, rsi
call fcn.140003e60
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14000e09c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000e0ca
xor eax, eax
jmp 0x14000e1b0
cmp qword [rcx + 0x68], 0
je 0x14000e0db
call fcn.14000e1cc
jmp 0x14000e1b0
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000e0f2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000e0f4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000e126
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1401c8040
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14000e1aa
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000e15d
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14000e186
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1401a45c4
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000e1aa
cmp rsi, rbx
ja 0x14000e164
test rsi, rsi
je 0x14000e1aa
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1401a45c4
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14001fc78
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rdi, r9
mov rbx, r8
and qword [r9], 0
mov r14, qword [rbp + 0x40]
and dword [r14], 0
cmp qword [rcx + 0xb0], 0
je 0x14001fd50
xor r8d, r8d
call fcn.1400200ec
mov rsi, rax
test rax, rax
je 0x14001fe00
mov qword [rbp - 0x20], rsi
and dword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
and dword [rbp + 0x20], 0
and dword [rbp + 0x40], 0
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x20]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rbp + 0x40]
mov dword [r14], ecx
test eax, eax
jne 0x14001fd34
call fcn.140003e70
mov qword [rdi], rax
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x20]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001fd34
lea ebx, [rax + 1]
jmp 0x14001fd42
mov rcx, qword [rdi]
call fcn.140003e60
and qword [rdi], 0
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001fdfe
mov rax, qword [rcx]
and qword [rsp + 0x20], 0
mov r9, rbx
mov r8, rdx
lea rdx, [rbp + 0x40]
mov rax, qword [rax + 0x108]
call qword [case.0x140137e95.0]
nop
mov rax, qword [rbp + 0x40]
mov ecx, dword [rax - 0x10]
test ecx, ecx
jne 0x14001fd80
xor ebx, ebx
jmp 0x14001fddd
shr ecx, 1
mov dword [r14], ecx
call fcn.140003e70
mov qword [rdi], rax
xor r8d, r8d
lea ebx, [r8 + 1]
cmp dword [r14], r8d
jbe 0x14001fdd9
lea ecx, [r8 + r8]
lea edx, [rcx + 1]
test edx, edx
js 0x14001fe15
mov rax, qword [rbp + 0x40]
cmp edx, dword [rax - 0x10]
jg 0x14001fe15
movsxd r9, ecx
mov dl, byte [r9 + rax + 1]
test ecx, ecx
js 0x14001fe15
cmp ecx, dword [rax - 0x10]
jg 0x14001fe15
sub dl, bl
shl dl, 4
sub dl, 0x41
add dl, byte [r9 + rax]
mov rax, qword [rdi]
mov byte [r8 + rax], dl
add r8d, ebx
cmp r8d, dword [r14]
jb 0x14001fd99
mov rax, qword [rbp + 0x40]
lea rdx, [rax - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14001fdfe
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x140137e95.0]
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ecx, 0x80070057
call fcn.140002530
int3
Function at 0x14001fe20
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xb0], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x14001fe9b
xor r8d, r8d
call fcn.1400200ec
mov rsi, rax
test rax, rax
je 0x14001fe97
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14001fe97
mov eax, dword [rsp + 0x30]
jmp 0x14001feb1
mov eax, edi
jmp 0x14001feb1
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14001fec4
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xf60]
mov eax, 0x1060
call fcn.140196c90
sub rsp, rax
mov rax, qword [0x14025c780]
xor rax, rsp
mov qword [rbp + 0xf50], rax
mov r12, r9
mov r10, r8
mov rdi, rdx
mov r14, qword [rbp + 0xfc0]
mov qword [rsp + 0x38], rdx
cmp qword [rcx + 0xb0], 0
je 0x140020072
xor r8d, r8d
mov rdx, r10
call fcn.1400200ec
mov rsi, rax
test rax, rax
jne 0x14001ff33
mov rdx, r14
jmp 0x1400200aa
call fcn.140022fa4
mov rcx, rax
test rax, rax
je 0x1400200e1
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140137e95.0]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
and dword [rsp + 0x34], 0
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r15d, eax
test eax, eax
jne 0x14002000e
mov edx, dword [rsp + 0x30]
test edx, edx
js 0x1400200d6
lea ecx, [rax + 1]
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x14001ffb9
lea rcx, [rsp + 0x38]
call fcn.1400063d0
mov rbx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r15d, eax
test rbx, rbx
jne 0x14001ffe8
xor eax, eax
jmp 0x14001fffc
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1401a9ac4
test eax, eax
js 0x1400200d6
cmp eax, dword [rbx - 0xc]
jg 0x1400200d6
mov dword [rbx - 0x10], eax
mov eax, eax
mov byte [rax + rbx], 0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r15d, r15d
jne 0x140020043
lea rcx, [rbx - 0x18]
call fcn.140011378
add rax, 0x18
mov qword [rdi], rax
or eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x1400200b2
mov rcx, qword [rbx - 0x18]
lea rdx, [rbx - 0x18]
jmp 0x140020063
mov rdx, r14
mov rcx, rdi
call fcn.14000eca0
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400200b2
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140137e95.0]
jmp 0x1400200b2
lea r8, [0x14022867c]
test r14, r14
cmovne r8, r14
mov rax, qword [rcx + 0xd8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1000
lea r9, [rsp + 0x50]
mov rdx, r12
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14000eca0
mov rax, rdi
mov rcx, qword [rbp + 0xf50]
xor rcx, rsp
call fcn.140196c60
add rsp, 0x1060
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80070057
call fcn.140002530
nop
mov ecx, 0x80004005
call fcn.140002530
int3