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 [0x140c339a4]
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 [0x140c339a4]
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 [0x140c339a4]
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 [0x140c339a4]
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 [0x140c339a4]
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 [0x140c339a4]
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 [0x140c339a4]
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 [0x140c339a4]
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 [0x140c339a4]
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
popfq
sub ecx, dword gs:[rsi + rdi*8]
lodsb al, byte [rsi]
jno 0x140731e40
invalid
add eax, 0xd901581a
sbb ch, byte [rdi]
add ah, dh
cmp ecx, edx
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
xchg ecx, eax
or eax, 0xca898419
invalid
Function at 0x140260a80
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x140c30138], eax
je 0x140260a9c
mov eax, 0x10dd
jmp 0x140260bc3
mov rax, qword [0x140c30150]
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 [0x140c30150], 0
call fcn.140260160
mov rax, qword [0x140c30148]
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 [0x140c30148], 0
mov dword [0x140c30138], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x18001c340
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18001c370
xor eax, eax
jmp 0x18001c433
mov rbp, rbx
cmp word [rax], si
je 0x18001c395
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001c37c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001c378
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18001c260
movsxd r14, eax
test eax, eax
jne 0x18001c3d3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001c369
mov rcx, r14
call fcn.180018020
mov rdi, rax
test rax, rax
jne 0x18001c3ec
xor ecx, ecx
call fcn.180017fe4
jmp 0x18001c3c8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18001c260
test eax, eax
jne 0x18001c41d
mov rcx, rdi
call fcn.180017fe4
jmp 0x18001c427
xor ecx, ecx
call fcn.180017fe4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x18001eb2c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18001eb42
mov al, 1
jmp 0x18001eba2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18001eb53
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18001eba0
mov ecx, dword [rcx + 0x18]
nop
call fcn.18001f3c4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18001eba0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18001eba0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18001eba0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18001eba2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800231d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800231f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800231f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001730
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18006c3c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x18000176d
xor al, al
jmp 0x1800017bc
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x18000177e
xor al, al
jmp 0x1800017bc
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x1800017a5
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x1800017a5
mov al, 1
jmp 0x1800017bc
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800549c0
add rsp, 0x60
pop rbx
ret
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800549c0
add rsp, 0x60
pop rbx
ret

Function at 0x180001a30
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x18006c3c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x180001a61
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x180001b1a
nop word [rax + rax]
lea rax, [rbx - 0x70000000]
cmp rax, 0x10000000
ja 0x180001a8b
add rbx, 0x8000000
jmp 0x180001b11
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180001b1a
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x180001af6
cmp rcx, 0x10000
jb 0x180001af6
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x180001b1c
add rbx, 0x10000
jmp 0x180001b11
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x180001b11
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x180001a70
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800549c0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret