joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006bda0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14006bdc4
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14006bdfb
mov rax, qword [rcx + 0x58]
movsxd rcx, dword [rax]
add rcx, rdx
cmp rdx, rcx
jae 0x14006bdfb
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x14006bf24
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14006be3e
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14006be69
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14006bf29
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14006bede
sub eax, 1
je 0x14006bede
cmp eax, 2
jne 0x14006bf24
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14006bf29
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x14006bf0f
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14006bf24
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov eax, edi
jne 0x14006bf29
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x14006c270
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14006c339
cmp byte [rcx + 0x71], 0
je 0x14006c339
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14006c32c
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14006c2e8
sub eax, 1
je 0x14006c2ec
cmp eax, 2
jne 0x14006c32c
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x14006c31a
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14006c32c
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x1400309cc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400307f8
Function at 0x140001792
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, 2
call fcn.14000639c
mov rdi, rax
lea rcx, str.could_not_load:
mov edx, 1
mov r8d, 0x10
mov r9, rax
call fcn.140009208
mov rcx, rdi
call fcn.140009010
mov rax, qword [rsi + 8]
add rax, 8
cmp qword [rsi], 0
lea rsi, [0x14001cd82]
cmovne rsi, rax
mov ecx, 2
call fcn.14000639c
mov rdi, rax
mov rcx, rsi
call fcn.140009ae0
mov edx, 1
mov rcx, rsi
mov r8, rax
mov r9, rdi
call fcn.140009208
mov rcx, rdi
call fcn.140009010
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xc1
jne 0x14000184d
mov ecx, 2
call fcn.14000639c
mov rsi, rax
lea rcx, str._n_bad_format__library_may_be_wrong_architecture_
mov edx, 1
mov r8d, 0x30
mov r9, rax
call fcn.140009208
mov rcx, rsi
call fcn.140009010
mov ecx, 2
call fcn.14000639c
lea rdx, [0x14001cd81]
mov rcx, rax
call fcn.140001871
mov ecx, 1
call fcn.140007c34
int3

Function at 0x140001871
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x14000188f
mov rcx, rdi
call fcn.140009ae0
mov r8, rax
jmp 0x140001892
xor r8d, r8d
mov edx, 1
mov rcx, rdi
mov r9, rsi
call fcn.140009208
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140009010

Function at 0x140003c20
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov ecx, 2
call fcn.14000639c
mov rbx, rax
mov edx, 1
mov rcx, rdi
mov r8, rsi
mov r9, rax
call fcn.140009208
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140009010
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x140022a10], 0
je 0x140003d3d
mov eax, dword [0x140022aa0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rbx, [rax + 0x2ac8]
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov rdx, rsi
call fcn.140003b34
mov rax, qword [rdi]
mov rsi, qword [rdi + 8]
mov rdx, qword [0x140022a10]
mov qword [rdi], rax
mov qword [rdi + 8], rsi
lea rcx, [rsp + 0x28]
call rdx
test rsi, rsi
je 0x140003cf6
test byte [rsi + 7], 0x40
jne 0x140003cf6
mov eax, dword [0x140022aa0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x20]
mov rdx, rsi
call fcn.1400029d1
cmp byte [rbx], 0
je 0x140003d27
mov byte [rbx], 0
mov eax, dword [0x140022aa0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x2ad0]
mov rax, qword [rcx]
mov rdx, qword [rax + 0x38]
xor r8d, r8d
call fcn.140003bc3
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140005270
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
mov rdi, rdx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140005270
mov rcx, rsi
mov rdx, rdi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
jmp 0x140003c20
Function at 0x140003c5c
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov ecx, 2
call fcn.14000639c
mov rbx, rax
mov edx, 1
mov rcx, rdi
mov r8, rsi
mov r9, rax
call fcn.140009208
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140009010
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x140022a10], 0
je 0x140003d3d
mov eax, dword [0x140022aa0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rbx, [rax + 0x2ac8]
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov rdx, rsi
call fcn.140003b34
mov rax, qword [rdi]
mov rsi, qword [rdi + 8]
mov rdx, qword [0x140022a10]
mov qword [rdi], rax
mov qword [rdi + 8], rsi
lea rcx, [rsp + 0x28]
call rdx
test rsi, rsi
je 0x140003cf6
test byte [rsi + 7], 0x40
jne 0x140003cf6
mov eax, dword [0x140022aa0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x20]
mov rdx, rsi
call fcn.1400029d1
cmp byte [rbx], 0
je 0x140003d27
mov byte [rbx], 0
mov eax, dword [0x140022aa0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x2ad0]
mov rax, qword [rcx]
mov rdx, qword [rax + 0x38]
xor r8d, r8d
call fcn.140003bc3
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140005270
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
mov rdi, rdx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140005270
mov rcx, rsi
mov rdx, rdi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
jmp 0x140003c20

Function at 0x140005934
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000597e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000597e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000597e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000597e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000597e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140005980
xor al, al
add rsp, 0x28
ret
Function at 0x140007c34
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007d7c
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140007dec
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007dec
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007dec
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007dec
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007dec
cmp dword [rcx + 0x84], 0xe
jbe 0x140007dec
cmp dword [rcx + 0xf8], esi
je 0x140007dec
mov ecx, r14d
call fcn.140007cb8
mov ecx, 2
call fcn.14000b1a4
nop
cmp byte [0x140023104], 0
jne 0x140007eb6
mov r15d, 1
mov eax, r15d
xchg dword [0x140023100], eax
test ebx, ebx
jne 0x140007e5f
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1400230f8]
cmp rcx, rax
je 0x140007e56
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [section..00cfg]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140023218]
jmp 0x140007e6b
cmp ebx, r15d
jne 0x140007e71
lea rcx, [0x140023230]
call fcn.1400083c8
nop
test ebx, ebx
jne 0x140007e88
lea rdx, [0x14001f5f0]
lea rcx, [0x14001f5d0]
call fcn.140008b60
lea rdx, [0x14001f600]
lea rcx, [0x14001f5f8]
call fcn.140008b60
movzx eax, byte [0x140023104]
test esi, esi
cmove eax, r15d
mov byte [0x140023104], al
jmp 0x140007eb6
mov ecx, 2
call fcn.14000b1c0
test esi, esi
jne 0x140007ecd
mov ecx, r14d
call fcn.140007d24
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret

Function at 0x140009bb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140009bd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140009bd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140007d50
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.0x140007d71
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 0x140007d9e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140007da0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140007df9
test ecx, ecx
jle 0x140007dd9
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 0x140007df9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140007df9
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
cdq
fadd dword [rdx + 0x75cc6cae]
sbb esi, esi
cmpsb byte [rsi], byte [rdi]
shl byte [0xc7665b91], 0x34
invalid
Function at 0x140007e20
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140007e42
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140007e51
add rsp, 0x30
pop r14
pop rsi
pop rbp
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 + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140007e74
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140007e76
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140007eb2
mov qword [rsp + 0x20], 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 + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140007f4e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140007eed
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 0x140007f2e
nop word [rax + 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 0x140007f4e
cmp rbx, rax
ja 0x140007f00
test rbx, rbx
je 0x140007f4e
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
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub dh, byte [rax - 0x26]
ror bh, cl
mov esp, 0xf05bbb85
ja 0x14002b33f
lea eax, [rbx - 0x4e962aca]
sbb byte [rcx + 0x68], spl
and byte ds:[rax], al
movsb byte [rdi], byte [rsi]
cld
cmc
invalid
and dword [rbx + 0x38f7ae5b], 0x79594018
cmc
idiv dword [rax]
sbb byte [rax + 0x59], al
jns 0x14002b33b
rcl dword gs:[0x103e13364]
and al, 0xfb
xchg byte [rdx], bh
mov edx, 0x165471b0
movsd dword [rdi], dword [rsi]
pop rbx
push r15
neg byte [0xf058e088]
out dx, eax
add cl, byte [0xdb94065f]
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x14029d2a0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x14029d2b0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140017260
jmp 0x14000123c
mov rax, qword [0x14029d2b0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x14029d2b0]
mov dword [rax], 1
mov rax, qword [0x14029d310]
mov rdx, rax
mov rax, qword [0x14029d300]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x1402c8024], 1
mov rax, qword [0x14029d2b0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x14029d2f0]
mov rdx, rax
mov rax, qword [0x14029d2e0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x14029d2b0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x14029d2a0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x14029d1e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x14029d1e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.14000be38
mov rax, qword [0x14029d350]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x14029d290]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14000b630
mov eax, dword [0x1402c8004]
lea rdx, [0x1402c8008]
mov ecx, eax
call fcn.14000147c
call fcn.14000b3c7
mov rax, qword [0x14029d220]
mov rax, qword [rax]
mov rdx, qword [0x1402c8010]
mov qword [rax], rdx
mov rcx, qword [0x1402c8010]
mov rdx, qword [0x1402c8008]
mov eax, dword [0x1402c8004]
mov r8, rcx
mov ecx, eax
call fcn.1400bb590
mov dword [0x1402c801c], eax
mov eax, dword [0x1402c8020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x1402c801c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x1402c8024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x1402c801c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14029d250]
mov dword [rax], 1
mov rax, qword [0x14029d260]
mov dword [rax], 1
mov rax, qword [0x14029d270]
mov dword [rax], 1
mov rax, qword [0x14029d210]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14000b640
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140016ff0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x14000c312
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1402c8168]
test eax, eax
je 0x14000c3aa
lea rax, [0x1402c8140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1402c8170]
mov qword [rbp - 8], rax
jmp 0x14000c38e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14000c382
cmp qword [rbp - 0x10], 0
je 0x14000c382
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000c348
lea rax, [0x1402c8140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000c3ab
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14000c4b0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14000c4d8
mov eax, 0
jmp 0x14000c526
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000c501
mov eax, 0
jmp 0x14000c526
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14000c521
mov eax, 0
jmp 0x14000c526
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14000c52c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000c5aa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000c5a1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14000c5a1
mov rax, qword [rbp - 8]
jmp 0x14000c5bf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14000c574
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14001a4c9
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x14001a614
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.140019aed
cmp eax, 1
jne 0x14001a607
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x15], 0
mov qword [rbp - 0xd], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x14001a5bd
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x14001a5d3
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x14001a5b9
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x14001a5f2
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x14001a615
nop
add rsp, 0x90
pop rbp
ret