joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010b4a0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x14048a080]
xor rax, rsp
mov qword [rbp + 0x128], rax
mov rdi, rdx
xor esi, esi
mov rax, qword [rcx + 0x28]
mov rbx, qword [rax + 0x40]
mov rax, qword [rcx + 0x10]
mov rdx, qword [rax + 0x18]
call rdx
lea r8, [rsp + 0x28]
mov rdx, rax
lea rcx, [rsp + 0x40]
call rbx
nop
mov rcx, qword [rsp + 0x50]
mov qword [rbp + 0x108], rcx
mov rax, qword [rsp + 0x60]
mov qword [rbp + 0x118], rax
lea rax, fcn.140009110
mov qword [rsp + 0x50], rax
lea rax, [0x1404048f8]
mov qword [rsp + 0x60], rax
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0xf8]
call rax
mov qword [rsp + 0x58], rsi
mov rax, qword [rsp + 0x68]
mov qword [rbp + 0x120], rax
lea rax, [0x140403eb0]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax]
lea rax, [fcn.140009110]
cmp rdx, rax
je 0x14010b570
lea rcx, [rsp + 0x40]
call rdx
nop
mov rcx, qword [rbp + 0x118]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x14010b5a4
lea rcx, [0x14010c6a0]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rdi
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0xf8]
call rax
jmp 0x14010b64b
mov r14, qword [rcx + 0x10]
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.14010c320
mov rdi, rax
mov qword [rsp + 0x30], rax
mov ecx, dword [0x1410b63a4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14010b5d2
mov rsi, qword [rax + 8]
mov r8d, 0x198
mov rdx, rsi
call fcn.140100af0
mov rbx, rax
lea rcx, [rax + 8]
mov rdx, rdi
call fcn.14010c320
lea rax, [0x14010c840]
mov qword [rbx], rax
mov qword [rsp + 0x20], rbx
mov rcx, qword [rdi + 0x108]
test rcx, rcx
je 0x14010b61f
mov eax, 0xffffffff
lock xadd dword [rcx + 0xc], eax
cmp eax, 1
jne 0x14010b61f
mov rax, qword [rcx]
call qword [rax + select]
lea rcx, [rdi + 0x30]
call fcn.1400f0e80
nop
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0xf8]
call r14
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14010b64b
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov rax, qword [rbp + 0x108]
mov rdx, qword [rax]
lea rcx, [rbp + 0xf8]
call rdx
nop
mov rcx, qword [rbp + 0x128]
xor rcx, rsp
call fcn.14028bc60
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14010b960
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x14010b9ab
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x14010b995
mov eax, 0xffffffff
lock xadd dword [rcx + 0xc], eax
cmp eax, 1
jne 0x14010b995
mov rax, qword [rcx]
call qword [rax + select]
nop
mov rax, qword [rbx + 0x18]
mov rdx, qword [rax]
lea rcx, [rbx + 8]
call rdx
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14010b9f8
mov ecx, dword [0x1410b63a4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14010b9e7
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14010b9e7
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x14010ba03
inc ecx
inc rax
cmp rax, 6
jl 0x14010b9d5
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x68]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14010ba30
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x14010ba95
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x14010ba67
mov eax, 0xffffffff
lock xadd dword [rcx + 0xc], eax
cmp eax, 1
jne 0x14010ba67
mov rax, qword [rcx]
call qword [rax + select]
cmp byte [rbx + 0x58], 0
je 0x14010ba7f
lea rcx, [rbx + 0x60]
mov rax, qword [rcx + 0x10]
mov rdx, qword [rax]
call rdx
nop
mov byte [rbx + 0x58], 0
mov rax, qword [rbx + 0x20]
mov rdx, qword [rax]
lea rcx, [rbx + 0x10]
call rdx
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14010bae3
mov ecx, dword [0x1410b63a4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14010bad2
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14010bad2
mov ecx, 4
mov eax, ecx
nop
cmp qword [rdx + rax*8], 0
je 0x14010baee
inc ecx
inc rax
cmp rax, 6
jl 0x14010bac0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0xf0]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14010c3a0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xb0
mov rbp, rcx
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x14010c3e3
lea rcx, [0x14010c830]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 0x20]
mov rcx, rbp
call rax
jmp 0x14010c4ed
mov r15, qword [rcx + 0x10]
lea rcx, [rsp + 0x30]
call fcn.14010c520
mov rsi, rax
mov qword [rsp + 0xf0], rax
mov ecx, dword [0x1410b63a4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
test rax, rax
je 0x14010c415
mov rdx, qword [rax + 8]
jmp 0x14010c418
mov rdx, rbx
mov r8d, 0x90
call fcn.140100af0
mov rdi, rax
mov ecx, dword [rsi]
mov dword [rax + 8], ecx
lea rcx, [rax + 0x10]
lea rdx, [rsi + 8]
call fcn.1400d3e20
mov rcx, qword [rsi + 0x38]
mov qword [rdi + 0x40], rcx
mov rax, qword [rsi + 0x40]
mov qword [rdi + 0x48], rax
mov qword [rsi + 0x40], rbx
mov qword [rsi + 0x38], rbx
mov rax, qword [rsi + 0x48]
mov qword [rsi + 0x48], rbx
mov qword [rdi + 0x50], rax
lea rcx, [rdi + 0x58]
lea rdx, [rsi + 0x50]
call fcn.1400d3e20
lea rax, [0x14010cdc0]
mov qword [rdi], rax
mov qword [rsp + 0xe0], rdi
mov rax, qword [rsi + 0x60]
mov rdx, qword [rax]
lea rcx, [rsi + 0x50]
call rdx
nop
mov rcx, qword [rsi + 0x48]
test rcx, rcx
je 0x14010c49c
mov edx, 0xb8
call fcn.14028bc80
mov rcx, qword [rsi + 0x40]
test rcx, rcx
je 0x14010c4bb
mov eax, 0xffffffff
lock xadd dword [rcx + 0xc], eax
cmp eax, 1
jne 0x14010c4bb
mov rax, qword [rcx]
call qword [rax + select]
nop
mov rax, qword [rsi + 0x18]
mov rdx, qword [rax]
lea rcx, [rsi + 8]
call rdx
nop
lea rdx, [rsp + 0xe0]
mov rcx, rbp
call r15
nop
mov rcx, qword [rsp + 0xe0]
test rcx, rcx
je 0x14010c4ed
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov rbx, qword [rsp + 0xe8]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x14010c590
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x10]
mov rdi, rcx
test rax, rax
je 0x14010c5db
lea rbx, [rax + 0x38]
mov rcx, qword [rbx + 0xd8]
test rcx, rcx
je 0x14010c5cb
mov eax, 0xffffffff
lock xadd dword [rcx + 0xc], eax
cmp eax, 1
jne 0x14010c5cb
mov rax, qword [rcx]
call qword [rax + select]
mov rcx, rbx
call fcn.1400f0e80
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14010c628
mov ecx, dword [0x1410b63a4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14010c617
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14010c617
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x14010c633
inc ecx
inc rax
cmp rax, 6
jl 0x14010c605
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x198]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret
Function at 0x14010c6f0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14010c717
add rcx, 8
call fcn.14010bf50
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14010c764
mov ecx, dword [0x1410b63a4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14010c753
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14010c753
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x14010c76f
inc ecx
inc rax
cmp rax, 6
jl 0x14010c741
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x90]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret

Function at 0x14010d200
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rbx, rdx
mov rdi, rcx
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x14010d248
lea rcx, [0x14010d6b0]
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x58], rdx
lea rdx, [rbp - 0x60]
mov rcx, rdi
call rax
jmp 0x14010d355
mov rsi, qword [rcx + 0x10]
mov eax, dword [rdx]
mov dword [rbp - 0x50], eax
add rdx, 8
lea rcx, [rbp - 0x48]
call fcn.1400d3e20
mov rax, qword [rbx + 0x38]
mov qword [rbp - 0x18], rax
mov rax, qword [rbx + 0x40]
mov qword [rbp - 0x10], rax
xor r14d, r14d
mov qword [rbx + 0x40], r14
mov qword [rbx + 0x38], r14
mov rax, qword [rbx + 0x48]
mov qword [rbx + 0x48], r14
mov qword [rbp - 8], rax
lea rax, [rbp - 0x50]
mov qword [rbp + 0x30], rax
mov ecx, dword [0x1410b63a4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14010d2a4
mov rdx, qword [rax + 8]
jmp 0x14010d2a7
mov rdx, r14
mov r8d, 0x60
call fcn.140100af0
mov rbx, rax
mov ecx, dword [rbp - 0x50]
mov dword [rax + 8], ecx
lea rcx, [rax + 0x10]
lea rdx, [rbp - 0x48]
call fcn.1400d3e20
mov rcx, qword [rbp - 0x18]
mov qword [rbx + 0x40], rcx
mov rcx, qword [rbp - 0x10]
mov qword [rbx + 0x48], rcx
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], r14
mov rax, qword [rbp - 8]
mov qword [rbp - 8], r14
mov qword [rbx + 0x50], rax
lea rax, [0x14010d6f0]
mov qword [rbx], rax
mov qword [rbp + 0x20], rbx
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x14010d30d
mov edx, 0xb8
call fcn.14028bc80
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14010d32c
mov eax, 0xffffffff
lock xadd dword [rcx + 0xc], eax
cmp eax, 1
jne 0x14010d32c
mov rax, qword [rcx]
call qword [rax + select]
nop
mov rax, qword [rbp - 0x38]
mov rdx, qword [rax]
lea rcx, [rbp - 0x48]
call rdx
nop
lea rdx, [rbp + 0x20]
mov rcx, rdi
call rsi
nop
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x14010d355
mov rax, qword [rcx]
xor edx, edx
call rax
nop
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14010d5d0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x14010d62d
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14010d5f9
mov edx, 0xb8
call fcn.14028bc80
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x14010d617
mov eax, 0xffffffff
lock xadd dword [rcx + 0xc], eax
cmp eax, 1
jne 0x14010d617
mov rax, qword [rcx]
call qword [rax + select]
lea rcx, [rbx + 0x10]
mov rax, qword [rcx + 0x10]
mov rdx, qword [rax]
call rdx
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14010d67a
mov ecx, dword [0x1410b63a4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14010d669
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14010d669
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x14010d685
inc ecx
inc rax
cmp rax, 6
jl 0x14010d657
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x60]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14010d870
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x14010d8d0
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x14010d89c
mov edx, 0xb8
call fcn.14028bc80
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x14010d8ba
mov eax, 0xffffffff
lock xadd dword [rcx + 0xc], eax
cmp eax, 1
jne 0x14010d8ba
mov rax, qword [rcx]
call qword [rax + select]
lea rcx, [rbx + 0x40]
mov rax, qword [rcx + 0x10]
mov rdx, qword [rax]
call rdx
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14010d923
mov ecx, dword [0x1410b63a4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14010d912
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14010d912
mov ecx, 4
mov eax, ecx
nop word [rax + rax]
cmp qword [rdx + rax*8], 0
je 0x14010d92e
inc ecx
inc rax
cmp rax, 6
jl 0x14010d900
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0xb0]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140227ae0
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 case.default.0x140227b01
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 0x140227b2e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140227b30
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140227b89
test ecx, ecx
jle 0x140227b69
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 0x140227b89
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140227b89
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
cli
loop 0x140731dfe
retf
bnd jg 0x140731dea
js 0x140731e07
xor al, bl
scasd eax, dword [rdi]
or byte [rsi], dh
imul bp, word [rbp - 0x244a7f2f], 0x6372
mov bl, 0xe7
xor byte [rbp - 0x4c9c8d25], 0xe7
and byte [rax + 0x3d], dl
ret 0xc6e7
cmp eax, 0x2ec6e7c2
out 0xdd, eax
imul ebp, esp, 0x35
sub byte [rbx], ch
invalid
Function at 0x140227bb0
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 0x140227be1
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 case.default.0x140227bf8
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 0x140227c1b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140227c1d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140227c59
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 0x140227cee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140227c94
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 0x140227cce
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 0x140227cee
cmp rbx, rax
ja 0x140227ca0
test rbx, rbx
je 0x140227cee
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
mov bh, 2
invalid
Function at 0x140260a80
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1410b2b38], eax
je 0x140260a9c
mov eax, 0x10dd
jmp 0x140260bc3
mov rax, qword [0x1410b2b50]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140260b47
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x140260b12
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x140260b12
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.14025f700
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.14028bc80
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x140260aa8
mov qword [0x1410b2b50], 0
call fcn.140260160
mov rax, qword [0x1410b2b48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140260bac
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, select
mov rcx, qword [rsp + 0x48]
call fcn.14028bc80
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x140260b63
mov qword [0x1410b2b48], 0
mov dword [0x1410b2b38], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004460]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004470]
mov dword [rax], 1
mov rax, qword [0x140004480]
mov dword [rax], 1
mov rax, qword [0x140004410]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004450]
mov dword [0x14000800c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140004520]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140004500]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400043c0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001920
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 dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001990
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140008104]
mov rbx, rcx
test esi, esi
jle 0x140001ac0
mov rax, qword [0x140008108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400019db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001a65
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400019c0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001ae2
mov rax, qword [0x140008108]
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 [0x140008108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ac7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001a5e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a70
add dword [0x140008104], 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 [0x140008108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a5e
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 0x1400019e8
mov rax, qword [0x140008108]
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 0x140002050
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140008140]
test rbx, rbx
je 0x1400020ac
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 0x1400020a3
test rsi, rsi
je 0x1400020a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002088
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 0x1400022c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400022d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400022e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret