joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400dc080
Capabilities:
Capture screenshot

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa8
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, qword [rsp + 0x110]
mov rbx, rdx
mov r14d, r8d
mov r12, rcx
lea r8, [rsp + 0x60]
mov edx, 0x20
mov rcx, rbx
mov r15d, r9d
call qword [sym.imp.GDI32.dll_GetObjectA]
mov rcx, r12
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rdx, rbx
mov rcx, rax
mov rbp, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, r12
call qword [sym.imp.GDI32.dll_GetMapMode]
mov rcx, rbp
mov edx, eax
call qword [sym.imp.GDI32.dll_SetMapMode]
mov edx, dword [rsp + 0x68]
mov r11d, dword [rsp + 0x64]
mov dword [rsp + 0x5c], edx
lea rdx, [rsp + 0x58]
mov r8d, 1
mov rcx, r12
mov dword [rsp + 0x58], r11d
call qword [sym.imp.GDI32.dll_DPtoLP]
xor esi, esi
lea rdx, [rsp + 0x50]
lea r8d, [rsi + 1]
mov rcx, rbp
mov qword [rsp + 0x50], rsi
call qword [sym.imp.GDI32.dll_DPtoLP]
lea rdx, [rsp + 0x80]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [rsp + 0x88]
mov r13d, dword [rsp + 0x8c]
sub edi, dword [rsp + 0x80]
sub r13d, dword [rsp + 0x84]
test edi, edi
jle 0x1400dc1b8
nop dword [rax + rax]
mov ebx, dword [rsp + 0x64]
mov dword [rsp + 0x40], 0xcc0020
mov eax, edi
sub eax, esi
lea edx, [r14 + rsi]
mov r8d, r15d
cmp eax, ebx
mov rcx, r12
cmovl ebx, eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x50]
mov r9d, ebx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], r13d
call qword [sym.imp.GDI32.dll_BitBlt]
add esi, ebx
cmp esi, edi
jl 0x1400dc170
mov rcx, rbp
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14010d170
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400e24d0
Capabilities:
Set registry value

Disassembly:
push r12
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rdi
mov rdi, rdx
mov rsi, rcx
mov dword [rsp + 0x30], 5
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
call fcn.1400e2100
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x1400e25d8
mov rdx, rdi
mov rcx, rsi
call fcn.1400e22b0
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x1400e25ca
mov rdx, rdi
mov rcx, rsi
call fcn.1400e23f0
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x1400e25b5
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xc0000000
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x1400e25b5
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x80]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12, qword [rsp + 0x38]
mov r8, r12
mov rdx, rdi
mov rcx, rsi
call fcn.1400e21f0
jmp 0x1400e25cf
mov r12, qword [rsp + 0x38]
mov rcx, r12
call fcn.140085540
nop
mov eax, ebx
jmp 0x1400e25e0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r12
ret
Function at 0x1400e3180
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, rdx
mov r14, rcx
mov qword [rsp + 0x48], rcx
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
mov qword [rsp + 0x50], rax
cmp rax, 0xffffffffffffffff
je 0x1400e3379
mov dword [rsp + 0x68], r15d
lea rcx, [r14 + 8]
call fcn.1400a3cb0
nop
lea rcx, [r14 + 8]
call fcn.1400a41d0
mov rdi, rax
test rdi, rdi
je 0x1400e3244
mov rcx, rdi
call fcn.1400a39b0
test rax, rax
je 0x1400e3233
cmp byte [rax + 0x30], 0
je 0x1400e3233
inc dword [rsp + 0x68]
mov rdx, rdi
lea rcx, [r14 + 8]
call fcn.1400a41e0
mov rdi, rax
jmp 0x1400e3217
jmp 0x1400e3253
lea rcx, [r14 + 8]
call fcn.1400a3cd0
mov dword [rsp + 0x60], 0xa528b384
mov dword [rsp + 0x64], 1
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rdx, [rsp + 0x60]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [r14 + 8]
call fcn.1400a3cb0
nop
lea rcx, [r14 + 8]
call fcn.1400a41d0
mov rbx, rax
test rbx, rbx
je 0x1400e335a
mov rcx, rbx
call fcn.1400a39b0
mov rsi, rax
test rax, rax
je 0x1400e3346
cmp byte [rax + 0x30], 0
je 0x1400e3346
mov dword [rsp + 0x70], 0x713e9882
mov ecx, dword [rax + 0x10]
mov dword [rsp + 0x74], ecx
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, qword [rsi + 8]
repne scasb al, byte [rdi]
not rcx
mov dword [rsp + 0x78], ecx
mov eax, dword [rsi + 0x2c]
mov dword [rsp + 0x7c], eax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, 0x10
lea rdx, [rsp + 0x70]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsi + 8]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x7c]
mov rdx, qword [rsi + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, rbx
lea rcx, [r14 + 8]
call fcn.1400a41e0
mov rbx, rax
jmp 0x1400e32a0
jmp 0x1400e3366
lea rcx, [r14 + 8]
call fcn.1400a3cd0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14010d170
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400e4bd0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x80
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rdx
mov r12, rcx
call fcn.1400e30e0
xor r13d, r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400e4dda
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rdx, [rsp + 0x68]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x40], 0xc
jne 0x1400e4dd0
cmp dword [rsp + 0x68], 0xa528b384
jne 0x1400e4dd0
cmp dword [rsp + 0x6c], 1
jne 0x1400e4dd0
lea r14, [0x140233010]
mov eax, dword [rsp + 0x70]
nop
mov rcx, rbx
test eax, eax
je 0x1400e4dc7
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, 0x10
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x40], 0x10
je 0x1400e4ccb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400e4dda
mov ecx, dword [rsp + 0x60]
call fcn.1400854f0
mov rdi, rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11d, dword [rsp + 0x60]
cmp dword [rsp + 0x40], r11d
je 0x1400e4d14
mov rcx, rdi
call fcn.140085540
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400e4dda
mov ecx, dword [rsp + 0x64]
call fcn.1400854f0
mov rsi, rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x64]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11d, dword [rsp + 0x64]
cmp dword [rsp + 0x40], r11d
je 0x1400e4d62
mov rcx, rdi
call fcn.140085540
mov rcx, rsi
call fcn.140085540
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400e4dda
mov ecx, 0x38
call fcn.1400854f0
mov rdx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1400e4da4
mov eax, dword [rsp + 0x64]
mov qword [rdx], r14
mov dword [rdx + 0x10], r13d
mov qword [rdx + 8], rdi
mov qword [rdx + 0x18], rsi
mov dword [rdx + 0x14], eax
mov dword [rdx + 0x2c], eax
mov byte [rdx + 0x30], 1
mov byte [rdx + 0x28], 1
mov rax, qword [rdx + 0x18]
mov qword [rdx + 0x20], rax
jmp 0x1400e4da7
mov rdx, r13
mov eax, dword [rsp + 0x5c]
mov dword [rdx + 0x10], eax
lea rcx, [r12 + 8]
call fcn.1400a3e60
mov eax, dword [rsp + 0x70]
dec eax
mov dword [rsp + 0x70], eax
jmp 0x1400e4c90
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1400e4dda
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14010d170
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1400e8640
Capabilities:
Check internet connectivity via wininet
Create http request
Create thread

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x1400e86fa
lea rcx, str.Mozilla_4.0__compatible__MSIE_5.5__Windows_NT_4.0_
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x20], eax
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rdi, rax
test rax, rax
je 0x1400e86ef
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r8, [0x1400e8350]
mov edx, 0xfa0
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x40], 0
call fcn.14010f7a8
mov edx, 0xbb8
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rdi, qword [rsp + 0x60]
mov eax, ebx
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x60]
add rsp, 0x50
pop rbx
ret
xor eax, eax
add rsp, 0x50
pop rbx
ret

Function at 0x1400e8710
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x130
mov ebx, eax
call fcn.14010da60
lea ecx, [rsi + 2]
xor edx, edx
mov dword [rsp + 0x20], 0x130
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rdi, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1400e8793
cmp ebx, dword [rsp + 0x28]
je 0x1400e878f
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1400e8776
jmp 0x1400e8793
mov esi, dword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14010d170
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400e88a0
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
sub rsp, 0xa50
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0xa40], rax
call fcn.1400e8710
xor edx, edx
mov ecx, 0x410
mov r8d, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x1400e8979
lea r8, [rsp + 0x240]
mov r9d, 0x800
xor edx, edx
mov rcx, rax
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x1400e8979
lea rax, [rsp + 0x140]
lea r9, [rsp + 0x40]
lea rcx, [rsp + 0x240]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0xa60], rdi
mov qword [rsp + 0x20], rax
call fcn.14010e178
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
lea rdx, [rsp + 0x140]
repne scasb al, byte [rdi]
xor ecx, ecx
nop
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x1400e8940
lea rdx, str.RoboHTML.exe
lea rcx, [rsp + 0x40]
call fcn.14010feb4
mov rdi, qword [rsp + 0xa60]
test eax, eax
je 0x1400e8979
mov qword [0x1402c2b20], 0
jmp 0x1400e89a4
lea rdx, [rsp + 0x30]
lea rcx, [0x1400e87d0]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x38], ebx
call qword [sym.imp.USER32.dll_EnumWindows]
mov rdx, qword [rsp + 0x30]
mov qword [0x1402c2b20], rdx
mov rcx, qword [rsp + 0xa40]
xor rcx, rsp
call fcn.14010d170
add rsp, 0xa50
pop rbx
ret
Function at 0x1400ea170
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rax, qword [str.robohelp_csh.htm]
mov esi, edx
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [0x140233af0]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
movzx eax, byte [0x140233af8]
mov ecx, 0x104
mov byte [rsp + 0x30], al
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test rbx, rbx
je 0x1400ea249
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
lea rdi, [rsp + 0x20]
not rcx
lea rdx, [rcx - 1]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
lea eax, [rdx + rcx]
cmp eax, esi
jae 0x1400ea249
lea rax, [rsp + 0x40]
mov rdx, rbx
lea rcx, [rsp + 0x40]
sub rdx, rax
nop word [rax + rax]
movzx eax, byte [rcx]
inc rcx
mov byte [rdx + rcx - 1], al
test al, al
jne 0x1400ea210
xor eax, eax
mov rdi, rbx
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rax, qword [str.robohelp_csh.htm]
mov qword [rdi - 1], rax
mov rax, qword [0x140233af0]
mov qword [rdi + 7], rax
movzx eax, byte [0x140233af8]
mov byte [rdi + 0xf], al
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
lea rdi, [rsp + 0x20]
not rcx
lea rdx, [rcx - 1]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
lea eax, [rdx + rcx]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14010d170
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400ea2a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x330
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x320], rax
mov rbx, rdx
mov rsi, rcx
mov edx, r8d
mov rcx, rbx
mov edi, r8d
call fcn.1400ea170
mov ebp, eax
cmp eax, edi
ja 0x1400ea444
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov edx, 0x40000000
lea r8d, [r9 + 1]
mov rcx, rbx
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x360], r12
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea rcx, [rsp + 0x50]
lea rdx, str._html__r_n_head__meta_http_equivContent_Type_content_text_html__charsetutf_8____head__r_n_script_language_Javascript___r_n_____r_ndocument.location__s___r_n______r_n__script__r_n__html_
mov r8d, 0xb1
mov r12, rax
call fcn.14010c9b0
cmp r12, 0xffffffffffffffff
je 0x1400ea43a
lea rdx, [0x1401f0ffc]
mov rcx, rsi
call fcn.14010dda8
test rax, rax
jne 0x1400ea3b7
lea edx, [rax + 0x5c]
mov rcx, rsi
call fcn.140115ac0
test rax, rax
je 0x1400ea375
nop dword [rax]
mov edx, 0x5c
mov rcx, rax
mov byte [rax], 0x2f
call fcn.140115ac0
test rax, rax
jne 0x1400ea360
movabs rax, 0x2f2f3a656c6966
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x110]
mov qword [rsp + 0x110], rax
xor eax, eax
repne scasb al, byte [rdi]
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rsi + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x1400ea3a0
lea rsi, [rsp + 0x110]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x50]
repne scasb al, byte [rdi]
mov rdi, rsi
mov dword [rsp + 0x40], 0
not rcx
lea rdx, [rcx - 1]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
lea eax, [rdx + rcx - 2]
mov ecx, eax
mov edi, eax
call fcn.14010a204
lea r8, [rsp + 0x50]
mov r9, rsi
mov rcx, rax
mov edx, edi
mov rbx, rax
call fcn.14010d814
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
lea r9, [rsp + 0x40]
mov rdx, rbx
repne scasb al, byte [rdi]
mov qword [rsp + 0x20], rax
not rcx
lea r8, [rcx - 1]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.14010d304
mov r12, qword [rsp + 0x360]
mov eax, ebp
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.14010d170
mov rbx, qword [rsp + 0x368]
add rsp, 0x330
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400edb20
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x1400edb94
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je case.default.0x1400edbaf
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x1400edbaf
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je case.default.0x1400edbaf
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x1400edd6e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1400edb20
cmp byte [0x1402c2c60], 0
jne 0x1400eddb9
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400edda9
lea rdx, [0x1402344d0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x1402c2c60], 1
mov qword [0x1402c2c58], rax
jmp 0x1400eddc0
mov rax, qword [0x1402c2c58]
mov byte [0x1402c2c60], 1
jmp 0x1400eddc0
mov rax, qword [0x1402c2c58]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x1400edddf
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp r11b, byte [rdi]
invalid
Function at 0x1400edd40
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x1400edb94
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je case.default.0x1400edbaf
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x1400edbaf
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je case.default.0x1400edbaf
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x1400edd6e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1400edb20
cmp byte [0x1402c2c60], 0
jne 0x1400eddb9
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400edda9
lea rdx, [0x1402344d0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x1402c2c60], 1
mov qword [0x1402c2c58], rax
jmp 0x1400eddc0
mov rax, qword [0x1402c2c58]
mov byte [0x1402c2c60], 1
jmp 0x1400eddc0
mov rax, qword [0x1402c2c58]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x1400edddf
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp r11b, byte [rdi]
invalid

Function at 0x1400edf10
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add rsp, 0x38
ret

Function at 0x1400edfc0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
sub rsp, 0x30
mov rsi, r8
mov rbp, rdx
mov r12, rcx
test r8, r8
jne 0x1400edff3
lea eax, [r8 + 0xd]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
xor edi, edi
mov rbx, r8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov ecx, eax
add edi, eax
add rbx, rcx
cmp eax, 1
jne 0x1400ee002
mov rcx, qword [r12]
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x1400eeba0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x1b0], rbx
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rsi, rdx
mov rdi, rcx
xor eax, eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x58], rax
mov r9d, dword [rcx + 8]
or r9d, 0x2001f
mov r8, rdx
mov rdx, qword [rcx]
lea rcx, [rsp + 0x48]
call fcn.140011780
mov ebx, eax
test eax, eax
je 0x1400eec0b
jmp 0x1400eeccd
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1400eeca7
nop dword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400eeba0
mov ebx, eax
test eax, eax
jne 0x1400eeca5
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1400eec50
jmp 0x1400eeca7
jmp 0x1400eeccd
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400eecbc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov rdx, rsi
mov rcx, rdi
call fcn.1400edd40
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400eece6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x50], 0
mov eax, ebx
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14010d170
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x180
pop rdi
pop rsi
pop rbp
ret
Function at 0x140102560
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [0x1402c2b48], 0
mov rbx, rcx
jne 0x140102591
call fcn.140100ca0
mov qword [0x1402c2b48], rax
test rax, rax
jne 0x140102591
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400ea470
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140101390