joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a1fa0
Capabilities:
Delete directory
Delete file

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x68
mov rbx, rcx
lea r12, [rsp + 0x30]
mov dword [rsp + 0x30], 0
call method.std::_V2.system_category__
mov rdx, r12
mov rcx, rbx
mov qword [rsp + 0x38], rax
mov rsi, rax
call method.std::filesystem.symlink_status_std::filesystem::__cxx11::path_const__std::error_code_
test al, al
jne 0x1400a1ff0
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x1400a2024
xor eax, eax
add rsp, 0x68
pop rbx
pop rsi
pop r12
pop r13
ret
cmp al, 0xff
je 0x1400a1fde
mov rdx, r12
mov rcx, rbx
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
cmp al, 2
je 0x1400a20a0
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400a20b1
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400a20c8
mov ecx, 0x30
lea r12, [rsp + 0x40]
call sym.__cxa_allocate_exception
lea rdx, str.cannot_remove
mov rcx, r12
mov r13, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const___clone_.constprop.0_
movdqa xmm0, xmmword [rsp + 0x30]
mov r8, rbx
mov rdx, r12
mov rcx, r13
lea r9, [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm0
call method.std::filesystem::__cxx11::filesystem_error.filesystem_error_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::filesystem::__cxx11::path_const__std::error_code_
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
cmp rcx, rax
je 0x1400a2080
mov rax, qword [rsp + 0x50]
lea rdx, [rax + 1]
call sym.operator_delete_void__unsigned_long_long_
lea r8, [method.std::filesystem::__cxx11::filesystem_error.filesystem_error__]
lea rdx, [0x140114ad0]
mov rcx, r13
call sym.__cxa_throw
nop word cs:[rax + rax]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1400a2007
mov eax, 1
add rsp, 0x68
pop rbx
pop rsi
pop r12
pop r13
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], eax
jmp 0x1400a1fda
Function at 0x1400a2120
Capabilities:
Delete directory
Delete file

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call method.std::filesystem.symlink_status_std::filesystem::__cxx11::path_const__std::error_code_
test al, al
je 0x1400a2187
cmp al, 0xff
je 0x1400a2178
mov rdx, rbx
mov rcx, rsi
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
cmp al, 2
je 0x1400a2190
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400a219d
mov eax, dword [rbx]
test eax, eax
jne 0x1400a2187
call method.std::_V2.system_category__
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rbx + 8], rsi
mov dword [rbx], eax
xor eax, eax
jmp 0x1400a2189
call method.std::_V2.system_category__
mov dword [rbx], 0
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1400a2148
call method.std::_V2.system_category__
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x1400a21c0
Capabilities:
Move file

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov rbx, rdx
lea r12, [rsp + 0x40]
mov rbp, rcx
mov dword [rsp + 0x40], 0
call method.std::_V2.system_category__
mov rdx, r12
mov rcx, rbx
mov qword [rsp + 0x48], rax
mov rdi, rax
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
mov rsi, rax
cmp al, 0xff
je 0x1400a2270
mov ecx, dword [rsp + 0x40]
test ecx, ecx
jne 0x1400a22e2
test al, al
jne 0x1400a2280
mov rdx, qword [rbx]
mov rcx, qword [rbp]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400a2260
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [sym.imp.msvcrt.dll__errno]
cmp eax, 5
je 0x1400a22b8
call rdi
mov dword [rax], 5
call method.std::_V2.generic_category__
mov rsi, rax
call rdi
mov qword [rsp + 0x48], rsi
mov eax, dword [rax]
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x1400a22e2
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x48], rdi
jmp 0x1400a220e
mov rdx, r12
mov rcx, rbp
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
mov edx, dword [rsp + 0x40]
test edx, edx
jne 0x1400a22e2
cmp sil, 2
je 0x1400a22c8
cmp al, 2
jne 0x1400a220e
call method.std::_V2.generic_category__
mov dword [rsp + 0x40], 0x14
mov qword [rsp + 0x48], rax
jmp 0x1400a22e2
call rdi
mov dword [rax], 0xd
jmp 0x1400a2243
cmp al, 2
je 0x1400a220e
call method.std::_V2.generic_category__
mov dword [rsp + 0x40], 0x15
mov qword [rsp + 0x48], rax
mov ecx, 0x30
lea r12, [rsp + 0x50]
call sym.__cxa_allocate_exception
lea rdx, str.cannot_rename
mov rcx, r12
mov r13, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const___clone_.constprop.0_
lea rax, [rsp + 0x30]
mov r9, rbx
mov r8, rbp
mov rdx, r12
mov qword [rsp + 0x20], rax
movdqa xmm0, xmmword [rsp + 0x40]
mov rcx, r13
movaps xmmword [rsp + 0x30], xmm0
call sym._ZNSt10filesystem7__cxx1116filesystem_errorC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_4pathESC_St10error_c
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
cmp rcx, rax
je 0x1400a2346
mov rax, qword [rsp + 0x60]
lea rdx, [rax + 1]
call sym.operator_delete_void__unsigned_long_long_
lea r8, [method.std::filesystem::__cxx11::filesystem_error.filesystem_error__]
lea rdx, [0x140114ad0]
mov rcx, r13
call sym.__cxa_throw
mov rcx, qword [rsp + 0x50]
mov r12, rax
lea rax, [rsp + 0x60]
cmp rcx, rax
je 0x1400a237c
mov rax, qword [rsp + 0x60]
lea rdx, [rax + 1]
call sym.operator_delete_void__unsigned_long_long_
mov rcx, r13
call sym.__cxa_free_exception
mov rcx, r12
call dbg._Unwind_Resume
mov r12, rax
jmp 0x1400a237c
Function at 0x1400a23a0
Capabilities:
Move file

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rbp, rcx
mov rdx, r8
mov rbx, r8
mov rcx, rsi
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
mov rdi, rax
cmp al, 0xff
je 0x1400a2440
mov ecx, dword [rbx]
test ecx, ecx
jne 0x1400a2418
test al, al
jne 0x1400a2458
mov rdx, qword [rsi]
mov rcx, qword [rbp]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400a2428
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [sym.imp.msvcrt.dll__errno]
cmp eax, 5
je 0x1400a2490
call rdi
mov dword [rax], 5
call method.std::_V2.generic_category__
mov rsi, rax
call rdi
mov eax, dword [rax]
mov qword [rbx + 8], rsi
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call method.std::_V2.system_category__
mov dword [rbx], 0
mov qword [rbx + 8], rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call method.std::_V2.system_category__
mov dword [rbx], 0
mov qword [rbx + 8], rax
jmp 0x1400a23d1
mov rdx, rbx
mov rcx, rbp
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
mov edx, dword [rbx]
test edx, edx
jne 0x1400a2418
cmp dil, 2
je 0x1400a24a0
cmp al, 2
jne 0x1400a23d1
call method.std::_V2.generic_category__
mov dword [rbx], 0x14
mov qword [rbx + 8], rax
jmp 0x1400a2418
call rdi
mov dword [rax], 0xd
jmp 0x1400a2406
cmp al, 2
je 0x1400a23d1
call method.std::_V2.generic_category__
mov dword [rbx], 0x15
mov qword [rbx + 8], rax
jmp 0x1400a2418

Function at 0x1400acd00
Capabilities:
Get disk size

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r13, qword [rsp + 0xa0]
mov qword [rsp + 0x28], 0
mov r12, rdx
mov rbp, r8
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x30]
mov rdi, r9
lea r9, [rsp + 0x38]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov esi, eax
call method.std::_V2.system_category__
mov rbx, rax
test esi, esi
je 0x1400acda8
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1400acd69
mov qword [r12], rax
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x1400acd77
mov qword [rbp], rax
mov rax, qword [rsp + 0x28]
test rax, rax
jne 0x1400acda0
xor eax, eax
mov dword [r13], eax
mov qword [r13 + 8], rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov qword [rdi], rax
jmp 0x1400acd81
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400acd83

Function at 0x1400b2d40
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x1400b2d67
call rbp
cmp dword [rax], 4
jne 0x1400b2d84
mov rcx, qword [rdi]
call sym.fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sym.read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x1400b2d60
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400cb630
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x1400cb658
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x1400cb6a0
cdqe
add rsi, rax
sub rbx, rax
jne 0x1400cb670
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x1400cb6ac
call rbp
cmp dword [rax], 4
je 0x1400cb670
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1400cbac0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x1400cbae8
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x1400cbb30
cdqe
add rsi, rax
sub rbx, rax
jne 0x1400cbb00
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x1400cbb3c
call rbp
cmp dword [rax], 4
je 0x1400cbb00
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1400feea0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rdx
mov rax, rcx
mov r10, rdx
and r11, 0xfffffffffffffff8
add r11, rcx
movabs rcx, 0xc6a4a7935bd1e995
imul r10, rcx
xor r10, r8
cmp rax, r11
je 0x1400feef8
nop word cs:[rax + rax]
mov r9, qword [rax]
add rax, 8
imul r9, rcx
mov r8, r9
shr r8, 0x2f
xor r8, r9
imul r8, rcx
xor r8, r10
mov r10, r8
imul r10, rcx
cmp r11, rax
jne 0x1400feed0
and edx, 7
je 0x1400fefa1
lea eax, [rdx - 1]
mov ecx, edx
cdqe
movzx eax, byte [r11 + rax]
sub ecx, 2
js 0x1400fef90
movsxd rcx, ecx
shl rax, 8
movzx ecx, byte [r11 + rcx]
add rax, rcx
lea ecx, [rdx - 3]
cmp rdx, 2
je 0x1400fef90
movsxd rcx, ecx
shl rax, 8
movzx ecx, byte [r11 + rcx]
add rax, rcx
lea ecx, [rdx - 4]
cmp rdx, 3
je 0x1400fef90
movsxd rcx, ecx
shl rax, 8
movzx ecx, byte [r11 + rcx]
add rax, rcx
lea ecx, [rdx - 5]
cmp rdx, 4
je 0x1400fef90
movsxd rcx, ecx
shl rax, 8
movzx ecx, byte [r11 + rcx]
add rax, rcx
lea ecx, [rdx - 6]
cmp rdx, 5
je 0x1400fef90
movsxd rdx, ecx
shl rax, 8
movzx edx, byte [r11 + rdx]
add rax, rdx
test ecx, ecx
je 0x1400fef90
movzx edx, byte [r11]
shl rax, 8
add rax, rdx
xor rax, r10
movabs r10, 0xc6a4a7935bd1e995
imul r10, rax
movabs rax, 0xc6a4a7935bd1e995
mov rdx, r10
shr rdx, 0x2f
xor rdx, r10
imul rdx, rax
mov rax, rdx
shr rax, 0x2f
xor rax, rdx
ret

Function at 0x1401005c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, r8
test rdx, rdx
je 0x1401005ec
movabs r9, 0x100000001b3
add rdx, rcx
nop dword [rax]
movsx r8, byte [rcx]
add rcx, 1
xor rax, r8
imul rax, r9
cmp rcx, rdx
jne 0x1401005d8
ret
Function at 0x140002bb0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140004780
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004780
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002c20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002d50
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002c6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002cf5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002c50
mov rcx, rbx
call fcn.140003670
mov rdi, rax
test rax, rax
je 0x140002d72
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400037b0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002d57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002cee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002d00
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002cee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002bb0
nop dword [rax]
xor esi, esi
jmp 0x140002c78
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002bb0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002bb0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400032e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x14000333c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003333
test rsi, rsi
je 0x140003333
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003318
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003670
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006ac0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003690
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003698
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003690
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400036ed
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400036e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003690
add rax, 0x28
cmp rax, r9
jne 0x1400036d0
xor eax, eax
ret

Function at 0x1400036f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006ac0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000370f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003718
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000370f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400037b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006ac0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400037cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400037d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001788
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialog.virtual_640
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xb0], rdx
test rdx, 0xffffffffffff0000
jne 0x1400075ab
cmp dword [rcx + 0xa8], 0
jne 0x1400075ab
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.140013494
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.140007510
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400039d8
Capabilities:
Get graphical window text

Disassembly:
mov rax, rdx
lea r8, [rcx + 0xe8]
mov edx, 0x3f4
mov rcx, rax
jmp 0x14001489c
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
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
call fcn.14001470c
xor r12d, r12d
mov esi, 1
mov rbp, rax
mov rcx, rax
mov dword [rbx + 0x14], esi
cmp dword [rbx], r12d
je 0x14001496a
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov rcx, qword [rdi]
sub esi, dword [rcx - 8]
mov ecx, dword [rcx - 0xc]
movsxd rbx, eax
sub ecx, ebx
or esi, ecx
jge 0x1400148fc
mov edx, ebx
mov rcx, rdi
call fcn.140001390
cmp ebx, r12d
mov rdx, qword [rdi]
jl 0x14001495f
cmp ebx, dword [rdx - 0xc]
jg 0x14001495f
mov dword [rdx - 0x10], ebx
mov rax, qword [rdi]
lea r8d, [rbx + 1]
mov rcx, rbp
mov word [rax + rbx*2], r12w
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi]
cmp rcx, r12
jne 0x14001492e
mov eax, r12d
jmp 0x14001493c
movsxd rdx, dword [rcx - 0xc]
call fcn.14002db48
cmp eax, r12d
jl 0x140014954
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x140014954
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rdi]
mov word [rax + rcx*2], r12w
jmp 0x140014972
mov ecx, 0x80070057
call fcn.1400013d8
int3
mov ecx, 0x80070057
call fcn.1400013d8
int3
mov rdx, qword [rdi]
call fcn.140016054
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x1400052d4
Capabilities:
Extract resource via kernel32 functions

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, 0x20
xor esi, esi
xor ebx, ebx
mov r12, r9
mov rdi, r8
mov rbp, rdx
mov r14, rcx
test r8, r8
je 0x140005346
call fcn.140013494
mov r8d, 0xf0
mov rdx, rdi
mov r13, qword [rax + 0x18]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140005346
mov rdx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x140005393
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
mov edi, 1
test rsi, rsi
je 0x140005373
mov r10, qword [r14]
mov r9, r12
mov r8, rsi
mov rdx, rbp
mov rcx, r14
call qword [r10 + 0x40]
mov edi, eax
test rbx, rbx
je 0x140005373
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
cmp qword [rbp + 0x98], 0
je 0x140005391
mov rcx, qword [rbp + 0x98]
mov rdx, r12
mov r8, qword [rcx]
call qword [r8 + 0x140]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret

Function at 0x140006320
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 + 0xa8], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x140006397
call fcn.1400062ac
mov rsi, rax
test rax, rax
jne 0x140006353
mov eax, edi
jmp 0x1400063ad
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov rdx, rbx
mov rcx, rsi
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
cmove edi, dword [rsp + 0x30]
jmp 0x14000634f
mov r9, qword [rcx + 0xd0]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14000756c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialog.virtual_640
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xb0], rdx
test rdx, 0xffffffffffff0000
jne 0x1400075ab
cmp dword [rcx + 0xa8], 0
jne 0x1400075ab
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.140013494
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.140007510
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000bf94
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.140016258
mov rsi, rax
test rax, rax
je 0x14000c010
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x14000c00b
cmp dword [rbx], 0x40
jb 0x14000c00b
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x14000c00b
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x14000c014
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140012718
Capabilities:
Extract resource via kernel32 functions

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
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x140012780
call fcn.140013494
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140012780
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x1400127a2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.140012128
mov esi, eax
test rdi, rdi
je 0x1400127a0
test rbx, rbx
je 0x1400127a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret