joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c3b4
Capabilities:
Parse pe header

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

Function at 0x14000fc34
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000fa93
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fa93
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fa93
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fa93
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fa93
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fa93
cmp dword [rcx + 0xf8], 0
je 0x14000fa93
mov ecx, ebx
call fcn.14000fb50
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f920
nop
cmp dword [rbp + 0x20], 0
je 0x14000fae1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000faec
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000fa24
Function at 0x1400190e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140019167
mov rsi, rbx
cmp word [rax], bp
je 0x140019126
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140019110
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001910c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016920
mov rdi, rax
test rax, rax
je 0x140019154
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000da00
mov rbp, rdi
xor ecx, ecx
call fcn.140015964
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001fb50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001fb78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001fb78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001190
Capabilities:
Create directory

Disassembly:
jmp 0x14001daa4
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x140032e40]
xor rax, rsp
mov qword [rsp + 0x130], rax
movsxd rbx, ecx
mov rdi, rdx
mov rcx, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
cmp rax, rbx
jbe 0x14001db11
mov rdx, rdi
lea rcx, [rsp + 0x20]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov edx, 0x2f
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x14001db11
lea rdx, [rsp + 0x20]
mov byte [rax], 0
mov ecx, ebx
call fcn.140001190
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140001415
mov rbx, qword [rsp + 0x160]
add rsp, 0x140
pop rdi
ret

Function at 0x140001294
Capabilities:
Terminate process

Disassembly:
jmp 0x140010afc
sub rsp, 0x28
mov rcx, qword [rcx + 0xc0]
lea rax, str.error_unpacking_archive
test rdx, rdx
cmovne rax, rdx
lea rdx, [0x14002ecd4]
cmp byte [rax], 0x40
lea r8, [rax + 1]
cmovne r8, rax
call fcn.14000173a
or ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

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

Disassembly:
jmp 0x14001fb94
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14001fc21
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14001fc21
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001fc21
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14001fc08
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14001fc02
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14001fc0a
add rdx, 0x28
jmp 0x14001fbe7
xor edx, edx
test rdx, rdx
jne 0x14001fc13
xor al, al
jmp 0x14001fc27
cmp dword [rdx + 0x24], 0
jge 0x14001fc1d
xor al, al
jmp 0x14001fc27
mov al, 1
jmp 0x14001fc27
xor al, al
jmp 0x14001fc27
add rsp, 0x18
ret
Function at 0x1400014a6
Capabilities:
Terminate process

Disassembly:
jmp 0x14001dbcc
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 0x14001dc14
call fcn.140001429
test rax, rax
jne 0x14001dc14
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.Error:_unpacker:__s_n
mov rcx, rax
call fcn.14000173a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.140001294

Function at 0x1400014ba
Capabilities:
Terminate process

Disassembly:
jmp 0x14001e3c8
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140032e40]
xor rax, rsp
mov qword [rsp + 0x70], rax
movsxd rdi, edx
mov rbx, rcx
test edx, edx
je 0x14001e404
cmp edi, dword [rcx + 0xc]
jne 0x14001e3fb
mov eax, dword [rcx + 0x10]
jmp 0x14001e4b0
cmp dword [rcx + 8], 0
jne 0x14001e404
mov dword [rcx + 8], edi
xor edx, edx
mov qword [rsp + 0x40], rdi
lea rcx, [rsp + 0x48]
lea r8d, [rdx + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__gmtime64]
mov rdx, rax
test rax, rax
jne 0x14001e44d
mov rcx, qword [rbx + 0x50]
lea rdx, str.Error:_gmtime_failure__invalid_input_archive_n
mov rcx, qword [rcx + 0xc0]
call fcn.14000173a
or ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov dword [rbx + 0xc], edi
mov ecx, 0x7bc
mov eax, dword [rax + 0x14]
add eax, 0x76c
cmp eax, ecx
jge 0x14001e485
and dword [rsp + 0x30], 0
mov r9d, 1
and dword [rsp + 0x28], 0
mov edx, ecx
and dword [rsp + 0x20], 0
mov r8d, r9d
mov rcx, rbx
call fcn.1400010d2
jmp 0x14001e4ad
mov ecx, dword [rdx + 0x10]
add eax, 0xffffffc4
shl eax, 9
inc ecx
or eax, dword [rdx + 0xc]
shl eax, 5
or eax, dword [rdx + 8]
shl eax, 6
or eax, dword [rdx + 4]
shl ecx, 0x15
shl eax, 5
or eax, ecx
mov ecx, dword [rdx]
shr ecx, 1
or eax, ecx
mov dword [rbx + 0x10], eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140001415
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret

Function at 0x1400014bf
Capabilities:
Terminate process

Disassembly:
jmp 0x14001ef3c
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 0x140001591
Capabilities:
Terminate process

Disassembly:
jmp 0x14000f46c
push rbx
movsxd r11, r9d
mov rbx, r8
mov r10, rcx
test edx, edx
jns 0x14000f484
lea rcx, str.bad_value_count
jmp 0x14000f4f3
mov r9, qword [rcx]
cmp r11d, 1
je 0x14000f4c7
mov ecx, 0x100
cmp dword [rsp + 0x30], ecx
je 0x14000f4c7
sub ecx, dword [rsp + 0x30]
mov r8d, r11d
jmp 0x14000f4be
mov rax, r9
inc r9
sub r8d, 1
je 0x14000f4b4
movzx eax, byte [rax]
cmp eax, ecx
jge 0x14000f4be
dec edx
mov r8d, r11d
cmp r9, rbx
ja 0x14000f4ec
test edx, edx
jg 0x14000f4a1
mov qword [r10], r9
pop rbx
ret
movsxd r8, edx
mov rcx, r11
imul r11, r8
xor edx, edx
mov rax, r11
div rcx
cmp rax, r8
jne 0x14000f4ec
lea rax, [r11 + r9]
cmp rax, rbx
ja 0x14000f4ec
mov qword [r10], rax
pop rbx
ret
lea rcx, str.EOF_reading_band
xor edx, edx
pop rbx
jmp fcn.1400014a6

Function at 0x1400015be
Capabilities:
Parse pe header

Disassembly:
jmp 0x140020148
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140020192
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140020192
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140020192
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140020192
cmp dword [rcx + 0x84], 0xe
jbe 0x140020192
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140020194
xor al, al
add rsp, 0x28
ret

Function at 0x1400015cd
Capabilities:
Terminate process

Disassembly:
jmp 0x14001e5c0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rdx
mov rbx, rcx
jne 0x14001e614
lea rdx, [0x14002ede4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rbx], rax
test rax, rax
jne 0x14001e614
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 fcn.14000173a
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400017c6
Capabilities:
Terminate process

Disassembly:
jmp 0x140014d14
push rbx
sub rsp, 0x20
mov ebx, edx
mov edx, 2
call fcn.1400012b2
movzx ecx, bx
mov rdx, rax
cmp ebx, ecx
je 0x140014d43
xor edx, edx
lea rcx, str.Internal_buffer_overflow
add rsp, 0x20
pop rbx
jmp fcn.1400014a6
mov eax, ebx
mov byte [rdx + 1], bl
sar eax, 8
mov byte [rdx], al
add rsp, 0x20
pop rbx
ret
Function at 0x1400017e9
Capabilities:
Terminate process
Write file on windows

Disassembly:
jmp 0x14001eb74
test r8d, r8d
jle 0x14001ebc7
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]
mov edx, 1
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
test eax, eax
jle 0x14001ebc8
add dword [rdi + 0x34], eax
sub ebx, eax
movsxd rcx, eax
add rsi, rcx
test ebx, ebx
jg 0x14001eb91
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, qword [rdi + 0x50]
lea rdx, str.Error:_write_on_output_file_failed_err_d_n
mov r8d, dword [rax]
mov rcx, qword [rcx + 0xc0]
call fcn.14000173a
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x14000f46c
Capabilities:
Terminate process

Disassembly:
jmp 0x14000f46c
push rbx
movsxd r11, r9d
mov rbx, r8
mov r10, rcx
test edx, edx
jns 0x14000f484
lea rcx, str.bad_value_count
jmp 0x14000f4f3
mov r9, qword [rcx]
cmp r11d, 1
je 0x14000f4c7
mov ecx, 0x100
cmp dword [rsp + 0x30], ecx
je 0x14000f4c7
sub ecx, dword [rsp + 0x30]
mov r8d, r11d
jmp 0x14000f4be
mov rax, r9
inc r9
sub r8d, 1
je 0x14000f4b4
movzx eax, byte [rax]
cmp eax, ecx
jge 0x14000f4be
dec edx
mov r8d, r11d
cmp r9, rbx
ja 0x14000f4ec
test edx, edx
jg 0x14000f4a1
mov qword [r10], r9
pop rbx
ret
movsxd r8, edx
mov rcx, r11
imul r11, r8
xor edx, edx
mov rax, r11
div rcx
cmp rax, r8
jne 0x14000f4ec
lea rax, [r11 + r9]
cmp rax, rbx
ja 0x14000f4ec
mov qword [r10], rax
pop rbx
ret
lea rcx, str.EOF_reading_band
xor edx, edx
pop rbx
jmp fcn.1400014a6

Function at 0x140010afc
Capabilities:
Terminate process

Disassembly:
jmp 0x140010afc
sub rsp, 0x28
mov rcx, qword [rcx + 0xc0]
lea rax, str.error_unpacking_archive
test rdx, rdx
cmovne rax, rdx
lea rdx, [0x14002ecd4]
cmp byte [rax], 0x40
lea r8, [rax + 1]
cmovne r8, rax
call fcn.14000173a
or ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x140014d14
Capabilities:
Terminate process

Disassembly:
jmp 0x140014d14
push rbx
sub rsp, 0x20
mov ebx, edx
mov edx, 2
call fcn.1400012b2
movzx ecx, bx
mov rdx, rax
cmp ebx, ecx
je 0x140014d43
xor edx, edx
lea rcx, str.Internal_buffer_overflow
add rsp, 0x20
pop rbx
jmp fcn.1400014a6
mov eax, ebx
mov byte [rdx + 1], bl
sar eax, 8
mov byte [rdx], al
add rsp, 0x20
pop rbx
ret
Function at 0x14001daa4
Capabilities:
Create directory

Disassembly:
jmp 0x14001daa4
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x140032e40]
xor rax, rsp
mov qword [rsp + 0x130], rax
movsxd rbx, ecx
mov rdi, rdx
mov rcx, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
cmp rax, rbx
jbe 0x14001db11
mov rdx, rdi
lea rcx, [rsp + 0x20]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov edx, 0x2f
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x14001db11
lea rdx, [rsp + 0x20]
mov byte [rax], 0
mov ecx, ebx
call fcn.140001190
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140001415
mov rbx, qword [rsp + 0x160]
add rsp, 0x140
pop rdi
ret

Function at 0x14001dbcc
Capabilities:
Terminate process

Disassembly:
jmp 0x14001dbcc
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 0x14001dc14
call fcn.140001429
test rax, rax
jne 0x14001dc14
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.Error:_unpacker:__s_n
mov rcx, rax
call fcn.14000173a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.140001294

Function at 0x14001e3c8
Capabilities:
Terminate process

Disassembly:
jmp 0x14001e3c8
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140032e40]
xor rax, rsp
mov qword [rsp + 0x70], rax
movsxd rdi, edx
mov rbx, rcx
test edx, edx
je 0x14001e404
cmp edi, dword [rcx + 0xc]
jne 0x14001e3fb
mov eax, dword [rcx + 0x10]
jmp 0x14001e4b0
cmp dword [rcx + 8], 0
jne 0x14001e404
mov dword [rcx + 8], edi
xor edx, edx
mov qword [rsp + 0x40], rdi
lea rcx, [rsp + 0x48]
lea r8d, [rdx + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__gmtime64]
mov rdx, rax
test rax, rax
jne 0x14001e44d
mov rcx, qword [rbx + 0x50]
lea rdx, str.Error:_gmtime_failure__invalid_input_archive_n
mov rcx, qword [rcx + 0xc0]
call fcn.14000173a
or ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov dword [rbx + 0xc], edi
mov ecx, 0x7bc
mov eax, dword [rax + 0x14]
add eax, 0x76c
cmp eax, ecx
jge 0x14001e485
and dword [rsp + 0x30], 0
mov r9d, 1
and dword [rsp + 0x28], 0
mov edx, ecx
and dword [rsp + 0x20], 0
mov r8d, r9d
mov rcx, rbx
call fcn.1400010d2
jmp 0x14001e4ad
mov ecx, dword [rdx + 0x10]
add eax, 0xffffffc4
shl eax, 9
inc ecx
or eax, dword [rdx + 0xc]
shl eax, 5
or eax, dword [rdx + 8]
shl eax, 6
or eax, dword [rdx + 4]
shl ecx, 0x15
shl eax, 5
or eax, ecx
mov ecx, dword [rdx]
shr ecx, 1
or eax, ecx
mov dword [rbx + 0x10], eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140001415
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret
Function at 0x14001e5c0
Capabilities:
Terminate process

Disassembly:
jmp 0x14001e5c0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rdx
mov rbx, rcx
jne 0x14001e614
lea rdx, [0x14002ede4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rbx], rax
test rax, rax
jne 0x14001e614
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 fcn.14000173a
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
jmp 0x14001eb74
test r8d, r8d
jle 0x14001ebc7
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]
mov edx, 1
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
test eax, eax
jle 0x14001ebc8
add dword [rdi + 0x34], eax
sub ebx, eax
movsxd rcx, eax
add rsi, rcx
test ebx, ebx
jg 0x14001eb91
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, qword [rdi + 0x50]
lea rdx, str.Error:_write_on_output_file_failed_err_d_n
mov r8d, dword [rax]
mov rcx, qword [rcx + 0xc0]
call fcn.14000173a
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x140020148
Capabilities:
Parse pe header

Disassembly:
jmp 0x140020148
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140020192
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140020192
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140020192
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140020192
cmp dword [rcx + 0x84], 0xe
jbe 0x140020192
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140020194
xor al, al
add rsp, 0x28
ret
Function at 0x140036f10
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x140036f57
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140036f71
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140036f4f
mov qword [rsi], rdi
call fcn.14008b040
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x140036f87
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14008b040
mov rcx, qword [rsi]
call fcn.140086370
mov qword [rsi], 0
jmp 0x140036f3d
int3

Function at 0x140036fc0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rdx]
mov qword [rdx], 0
lea r15, [r14 + 1]
cmp r15, 2
jb 0x140036fea
call fcn.14008b040
cmp qword [rsi], r14
je 0x140037019
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140037054
cmp r15, 2
jb 0x140037011
mov qword [rsi], r14
call fcn.14008b040
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14003703e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14008b040
mov rcx, qword [rdi]
call fcn.140086370
mov qword [rdi], 0
jmp 0x14003702f
call fcn.14008b040
mov rcx, qword [rsi]
call fcn.140086370
mov qword [rsi], 0
jmp 0x140037003
Function at 0x1400372e0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x140037326
mov r15, rbx
test r15, r15
je 0x140037402
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r12, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r12
jbe 0x140037382
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, r14
sub r15, rax
sub rbx, r14
je 0x140037371
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.1400e68b0
mov r14, qword [rsi + 8]
add r15, rbx
mov qword [rsi + 0x10], r15
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x140037302
mov rax, rbx
sub rax, r12
sar rax, 2
cmp rbx, r12
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x14003741e
lea rcx, [r13*8]
call fcn.1400b50e8
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rbx
mov r15, rcx
sub rdx, r14
je 0x1400373e4
lea r15, [rdx + rcx]
xor r8d, r8d
mov r9, rcx
add r9, r8
je 0x140037402
mov r10, qword [r14 + r8]
mov qword [r9], r10
add r8, 8
cmp rdx, r8
jne 0x1400373cc
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], rdx
cmp rbx, r14
je 0x140037404
add rbx, 0xfffffffffffffff8
jne 0x1400373f7
ud2
test r12, r12
je 0x140037302
mov rcx, r12
call fcn.1400b5124
mov r15, qword [rsi + 0x10]
jmp 0x140037302
call fcn.1400e79d0
int3
Function at 0x140037e20
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14018a040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x14015feb0]
lea r14, [rsp + 0x50]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.WriteAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x99
call fcn.14008b020
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1400913a0
test esi, esi
js 0x140037f30
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.140091640
test al, al
jne 0x140037f37
lea r14, [rsp + 0x2c]
mov dword [r14], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [r14]
lea rcx, [rsp + 0x30]
call fcn.1400916c0
lea rcx, [rsp + 0x50]
call fcn.140091430
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
cmp rcx, qword [0x14018a040]
je 0x140037f1f
call fcn.1400b6410
int3
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x140037efb
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.14010d100
jmp 0x140037ec0

Function at 0x140037f60
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x14018a040]
xor rax, rsp
mov qword [rsp + 0x90], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [0x14015feb0]
lea rdi, [rsp + 0x50]
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.GetLength
lea r8, str....._base_files_file_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0xaf
call fcn.14008b020
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400913a0
mov qword [rbx + 8], r14
mov qword [rbx], 0
call fcn.140091640
test al, al
jne 0x140038046
lea rdi, [rsp + 0x28]
mov qword [rdi], r14
mov rcx, qword [rsi]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb rsi, rsi
or rsi, qword [rdi]
lea rcx, [rsp + 0x30]
call fcn.1400916c0
lea rcx, [rsp + 0x50]
call fcn.140091430
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
cmp rcx, qword [0x14018a040]
je 0x140038036
call fcn.1400b6410
int3
mov rax, rsi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
xor r9d, r9d
call fcn.14010d100
jmp 0x140037fe9