joyce8/EMBER2024-capa huggingface dataset:
Function at 0x652819d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
test r8, r8
mov rbx, rcx
mov rdi, rdx
mov rsi, r8
jne 0x65281a00
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov ecx, dword [0x65287090]
test ecx, ecx
jle 0x65281b07
mov rax, qword [0x65287088]
xor r12d, r12d
nop dword [rax + rax]
mov rdx, qword [rax + 8]
cmp rbx, rdx
jb 0x65281a3d
mov r8, qword [rax + 0x10]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x65281ac0
add r12d, 1
add rax, 0x18
cmp r12d, ecx
jne 0x65281a20
mov rcx, rbx
call fcn.652828f0
test rax, rax
mov rbp, rax
je 0x65281b0f
movsxd r12, r12d
lea r12, [r12 + r12*2]
shl r12, 3
mov r13, r12
add r13, qword [0x65287088]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.652829e0
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x65287088]
mov rcx, qword [rax + r12 + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x65281b1e
mov eax, dword [rsp + 0x44]
cmp eax, 4
jne 0x65281ae0
add dword [0x65287090], 1
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp 0x65282c90
cmp eax, 0x40
je 0x65281ab9
mov r9, qword [0x65287088]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
add r9, r12
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x65281ab9
xor r12d, r12d
jmp 0x65281a4a
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.65281960
mov rax, qword [0x65287088]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + r12 + 8]
call fcn.65281960
nop
nop word [rax + rax]
jmp qword [sym.imp.msvcrt.dll_memcpy]

Function at 0x652825a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x65287900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x65287928]
test rbx, rbx
je 0x652825f4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rdi
mov rbp, rax
call rsi
test eax, eax
jne 0x652825eb
test rbp, rbp
je 0x652825eb
mov rax, qword [rbx + 8]
mov rcx, rbp
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x652825d0
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x65287900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x652827d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
je 0x652827e0
repz ret
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x652827d9
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400019b0
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r13, rdx
lea rdx, [0x14002312c]
mov rbx, rcx
call fcn.140004a20
mov r12, rax
test rax, rax
je 0x140001ae8
mov edx, dword [r13 + 4]
xor r8d, r8d
add edx, dword [rbx + 0x1000]
mov rcx, rax
call fcn.140019ac0
test eax, eax
js 0x140001ac0
mov ebx, dword [r13 + 0xc]
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov r14, rax
test rax, rax
je 0x140001afd
cmp byte [r13 + 0x10], 1
je 0x140001aa8
mov rdi, rax
mov ebp, 0x2000
test rbx, rbx
jne 0x140001a38
jmp 0x140001a89
add rdi, rsi
sub rbx, rsi
je 0x140001a89
cmp rbx, 0x2000
mov rsi, rbp
mov r9, r12
mov rcx, rdi
cmovbe rsi, rbx
mov r8d, 1
mov rdx, rsi
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001a30
call qword [sym.imp.msvcrt.dll__errno]
lea r9, [r13 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
mov edx, dword [rax]
lea rcx, str.fread
call fcn.140002cd0
mov rcx, r14
xor r14d, r14d
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rax, r14
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor r8d, r8d
mov r9, rax
mov rdx, r13
mov rcx, r12
call fcn.140001590
test eax, eax
je 0x140001a89
jmp 0x140001a7e
call qword [sym.imp.msvcrt.dll__errno]
lea r9, [r13 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
xor r14d, r14d
mov edx, dword [rax]
lea rcx, str.fseek
call fcn.140002cd0
jmp 0x140001a89
lea rdx, [r13 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
xor r14d, r14d
call fcn.140002bc0
jmp 0x140001a91
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rsp + 0x20], ebx
lea r9, [r13 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
mov edx, dword [rax]
lea rcx, str.malloc
call fcn.140002cd0
jmp 0x140001a89
Function at 0x140001b30
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [rdx + 0x11], 0x6e
mov r12, rcx
mov r15, rdx
mov r13, r8
je 0x140001c60
lea rdx, [0x140023254]
mov rcx, r8
call fcn.140004a20
mov r14, rax
test rax, rax
je 0x140001d69
lea rdx, [0x14002312c]
mov rcx, r12
call fcn.140004a20
mov r13, rax
test rax, rax
je 0x140001ce8
mov edx, dword [r15 + 4]
xor r8d, r8d
mov rcx, rax
add edx, dword [r12 + 0x1000]
call fcn.140019ac0
test eax, eax
js 0x140001d40
cmp byte [r15 + 0x10], 1
je 0x140001ca0
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x140001d92
mov ebx, dword [r15 + 0xc]
test rbx, rbx
je 0x140001d00
mov edi, 0x2000
jmp 0x140001c06
mov r9, r14
mov r8d, 1
mov rdx, rsi
mov rcx, r12
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140001d10
sub rbx, rsi
je 0x140001d00
cmp rbx, 0x2000
mov rsi, rdi
mov r9, r13
mov rcx, r12
cmovbe rsi, rbx
mov r8d, 1
mov rdx, rsi
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001be0
call qword [sym.imp.msvcrt.dll__errno]
lea r9, [r15 + 0x12]
mov ebx, 0xffffffff
lea r8, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
mov edx, dword [rax]
lea rcx, str.fread
call fcn.140002cd0
mov rcx, r12
call sub.msvcrt.dll_free
jmp 0x140001cb3
call fcn.1400019b0
mov r12, rax
test rax, rax
je 0x140001cc5
mov rcx, rax
mov rdx, r13
call fcn.140004ac0
mov rcx, r12
mov ebx, eax
call sub.msvcrt.dll_free
test ebx, ebx
js 0x140001cd0
mov eax, ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
xor r9d, r9d
mov r8, r14
mov rdx, r15
mov rcx, r13
call fcn.140001590
mov ebx, eax
mov rcx, r13
call sub.msvcrt.dll_fclose
mov rcx, r14
call sub.msvcrt.dll_fclose
jmp 0x140001c86
mov ebx, 0xffffffff
nop word [rax + rax]
lea rdx, [r15 + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.140002bc0
jmp 0x140001c86
lea rdx, [r15 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov ebx, 0xffffffff
call fcn.140002bc0
jmp 0x140001cbb
xor ebx, ebx
jmp 0x140001c51
call qword [sym.imp.msvcrt.dll__errno]
lea r9, [r15 + 0x12]
mov ebx, 0xffffffff
lea r8, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
mov edx, dword [rax]
lea rcx, str.fwrite
call fcn.140002cd0
jmp 0x140001c51
call qword [sym.imp.msvcrt.dll__errno]
lea r9, [r15 + 0x12]
mov ebx, 0xffffffff
lea r8, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
mov edx, dword [rax]
lea rcx, str.fseek
call fcn.140002cd0
jmp 0x140001cb3
call qword [sym.imp.msvcrt.dll__errno]
lea r9, [r15 + 0x12]
mov ebx, 0xffffffff
lea r8, str.Failed_to_extract__s:_failed_to_open_target_file__n
mov edx, dword [rax]
lea rcx, str.fopen
call fcn.140002cd0
jmp 0x140001c86
call qword [sym.imp.msvcrt.dll__errno]
lea r9, [r15 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
or ebx, 0xffffffff
mov edx, dword [rax]
lea rcx, str.malloc
call fcn.140002cd0
jmp 0x140001cb3
Function at 0x140008920
Capabilities:
Create directory

Disassembly:
push r15
mov eax, 0x3038
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000f510
sub rsp, rax
mov rbx, r8
mov r14, rcx
mov rcx, rdx
mov rdi, rdx
call sub.msvcrt.dll_strlen
mov rcx, rbx
mov rsi, rax
call sub.msvcrt.dll_strlen
lea rax, [rsi + rax + 1]
cmp rax, 0xfff
ja 0x140008a20
mov dword [rsp + 0x20], 0x5c
lea rsi, [rsp + 0x30]
mov r9, rdi
lea r8, str._s_c
mov edx, 0x1000
mov rcx, rsi
mov ebp, 0x1000
lea r12, [0x140024fa5]
lea r13, [rsp + 0x1030]
call fcn.140008900
mov edx, 0x5c
mov rcx, rbx
movsxd rdi, eax
call sub.msvcrt.dll_strchr
sub rbp, rdi
add rdi, rsi
mov r15, rax
test rax, rax
jne 0x1400089d6
jmp 0x140008a30
lea rcx, [r15 + 1]
mov edx, 0x5c
call sub.msvcrt.dll_strchr
mov r15, rax
test rax, rax
je 0x140008a30
mov qword [rsp + 0x20], rbx
mov r9d, r15d
mov rcx, rdi
mov r8, r12
sub r9d, ebx
mov rdx, rbp
call fcn.140008900
mov rcx, rsi
call fcn.1400049d0
test eax, eax
jne 0x1400089c0
mov rdx, r13
mov rcx, rsi
mov r8d, 0x1000
call fcn.140009f60
mov rdx, qword [r14 + 0x3038]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400089c0
mov eax, 0xffffffff
jmp 0x140008a32
xor eax, eax
add rsp, 0x3038
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

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

Disassembly:
push r14
mov eax, 0x1028
push r13
push r12
push rbx
call fcn.14000f510
sub rsp, rax
mov r13, rdx
lea rdx, [0x140024faa]
call fcn.140004a20
mov r12, rax
test rax, rax
je 0x140008b4c
mov rcx, r13
lea rdx, [0x140024fad]
call fcn.140004a20
mov r13, rax
test rax, rax
je 0x140008b54
lea rbx, [rsp + 0x20]
jmp 0x140008ae7
mov r8d, 0x1000
mov r9, r12
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fread
mov r8, rax
test rax, rax
je 0x140008b30
mov r9, r13
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140008b20
mov rcx, r13
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x140008b20
mov rcx, r12
call sub.msvcrt.dll_feof
test eax, eax
je 0x140008aa8
xor r14d, r14d
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rcx, r13
call sub.msvcrt.dll_fclose
mov eax, r14d
add rsp, 0x1028
pop rbx
pop r12
pop r13
pop r14
ret
mov rcx, r13
mov r14d, 0xffffffff
call sub.msvcrt.dll_clearerr
jmp 0x140008af6
mov rcx, r12
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140008af3
mov rcx, r12
mov r14d, 0xffffffff
call sub.msvcrt.dll_clearerr
jmp 0x140008af6
mov r14d, 0xffffffff
jmp 0x140008b06
mov rcx, r12
mov r14d, 0xffffffff
call sub.msvcrt.dll_fclose
jmp 0x140008b06
Function at 0x140008b70
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rdi, rcx
mov ecx, 0x2000
mov rsi, rdx
mov rbx, r8
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x140008c60
xor edx, edx
mov r8d, 2
mov rcx, rdi
call fcn.140019ac0
test eax, eax
js 0x140008c60
mov rcx, rdi
call fcn.140019b70
movsxd r8, eax
cmp r8, rbx
jb 0x140008c60
mov r13d, 1
sub r13, rbx
mov qword [rsp + 0x28], r13
cmp r8, 0x2000
mov r14d, 0x2000
cmovae r14, r8
lea rbp, [r14 - 0x2000]
sub r8, rbp
mov r15, r8
cmp rbx, r8
ja 0x140008c60
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call fcn.140019ac0
test eax, eax
js 0x140008c60
mov r9, rdi
mov r8, r15
mov edx, 1
mov rcx, r12
call sub.msvcrt.dll_fread
cmp rax, r15
jne 0x140008c60
mov rdx, qword [rsp + 0x28]
lea r15, [rdx + rax]
jmp 0x140008c4a
lea r13, [r15 - 1]
mov r8, rbx
mov rdx, rsi
lea rcx, [r12 + r13]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140008c80
mov r15, r13
test r15, r15
jne 0x140008c30
lea r8, [rbp + rbx - 1]
test rbp, rbp
jne 0x140008bd9
nop dword [rax]
xor r13d, r13d
mov rcx, r12
call sub.msvcrt.dll_free
mov rax, r13
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r13, [r14 + r15 - 0x2001]
jmp 0x140008c63
Function at 0x140008c90
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push r15
mov eax, 0x2298
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000f510
sub rsp, rax
mov r15, qword [sym.imp.msvcrt.dll__snwprintf]
lea r8, str._s
mov edx, 0x1000
lea r14, [rsp + 0x290]
mov r13, rcx
mov r9, rcx
mov rcx, r14
call r15
cmp eax, 0xfff
jg 0x140008df8
lea ebx, [rax - 1]
mov eax, 0x1000
lea rsi, [rsp + 0x40]
mov rcx, r14
sub eax, ebx
mov rdx, rsi
mov dword [rsp + 0x2c], eax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140008df8
movsxd rax, ebx
mov rbp, qword [sym.imp.KERNEL32.dll_FindNextFileW]
lea rbx, [rsp + 0x6c]
lea rdi, [r14 + rax*2]
movsxd rax, dword [rsp + 0x2c]
mov qword [rsp + 0x30], rdi
lea rdi, [0x140024fca]
mov qword [rsp + 0x38], rax
mov rdx, rdi
mov rcx, rbx
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140008d90
lea rdx, [0x140024fce]
mov rcx, rbx
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140008d90
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov r9, rbx
lea r8, [0x140024fd4]
call r15
cmp eax, dword [rsp + 0x2c]
jge 0x140008d90
mov eax, dword [rsp + 0x40]
mov rcx, r14
test al, 0x10
je 0x140008dd0
test ah, 4
je 0x140008d89
cmp dword [rsp + 0x64], 0xa000000c
je 0x140008df0
call fcn.140008c90
nop
mov rdx, rsi
mov rcx, r12
call rbp
test eax, eax
jne 0x140008d30
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
setne al
movzx eax, al
neg eax
add rsp, 0x2298
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, rsi
mov rcx, r12
call rbp
test eax, eax
jne 0x140008d30
jmp 0x140008d9c
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140008d90
mov eax, 0xffffffff
jmp 0x140008db9
Function at 0x140009040
Capabilities:
Enumerate process modules

Disassembly:
push r15
mov eax, 0x4048
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000f510
sub rsp, rax
mov rdi, rcx
mov dword [rsp + 0x3c], 0
lea rbx, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
xor edx, edx
mov r9, rbx
mov rcx, rax
mov rsi, rax
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x14000908e
mov ebp, dword [rsp + 0x3c]
test ebp, ebp
jne 0x1400090b0
xor r14d, r14d
mov eax, r14d
add rsp, 0x4048
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, ebp
mov edx, 1
call sub.msvcrt.dll_calloc
mov r12, rax
test rax, rax
je 0x14000908e
mov r9, rbx
mov r8d, ebp
mov rdx, rax
mov rcx, rsi
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
jne 0x1400090f0
xor r14d, r14d
mov rcx, r12
call sub.msvcrt.dll_free
jmp 0x140009091
lea r14, [rsp + 0x2040]
lea rcx, [rdi + 0x2022]
mov r8d, 0x1000
mov rdx, r14
call fcn.140009f60
test rax, rax
je 0x1400090d9
mov rcx, r14
call sub.msvcrt.dll_wcslen
mov r15, rax
mov eax, dword [rsp + 0x3c]
shr eax, 3
je 0x1400090d9
mov eax, eax
mov rbx, r12
mov rbp, r12
xor r13d, r13d
lea rax, [r12 + rax*8]
lea rdi, [rsp + 0x40]
mov qword [rsp + 0x28], rax
nop
mov rdx, qword [rbp]
mov r9d, 0x1000
mov r8, rdi
mov rcx, rsi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x14000917b
mov r8, r15
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x14000917b
mov rdx, qword [rbp]
movsxd rax, r13d
add r13d, 1
mov qword [r12 + rax*8], rdx
add rbp, 8
cmp rbp, qword [rsp + 0x28]
jne 0x140009140
test r13d, r13d
je 0x1400090d9
lea eax, [r13 - 1]
xor r14d, r14d
mov r13, qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r15, [r12 + rax*8 + 8]
jmp 0x1400091b5
add rbx, 8
cmp rbx, r15
je 0x1400090dc
mov rdx, qword [rbx]
mov r9d, 0x1000
mov r8, rdi
mov rcx, rsi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x1400091a8
mov ebp, 0x20
jmp 0x1400091dd
sub ebp, 1
je 0x1400091a8
mov rcx, qword [rbx]
call r13
test eax, eax
jne 0x1400091d8
add r14d, 1
jmp 0x1400091a8

Function at 0x140009250
Capabilities:
Query environment variable

Disassembly:
push r13
mov eax, 0x4028
push r12
call fcn.14000f510
sub rsp, rax
xor r8d, r8d
xor edx, edx
call fcn.140009f60
lea r12, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rax
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub eax, 1
cmp eax, 0xffe
ja 0x1400092d0
lea r13, [rsp + 0x2020]
mov r8d, 0x1000
mov rcx, r12
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
sub eax, 1
cmp eax, 0xffe
ja 0x1400092d0
xor r8d, r8d
xor edx, edx
mov rcx, r13
call fcn.140009e70
add rsp, 0x4028
pop r12
pop r13
ret
xor eax, eax
add rsp, 0x4028
pop r12
pop r13
ret
Function at 0x14000e840
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.1400217a0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400217a0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14000e8b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400323c4]
mov r12, rcx
test ebx, ebx
jle 0x14000e9e0
mov rax, qword [0x1400323c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000e8fc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000e983
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000e8e0
mov rcx, r12
call fcn.14000f250
mov rsi, rax
test rax, rax
je 0x14000ea02
mov rax, qword [0x1400323c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14000f380
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400323c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000e9e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000e97c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000e990
add dword [0x1400323c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400323c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000e97c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000e840
nop dword [rax]
xor ebx, ebx
jmp 0x14000e907
mov rax, qword [0x1400323c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000e840
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000e840
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000eec0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140032420]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140032400]
test rbx, rbx
je 0x14000ef14
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000ef0b
test r12, r12
je 0x14000ef0b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000eef0
lea rcx, [0x140032420]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000f250
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140029730]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000f270
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000f278
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000f270
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000f2c5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000f2bc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000f270
add rax, 0x28
cmp rax, r9
jne 0x14000f2a8
xor eax, eax
ret

Function at 0x14000f2d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140029730]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000f2f0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000f2f8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000f2f0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x14000f380
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140029730]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000f3a0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14000f3a8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140010b70
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140029800]
mov rax, qword [rsi]
test rax, rax
je 0x140010c00
cmp qword [rax + 0x30], 0
jne 0x140010c20
lea rbx, [0x140022088]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140010bd0
cmp qword [rax + 0x30], 0
jne 0x140010bf0
lea rdx, [0x140022088]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x140021840
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140015a70
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140010bb2
test rax, rax
jne 0x140010bf0
call fcn.140015a70
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140010bc0
call fcn.140015a70
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140010b90
test rax, rax
jne 0x140010c20
call fcn.140015a70
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140010b9b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x140010c30
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140010d42
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140010d1a
add rax, 1
cmp rax, 0x6b
je 0x140010d37
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140010d10
cmp edx, 0x6a
je 0x140010d37
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140010d2b