joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140032e90
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1400aa050]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 7
mov word [rsp + 0x68], 0
mov rcx, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rbx, rax
lea rcx, [rsp + 0x68]
cmp rax, 7
ja 0x140032f04
mov qword [rcx + 0x10], rbx
mov r8, rbx
add r8, rbx
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx*2 + 0x68], 0
jmp 0x140032f0f
mov rdx, rbx
mov r9, rdi
call fcn.14005b880
movzx eax, word [rsp + 0x68]
mov rcx, qword [rsp + 0x6a]
mov qword [rsp + 0x58], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x5e], rcx
mov rcx, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
mov word [rsp + 0x68], ax
mov rax, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x5e]
mov qword [rsp + 0x6a], rax
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x80], rbx
lea rdi, [rsp + 0x38]
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 7
mov word [rdi], 0
lea r9, str.SOFTWAREMozillaFirefoxDefault_Browser_Agent
mov edx, 0x2e
mov rcx, rdi
call fcn.14005b880
cmp rbx, 8
jb 0x140032f96
mov r8, qword [rsp + 0x68]
jmp 0x140032f9b
lea r8, [rsp + 0x68]
cmp qword [rsp + 0x50], 8
jb 0x140032fa8
mov rdi, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 8
mov rcx, 0xffffffff80000001
mov rdx, rdi
mov r9d, 0xb
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
je 0x140032fff
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea r8, str.RegistrySetValueQword
mov edx, edi
mov r9d, 0xed
call fcn.14002d220
jmp 0x140033001
xor edi, edi
mov dword [rsi], edi
mov rax, qword [rsp + 0x50]
cmp rax, 8
jb 0x140033029
mov rcx, qword [rsp + 0x38]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x140033070
call fcn.140057960
mov rax, qword [rsp + 0x80]
cmp rax, 8
jb 0x140033052
mov rcx, qword [rsp + 0x68]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x140033090
call fcn.140057960
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140058a80
mov rax, rsi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x1400330b0
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, rbx
jmp 0x140033024
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x1400330b0
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, rbx
jmp 0x14003304d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14003e350
Capabilities:
Check mutex on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov al, 1
cmp byte [rcx + 8], 0
jne 0x14003e434
mov rsi, rcx
mov rdi, qword [rcx]
test rdi, rdi
jne 0x14003e3a0
lea r8, str.MozillaFirefoxDefaultBrowserAgentRegistryMutex
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
mov rcx, qword [rsi]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14003e394
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], rdi
test rdi, rdi
je 0x14003e43b
mov rcx, rdi
mov edx, 0xbb8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x14003e3e7
cmp eax, 0x80
je 0x14003e409
test eax, eax
je 0x14003e429
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
mov dword [rsp + 0x20], eax
lea rdx, str.Failed_to_wait_on_registry_mutex:__X
lea r8, str.Acquire
mov r9d, 0xb9
jmp 0x14003e402
mov rcx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea rdx, str.Timed_out_waiting_for_registry_mutex
lea r8, str.Acquire
mov r9d, 0xac
call fcn.14002d330
jmp 0x14003e42d
mov rcx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea rdx, str.Found_abandoned_registry_mutex._Continuing...
lea r8, str.Acquire
mov r9d, 0xb3
call fcn.14002d330
mov byte [rsi + 8], 1
cmp byte [rsi + 8], 0
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
mov dword [rsp + 0x20], eax
lea rdx, str.Couldnt_open_registry_mutex:__X
lea r8, str.Acquire
mov r9d, 0xa2
call fcn.14002d330
xor eax, eax
jmp 0x14003e434

Function at 0x14003ed70
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rsi, rdx
mov rax, qword [0x1400aa050]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rdi, [rsp + 0x70]
mov qword [rdi], 0
mov qword [rsp + 0x20], rdi
lea rdx, str.SOFTWAREPoliciesMozillaFirefox
xor ebx, ebx
xor r8d, r8d
mov r9d, 0x20019
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rdi, qword [rdi]
test rdi, rdi
je 0x14003ee5f
lea rax, [rsp + 0x6c]
mov dword [rax], ebx
lea rcx, [rsp + 0x68]
mov dword [rcx], ebx
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x38], rcx
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rax
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, 2
test eax, eax
jne 0x14003ee54
lea rbx, [rsp + 0x64]
mov dword [rbx], 0xffffffff
lea rax, [rsp + 0x60]
mov dword [rax], 4
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0
mov rcx, rdi
xor edx, edx
mov r8, rsi
mov r9d, 0x10
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
xor ecx, ecx
cmp dword [rbx], 0
sete cl
test eax, eax
mov ebx, 2
cmove ebx, ecx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14003ee64
mov ebx, 2
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140058a80
mov eax, ebx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400571c0
Capabilities:
Link many functions at runtime

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, qword [0x1400aa568]
test rdi, rdi
jne 0x14005730f
lea rcx, [0x14007d43d]
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x140057227
mov rsi, rax
lea rdx, str.WaitOnAddress
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140057227
mov rbx, rax
lea rdx, str.WakeByAddressSingle
mov rcx, rsi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140057227
mov r15, rax
mov esi, 1
jmp 0x1400572b4
lea rcx, [0x14007d3f8]
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x14005731e
mov rbx, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x14005731e
mov rdi, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x14005731e
mov r15, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x14005731e
mov r14, rax
lea rcx, [rsp + 0x28]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
mov rax, rdi
call qword [case.0x140057c5e.0]
test eax, eax
jne 0x14005731e
mov rbx, qword [rsp + 0x28]
xor esi, esi
mov ecx, 0x20
mov edx, 8
call fcn.140018520
test rax, rax
je 0x140057323
mov rdi, rax
mov qword [rax], rsi
mov qword [rax + 8], rbx
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r14
xor eax, eax
lock cmpxchg qword [0x1400aa568], rdi
je 0x14005730f
mov rsi, rax
cmp qword [rdi], 0
jne 0x1400572f9
mov rcx, qword [rdi + 8]
call sub.KERNEL32.dll_CloseHandle
mov edx, 0x20
mov r8d, 8
mov rcx, rdi
call fcn.1400185b0
mov rdi, rsi
mov rax, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140064380
mov ecx, 0x20
mov edx, 8
call fcn.140059b00
int3
Function at 0x14005a7e0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x2f8
mov rax, qword [0x1400aa050]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
xor esi, esi
lea rdi, [rsp + 0xe0]
mov r8d, 0x20a
mov rcx, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rdi
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14005a84c
lea rcx, [rsp + 0xe0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add rax, 0xffffffffffffff07
cmp rax, 0xfffffffffffffefc
jae 0x14005a86f
xor esi, esi
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.140058a80
mov eax, esi
add rsp, 0x2f8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rdx, str.control.exe
lea rcx, [rsp + 0xe0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor esi, esi
test eax, eax
je 0x14005a84c
lea rdi, [rsp + 0xd8]
mov qword [rdi], rsi
mov rcx, rdi
call fcn.14005a5b0
mov r15, qword [rdi]
lea r14, str.control.exe__name_Microsoft.DefaultPrograms__page_pageDefaultProgrampageAdvancedSettings_pszAppName_s
mov rcx, r14
mov rdx, r15
call fcn.14005a6d0
inc eax
movsxd rbx, eax
mov rdi, rbx
add rdi, rbx
mov rax, 0xffffffffffffffff
cmovb rdi, rax
mov rcx, rdi
call fcn.140057a8c
mov r12, rax
mov rcx, rax
xor edx, edx
mov r8, rdi
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x20], r15
mov rcx, r12
mov rdx, rbx
mov r8, 0xffffffffffffffff
mov r9, r14
call fcn.14005a750
xorps xmm0, xmm0
lea rax, [rsp + 0x70]
movaps xmmword [rax], xmm0
movaps xmmword [rax + 0x30], xmm0
movaps xmmword [rax + 0x40], xmm0
mov qword [rax + 0x60], rsi
movaps xmmword [rax + 0x50], xmm0
movaps xmmword [rax + 0x20], xmm0
movaps xmmword [rax + 0x10], xmm0
mov dword [rax], 0x68
mov dword [rax + 0x3c], 1
mov word [rax + 0x40], 0xa
lea rcx, [rsp + 0x50]
mov qword [rcx + 0x10], rsi
movaps xmmword [rcx], xmm0
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
lea rcx, [rsp + 0xe0]
mov rdx, r12
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test eax, eax
je 0x14005a985
mov rcx, qword [rsp + 0x50]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rdi
mov rcx, qword [rsp + 0x58]
call rdi
test esi, esi
setne sil
mov rcx, r12
call fcn.140057960
test r15, r15
je 0x14005a84c
mov rcx, r15
call fcn.140057960
jmp 0x14005a84c
Function at 0x14005a9b0
Capabilities:
Get session user name
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x260
mov rax, qword [0x1400aa050]
xor rax, rsp
mov qword [rsp + 0x258], rax
mov eax, dword [0x1400aa3b8]
cmp eax, 0x3a74
ja 0x14005aa43
mov eax, dword [0x1400aa078]
cmp eax, 0x3a76
jb 0x14005ab0b
lea rsi, [rsp + 0x54]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rsi - 4], 0x11c
mov dword [rsi + 8], 0x3a75
xor ecx, ecx
mov edx, 4
mov r8b, 3
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea rcx, [rsp + 0x50]
mov edx, 4
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x14005ab00
mov eax, 0x3a75
xchg dword [0x1400aa3b8], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rcx, [0x140065100]
lea r9, [0x1400650d0]
xor edx, edx
mov r8d, 3
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14005aafc
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
lea rsi, [rsp + 0x40]
mov qword [rsp + 0x20], rsi
lea rdx, str.windows.immersivecontrolpanel_cw5n1h2txyewy_microsoft.windows.immersivecontrolpanel
lea r8, str.pageSettingsPageAppsDefaults
xor r9d, r9d
call qword [case.0x140057c5e.0]
test eax, eax
setns bl
js 0x14005aacd
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x20], rsi
lea rdx, str.windows.immersivecontrolpanel_cw5n1h2txyewy_microsoft.windows.immersivecontrolpanel
lea r8, str.pageSettingsPageAppsDefaultstargetSystemSettings_DefaultApps_Browser
xor r9d, r9d
call qword [case.0x140057c5e.0]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140057c5e.0]
mov rcx, qword [rsp + 0x258]
xor rcx, rsp
call fcn.140058a80
mov eax, ebx
add rsp, 0x260
pop rbx
pop rdi
pop rsi
ret
mov bl, 1
jmp 0x14005aadf
mov eax, 0x3a75
xchg dword [0x1400aa078], eax
lea rdx, [rsp + 0x4c]
mov dword [rdx], 0x101
lea rsi, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x14005ab43
lea rdx, [rsp + 0x50]
lea r9, [rsp + 0x40]
xor ecx, ecx
mov r8d, 0x18
call sub.NETAPI32.dll_NetUserGetInfo
test eax, eax
je 0x14005aba9
mov dword [rsp + 0x50], 0
lea rax, [rsp + 0x40]
mov dword [rax], 4
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREMicrosoftWindowsShellAssociations
lea r8, str.IsConnectedAtLogon
mov rcx, 0xffffffff80000001
mov r9d, 0xffff
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x14005aa43
cmp dword [rsp + 0x50], 0
je 0x14005aa43
call fcn.14005a7e0
mov ebx, eax
jmp 0x14005aadf
mov rcx, qword [rsp + 0x40]
mov edi, dword [rcx]
call sub.NETAPI32.dll_NetApiBufferFree
test edi, edi
jne 0x14005aa43
jmp 0x14005ab43
Function at 0x14005cf40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x1400aa050]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dil, 1
cmp qword [rcx + 0x68], 0
je 0x14005cffc
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x14005cffc
mov rax, qword [rsi]
mov rax, qword [rax + 0x18]
mov rcx, rsi
mov edx, 0xffffffff
call qword [case.0x140057c5e.0]
cmp eax, 0xffffffff
je 0x14005cffa
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x50]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
lea rbx, [rsp + 0x28]
mov qword [rsp + 0x20], rbx
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [case.0x140057c5e.0]
cmp eax, 3
je 0x14005d013
cmp eax, 1
je 0x14005cfc9
test eax, eax
jne 0x14005cffa
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x14005cff0
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x14005cffa
cmp byte [rsi + 0x71], 0
sete dil
jmp 0x14005cffc
xor edi, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140058a80
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov dil, 1
jmp 0x14005cffc
Function at 0x140001370
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140047020]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
xor edx, edx
mov ecx, 0x5c
call fcn.140001360
lea edx, [rcx - 0x5b]
mov word [rsp + 0x40], ax
call fcn.140001360
lea ecx, [rdx + 0x2d]
mov word [rsp + 0x42], ax
lea edx, [rcx - 0x2c]
call fcn.140001360
lea ecx, [rdx + 0x5a]
mov word [rsp + 0x44], ax
lea edx, [rcx - 0x59]
call fcn.140001360
lea ecx, [rdx + 0x42]
mov word [rsp + 0x46], ax
lea edx, [rcx - 0x41]
call fcn.140001360
lea ecx, [rdx + 0x45]
mov word [rsp + 0x48], ax
lea edx, [rcx - 0x44]
call fcn.140001360
lea ecx, [rdx + 0x4c]
mov word [rsp + 0x4a], ax
lea edx, [rcx - 0x4b]
call fcn.140001360
lea ecx, [rdx + 0x3e]
mov word [rsp + 0x4c], ax
lea edx, [rcx - 0x3d]
call fcn.140001360
lea ecx, [rdx + 0x4f]
mov word [rsp + 0x4e], ax
lea edx, [rcx - 0x4e]
call fcn.140001360
xor ecx, ecx
mov word [rsp + 0x50], ax
lea edx, [rcx + 9]
call fcn.140001360
lea edx, [rcx + 0xa]
mov word [rsp + 0x52], ax
movzx ecx, word [0x14004043c]
call fcn.140001360
movzx ecx, word [0x14004043e]
mov edx, 0xb
mov word [rsp + 0x54], ax
call fcn.140001360
movzx ecx, word [str.Unknown_exception]
mov edx, 0xc
mov word [rsp + 0x56], ax
call fcn.140001360
movzx ecx, word [0x140040442]
mov edx, 0xd
mov word [rsp + 0x58], ax
call fcn.140001360
movzx ecx, word [0x140040444]
mov edx, 0xe
mov word [rsp + 0x5a], ax
call fcn.140001360
movzx ecx, word [0x140040446]
mov edx, 0xf
mov word [rsp + 0x5c], ax
call fcn.140001360
movzx ecx, word [0x140040448]
mov edx, 0x10
mov word [rsp + 0x5e], ax
call fcn.140001360
movzx ecx, word [0x14004044a]
mov edx, 0x11
mov word [rsp + 0x60], ax
call fcn.140001360
movzx ecx, word [0x14004044c]
mov edx, 0x12
mov word [rsp + 0x62], ax
call fcn.140001360
mov word [rsp + 0x64], ax
mov r9d, 0x133
xor eax, eax
mov word [rsp + 0x66], ax
xor r10d, r10d
nop dword [rax]
movsxd rcx, eax
lea rdx, [rsp + 0x40]
lea rdx, [rdx + rcx*2]
lea ecx, [r9 + rax]
inc eax
xor word [rdx], cx
cmp eax, 0x13
jb 0x140001500
mov qword [rsp + 0x30], r10
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov dword [rsp + 0x28], r10d
mov edx, 0xc0000000
mov word [rsp + 0x66], r10w
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400105f0
add rsp, 0x70
pop rbx
ret
Function at 0x140003560
Capabilities:
Create process on windows
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140047020]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rdx + 0x18], 8
mov rbx, rdx
mov rdi, rcx
mov r9, rdx
jb 0x140003591
mov r9, qword [rdx]
cmp qword [rcx + 0x18], 8
mov r8, rdi
jb 0x14000359e
mov r8, qword [rcx]
mov ecx, 0x72
xor edx, edx
call fcn.140001360
lea ecx, [rdx + 0x75]
mov word [rsp + 0x30], ax
lea edx, [rcx - 0x74]
call fcn.140001360
lea ecx, [rdx + 0x6d]
mov word [rsp + 0x32], ax
lea edx, [rcx - 0x6c]
call fcn.140001360
lea ecx, [rdx + 0x5f]
mov word [rsp + 0x34], ax
lea edx, [rcx - 0x5e]
call fcn.140001360
lea ecx, [rdx + 0x70]
mov word [rsp + 0x36], ax
lea edx, [rcx - 0x6f]
call fcn.140001360
xor ecx, ecx
mov word [rsp + 0x38], ax
lea edx, [rcx + 5]
call fcn.140001360
lea edx, [rcx + 6]
mov word [rsp + 0x3a], ax
movzx ecx, word [0x1400405dc]
call fcn.140001360
movzx ecx, word [0x1400405de]
mov edx, 7
mov word [rsp + 0x3c], ax
call fcn.140001360
movzx ecx, word [0x1400405e0]
mov edx, 8
mov word [rsp + 0x3e], ax
call fcn.140001360
movzx ecx, word [0x1400405e2]
mov edx, 9
mov word [rsp + 0x40], ax
call fcn.140001360
movzx ecx, word [0x1400405e4]
mov edx, 0xa
mov word [rsp + 0x42], ax
call fcn.140001360
mov word [rsp + 0x44], ax
mov r10d, 0x133
xor eax, eax
mov word [rsp + 0x46], ax
xor esi, esi
nop dword [rax]
movsxd rcx, eax
lea rdx, [rsp + 0x30]
lea rdx, [rdx + rcx*2]
lea ecx, [r10 + rax]
inc eax
xor word [rdx], cx
cmp eax, 0xb
jb 0x140003680
mov dword [rsp + 0x28], esi
lea rdx, [rsp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x20], rsi
mov word [rsp + 0x46], si
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x1400036f0
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400036eb
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003766
mov rcx, r8
call fcn.140010944
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 7
mov word [rdi], si
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14000373a
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140003735
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003766
mov rcx, r8
call fcn.140010944
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400105f0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
call fcn.14001a74c
int3
Function at 0x140003770
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
xor ebp, ebp
mov rdi, rcx
cmp qword [rcx + 0x18], 8
mov dword [rsp + 0x40], ebp
jb 0x140003792
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x140003826
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140003805
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140003800
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400038cf
mov rcx, r8
call fcn.140010944
mov al, 1
mov rsi, qword [rsp + 0x78]
mov word [rdi], bp
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbp
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
cmp rsi, 0xffffffffffffffff
jne 0x14000386b
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140003867
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140003862
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400038cf
mov rcx, r8
call fcn.140010944
xor al, al
jmp 0x140003807
lea r9, [rsp + 0x40]
mov qword [rsp + 0x68], rbx
mov r8d, 0x41200
mov qword [rsp + 0x20], rbp
lea rdx, [0x14004a030]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi + 0x18]
test bl, bl
mov rbx, qword [rsp + 0x68]
jne 0x1400038b8
cmp rax, 8
jb 0x140003867
lea rdx, [rax*2 + 2]
jmp 0x14000383e
cmp rax, 8
jb 0x140003805
lea rdx, [rax*2 + 2]
jmp 0x1400037d8
call fcn.14001a74c
int3
Function at 0x1400038e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
xor ebp, ebp
mov rdi, rcx
cmp qword [rcx + 0x18], 8
mov dword [rsp + 0x40], ebp
jb 0x140003902
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x140003996
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140003975
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140003970
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003a3f
mov rcx, r8
call fcn.140010944
mov al, 1
mov rsi, qword [rsp + 0x78]
mov word [rdi], bp
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbp
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
cmp rsi, 0xffffffffffffffff
jne 0x1400039db
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x1400039d7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400039d2
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003a3f
mov rcx, r8
call fcn.140010944
xor al, al
jmp 0x140003977
lea r9, [rsp + 0x40]
mov qword [rsp + 0x68], rbx
mov r8d, 0x2400
mov qword [rsp + 0x20], rbp
lea rdx, [0x140047c30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi + 0x18]
test bl, bl
mov rbx, qword [rsp + 0x68]
jne 0x140003a28
cmp rax, 8
jb 0x1400039d7
lea rdx, [rax*2 + 2]
jmp 0x1400039ae
cmp rax, 8
jb 0x140003975
lea rdx, [rax*2 + 2]
jmp 0x140003948
call fcn.14001a74c
int3