joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001119a
Capabilities:
Enumerate processes

Disassembly:
jmp 0x1400145a0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x498
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xbe
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4b8]
mov rax, qword [0x140022040]
xor rax, rbp
mov qword [rbp + 0x460], rax
lea rcx, [0x1400280f4]
call fcn.1400115b4
xor edx, edx
mov ecx, 2
call fcn.1400112ad
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x140014607
xor al, al
jmp 0x14001469f
mov dword [rbp + 0x30], 0x238
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.140011384
test eax, eax
jne 0x14001462d
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14001469f
lea rdx, [rbp + 0x5c]
lea rcx, [rbp + 0x428]
call fcn.1400111ea
mov qword [rbp + 0x458], rax
mov rdx, qword [rbp + 0x490]
mov rcx, qword [rbp + 0x458]
call fcn.14001117c
mov byte [rbp + 0x404], al
lea rcx, [rbp + 0x428]
call fcn.14001151e
movzx eax, byte [rbp + 0x404]
test eax, eax
je 0x140014682
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14001469f
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.140011528
test eax, eax
jne 0x14001462d
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001de80]
call fcn.1400114dd
mov rax, rdi
mov rcx, qword [rbp + 0x460]
xor rcx, rbp
call fcn.1400112c6
lea rsp, [rbp + 0x478]
pop rdi
pop rbp
ret

Function at 0x14001132a
Capabilities:
Terminate process

Disassembly:
jmp 0x140016560
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 0x1400113f7
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hide graphical window
Set console window title

Disassembly:
jmp 0x140014a60
push rbp
push rdi
sub rsp, 0x1c8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140022040]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x1400280f4]
call fcn.1400115b4
xor eax, eax
cmp eax, 1
je 0x140014bc5
lea rdx, str.RobloxPlayerBeta.exe
lea rcx, [rbp + 0x148]
call fcn.1400111ea
nop
lea rcx, [rbp + 0x148]
call fcn.14001119a
mov byte [rbp + 0x124], al
lea rcx, [rbp + 0x148]
call fcn.14001151e
movzx eax, byte [rbp + 0x124]
test eax, eax
je 0x140014bb5
lea r9, [rbp + 4]
mov r8d, 0x40
mov edx, 1
mov rcx, qword [sym.imp.KERNEL32.dll_FreeConsole]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [sym.imp.KERNEL32.dll_FreeConsole]
mov byte [rax], 0xc3
call qword [sym.imp.KERNEL32.dll_AllocConsole]
lea rcx, str.Print_Exploit
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov qword [rbp + 0x28], rax
mov dword [rsp + 0x30], 0x63
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov edx, 1
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, str.Welcome_To_Print_Exploit
call fcn.1400112a3
lea rcx, str._nDoing_Address_Stuff...
call fcn.1400112a3
mov qword [rbp + 0x48], 0x5f2d70
lea rcx, str.Done__n
call fcn.1400112a3
lea rcx, str.Printing...
call fcn.1400112a3
lea rdx, str.print_works_how_epic
xor ecx, ecx
call qword [rbp + 0x48]
lea rcx, str.Done__n
call fcn.1400112a3
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140014a9d
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001df00]
call fcn.1400114dd
mov eax, edi
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.1400112c6
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret

Function at 0x140011406
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400178b0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400178d0
xor al, al
jmp 0x140017951
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400178e3
xor al, al
jmp 0x140017951
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 0x14001790d
xor al, al
jmp 0x140017951
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140017921
xor al, al
jmp 0x140017951
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140017933
xor al, al
jmp 0x140017951
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001794f
xor al, al
jmp 0x140017951
mov al, 1
add rsp, 0x38
ret
Function at 0x140004884
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [0x140020514]
cmp r15, 1
jne 0x140004953
push qword [0x140020604]
pop rcx
call fcn.14000dd04
mov r15, rax
and r15, r15
jle 0x1400048e9
mov rcx, qword [0x140020604]
call fcn.14000dd0c
mov rcx, qword [0x140020604]
call fcn.14000dd20
or rax, rax
je 0x1400048e9
mov rbp, qword [0x14002060c]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e1bc
jmp 0x1400048c6
push qword [0x1400205f4]
pop rcx
call fcn.14000dd04
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004953
push 5
push 0
push 1
push qword [0x1400205f4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009060
mov rcx, qword [0x1400205f4]
call fcn.14000dd0c
mov rcx, qword [0x1400205f4]
call fcn.14000dd20
or rax, rax
je 0x140004953
mov rbp, qword [0x1400205fc]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004930
mov rax, 1
jmp 0x14000495f
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006b38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test dword [rax], esi
std
adc byte [rsi - 0x6c4913a4], dl
sbb eax, 0xb394a6e1
and byte [rsi + rax*8], ah
invalid
sti
cmp bl, bl
cmp ah, byte [rbx]
mov al, byte [rbx + 0x67]
sahf
fistp qword [rbx]
cmp ebx, dword [rax + 0x34]
sub dword [rax], esi
xor byte [rsi + 0x45], bl
or byte [rax - 0x5594fcbe], bh
sub edi, ebp
xor ebp, 0x899b5b6a
add esi, dword [rcx]
mov esi, 0x8b7b68c2
shr ch, 0xc8
invalid
mov r8d, 0xf02538c3
js 0x14003f73d
sub eax, 0x5809b710
sbb eax, 0x74e5a56d
leave
cmp al, 0xd
repz ret 0xf6cf
lock sbb dword [0x135df2b07], esi
in al, 0x81
add dword [rbx], 0xb712f8d9
pop rsi
invalid
fistp dword [rax]
sbb ah, byte [rax]
cmp eax, dword [rax]
fnstsw word [rbp + 0x3a]
sub edx, dword [rax + rbp*4]
jno str.8q
add dword [rbx], 0xb712f8d9
pop rsi
invalid
invalid
add eax, dword [rsi - 0x5b]
ret 0xf04b
mov ebp, 0x44af266b
movabs byte [0x7138e984767130f3], al
cmp byte [rcx - 0x34], dh
cmp byte [rcx - 0x34], dh
invalid
Function at 0x140001360
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rsi
sub rsp, 0x60
xor edx, edx
lea rcx, str.plaintext_size:__d__CiphertextSize:__d_n_n
mov r8d, 0x1d0
call fcn.140001010
lea rax, [0x1400050b0]
mov dword [rsp + 0x38], 0x1d0
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
lea rax, [0x140005090]
xor esi, esi
mov qword [rsp + 0x40], rax
lea rax, [0x140005080]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x28], esi
call fcn.140001070
test eax, eax
jne 0x1400013c8
lea eax, [rsi - 1]
add rsp, 0x60
pop rsi
ret
mov qword [rsp + 0x70], rbx
lea rdx, str.PlainText
mov qword [rsp + 0x78], rbp
lea rcx, str.unsigned_char__s____
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x58], r14
mov r14, qword [rsp + 0x20]
mov qword [rsp + 0x50], r15
mov r15d, dword [rsp + 0x28]
call fcn.140001010
mov ebx, esi
test r15, r15
je 0x140001484
mov qword [rsp + 0x88], r12
mov rdi, rsi
lea r12, [r15 - 1]
mov rbp, r14
nop word [rax + rax]
mov eax, ebx
and eax, 0x8000000f
jge 0x140001430
dec eax
or eax, 0xfffffff0
inc eax
test eax, eax
jne 0x140001440
lea rcx, [0x1400034f0]
call fcn.140001010
movzx edx, byte [rbp]
cmp rdi, r12
jae 0x140001457
lea rcx, str.0x_0.2X_
call fcn.140001010
jmp 0x14000146f
lea rcx, str.0x_0.2X
call fcn.140001010
lea rcx, [0x140003514]
call fcn.140001010
inc ebx
inc rbp
movsxd rdi, ebx
cmp rdi, r15
jb 0x140001420
mov r12, qword [rsp + 0x88]
lea rbp, [r15 - 5]
mov r15, qword [rsp + 0x50]
lea rbx, [0x140005880]
test rbp, rbp
je 0x1400014c3
mov rdi, rbx
sub r14, rbx
nop
movzx eax, byte [r14 + rdi]
lea rcx, str.0x_0.2X_
mov edx, eax
mov byte [rdi], al
call fcn.140001010
inc esi
lea rdi, [rdi + 1]
movsxd rax, esi
cmp rax, rbp
jb 0x1400014a0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xor ecx, ecx
mov edx, 0x1cb
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, qword [rsp + 0x58]
mov edx, 3
mov rdi, qword [rsp + 0x80]
mov r8, rax
mov rbp, qword [rsp + 0x78]
mov rcx, rax
nop dword [rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rbx]
lea rbx, [rbx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rbx - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rbx - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rbx - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rbx - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rbx - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rbx - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rbx - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x140001500
movups xmm0, xmmword [rbx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rcx + 0x30], xmm1
mov rax, qword [rbx + 0x40]
mov qword [rcx + 0x40], rax
movzx eax, word [rbx + 0x48]
mov word [rcx + 0x48], ax
movzx eax, byte [rbx + 0x4a]
mov byte [rcx + 0x4a], al
call r8
mov rbx, qword [rsp + 0x70]
xor eax, eax
add rsp, 0x60
pop rsi
ret
Function at 0x140001e70
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001eba
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001eba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001eba
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001eba
cmp dword [rcx + 0x84], 0xe
jbe 0x140001eba
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ebc
xor al, al
add rsp, 0x28
ret
Function at 0x2fc4d63e0
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 0x2fc4d6de2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f9108]
test eax, eax
je 0x2fc4d6e7a
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f9110]
mov qword [rbp - 8], rax
jmp 0x2fc4d6e5e
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 0x2fc4d6e52
cmp qword [rbp - 0x10], 0
je 0x2fc4d6e52
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 0x2fc4d6e18
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d6e7b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d6f80
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d6fa8
mov eax, 0
jmp 0x2fc4d6ff6
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 0x2fc4d6fd1
mov eax, 0
jmp 0x2fc4d6ff6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d6ff1
mov eax, 0
jmp 0x2fc4d6ff6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d6ffc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d707a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d7071
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d7071
mov rax, qword [rbp - 8]
jmp 0x2fc4d708f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d7044
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x6e5ed6f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6e6375e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6e5ed878
mov rax, qword [0x6e6375e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6e5ed73c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6e5ed7c5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6e5ed720
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6e5ed8ad
mov rax, qword [0x6e6375e8]
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 [0x6e6375e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6e5ed890
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6e5ed7be
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6e5ed820
add dword [0x6e6375e4], 1
cmp edi, 8
jae 0x6e5ed7f3
test dil, 4
jne 0x6e5ed864
test edi, edi
je 0x6e5ed7e8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6e5ed87f
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 0x6e5ed7e8
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 0x6e5ed80c
jmp 0x6e5ed7e8
add rsi, qword [0x6e6375e8]
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 0x6e5ed7be
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 0x6e5ed7e8
xor esi, esi
jmp 0x6e5ed747
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6e5ed7e8
mov rax, qword [0x6e6375e8]
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 0x6e5ee000
Capabilities:
Get thread local storage value

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

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

Function at 0x6e5ee2b0
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 0x6e5ee2f1
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 0x6e5ee2e8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6e5ee2f3
add rax, 0x28
cmp rax, r9
jne 0x6e5ee2d4
xor eax, eax
ret

Function at 0x6e5ee390
Capabilities:
Enumerate pe sections

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

Function at 0x6e5ee500
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6e6341f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6e5ee520
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6e5ee518
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 0x6e5ee57d
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 0x6e5ee574
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6e5ee584
add rax, 0x28
cmp rax, r9
jne 0x6e5ee560
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6e5ee5a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6e6341f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6e5ee60e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6e5ee60e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6e5ee60e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6e5ee60e
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 0x6e5ee605
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6e5ee615
add rcx, 0x28
cmp rcx, rax
jne 0x6e5ee5f0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6e5ee628
jmp 0x6e5ee60e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6e5ee636
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6e5ee60e
test r9d, r9d
jg 0x6e5ee620
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6e5ee990
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