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

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x4b0], rbx
mov rax, qword [0x180024a58]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rsi, r9
mov rbx, r8
mov rax, rdx
xor r12d, r12d
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x70], r12
xor edx, edx
lea r8d, [r12 + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x180005ca8
call fcn.180001790
mov ebx, eax
jmp 0x180005dea
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x180005ccb
call fcn.180001790
mov ebx, eax
jmp 0x180005de0
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x180005cf0
call fcn.180001790
mov ebx, eax
jmp 0x180005de0
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x180005d29
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x180005d1f
lea rcx, [rsp + 0x70]
call fcn.180002170
nop
mov eax, 0x8007000e
jmp 0x180005e03
mov ecx, eax
test eax, eax
je 0x180005d66
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x180005d5c
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x180005d66
lea rcx, [rsp + 0x70]
call fcn.1800021a0
mov rax, qword [rsp + 0x70]
jmp 0x180005d70
mov ecx, 0x80070057
call fcn.1800016d0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x180005d88
test rax, rax
jne 0x180005d94
mov ebx, 0x8007000e
jmp 0x180005de0
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x180005dbb
call fcn.180001790
mov ebx, eax
jmp 0x180005de0
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r12w
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1800051b0
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x180005e01
lea rcx, [rsp + 0x70]
call fcn.180002170
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.18000c610
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r12
pop rdi
pop rsi
ret
Function at 0x180006530
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x260
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x278], rbx
mov rax, qword [0x180024a58]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
xor eax, eax
mov dword [rsp + 0x20], eax
mov qword [rcx + 0x20], 7
mov qword [rcx + 0x18], rax
mov word [rcx + 8], ax
mov dword [rsp + 0x20], 1
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1800065d2
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1800061c0
mov r8d, 0x13
lea rdx, str.BHOUpdater.restart
mov rcx, rbx
call fcn.1800057f0
mov rax, rbx
jmp 0x1800065d5
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18000c610
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret

Function at 0x180007070
Capabilities:
Delete file
Write file on windows

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x180024a58]
xor rax, rsp
mov qword [rsp + 0x98], rax
test cl, cl
jne 0x1800070dc
lea rcx, [rsp + 0x48]
call fcn.180006530
cmp qword [rax + 0x20], 8
jb 0x1800070a4
mov rcx, qword [rax + 8]
jmp 0x1800070a8
lea rcx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [rsp + 0x68], 8
jb 0x1800071c3
mov rcx, qword [rsp + 0x50]
call fcn.18000b5bc
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.18000c610
add rsp, 0xa8
ret
lea rcx, [rsp + 0x48]
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0xa0], rdi
call fcn.180006530
cmp qword [rax + 0x20], 8
jb 0x180007103
mov rcx, qword [rax + 8]
jmp 0x180007107
lea rcx, [rax + 8]
xor edi, edi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rdi
mov edx, 0x1f01ff
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp qword [rsp + 0x68], 8
mov rbx, rax
jb 0x180007140
mov rcx, qword [rsp + 0x50]
call fcn.18000b5bc
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rdi
mov word [rsp + 0x50], di
cmp rbx, 0xffffffffffffffff
je 0x1800071b3
lea rcx, [rsp + 0x70]
call fcn.180006ff0
cmp qword [rsp + 0x90], 8
mov r8d, dword [rsp + 0x88]
lea rdx, [rsp + 0x78]
lea r9, [rsp + 0x40]
mov rcx, rbx
cmovae rdx, qword [rsp + 0x78]
add r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x90], 8
jb 0x1800071b3
mov rcx, qword [rsp + 0x78]
call fcn.18000b5bc
mov rbx, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.18000c610
add rsp, 0xa8
ret
Function at 0x1800089f0
Capabilities:
Create thread

Disassembly:
push rbp
push r12
push r13
sub rsp, 0x20
mov r12, r9
mov r13, r8
mov r10, rdx
mov rbp, rcx
test r9, r9
jne 0x180003a7a
mov eax, 0x80004003
add rsp, 0x20
pop r13
pop r12
pop rbp
ret
mov qword [rsp + 0x48], rsi
xor esi, esi
mov qword [r9], rsi
test rcx, rcx
jne 0x180003a9d
mov eax, 0x80070057
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r13
pop r12
pop rbp
ret
cmp dword [rcx], esi
jne 0x180003ab5
mov eax, 0x8000ffff
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r13
pop r12
pop rbp
ret
mov rcx, qword [rcx + 0x10]
mov r8, qword [rbp + 0x18]
mov qword [rsp + 0x40], rbx
cmp rcx, r8
jae 0x180003b6f
nop dword [rax + rax]
mov rbx, qword [rcx]
test rbx, rbx
je 0x180003b03
cmp qword [rbx + 0x10], rsi
je 0x180003b03
mov rdx, qword [rbx]
mov eax, dword [rdx]
cmp dword [r10], eax
jne 0x180003b03
mov eax, dword [rdx + 4]
cmp dword [r10 + 4], eax
jne 0x180003b03
mov eax, dword [rdx + 8]
cmp dword [r10 + 8], eax
jne 0x180003b03
mov eax, dword [rdx + 0xc]
cmp dword [r10 + 0xc], eax
je 0x180003b0e
add rcx, 8
cmp rcx, r8
jb 0x180003ad0
jmp 0x180003b6f
mov qword [rsp + 0x50], rdi
cmp qword [rbx + 0x20], rsi
jne 0x180003b47
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [rbx + 0x20], rsi
jne 0x180003b3d
mov rcx, qword [rbx + 0x18]
lea r8, [rbx + 0x20]
lea rdx, [0x18001cbc0]
call qword [rbx + 0x10]
mov esi, eax
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp qword [rbx + 0x20], 0
je 0x180003b5f
mov rcx, qword [rbx + 0x20]
mov r8, r12
mov rdx, r13
mov rax, qword [rcx]
call qword [rax]
mov esi, eax
cmp qword [r12], 0
mov rdi, qword [rsp + 0x50]
jne 0x180003b74
test esi, esi
jne 0x180003b74
mov esi, 0x80040111
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r13
pop r12
pop rbp
ret
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [0x180026090], 0
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
jne 0x180008a71
mov ecx, 0x60
mov qword [rsp + 0x40], rbx
call fcn.18000cbbc
test rax, rax
je 0x180008a3a
mov rdx, qword [0x180026088]
mov rcx, rax
call fcn.180006a70
mov rbx, rax
jmp 0x180008a3c
xor ebx, ebx
lea r8, [0x1800086c0]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov qword [0x180026090], rbx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
mov rbx, qword [rsp + 0x40]
lea rcx, [0x180026120]
mov r9, rdi
mov r8, rsi
mov rdx, rbp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp 0x180003a50
Function at 0x180008ae0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
sub rsp, 0x60
lea rax, [rsp + 0x50]
lea rdx, str.SoftwareComplitly
xor ebx, ebx
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x50], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
jne 0x180008b62
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x50]
lea rdx, str.SoftwareComplitly
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180008bc1
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x88]
lea rdx, str.FirstRun
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
xor r8d, r8d
mov dword [rsp + 0x78], ebx
mov dword [rsp + 0x80], 4
mov dword [rsp + 0x88], 3
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180008bc9
cmp dword [rsp + 0x78], 1
je 0x180008bc9
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add rsp, 0x60
pop rbx
ret
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x78]
lea rdx, str.FirstRun
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x78], ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add rsp, 0x60
pop rbx
ret
Function at 0x18000b1d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x180024a58]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
xor ebp, ebp
mov rsi, rbp
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], ebp
mov word [rsp + 0x60], bp
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x62]
call fcn.18000ce80
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdx, qword [str.http:__cdn1.certified_apps.com_scripts_shared_enable.js_si42409]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
add rbx, 0x78
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.1800061c0
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [str.SoftwareComplitly]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18000b343
mov rsi, qword [rsp + 0x38]
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, [0x18001cb5c]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000b343
mov eax, dword [rsp + 0x38]
cmp eax, 1
je 0x18000b2d8
cmp eax, 2
jne 0x18000b343
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x18000b2f1
test al, 1
jne 0x18000b343
shr rax, 1
cmp word [rsp + rax*2 + 0x5e], 0
je 0x18000b2f6
jmp 0x18000b343
mov word [rsp + 0x60], bp
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x18000b343
lea r8d, [rax + 4]
lea rdx, str.sd
mov rcx, rbx
call fcn.1800057f0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.1800057f0
nop
test rsi, rsi
je 0x18000b351
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.18000c610
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x18000e514
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x18000e388
Function at 0x180010087
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180024a58]
jne 0x18000c62a
rol rcx, 0x10
test cx, 0xffff
jne 0x18000c626
repz ret
ror rcx, 0x10
jmp 0x18000ffe0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180026680]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x180026778]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180010065
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180026680]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x180010087
mov rax, qword [rsp + 0x88]
mov qword [0x180026778], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180026718], rax
mov rax, qword [0x180026778]
mov qword [0x1800265f0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180026700], rax
mov dword [0x1800265e0], 0xc0000409
mov dword [0x1800265e4], 1
mov rax, qword [0x180024a58]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180024a60]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180026678], eax
mov ecx, 1
call fcn.180010258
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18001d3c8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180026678], 0
jne 0x18001010e
mov ecx, 1
call fcn.180010258
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x180014570
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.18000da34
xor ebx, ebx
mov rdi, rax
cmp qword [0x180026f78], rbx
jne 0x180014676
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x18001474b
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001474b
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180026f78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180026f80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x180026f88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x180026f98], rax
test rax, rax
je 0x18001466d
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x180026f90], rax
jmp 0x18001467d
mov rax, qword [0x180026f90]
jmp 0x180014684
mov rax, qword [0x180026f90]
mov r11, qword [0x180026f98]
cmp rax, rdi
je 0x1800146ec
cmp r11, rdi
je 0x1800146ec
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x180026f98]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x1800146ec
test rax, rax
je 0x1800146ec
call rsi
test rax, rax
je 0x1800146e6
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1800146e6
test byte [rsp + 0x38], 1
jne 0x1800146ec
bts ebp, 0x15
jmp 0x18001472a
mov rcx, qword [0x180026f80]
cmp rcx, rdi
je 0x18001472a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18001472a
call rax
mov rbx, rax
test rax, rax
je 0x18001472a
mov rcx, qword [0x180026f88]
cmp rcx, rdi
je 0x18001472a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18001472a
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180026f78]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18001474b
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x18001474d
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x6d7d7120
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f85e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d72a8
mov rax, qword [0x6d7f85e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d716c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d71f5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d7150
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d72dd
mov rax, qword [0x6d7f85e8]
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 [0x6d7f85e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d72c0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d71ee
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d7250
add dword [0x6d7f85e4], 1
cmp edi, 8
jae 0x6d7d7223
test dil, 4
jne 0x6d7d7294
test edi, edi
je 0x6d7d7218
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d72af
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 0x6d7d7218
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 0x6d7d723c
jmp 0x6d7d7218
add rsi, qword [0x6d7f85e8]
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 0x6d7d71ee
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 0x6d7d7218
xor esi, esi
jmp 0x6d7d7177
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d7218
mov rax, qword [0x6d7f85e8]
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 0x6d7d7a30
Capabilities:
Get thread local storage value

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

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

Function at 0x6d7d7ce0
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 0x6d7d7d21
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 0x6d7d7d18
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d7d23
add rax, 0x28
cmp rax, r9
jne 0x6d7d7d04
xor eax, eax
ret

Function at 0x6d7d7dc0
Capabilities:
Enumerate pe sections

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

Function at 0x6d7d7f30
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f51f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d7f50
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d7f48
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 0x6d7d7fad
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 0x6d7d7fa4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d7fb4
add rax, 0x28
cmp rax, r9
jne 0x6d7d7f90
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d7fd0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f51f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d803e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d803e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d803e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d803e
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 0x6d7d8035
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d8045
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d8020
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d8058
jmp 0x6d7d803e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d8066
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d803e
test r9d, r9d
jg 0x6d7d8050
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d83a0
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