joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029d56
Capabilities:
Query or enumerate registry value

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x180
xor eax, eax
mov rbx, rdx
mov edx, dword [rsp + 0x1e0]
mov r12, r9
mov r13, rcx
lea rdi, [rsp + 0x7c]
mov ecx, 0x41
xor r9d, r9d
mov dword [rsp + 0x60], 0xffffffff
rep stosd dword [rdi], eax
mov ecx, edx
mov rdi, r12
mov qword [rsp + 0x68], r9
rep stosb byte [rdi], al
mov rcx, rbx
mov qword [rsp + 0x70], r9
lea r14, [rsp + 0x7c]
mov dword [rsp + 0x64], edx
call sub.msvcrt.dll_strlen
mov rcx, rax
mov rbp, rax
test rbp, rbp
je 0x140029e4f
cmp byte [rbx + rbp], 0x5c
je 0x140029dcc
dec rbp
jmp 0x140029db8
cmp rbp, 0x103
ja 0x140029f0f
mov eax, 0x104
inc rcx
mov rdi, r14
mov rsi, rbx
cmp rcx, rax
cmova rcx, rax
mov ecx, ecx
rep movsb byte [rdi], byte [rsi]
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov r9d, 0x20019
mov rcx, r13
lea rdx, [rax + 1]
cmp rdx, 0x104
mov edx, 0x103
cmovae rax, rdx
xor r8d, r8d
mov rdx, r14
mov byte [rsp + rax + 0x7c], 0
lea rax, [rsp + 0x70]
mov byte [rsp + rbp + 0x7c], 0
inc rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140029ec8
xor r8d, r8d
mov qword [rsp + 0x70], r8
jmp 0x140029eee
lea rax, [rsp + 0x68]
xor r8d, r8d
mov r9d, 0x2001d
mov rcx, r13
mov qword [rsp + 0x20], rax
lea rdx, [0x14009112d]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140029e7f
xor ecx, ecx
mov qword [rsp + 0x68], rcx
jmp 0x140029eee
lea rax, [rsp + 0x5c]
xor edx, edx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
xor eax, eax
mov dword [rsp + 0x20], edx
lea rdx, [0x14009120a]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 7
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140029e42
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], r12
lea rdx, [rbx + rbp]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140029efe
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140029f0f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
add rsp, 0x180
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x140029fc0
Capabilities:
Delete file

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14002790d
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
test rbx, rbx
je 0x140029fec
mov rcx, rbx
call sub.msvcrt.dll_free
mov ecx, esi
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.DLL_SetLastError]
Function at 0x14002a381
Capabilities:
Get graphical window text

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov byte [rdx], 0
movsxd r13, r8d
mov rbx, rcx
mov rdi, rdx
mov rcx, r13
mov edx, 2
call sub.msvcrt.dll_calloc
mov rcx, rbx
mov r8d, r13d
mov rdx, rax
mov rsi, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov r14, qword [sym.imp.KERNEL32.DLL_GetLastError]
mov r12d, eax
call r14
mov ebx, eax
test r12d, r12d
je 0x14002a401
xor eax, eax
or r9d, 0xffffffff
xor edx, edx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x38], rax
mov r8, rsi
mov ecx, 0xfde9
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
test eax, eax
jne 0x14002a401
call r14
mov ebx, eax
test rsi, rsi
je 0x14002a40e
mov rcx, rsi
call sub.msvcrt.dll_free
mov ecx, ebx
mov byte [rdi + r13 - 1], 0
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.DLL_SetLastError]
Function at 0x14003435a
Capabilities:
Query or enumerate registry value

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x180
xor r10d, r10d
xor eax, eax
xor r9d, r9d
mov dword [r8], r10d
mov r13, rcx
lea rdi, [rsp + 0x7c]
mov ecx, 0x41
rep stosd dword [rdi], eax
mov rcx, rdx
mov qword [rsp + 0x68], r9
mov rbx, rdx
mov qword [rsp + 0x70], r9
mov r12, r8
lea r14, [rsp + 0x7c]
mov dword [rsp + 0x60], 0xffffffff
mov dword [rsp + 0x64], 4
call sub.msvcrt.dll_strlen
mov rcx, rax
mov rbp, rax
test rbp, rbp
je 0x14003444f
cmp byte [rbx + rbp], 0x5c
je 0x1400343cc
dec rbp
jmp 0x1400343b8
cmp rbp, 0x103
ja 0x14003450f
mov eax, 0x104
inc rcx
mov rdi, r14
mov rsi, rbx
cmp rcx, rax
cmova rcx, rax
mov ecx, ecx
rep movsb byte [rdi], byte [rsi]
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov r9d, 0x20019
mov rcx, r13
lea rdx, [rax + 1]
cmp rdx, 0x104
mov edx, 0x103
cmovae rax, rdx
xor r8d, r8d
mov rdx, r14
mov byte [rsp + rax + 0x7c], 0
lea rax, [rsp + 0x70]
mov byte [rsp + rbp + 0x7c], 0
inc rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400344c8
xor r8d, r8d
mov qword [rsp + 0x70], r8
jmp 0x1400344ee
lea rax, [rsp + 0x68]
xor r8d, r8d
mov r9d, 0x2001d
mov rcx, r13
mov qword [rsp + 0x20], rax
lea rdx, [0x140093efc]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14003447f
xor ecx, ecx
mov qword [rsp + 0x68], rcx
jmp 0x1400344ee
lea rax, [rsp + 0x5c]
xor edx, edx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
xor eax, eax
mov dword [rsp + 0x20], edx
lea rdx, [0x140093f05]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 7
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140034442
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], r12
lea rdx, [rbx + rbp]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400344fe
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14003450f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
add rsp, 0x180
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x14003523d
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140035277
xor eax, eax
mov dword [rcx + 0xc], edx
mov dword [rcx + 8], eax
mov ecx, edx
mov edx, 8
call sub.msvcrt.dll_calloc
mov qword [rbx], rax
test rax, rax
jne 0x140035277
lea rcx, str.Could_not_allocate_string_array_n
add rsp, 0x20
pop rbx
jmp fcn.140036717
add rsp, 0x20
pop rbx
ret
Function at 0x140035786
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r13, qword [rsp + 0x80]
mov rbx, rcx
mov r12, r9
call qword [sym.imp.KERNEL32.DLL_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x1400357c2
call fcn.140036bd7
mov rdx, r12
lea rcx, str.Could_not_locate_resource__s:__s_n
mov r8, rax
jmp 0x1400357e8
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_LoadResource]
mov rsi, rax
test rax, rax
jne 0x1400357f4
call fcn.140036bd7
mov rdx, r12
lea rcx, str.Could_not_load_resource__s:__s_n
mov r8, rax
call fcn.140036717
xor ebx, ebx
jmp 0x140035888
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_SizeofResource]
cmp dword [rsp + 0x88], 0
mov ebp, eax
je 0x140035878
cmp dword [r13], 0
jne 0x140035817
mov dword [r13], eax
mov ecx, dword [r13]
mov edx, 1
mov rdi, rcx
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
jne 0x140035841
mov rdx, r12
lea rcx, str.Could_not_allocate_resource__s_n
call fcn.140036717
jmp 0x1400357ed
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_LockResource]
cmp edi, ebp
cmova edi, ebp
mov rsi, rax
mov eax, dword [r13]
mov ecx, edi
mov rdi, rbx
rep movsb byte [rdi], byte [rsi]
cmp eax, ebp
jae 0x140035884
mov r8d, ebp
mov rdx, r12
lea rcx, str.WARNING:_Resource__s_was_truncated_by__d_bytes__n
sub r8d, eax
call fcn.140036717
jmp 0x140035884
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_LockResource]
mov rbx, rax
mov dword [r13], ebp
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x140035d4b
Capabilities:
Create thread
Terminate thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x58], eax
mov rax, qword [0x1400b1aa0]
mov qword [rsp + 0x40], rdx
mov rdx, qword [rax]
mov dword [rsp + 0x38], ecx
xor ecx, ecx
mov dword [rsp + 0x30], ecx
lea rcx, str.DisableLGP
test rdx, rdx
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x50], r9
je 0x140035ddf
mov r8d, 1
call fcn.14002284a
mov rbx, rax
test rax, rax
je 0x140035dfa
xor r8d, r8d
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_strtol
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_free
test esi, esi
je 0x140035dfa
mov rsi, qword [0x1400b1d20]
mov rbx, qword [0x1400b1d10]
mov edx, 0xffc
lea r8, str.LPG_handling_disabled__per_settings
mov rcx, qword [rsi]
sub rdx, rcx
add rcx, rbx
jmp 0x140035e48
mov rdx, rcx
lea r8, [rsp + 0x34]
mov rcx, 0xffffffff80000001
call fcn.14003435a
cmp dword [rsp + 0x34], 0
jmp 0x140035db8
xor eax, eax
xor edx, edx
lea r9, [rsp + 0x38]
xor ecx, ecx
mov dword [rsp + 0x20], edx
lea r8, [0x140033de6]
xor edx, edx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov rbx, rax
test rax, rax
jne 0x140035e79
mov rsi, qword [0x1400b1d20]
mov rbx, qword [0x1400b1d10]
mov edx, 0xffc
lea r8, str.SetLGP:_Unable_to_start_thread
mov rcx, qword [rsi]
sub rdx, rcx
add rcx, rbx
call qword [sym.imp.msvcrt.dll__snprintf]
mov rcx, rbx
mov byte [rbx + 0xffb], 0
call sub.msvcrt.dll_strlen
lea rdx, [rax + 2]
mov byte [rbx + rax], 0xd
mov qword [rsi], rdx
mov byte [rbx + rax + 1], 0xa
mov byte [rbx + rax + 2], 0
xor eax, eax
jmp 0x140035f08
mov edx, 0x1388
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x140035eee
mov rdi, qword [0x1400b1d20]
mov rsi, qword [0x1400b1d10]
mov edx, 0xffc
lea r8, str.SetLGP:_Killing_stuck_thread_
mov rcx, qword [rdi]
sub rdx, rcx
add rcx, rsi
call qword [sym.imp.msvcrt.dll__snprintf]
mov rcx, rsi
mov byte [rsi + 0xffb], 0
call sub.msvcrt.dll_strlen
mov rcx, rbx
lea rdx, [rax + 2]
mov byte [rsi + rax], 0xd
mov qword [rdi], rdx
xor edx, edx
mov byte [rsi + rax + 1], 0xa
mov byte [rsi + rax + 2], 0
call qword [sym.imp.KERNEL32.DLL_TerminateThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x140035e72
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
test eax, eax
je 0x140035e72
mov eax, dword [rsp + 0x30]
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
Function at 0x140036110
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x90
xor ecx, ecx
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystemEnableLUA
lea rbx, [rsp + 0x88]
mov dword [rsp + 0x6c], ecx
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x7a], r8d
mov r8, rbx
mov qword [rsp + 0x80], 0xffffffffffffffff
mov word [rsp + 0x7e], 0x500
call fcn.14003435a
cmp dword [rsp + 0x88], 1
jne 0x1400361f7
lea rcx, str.Note:_UAC_is_active
call fcn.140036717
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea r8, [rsp + 0x80]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400361a2
call fcn.140036bd7
lea rcx, str.Could_not_get_current_process_token:__s
mov rdx, rax
jmp 0x1400361dd
lea rax, [rsp + 0x70]
mov r9d, 4
lea r8, [rsp + 0x74]
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov edx, 0x14
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1400361e7
call fcn.140036bd7
lea rcx, str.Could_not_get_token_information:__s
mov rdx, rax
call fcn.140036717
jmp 0x14003626f
xor eax, eax
cmp dword [rsp + 0x74], 0
setne al
mov dword [rsp + 0x6c], eax
jmp 0x14003626f
lea rcx, str.Note:_UAC_is_either_disabled_or_not_available
call fcn.140036717
xor edx, edx
mov qword [rsp + 0x50], rbx
lea rcx, [rsp + 0x7a]
mov dword [rsp + 0x48], edx
mov r9d, 0x220
mov r8d, 0x20
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], edx
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14003626f
xor ecx, ecx
mov rdx, qword [rsp + 0x88]
lea r8, [rsp + 0x6c]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140036261
xor eax, eax
mov dword [rsp + 0x6c], eax
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x80]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140036287
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [rsp + 0x6c]
add rsp, 0x90
pop rbx
ret
Function at 0x140036717
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rsi, [0x14010ffa0]
mov qword [rsp + 0x58], rdx
mov edx, 0xffd
mov qword [rsp + 0x60], r8
mov r8, rcx
mov rcx, rsi
mov qword [rsp + 0x68], r9
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], r9
call fcn.140075a00
test eax, eax
jns 0x140036757
mov eax, 0xffd
cdqe
mov rdi, qword [sym.imp.msvcrt.dll_isspace]
lea rbx, [rsi + rax]
cmp rsi, rbx
jb 0x1400367e6
mov word [rbx], 0xa0d
mov rcx, rsi
mov byte [rbx + 2], 0
call fcn.140036610
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
mov rdi, qword [0x1400b19a0]
mov rcx, qword [rdi]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400367ff
mov rsi, qword [sym.imp.USER32.dll_SendMessageW]
mov r9d, 0x7ffffffe
mov r8d, 0x7ffffffe
mov edx, 0xb1
call rsi
mov rcx, qword [rdi]
mov r9, rbx
xor r8d, r8d
mov edx, 0xc2
call rsi
mov rcx, qword [rdi]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xba
call rsi
mov rcx, qword [rdi]
xor r8d, r8d
mov edx, 0xb6
movsxd r9, eax
call rsi
jmp 0x1400367ff
movzx ecx, byte [rbx - 1]
call rdi
test eax, eax
je 0x140036769
dec rbx
mov byte [rbx], 0
jmp 0x140036764
mov rcx, rbx
call sub.msvcrt.dll_free
nop
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret

Function at 0x140036810
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
call fcn.140036610
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
mov rdi, qword [0x1400b19a0]
mov rcx, qword [rdi]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140036886
mov rsi, qword [sym.imp.USER32.dll_SendMessageW]
mov r9d, 0x7ffffffe
mov r8d, 0x7ffffffe
mov edx, 0xb1
call rsi
mov rcx, qword [rdi]
mov r9, rbx
xor r8d, r8d
mov edx, 0xc2
call rsi
mov rcx, qword [rdi]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xba
call rsi
mov rcx, qword [rdi]
xor r8d, r8d
mov edx, 0xb6
movsxd r9, eax
call rsi
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sub.msvcrt.dll_free

Function at 0x140036895
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, rdx
lea rdx, [0x1400950c0]
mov rsi, rcx
call fcn.1400366bd
mov rbx, rax
test rax, rax
jne 0x1400368d2
mov rdx, rsi
lea rcx, str.Error:_Cant_open_file__s
xor r12d, r12d
call fcn.140036717
jmp 0x140036965
mov r8d, 2
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_fseek
mov rcx, rbx
call sub.msvcrt.dll_ftell
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov r13d, eax
call sub.msvcrt.dll_fseek
mov rcx, r13
mov r12d, r13d
call sub.msvcrt.dll_malloc
mov qword [rdi], rax
mov rcx, rax
test rax, rax
jne 0x140036924
mov r8, rsi
mov edx, r13d
lea rcx, str.Error:_Cant_allocate__d_bytes_buffer_for_file__s
call fcn.140036717
jmp 0x140036948
mov r9, rbx
mov r8, r13
mov edx, 1
call sub.msvcrt.dll_fread
cmp r13, rax
je 0x14003694b
mov rdx, rsi
lea rcx, str.Error:_Cant_read__s
call fcn.140036717
xor r12d, r12d
mov rcx, rbx
call sub.msvcrt.dll_fclose
test r12d, r12d
jne 0x140036965
mov rcx, qword [rdi]
call sub.msvcrt.dll_free
xor eax, eax
mov qword [rdi], rax
mov eax, r12d
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x140036975
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, rdx
lea rdx, [0x14009512a]
mov rsi, rcx
mov edi, r8d
call fcn.1400366bd
mov rbx, rax
test rax, rax
jne 0x1400369ad
mov rdx, rsi
lea rcx, str.Error:_Cant_create__s
xor ebp, ebp
call fcn.140036717
jmp 0x1400369dd
mov rcx, rbp
mov r9, rax
mov r8d, edi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov ebp, eax
cmp edi, eax
je 0x1400369d5
mov rdx, rsi
lea rcx, str.Error:_Cant_write__s
call fcn.140036717
mov rcx, rbx
call sub.msvcrt.dll_fclose
mov eax, ebp
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x14003802b
Capabilities:
Create thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
mov ebx, r8d
mov edi, edx
call fcn.140036610
xor edx, edx
mov dword [rsp + 0x44], ebx
lea r9, [rsp + 0x38]
mov rsi, rax
mov dword [rsp + 0x20], edx
lea r8, [0x1400365c0]
xor edx, edx
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xa0]
xor ecx, ecx
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0xa8]
mov qword [rsp + 0x50], 0xffffffffffffffff
mov dword [rsp + 0x4c], eax
xor eax, eax
mov dword [rsp + 0x58], 0x3e5
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov rbx, rax
test rax, rax
je 0x1400380dc
mov edx, dword [rsp + 0xb8]
mov rdi, qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, rax
call rdi
cmp eax, 0x102
jne 0x1400380d1
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CancelSynchronousIo]
or edx, 0xffffffff
mov rcx, rbx
call rdi
mov dword [rsp + 0x58], 0x102
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x1400380e6
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsp + 0x58], eax
test rsi, rsi
je 0x1400380f3
mov rcx, rsi
call sub.msvcrt.dll_free
mov ecx, dword [rsp + 0x58]
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rax, qword [rsp + 0x50]
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
Function at 0x14003810a
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov edi, dword [rsp + 0xb0]
mov qword [rsp + 0x90], rcx
mov ebp, r8d
mov rbx, r9
mov qword [rsp + 0x98], rdx
test r9, r9
jne 0x140038141
lea rbx, [rsp + 0x34]
mov rcx, qword [rsp + 0x90]
mov r13, qword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
mov r9d, 1
xor edx, edx
lea r8, [rsp + 0x38]
call r13
mov r12d, eax
test eax, eax
jne 0x14003817b
call fcn.140036bd7
lea rcx, str.Warning:_Could_not_read_file_pointer__s
mov rdx, rax
call fcn.140036717
test edi, edi
mov eax, 1
mov r14, qword [sym.imp.KERNEL32.DLL_WriteFile]
mov esi, 1
cmove edi, eax
lea r15, str.Write_error__s
xor ecx, ecx
mov rdx, qword [rsp + 0x98]
mov r9, rbx
mov r8d, ebp
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x90]
call r14
test eax, eax
je 0x140038203
mov rax, qword [0x1400b1220]
xor edx, edx
mov dword [rax], edx
mov edx, dword [rbx]
cmp edx, ebp
je 0x1400382aa
mov rax, qword [0x1400b1af0]
cmp dword [rax], 0
je 0x1400381f2
test edx, edx
jne 0x1400381f2
lea rcx, str.Warning:_Possible_short_write
call fcn.140036717
jmp 0x1400382aa
mov r8d, ebp
lea rcx, str.Wrote__d_bytes_but_requested__d
call fcn.140036717
jmp 0x140038227
call fcn.140036bd7
mov rcx, r15
mov rdx, rax
call fcn.140036717
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov rdx, qword [0x1400b1220]
or eax, 0xc0030000
mov dword [rdx], eax
test r12d, r12d
je 0x14003828e
cmp esi, edi
jae 0x140038255
mov edx, 5
lea rcx, str.Retrying_in__d_seconds...
call fcn.140036717
mov ecx, 0x1388
xor edx, edx
call fcn.14002d27c
mov ecx, eax
call qword [sym.imp.KERNEL32.DLL_Sleep]
inc esi
cmp edi, esi
jb 0x14003828e
cmp esi, 1
jbe 0x140038198
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x90]
call r13
test eax, eax
jne 0x140038198
lea rcx, str.Could_not_set_file_pointer___Aborting
call fcn.140036717
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test ax, ax
je 0x14003829d
xor eax, eax
jmp 0x1400382af
mov ecx, 0xc003001d
call qword [sym.imp.KERNEL32.DLL_SetLastError]
jmp 0x140038299
mov eax, 1
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140038e1b
Capabilities:
Get graphical window text

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov byte [rdx], 0
mov rbx, rcx
mov rbp, rdx
mov ecx, pe_nt_image_headers64
mov edx, 2
call sub.msvcrt.dll_calloc
mov rcx, rbx
mov r8d, pe_nt_image_headers64
mov rdx, rax
mov rdi, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov r12, qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
call r12
mov esi, eax
test ebx, ebx
je 0x140038e9c
xor eax, eax
mov dword [rsp + 0x28], pe_nt_image_headers64
or r9d, 0xffffffff
xor edx, edx
mov qword [rsp + 0x38], rax
mov r8, rdi
mov ecx, 0xfde9
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov ebx, eax
test eax, eax
jne 0x140038e9c
call r12
mov esi, eax
test rdi, rdi
je 0x140038ea9
mov rcx, rdi
call sub.msvcrt.dll_free
mov byte [rbp + 0x7f], 0
mov ecx, esi
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, ebx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140039059
Capabilities:
Set registry value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov esi, edx
mov ebp, r9d
mov edx, 0x5c
xor r9d, r9d
mov qword [rsp + 0x60], r9
mov rbx, rcx
mov rdi, r8
mov qword [rsp + 0x68], r9
call sub.msvcrt.dll_strchr
test rax, rax
je 0x1400390a2
mov r8d, 0x91
lea rdx, str.registry.h
lea rcx, str.strchr_key_name_____NULL
call qword [sym.imp.msvcrt.dll__wassert]
lea rax, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov r9d, 0x2001d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400390d2
xor r8d, r8d
mov qword [rsp + 0x60], r8
jmp 0x14003913d
lea rax, [rsp + 0x5c]
xor edx, edx
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x30], rdx
lea rdx, str.SOFTWAREAkeo_ConsultingRufus
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x28], 7
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x140039120
xor eax, eax
mov qword [rsp + 0x68], rax
jmp 0x14003913d
mov dword [rsp + 0x28], ebp
mov rcx, qword [rsp + 0x68]
mov r9d, esi
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14003914d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14003915e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
ret