joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bfa60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1400e3020]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x30], 0
call fcn.1400c04d0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1400bfc13
mov eax, 1
imul rax, rax, 0xf
mov byte [rsp + rax + 0x50], 0x61
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x50], 0x43
mov eax, 1
imul rax, rax, 8
mov byte [rsp + rax + 0x50], 0x48
mov eax, 1
imul rax, rax, 0xd
mov byte [rsp + rax + 0x50], 0x61
mov eax, 1
imul rax, rax, 6
mov byte [rsp + rax + 0x50], 0x65
mov eax, 1
imul rax, rax, 0xe
mov byte [rsp + rax + 0x50], 0x72
mov eax, 1
imul rax, rax, 5
mov byte [rsp + rax + 0x50], 0x47
mov eax, 1
imul rax, rax, 7
mov byte [rsp + rax + 0x50], 0x74
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x50], 0x72
mov eax, 1
imul rax, rax, 3
mov byte [rsp + rax + 0x50], 0x70
mov eax, 1
imul rax, rax, 0x10
mov byte [rsp + rax + 0x50], 0x6d
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x50], 0x79
mov eax, 1
imul rax, rax, 0xa
mov byte [rsp + rax + 0x50], 0x73
mov eax, 1
imul rax, rax, 0x11
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0x12
jae 0x1400bfb72
jmp 0x1400bfb77
call fcn.140006978
mov rax, qword [rsp + 0x40]
mov byte [rsp + rax + 0x50], 0
mov eax, 1
imul rax, rax, 0xc
mov byte [rsp + rax + 0x50], 0x50
mov eax, 1
imul rax, rax, 9
mov byte [rsp + rax + 0x50], 0x61
mov eax, 1
imul rax, rax, 0xb
mov byte [rsp + rax + 0x50], 0x68
mov eax, 1
imul rax, rax, 4
mov byte [rsp + rax + 0x50], 0x74
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1400bfc08
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x98]
mov r8, qword [rsp + 0x90]
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [rsp + 0x48]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140006850
add rsp, 0x78
ret
Function at 0x1400bfc30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1400e3020]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x20], 0
call fcn.1400c04d0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400bfdd4
mov eax, 1
imul rax, rax, 8
mov byte [rsp + rax + 0x40], 0x65
mov eax, 1
imul rax, rax, 0xd
mov byte [rsp + rax + 0x40], 0x6f
mov eax, 1
imul rax, rax, 0xa
mov byte [rsp + rax + 0x40], 0x73
mov eax, 1
imul rax, rax, 7
mov byte [rsp + rax + 0x40], 0x6c
mov eax, 1
imul rax, rax, 0x10
mov byte [rsp + rax + 0x40], 0x65
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x40], 0x72
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x40], 0x79
mov eax, 1
imul rax, rax, 0xe
mov byte [rsp + rax + 0x40], 0x6e
mov eax, 1
imul rax, rax, 5
mov byte [rsp + rax + 0x40], 0x52
mov eax, 1
imul rax, rax, 6
mov byte [rsp + rax + 0x40], 0x65
mov eax, 1
imul rax, rax, 0x12
mov byte [rsp + rax + 0x40], 0x74
mov eax, 1
imul rax, rax, 3
mov byte [rsp + rax + 0x40], 0x70
mov eax, 1
imul rax, rax, 9
mov byte [rsp + rax + 0x40], 0x61
mov eax, 1
imul rax, rax, 0x11
mov byte [rsp + rax + 0x40], 0x78
mov eax, 1
imul rax, rax, 0xc
mov byte [rsp + rax + 0x40], 0x43
mov eax, 1
imul rax, rax, 0xb
mov byte [rsp + rax + 0x40], 0x65
mov eax, 1
imul rax, rax, 0xf
mov byte [rsp + rax + 0x40], 0x74
mov eax, 1
imul rax, rax, 0x13
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0x14
jae 0x1400bfd70
jmp 0x1400bfd75
call fcn.140006978
mov rax, qword [rsp + 0x30]
mov byte [rsp + rax + 0x40], 0
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x40], 0x43
mov eax, 1
imul rax, rax, 4
mov byte [rsp + rax + 0x40], 0x74
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1400bfdc9
mov edx, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [rsp + 0x38]
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006850
add rsp, 0x68
ret
Function at 0x1400bfdf0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1400e3020]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x30], 0
call fcn.1400c04d0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1400bffcf
mov eax, 1
imul rax, rax, 9
mov byte [rsp + rax + 0x50], 0x69
mov eax, 1
imul rax, rax, 0xf
mov byte [rsp + rax + 0x50], 0x74
mov eax, 1
imul rax, rax, 0xe
mov byte [rsp + rax + 0x50], 0x6e
mov eax, 1
imul rax, rax, 0x13
mov byte [rsp + rax + 0x50], 0x41
mov eax, 1
imul rax, rax, 7
mov byte [rsp + rax + 0x50], 0x71
mov eax, 1
imul rax, rax, 4
mov byte [rsp + rax + 0x50], 0x74
mov eax, 1
imul rax, rax, 0xc
mov byte [rsp + rax + 0x50], 0x43
mov eax, 1
imul rax, rax, 5
mov byte [rsp + rax + 0x50], 0x41
mov eax, 1
imul rax, rax, 0x14
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0x15
jae 0x1400bfebd
jmp 0x1400bfec2
call fcn.140006978
mov rax, qword [rsp + 0x40]
mov byte [rsp + rax + 0x50], 0
mov eax, 1
imul rax, rax, 0x12
mov byte [rsp + rax + 0x50], 0x74
mov eax, 1
imul rax, rax, 0x11
mov byte [rsp + rax + 0x50], 0x78
mov eax, 1
imul rax, rax, 0xa
mov byte [rsp + rax + 0x50], 0x72
mov eax, 1
imul rax, rax, 0xd
mov byte [rsp + rax + 0x50], 0x6f
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x50], 0x72
mov eax, 1
imul rax, rax, 3
mov byte [rsp + rax + 0x50], 0x70
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x50], 0x43
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x50], 0x79
mov eax, 1
imul rax, rax, 0x10
mov byte [rsp + rax + 0x50], 0x65
mov eax, 1
imul rax, rax, 0xb
mov byte [rsp + rax + 0x50], 0x65
mov eax, 1
imul rax, rax, 6
mov byte [rsp + rax + 0x50], 0x63
mov eax, 1
imul rax, rax, 8
mov byte [rsp + rax + 0x50], 0x75
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1400bffc4
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x98]
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [rsp + 0x48]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140006850
add rsp, 0x78
ret
Function at 0x1400bfff0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1400e3020]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x30], 0
call fcn.1400c04d0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1400c0189
mov eax, 1
imul rax, rax, 3
mov byte [rsp + rax + 0x50], 0x70
mov eax, 1
imul rax, rax, 0xc
mov byte [rsp + rax + 0x50], 0x61
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x50], 0x43
mov eax, 1
imul rax, rax, 5
mov byte [rsp + rax + 0x50], 0x43
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x50], 0x72
mov eax, 1
imul rax, rax, 0xf
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0x10
jae 0x1400c0092
jmp 0x1400c0097
call fcn.140006978
mov rax, qword [rsp + 0x40]
mov byte [rsp + rax + 0x50], 0
mov eax, 1
imul rax, rax, 0xb
mov byte [rsp + rax + 0x50], 0x48
mov eax, 1
imul rax, rax, 0xd
mov byte [rsp + rax + 0x50], 0x73
mov eax, 1
imul rax, rax, 4
mov byte [rsp + rax + 0x50], 0x74
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x50], 0x79
mov eax, 1
imul rax, rax, 0xe
mov byte [rsp + rax + 0x50], 0x68
mov eax, 1
imul rax, rax, 9
mov byte [rsp + rax + 0x50], 0x74
mov eax, 1
imul rax, rax, 7
mov byte [rsp + rax + 0x50], 0x65
mov eax, 1
imul rax, rax, 0xa
mov byte [rsp + rax + 0x50], 0x65
mov eax, 1
imul rax, rax, 8
mov byte [rsp + rax + 0x50], 0x61
mov eax, 1
imul rax, rax, 6
mov byte [rsp + rax + 0x50], 0x72
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1400c017e
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x98]
mov r8, qword [rsp + 0x90]
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [rsp + 0x48]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140006850
add rsp, 0x78
ret
Function at 0x1400c01b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1400e3020]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x20], 0
call fcn.1400c04d0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400c0322
mov eax, 1
imul rax, rax, 6
mov byte [rsp + rax + 0x40], 0x65
mov eax, 1
imul rax, rax, 8
mov byte [rsp + rax + 0x40], 0x74
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x40], 0x43
mov eax, 1
imul rax, rax, 0x10
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0x11
jae 0x1400c0228
jmp 0x1400c022d
call fcn.140006978
mov rax, qword [rsp + 0x30]
mov byte [rsp + rax + 0x40], 0
mov eax, 1
imul rax, rax, 0xf
mov byte [rsp + rax + 0x40], 0x68
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x40], 0x72
mov eax, 1
imul rax, rax, 0xa
mov byte [rsp + rax + 0x40], 0x6f
mov eax, 1
imul rax, rax, 0xc
mov byte [rsp + rax + 0x40], 0x48
mov eax, 1
imul rax, rax, 0xb
mov byte [rsp + rax + 0x40], 0x79
mov eax, 1
imul rax, rax, 4
mov byte [rsp + rax + 0x40], 0x74
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x40], 0x79
mov eax, 1
imul rax, rax, 3
mov byte [rsp + rax + 0x40], 0x70
mov eax, 1
imul rax, rax, 0xd
mov byte [rsp + rax + 0x40], 0x61
mov eax, 1
imul rax, rax, 7
mov byte [rsp + rax + 0x40], 0x73
mov eax, 1
imul rax, rax, 9
mov byte [rsp + rax + 0x40], 0x72
mov eax, 1
imul rax, rax, 5
mov byte [rsp + rax + 0x40], 0x44
mov eax, 1
imul rax, rax, 0xe
mov byte [rsp + rax + 0x40], 0x73
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1400c0317
mov rcx, qword [rsp + 0x70]
call qword [rsp + 0x38]
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006850
add rsp, 0x68
ret
Function at 0x1400c0340
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1400e3020]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x20], 0
call fcn.1400c04d0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400c04ac
mov eax, 1
imul rax, rax, 7
mov byte [rsp + rax + 0x40], 0x73
mov eax, 1
imul rax, rax, 6
mov byte [rsp + rax + 0x40], 0x61
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x40], 0x43
mov eax, 1
imul rax, rax, 0xa
mov byte [rsp + rax + 0x40], 0x61
mov eax, 1
imul rax, rax, 5
mov byte [rsp + rax + 0x40], 0x48
mov eax, 1
imul rax, rax, 0xc
mov byte [rsp + rax + 0x40], 0x61
mov eax, 1
imul rax, rax, 9
mov byte [rsp + rax + 0x40], 0x44
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x40], 0x79
mov eax, 1
imul rax, rax, 3
mov byte [rsp + rax + 0x40], 0x70
mov eax, 1
imul rax, rax, 0xd
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xe
jae 0x1400c041b
jmp 0x1400c0420
call fcn.140006978
mov rax, qword [rsp + 0x30]
mov byte [rsp + rax + 0x40], 0
mov eax, 1
imul rax, rax, 4
mov byte [rsp + rax + 0x40], 0x74
mov eax, 1
imul rax, rax, 8
mov byte [rsp + rax + 0x40], 0x68
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x40], 0x72
mov eax, 1
imul rax, rax, 0xb
mov byte [rsp + rax + 0x40], 0x74
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1400c04a1
mov r9d, dword [rsp + 0x88]
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [rsp + 0x38]
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140006850
add rsp, 0x68
ret
Function at 0x140004000
Capabilities:
Encode data using xor

Disassembly:
xor rcx, rcx
sub rcx, 0xffffffffffffffc6
lea rax, [entry0]
movabs rbx, 0xb048cc02408f45a1
xor qword [rax + 0x27], rbx
sub rax, 0xfffffffffffffff8
loop 0x14000401b
pop rbp
or eax, 0x24f2a40c
mov byte [rax + 0x11ce45a1], dh
pushfq
sbb ah, cl
test dword [0xc467d2ff], 0xdc1e2c3
add al, 0x12
sbb al, byte [rbx + rax*8 + 0x40d81e2]
xor dl, byte [rdx - 0x7c]
invalid
Function at 0x140001393
Capabilities:
Terminate process

Disassembly:
jmp 0x1400095d0
sub rsp, 0x48
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140016628]
lea r9, str.1.23
mov rcx, rax
lea rdx, str._s__s_n_sUsage:__s__s
mov rax, qword [str.__q____wWIDTH____hHEIGHT____pPAPER____WWIDTH____HHEIGHT____PPAPER____l____r____c____f____mMARGIN____bBORDER____dLWIDTH____sSCALE____NUP___INFILE__OUTFILE___n]
mov qword [rsp + 0x30], rax
lea rax, str._c__Reuben_Thomas__rrt_sc3d.org__2014_n_c__Angus_J._C._Duggan_1991_1997_nSee_file_LICENSE_for_details._n
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
call fcn.140001645
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x1400013d9
Capabilities:
Terminate process

Disassembly:
jmp 0x14000b1ec
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x1400016c2
Capabilities:
Read file on windows
Write file on windows

Disassembly:
jmp 0x1400091e0
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x230
mov rax, qword [0x140016180]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rbp, rcx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
mov rbx, rax
test eax, eax
js 0x14000923d
xor edx, edx
mov rcx, rbp
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
test eax, eax
jne 0x14000923d
movsxd rdx, ebx
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
test eax, eax
jne 0x14000923d
mov rax, rbp
jmp 0x140009316
mov qword [rsp + 0x248], rsi
mov qword [rsp + 0x250], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_tmpfile]
mov rsi, rax
test rax, rax
je 0x140009304
mov r9, rbp
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x200
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rbx, rax
test eax, eax
jle 0x1400092d3
nop
lea rdi, [rsp + 0x20]
nop word [rax + rax]
movsxd r8, ebx
mov r9, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
test eax, eax
je 0x140009304
movsxd rcx, eax
sub ebx, eax
add rdi, rcx
test ebx, ebx
jg 0x140009290
mov r9, rbp
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x200
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ebx, eax
test eax, eax
jg 0x140009280
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x140009304
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
xor ecx, ecx
test eax, eax
cmovne rsi, rcx
mov rax, rsi
jmp 0x140009306
xor eax, eax
mov rsi, qword [rsp + 0x248]
mov rdi, qword [rsp + 0x250]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140001375
mov rbx, qword [rsp + 0x258]
add rsp, 0x230
pop rbp
ret
Function at 0x1400089b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, ecx
mov rbx, rdx
mov rcx, qword [0x140017288]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
mov esi, 0x200
mov rdx, rax
test rbx, rbx
je 0x140008a59
mov ecx, dword [rbx]
test ecx, ecx
jle 0x140008a59
cmp ecx, eax
jge 0x1400089f5
mov ecx, dword [rbx + 4]
add rbx, 4
test ecx, ecx
jg 0x1400089e4
jmp 0x140008a59
cmp ecx, edi
jge 0x140008a59
xor edx, edx
call fcn.1400089b0
test eax, eax
je 0x140008acc
mov r8, qword [0x140017288]
lea rcx, [0x140016650]
mov edx, esi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x140008acc
mov rcx, qword [0x140017288]
add rbx, 4
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
mov ecx, dword [rbx]
mov edx, eax
test ecx, ecx
jle 0x140008a59
mov eax, ecx
mov ecx, eax
cmp eax, edx
jge 0x140008a55
mov ecx, dword [rbx + 4]
add rbx, 4
mov eax, ecx
test ecx, ecx
jg 0x140008a42
test ecx, ecx
jg 0x1400089f5
sub edi, edx
test edi, edi
jle 0x140008ab7
nop
mov r9, qword [0x140017288]
lea rcx, [0x140016650]
mov eax, edi
cmp edi, esi
mov edx, 1
cmova eax, esi
mov r8d, eax
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbx
jb 0x140008acc
mov r9, qword [0x140017280]
lea rcx, [0x140016650]
mov r8d, ebx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rbx
jb 0x140008acc
add dword [0x140016850], ebx
sub edi, ebx
test edi, edi
jg 0x140008a60
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400091e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
jmp 0x1400091e0
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x230
mov rax, qword [0x140016180]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rbp, rcx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
mov rbx, rax
test eax, eax
js 0x14000923d
xor edx, edx
mov rcx, rbp
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
test eax, eax
jne 0x14000923d
movsxd rdx, ebx
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
test eax, eax
jne 0x14000923d
mov rax, rbp
jmp 0x140009316
mov qword [rsp + 0x248], rsi
mov qword [rsp + 0x250], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_tmpfile]
mov rsi, rax
test rax, rax
je 0x140009304
mov r9, rbp
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x200
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rbx, rax
test eax, eax
jle 0x1400092d3
nop
lea rdi, [rsp + 0x20]
nop word [rax + rax]
movsxd r8, ebx
mov r9, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
test eax, eax
je 0x140009304
movsxd rcx, eax
sub ebx, eax
add rdi, rcx
test ebx, ebx
jg 0x140009290
mov r9, rbp
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x200
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ebx, eax
test eax, eax
jg 0x140009280
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x140009304
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
xor ecx, ecx
test eax, eax
cmovne rsi, rcx
mov rax, rsi
jmp 0x140009306
xor eax, eax
mov rsi, qword [rsp + 0x248]
mov rdi, qword [rsp + 0x250]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140001375
mov rbx, qword [rsp + 0x258]
add rsp, 0x230
pop rbp
ret

Function at 0x1400095d0
Capabilities:
Terminate process

Disassembly:
jmp 0x1400095d0
sub rsp, 0x48
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140016628]
lea r9, str.1.23
mov rcx, rax
lea rdx, str._s__s_n_sUsage:__s__s
mov rax, qword [str.__q____wWIDTH____hHEIGHT____pPAPER____WWIDTH____HHEIGHT____PPAPER____l____r____c____f____mMARGIN____bBORDER____dLWIDTH____sSCALE____NUP___INFILE__OUTFILE___n]
mov qword [rsp + 0x30], rax
lea rax, str._c__Reuben_Thomas__rrt_sc3d.org__2014_n_c__Angus_J._C._Duggan_1991_1997_nSee_file_LICENSE_for_details._n
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
call fcn.140001645
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x14000bb30
Capabilities:
Parse pe header

Disassembly:
jmp 0x14000bb30
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000bb7a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000bb7a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000bb7a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000bb7a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000bb7a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000bb7c
xor al, al
add rsp, 0x28
ret
Function at 0x140002c60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140004810
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004810
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002cd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002e00
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002d1b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002da5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002d00
mov rcx, rbx
call fcn.140003720
mov rdi, rax
test rax, rax
je 0x140002e22
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003860
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002e07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002d9e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002db0
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002d9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002c60
nop dword [rax]
xor esi, esi
jmp 0x140002d28
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002c60
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002c60
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003390
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x1400033ec
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400033e3
test rsi, rsi
je 0x1400033e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400033c8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]