joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ee30
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [rcx + 0x28]
test rax, rax
mov rbx, rcx
je 0x42ee60
cmp rax, qword [rcx + 0x20]
je 0x42ee60
sub rax, 1
cmp qword [rcx + 0x30], rax
jae 0x42ee60
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x10]
call sub.msvcrt.dll_feof
test eax, eax
jne 0x42ee52
mov rcx, qword [rbx + 0x10]
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x42ee52
mov rsi, qword [rbx + 0x20]
mov rax, qword [rbx + 0x28]
mov rcx, qword [rbx + 0x18]
cmp rsi, rax
jne 0x42eeb2
lea rax, [rsi + rsi]
test rsi, rsi
mov esi, 0x1000
cmovne rsi, rax
mov rdx, rsi
call fcn.00482910
mov qword [rbx + 0x20], rsi
mov rcx, rax
mov qword [rbx + 0x18], rax
mov rax, qword [rbx + 0x28]
mov r9, qword [rbx + 0x10]
sub rsi, rax
add rcx, rax
mov edx, 1
mov r8, rsi
call sub.msvcrt.dll_fread
mov rcx, qword [rbx + 0x10]
mov rsi, rax
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x42ee52
add qword [rbx + 0x28], rsi
test rsi, rsi
setne al
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x440df0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movzx eax, byte [rdx + 0x8d]
test al, al
mov r12, rcx
mov r15, rdx
mov r13d, r8d
jne 0x440e99
movzx ebp, byte [rdx + 0x8b]
test bpl, bpl
jne 0x440e99
mov edx, dword [rdx + 0x84]
test edx, edx
jne 0x440e99
cmp dword [r15 + 0x80], 0xffffffff
je 0x440eb0
movzx eax, word [r15 + 0x4e]
and ax, 0xf000
cmp ax, 0x3000
jne 0x440ee0
mov rax, qword [r15 + 8]
mov r8d, r13d
mov edx, 3
mov rcx, r12
lea r9, str._s_is_a_block_device
mov ebp, 1
mov qword [rsp + 0x20], rax
call fcn.0043bda0
mov ecx, dword [r15 + 0x80]
mov byte [r15 + 0x8b], bpl
call sub.msvcrt.dll__close_1
movzx eax, byte [r15 + 0x8b]
mov dword [r15 + 0x80], 0xffffffff
xor eax, 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r15
call fcn.004406e0
test al, al
jne 0x440e38
mov r9d, r13d
xor r8d, r8d
mov rdx, r15
mov byte [rsp + 0x4f], al
mov rcx, r12
call fcn.004409b0
movzx eax, byte [rsp + 0x4f]
jmp 0x440e99
cmp ax, 0x8000
je 0x440fb0
xor r14d, r14d
mov ecx, 0x2010
mov esi, 0x2000
call fcn.00482890
xor ebx, ebx
mov rdi, rax
mov ecx, dword [r15 + 0x80]
lea rdx, [rdi + rbx]
mov r8d, esi
sub r8d, ebx
call sub.msvcrt.dll__read_1
cdqe
test rax, rax
jle 0x440f43
add rbx, rax
cmp rsi, rbx
jne 0x440f01
test r14b, r14b
jne 0x440fc3
add rsi, rsi
mov rcx, rdi
lea rdx, [rsi + 0x10]
call fcn.00482910
mov rdi, rax
jmp 0x440f01
jne 0x440fd0
cmp rsi, rbx
je 0x440f70
test r14b, r14b
je 0x440f70
mov rax, qword [r15 + 8]
lea r9, str._s_is_shorter_than_expected
mov r8d, r13d
xor edx, edx
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.0043bda0
lea rax, [r15 + 0x60]
mov qword [rsp + 0x20], rbx
mov r8, rdi
mov rcx, r12
mov rdx, qword [r12 + 0x4b0]
mov qword [rsp + 0x30], rax
lea rax, [r15 + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsi + 0x10]
call fcn.00437c20
mov byte [r15 + 0x8d], 1
mov qword [r15 + 0x28], rax
jmp 0x440e70
mov rsi, qword [r15 + 0x60]
mov r14d, 1
lea rcx, [rsi + 0x10]
jmp 0x440ef7
mov rbx, rsi
jmp 0x440f70
mov r8, qword [r15 + 8]
mov r9d, r13d
mov edx, 3
mov rcx, r12
mov ebp, 1
call fcn.0043be80
mov rcx, rdi
call fcn.0049a918
jmp 0x440e70
Function at 0x4443a0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
movzx eax, byte [rcx + 4]
mov rdi, rcx
mov rcx, rax
shl rax, 4
mov rsi, rdx
mov rdx, rax
lea rax, [0x004fb3a0]
add rax, rdx
mov edx, dword [rax]
cmp edx, 1
je 0x444400
test edx, edx
je 0x444470
cmp edx, 2
jne 0x4443f2
mov rcx, qword [rdi + 0x18]
mov r9, rsi
mov edx, 1
mov r8d, dword [rdi + 0x10]
call sub.msvcrt.dll_fwrite
nop
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rdi + 0x10]
mov edx, dword [rax + 8]
mov rbp, qword [rax]
test edx, edx
je 0x4443f2
lea r12, [rsp + 0x26]
xor ebx, ebx
jmp 0x444453
mov rcx, r12
call fcn.00443110
mov r9, rsi
mov edx, 1
mov rcx, r12
lea rbx, [rax + rbx - 1]
mov r8d, 0xa
call sub.msvcrt.dll_fwrite
mov rax, qword [rdi + 0x10]
add rbx, 1
mov edx, dword [rax + 8]
cmp rdx, rbx
jbe 0x4443f2
lea rdx, [rbp + rbx]
test byte [rdx], 0x80
jne 0x444420
mov rax, qword [rax]
mov rdx, rsi
movzx ecx, byte [rax + rbx]
call sub.msvcrt.dll_fputc
jmp 0x444443
movzx edx, word [rdi + 8]
test dl, 2
jne 0x4444a3
and edx, 0x10
jne 0x444400
mov rbx, qword [rax + 8]
movzx ecx, byte [rbx]
add rbx, 1
mov rdx, rsi
call sub.msvcrt.dll_putc
movzx ecx, byte [rbx]
test ecx, ecx
jne 0x444485
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x004fb900]
sub ecx, 0x25
movsxd rcx, ecx
mov rbx, qword [rax + rcx*8]
jmp 0x444482
Function at 0x44f170
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r12, rdx
mov edx, dword [rcx + 8]
mov r13d, r8d
mov rbp, rcx
lea eax, [r8 - 1]
cmp eax, 0x20
mov eax, 0x22
cmovbe r13d, eax
test edx, edx
je 0x44f2f0
mov rax, qword [rcx]
xor ebx, ebx
mov rsi, qword [rax]
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov edi, eax
nop word cs:[rax + rax]
mov rdx, r12
mov rcx, rsi
add ebx, 1
call sub.msvcrt.dll_fputs
cmp dword [rbp + 8], ebx
jbe 0x44f240
mov rax, qword [rbp]
mov r14d, ebx
mov rsi, qword [rax + r14*8]
mov rcx, rsi
call sub.msvcrt.dll_strlen
add edi, eax
test ebx, ebx
mov r15, rax
je 0x44f1c0
test r13d, r13d
je 0x44f221
cmp r13d, edi
jae 0x44f221
mov r9, r12
mov r8d, 4
mov edx, 1
lea rcx, [0x004fc622]
call sub.msvcrt.dll_fwrite
mov rax, qword [rbp]
lea edi, [r15 + 1]
mov rsi, qword [rax + r14*8]
jmp 0x44f1c0
mov rdx, r12
mov ecx, 0x20
add edi, 1
call sub.msvcrt.dll_putc
mov rax, qword [rbp]
mov rsi, qword [rax + r14*8]
jmp 0x44f1c0
add edi, 1
mov rdx, r12
mov ecx, 0x3a
call sub.msvcrt.dll_putc
mov eax, dword [rbp + 0x18]
test r13d, r13d
setne r14b
xor ebx, ebx
test eax, eax
jne 0x44f298
jmp 0x44f2d0
mov r9, r12
mov r8d, 4
mov edx, 1
lea rcx, [0x004fc622]
call sub.msvcrt.dll_fwrite
lea edi, [r15 + 1]
mov rax, qword [rbp + 0x10]
mov rdx, r12
add ebx, 1
mov rcx, qword [rax + rsi*8]
call sub.msvcrt.dll_fputs
cmp dword [rbp + 0x18], ebx
jbe 0x44f2d0
mov rax, qword [rbp + 0x10]
mov esi, ebx
mov rcx, qword [rax + rsi*8]
call sub.msvcrt.dll_strlen
add edi, eax
mov r15, rax
cmp r13d, edi
jae 0x44f2b6
test r14b, r14b
jne 0x44f262
mov rdx, r12
mov ecx, 0x20
add edi, 1
call sub.msvcrt.dll_putc
jmp 0x44f280
mov rdx, r12
mov ecx, 0xa
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.msvcrt.dll_putc
mov edi, 1
jmp 0x44f243
Function at 0x468bc0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
mov ebp, edx
mov rdi, rcx
mov rdx, r8
mov ecx, ebp
xor r8d, r8d
mov rbx, r9
call fcn.0048ee80
test rax, rax
js 0x468c40
mov r9, qword [rsp + 0x78]
mov rcx, rdi
mov r8, r12
mov rdx, rbx
xor edi, edi
call fcn.00467610
test rax, rax
mov qword [rsi + 8], rax
je 0x468c33
mov qword [rsi], rax
mov r8d, ebx
mov rdx, rax
mov ecx, ebp
mov qword [rsi + 0x10], rbx
call sub.msvcrt.dll__read_1
test eax, eax
js 0x468ca0
cdqe
mov edi, 1
cmp rax, rbx
jb 0x468c70
mov eax, edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call qword [sym.imp.msvcrt.dll__errno]
mov rcx, qword [rsp + 0x78]
xor edi, edi
mov r8d, dword [rax]
lea rdx, str.lseek
call r12
mov eax, edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor r8d, r8d
mov rcx, qword [rsp + 0x78]
xor edi, edi
lea rdx, str.file_too_short
call r12
mov rcx, qword [rsi + 8]
call fcn.0049a918
mov eax, edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call qword [sym.imp.msvcrt.dll__errno]
mov rcx, qword [rsp + 0x78]
lea rdx, str.read
mov r8d, dword [rax]
call r12
mov rcx, qword [rsi + 8]
call fcn.0049a918
jmp 0x468c33
Function at 0x47d550
Capabilities:
Read file on windows

Disassembly:
push r13
mov eax, 0x1118
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.0048deb0
sub rsp, rax
mov ebp, 0x1000
movabs rax, 0xefcdab8967452301
mov qword [rsp + 0x20], rax
lea r12, [rsp + 0x20]
mov rdi, rcx
mov r13, rdx
mov dword [rsp + 0x38], 0
lea rsi, [rsp + 0xc0]
movabs rax, 0x1032547698badcfe
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
nop dword [rax]
xor ebx, ebx
mov r8, rbp
mov r9, rdi
mov edx, 1
lea rcx, [rsi + rbx]
sub r8, rbx
call sub.msvcrt.dll_fread
add rbx, rax
cmp rbx, 0xfff
ja 0x47d5da
test rax, rax
jne 0x47d5b2
test rax, rax
je 0x47d5f1
mov r8, r12
mov edx, 0x1000
mov rcx, rsi
call fcn.0047c9a0
jmp 0x47d5b0
mov rcx, rdi
call sub.msvcrt.dll_ferror
test eax, eax
mov edi, eax
jne 0x47d626
lea rbp, [rsp + 0x20]
test rbx, rbx
jne 0x47d62d
mov rdx, r13
mov rcx, rbp
call fcn.0047d200
mov eax, edi
add rsp, 0x1118
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov edi, 1
jmp 0x47d614
mov r8, rbp
mov rdx, rbx
mov rcx, rsi
call fcn.0047d2a0
jmp 0x47d609
Function at 0x47fcc0
Capabilities:
Get common file path

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [0x005e0840]
test rax, rax
je 0x47fce0
add rsp, 0x28
pop rbx
pop rsi
ret
xor edx, edx
xor ecx, ecx
mov rsi, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rsi
test eax, eax
mov ebx, eax
jne 0x47fd10
mov rax, qword [0x005e0840]
test rax, rax
je 0x47fd40
add rsp, 0x28
pop rbx
pop rsi
ret
mov ecx, eax
call fcn.00482890
mov ecx, ebx
mov qword [0x005e0840], rax
mov rdx, rax
call rsi
test eax, eax
jne 0x47fcf3
mov rcx, qword [0x005e0840]
call fcn.0049a918
mov qword [0x005e0840], 0
lea rcx, [0x005cc610]
call fcn.004829c0
mov qword [0x005e0840], rax
jmp 0x47fcd2

Function at 0x480e90
Capabilities:
Delete file

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov edx, dword [rcx + 0x18]
test edx, edx
mov rbx, rcx
jle 0x480eaa
mov rax, qword [rcx + 0x80]
call qword [rax + 0x18]
mov edx, dword [rbx + 0x2c]
test edx, edx
jle 0x480ebe
mov rax, qword [rbx + 0x80]
mov rcx, rbx
call qword [rax + 0x18]
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x480ecc
call sub.msvcrt.dll_fclose
mov rcx, qword [rbx + 0x68]
test rcx, rcx
je 0x480eda
call sub.msvcrt.dll_fclose
cmp qword [rbx + 0x40], 0
je 0x480f70
mov edx, dword [rbx + 0x28]
test edx, edx
jne 0x480f60
mov rcx, qword [rbx + 0x38]
call fcn.0049a918
mov rcx, qword [rbx + 0x40]
call fcn.0049a918
mov rcx, qword [rbx + 0x48]
call fcn.0049a918
mov eax, dword [rbx + 0x70]
test eax, eax
jle 0x480f3c
xor esi, esi
mov rax, qword [rbx + 0x78]
mov rcx, qword [rax + rsi*8]
call sub.msvcrt.dll_remove
mov rax, qword [rbx + 0x78]
mov rcx, qword [rax + rsi*8]
add rsi, 1
call fcn.0049a918
cmp dword [rbx + 0x70], esi
jg 0x480f10
mov rcx, qword [rbx + 0x78]
call fcn.0049a918
mov rax, qword [rbx + 0x80]
mov rax, qword [rax + 0x40]
test rax, rax
je 0x480f51
mov rcx, rbx
call rax
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.0049a918
mov rcx, qword [rbx + 0x20]
call fcn.0049a918
jmp 0x480eec
and dword [rbx], 0xfffffffe
lea r9, [rsp + 0x24]
mov edx, 1
mov rcx, rbx
lea r8, [rsp + 0x28]
call fcn.00480190
jmp 0x480ee5
Function at 0x48cf50
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x005e0f04]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x48d0d8
mov rax, qword [0x005e0f08]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x48cf9c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x48d025
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x48cf80
mov rcx, rbx
call fcn.0048dbf0
test rax, rax
mov r12, rax
je 0x48d10d
mov rax, qword [0x005e0f08]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.0048dd20
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x005e0f08]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x48d0f0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x48d01e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x48d080
add dword [0x005e0f04], 1
cmp edi, 8
jae 0x48d053
test dil, 4
jne 0x48d0c4
test edi, edi
je 0x48d048
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x48d0df
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x48d048
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x48d06c
jmp 0x48d048
add rsi, qword [0x005e0f08]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x48d01e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004a08d0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x48d048
xor esi, esi
jmp 0x48cfa7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x48d048
mov rax, qword [0x005e0f08]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.004a08d0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.004a08d0
nop
nop dword [rax]

Function at 0x48d860
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x005e11e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x005e11c0]
test rbx, rbx
je 0x48d8b4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x48d8ab
test rsi, rsi
je 0x48d8ab
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x48d890
lea rcx, [0x005e11e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x48dbf0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x005cfbc0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x48dc5d
mov rcx, r8
call fcn.0048dad0
test eax, eax
je 0x48dc5d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x48dc5d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x48dc54
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x48dc5f
add rax, 0x28
cmp rax, r9
jne 0x48dc40
xor eax, eax
add rsp, 0x28
ret

Function at 0x48e7a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
call sub.msvcrt.dll__errno
test rbx, rbx
mov dword [rax], 0
je 0x48e930
cmp byte [rbx], 0
je 0x48e8f1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x48e920
test al, 0x10
je 0x48e8f1
lea rdi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rdi
mov rbx, rdi
call sub.msvcrt.dll__fullpath
mov edx, dword [rbx]
add rbx, 4
lea eax, [rdx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x48e7fe
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea rdx, [rbx + 2]
mov ecx, eax
cmove rbx, rdx
add cl, al
sbb rbx, 3
sub rbx, rdi
lea rcx, [rbx + 0x24b]
call sub.msvcrt.dll_malloc
test rax, rax
mov rsi, rax
je 0x48e910
lea r9, [rax + 0x244]
mov rdx, rdi
lea rbp, [rbx + 1]
mov rcx, r9
mov r8, rbp
call sub.msvcrt.dll_memcpy
cmp byte [rsi + 0x244], 0
mov r9, rax
jne 0x48e8d0
add rbx, rax
mov eax, 0x2a
mov ecx, 0x20
lea rdx, [rsi + 0x130]
mov word [rbx], ax
xor eax, eax
mov qword [rsi + 0x238], 0xffffffffffffffff
mov rdi, rdx
mov dword [rsi + 0x240], 0
mov qword [rsi + 0x128], 0
rep stosq qword [rdi], rax
mov dword [rdi], 0
mov rax, rsi
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
movzx eax, byte [rsi + rbx + 0x243]
add rbx, r9
cmp al, 0x5c
je 0x48e875
cmp al, 0x2f
je 0x48e875
mov edx, 0x5c
mov word [rbx], dx
lea rbx, [r9 + rbp]
jmp 0x48e875
call sub.msvcrt.dll__errno
xor esi, esi
mov dword [rax], 0x14
mov rax, rsi
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll__errno
mov dword [rax], 0xc
jmp 0x48e8b7
call sub.msvcrt.dll__errno
xor esi, esi
mov dword [rax], 2
jmp 0x48e8b7
call sub.msvcrt.dll__errno
xor esi, esi
mov dword [rax], 0xe
jmp 0x48e8b7

Function at 0x4a08d0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp fcn.00401510
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 fcn.0049ab10
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.0049ab10
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140003f45
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x140003f75
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.140003f0f
mov rcx, rax
jmp 0x140003f7a
mov ecx, 0
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.msvcrt.dll_fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000e040
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, rcx
lea rax, [rbp + 0x28]
mov ecx, 2
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
mov qword [rbp - 8], rax
call fcn.140014040
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 [rbp - 8]
mov ecx, 2
call fcn.140014040
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 0x14000e0b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
movsxd rsi, dword [0x14001b154]
mov rbx, rcx
test esi, esi
jle 0x14000e1e0
mov rax, qword [0x14001b158]
xor r9d, r9d
add rax, 0x18
nop dword [rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000e0fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000e183
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000e0e0
mov rcx, rbx
call fcn.14000eb60
mov rdi, rax
test rax, rax
je 0x14000e202
mov rax, qword [0x14001b158]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000eca0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14001b158]
lea rdx, [rbp - 0x30]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000e1e7
mov eax, dword [rbp - 0xc]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000e17c
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000e190
add dword [0x14001b154], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 2
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14001b158]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000e17c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000e040
nop word [rax + rax]
xor esi, esi
jmp 0x14000e108
mov rax, qword [0x14001b158]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000e040
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000e040
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14000e790
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea r13, [0x14001b1c0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001b1a0]
test rbx, rbx
je 0x14000e7f5
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [rbx]
call r12
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000e7ec
test eax, eax
jne 0x14000e7ec
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000e7d0
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

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

Disassembly:
mov rdx, qword [0x140017af0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000eb80
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000eb88
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000eb80
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000ebdd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000ebd4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000eb80
add rax, 0x28
cmp rax, r9
jne 0x14000ebc0
xor eax, eax
ret

Function at 0x14000ebe0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140017af0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000ebff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000ec08
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000ebff
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000eca0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140017af0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000ecbf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000ecc8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret