joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400066a0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
lea rax, [0x14005a380]
mov qword [rsp + 0x38], rax
lea r12, [rsp + 0x30]
mov rdi, rcx
mov rsi, rdx
lea rcx, [rsp + 0x20]
mov edx, 0xfa0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
call fcn.14000eb00
mov rax, qword [rsp + 0x20]
mov rbp, qword [0x140060020]
mov rbx, rax
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
test rbx, rbx
mov qword [rsp + 0x48], rax
jle 0x140006888
nop word [rax + rax]
mov rax, qword [rsp + 0x48]
mov r9, rsi
mov r8d, 0xfa0
mov edx, 1
lea rcx, [rax + 8]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp rax, 0xfa0
mov rbx, rax
je 0x140006810
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
je 0x140006757
mov rcx, rsi
call fcn.140005870
mov rcx, rbp
call fcn.140049cd0
cmp byte [rax], 0
jne 0x1400068c0
test rbx, rbx
js 0x1400068e0
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.14000b850
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.14000b550
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
test rbx, rbx
jle 0x1400067e8
mov rax, rbx
add rax, 1
jo 0x1400068bb
test rax, rax
js 0x1400068fe
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
lea r9, [r8 + rdx + 8]
mov r8, rax
lea rdx, [rcx + 8]
mov rcx, r9
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add rbx, qword [rsp + 0x30]
jo 0x1400068bb
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x30], rbx
nop dword [rax]
test rcx, rcx
je 0x1400067f7
test byte [rcx + 7], 0x40
je 0x1400068d0
movdqa xmm0, xmmword [rsp + 0x30]
mov rax, rdi
movups xmmword [rdi], xmm0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, rbp
call fcn.140049cd0
cmp byte [rax], 0
jne 0x1400068c0
mov rdx, qword [rsp + 0x40]
mov rcx, r12
call fcn.14000b550
mov rbx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
test rbx, rbx
jle 0x140006888
mov rcx, rbx
add rcx, 1
jo 0x14000689d
test rcx, rcx
js 0x1400068a8
mov r8, qword [rsp + 0x38]
add rdx, 8
mov rax, qword [rsp + 0x30]
lea rax, [r8 + rax + 8]
mov r8, rcx
mov rcx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add rbx, qword [rsp + 0x30]
jo 0x14000689d
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsp + 0x40]
test rbx, rbx
jg 0x140006718
nop dword [rax + rax]
lea rdx, [rbx - 1]
xor ecx, ecx
call fcn.14000d220
mov rcx, qword [rsp + 0x48]
jmp 0x1400067e8
call fcn.14000a670
jmp 0x140006875
movabs r8, 0x7fffffffffffffff
xor edx, edx
call fcn.14000acb0
jmp 0x140006875
call fcn.14000a670
mov rcx, qword [rsp + 0x48]
jmp 0x1400067e8
call fcn.140009d50
jmp 0x1400067f7
movabs r8, 0x7fffffffffffffff
mov rcx, rbx
xor edx, edx
call fcn.14000acb0
mov rcx, qword [rsp + 0x48]
jmp 0x1400067e8
movabs r8, 0x7fffffffffffffff
mov rcx, rax
xor edx, edx
call fcn.14000acb0
mov rcx, qword [rsp + 0x48]
jmp 0x1400067e8
Function at 0x140006920
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
test r8, r8
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
js 0x140006a10
lea r14, [rsp + 0x20]
mov rdx, r8
mov rcx, r14
call fcn.14000eb00
mov rax, qword [rsp + 0x20]
mov rdx, rax
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
test rdx, rdx
mov qword [rsp + 0x38], rax
jle 0x140006a60
mov rax, qword [rsp + 0x38]
mov r9, rsi
mov r8, rbx
mov edx, 1
lea rcx, [rax + 8]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp rbx, rax
mov rbp, rax
je 0x1400069a1
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
jne 0x140006a30
mov rcx, qword [0x140060020]
call fcn.140049cd0
cmp byte [rax], 0
mov r12, rax
jne 0x1400069f1
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetc
mov rdx, rsi
mov ecx, eax
mov r13d, eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ungetc
cmp byte [r12], 0
jne 0x1400069f1
test r13d, r13d
jns 0x140006a70
cmp rbx, rbp
jle 0x1400069f1
test rbp, rbp
js 0x140006a40
lea rcx, [rsp + 0x30]
mov rdx, rbp
call fcn.14000b850
movdqa xmm0, xmmword [rsp + 0x30]
mov rax, rdi
movups xmmword [rdi], xmm0
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbx
call fcn.14000acb0
jmp 0x1400069f1
mov rcx, rsi
call fcn.140005870
jmp 0x1400069a1
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbp
call fcn.14000acb0
jmp 0x1400069f1
sub rdx, 1
xor ecx, ecx
call fcn.14000d220
jmp 0x1400069f1
mov rdx, rsi
mov rcx, r14
call fcn.1400066a0
cmp byte [r12], 0
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
jne 0x140006ad6
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.14000b550
test rbx, rbx
jle 0x140006ad6
mov rcx, rbx
add rcx, 1
jo 0x140006af6
test rcx, rcx
js 0x140006b00
mov rdx, qword [rsp + 0x38]
mov r8, rcx
mov rax, qword [rsp + 0x30]
lea rax, [rdx + rax + 8]
lea rdx, [rsi + 8]
mov rcx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add rbx, qword [rsp + 0x30]
jo 0x140006af6
mov qword [rsp + 0x30], rbx
test rsi, rsi
je 0x1400069f1
test byte [rsi + 7], 0x40
jne 0x1400069f1
mov rcx, rsi
call fcn.140009d50
jmp 0x1400069f1
call fcn.14000a670
jmp 0x140006ad6
movabs r8, 0x7fffffffffffffff
xor edx, edx
call fcn.14000acb0
jmp 0x140006ad6

Function at 0x140007000
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rsi, rcx
mov rbx, rdx
je 0x14000701f
mov rcx, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140052538
Function at 0x14000e350
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rdi, qword [0x140068110]
test rdi, rdi
mov rbx, rcx
je 0x14000e458
mov qword [rsp + 0x40], 0
test rcx, rcx
mov qword [rsp + 0x48], 0
je 0x14000e420
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
test rax, rax
mov rsi, rax
je 0x14000e420
lea r12, [rax + 1]
mov rdi, rax
add rdi, 9
js 0x14000e52f
cmp rdi, r12
jb 0x14000e52f
test rdi, rdi
js 0x14000e4f0
lea rcx, [0x140059440]
call fcn.140049cd0
mov rdx, rdi
mov rcx, rax
call fcn.140008220
mov r8, r12
mov rdx, rbx
mov qword [rax], rsi
lea rcx, [rax + 8]
mov rbp, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rbp
call qword [0x140068110]
test byte [rbp + 7], 0x40
jne 0x14000e439
lea rcx, [0x140059440]
call fcn.140049cd0
mov rdx, rbp
mov rcx, rax
call fcn.1400090b0
jmp 0x14000e439
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], 0
call rdi
lea rcx, [0x140059420]
call fcn.140049cd0
cmp byte [rax], 0
jne 0x14000e498
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov qword [rsp + 0x28], rdx
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x28]
mov rcx, rbx
mov edx, 1
mov rsi, rax
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rsi
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.140052538
mov byte [rax], 0
lea rcx, [0x140059320]
call fcn.140049cd0
mov rbx, qword [rax]
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x14000e4c1
mov rdx, qword [rsi - 0x10]
add rdx, 0x10
jo 0x14000e539
mov qword [rsi - 0x10], rdx
mov qword [rax], rsi
mov rax, qword [rbx - 0x10]
lea rdx, [rbx - 0x10]
cmp rax, 0xf
jbe 0x14000e510
sub rax, 0x10
jo 0x14000e54d
mov r8, qword [rbx]
xor ecx, ecx
mov qword [rbx - 0x10], rax
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14000cc50
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rdi
call fcn.14000acb0
jmp 0x14000e3e8
mov r8, qword [rbx]
mov ecx, 1
call fcn.14000cc50
mov rcx, rbx
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14000ac00
call fcn.14000a670
jmp 0x14000e3e8
mov qword [rsp + 0x28], rax
call fcn.14000a670
mov rax, qword [rsp + 0x28]
jmp 0x14000e4c1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14000a670
Function at 0x140010e90
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r13, [0x1400680e0]
mov rsi, rdx
mov rbx, rcx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rsi, rsi
jle 0x140010f1f
mov rdi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea r12, [rsp + 0x20]
xor r14d, r14d
lea rbp, [0x140059420]
jmp 0x140010ee5
add r14, 1
add rbx, 0x10
cmp rsi, r14
je 0x140010f26
mov ecx, 1
call rdi
movdqu xmm0, xmmword [rbx]
xor r8d, r8d
mov rdx, r12
mov rcx, rax
movaps xmmword [rsp + 0x20], xmm0
call fcn.140010d40
mov rcx, rbp
call fcn.140049cd0
cmp byte [rax], 0
je 0x140010ed8
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rdi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 1
call rdi
mov r8d, 1
mov edx, 1
lea rcx, [0x14005a4e1]
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 1
call rdi
mov rcx, rax
call fcn.140052538
mov rcx, r13
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14001c130
Capabilities:
Hash data using murmur3

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, rdx
sar rdx, 0x3f
mov r12, rcx
shr rdx, 0x3e
mov r13, rdi
lea rax, [rdi + rdx]
and eax, 3
sub rax, rdx
sub r13, rax
cmp rdi, 3
jle 0x14001c2ba
mov ebx, dword [rcx]
mov rcx, qword [0x140060020]
call fcn.140049cd0
cmp byte [rax], 0
jne 0x14001c280
xor ebp, ebp
mov ecx, 4
jmp 0x14001c199
cmp rdi, rcx
jle 0x14001c290
mov ebx, dword [r12 + rcx]
add rcx, 4
imul eax, ebx, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, ebp
rol eax, 0xd
cmp r13, rcx
lea ebp, [rax + rax*4 - 0x19ab949c]
jg 0x14001c188
mov rdx, rdi
sar rdx, 0x3f
shr rdx, 0x3e
lea rax, [rdi + rdx]
and eax, 3
sub rax, rdx
test rax, rax
jle 0x14001c2c3
lea r9, [rax - 1]
mov r8, r9
add r8, rcx
js 0x14001c2ac
cmp rdi, r8
jle 0x14001c2ac
test r9, r9
movzx edx, byte [r12 + r8]
je 0x14001c23b
sub rax, 2
mov r8, rax
add r8, rcx
js 0x14001c2ac
cmp r8, rdi
jge 0x14001c2ac
movzx r8d, byte [r12 + r8]
shl edx, 8
or edx, r8d
test rax, rax
je 0x14001c23b
test rcx, rcx
js 0x14001c2a9
cmp rdi, rcx
jle 0x14001c2a9
movzx eax, byte [r12 + rcx]
shl edx, 8
or edx, eax
imul ebx, edx, 0xcc9e2d51
rol ebx, 0xf
mov rcx, qword [0x140060020]
call fcn.140049cd0
cmp byte [rax], 0
jne 0x14001c280
imul eax, ebx, 0x1b873593
xor ebp, edi
xor eax, ebp
mov edx, eax
shr edx, 0x10
xor edx, eax
imul edx, edx, 0x85ebca6b
mov eax, edx
shr eax, 0xd
xor eax, edx
imul eax, eax, 0xc2b2ae35
mov esi, eax
shr esi, 0x10
xor esi, eax
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, [rdi - 1]
call fcn.14000d220
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r8, rcx
lea rdx, [rdi - 1]
mov rcx, r8
call fcn.14000d220
jmp 0x14001c280
xor ecx, ecx
xor ebp, ebp
jmp 0x14001c1b9
xor ebx, ebx
jmp 0x14001c244
sub rsp, 0x28
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
test rdx, rdx
js 0x14001c2f8
lea rcx, [rax + 8]
test rax, rax
cmove rcx, rax
add rsp, 0x28
jmp 0x14001c130
lea rax, [rdx - 1]
mov r8, rdx
xor ecx, ecx
mov rdx, rax
call fcn.14000fd40
xor eax, eax
add rsp, 0x28
ret
Function at 0x14001c2d0
Capabilities:
Hash data using murmur3

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, rdx
sar rdx, 0x3f
mov r12, rcx
shr rdx, 0x3e
mov r13, rdi
lea rax, [rdi + rdx]
and eax, 3
sub rax, rdx
sub r13, rax
cmp rdi, 3
jle 0x14001c2ba
mov ebx, dword [rcx]
mov rcx, qword [0x140060020]
call fcn.140049cd0
cmp byte [rax], 0
jne 0x14001c280
xor ebp, ebp
mov ecx, 4
jmp 0x14001c199
cmp rdi, rcx
jle 0x14001c290
mov ebx, dword [r12 + rcx]
add rcx, 4
imul eax, ebx, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, ebp
rol eax, 0xd
cmp r13, rcx
lea ebp, [rax + rax*4 - 0x19ab949c]
jg 0x14001c188
mov rdx, rdi
sar rdx, 0x3f
shr rdx, 0x3e
lea rax, [rdi + rdx]
and eax, 3
sub rax, rdx
test rax, rax
jle 0x14001c2c3
lea r9, [rax - 1]
mov r8, r9
add r8, rcx
js 0x14001c2ac
cmp rdi, r8
jle 0x14001c2ac
test r9, r9
movzx edx, byte [r12 + r8]
je 0x14001c23b
sub rax, 2
mov r8, rax
add r8, rcx
js 0x14001c2ac
cmp r8, rdi
jge 0x14001c2ac
movzx r8d, byte [r12 + r8]
shl edx, 8
or edx, r8d
test rax, rax
je 0x14001c23b
test rcx, rcx
js 0x14001c2a9
cmp rdi, rcx
jle 0x14001c2a9
movzx eax, byte [r12 + rcx]
shl edx, 8
or edx, eax
imul ebx, edx, 0xcc9e2d51
rol ebx, 0xf
mov rcx, qword [0x140060020]
call fcn.140049cd0
cmp byte [rax], 0
jne 0x14001c280
imul eax, ebx, 0x1b873593
xor ebp, edi
xor eax, ebp
mov edx, eax
shr edx, 0x10
xor edx, eax
imul edx, edx, 0x85ebca6b
mov eax, edx
shr eax, 0xd
xor eax, edx
imul eax, eax, 0xc2b2ae35
mov esi, eax
shr esi, 0x10
xor esi, eax
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, [rdi - 1]
call fcn.14000d220
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r8, rcx
lea rdx, [rdi - 1]
mov rcx, r8
call fcn.14000d220
jmp 0x14001c280
xor ecx, ecx
xor ebp, ebp
jmp 0x14001c1b9
xor ebx, ebx
jmp 0x14001c244
sub rsp, 0x28
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
test rdx, rdx
js 0x14001c2f8
lea rcx, [rax + 8]
test rax, rax
cmove rcx, rax
add rsp, 0x28
jmp 0x14001c130
lea rax, [rdx - 1]
mov r8, rdx
xor ecx, ecx
mov rdx, rax
call fcn.14000fd40
xor eax, eax
add rsp, 0x28
ret
Function at 0x14001c630
Capabilities:
Link many functions at runtime

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r13, qword [rdx]
mov rdi, qword [rdx + 8]
mov r12, qword [r8]
mov rbp, qword [r8 + 8]
test rcx, rcx
mov rsi, rcx
je 0x14001c730
lea rax, [0x14005b240]
test r13, r13
lea rdx, [rdi + 8]
cmove rdx, rax
call sub.KERNEL32.dll_GetProcAddress
mov r14, qword [0x140060020]
mov rbx, rax
mov rcx, r14
call fcn.140049cd0
cmp byte [rax], 0
mov r15, rax
jne 0x14001c690
test rbx, rbx
je 0x14001c6a8
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test r12, r12
jle 0x14001c6c7
lea rdx, [rbp + 8]
mov rcx, rsi
call sub.KERNEL32.dll_GetProcAddress
cmp byte [r15], 0
mov rbx, rax
jne 0x14001c690
test rax, rax
jne 0x14001c690
mov rsi, qword [0x140068498]
test rsi, rsi
je 0x14001c743
mov rcx, r14
call fcn.140049cd0
cmp byte [rax], 0
mov r14, rax
jne 0x14001c770
lea rax, [0x14005b240]
test r13, r13
mov rcx, rsi
lea rdx, [rdi + 8]
cmove rdx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
mov rbx, rax
jne 0x14001c690
cmp byte [r14], 0
jne 0x14001c690
test r12, r12
jle 0x14001c770
lea rdx, [rbp + 8]
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.KERNEL32.dll_GetProcAddress
mov rsi, qword [0x140068498]
mov r14, qword [0x140060020]
test rsi, rsi
jne 0x14001c6d3
call fcn.1400190c0
mov rcx, r14
mov rsi, rax
call fcn.140049cd0
cmp byte [rax], 0
mov r14, rax
jne 0x14001c770
mov qword [0x140068498], rsi
cmp byte [rax], 0
jne 0x14001c770
test rsi, rsi
jne 0x14001c6e7
xor ebx, ebx
jmp 0x14001c690
Function at 0x140048e40
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.1400521f0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140048eb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140068644]
test esi, esi
mov rbx, rcx
jle 0x140048fe0
mov rax, qword [0x140068648]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140048efb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140048f85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140048ee0
mov rcx, rbx
call fcn.140049920
test rax, rax
mov rdi, rax
je 0x140049002
mov rax, qword [0x140068648]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140049a60
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140068648]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140048fe7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140048f7e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140048f90
add dword [0x140068644], 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 [0x140068648]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140048f7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140048e40
nop dword [rax]
xor esi, esi
jmp 0x140048f08
mov rax, qword [0x140068648]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.140048e40
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.140048e40
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140049570
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400686a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140068680]
test rbx, rbx
je 0x1400495cc
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 0x1400495c3
test rsi, rsi
je 0x1400495c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400495a8
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 0x1400497e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140049818
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140049820
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400497f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140049818
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140049820
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140049800
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140049818
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140049820
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

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

Disassembly:
mov rdx, qword [0x140060040]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140049940
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140049948
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140049940
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14004999d
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]
cmp rcx, r8
mov rdx, r8
jb 0x140049994
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140049940
add rax, 0x28
cmp rax, r9
jne 0x140049980
xor eax, eax
ret

Function at 0x1400499a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140060040]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400499bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400499c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400499bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140049a60
Capabilities:
Parse pe header

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

Function at 0x1400530b0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
mov qword [rsp + 0x20], rax
movabs rax, 0x7520676e696e6165
mov qword [rsp + 0x28], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x30], rax
movabs rax, 0x20726f6620737965
mov qword [rsp + 0x38], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x87], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x1400531ba
lea rcx, [rsp + 0x20]
mov eax, 0x28
jmp 0x140053192
add rax, 1
cmp rax, 0x6b
je 0x1400531af
cmp byte [rcx + rax], 0
jne 0x140053188
cmp eax, 0x6a
movsxd rdx, eax
je 0x1400531af
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
lea rcx, [rsp + 0x20]
mov eax, 0x28
mov edx, 0x27
jmp 0x1400531a3

Function at 0x140053530
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140069290], 1
je 0x1400535a8
lea rdi, [0x140069290]
mov rcx, rdi
call fcn.140052e30
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.1400527b0
mov esi, dword [0x140069290]
test esi, esi
jne 0x1400535b8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x140059ae8], eax
je 0x140057ff6
mov dword [0x140069290], 1
mov rcx, rbp
call fcn.140052aa0
test rbx, rbx
je 0x1400535a8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400531d0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140053588
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.140052210
jmp 0x140053588
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop