joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18007e870
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x18020a828]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x18007e8d3
mov qword [rsp], rbx
lea rbx, [0x1800ef7e0]
nop dword [rax]
cmp r9b, 0x23
jne 0x18007e8b3
cmp byte [r8], r9b
jne 0x18007e8b3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x18007e8a0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f80]
not eax
mov r8, qword [r10 + 0x5f88]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x18007e8ff
cmp dword [r8 + 8], eax
je 0x18007e906
add r8, 0x48
cmp r8, rcx
jne 0x18007e8f0
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x180094940
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x18010b040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, qword [0x18020a828]
mov rdi, rcx
test rbx, rbx
jne 0x180094985
xor r8d, r8d
lea rdx, [0x1800e9a08]
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.1800c5328
mov rbx, qword [0x18020a828]
cmp qword [rbx + 0x90], 0
je 0x1800949a5
xor r8d, r8d
lea rdx, [0x1800e9a08]
lea rcx, str.io.BackendPlatformUserData__nullptr___Already_initialized_a_platform_backend__
call fcn.1800c5328
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x180094b14
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x180094b14
mov ecx, 0x30
mov qword [rsp + 0x60], rsi
call fcn.1800c5434
mov r9, qword [0x18020a828]
xor esi, esi
mov r8, rax
test r9, r9
je 0x180094a4a
movsx rdx, word [r9 + 0x60f0]
lea rax, [r9 + 0x60f4]
mov r10d, dword [r9 + 0x3f58]
lea rax, [rax + rdx*8]
cmp dword [rax], r10d
je 0x180094a3f
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r9 + 0x60f0], cx
movsx rax, cx
lea rax, [rax*8 + 0x60f4]
add rax, r9
mov dword [rax], r10d
mov dword [rax + 4], esi
inc word [rax + 4]
inc dword [r9 + 0x60e8]
test r8, r8
je 0x180094a62
xorps xmm0, xmm0
movups xmmword [r8], xmm0
movups xmmword [r8 + 0x10], xmm0
movups xmmword [r8 + 0x20], xmm0
jmp 0x180094a65
mov r8, rsi
or dword [rbx + 0xc], 6
lea rax, str.imgui_impl_win32
mov qword [rbx + 0x80], rax
mov qword [rbx + 0x90], r8
mov qword [r8], rdi
mov rax, qword [rsp + 0x30]
mov qword [r8 + 0x20], rax
mov rax, qword [rsp + 0x38]
mov qword [r8 + 0x18], rax
mov dword [r8 + 0x28], 9
test r9, r9
je 0x180094aa9
mov rbx, qword [r9 + 0x90]
jmp 0x180094aac
mov rbx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rbx + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x180094ad7
mov dword [rbx + 0x2c], esi
mov rbx, qword [0x18020a828]
mov rsi, qword [rsp + 0x60]
cmp dword [rbx + 0x4b08], 0
jg 0x180094b02
xor r8d, r8d
lea rdx, [0x1800e9a08]
lea rcx, str.i___0__i___Size
call fcn.1800c5328
mov rax, qword [rbx + 0x4b10]
mov rcx, qword [rax]
mov al, 1
mov qword [rcx + 0x28], rdi
jmp 0x180094b16
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800b0970
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x180094da0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x18020a828]
mov edx, 0x210
call fcn.180072cc0
cmp byte [rax], 0
je 0x180094e41
mov rcx, qword [0x18020a828]
mov edx, 0x210
call fcn.180063150
cmp byte [rax + 8], 0
jne 0x180094e41
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x180094e41
cmp qword [0x18020a828], 0
jne 0x180094e09
xor r8d, r8d
lea rdx, [0x1800e9a08]
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.1800c5328
mov rbx, qword [0x18020a828]
cmp byte [rbx + 0x38d1], 0
je 0x180094e2d
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x210
call fcn.180063720
mov dword [rbx + 0x370], 0x210
mov dword [rbx + 0x930], 0xa0
mov rcx, qword [0x18020a828]
mov edx, 0x214
call fcn.180072cc0
cmp byte [rax], 0
je 0x180094edc
mov rcx, qword [0x18020a828]
mov edx, 0x214
call fcn.180063150
cmp byte [rax + 8], 0
jne 0x180094edc
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x180094edc
cmp qword [0x18020a828], 0
jne 0x180094ea4
xor r8d, r8d
lea rdx, [0x1800e9a08]
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.1800c5328
mov rbx, qword [0x18020a828]
cmp byte [rbx + 0x38d1], 0
je 0x180094ec8
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x214
call fcn.180063720
mov dword [rbx + 0x374], 0x214
mov dword [rbx + 0x940], 0xa1
mov rcx, qword [0x18020a828]
mov edx, 0x212
call fcn.180072cc0
cmp byte [rax], 0
je 0x180094f77
mov rcx, qword [0x18020a828]
mov edx, 0x212
call fcn.180063150
cmp byte [rax + 8], 0
jne 0x180094f77
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x180094f77
cmp qword [0x18020a828], 0
jne 0x180094f3f
xor r8d, r8d
lea rdx, [0x1800e9a08]
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.1800c5328
mov rbx, qword [0x18020a828]
cmp byte [rbx + 0x38d1], 0
je 0x180094f63
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x212
call fcn.180063720
mov dword [rbx + 0x25c], 0x212
mov dword [rbx + 0x938], 0x5b
mov rcx, qword [0x18020a828]
mov edx, 0x216
call fcn.180072cc0
cmp byte [rax], 0
je 0x180095014
mov rcx, qword [0x18020a828]
mov edx, 0x216
call fcn.180063150
cmp byte [rax + 8], 0
jne 0x180095014
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x180095014
mov rbx, qword [0x18020a828]
test rbx, rbx
jne 0x180094fe3
xor r8d, r8d
lea rdx, [0x1800e9a08]
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.1800c5328
mov rbx, qword [0x18020a828]
cmp byte [rbx + 0x38d1], 0
je 0x180095000
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x216
call fcn.180063720
mov dword [rbx + 0x260], 0x216
mov dword [rbx + 0x948], 0x5c
add rsp, 0x20
pop rbx
ret
Function at 0x1800b6d30
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1800b6d9f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800b6d9f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800b6d9f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800b6d9f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800b6d9f
cmp dword [rcx + 0x84], 0xe
jbe 0x1800b6d9f
cmp dword [rcx + 0xf8], 0
je 0x1800b6d9f
mov ecx, ebx
call fcn.1800b6e50
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1800b6c2c
nop
cmp dword [rbp + 0x20], 0
je 0x1800b6ded
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800b6df8
int3
xor r8d, r8d
xor edx, edx
jmp 0x1800b6d30

Function at 0x1800b6eec
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1800b6d9f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800b6d9f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800b6d9f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800b6d9f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800b6d9f
cmp dword [rcx + 0x84], 0xe
jbe 0x1800b6d9f
cmp dword [rcx + 0xf8], 0
je 0x1800b6d9f
mov ecx, ebx
call fcn.1800b6e50
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1800b6c2c
nop
cmp dword [rbp + 0x20], 0
je 0x1800b6ded
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800b6df8
int3
xor r8d, r8d
xor edx, edx
jmp 0x1800b6d30
Function at 0x1800ca89c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800ca8b2
mov al, 1
jmp 0x1800ca912
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800ca8c3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800ca910
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800cfb08
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800ca910
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800ca910
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800ca910
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800ca912
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800cd2a4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1800cd2d4
xor eax, eax
jmp 0x1800cd397
mov rbp, rbx
cmp word [rax], si
je 0x1800cd2f9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800cd2e0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800cd2dc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800cd1c4
movsxd r14, eax
test eax, eax
jne 0x1800cd337
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800cd2cd
mov rcx, r14
call fcn.1800c70c8
mov rdi, rax
test rax, rax
jne 0x1800cd350
xor ecx, ecx
call fcn.1800c708c
jmp 0x1800cd32c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800cd1c4
test eax, eax
jne 0x1800cd381
mov rcx, rdi
call fcn.1800c708c
jmp 0x1800cd38b
xor ecx, ecx
call fcn.1800c708c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1800d1d00
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800d1d28
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800d1d28
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x2fc4d9e10
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 0x2fc4da812
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ff108]
test eax, eax
je 0x2fc4da8aa
lea rax, [0x2fc4ff0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ff110]
mov qword [rbp - 8], rax
jmp 0x2fc4da88e
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 0x2fc4da882
cmp qword [rbp - 0x10], 0
je 0x2fc4da882
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 0x2fc4da848
lea rax, [0x2fc4ff0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4da8ab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4da9b0
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 0x2fc4da9d8
mov eax, 0
jmp 0x2fc4daa26
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 0x2fc4daa01
mov eax, 0
jmp 0x2fc4daa26
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 0x2fc4daa21
mov eax, 0
jmp 0x2fc4daa26
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4daa2c
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 0x2fc4daaaa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4daaa1
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 0x2fc4daaa1
mov rax, qword [rbp - 8]
jmp 0x2fc4daabf
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 0x2fc4daa74
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x69f1bbf0
Capabilities:
Encode data using xor

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [rcx], 0
mov rdi, rcx
je 0x69f1bc5a
xor eax, eax
mov ebx, 0x6890de1c
xor esi, esi
nop dword [rax + rax]
lea rcx, [0x69f62050]
movzx r12d, word [rdi + rax]
add esi, 1
call sym.atoi
lea rcx, [0x69f62050]
mov ebp, eax
sub r12d, ebp
call sym.atoi
mov edx, ebx
movzx r12d, r12w
ror edx, 8
sub edx, eax
mov eax, esi
add edx, r12d
xor ebx, edx
cmp byte [rdi + rax], 0
jne 0x69f1bc10
mov eax, ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov ebx, 0x6890de1c
jmp 0x69f1bc4d
Function at 0x69f1bc70
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Populate syswhispers2 syscall list
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov eax, dword [0x69f60e80]
test eax, eax
jne 0x69f1be68
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x69f1be87
xor r9d, r9d
jmp 0x69f1bcc1
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x69f1be7e
movsxd rdx, dword [rax + 0x3c]
mov r14, rax
mov eax, dword [rax + rdx + 0x88]
test eax, eax
je 0x69f1bcb1
lea r9, [r14 + rax]
mov r8d, dword [r9 + 0xc]
add r8, r14
mov edx, dword [r8]
or edx, 0x20202020
cmp edx, 0x6c64746e
jne 0x69f1bcb1
mov eax, dword [r8 + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
jne 0x69f1bcb1
mov eax, dword [r9 + 0x1c]
mov ebp, dword [r9 + 0x20]
mov r15d, dword [r9 + 0x18]
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x28], r14
add rax, r14
mov qword [rsp + 0x40], rax
lea rax, [r14 + rbp]
mov rbp, rax
mov eax, dword [r9 + 0x24]
add rax, r14
mov qword [rsp + 0x48], rax
jmp 0x69f1bd3e
test r15d, r15d
je 0x69f1be00
sub r15d, 1
mov rax, qword [rsp + 0x28]
mov edi, r15d
mov r8d, dword [rbp + rdi*4]
lea r14, [r8 + rax]
cmp word [r14], 0x775a
jne 0x69f1bd35
mov eax, dword [rsp + 0x34]
lea rbx, [0x69f60e84]
cmp byte [r14], 0
mov r12d, 0x6890de1c
lea rax, [rbx + rax*8]
mov qword [rsp + 0x38], rax
je 0x69f1bdbf
xor eax, eax
xor r13d, r13d
lea rcx, [0x69f62050]
movzx esi, word [rax + r14]
add r13d, 1
call sym.atoi
lea rcx, [0x69f62050]
mov ebx, eax
sub esi, ebx
call sym.atoi
mov edx, r12d
movzx esi, si
ror edx, 8
sub edx, eax
mov eax, r13d
add edx, esi
xor r12d, edx
cmp byte [r14 + rax], 0
jne 0x69f1bd80
mov rax, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x38]
add dword [rsp + 0x34], 1
cmp dword [rsp + 0x34], 0x1f4
movzx eax, word [rax + rdi*2]
mov rdi, qword [rsp + 0x40]
mov dword [rbx], r12d
mov eax, dword [rdi + rax*4]
mov dword [rbx + 4], eax
jne 0x69f1bd35
mov dword [0x69f60e80], 0x1f4
mov r12d, 0x1f3
jmp 0x69f1be13
mov eax, dword [rsp + 0x34]
mov r12d, eax
mov dword [0x69f60e80], eax
sub r12d, 1
je 0x69f1be68
lea r11, [0x69f60e84]
xor edi, edi
nop dword [rax]
mov r10d, r12d
lea rax, [0x69f60e88]
xor edx, edx
sub r10d, edi
jmp 0x69f1be5b
add edx, 1
mov r8d, dword [rax]
mov ecx, edx
lea rcx, [r11 + rcx*8]
mov r9d, dword [rcx + 4]
cmp r8d, r9d
jbe 0x69f1be57
mov ebx, dword [rax - 4]
mov esi, dword [rcx]
mov dword [rax], r9d
mov dword [rax - 4], esi
mov dword [rcx], ebx
mov dword [rcx + 4], r8d
add rax, 8
cmp edx, r10d
jne 0x69f1be31
add edi, 1
cmp edi, r12d
jb 0x69f1be20
mov eax, 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test r9, r9
jne 0x69f1bcff
xor eax, eax
jmp 0x69f1be6d
Function at 0x69f1eae0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov ecx, dword [0x69f7e044]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x69f1ecc5
mov rax, qword [0x69f7e048]
xor ebx, ebx
nop
mov r9, qword [rax + 8]
cmp rsi, r9
jb 0x69f1eb2c
mov rdx, qword [rax + 0x10]
mov edx, dword [rdx + 8]
add r9, rdx
cmp rsi, r9
jb 0x69f1ec00
add ebx, 1
add rax, 0x18
cmp ebx, ecx
jne 0x69f1eb10
mov rcx, rsi
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x69f1ece9
movsxd rbx, ebx
lea r13, [rsp + 0x30]
lea r14, [rbx + rbx*2]
shl r14, 3
mov rbx, r14
add rbx, qword [0x69f7e048]
mov qword [rbx + 0x10], rax
mov dword [rbx], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
mov rdx, r13
mov qword [rbx + 8], rax
mov rax, qword [0x69f7e048]
mov rbx, qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, qword [rax + r14 + 8]
call rbx
test rax, rax
je 0x69f1eccc
mov eax, dword [rsp + 0x54]
cmp eax, 4
jne 0x69f1ec80
add dword [0x69f7e044], 1
mov r8d, 0x30
mov rdx, r13
mov rcx, rsi
call rbx
test rax, rax
je 0x69f1ecf8
mov eax, dword [rsp + 0x54]
cmp eax, 4
jne 0x69f1ec10
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp sym.memcpy
lea r13, [rsp + 0x30]
mov rbx, qword [sym.imp.KERNEL32.dll_VirtualQuery]
jmp 0x69f1ebbb
cmp eax, 0x40
je 0x69f1ebdb
lea r12, [rsp + 0x2c]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rbx, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r9, r12
call rbx
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
call sym.memcpy
mov eax, dword [rsp + 0x54]
cmp eax, 0x40
je 0x69f1ec67
cmp eax, 4
je 0x69f1ec67
mov r9, r12
mov r8d, dword [rsp + 0x2c]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call rbx
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
cmp eax, 0x40
je 0x69f1ebb4
add r14, qword [0x69f7e048]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov r9, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x69f1ebb4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor ebx, ebx
jmp 0x69f1eb37
mov rax, qword [0x69f7e048]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + r14 + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call dbg.__report_error
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, rsi
mov edx, 0x30
call dbg.__report_error
nop
nop dword [rax]
Function at 0x69f1f720
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x69f7e8a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x69f7e880]
test rbx, rbx
je 0x69f1f774
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 0x69f1f76b
test rsi, rsi
je 0x69f1f76b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x69f1f750
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x69f7e8a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x69f1f970
Capabilities:
Parse pe header

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

Function at 0x69f1f990
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 0x69f1f9d0
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov ecx, dword [rax + 0xc]
mov r8d, ecx
cmp r8, rdx
ja 0x69f1f9c7
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x69f1f9d2
add rax, 0x28
cmp rax, r9
jne 0x69f1f9b4
xor eax, eax
repz ret

Function at 0x69f1fa90
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
cmp word [0x69f00000], 0x5a4d
lea rbx, [0x69f00000]
mov rsi, rcx
je 0x69f1fab4
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x69f1faab
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection