joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001809
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rax, qword [rbp + 0x20]
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140001864
mov ecx, 2
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x18
mov edx, 1
lea rax, str.Memory_allocation_error_n
mov rcx, rax
call sym.fwrite
jmp 0x140001908
mov rax, qword [rbp + 0x20]
mov edx, eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.RAND_bytes
test eax, eax
jne 0x1400018b3
mov ecx, 2
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x20
mov edx, 1
lea rax, str.Error_generating_random_XOR_key_n
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.free
jmp 0x140001908
mov qword [rbp - 8], 0
jmp 0x1400018f1
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 8]
add rax, rdx
movzx r8d, byte [rax]
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
add rax, rdx
movzx ecx, byte [rax]
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
add qword [rbp - 8], 1
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x20]
jb 0x1400018bd
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.free
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140001c10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
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 dbg.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001c80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
mov rbx, rcx
test esi, esi
jle 0x140001db0
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001ccb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001d55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001cb0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001dd2
mov rax, qword [0x140007098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001db7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001d4e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001d60
add dword [0x140007094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140007098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001d4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001cd8
mov rax, qword [0x140007098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002340
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x14000239c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002393
test rsi, rsi
je 0x140002393
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002378
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400025b0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400025c8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400025d0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400025e0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000262d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002624
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000262f
add rax, 0x28
cmp rax, r9
jne 0x140002610
xor eax, eax
ret

Function at 0x140002630
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400026c0
mov rdx, qword [0x140004490]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400026ae
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400026ae
cmp word [rax + 0x18], 0x20b
jne 0x1400026ae
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400026c0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002699
add rbx, 0x28
cmp rbx, rdi
je 0x1400026c0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002690
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400026d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004490]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400026f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400026f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400026f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000274d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002744
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400026f0
add rax, 0x28
cmp rax, r9
jne 0x140002730
xor eax, eax
ret

Function at 0x140002750
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004490]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000276f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002778
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000276f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002790
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140004490]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400027b0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400027b8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400027b0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002800
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400027f7
test rcx, rcx
je 0x1400027b0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400027e8
xor eax, eax
ret
Function at 0x140002810
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004490]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000282f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002838
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002850
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004490]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002870
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002878
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002870
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002870
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400028c4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400028d0
add rdx, 0x28
cmp r9, rdx
jne 0x1400028b0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400028e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140004490]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002902
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002910
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002902
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002902
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002902
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002965
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002978
add rdx, 0x28
cmp rdx, r10
jne 0x140002950
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002987
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002997
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000296e
test ecx, ecx
jg 0x140002980
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x402990
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
cmp word [0x00400000], 0x5a4d
lea rbx, [0x00400000]
mov rsi, rcx
je 0x4029b4
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, rbx
call fcn.00402850
test eax, eax
je 0x4029ab
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.00402890
Function at 0x1807cfa86
Capabilities:
Encode data using xor

Disassembly:
add qword [rsp + 0x20], 0x7f7763cc
mov r12, qword [rsp + 0x28]
call fcn.18078d12a
add byte [rax], al
add byte [rcx], al
add byte [rax], al
add al, dh
xor edi, esp
pop rcx
and al, r14b
sub eax, 0xbd714f2
mov dl, 0xe8
invalid

Function at 0x18099d6de
Capabilities:
Execute anti-debugging instructions

Disassembly:
push rbp
bswap ebp
movsx bp, r9b
mov bpl, r11b
push r9
movsx r9w, r10b
movsxd r9, r15d
movzx ebp, di
push rax
not r9w
cmovno r9w, r9w
movzx bp, r9b
push rdx
push r8
push r14
push rdi
bswap ebp
push r13
setp bpl
rdtsc
cwd
push rsi
xchg ebp, edx
mov edx, r11d
push rbx
mov bpl, dl
rdtsc
push r11
cdq
cwd
lahf
push r12
movsx edx, r14w
rdtsc
push r10
cwde
movzx edi, sp
rdtsc
push rcx
movsx ebp, di
cbw
lahf
pushfq
add bpl, 0x98
sal dx, cl
movabs rax, 0
or bpl, sil
push rax
add sil, 0x69
btr bp, 0x32
mov rbp, qword [rsp + 0x90]
sal dh, 0x88
seta r9b
neg ebp
ror ebp, 1
xchg sil, sil
movzx rsi, bx
cwd
dec ebp
sar r10b, cl
shl r9, 0xf5
xor ebp, 0x445a6fe6
add r8w, r15w
inc r8b
not ebp
rcr r9b, cl
add rbp, rax
neg dh
cmovb r9d, ebp
test r13b, 0x52
movabs rdx, 0x100000000
shl r10b, cl
or r8, 0x7cd223d0
lea rbp, [rbp + rdx]
mov r9, rsp
sub rsp, 0x180
btc rsi, 0x2b
btr rdi, r9
movzx r10w, r8b
and rsp, 0xfffffffffffffff0
cmc
mov r10, rbp
movabs r8, 0
rcl dil, cl
shrd rdi, r10, 0x4f
sub r10, r8
bt esi, 0x99
rcl dil, 0xf1
lea rdi, [0x180931f0c]
rcr sil, cl
adc si, r15w
sub rbp, 4
sal rsi, cl
mov esi, dword [rbp + riz]
clc
xor esi, r10d
clc
rol esi, 1
stc
xor esi, 0x5baf1c55
jmp 0x18096e962
dec esi
ror esi, 3
test r15b, r15b
stc
push r10
not r10
rcr r10w, cl
xor dword [rsp], esi
mov r10, 0xd6d1345
neg r10w
rcl r10b, 0xb7
pop r10
test r15b, 0xed
movsxd rsi, esi
test r10w, r14w
jmp 0x180992599
add rdi, rsi
push rdi
ret
push r15
jmp 0x180931dee
Function at 0x140001820
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbx, rcx
call fcn.140001680
mov r12, rax
test rax, rax
je 0x1400019d0
mov rcx, rbx
call fcn.140001550
mov ebp, eax
movsxd rax, dword [r12 + 0x3c]
mov r13d, dword [r12 + rax + 0x88]
add r13, r12
mov edx, dword [r13 + 0x18]
mov eax, dword [r13 + 0x20]
test edx, edx
je 0x1400019d0
lea r15, [r12 + rax]
lea rax, [rsp + 0x3f]
mov rdi, qword [0x140285940]
xor esi, esi
mov qword [rsp + 0x28], rax
jmp 0x1400018be
mov rdx, qword [rsp + 0x28]
mov r8d, 1
call fcn.140100380
mov rcx, rbx
call fcn.140001550
cmp eax, ebp
je 0x140001959
add rsi, 1
cmp esi, dword [r13 + 0x18]
jae 0x1400019d0
mov ebx, dword [r15 + rsi*4]
add rbx, r12
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov rdx, rbx
mov rcx, rdi
mov r8, rax
call fcn.140100380
mov r8d, 0x11
lea rdx, str.__Hash_of_fName:
mov rcx, rdi
call fcn.140100380
mov rcx, rbx
call fcn.140001550
mov rcx, rdi
mov edx, eax
call fcn.1400a82c0
mov r8d, 8
lea rdx, str.__Hash:
mov r14, rax
mov rcx, rax
call fcn.140100380
mov rcx, r14
mov edx, ebp
call fcn.1400a82c0
mov byte [rsp + 0x3f], 0xa
mov rcx, rax
mov rax, qword [rax]
mov rax, qword [rax - 0x18]
cmp qword [rcx + rax + 0x10], 0
jne 0x140001890
mov edx, 0xa
call fcn.1400a6b40
mov rcx, rbx
call fcn.140001550
cmp eax, ebp
jne 0x1400018b0
mov eax, dword [r13 + 0x24]
lea rdx, [r12 + rsi*2]
movzx edx, word [rdx + rax]
mov eax, dword [r13 + 0x1c]
lea rdx, [r12 + rdx*4]
mov ebx, dword [rdx + rax]
xor eax, eax
add rbx, r12
jmp 0x14000198e
add rax, 1
cmp rax, 0x20
je 0x1400018b0
cmp byte [rbx + rax], 0xf
jne 0x140001980
cmp byte [rbx + rax + 1], 5
jne 0x140001980
movzx edx, word [rbx + rax - 2]
test dx, dx
je 0x1400018b0
mov ecx, 0x10
mov dword [rsp + 0x28], edx
call fcn.140108230
mov edx, dword [rsp + 0x28]
mov qword [rax], rbx
mov dword [rax + 8], ebp
mov word [rax + 0xc], dx
jmp 0x1400019d2
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400019f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rdi
push rbx
sub rsp, 0x48
mov ecx, pe_nt_image_headers64
call fcn.140108230
mov ecx, 0x10
lea rbx, [rsp + 0x20]
movdqa xmm0, xmmword [str.NtAllocateVirtualMemory]
mov rdx, rax
mov rdi, rax
xor eax, eax
rep stosq qword [rdi], rax
mov rax, qword [0x14010e040]
mov rcx, rbx
mov qword [0x1402af040], rdx
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
call fcn.140001820
movdqa xmm0, xmmword [str.NtProtectVirtualNtCreateThreadExNtWriteFNtClose]
mov rcx, rbx
mov dword [rsp + 0x30], 0x6f6d654d
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov byte [rsp + 0x36], 0
mov rax, qword [0x1402af040]
movaps xmmword [rsp + 0x20], xmm0
mov qword [rax], r8
mov qword [rax + 8], r9
mov eax, 0x7972
mov word [rsp + 0x34], ax
call fcn.140001820
movdqa xmm0, xmmword [0x14010e060]
mov rcx, rbx
mov byte [rsp + 0x30], 0
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov rax, qword [0x1402af040]
movaps xmmword [rsp + 0x20], xmm0
mov qword [rax + 0x10], r8
mov qword [rax + 0x18], r9
call fcn.140001820
mov rcx, rbx
mov byte [rsp + 0x2c], 0
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov dword [rsp + 0x28], 0x656c6946
mov rax, qword [0x1402af040]
mov qword [rax + 0x20], r8
mov qword [rax + 0x28], r9
mov rax, qword [0x14010e060]
mov qword [rsp + 0x20], rax
call fcn.140001820
mov rcx, rbx
mov dword [rsp + 0x28], 0x656c69
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov rax, qword [0x1402af040]
mov qword [rax + 0x30], r8
mov qword [rax + 0x38], r9
mov rax, qword [0x14010e070]
mov qword [rsp + 0x20], rax
call fcn.140001820
mov rcx, rbx
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov rax, qword [0x1402af040]
mov qword [rax + 0x40], r8
mov qword [rax + 0x48], r9
mov rax, qword [0x14010e078]
mov qword [rsp + 0x20], rax
call fcn.140001820
movdqa xmm0, xmmword [str.NtWaitForSingleO:]
mov rcx, rbx
mov edx, 0x74
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov word [rsp + 0x34], dx
mov rax, qword [0x1402af040]
mov dword [rsp + 0x30], 0x63656a62
movaps xmmword [rsp + 0x20], xmm0
mov qword [rax + 0x50], r8
mov qword [rax + 0x58], r9
call fcn.140001820
mov rcx, qword [rax]
mov rbx, qword [rax + 8]
mov rax, qword [0x1402af040]
mov qword [rax + 0x70], rcx
mov qword [rax + 0x78], rbx
add rsp, 0x48
pop rbx
pop rdi
ret
Function at 0x140018630
Capabilities:
Write file on windows

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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1402af0c4]
mov rbx, rcx
test esi, esi
jle 0x1400187d0
mov rax, qword [0x1402af0c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400186eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140018775
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400186d0
mov rcx, rbx
call fcn.1400191d0
mov rdi, rax
test rax, rax
je 0x1400187f2
mov rax, qword [0x1402af0c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140019310
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1402af0c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400187d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14001876e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140018780
add dword [0x1402af0c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1402af0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001876e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140018630
nop dword [rax]
xor esi, esi
jmp 0x1400186f8
mov rax, qword [0x1402af0c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140018630
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140018630
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140018ec0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp edx, 2
je 0x140018ff0
ja 0x140018f08
test edx, edx
je 0x140018f88
mov eax, dword [0x1402af108]
test eax, eax
je 0x140019070
mov dword [0x1402af108], 1
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp edx, 3
jne 0x140018ef5
mov eax, dword [0x1402af108]
test eax, eax
je 0x140018ef5
lea r12, [0x1402af120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402af100]
test rbx, rbx
je 0x140018f74
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140019098
test eax, eax
jne 0x140019098
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140018f48
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140018ef5
mov eax, dword [0x1402af108]
test eax, eax
jne 0x140019008
mov eax, dword [0x1402af108]
cmp eax, 1
jne 0x140018ef5
mov rbx, qword [0x1402af100]
test rbx, rbx
je 0x140018fc1
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
call fcn.140025810
test rbx, rbx
jne 0x140018fb0
lea rcx, [0x1402af120]
mov qword [0x1402af100], 0
mov dword [0x1402af108], 0
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x140018ef5
call fcn.140018620
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r12, [0x1402af120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402af100]
test rbx, rbx
je 0x14001905c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word [rax + rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140019088
test rsi, rsi
je 0x140019088
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140019038
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140018f92
lea rcx, [0x1402af120]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x140018eeb
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140019038
jmp 0x14001905c
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140018f48
jmp 0x140018f74

Function at 0x1400191d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r8, qword [0x140285f30]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400191f0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400191f8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400191f0
movzx eax, word [rdx + 0x14]
sub rcx, r8
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140019245
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14001923c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400191f0
add rax, 0x28
cmp rax, r9
jne 0x140019228
xor eax, eax
ret