joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006c390
Capabilities:
Hash data using sha512

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
cmp ecx, 0x41
jb 0x14006c3b5
lea rcx, str.hashlen___ssh_blake2b.hlen
lea rdx, str._home_simon_mem_.build_workdirs_bob_aew3xwii_putty_crypto_blake2.c
mov r8d, pe_nt_image_headers64
call fcn.14007b7e4
mov ecx, 1
mov edx, 0x108
xor r8d, r8d
call fcn.140016170
lea r8, [rax + 0xf8]
lea rdx, [0x1400a3e30]
mov qword [rax + 0xf8], rdx
mov dword [rax + 0x40], esi
lea rdx, [rax + 0xe0]
lea rcx, [0x14006c6f0]
mov qword [rax + 0xe0], rcx
mov qword [rax + 0xe8], 0
mov qword [rax + 0xf0], rdx
mov qword [rax + 0x100], rdx
movaps xmm0, xmmword [0x1400a3e90]
movups xmmword [rax], xmm0
movaps xmm0, xmmword [0x1400a3ea0]
movups xmmword [rax + 0x10], xmm0
movaps xmm0, xmmword [0x1400a3eb0]
movups xmmword [rax + 0x20], xmm0
movaps xmm0, xmmword [0x1400a3ec0]
movups xmmword [rax + 0x30], xmm0
mov ecx, esi
movabs rdx, 0x6a09e667f2bdc908
xor rdx, rcx
mov qword [rax], rdx
xorps xmm0, xmm0
movups xmmword [rax + 0xc8], xmm0
mov qword [rax + 0xd8], 0
mov rax, r8
add rsp, 0x20
pop rsi
ret
Function at 0x140078628
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140078758
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1400787bf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400787bf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400787bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400787bf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400787bf
cmp dword [rcx + 0x84], 0xe
jbe 0x1400787bf
cmp dword [rcx + 0xf8], 0
je 0x1400787bf
mov ecx, ebx
call fcn.1400786a4
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400788d8
cmp dword [rbp + 0x20], 0
je 0x14007880c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140078700
int3

Function at 0x14007fac0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
neg rcx
test rax, 7
je 0x14007fadd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x14007fb38
test al, 7
jne 0x14007fad0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x14007faf1
mov rdx, qword [rax - 8]
test dl, dl
je 0x14007fb62
test dh, dh
je 0x14007fb5c
shr rdx, 0x10
test dl, dl
je 0x14007fb56
test dh, dh
je 0x14007fb50
shr rdx, 0x10
test dl, dl
je 0x14007fb4a
test dh, dh
je 0x14007fb44
shr edx, 0x10
test dl, dl
je 0x14007fb3e
test dh, dh
jne 0x14007faf1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret
Function at 0x1400019f0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x30
mov rbp, rcx
lea rcx, str.CommApi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140001ac0
mov qword [rsp + 0x40], rsi
lea rcx, str.Successfully_load_CommApi.dll_n_n
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r14
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.InitApi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CallApi
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.UnInitApi
mov rcx, rbx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test r14, r14
je 0x140001aa8
test rdi, rdi
je 0x140001aa8
test rax, rax
je 0x140001aa8
call rdi
movups xmm0, xmmword [0x1400450d8]
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
mov rdx, rbp
movaps xmmword [rsp + 0x20], xmm0
call r14
call rsi
lea rcx, str.Successfully_fire_message_to_btvstack_n_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret

Function at 0x140001e30
Capabilities:
Create thread
Print debug messages
Resume thread

Disassembly:
sub rsp, 0x38
lea rcx, str.Enter_Function_StartCustomThread____n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp qword [0x140053e68], 0
je case.default.0x140001e56
lea rcx, str.Enter_condition_pSvc__hWorkEvent___NULL__n
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [0x140053e68], rax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140053e78], rax
xor r9d, r9d
lea r8, [0x14000fa00]
xor edx, edx
lea rax, [0x140053e70]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140053e60], rax
test rax, rax
je 0x140001ed7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov qword [0x140053e60], 0
mov ecx, dword [0x140053e70]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x5e5b
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov rcx, qword [0x140053e68]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140001f42
lea rdx, str.Create_Thread_fails__n
mov ecx, 1
call fcn.1400197e0
mov ecx, dword [0x140053e70]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x5e5b
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov rcx, qword [0x140053e68]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140001f04
call fcn.140009810
cmp eax, 0x14
jl 0x140001f89
cmp qword [0x140053e80], 0
jne 0x140001f89
lea rax, [0x140053e88]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9, [0x140053e20]
lea r8, [0x140001ad0]
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140053e80], rax
add rsp, 0x38
ret
retf 0xacac
Function at 0x14000e220
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x848
mov rax, qword [0x140053008]
xor rax, rsp
mov qword [rsp + 0x830], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x800
call fcn.14001d250
lea rdi, [rsp + 0x868]
call fcn.140001030
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8d, 0x7fffffff
mov rcx, qword [rax]
call fcn.1400217b8
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.140019ce0
add rsp, 0x848
pop rdi
pop rbx
ret

Function at 0x14000e2c0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
mov edx, ebx
call fcn.14000e220
mov r8d, ebx
lea rdx, str.Enter_Function_DisableRadioHandler__disable___d_n
mov ecx, 2
call fcn.1400197e0
test ebx, ebx
je case.default.0x14000e337
call fcn.140009810
cmp eax, 0x32
jl case.default.0x14000e337
lea rcx, str.DisableRadioHandler__dont_send_check_msg__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.DisableRadioHandler__dont_send_check_msg_n
mov ecx, 2
call fcn.1400197e0
mov dword [0x140053e94], 1
mov ecx, dword [0x140053e70]
mov r8, rbx
xor r9d, r9d
mov edx, 0x5e5d
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_PostThreadMessageW]
invalid
jnp 0x14008b62a
pop rcx
outsd dx, dword [rsi]
out 0xea, eax
lahf
jmp 0x14008b606
sbb edx, eax
movabs dword [0xdd5f16f6124c0cfb], eax
mov bl, dh
cmp edi, eax
mov bh, byte [rdi]
stosb byte [rdi], al
mov al, 0x3e
fsubp st(6)
movabs dword [0x6627bce1aca25f11], eax
invalid
test eax, 0x9fb3fcda
stc
xchg ecx, eax
stosd dword [rdi], eax
add al, 0x1f
movabs al, byte [0xee012338946cb9ca]
invalid
Function at 0x140007710
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x4b8
mov dword [rsp + 0x4a4], 0
lea rax, [rsp + 0x160]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftPowerShell
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x158], eax
cmp dword [rsp + 0x158], 0
je 0x14000777b
lea rdx, [0x1400163f0]
mov rcx, qword [rsp + 0x4c0]
call fcn.140013a30
jmp 0x140007962
xor eax, eax
cmp eax, 1
je 0x14000781c
mov dword [rsp + 0x4a0], 0x104
lea rax, [rsp + 0x150]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4a0]
lea r8, [rsp + 0x290]
mov edx, dword [rsp + 0x4a4]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [rsp + 0x158], eax
cmp dword [rsp + 0x158], 0
je 0x1400077f1
jmp 0x14000781c
lea rdx, [rsp + 0x290]
lea rcx, [rsp + 0x170]
call fcn.140013a30
mov eax, dword [rsp + 0x4a4]
add eax, 1
mov dword [rsp + 0x4a4], eax
jmp 0x14000777b
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.SOFTWAREMicrosoftPowerShell_
lea rcx, [rsp + 0x40]
call fcn.140013a30
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x40]
call fcn.140013e60
lea rdx, str.ShellIdsMicrosoft.PowerShell
lea rcx, [rsp + 0x40]
call fcn.140013e60
lea r11, [rsp + 0x160]
mov qword [rsp + 0x20], r11
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x158], eax
cmp dword [rsp + 0x158], 0
je 0x1400078b0
lea rdx, [0x140016440]
mov rcx, qword [rsp + 0x4c0]
call fcn.140013a30
jmp 0x140007962
mov dword [rsp + 0x280], 0x208
lea rax, [rsp + 0x280]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x290]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Path
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x158], eax
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x158], 0
je 0x140007925
lea rdx, str.powershell.exe
mov rcx, qword [rsp + 0x4c0]
call fcn.140013a30
jmp 0x140007962
lea rdx, [0x140016468]
mov rcx, qword [rsp + 0x4c0]
call fcn.140013a30
lea rdx, [rsp + 0x290]
mov rcx, qword [rsp + 0x4c0]
call fcn.140013e60
lea rdx, [0x14001646c]
mov rcx, qword [rsp + 0x4c0]
call fcn.140013e60
add rsp, 0x4b8
ret
Function at 0x1400079d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140007a1e
mov eax, 1
jmp 0x140007a41
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x68]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rsp, 0x48
ret

Function at 0x14000f410
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x268
lea rax, [rsp + 0x248]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x270]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x240], eax
cmp dword [rsp + 0x240], 0
je 0x14000f469
xor eax, eax
jmp 0x14000f580
mov dword [rsp + 0x250], 0x200
lea rax, [rsp + 0x250]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x248]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x240], eax
mov rcx, qword [rsp + 0x248]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x240], 0
je 0x14000f4c9
xor eax, eax
jmp 0x14000f580
lea rdx, str.ScriptEngine
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea r11, [rsp + 0x248]
mov qword [rsp + 0x20], r11
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x240], eax
cmp dword [rsp + 0x240], 0
je 0x14000f518
xor eax, eax
jmp 0x14000f580
mov eax, dword [rsp + 0x280]
mov dword [rsp + 0x250], eax
lea rax, [rsp + 0x250]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x278]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x248]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x240], eax
mov rcx, qword [rsp + 0x248]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x240], 0
jne 0x14000f57e
mov eax, 1
jmp 0x14000f580
xor eax, eax
add rsp, 0x268
ret
Function at 0x1400135e0
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x248
mov dword [rsp + 0x20], 0
jmp 0x140013606
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x250]
mov rax, qword [rax + 0x18]
mov eax, dword [rax + 0x10]
cmp dword [rsp + 0x20], eax
jge 0x14001365a
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x250]
mov rcx, qword [rcx + 0x18]
call fcn.140006ba0
mov r9, rax
mov r8, qword [rsp + 0x258]
lea rdx, [0x140016908]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x1400135fb
mov rax, qword [rsp + 0x250]
mov rax, qword [rax + 0x20]
mov eax, dword [rax + 0x10]
sub eax, 1
mov dword [rsp + 0x20], eax
jmp 0x14001367d
mov eax, dword [rsp + 0x20]
sub eax, 1
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x1400136c3
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x250]
mov rcx, qword [rcx + 0x20]
call fcn.140006ba0
mov r9, rax
mov r8, qword [rsp + 0x258]
lea rdx, str._s_s
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x140013672
add rsp, 0x248
ret

Function at 0x1400136e0
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
movsx eax, byte [rax]
cmp eax, 0x22
jne 0x14001376f
mov rax, qword [rsp + 0x20]
add rax, 1
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movsx eax, byte [rax]
test eax, eax
je 0x14001374d
mov rax, qword [rsp + 0x20]
movsx eax, byte [rax]
cmp eax, 0x22
jne 0x14001373d
mov rax, qword [rsp + 0x20]
add rax, 1
mov qword [rsp + 0x28], rax
jmp 0x14001374d
mov rax, qword [rsp + 0x20]
add rax, 1
mov qword [rsp + 0x20], rax
jmp 0x140013714
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
cmp eax, 0x20
jne 0x140013768
mov rax, qword [rsp + 0x28]
add rax, 1
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
jmp 0x1400137a8
mov rax, qword [rsp + 0x20]
movsx eax, byte [rax]
test eax, eax
je 0x1400137a3
mov rax, qword [rsp + 0x20]
movsx eax, byte [rax]
cmp eax, 0x20
jne 0x140013793
mov rax, qword [rsp + 0x20]
add rax, 1
jmp 0x1400137a8
mov rax, qword [rsp + 0x20]
add rax, 1
mov qword [rsp + 0x20], rax
jmp 0x14001376f
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140001000
Capabilities:
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov esi, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r10d, r10d
mov rbx, rax
movsxd rcx, dword [rax + 0x3c]
mov r8d, dword [rcx + rax + 0x88]
add r8, rax
mov ebp, dword [r8 + 0x1c]
mov r11d, dword [r8 + 0x20]
add rbp, rax
mov r14d, dword [r8 + 0x24]
add r11, rax
mov edi, dword [r8 + 0x14]
add r14, rax
test edi, edi
je 0x1400010b8
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [r11]
mov rax, 0xffffffffffffffff
add r8, rbx
nop dword [rax]
inc rax
cmp byte [r8 + rax], 0
jne 0x140001070
xor edx, edx
mov r9d, 0x811c9dc5
test rax, rax
je 0x1400010a7
nop word [rax + rax]
movsx ecx, byte [rdx + r8]
inc rdx
xor ecx, r9d
imul r9d, ecx, 0x1000193
cmp rdx, rax
jb 0x140001090
cmp r9d, esi
je 0x1400010d5
inc r10d
add r11, 4
cmp r10d, edi
jb 0x140001060
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
movzx ecx, word [r14 + r10*2]
mov eax, dword [rbp + rcx*4]
add rax, rbx
jmp 0x1400010ba
Function at 0x1400012dc
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140003638], rbx
je 0x140001328
cmp rax, rbx
jne 0x14000131b
mov ebx, 1
mov esi, ebx
jmp 0x14000132d
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140001300
mov ebx, 1
mov eax, dword [0x140003640]
cmp eax, ebx
jne 0x140001343
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400013a8
mov eax, dword [0x140003640]
test eax, eax
jne 0x1400013a2
mov dword [0x140003640], ebx
lea r15, [0x1400022c0]
lea rdi, [0x1400022a8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140001394
test eax, eax
jne 0x140001398
cmp qword [rdi], 0
je 0x140001389
mov rax, qword [rdi]
mov rcx, qword [0x140002288]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000136a
test eax, eax
je 0x1400013a8
mov eax, 0xff
jmp 0x140001484
mov dword [0x140003044], ebx
mov eax, dword [0x140003640]
cmp eax, ebx
jne 0x1400013cf
lea rdx, [0x1400022a0]
lea rcx, [0x140002290]
call sub.msvcrt.dll__initterm
mov dword [0x140003640], 2
test esi, esi
jne 0x1400013dc
xor eax, eax
xchg qword [0x140003638], rax
cmp qword [0x140003648], 0
je 0x140001410
lea rcx, [0x140003648]
call fcn.140001650
test eax, eax
je 0x140001410
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140003648]
mov r9, qword [0x140002288]
call r9
mov r8, qword [0x140003058]
mov rdx, qword [0x140003050]
mov ecx, dword [0x140003048]
call fcn.14000119c
mov dword [0x140003040], eax
cmp dword [0x140003060], 0
jne 0x140001440
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140003044], 0
jne 0x140001455
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140003040]
jmp 0x140001484
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140124000
add rsp, 0x28
jmp 0x1400012dc

Function at 0x140001550
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000159c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001594
cmp dword [rcx + 0x3c], edx
jl 0x140001594
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140001594
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000159c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001060
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, 0x5a4d
mov ebp, r8d
mov r14d, edx
mov rdi, rcx
cmp word [rcx], ax
jne 0x14000115f
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x14000115f
mov ecx, 0x8664
cmp word [rax + 4], cx
jne 0x14000115f
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x14000115f
cmp dword [rax + 0x84], 0
jbe 0x14000115f
cmp dword [rax + 0x8c], 0
je 0x14000115f
mov ecx, dword [rax + 0x88]
add rcx, rdi
je 0x14000115f
mov ebx, dword [rcx + 0x20]
xor r11d, r11d
mov r15d, dword [rcx + 0x24]
add rbx, rdi
mov r12d, dword [rcx + 0x1c]
add r15, rdi
mov esi, dword [rcx + 0x18]
add r12, rdi
test esi, esi
je 0x14000115f
nop word [rax + rax]
mov r10d, dword [rbx]
mov r9d, r14d
add r10, rdi
xor eax, eax
nop dword [rax + rax]
movsx ecx, byte [rax + r10]
movzx edx, cl
lea ecx, [rdx - 0x61]
cmp ecx, 0x19
lea r8d, [rdx - 0x20]
cmova r8d, edx
xor r9d, r8d
rol r9d, 8
add r9d, r8d
test r8d, r8d
je 0x14000114e
inc rax
cmp rax, 0xffffffffffffffff
jne 0x140001120
cmp r9d, ebp
je 0x14000117c
inc r11d
add rbx, 4
cmp r11d, esi
jb 0x140001110
xor eax, eax
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret
movzx ecx, word [r15 + r11*2]
mov eax, dword [r12 + rcx*4]
add rax, rdi
jmp 0x140001161
Function at 0x140001450
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.140002cb0
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 0x140001aa0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.1400028f0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140001b10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140009094]
test esi, esi
mov rbx, rcx
jle 0x140001c40
mov rax, qword [0x140009098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001b5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001be5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001b40
mov rcx, rbx
call fcn.140002580
test rax, rax
mov rdi, rax
je 0x140001c62
mov rax, qword [0x140009098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400026c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140009098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001c47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001bde
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001bf0
add dword [0x140009094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140009098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001bde
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001aa0
nop dword [rax]
xor esi, esi
jmp 0x140001b68
mov rax, qword [0x140009098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.140001aa0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.140001aa0
nop
nop word cs:[rax + rax]
nop dword [rax]