joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001160
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov rsi, qword [0x140084040]
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
cmp rdi, rax
sete al
or al, bl
jne 0x1400011b9
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax]
mov ecx, 0x3e8
call r14
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x1400011b9
cmp rdi, rax
jne 0x1400011a0
mov rdi, qword [0x140084048]
mov eax, dword [rdi]
cmp eax, 1
je 0x140001334
cmp dword [rdi], 0
je 0x1400011d9
mov byte [0x1400a85e0], 1
jmp 0x1400011f2
mov dword [rdi], 1
mov rcx, qword [0x140084060]
mov rdx, qword [0x140084068]
call sym._initterm
mov eax, dword [rdi]
cmp eax, 1
jne 0x140001212
mov rcx, qword [0x140084050]
mov rdx, qword [0x140084058]
call sym._initterm
mov dword [rdi], 2
test bl, bl
je 0x14000121b
xor eax, eax
xchg qword [rsi], rax
mov rax, qword [0x140084010]
mov rax, qword [rax]
test rax, rax
je 0x14000123a
xor ecx, ecx
mov edx, 2
xor r8d, r8d
call qword [0x140092eb0]
call dbg._pei386_runtime_relocator
lea rcx, [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [0x140084038]
mov qword [rcx], rax
lea rcx, [dbg.__mingw_invalidParameterHandler]
call sym._set_invalid_parameter_handler
call dbg._fpreset
movsxd r14, dword [0x1400a85cc]
lea rcx, [r14*8 + 8]
call sym.malloc
mov rsi, rax
test r14, r14
jle 0x1400012c4
mov r15, qword [0x1400a85d0]
xor r12d, r12d
nop dword [rax]
mov rdi, qword [r15 + r12*8]
mov rcx, rdi
call sym.strlen
lea rbx, [rax + 1]
mov rcx, rbx
call sym.malloc
mov qword [rsi + r12*8], rax
mov rcx, rax
mov rdx, rdi
mov r8, rbx
call sym.memcpy
inc r12
cmp r14, r12
jne 0x140001290
jmp 0x1400012c7
xor r14d, r14d
mov qword [rsi + r14*8], 0
mov qword [0x1400a85d0], rsi
call dbg.__main
mov rsi, qword [0x1400a85d8]
call dbg.__p___initenv
mov qword [rax], rsi
mov ecx, dword [0x1400a85cc]
mov rdx, qword [0x1400a85d0]
mov r8, qword [0x1400a85d8]
call sym.main
mov dword [0x1400a85e4], eax
cmp dword [0x1400a85c4], 0
je 0x14000133e
cmp byte [0x1400a85e0], 0
jne 0x140001326
call sym._cexit
mov eax, dword [0x1400a85e4]
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ecx, 0x1f
call dbg._amsg_exit
mov ecx, eax
call sym.exit
int3

Function at 0x140001390
Capabilities:
Encode data using xor

Disassembly:
push rsi
test edx, edx
jle 0x1400013f1
mov r11d, edx
cmp edx, 1
jne 0x1400013a2
xor r10d, r10d
jmp 0x1400013db
mov esi, r11d
and esi, 0x7ffffffe
xor r10d, r10d
nop
mov eax, r10d
cdq
idiv r9d
movzx eax, byte [r8 + rdx]
xor byte [rcx + r10], al
lea eax, [r10 + 1]
cdq
idiv r9d
movzx eax, byte [r8 + rdx]
xor byte [rcx + r10 + 1], al
add r10, 2
cmp r10, rsi
jne 0x1400013b0
test r11b, 1
je 0x1400013f1
mov eax, r10d
cdq
idiv r9d
movzx eax, byte [r8 + rdx]
xor byte [rcx + r10], al
pop rsi
ret
Function at 0x140001690
Capabilities:
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
movsxd rax, dword [rcx + 0x3c]
mov eax, dword [rcx + rax + 0x88]
mov r8d, dword [rcx + rax + 0x18]
test r8, r8
je 0x140001723
mov r9d, dword [rcx + rax + 0x1c]
add r9, rcx
mov r10d, dword [rcx + rax + 0x20]
add r10, rcx
mov r11d, dword [rcx + rax + 0x24]
add r11, rcx
lea rsi, [rcx + 1]
xor eax, eax
xor edi, edi
nop dword [rax + rax]
mov ebx, dword [r10 + rdi*4]
movzx r14d, byte [rcx + rbx]
test r14b, r14b
je 0x140001710
add rbx, rsi
mov ebp, 0x811c9dc5
nop word cs:[rax + rax]
movsx r14d, r14b
xor r14d, ebp
imul ebp, r14d, 0x1000193
movzx r14d, byte [rbx]
inc rbx
test r14b, r14b
jne 0x1400016f0
cmp ebp, edx
jne 0x140001719
jmp 0x140001727
mov ebp, 0x811c9dc5
cmp ebp, edx
je 0x140001727
inc rdi
cmp rdi, r8
jne 0x1400016d0
jmp 0x140001736
xor eax, eax
jmp 0x140001736
movzx eax, word [r11 + rdi*2]
mov eax, dword [r9 + rax*4]
add rcx, rax
mov rax, rcx
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140002660
Capabilities:
Encode data using xor

Disassembly:
cmp rdx, r8
je 0x140002688
movabs rcx, 0xf000000000000000
mov r9, r8
sub r9, rdx
dec r8
cmp r8, rdx
jne 0x14000268b
xor r8d, r8d
test r9b, 1
jne 0x1400026ee
jmp 0x140002705
xor eax, eax
ret
mov r8, r9
and r8, 0xfffffffffffffffe
xor eax, eax
nop word cs:[rax + rax]
shl rax, 4
movsx r10, byte [rdx]
add r10, rax
mov rax, r10
shr rax, 0x38
and eax, 0xfffffff0
xor rax, r10
shl rax, 4
movsx r10, byte [rdx + 1]
add r10, rax
mov r11, r10
and r11, rcx
mov rax, r11
shr rax, 0x38
or rax, r11
xor rax, r10
add rdx, 2
add r8, 0xfffffffffffffffe
jne 0x1400026a0
mov r8, rax
shl r8, 4
test r9b, 1
je 0x140002705
movsx rax, byte [rdx]
add r8, rax
and rcx, r8
mov rax, rcx
shr rax, 0x38
or rax, rcx
xor rax, r8
ret

Function at 0x140002860
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x1400028a7
movabs rcx, 0xf000000000000000
nop word cs:[rax + rax]
shl rax, 4
movzx r9d, word [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
add rdx, 2
cmp rdx, r8
jne 0x140002880
ret
Function at 0x14004af60
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
cmp qword [rcx + 0x78], 0
je 0x14004b178
mov rsi, rcx
test byte [rcx + 0x9c], 0x10
jne 0x14004afaf
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
mov qword [rsi + 0x20], 0
mov rax, qword [rsi + 0x60]
cmp rax, 9
jb 0x14004affa
cmp byte [rsi + 0xa2], 1
jne 0x14004b00e
mov r12, qword [rsi + 0x40]
jmp 0x14004b016
mov r12, qword [rsi + 0x28]
mov r15, qword [rsi + 0x38]
mov r9, qword [rsi + 0x30]
cmp edx, 0xffffffff
je 0x14004b03c
test r9, r9
jne 0x14004afdb
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x43]
mov qword [rsi + 0x30], r9
mov qword [rsi + 0x28], r9
mov qword [rsi + 0x38], rax
mov byte [r9], dl
mov r8, qword [rsi + 0x28]
mov r9, qword [rsi + 0x30]
inc r9
mov qword [rsi + 0x30], r9
mov rdi, r9
sub rdi, r8
jne 0x14004b047
jmp 0x14004b089
movups xmmword [rsi + 0x28], xmm0
mov qword [rsi + 0x38], 0
xor r15d, r15d
xor r12d, r12d
jmp 0x14004b029
mov r12, qword [rsi + 0x68]
mov rax, qword [rsi + 0x70]
lea r15, [r12 + rax]
dec r15
mov qword [rsi + 0x30], r12
mov qword [rsi + 0x28], r12
mov qword [rsi + 0x38], r15
mov dword [rsi + 0x9c], 0x10
mov r9, qword [rsi + 0x30]
cmp edx, 0xffffffff
jne 0x14004afc0
mov r8, r12
mov rdi, r9
sub rdi, r8
je 0x14004b089
cmp byte [rsi + 0xa2], 1
mov dword [rsp + 0x44], edx
jne 0x14004b096
mov r9, qword [rsi + 0x78]
mov edx, 1
mov rcx, r8
mov r8, rdi
call sym.fwrite
mov rcx, rax
mov eax, 0xffffffff
cmp rcx, rdi
jne 0x14004b17d
mov qword [rsi + 0x30], r12
mov qword [rsi + 0x28], r12
mov qword [rsi + 0x38], r15
mov edx, dword [rsp + 0x44]
xor eax, eax
cmp edx, 0xffffffff
cmovne eax, edx
jmp 0x14004b17d
mov rax, qword [rsi + 0x40]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x14004b152
lea rdi, [rsi + 0x88]
lea r13, [rsp + 0x50]
lea rbp, [rsp + 0x48]
mov rdx, qword [rsi + 0x40]
mov r10, qword [rsi + 0x60]
add r10, rdx
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r10
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rbp
mov rdx, rdi
call qword [0x140092eb0]
mov rcx, qword [rsi + 0x28]
cmp qword [rsp + 0x48], rcx
je 0x14004b178
mov ebx, eax
cmp eax, 3
je 0x14004b157
cmp ebx, 1
ja 0x14004b178
mov r14, qword [rsp + 0x50]
mov rcx, qword [rsi + 0x40]
mov r9, qword [rsi + 0x78]
sub r14, rcx
mov edx, 1
mov r8, r14
call sym.fwrite
cmp rax, r14
jne 0x14004b178
cmp ebx, 1
jne 0x14004b079
mov r8, qword [rsp + 0x48]
mov r9, qword [rsi + 0x30]
mov qword [rsi + 0x28], r8
mov qword [rsi + 0x38], r9
mov rcx, qword [rsi + 0x80]
test rcx, rcx
jne 0x14004b0c0
call method.std::__1.__throw_bad_cast_abi:ne190103___
mov rdi, qword [rsi + 0x30]
mov r9, qword [rsi + 0x78]
sub rdi, rcx
mov edx, 1
mov r8, rdi
call sym.fwrite
cmp rax, rdi
je 0x14004b079
mov eax, 0xffffffff
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14004b480
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
xor eax, eax
cmp qword [rcx + 0x78], 0
je 0x14004b5d6
mov rsi, rcx
mov rcx, qword [rcx + 0x80]
test rcx, rcx
je 0x14004b65f
mov edx, dword [rsi + 0x9c]
test dl, 0x10
jne 0x14004b4e5
test dl, 8
je 0x14004b5d6
mov rax, qword [rsi + 0x90]
mov qword [rsp + 0x28], rax
cmp byte [rsi + 0xa2], 1
jne 0x14004b58b
mov rdi, qword [rsi + 0x20]
sub rdi, qword [rsi + 0x18]
jmp 0x14004b5b8
mov rax, qword [rsi + 0x30]
cmp rax, qword [rsi + 0x28]
je 0x14004b514
mov rax, qword [rsi]
mov rax, qword [rax + 0x68]
mov rcx, rsi
mov edx, 0xffffffff
call qword [0x140092eb0]
mov ecx, eax
mov eax, 0xffffffff
cmp ecx, 0xffffffff
je 0x14004b5d6
lea rdi, [rsi + 0x88]
lea r15, [rsp + 0x28]
mov r8, qword [rsi + 0x40]
mov rcx, qword [rsi + 0x80]
mov r9, qword [rsi + 0x60]
add r9, r8
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x20], r15
mov rdx, rdi
call qword [0x140092eb0]
mov ebx, eax
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsi + 0x40]
mov r9, qword [rsi + 0x78]
sub r14, rcx
mov edx, 1
mov r8, r14
call sym.fwrite
cmp rax, r14
jne 0x14004b5d1
cmp ebx, 1
je 0x14004b520
cmp ebx, 2
je 0x14004b5d1
mov rcx, qword [rsi + 0x78]
call sym.fflush
mov ecx, eax
mov eax, 0
test ecx, ecx
jne 0x14004b5d1
jmp 0x14004b5d6
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
call qword [0x140092eb0]
mov r9, qword [rsi + 0x48]
mov rdi, qword [rsi + 0x50]
sub rdi, r9
test eax, eax
jle 0x14004b61b
mov rcx, qword [rsi + 0x20]
sub rcx, qword [rsi + 0x18]
mov eax, eax
imul rcx, rax
add rdi, rcx
xor ebx, ebx
mov rcx, qword [rsi + 0x78]
neg edi
mov edx, edi
mov r8d, 1
call sym.fseek
test eax, eax
je 0x14004b5e2
mov eax, 0xffffffff
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
test bl, bl
je 0x14004b5f2
mov rax, qword [rsp + 0x28]
mov qword [rsi + 0x88], rax
mov rax, qword [rsi + 0x40]
mov qword [rsi + 0x50], rax
mov qword [rsi + 0x48], rax
mov dword [rsi + 0x9c], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
mov qword [rsi + 0x20], 0
xor eax, eax
jmp 0x14004b5d6
mov rdx, qword [rsi + 0x18]
cmp rdx, qword [rsi + 0x20]
je 0x14004b5b8
mov r8, qword [rsi + 0x40]
mov rcx, qword [rsi + 0x80]
sub rdx, qword [rsi + 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x28]
call qword [0x140092eb0]
mov eax, eax
add rdi, qword [rsi + 0x48]
add rax, qword [rsi + 0x40]
sub rdi, rax
mov bl, 1
jmp 0x14004b5ba
call method.std::__1.__throw_bad_cast_abi:ne190103___
int3
Function at 0x14004d2c0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rcx
lea rdi, [rsp + 0x38]
lea r15, [rsp + 0x28]
lea rbx, [rsp + 0x30]
nop
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x20], r15
mov r8, rbx
mov r9, rdi
call qword [0x140092eb0]
mov ebp, eax
mov r14, qword [rsp + 0x28]
sub r14, rbx
mov r9, qword [rsi + 0x40]
mov edx, 1
mov rcx, rbx
mov r8, r14
call sym.fwrite
mov rcx, rax
mov eax, 0xffffffff
cmp rcx, r14
jne 0x14004d346
cmp ebp, 1
je 0x14004d2e0
cmp ebp, 2
je 0x14004d346
mov rcx, qword [rsi + 0x40]
call sym.fflush
mov ecx, eax
xor eax, eax
neg ecx
sbb eax, eax
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14004d360
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov rdi, rdx
mov r14, rcx
cmp byte [rcx + 0x58], 0
je 0x14004d395
mov r9, qword [r14 + 0x40]
mov edx, 1
mov rcx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp sym.fwrite
xor ebx, ebx
test rsi, rsi
jle 0x14004d3c4
nop dword [rax]
movzx edx, byte [rdi + rbx]
mov rax, qword [r14]
mov rax, qword [rax + 0x68]
mov rcx, r14
call qword [0x140092eb0]
cmp eax, 0xffffffff
je 0x14004d3c4
inc rbx
cmp rsi, rbx
jne 0x14004d3a0
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14004d3e0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
cmp edx, 0xffffffff
je 0x14004d434
mov esi, edx
mov rdi, rcx
mov byte [rsp + 0x4f], sil
cmp byte [rcx + 0x58], 1
jne 0x14004d43b
mov r9, qword [rdi + 0x40]
mov byte [rsp + 0x50], sil
lea rcx, [rsp + 0x50]
mov edx, 1
mov r8d, 1
call sym.fwrite
cmp rax, 1
mov eax, 0xffffffff
cmovne esi, eax
jmp 0x14004d4f3
xor esi, esi
jmp 0x14004d4f3
lea rbx, [rsp + 0x50]
mov qword [rsp + 0x60], rbx
lea r15, [rsp + 0x4f]
lea r12, [rsp + 0x58]
lea r13, [rsp + 0x60]
lea r14, [rsp + 0x58]
nop dword [rax]
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
mov r8, r15
lea r9, [rsp + 0x50]
call qword [0x140092eb0]
cmp qword [rsp + 0x58], r15
je 0x14004d4ee
mov ebp, eax
cmp eax, 3
je 0x14004d4d1
cmp ebp, 1
ja 0x14004d4ee
mov r15, qword [rsp + 0x60]
sub r15, rbx
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, rbx
mov r8, r15
call sym.fwrite
cmp rax, r15
jne 0x14004d4ee
mov r15, qword [rsp + 0x58]
cmp ebp, 1
je 0x14004d460
jmp 0x14004d4f3
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, r15
call sym.fwrite
cmp rax, 1
je 0x14004d4f3
mov esi, 0xffffffff
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14004d910
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rcx
lea rdi, [rsp + 0x38]
lea r15, [rsp + 0x28]
lea rbx, [rsp + 0x30]
nop
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x20], r15
mov r8, rbx
mov r9, rdi
call qword [0x140092eb0]
mov ebp, eax
mov r14, qword [rsp + 0x28]
sub r14, rbx
mov r9, qword [rsi + 0x40]
mov edx, 1
mov rcx, rbx
mov r8, r14
call sym.fwrite
mov rcx, rax
mov eax, 0xffffffff
cmp rcx, r14
jne 0x14004d996
cmp ebp, 1
je 0x14004d930
cmp ebp, 2
je 0x14004d996
mov rcx, qword [rsi + 0x40]
call sym.fflush
mov ecx, eax
xor eax, eax
neg ecx
sbb eax, eax
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14004da10
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
cmp dx, 0xffff
je 0x14004da54
mov esi, edx
mov rdi, rcx
mov word [rsp + 0x4e], dx
cmp byte [rcx + 0x58], 1
jne 0x14004da5b
mov rdx, qword [rdi + 0x40]
mov ecx, esi
call sym.fputwc
cmp ax, 0xffff
mov eax, 0xffff
cmovne eax, esi
mov esi, eax
jmp 0x14004db12
xor esi, esi
jmp 0x14004db12
lea rbx, [rsp + 0x60]
mov qword [rsp + 0x58], rbx
lea r15, [rsp + 0x4e]
lea r12, [rsp + 0x68]
lea r13, [rsp + 0x58]
lea r14, [rsp + 0x50]
nop dword [rax]
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
mov r8, r15
lea r9, [rsp + 0x50]
call qword [0x140092eb0]
cmp qword [rsp + 0x50], r15
je 0x14004db0e
mov ebp, eax
cmp eax, 3
je 0x14004daf1
cmp ebp, 1
ja 0x14004db0e
mov r15, qword [rsp + 0x58]
sub r15, rbx
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, rbx
mov r8, r15
call sym.fwrite
cmp rax, r15
jne 0x14004db0e
mov r15, qword [rsp + 0x50]
cmp ebp, 1
je 0x14004da80
jmp 0x14004db12
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, r15
call sym.fwrite
cmp rax, 1
je 0x14004db12
mov si, 0xffff
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400518d0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call sym.__acrt_iob_func
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sym.fwrite
mov ecx, 2
call sym.__acrt_iob_func
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call dbg.vfprintf
call sym.abort
int3
Function at 0x14005c980
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
mov rdi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call rdi
lea rcx, str.libcabi:
mov edx, 0xb
mov r8d, 1
mov r9, rax
call sym.fwrite
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov ecx, 2
call rdi
mov r8, qword [rsp + 0x20]
mov rcx, rax
mov rdx, rsi
call dbg.vfprintf
mov ecx, 2
call rdi
mov ecx, 0xa
mov rdx, rax
call sym.fputc
call sym.abort
int3

Function at 0x14005d150
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov edi, edx
mov rbx, rcx
call sym.logAPIs
test al, al
je 0x14005d1a3
mov r14, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call r14
mov qword [rsp + 0x20], rsi
lea rdx, str.libunwind:__Unwind_SetGR_context_p__reg_d__value0x_0llx__n
mov rcx, rax
mov r8, rbx
mov r9d, edi
call dbg.fprintf
mov ecx, 2
call r14
mov rcx, rax
call sym.fflush
mov rcx, rbx
mov edx, edi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp sym.__unw_set_reg

Function at 0x14005d230
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
call sym.logAPIs
test al, al
je 0x14005d278
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call rbx
lea rdx, str.libunwind:__Unwind_SetIP_context_p__value0x_0llx__n
mov rcx, rax
mov r8, rdi
mov r9, rsi
call dbg.fprintf
mov ecx, 2
call rbx
mov rcx, rax
call sym.fflush
mov rcx, rdi
mov edx, 0xffffffff
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp sym.__unw_set_reg

Function at 0x14005d5e0
Capabilities:
Parse pe header

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
xor edi, edi
cmp rax, 8
ja 0x14005d65f
mov rax, qword [0x140084008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14005d65f
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14005d65d
add rax, rcx
cmp word [rax + 0x18], 0x20b
jne 0x14005d65d
movzx ebx, word [rax + 6]
test ebx, ebx
je 0x14005d65d
movzx ecx, word [rax + 0x14]
lea rdi, [rcx + rax]
add rdi, 0x18
nop word cs:[rax + rax]
mov r8d, 8
mov rcx, rdi
mov rdx, rsi
call sym.strncmp
test eax, eax
je 0x14005d65f
add rdi, 0x28
dec ebx
jne 0x14005d640
xor edi, edi
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

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

Disassembly:
mov rax, qword [0x140084008]
cmp word [rax], 0x5a4d
jne 0x14005d6db
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14005d6db
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x14005d6db
movzx edx, word [rax + 6]
test edx, edx
je 0x14005d6db
sub rcx, qword [0x140084008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x14005d6c8
add rax, 0x28
dec edx
je 0x14005d6db
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x14005d6c0
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x14005d6c0
ret
xor eax, eax
ret
Function at 0x14005d6e0
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140084008]
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14005d70b
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x14005d70b
cmp word [rcx + rdx + 0x18], 0x20b
jne 0x14005d70b
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x14005d770
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140084008]
cmp word [rax], 0x5a4d
jne 0x14005d794
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14005d794
cmp word [rax + rcx + 0x18], 0x20b
je 0x14005d796
xor eax, eax
ret

Function at 0x14005d830
Capabilities:
Parse pe header

Disassembly:
push rsi
mov rdx, qword [0x140084008]
cmp word [rdx], 0x5a4d
jne 0x14005d8bd
movsxd rax, dword [rdx + 0x3c]
cmp dword [rdx + rax], 0x4550
jne 0x14005d8bd
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x14005d8bd
mov r8d, dword [rax + 0x90]
test r8, r8
je 0x14005d8bd
movzx r9d, word [rax + 6]
test r9, r9
je 0x14005d8bd
movzx r10d, word [rax + 0x14]
shl r9d, 3
lea r9, [r9 + r9*4]
add r10, rax
add r10, 0x24
xor eax, eax
xor r11d, r11d
jmp 0x14005d899
add r11, 0x28
cmp r9d, r11d
je 0x14005d8bf
mov esi, dword [r10 + r11]
cmp esi, r8d
ja 0x14005d890
add esi, dword [r10 + r11 - 4]
cmp esi, r8d
jbe 0x14005d890
add rdx, r8
add rdx, 0xc
xor eax, eax
cmp dword [rdx - 8], 0
jne 0x14005d8e1
jmp 0x14005d8dc
xor eax, eax
pop rsi
ret
dec ecx
add rdx, 0x14
cmp dword [rdx - 8], 0
jne 0x14005d8e1
cmp dword [rdx], 0
je 0x14005d8bf
test ecx, ecx
jg 0x14005d8d0
mov eax, dword [rdx]
add rax, qword [0x140084008]
jmp 0x14005d8bf

Function at 0x14005d950
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
cmp byte [0x1400a9e33], 1
jne 0x14005d971
test byte [0x1400a9e32], 1
jne 0x14005d990
jmp 0x14005d9c2
lea rcx, str.LIBUNWIND_PRINT_APIS
call sym.getenv
mov byte [0x1400a9e33], 1
test rax, rax
setne byte [0x1400a9e32]
je 0x14005d9c2
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call rbx
lea rdx, str.libunwind:___unw_init_local_cursor_p__context_p__n
mov rcx, rax
mov r8, rsi
mov r9, rdi
call dbg.fprintf
mov ecx, 2
call rbx
mov rcx, rax
call sym.fflush
lea r8, [0x1400a9348]
mov rcx, rsi
mov rdx, rdi
call method.libunwind::UnwindCursor_libunwind::LocalAddressSpace__libunwind::Registers_x86_64_.UnwindCursor_unw_context_t__libunwind::LocalAddressSpace_
mov rax, qword [rsi]
mov rax, qword [rax + 0x68]
mov rcx, rsi
xor edx, edx
call qword [0x140092eb0]
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x14005d9f0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [0x1400a9e33], 1
jne 0x14005da0b
movzx eax, byte [0x1400a9e32]
and al, 1
add rsp, 0x28
ret
lea rcx, str.LIBUNWIND_PRINT_APIS
call sym.getenv
test rax, rax
setne al
setne byte [0x1400a9e32]
mov byte [0x1400a9e33], 1
and al, 1
add rsp, 0x28
ret