joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002f2d0
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
lea rcx, [0x1401e84c0]
mov r15, r9
call fcn.14002e7b0
lea rcx, [0x1401569ec]
mov rdi, rax
call fcn.14002e7b0
mov rsi, rax
test r15, r15
jne 0x14002f312
xor ebx, ebx
jmp 0x14002f324
mov edx, 2
mov ecx, 0x104
call fcn.1400c537c
mov rbx, rax
mov r9, rbx
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
test ebp, ebp
je 0x14002f389
mov qword [rsp + 0x38], 0
mov r9d, 0xffffffff
mov qword [rsp + 0x30], 0
mov r8, rbx
mov dword [rsp + 0x28], 0x104
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test eax, eax
jne 0x14002f389
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
test rbx, rbx
je 0x14002f396
mov rcx, rbx
call fcn.1400e9080
test rsi, rsi
je 0x14002f3a3
mov rcx, rsi
call fcn.1400e9080
test rdi, rdi
je 0x14002f3b0
mov rcx, rdi
call fcn.1400e9080
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x60]
mov eax, ebp
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x14002f5a0
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
call fcn.14002e7b0
mov rdi, rax
cmp word [rax], 0x22
jne 0x14002f5fd
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop word [rax + rax]
cmp word [rdi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14002f5d0
cmp word [rdi + rax*2 - 2], 0x22
jne 0x14002f5fd
cmp word [rdi + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14002f5e4
xor eax, eax
mov word [rdi + rcx*2 - 2], ax
lea rcx, [rdi + 2]
jmp 0x14002f600
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call fcn.1400e9080
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14002f910
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rsi
sub rsp, 0x30
xor ebx, ebx
mov rsi, rdx
mov qword [rsp + 0x40], rbx
test rdx, rdx
jne 0x14002f952
lea r8d, [rdx + 0x2b]
lea rdx, str.D:_a_rufus_rufus_src_registry.h
lea rcx, str.key_name___NULL
call fcn.1400fc264
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
lea rax, [rsp + 0x40]
mov r9d, 0x2001d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWARE
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14002f945
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
mov qword [rsp + 0x48], rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, eax
test eax, 0xfffffffd
je 0x14002f9e3
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 5
jne 0x14002f9af
lea rax, str.Key_is_not_empty
jmp 0x14002f9b4
call fcn.140050120
mov r8, rax
lea rcx, str.Failed_to_delete_registry_key_HKCUSoftware_s:__s
mov rdx, rsi
call fcn.14004f910
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, 0xfffffffd
jne 0x14002f9fb
mov ebx, 1
mov rdi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x14002fa70
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140193440]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov r12d, r8d
mov rdi, rdx
mov r15, rcx
mov r14d, 0x104
mov r8d, r14d
lea rcx, [rsp + 0x70]
xor edx, edx
mov r13, r9
call fcn.140136960
mov eax, dword [rbp + 0xf0]
xor esi, esi
mov r8d, eax
mov qword [rsp + 0x60], rsi
xor edx, edx
mov qword [rsp + 0x50], rsi
mov rcx, r13
mov dword [rsp + 0x58], 0xffffffff
mov dword [rsp + 0x5c], eax
call fcn.140136960
test rdi, rdi
je 0x14002fc62
mov rax, 0xffffffffffffffff
mov rbx, rax
nop
inc rbx
cmp byte [rdi + rbx], sil
jne 0x14002fb00
test rbx, rbx
je 0x14002fb1c
nop
cmp byte [rdi + rbx], 0x5c
je 0x14002fb4d
sub rbx, 1
jne 0x14002fb10
lea rax, [rsp + 0x60]
mov r9d, 0x2001d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWARE
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14002fbb5
mov qword [rsp + 0x60], rsi
jmp 0x14002fc4e
cmp rbx, r14
jae 0x14002fc62
inc rax
cmp byte [rdi + rax], sil
jne 0x14002fb56
inc rax
lea rcx, [rsp + 0x70]
cmp rax, r14
mov rdx, rdi
cmovb r14, rax
mov r8, r14
call fcn.1401362c0
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, r15
inc rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14002fbfd
mov qword [rsp + 0x50], rsi
jmp 0x14002fc3e
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rdx, str.Akeo_ConsultingRufus
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 0x14002fbfd
mov qword [rsp + 0x50], rsi
jmp 0x14002fc3e
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], r13
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
je 0x14002fc39
test eax, eax
jne 0x14002fc3e
cmp dword [rsp + 0x58], r12d
jne 0x14002fc3e
cmp dword [rsp + 0x5c], esi
jbe 0x14002fc3e
mov esi, 1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14002fc4e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14002fc5e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x14002fc64
xor eax, eax
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1400b1f80
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002fc90
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x50
xor ebx, ebx
mov rsi, r9
mov qword [rsp + 0x70], rbx
mov ebp, r8d
mov qword [rsp + 0x78], rbx
mov rdi, rdx
test rdx, rdx
jne 0x14002fce6
mov r8d, 0x8a
lea rdx, str.D:_a_rufus_rufus_src_registry.h
lea rcx, str.key_name___NULL
call fcn.1400fc264
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov edx, 0x5c
mov rcx, rdi
call fcn.1400b35d4
test rax, rax
je 0x14002fd11
mov r8d, 0x91
lea rdx, str.D:_a_rufus_rufus_src_registry.h
lea rcx, str.strchr_key_name_____NULL
call fcn.1400fc264
mov edx, 0x5c
mov rcx, rdi
call fcn.1400b35d4
test rax, rax
jne 0x14002fcd4
lea rax, [rsp + 0x70]
mov r9d, 0x2001d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14002fd53
mov qword [rsp + 0x70], rbx
jmp 0x14002fdd7
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
lea rdx, str.SOFTWAREAkeo_ConsultingRufus
lea rax, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 7
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x14002fd9e
mov qword [rsp + 0x78], rbx
jmp 0x14002fdc7
mov eax, dword [rsp + 0x90]
mov r9d, ebp
mov rcx, qword [rsp + 0x78]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14002fdd7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14002fde7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140034d70
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.14002e7b0
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 0x140034ddb
mov rcx, rdi
call fcn.1400e9080
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbp, rbp
jne 0x140034e07
call fcn.140050120
mov r8, rax
lea rcx, str.FindArch:_Could_not_open_file__s:__s
mov rdx, rsi
call fcn.14004f910
xor al, al
jmp 0x140034f48
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 0x140034e44
call fcn.140050120
mov rdx, rax
lea rcx, str.FindArch:_Could_not_create_file_mapping:__s
call fcn.14004f910
jmp 0x140034f36
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 0x140034e7d
call fcn.140050120
mov rdx, rax
lea rcx, str.FindArch:_Could_not_get_mapped_view_address:__s
call fcn.14004f910
jmp 0x140034f27
mov eax, 0x5a4d
cmp word [rdi], ax
je 0x140034e98
lea rcx, str.FindArch:_DOS_header_not_found
call fcn.14004f910
jmp 0x140034f1e
movsxd rax, dword [rdi + 0x3c]
cmp dword [rax + rdi], 0x4550
je 0x140034eb3
lea rcx, str.FindArch:_NT_header_not_found
call fcn.14004f910
jmp 0x140034f1e
movzx ecx, word [rax + rdi + 4]
cmp ecx, 0x5032
ja 0x140034ef0
je 0x140034eec
sub ecx, 0x14c
je 0x140034ee8
sub ecx, 0x74
je 0x140034ee4
sub ecx, 0x40
je 0x140034ee0
cmp ecx, 0xcbc
jne 0x140034f1e
mov bl, 9
jmp 0x140034f1e
mov bl, 5
jmp 0x140034f1e
mov bl, 3
jmp 0x140034f1e
mov bl, 1
jmp 0x140034f1e
mov bl, 6
jmp 0x140034f1e
cmp ecx, 0x5064
je 0x140034f1c
cmp ecx, 0x5128
je 0x140034f18
cmp ecx, 0x8664
je 0x140034f14
cmp ecx, 0xaa64
jne 0x140034f1e
mov bl, 4
jmp 0x140034f1e
mov bl, 2
jmp 0x140034f1e
mov bl, 8
jmp 0x140034f1e
mov bl, 7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp rsi, 0xffffffffffffffff
je 0x140034f36
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rbp, 0xffffffffffffffff
je 0x140034f45
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 0x14003d0e0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x40
mov rbx, qword [0x1401e8838]
mov edx, 0x1f5
mov rcx, rbx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x14003d135
call fcn.140050120
mov r8, rax
lea rdx, str.rufus.com
lea rcx, str.Could_not_locate_resource__s:__s
call fcn.14004f910
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 0x14003d17b
call fcn.140050120
mov r8, rax
lea rdx, str.rufus.com
lea rcx, str.Could_not_load_resource__s:__s
call fcn.14004f910
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 0x14003d38d
lea r8, [0x1401633b8]
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 0x14003d220
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 0x14003d220
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x28
lea ecx, [rdx - 0x1e]
call fcn.1400c537c
mov rbx, rax
test rax, rax
je 0x14003d37a
mov dword [rax], 1
mov r8d, 0x28
mov dword [rax + 0xc], 4
mov rdx, rbx
movsx ecx, byte [str.rufus.com]
mov word [rax + 0xa], cx
mov dword [rax + 0x28], 1
mov dword [rax + 0x34], 4
movsx ecx, byte [0x140161719]
mov word [rax + 0x32], cx
lea ecx, [r8 - 0x1e]
mov dword [rax + 0x50], 1
mov dword [rax + 0x5c], 4
movsx eax, byte [0x14016171a]
mov word [rbx + 0x5a], ax
mov dword [rbx + 0x78], 1
mov dword [rbx + 0x84], 4
movsx eax, byte [0x14016171b]
mov word [rbx + 0x82], ax
mov dword [rbx + 0xa0], 1
mov dword [rbx + 0xac], 4
movsx eax, byte [0x14016171c]
mov word [rbx + 0xaa], ax
mov dword [rbx + 0xc8], 1
mov dword [rbx + 0xd4], 4
movsx eax, byte [0x14016171d]
mov word [rbx + 0xd2], ax
mov dword [rbx + 0xf0], 1
mov dword [rbx + 0xfc], 4
movsx eax, byte [0x14016171e]
mov word [rbx + 0xfa], ax
mov dword [rbx + 0x118], 1
mov dword [rbx + 0x124], 4
movsx eax, byte [0x14016171f]
mov word [rbx + 0x122], ax
mov dword [rbx + 0x140], 1
mov dword [rbx + 0x14c], 4
movsx eax, byte [0x140161720]
mov word [rbx + 0x14a], ax
mov dword [rbx + 0x168], 1
mov word [rbx + 0x170], 0xd
call qword [sym.imp.USER32.dll_SendInput]
mov rcx, rbx
call fcn.1400e9080
test rdi, rdi
je 0x14003d38a
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 0x140041f20
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 0x140041f65
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
mov ecx, ebx
setne cl
dec ecx
jmp 0x140041f6a
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 0x140047560
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0xc0]
mov rdi, rcx
mov rbx, rax
mov qword [rsp + 0x40], r14
and ebx, 0x3f
lea r14, [rax*8]
mov byte [rbx + rcx], 0x80
inc rbx
cmp rbx, 0x38
je 0x1400475f9
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
nop
and ebx, 0x3f
mov esi, ebx
mov ebp, ebx
lea rax, [rbx + 1]
jne 0x1400475e2
cmp dword [0x14019f094], 0
mov rbx, rax
mov rdx, rdi
je 0x1400475d4
lea rcx, [rdi + 0x80]
mov r8d, 0x40
call fcn.1400455b0
mov byte [rdi + rbp], 0
jmp 0x1400475a0
mov rcx, rdi
call fcn.140043cc0
mov byte [rdi + rsi], 0
jmp 0x1400475a0
mov byte [rbx + rdi], 0
mov rbx, rax
cmp rax, 0x38
jne 0x1400475a0
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov byte [rdi + 0x3f], r14b
shr rax, 8
mov rdx, rdi
mov byte [rdi + 0x3e], al
mov rax, r14
shr rax, 0x10
mov byte [rdi + 0x3d], al
mov rax, r14
shr rax, 0x18
mov byte [rdi + 0x3c], al
mov rax, r14
shr rax, 0x20
mov byte [rdi + 0x3b], al
mov rax, r14
shr rax, 0x28
mov byte [rdi + 0x3a], al
mov rax, r14
shr r14, 0x38
shr rax, 0x30
cmp dword [0x14019f094], 0
mov byte [rdi + 0x38], r14b
mov r14, qword [rsp + 0x40]
mov byte [rdi + 0x39], al
je 0x140047669
lea rbx, [rdi + 0x80]
mov r8d, 0x40
mov rcx, rbx
call fcn.1400455b0
jmp 0x140047678
mov rcx, rdi
call fcn.140043cc0
lea rbx, [rdi + 0x80]
mov eax, dword [rbx]
mov rbx, qword [rsp + 0x48]
bswap eax
mov dword [rdi], eax
mov eax, dword [rdi + 0x88]
bswap eax
mov dword [rdi + 4], eax
mov eax, dword [rdi + 0x90]
bswap eax
mov dword [rdi + 8], eax
mov eax, dword [rdi + 0x98]
bswap eax
mov dword [rdi + 0xc], eax
mov eax, dword [rdi + 0xa0]
bswap eax
mov dword [rdi + 0x10], eax
mov eax, dword [rdi + 0xa8]
bswap eax
mov dword [rdi + 0x14], eax
mov eax, dword [rdi + 0xb0]
bswap eax
mov dword [rdi + 0x18], eax
mov eax, dword [rdi + 0xb8]
bswap eax
mov dword [rdi + 0x1c], eax
add rsp, 0x20
pop rdi
ret
Function at 0x140047970
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.1400b2940
sub rsp, rax
lea rbp, [rsp + 0x80]
and rbp, 0xffffffffffffffc0
mov rax, qword [0x140193440]
xor rax, rsp
mov qword [rbp + 0x1140], rax
xorps xmm0, xmm0
mov r15d, ecx
xor eax, eax
xor ebx, ebx
mov byte [rbp + 0x40], bl
mov r12, r8
mov qword [rbp + 0xb1], rax
mov dword [rbp + 0xb9], eax
mov word [rbp + 0xbd], ax
mov byte [rbp + 0xbf], al
mov dword [rbp], ebx
movups xmmword [rbp + 0x41], xmm0
movups xmmword [rbp + 0x51], xmm0
movups xmmword [rbp + 0x61], xmm0
movups xmmword [rbp + 0x71], xmm0
movups xmmword [rbp + 0x81], xmm0
movups xmmword [rbp + 0x91], xmm0
movups xmmword [rbp + 0xa1], xmm0
movups xmmword [rbp + 0xc0], xmm0
movups xmmword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xe0], xmm0
movups xmmword [rbp + 0xf0], xmm0
movups xmmword [rbp + 0x100], xmm0
movups xmmword [rbp + 0x110], xmm0
movups xmmword [rbp + 0x120], xmm0
movups xmmword [rbp + 0x130], xmm0
test rdx, rdx
je 0x140047b7b
test r8, r8
je 0x140047b7b
mov rcx, rdx
call fcn.140041b20
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 0x140047a8f
mov rcx, rsi
call fcn.1400e9080
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rdi, 0xffffffffffffffff
jne 0x140047ac1
call fcn.140050120
mov rdx, rax
lea rcx, str.Could_not_open_file:__s
call fcn.14004f910
mov dword [0x14019f0a0], 0xc003006e
jmp 0x140047b79
lea r14, [0x140000000]
lea rcx, [rbp + 0x40]
call qword [r14 + r15*8 + 0x152830]
mov eax, dword [0x14019f0a0]
test eax, eax
jns 0x140047ae8
cmp ax, 0x4c7
je 0x140047b6b
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 0x140047b4d
mov eax, dword [rbp]
lea rcx, [rbp + 0x40]
test eax, eax
je 0x140047b2a
mov r8d, eax
lea rdx, [rbp + 0x140]
call qword [r14 + r15*8 + 0x152850]
jmp 0x140047ad4
call qword [r14 + r15*8 + 0x152810]
mov r8d, dword [r14 + r15*4 + 0x152ed8]
lea rdx, [rbp + 0x40]
mov rcx, r12
call fcn.1401362c0
mov ebx, 1
jmp 0x140047b6b
mov dword [0x14019f0a0], 0xc003001e
call fcn.140050120
mov rdx, rax
lea rcx, str.__Read_error:__s
call fcn.14004f910
test rdi, rdi
je 0x140047b79
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rbp + 0x1140]
xor rcx, rsp
call fcn.1400b1f80
add rsp, 0x11d0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140049380
Capabilities:
Get file version info

Disassembly:
push r12
sub rsp, 0x80
mov rax, qword [0x140193440]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x30]
mov r12, rcx
call fcn.140048020
test eax, eax
jne 0x1400493b3
mov eax, 0xffffffff
jmp 0x1400494f3
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0x78], rsi
xor esi, esi
mov qword [rsp + 0x70], rdi
mov ebx, esi
lea rdi, [0x1401983f0]
mov edx, ebx
lea rcx, [rsp + 0x30]
add rdx, rdi
mov r8d, 0x20
call fcn.140136d00
test eax, eax
je 0x1400495f4
add ebx, 0x20
cmp ebx, 0x40a0
jb 0x1400493d0
mov edi, dword [0x1401a03e4]
mov ebx, esi
shl edi, 5
mov qword [rsp + 0xa0], rbp
test edi, edi
je 0x140049444
mov rbp, qword [0x1401a03f8]
nop word [rax + rax]
mov edx, ebx
lea rcx, [rsp + 0x30]
add rdx, rbp
mov r8d, 0x20
call fcn.140136d00
test eax, eax
je 0x1400494d4
add ebx, 0x20
cmp ebx, edi
jb 0x140049420
xorps xmm0, xmm0
mov qword [rsp + 0x68], r14
mov rcx, r12
mov rdi, rsi
movups xmmword [0x1401e2d38], xmm0
call fcn.14004acd0
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test rbx, rbx
je 0x140049487
mov rcx, rbx
call fcn.1400e9080
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14d, r14d
je 0x1400495ac
mov rcx, r14
call fcn.1400e9094
mov rdi, rax
test rax, rax
je 0x1400495ac
mov ebx, dword [rsp + 0x20]
mov rcx, r12
mov qword [rsp + 0x60], r15
mov r15d, esi
call fcn.14004acd0
mov rbp, rax
test ebx, ebx
je 0x14004950a
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14004951e
mov eax, 2
mov rbp, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x98]
mov rdi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400b1f80
add rsp, 0x80
pop r12
ret
mov r9, rdi
mov r8d, r14d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test rbp, rbp
je 0x140049533
mov rcx, rbp
call fcn.1400e9080
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r15d, r15d
mov r15, qword [rsp + 0x60]
je 0x1400495ac
lea r9, [rsp + 0x24]
mov rcx, rdi
lea r8, [rsp + 0x28]
lea rdx, [0x140156078]
call qword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x1400495ac
cmp dword [rsp + 0x24], esi
je 0x1400495ac
mov rcx, qword [rsp + 0x28]
cmp dword [rcx], 0xfeef04bd
jne 0x1400495ac
movzx eax, word [rcx + 0xa]
mov dword [0x1401e2d38], eax
movzx eax, word [rcx + 8]
mov dword [0x1401e2d3c], eax
movzx eax, word [rcx + 0xe]
mov dword [0x1401e2d40], eax
movzx eax, word [rcx + 0xc]
mov dword [0x1401e2d44], eax
lea rax, [0x1401e2d38]
mov qword [0x1401e2d48], rax
mov rcx, rdi
call fcn.1400e9080
mov rcx, qword [0x1401e2d48]
mov r14, qword [rsp + 0x68]
test rcx, rcx
je 0x1400495ed
cmp dword [rcx], 0xa
jne 0x1400495ed
cmp dword [rcx + 4], esi
jne 0x1400495ed
mov ecx, dword [rcx + 8]
mov eax, 3
sub ecx, 0x383a
cmp ecx, 0x1226
cmovbe esi, eax
mov eax, esi
jmp 0x1400494d9
xor eax, eax
jmp 0x1400494d9
mov eax, 1
jmp 0x1400494e1