joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401592
Capabilities:
Resume thread

Disassembly:
push rsi
push rbx
sub rsp, 0x508
mov rbx, qword [rdx + 8]
lea rsi, [rsp + 0x30]
mov qword [rsp + 0x28], r8
mov dword [rsp + 0x60], 0x100002
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
mov r8, qword [rsp + 0x28]
je 0x4015e8
mov qword [rsp + 0xb0], r8
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x4015e8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
nop
add rsp, 0x508
pop rbx
pop rsi
ret

Function at 0x401698
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4f0
test r8, r8
mov rsi, rcx
mov ebp, edx
je 0x4016b5
cmp byte [r8], 0
jne 0x4016c0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x40175c
lea rdx, [rsp + 0x8c]
lea rbx, [rsp + 0x70]
xor eax, eax
mov ecx, 0x19
lea r12, [rsp + 0x88]
mov r9, r8
mov rdi, rdx
lea r8, section..rdata
mov edx, 0x400
rep stosd dword [rdi], eax
mov ecx, 6
mov rdi, rbx
mov dword [rsp + 0x88], 0x68
rep stosd dword [rdi], eax
lea rdi, [rsp + 0xf0]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__snprintf]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r12
mov rdx, rdi
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40178c
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x40178c
mov rdx, qword [rsp + 0x80]
movsxd r9, ebp
mov r8, rsi
movaps xmm0, xmmword [rsp + 0x70]
mov rcx, rax
mov qword [rsp + 0x60], rdx
lea rdx, [rsp + 0x50]
movaps xmmword [rsp + 0x50], xmm0
call fcn.004015f2
nop
add rsp, 0x4f0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x401810
Capabilities:
Connect pipe
Create pipe
Write file on windows
Write pipe

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r8d, r8d
mov r9d, 1
mov rdi, rcx
mov esi, edx
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov edx, 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea rcx, [0x004509a0]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov rbx, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x4018bb
xor edx, edx
mov rcx, rbx
lea rbp, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x4018bb
test esi, esi
jle 0x4018a5
mov qword [rsp + 0x20], 0
mov r9, rbp
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4018b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4018bb
mov edx, dword [rsp + 0x4c]
add rdi, rdx
sub esi, edx
jmp 0x401882
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x4018e2
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r9d, r9d
mov r8d, 3
mov rdi, rcx
mov ebx, edx
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea rcx, [0x004509a0]
lea rbp, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
xor eax, eax
cmp rsi, 0xffffffffffffffff
je 0x401979
test ebx, ebx
jle 0x40195e
mov qword [rsp + 0x20], 0
mov r9, rbp
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40196e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x401979
mov edx, dword [rsp + 0x4c]
add rdi, rdx
sub ebx, edx
jmp 0x40193b
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x402170
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x00450644]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x402290
mov rax, qword [0x00450648]
xor ebx, ebx
add rax, 0x18
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x4021bc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x402276
add ebx, 1
add rax, 0x28
cmp ebx, ecx
jne 0x4021a0
mov rcx, rsi
call fcn.00402db0
test rax, rax
mov r12, rax
je 0x4022c8
movsxd rbx, ebx
lea rbx, [rbx + rbx*4]
shl rbx, 3
mov r13, rbx
add r13, qword [0x00450648]
mov qword [r13 + 0x20], rax
mov dword [r13], 0
call fcn.00402f00
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 0x18], rax
mov rax, qword [0x00450648]
mov rcx, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4022ab
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40226f
sub eax, 0x40
and eax, 0xffffffbf
je 0x40226f
add rbx, qword [0x00450648]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x402297
add dword [0x00450644], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebx, ebx
jmp 0x4021c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00402100
mov rax, qword [0x00450648]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.00402100
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.00402100
nop
nop dword [rax + rax]
Function at 0x402a20
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00450920]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00450900]
test rbx, rbx
je 0x402a74
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 0x402a6b
test rsi, rsi
je 0x402a6b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402a50
lea rcx, [0x00450920]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402db0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x0044d3c0]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x402dd0
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.00402c90
test eax, eax
je 0x402dc8
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402e2d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x402e24
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x402dc8
add rdx, 0x28
cmp rdx, r9
jne 0x402e10
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14000df70
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000dfcd
lea rbx, [0x1400bbc80]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14000dfb4
cmp r10, 2
jb 0x14000dfb4
cmp byte [r9], r8b
jne 0x14000dfb4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x14000df90
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000e00f
lea rbx, [0x1400bbc80]
cmp r8b, 0x23
jne 0x14000dff3
cmp byte [r9], r8b
jne 0x14000dff3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x14000dfe0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x14000e150
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000e16a
mov qword [r8], 0
lea rdx, [0x1400bb8f4]
call fcn.14000e020
mov rbx, rax
test rax, rax
jne 0x14000e18a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x14000e261
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000e261
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000e261
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000e261
cmp rdi, 0xffffffffffffffff
je 0x14000e261
mov rax, qword [0x1400da3a0]
test rax, rax
je 0x14000e1fe
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14000e261
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x14000e24e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400da3a0]
test rax, rax
je 0x14000e243
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000e26a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000e25c
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000e26c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140010460
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xd0]
mov rax, qword [rcx + 0xd8]
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x1400bbc80]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x39]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3a]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3b]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
mov rcx, qword [0x1400da3a0]
not ebx
cmp dword [rcx + 0x3edc], ebx
jne 0x1400104eb
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.1400219f0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x14001b540
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [0x1400da3a0]
mov edi, ecx
cmp byte [rbx + 0x424d], 0
jne 0x14001b592
cmp byte [rbx + 0x424e], 0
jne 0x14001b592
movsx r9d, word [rbx + 0x5332]
lea r8, str.Tooltip__02d
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x20]
call fcn.14000def0
test dil, 1
je 0x14001b6b8
jmp 0x14001b61b
movss xmm1, dword [rbx + 0x38b0]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5332]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x1400c9198]
mulss xmm1, dword [0x1400c9188]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xd94]
addss xmm1, dword [rbx + 0xd98]
mov qword [rbx + 0x3fc8], rax
mov dword [rbx + 0x3fb4], 1
movss dword [rbx + 0x3fc0], xmm0
movss dword [rbx + 0x3fc4], xmm1
movss xmm0, dword [rbx + 0x390c]
mulss xmm0, dword [0x1400c90f8]
or dword [rbx + 0x3fb0], 0x41
movss dword [rbx + 0x4010], xmm0
call fcn.14000def0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14001b670
lea r11, [0x1400bbc80]
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x14001b653
cmp byte [r8], r9b
jne 0x14001b653
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14001b640
not ecx
call fcn.140014f30
test rax, rax
je 0x14001b6b8
cmp byte [rax + 0x96], 0
je 0x14001b6b8
mov byte [rax + 0x9d], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb8], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x5332]
mov edx, reloc.WS2_32.dll_recv
movsx r9d, word [rbx + 0x5332]
call fcn.14000def0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140017570
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400205a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x53e0], 0
lea rbx, [rcx + 0x53e8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140020647
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x1400205fa
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140022600
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.14000e5b0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x53e0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x53f0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400da398]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14002064f
mov rcx, rbx
call fcn.14000e5b0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140020bc0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1400da3a0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140020c23
mov qword [rsp], rbx
lea rbx, [0x1400bbc80]
nop dword [rax]
cmp r9b, 0x23
jne 0x140020c03
cmp byte [r8], r9b
jne 0x140020c03
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x140020bf0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5390]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x140020c57
mov r10, qword [r10 + 0x5398]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x140020c5e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x140020c44
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x1400387c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rdi, rcx
xor r14d, r14d
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x50]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x104
ja 0x14003883f
lea rcx, [rbp - 0x50]
mov rax, 0xffffffffffffffff
nop
lea rax, [rax + 1]
cmp word [rcx + rax*2], r14w
jne 0x140038820
cmp word [rbp + rax*2 - 0x52], 0x5c
jne 0x140038839
mov word [rbp + rax*2 - 0x52], r14w
lea rdx, [rbp - 0x50]
jmp 0x140038846
lea rdx, [0x1400c8930]
lea rcx, [rsp + 0x40]
call fcn.14003bf60
nop
mov rbx, qword [rsp + 0x50]
test rbx, rbx
jne 0x1400388b7
lea rdx, [0x1400c8930]
mov rcx, rdi
call fcn.14003bf60
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140038a01
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400389fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400389fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rsp + 0x68]
call fcn.1400384f0
mov rsi, rax
movabs rcx, 0x7ffffffffffffffe
sub rcx, rbx
cmp rcx, 1
jb 0x140038a21
lea r9, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae r9, qword [rsp + 0x40]
mov qword [rsp + 0x30], 1
lea rax, [0x1400c892c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea rcx, [rbp - 0x78]
call fcn.14003d980
nop
mov r9, rsi
lea r8, [rbp - 0x78]
mov rcx, rdi
call fcn.14003d750
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x140038964
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003895e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003895e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a821c
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x1400389a8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400389a3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400389a3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a821c
movdqa xmm0, xmmword [0x1400c9240]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r14w
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140038a01
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400389fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400389fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a821c
mov rax, rdi
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140038070
nop
int3
Function at 0x14003a6f0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rdi
push r12
push r14
push r15
mov eax, 0x1070
call fcn.1400a8ac0
sub rsp, rax
xor r12d, r12d
mov r15, r9
mov rdi, r8
mov r14, rcx
test r8, r8
je 0x14003a82f
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rax
lea r9d, [r12 + 0x28]
lea rax, [rsp + 0x10a8]
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov dword [rsp + 0x28], r12d
mov edx, 0x80862007
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], gethostname
mov qword [rsp + 0x60], 0x1000
mov dword [rsp + 0x10a8], r12d
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14003a82f
movsxd rax, dword [rsp + 0xac]
lea rcx, [rsp + 0x70]
add rcx, rax
mov r8d, r12d
movzx eax, word [rcx + 0x14]
lea r10, [rcx + 0x18]
movzx r9d, word [rcx + 6]
add r10, rax
test r9d, r9d
je 0x14003a82f
lea rbx, [r12 - 1]
nop dword [rax + rax]
mov eax, r8d
lea rcx, [rax + rax*4]
cmp dword [r10 + rcx*8], 0x45474150
lea rdx, [r10 + rcx*8]
jne 0x14003a7ef
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp byte [rdx + rax], r12b
jne 0x14003a7e0
cmp rax, 4
je 0x14003a7ff
inc r8d
cmp r8d, r9d
jb 0x14003a7c0
mov rax, r12
jmp 0x14003a91f
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x14003a82f
mov ecx, dword [rdx + 8]
lea rbp, [rsp + 0x70]
add rbp, rax
je 0x14003a82f
test ecx, ecx
je 0x14003a82f
lea rax, [rsp + 0x70]
sub rbp, rax
add rbp, rdi
mov edi, ecx
je 0x14003a82f
cmp rcx, 0x40000000
jbe 0x14003a837
mov rax, r12
jmp 0x14003a91f
mov qword [rsp + 0x10a0], rsi
call fcn.1400a8648
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x40]
mov rsi, rax
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x10a8]
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x30], rax
mov r9d, Ordinal_41
mov dword [rsp + 0x28], r12d
mov edx, 0x80862007
mov rcx, r14
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x40], gethostname
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x10a8], r12d
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14003a914
mov r9, qword [rsp + 0x10c0]
nop dword [rax]
inc rbx
cmp byte [r9 + rbx], r12b
jne 0x14003a8b0
sub rdi, rbx
mov rbx, r12
je 0x14003a90c
movzx r10d, byte [r9]
mov r11, rsi
sub r11, r15
nop dword [rax + rax]
mov rdx, r9
mov rax, r15
test r10b, r10b
je 0x14003a8ff
movzx ecx, r10b
lea r8, [r11 + rbx]
cmp cl, 0x78
jne 0x14003a8f1
movzx ecx, byte [rax]
cmp byte [r8 + rax], cl
jne 0x14003a904
movzx ecx, byte [rdx + 1]
inc rdx
inc rax
test cl, cl
jne 0x14003a8e3
cmp byte [rdx], r12b
je 0x14003a937
inc rbx
cmp rbx, rdi
jb 0x14003a8d0
mov rcx, rsi
call fcn.1400a821c
mov rax, r12
mov rsi, qword [rsp + 0x10a0]
mov rbx, qword [rsp + 0x10b0]
add rsp, 0x1070
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea rax, [rbx + rsi]
test rax, rax
je 0x14003a90c
mov rcx, rsi
call fcn.1400a821c
lea rax, [rbx + rbp]
jmp 0x14003a917
Function at 0x14003b530
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x14003b558
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14003b57e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14003b580
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14003b5d9
test ecx, ecx
jle 0x14003b5b9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14003b5d9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14003b5d9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x14003b600
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14003b631
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x14003b64f
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14003b66b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14003b66d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14003b6a9
mov qword [rsp + 0x38], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14003b73e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14003b6e4
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14003b71e
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14003b73e
cmp rbx, rax
ja 0x14003b6f0
test rbx, rbx
je 0x14003b73e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret