joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140097424
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, qword [rdx + 0x10]
mov rdi, rdx
mov rbp, rcx
jne 0x14009749b
mov rcx, qword [rdi + 8]
mov r8d, 5
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14009746b
call fcn.140075cd4
mov rcx, qword [rdi + 8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
jne 0x140097485
call fcn.140075cd4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
jne 0x14009749b
call fcn.140075cd4
call fcn.14001b964
cmp qword [rax + 0x68], 0
je 0x1400974b5
mov rdx, rbx
mov rcx, rbp
call fcn.1400968e8
mov rbx, rax
mov edx, esi
mov rcx, rbx
call fcn.140097710
mov rcx, qword [rbp + 0xf8]
mov rsi, rax
test rcx, rcx
je 0x1400974dc
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xf8], 0
test rsi, rsi
je 0x1400974eb
mov rbx, rsi
mov qword [rbp + 0xf8], rsi
or dword [rdi + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rdi + 0x10], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14009ca08
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 0x28]
xor ebx, ebx
mov rdi, rcx
cmp dword [rax - 0x10], ebx
je 0x14009ca77
call fcn.140018820
test rax, rax
je 0x14009ca46
mov rdx, qword [rax]
mov rcx, rax
mov rax, qword [rdx + 0xe8]
call qword [case.0x14004578e.0]
test rax, rax
je 0x14009ca46
mov rbx, qword [rax + 0x40]
mov rdx, qword [rdi + 0x18]
mov rcx, rbx
mov r9, qword [rdi + 0x10]
mov r8, qword [rdi + 0x28]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rdx
xor edx, edx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
jb 0x14009ca77
mov eax, 1
jmp 0x14009ca79
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400ebe28
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rdx + 8]
mov rbx, rcx
mov ecx, 0x104
xor edi, edi
mov rsi, rdx
cmp eax, ecx
ja 0x1400ebfd7
je 0x1400ebffd
cmp eax, 0xa1
jb 0x1400ec048
cmp eax, 0xa2
jbe 0x1400ebffd
cmp eax, 0xa3
jbe 0x1400ec048
cmp eax, 0xa5
jbe 0x1400ebffd
cmp eax, 0xa6
jbe 0x1400ec048
cmp eax, 0xa8
jbe 0x1400ebffd
cmp eax, 0x100
jne 0x1400ec048
cmp dword [rbx + 0x154], 0xffffffff
je 0x1400ebffd
lea ecx, [rdi + 0x11]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1400ebffd
mov rax, qword [rsi + 0x10]
sub rax, 0x21
je 0x1400ebf31
cmp rax, 1
jne 0x1400ebffd
mov eax, dword [rbx + 0x154]
mov r8d, dword [rbx + 0x150]
lea esi, [rax + 1]
add eax, r8d
cmp esi, eax
jge 0x1400ec066
mov eax, esi
mov rcx, rbx
cdq
idiv r8d
mov rax, qword [rbx]
mov ebp, edx
mov rax, qword [rax + 0x4f8]
call qword [case.0x14004578e.0]
test eax, eax
jne 0x1400ebf79
mov ecx, dword [rbx + 0x154]
inc esi
mov r8d, dword [rbx + 0x150]
add ecx, r8d
cmp esi, ecx
jl 0x1400ebef7
jmp 0x1400ec066
mov ecx, dword [rbx + 0x154]
lea esi, [rcx - 1]
add esi, dword [rbx + 0x150]
cmp esi, ecx
jle 0x1400ec066
mov eax, esi
mov rcx, rbx
cdq
idiv dword [rbx + 0x150]
mov rax, qword [rbx]
mov ebp, edx
mov rax, qword [rax + 0x4f8]
call qword [case.0x14004578e.0]
test eax, eax
jne 0x1400ebf79
dec esi
cmp esi, dword [rbx + 0x154]
jg 0x1400ebf48
jmp 0x1400ec066
mov rax, qword [rbx]
mov edx, ebp
mov rcx, rbx
mov dword [rbx + 0x3b8], 1
mov rax, qword [rax + 0x428]
call qword [case.0x14004578e.0]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x420]
call qword [case.0x14004578e.0]
mov rcx, rax
call fcn.140064288
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rbx + 0x154]
mov rax, qword [rax + 0x4e0]
call qword [case.0x14004578e.0]
mov dword [rbx + 0x3b8], edi
jmp 0x1400ec066
cmp eax, 0x200
jb 0x1400ec048
cmp eax, 0x202
jbe 0x1400ebffd
cmp eax, 0x203
jbe 0x1400ec048
cmp eax, 0x205
jbe 0x1400ebffd
add eax, 0xfffffdf9
cmp eax, 1
ja 0x1400ec048
mov rax, qword [rbx + 0x1c0]
mov ebp, 0x407
test rax, rax
je 0x1400ec025
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x1400ec025
mov r9, rsi
xor r8d, r8d
mov edx, ebp
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rbx + 0x1b8]
test rax, rax
je 0x1400ec048
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x1400ec048
mov r9, rsi
xor r8d, r8d
mov edx, ebp
call qword [sym.imp.USER32.dll_SendMessageW]
cmp dword [rsi + 8], 0x203
jne 0x1400ec06d
lea rax, [rbx + 0x3208]
test rax, rax
je 0x1400ec061
mov rdi, qword [rax + 0x40]
cmp qword [rsi], rdi
jne 0x1400ec06d
mov eax, 1
jmp 0x1400ec078
mov rdx, rsi
mov rcx, rbx
call fcn.1400e4bd8
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140148a90
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x18], 0
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.1401c151c
test eax, eax
jne 0x140148af4
mov eax, dword [rsp + 0x30]
lea r8, str._s_s_X.tmp
mov dword [rsp + 0x28], eax
mov r9, rsi
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call fcn.14001a7ac
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140148b06
jmp 0x140148ab4
mov r9, rbx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14019af44
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, rdx
mov rbp, rcx
cmp dword [rdx + 8], 0x100
jne 0x14019b06f
mov ebx, dword [rdx + 0x10]
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x14019b06f
cmp ebx, 0x43
je 0x14019af92
cmp ebx, 0x2d
jne 0x14019b06f
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14019b06f
call qword [sym.imp.USER32.dll_EmptyClipboard]
call fcn.140020560
mov rcx, rax
test rax, rax
je 0x14019b08e
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14004578e.0]
add rax, 0x18
mov qword [rsp + 0x48], rax
movzx eax, byte [rbp + 0x196]
movzx r9d, byte [rbp + 0x195]
movzx r8d, byte [rbp + 0x194]
mov dword [rsp + 0x20], eax
lea rdx, str.RGB__d___d___d_
lea rcx, [rsp + 0x48]
call fcn.140016ba0
mov rbx, qword [rsp + 0x48]
mov eax, dword [rbx - 0x10]
inc eax
movsxd rdx, eax
add rdx, rdx
mov ecx, 0x2000
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rdi
mov ecx, SafeArrayGetDim
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14019b06f
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14004578e.0]
mov rdx, rsi
mov rcx, rbp
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
jmp method.CDialogEx.virtual_536
mov ecx, 0x80004005
call fcn.140012df8
int3

Function at 0x1401b3c64
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1401b3af7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401b3af7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401b3af7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401b3af7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401b3af7
cmp dword [rcx + 0x84], 0xe
jbe 0x1401b3af7
cmp dword [rcx + 0xf8], 0
je 0x1401b3af7
mov ecx, ebx
call fcn.1401b3b98
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1401b3988
cmp dword [rbp + 0x20], 0
je 0x1401b3b44
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401b3b4c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401b3a90
Function at 0x14001102d
Capabilities:
Read file via mapping

Disassembly:
jmp 0x1400118e0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x228
lea rbp, [rsp + 0x40]
lea rcx, [0x1400230ab]
call fcn.140011398
lea rax, str.C:Extazy_test.txt
mov qword [rbp + 8], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0xffffffffffffffff
jne 0x140011964
mov rdx, qword [rbp + 8]
lea rcx, str.Error_opening_file:__s_n
call fcn.140011032
mov eax, 1
jmp 0x140011aad
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x1400119b5
lea rcx, str.Error_creating_file_mapping._n
call fcn.140011032
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140011aad
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x140011a08
lea rcx, str.Error_mapping_view_of_file._n
call fcn.140011032
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140011aad
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 0x28]
mov dword [rbp + 0xc4], eax
mov eax, dword [rbp + 0xc4]
mov rcx, qword [rbp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xe8], rax
call qword [rbp + 0xe8]
mov dword [rbp + 0x104], eax
mov edx, dword [rbp + 0x104]
lea rcx, str.returned__d_n
call fcn.140011032
xor r9d, r9d
lea r8, str.extazyy.xyz
lea rdx, str.pizdec
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea rsp, [rbp + 0x1e8]
pop rdi
pop rbp
ret

Function at 0x14001120d
Capabilities:
Terminate process

Disassembly:
jmp 0x140013050
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 0x14001128f
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400143e0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014400
xor al, al
jmp 0x140014481
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014413
xor al, al
jmp 0x140014481
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 0x14001443d
xor al, al
jmp 0x140014481
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014451
xor al, al
jmp 0x140014481
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014463
xor al, al
jmp 0x140014481
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001447f
xor al, al
jmp 0x140014481
mov al, 1
add rsp, 0x38
ret
Function at 0x6d8aa3a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8cb5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8aa528
mov rax, qword [0x6d8cb5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8aa3ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8aa475
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8aa3d0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8aa55d
mov rax, qword [0x6d8cb5e8]
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 [0x6d8cb5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8aa540
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8aa46e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8aa4d0
add dword [0x6d8cb5e4], 1
cmp edi, 8
jae 0x6d8aa4a3
test dil, 4
jne 0x6d8aa514
test edi, edi
je 0x6d8aa498
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8aa52f
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 0x6d8aa498
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 0x6d8aa4bc
jmp 0x6d8aa498
add rsi, qword [0x6d8cb5e8]
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 0x6d8aa46e
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 0x6d8aa498
xor esi, esi
jmp 0x6d8aa3f7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8aa498
mov rax, qword [0x6d8cb5e8]
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 0x6d8aacb0
Capabilities:
Get thread local storage value

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

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

Function at 0x6d8aaf60
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 0x6d8aafa1
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 0x6d8aaf98
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8aafa3
add rax, 0x28
cmp rax, r9
jne 0x6d8aaf84
xor eax, eax
ret

Function at 0x6d8ab040
Capabilities:
Enumerate pe sections

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

Function at 0x6d8ab1b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8c81f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8ab1d0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8ab1c8
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 0x6d8ab22d
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 0x6d8ab224
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8ab234
add rax, 0x28
cmp rax, r9
jne 0x6d8ab210
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8ab250
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8c81f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8ab2be
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8ab2be
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8ab2be
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8ab2be
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 0x6d8ab2b5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8ab2c5
add rcx, 0x28
cmp rcx, rax
jne 0x6d8ab2a0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8ab2d8
jmp 0x6d8ab2be
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8ab2e6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8ab2be
test r9d, r9d
jg 0x6d8ab2d0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8ab650
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 0x140001ad0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140001b40
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400070b4]
mov rbx, rcx
test esi, esi
jle 0x140001c70
mov rax, qword [0x1400070b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001b8b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001c15
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001b70
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001c92
mov rax, qword [0x1400070b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001c77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001c0e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001c20
add dword [0x1400070b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400070b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001b98
mov rax, qword [0x1400070b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002200
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140007100]
test rbx, rbx
je 0x14000225c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002253
test rsi, rsi
je 0x140002253
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002238
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]