joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002bcb0
Capabilities:
Parse pe header
Read file via mapping

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 rsi, rcx
xor bl, bl
call fcn.140003550
xor r15d, r15d
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov rcx, rax
mov rdi, rax
mov dword [rsp + 0x20], 3
lea r8d, [r15 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
test rdi, rdi
je 0x14002bd1b
mov rcx, rdi
call fcn.14009b5a0
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbp, rbp
jne 0x14002bd47
call fcn.140041e50
mov r8, rax
lea rcx, str.FindArch:_Could_not_open_file__s:__s
mov rdx, rsi
call fcn.140041aa0
xor al, al
jmp 0x14002be88
xor r9d, r9d
mov qword [rsp + 0x28], r15
xor edx, edx
mov dword [rsp + 0x20], r15d
mov rcx, rbp
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
jne 0x14002bd84
call fcn.140041e50
mov rdx, rax
lea rcx, str.FindArch:_Could_not_create_file_mapping:__s
call fcn.140041aa0
jmp 0x14002be76
xor r9d, r9d
mov qword [rsp + 0x20], r15
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
jne 0x14002bdbd
call fcn.140041e50
mov rdx, rax
lea rcx, str.FindArch:_Could_not_get_mapped_view_address:__s
call fcn.140041aa0
jmp 0x14002be67
mov eax, 0x5a4d
cmp word [rdi], ax
je 0x14002bdd8
lea rcx, str.FindArch:_DOS_header_not_found
call fcn.140041aa0
jmp 0x14002be5e
movsxd rax, dword [rdi + 0x3c]
cmp dword [rax + rdi], 0x4550
je 0x14002bdf3
lea rcx, str.FindArch:_NT_header_not_found
call fcn.140041aa0
jmp 0x14002be5e
movzx ecx, word [rax + rdi + 4]
cmp ecx, 0x5032
ja 0x14002be30
je 0x14002be2c
sub ecx, 0x14c
je 0x14002be28
sub ecx, 0x74
je 0x14002be24
sub ecx, 0x40
je 0x14002be20
cmp ecx, 0xcbc
jne 0x14002be5e
mov bl, 9
jmp 0x14002be5e
mov bl, 5
jmp 0x14002be5e
mov bl, 3
jmp 0x14002be5e
mov bl, 1
jmp 0x14002be5e
mov bl, 6
jmp 0x14002be5e
cmp ecx, 0x5064
je 0x14002be5c
cmp ecx, 0x5128
je 0x14002be58
cmp ecx, 0x8664
je 0x14002be54
cmp ecx, 0xaa64
jne 0x14002be5e
mov bl, 4
jmp 0x14002be5e
mov bl, 2
jmp 0x14002be5e
mov bl, 8
jmp 0x14002be5e
mov bl, 7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp rsi, 0xffffffffffffffff
je 0x14002be76
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rbp, 0xffffffffffffffff
je 0x14002be85
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
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 0x140033430
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x40
mov rbx, qword [0x14015a338]
mov edx, 0x1f5
mov rcx, rbx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x140033485
call fcn.140041e50
mov r8, rax
lea rdx, str.rufus.com
lea rcx, str.Could_not_locate_resource__s:__s
call fcn.140041aa0
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rdx, rdi
mov qword [rsp + 0x60], rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
jne 0x1400334cb
call fcn.140041e50
mov r8, rax
lea rdx, str.rufus.com
lea rcx, str.Could_not_load_resource__s:__s
call fcn.140041aa0
mov rsi, qword [rsp + 0x60]
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rdx, rdi
mov qword [rsp + 0x58], rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rsi
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x1400336dd
lea r8, [0x1400e4068]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
lea rcx, str.rufus.com
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
mov rdi, rax
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140033570
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], 0
mov r8d, ebp
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test rbx, rbx
je 0x140033570
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x28
lea ecx, [rdx - 0x1e]
call fcn.1400966e0
mov rbx, rax
test rax, rax
je 0x1400336ca
mov dword [rax], 1
mov rdx, rbx
mov dword [rax + 0xc], 4
movsx ecx, byte [str.rufus.com]
mov word [rax + 0xa], cx
mov dword [rax + 0x28], 1
mov dword [rax + 0x34], 4
movsx ecx, byte [0x1400e2489]
mov word [rax + 0x32], cx
mov dword [rax + 0x50], 1
mov dword [rax + 0x5c], 4
movsx eax, byte [0x1400e248a]
mov word [rbx + 0x5a], ax
mov dword [rbx + 0x78], 1
mov dword [rbx + 0x84], 4
movsx eax, byte [0x1400e248b]
mov word [rbx + 0x82], ax
mov dword [rbx + 0xa0], 1
mov dword [rbx + 0xac], 4
movsx eax, byte [0x1400e248c]
mov word [rbx + 0xaa], ax
mov dword [rbx + 0xc8], 1
mov dword [rbx + 0xd4], 4
movsx eax, byte [0x1400e248d]
mov word [rbx + 0xd2], ax
mov dword [rbx + 0xf0], 1
mov dword [rbx + 0xfc], 4
movsx eax, byte [0x1400e248e]
mov word [rbx + 0xfa], ax
mov dword [rbx + 0x118], 1
mov dword [rbx + 0x124], 4
movsx eax, byte [0x1400e248f]
mov word [rbx + 0x122], ax
mov dword [rbx + 0x140], 1
mov dword [rbx + 0x14c], 4
movsx eax, byte [0x1400e2490]
mov word [rbx + 0x14a], ax
mov eax, 0xd
mov dword [rbx + 0x168], 1
mov word [rbx + 0x170], ax
lea r8d, [rax + 0x1b]
lea ecx, [rax - 3]
call qword [sym.imp.USER32.dll_SendInput]
mov rcx, rbx
call fcn.14009b5a0
test rdi, rdi
je 0x1400336da
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, rdi
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140037f00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rax, [rcx + 0x10]
mov rdi, rcx
xor ebx, ebx
mov qword [rsp + 0x20], rax
mov dword [rcx + 0x30], ebx
xor r9d, r9d
mov rcx, qword [rcx]
mov r8d, 0x10000
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140037f67
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x140037f53
lea r8d, [rbx + 0x6c]
lea rdx, str.C:_src_r3dusb_srcwinio.h
lea rcx, str.GetLastError_____ERROR_HANDLE_EOF
call fcn.1400a15c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
mov ecx, ebx
setne cl
dec ecx
jmp 0x140037f6c
mov ecx, 1
test ecx, ecx
mov dword [rdi + 8], ecx
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140038180
Capabilities:
Hash data using sha256

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov r8d, 0x100
mov rbx, rcx
call fcn.140093c00
mov eax, 0xbb67ae85
mov qword [rbx + 0x80], 0x6a09e667
mov qword [rbx + 0x88], rax
mov eax, 0xa54ff53a
mov qword [rbx + 0x98], rax
mov eax, 0x9b05688c
mov qword [rbx + 0xa8], rax
mov qword [rbx + 0x90], 0x3c6ef372
mov qword [rbx + 0xa0], 0x510e527f
mov qword [rbx + 0xb0], 0x1f83d9ab
mov qword [rbx + 0xb8], 0x5be0cd19
add rsp, 0x20
pop rbx
ret
Function at 0x14003bc40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0xc0]
mov rbx, rcx
mov rdi, rax
and edi, 0x3f
lea rsi, [rax*8]
mov byte [rdi + rcx], 0x80
inc rdi
cmp rdi, 0x38
je 0x14003bcab
and edi, 0x3f
jne 0x14003bc9e
cmp dword [0x140111614], edi
mov rdx, rbx
je 0x14003bc96
lea rcx, [rbx + 0x80]
lea r8d, [rdi + 0x40]
call fcn.14003a380
jmp 0x14003bc9e
mov rcx, rbx
call fcn.1400397c0
mov byte [rdi + rbx], 0
inc rdi
cmp rdi, 0x38
jne 0x14003bc74
mov rax, rsi
mov byte [rbx + 0x3f], sil
shr rax, 8
mov rdx, rbx
mov byte [rbx + 0x3e], al
mov rax, rsi
shr rax, 0x10
mov byte [rbx + 0x3d], al
mov rax, rsi
shr rax, 0x18
mov byte [rbx + 0x3c], al
mov rax, rsi
shr rax, 0x20
mov byte [rbx + 0x3b], al
mov rax, rsi
shr rax, 0x28
mov byte [rbx + 0x3a], al
mov rax, rsi
shr rax, 0x30
shr rsi, 0x38
cmp dword [0x140111614], 0
mov byte [rbx + 0x39], al
mov byte [rbx + 0x38], sil
je 0x14003bd13
lea rcx, [rbx + 0x80]
mov r8d, 0x40
call fcn.14003a380
jmp 0x14003bd1b
mov rcx, rbx
call fcn.1400397c0
mov eax, dword [rbx + 0x80]
mov rsi, qword [rsp + 0x38]
bswap eax
mov dword [rbx], eax
mov eax, dword [rbx + 0x88]
bswap eax
mov dword [rbx + 4], eax
mov eax, dword [rbx + 0x90]
bswap eax
mov dword [rbx + 8], eax
mov eax, dword [rbx + 0x98]
bswap eax
mov dword [rbx + 0xc], eax
mov eax, dword [rbx + 0xa0]
bswap eax
mov dword [rbx + 0x10], eax
mov eax, dword [rbx + 0xa8]
bswap eax
mov dword [rbx + 0x14], eax
mov eax, dword [rbx + 0xb0]
bswap eax
mov dword [rbx + 0x18], eax
mov eax, dword [rbx + 0xb8]
bswap eax
mov dword [rbx + 0x1c], eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14003c000
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x11d0
call fcn.140092620
sub rsp, rax
lea rbp, [rsp + 0x80]
and rbp, 0xffffffffffffffc0
mov rax, qword [0x140106438]
xor rax, rsp
mov qword [rbp + 0x1140], rax
mov r12, r8
mov r15d, ecx
mov rdi, rdx
lea rcx, [rbp + 0x40]
xor edx, edx
mov r8d, 0x100
xor ebx, ebx
call fcn.140093c00
mov dword [rbp], ebx
test rdi, rdi
je 0x14003c1a5
test r12, r12
je 0x14003c1a5
mov rcx, rdi
call fcn.140003550
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
mov dword [rsp + 0x28], 0x8000000
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
test rsi, rsi
je 0x14003c0b4
mov rcx, rsi
call fcn.14009b5a0
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rdi, 0xffffffffffffffff
jne 0x14003c0e6
call fcn.140041e50
mov rdx, rax
lea rcx, str.Could_not_open_file:__s
call fcn.140041aa0
mov dword [0x140111620], 0xc003006e
jmp 0x14003c1a5
lea r14, [0x140000000]
lea rcx, [rbp + 0x40]
call qword [r14 + r15*8 + 0xd4250]
nop dword [rax]
mov eax, dword [0x140111620]
test eax, eax
jns 0x14003c114
cmp ax, 0x4c7
je 0x14003c197
lea r9, [rbp]
mov qword [rsp + 0x20], rbx
mov r8d, 0x1000
lea rdx, [rbp + 0x140]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003c179
mov eax, dword [rbp]
lea rcx, [rbp + 0x40]
test eax, eax
je 0x14003c156
mov r8d, eax
lea rdx, [rbp + 0x140]
call qword [r14 + r15*8 + 0xd4270]
jmp 0x14003c100
call qword [r14 + r15*8 + 0xd4230]
mov r8d, dword [r14 + r15*4 + 0xd4220]
lea rdx, [rbp + 0x40]
mov rcx, r12
call fcn.140093550
mov ebx, 1
jmp 0x14003c197
mov dword [0x140111620], 0xc003001e
call fcn.140041e50
mov rdx, rax
lea rcx, str.__Read_error:__s
call fcn.140041aa0
test rdi, rdi
je 0x14003c1a5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rbp + 0x1140]
xor rcx, rsp
call fcn.140092060
add rsp, 0x11d0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14003c2f0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x28
movsxd rbx, dword [rcx + 0x3c]
mov rbp, rcx
add rbx, rcx
xor edi, edi
mov dword [rsp + 0x70], edi
movzx r14d, word [rbx + 6]
lea edx, [rdi + 1]
mov ecx, r14d
shl rcx, 4
add rcx, 0x48
call fcn.1400966e0
mov rsi, rax
test rax, rax
je 0x14003c564
lea eax, [r14 + 4]
mov ecx, 0x20b
mov dword [rsi], eax
movzx eax, word [rbx + 0x18]
cmp ax, cx
jne 0x14003c3ac
lea r8, [rbx + 0x58]
mov rdx, rbp
mov rcx, rsi
call fcn.14003c1d0
cmp dword [rbx + 0x84], 4
lea rdx, [rbx + 0x5c]
mov rcx, rsi
ja 0x14003c382
mov r8d, dword [rbx + 0x54]
add r8, rbp
call fcn.14003c1d0
jmp 0x14003c410
lea r8, [rbx + 0xa8]
call fcn.14003c1d0
mov r8d, dword [rbx + 0x54]
lea rdx, [rbx + 0xb0]
add r8, rbp
mov rcx, rsi
call fcn.14003c1d0
mov eax, dword [rbx + 0xac]
jmp 0x14003c40c
mov ecx, 0x10b
cmp ax, cx
jne 0x14003c54e
lea r8, [rbx + 0x58]
mov rdx, rbp
mov rcx, rsi
call fcn.14003c1d0
cmp dword [rbx + 0x74], 4
lea rdx, [rbx + 0x5c]
mov rcx, rsi
ja 0x14003c3e4
mov r8d, dword [rbx + 0x54]
add r8, rbp
call fcn.14003c1d0
jmp 0x14003c410
lea r8, [rbx + 0x98]
call fcn.14003c1d0
mov r8d, dword [rbx + 0x54]
lea rdx, [rbx + 0xa0]
add r8, rbp
mov rcx, rsi
call fcn.14003c1d0
mov eax, dword [rbx + 0x9c]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x3c]
lea r13, [rbx + 0x18]
movzx r14d, word [rbx + 6]
mov ecx, 8
mov r12d, dword [rbx + 0x54]
mov edx, r14d
mov dword [rsp + 0x88], eax
movzx eax, word [rbx + 0x14]
add r13, rax
call fcn.1400966e0
mov r15, rax
test rax, rax
jne 0x14003c45b
lea rdx, str.efi_image_parse
lea rcx, str._s:_Out_of_memory
call fcn.140041aa0
jmp 0x14003c564
mov r9d, edi
test r14, r14
je 0x14003c4f5
mov rdx, rdi
nop word [rax + rax]
mov eax, r9d
inc r9d
lea rcx, [rax + rax*4]
lea rax, [rcx*8]
add rax, r13
mov qword [r15 + rdx*8], rax
inc rdx
cmp rdx, r14
jl 0x14003c470
lea r9, [0x14003c2d0]
mov r8d, 8
mov rdx, r14
mov rcx, r15
call fcn.1400a75c0
nop dword [rax]
mov rdx, qword [r15 + rdi*8]
mov eax, dword [rdx + 0x10]
test eax, eax
je 0x14003c4eb
mov r8d, dword [rsp + 0x88]
lea ecx, [r8 - 1]
add ecx, eax
mov eax, r8d
neg eax
and ecx, eax
mov eax, dword [rdx + 0x14]
mov ebx, ecx
lea r8, [rax + rcx]
mov rcx, rsi
add r8, rbp
lea rdx, [rax + rbp]
call fcn.14003c1d0
add r12, rbx
inc rdi
cmp rdi, r14
jl 0x14003c4b0
jmp 0x14003c50d
lea r9, [0x14003c2d0]
mov r8d, 8
mov rdx, r14
mov rcx, r15
call fcn.1400a75c0
mov rcx, r15
call fcn.14009b5a0
mov edx, dword [rsp + 0x70]
mov rax, qword [rsp + 0x78]
lea rcx, [rdx + r12]
cmp rcx, rax
jae 0x14003c53c
mov r8, rbp
mov rcx, rsi
sub r8, rdx
lea rdx, [r12 + rbp]
add r8, rax
call fcn.14003c1d0
mov rcx, qword [rsp + 0x80]
mov eax, 1
mov qword [rcx], rsi
jmp 0x14003c56e
mov r8d, eax
lea rdx, str.efi_image_parse
lea rcx, str._s:_Invalid_optional_header_magic__x
call fcn.140041aa0
mov rcx, rsi
call fcn.14009b5a0
xor eax, eax
add rsp, 0x28
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003d800
Capabilities:
Get file version info

Disassembly:
push r15
sub rsp, 0x70
mov rax, qword [0x140106438]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x30]
mov r15, rcx
call fcn.14003c580
test eax, eax
jne 0x14003d83f
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140092060
add rsp, 0x70
pop r15
ret
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x68], rdi
lea rdi, [0x14010b360]
mov qword [rsp + 0x60], r14
xor r14d, r14d
mov ebx, r14d
nop
mov edx, ebx
lea rcx, [rsp + 0x30]
add rdx, rdi
mov r8d, 0x20
call fcn.140093ed0
test eax, eax
je 0x14003da75
add ebx, 0x20
cmp ebx, 0x40a0
jb 0x14003d860
mov edi, dword [0x1401429c4]
mov ebx, r14d
shl edi, 5
mov qword [rsp + 0x98], rsi
test edi, edi
je 0x14003d8d4
mov rsi, qword [0x1401429d8]
nop word [rax + rax]
mov edx, ebx
lea rcx, [rsp + 0x30]
add rdx, rsi
mov r8d, 0x20
call fcn.140093ed0
test eax, eax
je 0x14003d95d
add ebx, 0x20
cmp ebx, edi
jb 0x14003d8b0
xorps xmm0, xmm0
mov qword [rsp + 0x90], rbp
mov rcx, r15
mov rdi, r14
movups xmmword [0x140155208], xmm0
call fcn.140003550
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test rbx, rbx
je 0x14003d919
mov rcx, rbx
call fcn.14009b5a0
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebp, ebp
je 0x14003da2e
mov rcx, rbp
call fcn.14009b5b4
mov rdi, rax
test rax, rax
je 0x14003da2e
mov ebx, dword [rsp + 0x20]
mov rcx, r15
call fcn.140003550
mov rsi, rax
test ebx, ebx
je 0x14003d990
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14003d9a4
mov eax, 2
mov rsi, qword [rsp + 0x98]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x88]
mov r14, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140092060
add rsp, 0x70
pop r15
ret
mov r9, rdi
mov r8d, ebp
xor edx, edx
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test rsi, rsi
je 0x14003d9b9
mov rcx, rsi
call fcn.14009b5a0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14d, r14d
je 0x14003da2e
lea r9, [rsp + 0x24]
mov rcx, rdi
lea r8, [rsp + 0x28]
lea rdx, [0x1400d72e8]
call qword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x14003da2e
cmp dword [rsp + 0x24], 0
je 0x14003da2e
mov rcx, qword [rsp + 0x28]
cmp dword [rcx], 0xfeef04bd
jne 0x14003da2e
movzx eax, word [rcx + 0xa]
mov dword [0x140155208], eax
movzx eax, word [rcx + 8]
mov dword [0x14015520c], eax
movzx eax, word [rcx + 0xe]
mov dword [0x140155210], eax
movzx eax, word [rcx + 0xc]
mov dword [0x140155214], eax
lea rax, [0x140155208]
mov qword [0x140155218], rax
mov rcx, rdi
call fcn.14009b5a0
mov rax, qword [0x140155218]
mov rbp, qword [rsp + 0x90]
test rax, rax
je 0x14003da6e
cmp dword [rax], 0xa
jne 0x14003da6e
cmp dword [rax + 4], 0
jne 0x14003da6e
mov eax, dword [rax + 8]
sub eax, 0x383a
cmp eax, 0x1226
ja 0x14003da6e
mov eax, 3
jmp 0x14003d962
xor eax, eax
jmp 0x14003d962
mov eax, 1
jmp 0x14003d96a
Function at 0x14003e990
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140106438]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rdi, rdx
mov r12, rcx
mov r14d, 0x104
lea rcx, [rsp + 0x70]
mov r8d, r14d
xor edx, edx
mov r15, r9
call fcn.140093c00
xor esi, esi
mov dword [rsp + 0x58], 0xffffffff
xor eax, eax
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x5c], 4
mov dword [r15], eax
test rdi, rdi
je 0x14003eb72
mov rax, 0xffffffffffffffff
mov rbx, rax
nop dword [rax]
inc rbx
cmp byte [rdi + rbx], sil
jne 0x14003ea10
test rbx, rbx
je 0x14003ea2c
nop
cmp byte [rdi + rbx], 0x5c
je 0x14003ea5d
sub rbx, 1
jne 0x14003ea20
lea rax, [rsp + 0x60]
mov r9d, 0x2001d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWARE
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14003eac5
mov qword [rsp + 0x60], rsi
jmp 0x14003eb5e
cmp rbx, r14
jae 0x14003eb72
inc rax
cmp byte [rdi + rax], sil
jne 0x14003ea66
inc rax
lea rcx, [rsp + 0x70]
cmp rax, r14
mov rdx, rdi
cmovb r14, rax
mov r8, r14
call fcn.140093550
lea rax, [rsp + 0x50]
mov byte [rsp + r14 + 0x6f], sil
mov byte [rsp + rbx + 0x70], sil
lea rdx, [rsp + 0x70]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, r12
inc rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14003eb0d
mov qword [rsp + 0x50], rsi
jmp 0x14003eb4e
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rdx, str.Alex313031R3dusb
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 7
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x14003eb0d
mov qword [rsp + 0x50], rsi
jmp 0x14003eb4e
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea rdx, [rdi + rbx]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], r15
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
je 0x14003eb49
test eax, eax
jne 0x14003eb4e
cmp dword [rsp + 0x58], 4
jne 0x14003eb4e
cmp dword [rsp + 0x5c], esi
jbe 0x14003eb4e
mov esi, 1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14003eb5e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14003eb6e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x14003eb74
xor eax, eax
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140092060
add rsp, 0x190
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140040380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbp, r9
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x1400403bd
call fcn.140041e50
mov r8, rax
lea rcx, str.Could_not_locate_resource__s:__s
mov rdx, rbp
call fcn.140041aa0
xor eax, eax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
mov rdx, rdi
mov qword [rsp + 0x50], r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r15, rax
test rax, rax
jne 0x1400403fc
call fcn.140041e50
mov r8, rax
lea rcx, str.Could_not_load_resource__s:__s
mov rdx, rbp
call fcn.140041aa0
mov r15, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
mov qword [rsp + 0x40], rsi
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x48], r14
call qword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [rsp + 0x68], 0
mov edi, eax
mov r14, qword [rsp + 0x60]
je 0x140040490
mov eax, dword [r14]
test eax, eax
jne 0x14004042c
mov dword [r14], edi
mov eax, edi
mov ecx, eax
mov edx, 1
call fcn.1400966e0
mov rsi, rax
test rax, rax
jne 0x140040451
mov rdx, rbp
lea rcx, str.Could_not_allocate_resource__s
call fcn.140041aa0
jmp 0x14004049f
mov eax, dword [r14]
mov rcx, r15
cmp edi, eax
cmovb eax, edi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r8d, ebx
mov rcx, rsi
mov rdx, rax
call fcn.140093550
mov eax, dword [r14]
cmp edi, eax
jbe 0x14004049c
mov r8d, edi
lea rcx, str.WARNING:_Resource__s_was_truncated_by__d_bytes_
sub r8d, eax
mov rdx, rbp
call fcn.140041aa0
jmp 0x14004049c
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
mov dword [r14], edi
mov r14, qword [rsp + 0x48]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret