joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140028fd0
Capabilities:
Hash data using sha384
Hash data using sha512

Disassembly:
test rcx, rcx
je 0x140020626
mov rdx, qword [rcx]
test rdx, rdx
je 0x140020626
mov edx, dword [rdx + 8]
sub edx, 3
je 0x140020618
sub edx, 1
je 0x14002060d
sub edx, 1
je 0x1400205ff
cmp edx, 1
jne 0x140020626
mov rcx, qword [rcx + 8]
xor edx, edx
jmp 0x140028fd0
mov rcx, qword [rcx + 8]
mov edx, 1
jmp 0x140028fd0
mov rcx, qword [rcx + 8]
xor edx, edx
jmp 0x140027e30
mov rcx, qword [rcx + 8]
mov edx, 1
jmp 0x140027e30
mov eax, 0xffffaf00
ret
mov qword [rsp + 0x18], rsi
push rdi
mov edi, edx
mov rsi, rcx
cmp edx, 1
jbe 0x140027e4c
mov eax, 0xffffff8c
mov rsi, qword [rsp + 0x20]
pop rdi
ret
mov qword [rsp + 0x10], rbx
xor eax, eax
mov qword [rcx], rax
test edi, edi
mov qword [rsp + 0x18], rbp
mov eax, 0x367cd507
mov ebx, 0xbb67ae85
mov ebp, 0xc1059ed8
cmovne ebx, eax
mov r11d, 0x3c6ef372
mov eax, 0x3070dd17
mov r10d, 0xa54ff53a
cmovne r11d, eax
mov r9d, 0x1f83d9ab
mov eax, 0xf70e5939
mov r8d, 0x9b05688c
cmovne r10d, eax
mov edx, 0x510e527f
mov eax, 0x64f98fa7
mov ecx, 0x5be0cd19
cmovne r9d, eax
mov eax, 0x68581511
cmovne r8d, eax
mov eax, 0xffc00b31
cmovne edx, eax
mov eax, 0xbefa4fa4
cmovne ecx, eax
mov eax, 0x6a09e667
cmovne eax, ebp
mov dword [rsi + 8], eax
xor eax, eax
mov dword [rsi + 0xc], ebx
mov dword [rsi + 0x10], r11d
mov dword [rsi + 0x14], r10d
mov dword [rsi + 0x18], edx
mov dword [rsi + 0x1c], r8d
mov dword [rsi + 0x20], r9d
mov dword [rsi + 0x24], ecx
mov rbp, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x10]
mov dword [rsi + 0x68], edi
mov rsi, qword [rsp + 0x20]
pop rdi
ret
mov qword [rsp + 0x18], rsi
push rdi
mov edi, edx
mov rsi, rcx
cmp edx, 1
jbe 0x140028ff0
mov eax, 0xffffff8b
mov rsi, qword [rsp + 0x20]
pop rdi
ret
mov qword [rsp + 0x10], rbx
xor eax, eax
mov qword [rcx], rax
test edi, edi
mov qword [rcx + 8], rax
movabs rbx, 0xbb67ae8584caa73b
mov qword [rsp + 0x18], rbp
movabs rax, 0x629a292a367cd507
cmovne rbx, rax
movabs rbp, 0xcbbb9d5dc1059ed8
movabs rax, 0x9159015a3070dd17
movabs r11, 0x3c6ef372fe94f82b
cmovne r11, rax
movabs r10, 0xa54ff53a5f1d36f1
movabs rax, 0x152fecd8f70e5939
movabs r9, 0x510e527fade682d1
cmovne r10, rax
movabs r8, 0x5be0cd19137e2179
movabs rax, 0x67332667ffc00b31
movabs rdx, 0x1f83d9abfb41bd6b
cmovne r9, rax
movabs rcx, 0x9b05688c2b3e6c1f
movabs rax, 0x47b5481dbefa4fa4
cmovne r8, rax
movabs rax, 0xdb0c2e0d64f98fa7
cmovne rdx, rax
movabs rax, 0x8eb44a8768581511
cmovne rcx, rax
movabs rax, 0x6a09e667f3bcc908
cmovne rax, rbp
mov qword [rsi + 0x10], rax
xor eax, eax
mov qword [rsi + 0x18], rbx
mov qword [rsi + 0x20], r11
mov qword [rsi + 0x28], r10
mov qword [rsi + 0x30], r9
mov qword [rsi + 0x38], rcx
mov qword [rsi + 0x40], rdx
mov qword [rsi + 0x48], r8
mov rbp, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x10]
mov dword [rsi + 0xd0], edi
mov rsi, qword [rsp + 0x20]
pop rdi
ret

Function at 0x14002da80
Capabilities:
Generate random numbers via winapi

Disassembly:
mov r8d, edx
mov r9d, 2
mov rdx, rcx
xor ecx, ecx
jmp 0x1400a1000
jmp 0x14002d970
jmp qword [sym.imp.bcrypt.dll_BCryptGenRandom]
Function at 0x1400360e0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
push r14
push r15
sub rsp, 0x40
movsxd rbp, r9d
mov r14, r8
mov r15, rdx
mov rdi, rcx
test rcx, rcx
jne 0x140036111
lea eax, [rcx + 2]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x30], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
jne 0x140036169
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea r9, str.ERROR
mov ecx, 3
mov dword [rsp + 0x20], 2
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s___0x_lx__error_get_file_Version__lu_r_n
call fcn.14000afc0
mov eax, 2
jmp 0x1400362c9
mov rcx, rsi
mov qword [rsp + 0x68], rbx
lea rdx, str.peSearchInfo
call fcn.140047950
mov rbx, rax
test rax, rax
jne 0x1400361b2
lea r9, str.ERROR
mov dword [rsp + 0x20], 1
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s___0x_lx__Error_of_peSearchInfo_KfsMalloc_r_n
lea ecx, [rax + 3]
call fcn.14000afc0
lea eax, [rbx + 1]
jmp 0x1400362c4
mov r9, rbx
mov r8d, esi
xor edx, edx
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x1400361d2
lea rdx, str.__s_____s___0x_lx__Error_in_GetFileVersionInf_r_n
jmp 0x140036297
lea r9, [rsp + 0x34]
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov dword [rsp + 0x34], 0
lea rdx, str.VarFileInfoTranslation
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140036290
mov r8, qword [rsp + 0x38]
lea rcx, [rsp + 0x60]
mov r9d, 4
mov edx, r9d
call fcn.14002daa0
test eax, eax
je 0x14003624d
mov dword [rsp + 0x28], eax
lea r9, str.ERROR
lea r8, [0x1400cbd78]
mov dword [rsp + 0x20], 2
lea rdx, str.__s_____s___0x_lx__copy_file_info_to_translation_failed__ret:0x_x_r_n
mov ecx, 3
call fcn.14000afc0
jmp 0x1400362b7
movzx eax, word [rsp + 0x62]
lea r8, str.StringFileInfo_04X_04X_s
movzx r9d, word [rsp + 0x60]
mov rdx, rbp
mov qword [rsp + 0x28], r15
mov rcx, r14
mov dword [rsp + 0x20], eax
call fcn.140036380
cmp eax, 0xffffffff
jne 0x140036281
lea rdx, str.__s_____s___0x_lx__set_string_file_info_failed_r_n
jmp 0x140036297
mov rax, qword [rsp + 0x80]
mov qword [rax], rbx
xor eax, eax
jmp 0x1400362c4
lea rdx, str.__s_____s___0x_lx__Error_in_get_translation_r_n
lea r9, str.ERROR
mov dword [rsp + 0x20], 2
lea r8, [0x1400cbd78]
mov ecx, 3
call fcn.14000afc0
mov rcx, rbx
call fcn.14002d7f0
mov eax, 2
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1400442b0
Capabilities:
Query service status
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140120678]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor eax, eax
mov rdi, rcx
xorps xmm0, xmm0
mov qword [rbp - 0x38], rax
lea rcx, str.SOFTWAREWUCS
mov qword [rbp - 0x30], rax
movdqu xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x28], rax
xor ebx, ebx
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x18], eax
call fcn.140043ff0
test al, al
jne 0x140044315
lea rcx, str.SOFTWAREWOW6432NodeWUCS
call fcn.140043ff0
test al, al
je 0x14004431a
mov ebx, 0x23300014
test ebx, ebx
je 0x14004433a
mov dword [rsp + 0x20], ebx
lea r9, str.ERROR
lea rdx, str.__s_____s___0x_lx__installing_donot_start_service_r_n
mov ecx, 3
jmp 0x140044645
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rbp - 0x48], rax
test rax, rax
jne 0x140044373
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.ERROR
mov ecx, 3
mov ebx, eax
lea rdx, str.__s_____s___0x_lx__OpenSCManager_failed_r_n
jmp 0x140044641
mov r8d, 0xf01ff
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rbp - 0x40], rax
test rax, rax
jne 0x1400443ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.ERROR
mov ecx, 3
mov ebx, eax
lea rdx, str.__s_____s___0x_lx__OpenService_failed_r_n
jmp 0x140044641
lea rcx, [rbp - 0x50]
mov r9d, 0x24
mov qword [rsp + 0x20], rcx
lea r8, [rbp - 0x38]
mov rcx, rax
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x14004441b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.ERROR
mov ecx, 3
lea r8, [0x1400cbd78]
mov dword [rsp + 0x20], eax
lea rdx, str.__s_____s___0x_lx__QueryServiceStatusEx_failed_r_n
mov ebx, eax
call fcn.14000afc0
test ebx, ebx
je 0x14004441d
xor ebx, ebx
mov eax, dword [rbp - 0x34]
dec eax
test eax, 0xfffffffd
je 0x14004444d
lea r9, str.INFO
mov ecx, 1
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s__service_is_already_running_r_n
call fcn.14000afc0
jmp 0x140044651
mov edx, 3
lea rcx, [rbp - 0x48]
call fcn.1400446a0
mov ebx, eax
test eax, eax
je 0x140044479
lea r9, str.ERROR
mov ecx, 3
lea rdx, str.__s_____s___0x_lx__waiting_for_service_to_stop_failed_r_n
jmp 0x140044641
mov rcx, qword [rbp - 0x40]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1400444ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.ERROR
mov ecx, 3
mov ebx, eax
lea rdx, str.__s_____s___0x_lx__StartService_failed_r_n
jmp 0x140044641
lea r9, str.INFO
mov ecx, 1
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s__Service_start_pending..._r_n
call fcn.14000afc0
mov rcx, qword [rbp - 0x40]
lea rax, [rbp - 0x50]
mov r9d, 0x24
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x38]
xor edx, edx
Function at 0x1400446a0
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r14
sub rsp, 0x30
mov r14d, edx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
mov esi, dword [rbx + 0x24]
cmp dword [rbx + 0x14], r14d
jne 0x1400447f6
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x50], rdi
mov eax, dword [rbx + 0x28]
xor edx, edx
div qword [0x140120448]
mov edx, eax
mov rcx, rax
mov rax, qword [0x140120438]
cmp rdx, rax
jb 0x1400446fe
mov rax, qword [0x140120440]
cmp rdx, rax
cmova ecx, eax
mov eax, ecx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbx + 8]
lea rax, [rsp + 0x58]
mov r9d, 0x24
mov qword [rsp + 0x20], rax
lea r8, [rbx + 0x10]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140044796
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.ERROR
mov ecx, 3
lea r8, [0x1400cbd78]
mov dword [rsp + 0x20], eax
lea rdx, str.__s_____s___0x_lx__QueryServiceStatusEx_failed_r_n
mov edi, eax
call fcn.14000afc0
test edi, edi
je 0x140044798
lea r9, str.ERROR
mov dword [rsp + 0x20], edi
lea r8, [0x1400cbd78]
mov ecx, 3
lea rdx, str.__s_____s___0x_lx__UcsQueryServiceStatusEx_failed_r_n
call fcn.14000afc0
mov eax, edi
mov rdi, qword [rsp + 0x50]
mov r15, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
xor edi, edi
cmp dword [rbx + 0x24], esi
jbe 0x1400447aa
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [rbx + 0x24]
mov ebp, eax
jmp 0x1400447b7
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebp
cmp eax, dword [rbx + 0x28]
ja 0x1400447c3
cmp dword [rbx + 0x14], r14d
je 0x1400446d2
jmp 0x14004477c
mov dword [rsp + 0x28], r14d
lea r9, str.ERROR
lea r8, [0x1400cbd78]
mov dword [rsp + 0x20], 0x26600016
lea rdx, str.__s_____s___0x_lx__Timeout_waiting_for_service_state:_lu_r_n
mov ecx, 3
call fcn.14000afc0
mov eax, 0x26600016
jmp 0x14004477e
mov rbx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140044810
Capabilities:
Check if file exists

Disassembly:
push rsi
sub rsp, 0x40
cmp qword [rcx + 8], 0xffffffffffffffff
mov rsi, rcx
je 0x140044828
xor eax, eax
add rsp, 0x40
pop rsi
ret
mov rcx, qword [str..WUCS]
xor r9d, r9d
mov qword [rsp + 0x50], rbx
xor r8d, r8d
xor ebx, ebx
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x30], rbx
mov edx, 0xc0000000
mov dword [rsp + 0x28], 4
mov edi, ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x1400448fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x1400cbd78]
cmp eax, 2
je 0x14004499d
cmp eax, 5
jne 0x140044966
lea r9, str.INFO
lea rdx, str.__s_____s__driver_is_busy_wait_..._r_n
lea ecx, [rax - 4]
call fcn.14000afc0
mov ecx, dword [0x140120458]
call qword [sym.imp.KERNEL32.dll_Sleep]
add edi, dword [0x140120458]
cmp edi, dword [0x14012045c]
je 0x14004492c
mov rcx, qword [str..WUCS]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x140044871
lea r9, str.INFO
mov ecx, 1
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s__Ucs_Driver_Init_OK_r_n
call fcn.14000afc0
mov rdi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rsi
ret
mov ebx, 0x26600015
lea r9, str.ERROR
lea r8, [0x1400cbd78]
mov dword [rsp + 0x20], ebx
lea rdx, str.__s_____s___0x_lx__request_driver_timeout_r_n
mov ecx, 3
call fcn.14000afc0
mov rdi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rsi
ret
mov dword [rsp + 0x28], eax
lea r9, str.ERROR
mov ebx, 0x26600014
lea rdx, str.__s_____s___0x_lx__request_driver_failed__GLE_lu_r_n
mov ecx, 3
mov dword [rsp + 0x20], ebx
call fcn.14000afc0
mov rdi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rsi
ret
mov ebx, 0x26600008
lea r9, str.ERROR
lea rdx, str.__s_____s___0x_lx__driver_is_unavailable_r_n
mov dword [rsp + 0x20], ebx
mov ecx, 3
call fcn.14000afc0
mov rdi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rsi
ret
Function at 0x1400459d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, r9
mov ebp, r8d
mov rbx, rdx
mov rdi, rcx
test r9, r9
je 0x140045a3c
mov r9d, dword [rsp + 0x70]
lea rcx, [rbx + 0x10]
mov r8, rax
mov edx, 0x2800
call fcn.14002daa0
test eax, eax
je 0x140045a3c
lea r9, str.ERROR
mov dword [rsp + 0x20], eax
lea r8, [0x1400cbd78]
mov ecx, 3
lea rdx, str.__s_____s___0x_lx__copy_failed_for_in_buffer_r_n
call fcn.14000afc0
mov eax, 0x23300006
jmp 0x140045b35
mov r8d, dword [0x140120468]
lea r9, [rsp + 0x68]
add r8d, ebp
mov rdx, rbx
xor ebp, ebp
mov rcx, rdi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test al, al
jne 0x140045a92
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.ERROR
mov dword [rsp + 0x20], eax
lea r8, [0x1400cbd78]
mov ebx, eax
lea rdx, str.__s_____s___0x_lx__WriteFile_to_pipe_failed_r_n
lea ecx, [rbp + 3]
call fcn.14000afc0
mov eax, ebx
jmp 0x140045b35
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rbp
mov r8d, 0x2810
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test al, al
jne 0x140045ae1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.ERROR
mov ecx, 3
lea r8, [0x1400cbd78]
mov dword [rsp + 0x20], eax
lea rdx, str.__s_____s___0x_lx__ReadFile_from_pipe_failed_r_n
mov ebx, eax
call fcn.14000afc0
mov eax, ebx
jmp 0x140045b35
mov eax, dword [rbx + 4]
test eax, eax
jne 0x140045b35
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140045b33
mov edx, dword [rsp + 0x80]
lea r8, [rbx + 0x10]
mov r9d, edx
call fcn.14002daa0
test eax, eax
je 0x140045b33
lea r9, str.ERROR
mov dword [rsp + 0x20], eax
lea r8, [0x1400cbd78]
mov ecx, 3
lea rdx, str.__s_____s___0x_lx__copy_failed_for_out_buffer_r_n
call fcn.14000afc0
mov eax, 0x23300006
jmp 0x140045b35
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400468c0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140120678]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x50]
call fcn.1400a20f0
mov rdx, rbx
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
test eax, eax
jne 0x140046939
lea r9, str.ERROR
mov dword [rsp + 0x20], 0x2330000b
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s___0x_lx__UcsReadFile__Ucs_check_file_path_error.__r_n
lea ecx, [rax + 3]
call fcn.14000afc0
mov eax, 0x2330000b
jmp 0x140046a22
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400469a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea r9, str.ERROR
lea r8, [0x1400cbd78]
mov dword [rsp + 0x20], 0x23300012
lea rdx, str.__s_____s___0x_lx__UcsReadFile_CreateFile_Error.errCode:_d_r_n
lea ecx, [rbx + 4]
call fcn.14000afc0
mov eax, 0x23300012
jmp 0x140046a22
mov r8d, dword [rdi]
lea r9, [rsp + 0x40]
mov rdx, rsi
mov dword [rsp + 0x40], 0
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140046a10
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea r9, str.ERROR
mov ecx, 3
mov dword [rsp + 0x20], 0x23300012
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s___0x_lx__UcsReadFile_ReadFile_Error.errCode:_d_r_n
call fcn.14000afc0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x23300012
jmp 0x140046a22
mov eax, dword [rsp + 0x40]
mov rcx, rbx
mov qword [rdi], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400a0360
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret

Function at 0x140046a40
Capabilities:
Delete file

Disassembly:
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test al, al
jne 0x140046a89
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea r9, str.ERROR
mov ecx, 3
mov dword [rsp + 0x20], 0x2330000b
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s___0x_lx__UcsRemoveFile_DeleteFileW_ERROR.errCode:_lu_r_n
call fcn.14000afc0
mov eax, 0x2330000b
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret
Function at 0x140046a90
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140120678]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x50]
call fcn.1400a20f0
mov rdx, rbx
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
test eax, eax
jne 0x140046b09
lea r9, str.ERROR
mov dword [rsp + 0x20], 0x2330000b
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s___0x_lx__UcsWriteFile__Ucs_check_file_path_error.__r_n
lea ecx, [rax + 3]
call fcn.14000afc0
mov eax, 0x2330000b
jmp 0x140046c2e
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov edx, 0xc0000000
mov rcx, rbx
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140046b79
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea r9, str.ERROR
lea r8, [0x1400cbd78]
mov dword [rsp + 0x20], 0x23300008
lea rdx, str.__s_____s___0x_lx__UcsWriteFile_CreateFile_is_null.errCode:_d_r_n
lea ecx, [rbx + 4]
call fcn.14000afc0
mov eax, 0x23300008
jmp 0x140046c2e
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov r8d, edi
mov qword [rsp + 0x20], 0
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140046be3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea r9, str.ERROR
mov ecx, 3
mov dword [rsp + 0x20], 0x23300008
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s___0x_lx__UcsWriteFile_WriteFile_Error.errCode:_d_r_n
call fcn.14000afc0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x23300008
jmp 0x140046c2e
mov eax, dword [rsp + 0x40]
cmp rax, rdi
je 0x140046c23
lea r9, str.ERROR
mov dword [rsp + 0x20], 0x23300008
lea r8, [0x1400cbd78]
mov ecx, 3
lea rdx, str.__s_____s___0x_lx__UcsWriteFile_len_is_error._r_n
call fcn.14000afc0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x23300008
jmp 0x140046c2e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400a0360
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400479d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0xc0
mov rax, qword [0x140120678]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor edx, edx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x64]
call fcn.1400a20f0
mov rdx, qword [str.HARDWAREDESCRIPTIONSystemBIOS]
lea rax, [rsp + 0x38]
xor ebx, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x38], rbx
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140047a37
lea rdx, str.__s_____s___0x_lx__reg_open_key_failed__ErrorCode:_ld_r_n
jmp 0x140047b03
mov rdx, qword [str.SystemManufacturer]
lea rax, [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140047a7c
lea rdx, str.__s_____s___0x_lx__query_manufacturer_for_len_failed__ErrorCode:_ld_r_n
jmp 0x140047b03
mov eax, dword [rsp + 0x30]
cmp eax, 0x32
jbe 0x140047a9b
mov ebx, 0x23300004
mov dword [rsp + 0x28], gethostbyname
lea rdx, str.__s_____s___0x_lx__The_Manufacturer_is_too_large__max_len_is__d_r_n
jmp 0x140047b0c
cmp eax, 0x64
jbe 0x140047aca
mov ebx, 0x23300003
lea r9, str.ERROR
lea r8, [0x1400cbd78]
mov dword [rsp + 0x20], ebx
lea rdx, str.__s_____s___0x_lx__input_manufacturer_buffer_is_too_small_r_n
mov ecx, 3
call fcn.14000afc0
jmp 0x140047b28
mov rdx, qword [str.SystemManufacturer]
lea rax, [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
Function at 0x140047c10
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
lea rax, [rsp + 0x30]
mov rdi, rdx
mov qword [rsp + 0x30], rbx
mov rdx, qword [str.HARDWAREDESCRIPTIONSystemBIOS]
mov rsi, rcx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 1]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140047c61
lea rdx, str.__s_____s___0x_lx__reg_open_key_failed__ErrorCode:_ld_r_n
jmp 0x140047d28
mov rdx, qword [str.SystemManufacturer]
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x68], 1
mov dword [rsp + 0x60], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140047ca6
lea rdx, str.__s_____s___0x_lx__query_manufacturer_for_len_failed__ErrorCode:_ld_r_n
jmp 0x140047d28
mov eax, dword [rsp + 0x60]
cmp eax, 0x32
jbe 0x140047cc5
mov ebx, 0x23300004
mov dword [rsp + 0x28], gethostbyname
lea rdx, str.__s_____s___0x_lx__The_Manufacturer_is_too_large__max_len_is__d_r_n
jmp 0x140047d31
cmp rdi, rax
jae 0x140047cf4
mov ebx, 0x23300003
lea r9, str.ERROR
lea r8, [0x1400cbd78]
mov dword [rsp + 0x20], ebx
lea rdx, str.__s_____s___0x_lx__input_manufacturer_buffer_is_too_small_r_n
mov ecx, 3
call fcn.14000afc0
jmp 0x140047d4d
mov rdx, qword [str.SystemManufacturer]
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rsi