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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
mov dword [rsp + 0x60], 4
mov rdi, rcx
lea rax, [rsp + 0x68]
lea rdx, str.SoftwareAMDEEU
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov r9d, 0x20019
xor r8d, r8d
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140035301
mov rcx, qword [0x1400b80b8]
test rcx, rcx
je 0x1400352ef
lea r9, str.SoftwareAMDEEU
lea r8, str.ReadRegKey_RegOpenKeyEx_failed_for_pcPath___s.
lea edx, [rbx + 7]
call fcn.140032570
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov r9d, 0x10
mov qword [rsp + 0x28], rsi
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
je 0x140035355
mov rcx, qword [0x1400b80b8]
test rcx, rcx
je 0x140035353
mov r9, rdi
lea r8, str.ReadRegKey_RegGetValue_failed_for_value___s.
mov edx, 8
call fcn.140032570
xor ebx, ebx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140035380
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbp, r8
mov rsi, rdx
mov edi, 1
test r9d, r9d
je 0x1400353c0
sub r9d, edi
je 0x1400353b9
cmp r9d, edi
je 0x1400353b2
mov ebx, edi
jmp 0x1400353c5
mov ebx, 2
jmp 0x1400353c5
mov ebx, 8
jmp 0x1400353c5
mov ebx, 0x10
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140035406
mov rcx, qword [0x1400b80b8]
test rcx, rcx
je 0x140035402
mov r9, rsi
lea r8, str.ReadRegKey_RegOpenKeyEx_failed_for_pcPath___s.
mov edx, 8
call fcn.140032570
xor eax, eax
jmp 0x14003546f
mov rax, qword [rsp + 0x88]
mov r9d, ebx
mov rcx, qword [rsp + 0x40]
mov r8, rbp
mov qword [rsp + 0x30], rax
xor edx, edx
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
je 0x140035462
mov rcx, qword [0x1400b80b8]
test rcx, rcx
je 0x140035460
mov r9, rbp
lea r8, str.ReadRegKey_RegGetValue_failed_for_value___s.
mov edx, 8
call fcn.140032570
xor edi, edi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140035490
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbp, r9
lea rax, [rsp + 0x40]
mov rdi, r8
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rsi, rdx
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400354f1
mov rcx, qword [0x1400b80b8]
test rcx, rcx
je 0x1400354ed
mov r9, rsi
lea r8, str.ReadRegKey_RegOpenKeyEx_failed_for_pcPath___s.
lea edx, [rbx + 7]
call fcn.140032570
xor eax, eax
jmp 0x140035555
mov rax, qword [rsp + 0x80]
mov r9d, 2
mov rcx, qword [rsp + 0x40]
mov r8, rdi
mov qword [rsp + 0x30], rax
xor edx, edx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140035548
mov rcx, qword [0x1400b80b8]
test rcx, rcx
je 0x140035546
mov r9, rdi
lea r8, str.ReadRegKey_RegGetValue_failed_for_value___s.
mov edx, 8
call fcn.140032570
xor ebx, ebx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140035570
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, r9
mov qword [rsp + 0x30], 0
mov rdi, r8
lea rax, [rsp + 0x30]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rbp, rdx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test eax, eax
jne 0x140035672
test rdi, rdi
je 0x14003565e
test rbx, rbx
je 0x14003565e
mov rax, rbx
lea ecx, [rsi + 1]
cmp byte [rax], 0
jne 0x1400355dc
cmp byte [rax + 1], 0
je 0x1400355eb
cmp ecx, 0x200
jae 0x1400355eb
inc rax
inc ecx
jmp 0x1400355d1
inc ecx
cmp ecx, 0x200
jae 0x14003564a
mov dword [rsp + 0x28], ecx
mov r9d, 7
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
test eax, eax
je 0x140035663
mov rcx, qword [0x1400b80b8]
test rcx, rcx
je 0x140035663
mov r9, rdi
lea r8, str.SetMultiSzRegValue:_RegSetValueEx_failed_for_lpValueName___s.
mov edx, 8
call fcn.140032570
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140035694
mov rcx, qword [rsp + 0x30]
mov ebx, 0x7a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140035694
mov ebx, 0x57
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140035694
mov rcx, qword [0x1400b80b8]
test rcx, rcx
je 0x140035692
mov r9, rbp
lea r8, str.SetMultiSzRegValue:_RegOpenKeyEx_failed_for_lpKeyPath___s.
mov edx, 8
call fcn.140032570
mov eax, esi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400356b0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rsi, rdx
mov qword [rsp + 0x30], 0
lea rdx, str.SoftwareAMDEEU
mov rdi, rcx
mov dword [rsp + 0x28], 0x20006
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x140035748
mov rcx, qword [0x1400b80b8]
test rcx, rcx
je 0x140035736
lea r9, str.SoftwareAMDEEU
lea r8, str.WriteRegKey_RegCreateKeyEx_failed_for_pcPath___s.
lea edx, [rbx + 7]
call fcn.140032570
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov rcx, qword [rsp + 0x70]
mov r9d, 4
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140035792
mov rcx, qword [0x1400b80b8]
test rcx, rcx
je 0x140035790
mov r9, rdi
lea r8, str.WriteRegKey_RegSetValueEx_failed_for_value___s.
mov edx, 8
call fcn.140032570
xor ebx, ebx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x1400357b0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rbp, r8
mov rsi, rdx
mov edi, 1
test r9d, r9d
je 0x1400357ed
sub r9d, edi
je 0x1400357e6
cmp r9d, edi
je 0x1400357e2
xor ebx, ebx
jmp 0x1400357f2
mov ebx, edi
jmp 0x1400357f2
mov ebx, 3
jmp 0x1400357f2
mov ebx, 4
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x140035852
mov rcx, qword [0x1400b80b8]
test rcx, rcx
je 0x14003584e
mov r9, rsi
lea r8, str.WriteRegKey_RegCreateKeyEx_failed_for_pcPath___s.
mov edx, 8
call fcn.140032570
xor eax, eax
jmp 0x1400358b1
mov eax, dword [rsp + 0x98]
mov r9d, ebx
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rbp
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1400358a4
mov rcx, qword [0x1400b80b8]
test rcx, rcx
je 0x1400358a2
mov r9, rbp
lea r8, str.WriteRegKey_RegSetValueEx_failed_for_value___s.
mov edx, 8
call fcn.140032570
xor edi, edi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x1400358d0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x60
mov qword [r11 - 0x28], 0
lea rax, [r11 - 0x18]
mov qword [r11 - 0x30], rax
mov rbp, r9
mov qword [r11 - 0x38], 0
mov rdi, r8
mov dword [rsp + 0x28], 0x20006
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0
mov rsi, rdx
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x14003594c
mov rcx, qword [0x1400b80b8]
test rcx, rcx
je 0x140035948
mov r9, rsi
lea r8, str.WriteRegKey_RegCreateKeyEx_failed_for_pcPath___s.
lea edx, [rbx + 7]
call fcn.140032570
xor eax, eax
jmp 0x1400359a3
mov eax, dword [rsp + 0x90]
mov r9d, ebx
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rdi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140035996
mov rcx, qword [0x1400b80b8]
test rcx, rcx
je 0x140035994
mov r9, rdi
lea r8, str.WriteRegKey_RegSetValueEx_failed_for_value___s.
mov edx, 8
call fcn.140032570
xor ebx, ebx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x140035aa0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov edx, edx
mov rbx, rcx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx], rax
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x140035ae0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140032840
Function at 0x140035be0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rax, vtable.InterfaceWin7.0
xor edi, edi
mov qword [rcx], rax
mov rbx, rcx
mov dword [rcx + 8], edi
mov qword [rcx + 0x10], rdi
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x140035c45
mov rcx, qword [0x1400b80b8]
test rcx, rcx
je 0x140035dc4
lea r8, str.InterfaceWin7::InterfaceWin7_LoadLibrary_for_user32.dll_failed
mov edx, 0x8000
call fcn.140032710
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rdx, [0x140097e98]
mov qword [rbx + 0x18], rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x140035c91
mov rcx, qword [0x1400b80b8]
test rcx, rcx
je 0x140035dc4
lea r8, str.InterfaceWin7::InterfaceWin7_GetProcAddress_for_GetDisplayConfigBufferSizes_failed
mov edx, 0x8000
call fcn.140032710
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx + 0x10]
lea rdx, [0x140097f18]
mov qword [rbx + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x140035cde
mov rcx, qword [0x1400b80b8]
test rcx, rcx
je 0x140035dc4
lea r8, str.InterfaceWin7::InterfaceWin7_GetProcAddress_for_QueryDisplayConfig_failed
mov edx, 0x8000
call fcn.140032710
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx + 0x10]
lea rdx, str.SetDisplayConfig
mov qword [rbx + 0x28], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x28], rax
test rax, rax
jne 0x140035d2b
mov rcx, qword [0x1400b80b8]
test rcx, rcx
je 0x140035dc4
lea r8, str.InterfaceWin7::InterfaceWin7_GetProcAddress_for_SetDisplayConfig_failed
mov edx, 0x8000
call fcn.140032710
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx + 0x10]
lea rdx, [0x140097fe8]
mov qword [rbx + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x140035d74
mov rcx, qword [0x1400b80b8]
test rcx, rcx
je 0x140035dc4
lea r8, str.InterfaceWin7::InterfaceWin7_GetProcAddress_for_DisplayConfigGetDeviceInfo_failed
mov edx, 0x8000
call fcn.140032710
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx + 0x10]
lea rdx, str.DisplayConfigSetDeviceInfo
mov qword [rbx + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x38], rax
test rax, rax
jne 0x140035dbd
mov rcx, qword [0x1400b80b8]
test rcx, rcx
je 0x140035dc4
lea r8, str.InterfaceWin7::InterfaceWin7_GetProcAddress_for_DisplayConfigSetDeviceInfo_failed
mov edx, 0x8000
call fcn.140032710
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rbx + 8], 1
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140036e10
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r15d, edx
mov rbp, rcx
xor r12d, r12d
lea rdx, [rax + 0x18]
lea rcx, str.HKPreferenceUseCCD
mov dword [rax + 0x18], r12d
mov edi, r12d
mov r14d, r8d
mov ebx, r8d
call fcn.140035280
mov r9d, dword [rsp + 0x80]
test eax, eax
cmove r9d, r12d
mov dword [rsp + 0x80], r9d
test ebx, ebx
je 0x140036e79
nop dword [rax]
lea eax, [rbx - 1]
inc edi
and ebx, eax
jne 0x140036e70
cmp r9d, 1
jne 0x140036e94
mov edx, r9d
lea rcx, str.DisplaySwitch
call qword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x14003701f
mov ecx, 0x48
mov qword [rsp + 0x30], r12
call fcn.1400394b4
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140036ecd
xorps xmm0, xmm0
mov dword [rsp + 0x34], 1
movups xmmword [rax], xmm0
xor ecx, ecx
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
mov qword [rax + 0x40], rcx
mov ecx, 0x40
mov qword [rsp + 0x40], r12
call fcn.1400394b4
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140036f00
xorps xmm0, xmm0
mov dword [rsp + 0x44], 1
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
lea r9, [rsp + 0x40]
xor edx, edx
lea r8, [rsp + 0x30]
mov rcx, rbp
mov ebx, r12d
call fcn.140037ad0
test eax, eax
jne 0x140036f4e
mov rcx, qword [0x1400b80b8]
test rcx, rcx
je 0x140036f38
lea r8, str.CCDGetConnectedDisplayCount_GetPathAndModeList_failed
mov edx, 0x8000
call fcn.140032710
mov rcx, qword [rsp + 0x48]
call fcn.1400394bc
mov rcx, qword [rsp + 0x38]
call fcn.1400394bc
jmp 0x140036fa6
mov r9d, dword [rsp + 0x30]
mov edx, r12d
test r9d, r9d
je 0x140036f8d
mov r8, qword [rsp + 0x38]
cmp edx, r9d
mov rax, r8
cmovae rax, r12
cmp dword [rax + 0x3c], r12d
je 0x140036f82
cmp edx, r9d
mov rax, r8
cmovae rax, r12
cmp dword [rax + 8], r12d
jne 0x140036f82
inc ebx
inc edx
add r8, 0x48
cmp edx, r9d
jb 0x140036f60
mov rcx, qword [rsp + 0x48]
call fcn.1400394bc
mov rcx, qword [rsp + 0x38]
call fcn.1400394bc
cmp ebx, 2
ja 0x140037011
cmp edi, 1
jbe 0x140037011
cmp dword [rsp + 0x80], 2
jne 0x140037011
xor r9d, r9d
mov dword [rsp + 0x20], 0x86
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [rbp + 0x28]
test eax, eax
je 0x14003701f
xor r9d, r9d
mov dword [rsp + 0x20], 0x82
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [rbp + 0x28]
test eax, eax
je 0x14003701f
mov rcx, qword [0x1400b80b8]
test rcx, rcx
je 0x14003701f
mov r9d, eax
mov dword [rsp + 0x20], 0x82
lea r8, str.CCDApplyMultiDisplayDBConfig_SetDisplayConfig_failed__result___x__flags___x
mov edx, 0x8000
call fcn.140032710
jmp 0x14003701f
mov r8d, r14d
mov edx, r15d
mov rcx, rbp
call fcn.140036630
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop r12
ret
Function at 0x1400045a0
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x1400045d0
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x1400045cf
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x1400045d5
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x1400045cf
mov eax, 0
jmp 0x1400045cf

Function at 0x140004c50
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004c00
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x14000e270
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.140016db0
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.140016db0
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 0x14000e2e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14056ea14]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x14000e470
mov rax, qword [0x14056ea18]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14000e32c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x14000e3b5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x14000e310
mov rcx, rdi
call fcn.14000ee40
test rax, rax
mov r12, rax
je 0x14000e4c2
mov rax, qword [0x14056ea18]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.14000ef80
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14056ea18]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000e4a5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000e3ae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000e420
add dword [0x14056ea14], 1
cmp ebx, 8
jae 0x14000e3e1
test bl, 4
jne 0x14000e480
test ebx, ebx
je 0x14000e3d6
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x14000e494
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x14000e3d6
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x14000e3fa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x14056ea18]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000e3ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000e270
xor esi, esi
jmp 0x14000e337
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x14000e3d6
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x14000e3d6
mov rax, qword [0x14056ea18]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.14000e270
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.14000e270
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x14000ea90
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14056ea80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14056ea60]
test rbx, rbx
je 0x14000eae4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000eadb
test rsi, rsi
je 0x14000eadb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000eac0
lea rcx, [0x14056ea80]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000ee40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140569bd0]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000eeaf
mov rcx, r9
call fcn.14000ed10
test eax, eax
je 0x14000eeaf
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14000eead
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x14000eea4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14000eeaf
add rdx, 0x28
cmp rdx, r9
jne 0x14000ee90
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x140019170
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x140566480]
jmp 0x14000fc70

Function at 0x140019180
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x140566480]
jmp 0x14000fc70