joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff70ca11ec0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x7ff70ca1e104]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x7ff70ca12070
mov rax, qword [0x7ff70ca1e108]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x7ff70ca11f0c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x7ff70ca11f97
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x7ff70ca11ef0
mov rcx, r12
call fcn.7ff70ca12970
mov rbp, rax
test rax, rax
je 0x7ff70ca120cd
mov rax, qword [0x7ff70ca1e108]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.7ff70ca12aa0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x7ff70ca1e108]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x7ff70ca120b2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x7ff70ca11f90
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x7ff70ca12020
add dword [0x7ff70ca1e104], 1
cmp ebx, 8
jae 0x7ff70ca11fc8
test bl, 4
jne 0x7ff70ca12080
test ebx, ebx
je 0x7ff70ca11fb9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x7ff70ca120a0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x7ff70ca11fb9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x7ff70ca11ffa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
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 rdi, qword [0x7ff70ca1e108]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x7ff70ca11f90
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.7ff70ca11e50
xor edi, edi
jmp 0x7ff70ca11f17
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x7ff70ca11fb9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x7ff70ca11fb9
mov rax, qword [0x7ff70ca1e108]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.7ff70ca11e50
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.7ff70ca11e50
nop
nop dword [rax]
Function at 0x7ff70ca125e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x7ff70ca1e160]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x7ff70ca1e140]
test rbx, rbx
je 0x7ff70ca12634
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 0x7ff70ca1262b
test r12, r12
je 0x7ff70ca1262b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x7ff70ca12610
lea rcx, [0x7ff70ca1e160]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x7ff70ca12970
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x7ff70ca1aac0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x7ff70ca129e9
mov rcx, r10
call fcn.7ff70ca12840
test eax, eax
je 0x7ff70ca129e9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x7ff70ca129e6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x7ff70ca129dd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x7ff70ca129e9
add r8, 0x28
cmp r8, r9
jne 0x7ff70ca129c8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x1400047e4
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400128b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r14, str.en_US
mov rsi, rcx
mov qword [rcx], r14
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsp + 0x30], ax
mov ebx, 0x10
mov r9d, ebx
lea rdx, [0x140008110]
lea rax, [0x140004df0]
mov r8d, 0x1b3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_private_l1_1_0.dll__o_bsearch
xor ebp, ebp
test rax, rax
jne 0x14000485f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400048e5
cmp dword [rax + 0xc], 0x7c
jne 0x14000486c
cmp word [rax + 8], 0x7f
jne 0x14000484f
mov r8, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r8 + rcx*2], bp
jne 0x140004873
inc rcx
cmp rcx, 0x7ffffffe
jbe 0x140004890
mov word [rsp + 0x38], bp
jmp 0x1400048d7
lea rax, [rsp + 0x38]
mov r9d, ebp
sub r8, rax
lea rdx, [rsp + 0x38]
lea rax, [rbx - 0x10]
add rax, rcx
je 0x1400048c0
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400048c0
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x1400048a0
test rbx, rbx
jne 0x1400048cf
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], bp
test r9d, r9d
jns 0x1400048e1
mov ecx, 0x7a
jmp 0x140004854
test ecx, ecx
jne 0x1400048f1
mov rcx, qword [rsp + 0x78]
call fcn.14000494c
jmp 0x14000492a
mov rbx, rbp
mov rdi, rbp
mov rdx, qword [rdi + r14]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14000491c
inc rbx
add rdi, 0x30
cmp rdi, 0x750
jb 0x1400048f7
jmp 0x14000492a
lea rax, [rbx + rbx*2]
shl rax, 4
add rax, r14
mov qword [rsi], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400050e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
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]
add eax, 0xb66a4500
ficomp word [rdx]
xchg ecx, eax
pop rsp
mov cl, 0x4c
push rsp
add eax, 0xb4468f5c
adc eax, 0x2e6cc0bb
in eax, dx
mov edi, dword [rax + 0x37]
xchg edi, eax
loopne 0x14001ace9
push rbx
sub eax, dword [rsi]
mov ebp, 0x13596914
xchg esp, eax
in eax, dx
push qword [rdi + 0x34c8a97]
sbb eax, 0x169c4820
mov bh, 0x91
test dword [rbx + rbx*4], eax
stc
int1
mov ebp, 0xf7bf457b
xchg edi, eax
out 0x3a, al
stc
invalid
Function at 0x140011145
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400204e0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14003d0f6]
call fcn.140011aaa
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x140020537
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140020643
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x1400205dc
cmp qword [rbp + 0x28], 0
jle 0x1400205dc
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14002057c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140011a14
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x140020632
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140020632
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x14001162c
Capabilities:
Terminate process

Disassembly:
jmp 0x140022420
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x14001178a
Capabilities:
Parse pe header

Disassembly:
jmp 0x140024350
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140024370
xor al, al
jmp 0x1400243f1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140024383
xor al, al
jmp 0x1400243f1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400243ad
xor al, al
jmp 0x1400243f1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400243c1
xor al, al
jmp 0x1400243f1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400243d3
xor al, al
jmp 0x1400243f1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400243ef
xor al, al
jmp 0x1400243f1
mov al, 1
add rsp, 0x38
ret
Function at 0x140011938
Capabilities:
Enumerate processes

Disassembly:
jmp 0x14001a3b0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x428
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x448]
mov rax, qword [0x140035018]
xor rax, rbp
mov qword [rbp + 0x3f8], rax
lea rcx, [0x14003d0f5]
call fcn.140011aaa
mov dword [rbp + 0x10], 0x238
xor edx, edx
mov ecx, 2
call fcn.140011528
mov qword [rbp + 0x268], rax
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x268]
call fcn.1400116b8
test eax, eax
je 0x14001a462
mov rdx, qword [rbp + 0x420]
lea rcx, [rbp + 0x3c]
call qword [sym.imp.ucrtbased.dll_wcscmp]
test eax, eax
jne 0x14001a44e
mov rcx, qword [rbp + 0x268]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x18]
jmp 0x14001a46f
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x268]
call fcn.140011942
test eax, eax
jne 0x14001a427
mov rcx, qword [rbp + 0x268]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14002d260]
call fcn.1400118d4
mov rax, rdi
mov rcx, qword [rbp + 0x3f8]
xor rcx, rbp
call fcn.14001154b
lea rsp, [rbp + 0x408]
pop rdi
pop rbp
ret
Function at 0x140011a8c
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001ab80
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x140035018]
xor rax, rbp
mov qword [rbp + 0x1a0], rax
lea rcx, [0x14003d0f6]
call fcn.140011aaa
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x14001abe6
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001abed
mov al, 1
jmp 0x14001ad47
call fcn.14001132a
mov rcx, qword [rbp + 0x1d0]
mov rcx, qword [rcx]
mov qword [rbp + 0x198], rcx
mov edx, eax
mov rcx, qword [rbp + 0x1d0]
mov rax, qword [rbp + 0x198]
call qword [rax + 0x18]
mov dword [rbp + 0x164], eax
call fcn.14001132a
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.1400118f2
movzx eax, al
test eax, eax
je 0x14001ac48
xor al, al
jmp 0x14001ad47
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x194], eax
cmp dword [rbp + 0x194], 0
je 0x14001acad
cmp dword [rbp + 0x194], 1
je 0x14001acb8
cmp dword [rbp + 0x194], 3
je 0x14001ad36
jmp 0x14001ad45
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14001ad08
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14001ad08
xor al, al
jmp 0x14001ad47
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001ad23
mov dword [rbp + 0x194], 1
jmp 0x14001ad2d
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x14001ad47
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001ad47
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14002da40]
call fcn.1400118d4
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.14001154b
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x6d8ab050
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8cc5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8ab1d8
mov rax, qword [0x6d8cc5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8ab09c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8ab125
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8ab080
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8ab20d
mov rax, qword [0x6d8cc5e8]
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 [0x6d8cc5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8ab1f0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8ab11e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8ab180
add dword [0x6d8cc5e4], 1
cmp edi, 8
jae 0x6d8ab153
test dil, 4
jne 0x6d8ab1c4
test edi, edi
je 0x6d8ab148
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8ab1df
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 0x6d8ab148
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 0x6d8ab16c
jmp 0x6d8ab148
add rsi, qword [0x6d8cc5e8]
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 0x6d8ab11e
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 0x6d8ab148
xor esi, esi
jmp 0x6d8ab0a7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8ab148
mov rax, qword [0x6d8cc5e8]
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 0x6d8ab960
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8cc8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8cc8a0]
test rbx, rbx
je 0x6d8ab9b4
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 0x6d8ab9ab
test rsi, rsi
je 0x6d8ab9ab
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d8ab990
lea rcx, [0x6d8cc8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d8abbf0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d8abc00
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d8abc10
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d8abc51
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d8abc48
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8abc53
add rax, 0x28
cmp rax, r9
jne 0x6d8abc34
xor eax, eax
ret

Function at 0x6d8abcf0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8c91f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d8abd5d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8abd5d
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 0x6d8abd5d
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 0x6d8abd54
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8abd5f
add rax, 0x28
cmp rax, r9
jne 0x6d8abd40
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d8abe60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8c91f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8abe80
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8abe78
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 0x6d8abedd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8abed4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8abee4
add rax, 0x28
cmp rax, r9
jne 0x6d8abec0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8abf00
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8c91f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8abf6e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8abf6e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8abf6e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8abf6e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d8abf65
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8abf75
add rcx, 0x28
cmp rcx, rax
jne 0x6d8abf50
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8abf88
jmp 0x6d8abf6e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8abf96
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8abf6e
test r9d, r9d
jg 0x6d8abf80
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8ac300
Capabilities:
Write file on windows

Disassembly:
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x10000b47c
Capabilities:
Get disk size

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x80
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x100014100]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor esi, esi
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x3c], esi
mov dword [rsp + 0x38], esi
mov word [rsp + 0x68], cx
lea eax, [rsi + 0x3a]
mov word [rsp + 0x6a], ax
lea eax, [rsi + 0x5c]
mov word [rsp + 0x6c], ax
mov word [rsp + 0x6e], si
lea rax, [r11 - 0x50]
mov qword [r11 - 0x68], rax
lea r9, [r11 - 0x4c]
lea r8, [r11 - 0x58]
lea rdx, [r11 - 0x54]
lea rcx, [r11 - 0x20]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
cmp eax, esi
jne 0x10000b58f
call sub.KERNEL32.dll_GetLastError
mov edi, eax
lea rdx, [rsp + 0x68]
lea rcx, [0x100003e50]
call qword [sym.imp.unbcl.dll_public:_static_class_UnBCL::String____ptr64___cdecl_UnBCL::String::Format_unsigned_short_int_const____ptr64_]
mov rdx, rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::SmartPtr_class_UnBCL::String_::constructor_class_UnBCL::String____ptr64____ptr64]
nop
lea ecx, [rsi + 0x40]
call qword [sym.imp.unbcl.dll_public:_static_void____ptr64___cdecl_UnBCL::Object::operator_new_unsigned_long_long_unsigned___int64__]
mov rbx, rax
mov qword [rsp + 0x60], rax
cmp rax, rsi
je 0x10000b565
lea rcx, [rsp + 0x50]
call qword [sym.imp.unbcl.dll_public:_class_UnBCL::String____ptr64___cdecl_UnBCL::SmartPtr_class_UnBCL::String_::operator___void_const___ptr64]
mov rcx, rax
call qword [sym.imp.unbcl.dll_public:_unsigned_short_int_const____ptr64___cdecl_UnBCL::String::get_CString_void_const___ptr64]
mov r8, rax
mov edx, edi
mov rcx, rbx
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::Win32Exception::constructor_unsigned_long_int__unsigned_short_int_const____ptr64____ptr64]
lea r11, [0x100004398]
mov qword [rbx], r11
jmp 0x10000b568
mov rbx, rsi
lea rdx, [0x100003e90]
mov rcx, rbx
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::Exception::AddStackTrace_char_const____ptr64____ptr64]
mov qword [rsp + 0x40], rbx
lea rdx, [0x100011998]
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll__CxxThrowException
nop
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.10000f390
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret