joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015c8c
Capabilities:
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x140015c9a
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
shr eax, 4
and al, 1
add rsp, 0x28
ret

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

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x140015d7e
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x28
ret

Function at 0x140016d94
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [rcx]
mov rdi, rdx
lea rdx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140016dc4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
je 0x140016dc4
xor al, al
jmp 0x140016dd4
mov ecx, dword [rsp + 0x30]
mov al, 1
shl rcx, 0x20
add rcx, rbx
mov qword [rdi], rcx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140016e98
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov rbx, r9
and dword [rsp + 0x58], 0
lea r9, [rsp + 0x58]
and qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x140016f48
Capabilities:
Read file on windows

Disassembly:
cmp r8d, dword [0x140043138]
cmova r8d, dword [0x140043138]
jmp fcn.140016e98

Function at 0x140017004
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rbx, rdx
mov rdi, rcx
call fcn.140016f5c
test al, al
je 0x14001703c
cmp qword [rsp + 0x40], rbx
jne 0x14001703c
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetEndOfFile]
test eax, eax
setne al
jmp 0x14001703e
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400170f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
cmp r8d, dword [0x140043138]
mov rbx, r9
mov rcx, qword [rcx]
lea r9, [rsp + 0x50]
cmova r8d, dword [0x140043138]
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
mov ecx, dword [rsp + 0x50]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret
Function at 0x14001af30
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rbx, rcx
call fcn.14001c3b8
cmp eax, 0xffffffff
je 0x14001af69
test al, 0x10
je 0x14001af69
mov eax, 1
jmp 0x14001b0e9
mov rcx, rbx
call fcn.14001ea7c
xor r15d, r15d
test al, al
je 0x14001af7f
xor al, al
jmp 0x14001b0e9
mov rcx, rbx
call fcn.14001e750
mov r14d, eax
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.140018750
nop
lea rcx, [rbp - 0x60]
call fcn.14001a0f4
mov esi, 1
test eax, eax
js 0x14001afc7
mov edx, dword [rbp - 0x58]
lea ecx, [rdx - 1]
cmp eax, ecx
jne 0x14001afc7
cmp edx, esi
je 0x14001b0dd
mov dword [rbp - 0x58], ecx
mov rax, qword [rbp - 0x60]
mov word [rax + rcx*2], r15w
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x50]
call fcn.14001866c
nop
mov edi, dword [rbp - 0x58]
mov rbx, qword [rbp - 0x60]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x14001b08e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
jne 0x14001b03e
lea rcx, [rbp - 0x40]
call fcn.14001bac8
lea rcx, [rbp - 0x18]
call fcn.1400187a8
nop
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.14001bc7c
test al, al
jne 0x14001b02a
mov rcx, qword [rbp - 0x18]
call sub.mfc140u.dll_operator
jmp 0x14001b03e
mov ebx, dword [rbp - 0x20]
shr ebx, 4
mov rcx, qword [rbp - 0x18]
call sub.mfc140u.dll_operator
and bl, sil
jne 0x14001b08e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
je 0x14001b0d0
lea rcx, [rbp - 0x60]
call fcn.14001a0f4
mov edi, eax
cmp eax, esi
jl 0x14001b0d0
mov rbx, qword [rbp - 0x60]
jne 0x14001b070
cmp word [rbx], 0x5c
je 0x14001b0d0
cmp word [rbx], 0x2f
je 0x14001b0d0
lea eax, [rdi + 1]
cmp r14d, eax
jae 0x14001b0d0
cmp edi, dword [rbp - 0x58]
jae 0x14001afdc
mov dword [rbp - 0x58], edi
mov word [rbx + rdi*2], r15w
jmp 0x14001afd8
cmp edi, dword [rbp - 0x48]
jge 0x14001b0d3
lea ecx, [rdi + 1]
mov rax, qword [rbp - 0x50]
lea rcx, [rax + rcx*2]
call fcn.14001e3a8
test eax, eax
jns 0x14001b0ac
mov edi, dword [rbp - 0x48]
jmp 0x14001b0b0
inc edi
add edi, eax
mov r8d, edi
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x60]
call fcn.14001a1a0
xor edx, edx
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x14001b08e
mov sil, r15b
mov rcx, qword [rbp - 0x50]
call sub.mfc140u.dll_operator
nop
mov rcx, qword [rbp - 0x60]
call sub.mfc140u.dll_operator
mov al, sil
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001b1b8
Capabilities:
Check for time delay via gettickcount
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140043158]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbp, r9
mov rsi, r8
mov r14b, dl
mov r12, rcx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
lea ebx, [rax*4]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov edi, eax
xor edi, ebx
shl edi, 0xc
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
mov r15d, eax
xor r15d, edi
xor edi, edi
mov ebx, edi
lea r13d, [rdi + 1]
mov rdx, r12
mov rcx, rsi
call fcn.140018bdc
test r14b, r14b
je 0x14001b2a4
mov edx, r15d
lea r8, [rsp + 0x20]
mov r9d, 8
mov ecx, edx
shr edx, 4
and ecx, 0xf
cmp ecx, 0xa
sbb al, al
and al, 0xf9
add al, 0x37
add al, cl
mov byte [r8], al
add r8, r13
sub r9, r13
jne 0x14001b233
mov byte [rsp + 0x28], dil
test rbp, rbp
je 0x14001b287
mov ecx, dword [rsi + 8]
cmp dword [rsi + 0xc], ecx
jne 0x14001b26e
mov rcx, rsi
call fcn.140019534
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
mov r8d, 0x2e
mov eax, ecx
inc ecx
mov word [rdx + rax*2], r8w
mov word [rdx + rcx*2], di
mov dword [rsi + 8], ecx
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140018fa4
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
add eax, 2
cmove eax, r13d
add r15d, eax
mov r14b, r13b
test rbp, rbp
je 0x14001b2bb
lea rdx, str..tmp
mov rcx, rsi
call fcn.140018fa4
mov rcx, qword [rsi]
call fcn.14001bc24
test al, al
je 0x14001b2d4
mov ecx, UnRegisterTypeLib
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
jmp 0x14001b30c
test rbp, rbp
je 0x14001b2eb
mov rdx, qword [rsi]
xor r8d, r8d
mov rcx, rbp
call fcn.140016d3c
test al, al
jmp 0x14001b2f8
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x14001b325
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x50
je 0x14001b30c
cmp eax, 0xb7
jne 0x14001b318
add ebx, r13d
cmp ebx, 0x64
jb 0x14001b215
mov rax, qword [rsi]
mov dword [rsi + 8], edi
mov word [rax], di
xor al, al
jmp 0x14001b328
mov al, r13b
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140020390
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001b350
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.14001c3b8
cmp eax, 0xffffffff
je 0x14001b37d
test al, 0x10
jne 0x14001b37d
test al, 1
je 0x14001b37d
and eax, 0xfffffffe
mov rcx, rbx
mov edx, eax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
test eax, eax
je 0x14001b38e
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
je 0x14001b38e
mov al, 1
jmp 0x14001b390
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001b674
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x140043158]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rcx
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x20], cx
mov rax, qword [rdi]
mov dword [rdi + 8], ecx
mov word [rax], cx
mov ecx, operator
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetTempPathW]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov ebx, eax
call fcn.140018bdc
lea eax, [rbx - 1]
cmp eax, 0x103
setbe al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140020390
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret
Function at 0x14001b77c
Capabilities:
Delete directory
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x38]
call fcn.14001bac8
lea rcx, [rbp - 0x10]
call fcn.1400187a8
nop
mov rdx, qword [rdi]
lea rcx, [rbp - 0x38]
call fcn.14001bc7c
xor r14d, r14d
test al, al
je 0x14001b7db
mov ebx, dword [rbp - 0x18]
mov eax, ebx
shr eax, 4
test al, 1
jne 0x14001b803
mov ecx, 0x10b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop
mov rcx, qword [rbp - 0x10]
call sub.mfc140u.dll_operator
xor al, al
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
shr ebx, 0xa
mov rcx, qword [rbp - 0x10]
call sub.mfc140u.dll_operator
test bl, 1
jne 0x14001b8fa
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.14001866c
nop
mov ebx, dword [rbp - 0x58]
cmp dword [rbp - 0x54], ebx
jne 0x14001b839
lea rcx, [rbp - 0x60]
call fcn.140019534
mov ebx, dword [rbp - 0x58]
mov rcx, qword [rbp - 0x60]
mov eax, ebx
mov edx, 0x5c
mov word [rcx + rax*2], dx
inc ebx
mov word [rcx + rbx*2], r14w
mov dword [rbp - 0x58], ebx
or qword [rbp - 0x50], 0xffffffffffffffff
lea rcx, [rbp - 0x48]
call fcn.1400187a8
nop
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x50]
call fcn.14001c6e8
lea rcx, [rbp - 0x38]
call fcn.14001bac8
lea rcx, [rbp - 0x10]
call fcn.1400187a8
nop
jmp 0x14001b8c3
cmp ebx, dword [rbp - 0x58]
jae 0x14001b894
mov dword [rbp - 0x58], ebx
mov rax, qword [rbp - 0x60]
mov word [rax + rbx*2], r14w
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x60]
call fcn.140018f58
mov eax, dword [rbp - 0x18]
shr eax, 4
test al, 1
je 0x14001b8b6
lea rcx, [rbp - 0x60]
call fcn.14001b77c
jmp 0x14001b8bf
mov rcx, qword [rbp - 0x60]
call fcn.14001b350
test al, al
je 0x14001b920
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x50]
call fcn.14001c590
test al, al
jne 0x14001b883
mov rcx, qword [rbp - 0x10]
call sub.mfc140u.dll_operator
nop
mov rcx, qword [rbp - 0x48]
call sub.mfc140u.dll_operator
lea rcx, [rbp - 0x50]
call fcn.14001bb14
nop
mov rcx, qword [rbp - 0x60]
call sub.mfc140u.dll_operator
xor edx, edx
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
test eax, eax
je 0x14001b7e4
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x14001b7e6
mov rcx, qword [rbp - 0x10]
call sub.mfc140u.dll_operator
nop
mov rcx, qword [rbp - 0x48]
call sub.mfc140u.dll_operator
lea rcx, [rbp - 0x50]
call fcn.14001bb14
nop
mov rcx, qword [rbp - 0x60]
jmp 0x14001b7df

Function at 0x14001b9e8
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14001c3b8
Capabilities:
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
add rsp, 0x28
ret
Function at 0x14002114c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x140021196
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140021196
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140021196
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140021196
cmp dword [rcx + 0x84], 0xe
jbe 0x140021196
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140021198
xor al, al
add rsp, 0x28
ret
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 [0x1400054d0]
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 [0x1400054e0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call sym._amsg_exit
jmp 0x14000123c
mov rax, qword [0x1400054e0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400054e0]
mov dword [rax], 1
mov rax, qword [0x140005520]
mov rdx, rax
mov rax, qword [0x140005510]
mov rcx, rax
call sym._initterm
jmp 0x14000123c
mov dword [0x140009024], 1
mov rax, qword [0x1400054e0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x140005500]
mov rdx, rax
mov rax, qword [0x1400054f0]
mov rcx, rax
call sym._initterm
mov rax, qword [0x1400054e0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400054d0]
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 [0x140005420]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x140005420]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call sym._pei386_runtime_relocator
mov rax, qword [sym._gnu_exception_handler]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1400054c0]
mov qword [rdx], rax
lea rax, [sym.__mingw_invalidParameterHandler]
mov rcx, rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov eax, dword [0x140009004]
lea rdx, [0x140009008]
mov ecx, eax
call sym.duplicate_ppstrings
call sym.__main
mov rax, qword [0x140005450]
mov rax, qword [rax]
mov rdx, qword [0x140009010]
mov qword [rax], rdx
mov rcx, qword [0x140009010]
mov rdx, qword [0x140009008]
mov eax, dword [0x140009004]
mov r8, rcx
mov ecx, eax
call sym.main
mov dword [0x14000901c], eax
mov eax, dword [0x140009020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14000901c]
mov ecx, eax
call sym.exit
mov eax, dword [0x140009024]
test eax, eax
jne 0x14000136c
call sym._cexit
mov eax, dword [0x14000901c]
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 [0x140005480]
mov dword [rax], 1
mov rax, qword [0x140005490]
mov dword [rax], 1
mov rax, qword [0x1400054a0]
mov dword [rax], 1
mov rax, qword [0x140005440]
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 0x140001a40
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002712
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x1400027aa
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x14000278e
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 0x140002782
cmp qword [rbp - 0x10], 0
je 0x140002782
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 0x140002748
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400027ab
nop
add rsp, 0x30
pop rbp
ret
Function at 0x6dabffb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6dae15e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6dac0138
mov rax, qword [0x6dae15e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6dabfffc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6dac0085
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6dabffe0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6dac016d
mov rax, qword [0x6dae15e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6dae15e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6dac0150
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6dac007e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6dac00e0
add dword [0x6dae15e4], 1
cmp edi, 8
jae 0x6dac00b3
test dil, 4
jne 0x6dac0124
test edi, edi
je 0x6dac00a8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6dac013f
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 0x6dac00a8
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 0x6dac00cc
jmp 0x6dac00a8
add rsi, qword [0x6dae15e8]
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 0x6dac007e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6dac00a8
xor esi, esi
jmp 0x6dac0007
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6dac00a8
mov rax, qword [0x6dae15e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6dac08c0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6dae18c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6dae18a0]
test rbx, rbx
je 0x6dac0914
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 0x6dac090b
test rsi, rsi
je 0x6dac090b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6dac08f0
lea rcx, [0x6dae18c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]