joyce8/EMBER2024-capa huggingface dataset:
Function at 0x299e95130
Capabilities:
Hash data using murmur3

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rdx
sar rdx, 0x3f
mov rbp, rcx
shr rdx, 0x3e
mov r12, rsi
lea rax, [rsi + rdx]
and eax, 3
sub rax, rdx
sub r12, rax
cmp rsi, 3
jle 0x299e95117
mov ebx, dword [rcx]
mov rcx, qword [0x299f4c780]
call sub.libgcc_s_seh_1.dll___emutls_get_address
cmp byte [rax], 0
jne 0x299e950f9
xor edi, edi
mov ecx, 4
jmp 0x299e95009
cmp rsi, rcx
jle 0x299e950f0
mov ebx, dword [rbp + rcx]
add rcx, 4
imul eax, ebx, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, edi
rol eax, 0xd
cmp r12, rcx
lea edi, [rax + rax*4 - 0x19ab949c]
jg 0x299e94ff8
mov rdx, rsi
sar rdx, 0x3f
shr rdx, 0x3e
lea rax, [rsi + rdx]
and eax, 3
sub rax, rdx
test rax, rax
jle 0x299e95120
lea r9, [rax - 1]
mov r8, r9
add r8, rcx
js 0x299e95109
cmp rsi, r8
jle 0x299e95109
test r9, r9
movzx edx, byte [rbp + r8]
je 0x299e950a9
sub rax, 2
mov r8, rax
add r8, rcx
js 0x299e95109
cmp r8, rsi
jge 0x299e95109
movzx r8d, byte [rbp + r8]
shl edx, 8
or edx, r8d
test rax, rax
je 0x299e950a9
test rcx, rcx
js 0x299e95106
cmp rsi, rcx
jle 0x299e95106
movzx eax, byte [rbp + rcx]
shl edx, 8
or edx, eax
imul ebx, edx, 0xcc9e2d51
rol ebx, 0xf
mov rcx, qword [0x299f4c780]
call sub.libgcc_s_seh_1.dll___emutls_get_address
cmp byte [rax], 0
jne 0x299e950f9
imul eax, ebx, 0x1b873593
xor edi, esi
xor eax, edi
mov edx, eax
shr edx, 0x10
xor eax, edx
imul eax, eax, 0x85ebca6b
mov edx, eax
shr edx, 0xd
xor edx, eax
imul edx, edx, 0xc2b2ae35
mov eax, edx
shr eax, 0x10
xor eax, edx
jmp 0x299e950fb
lea rdx, [rsi - 1]
call fcn.299e8b510
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8, rcx
lea rdx, [rsi - 1]
mov rcx, r8
call fcn.299e8b510
jmp 0x299e950f9
xor ecx, ecx
xor edi, edi
jmp 0x299e95029
xor ebx, ebx
jmp 0x299e950b2
sub rsp, 0x28
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
test rdx, rdx
js 0x299e95158
lea rcx, [rax + 8]
test rax, rax
cmove rcx, rax
add rsp, 0x28
jmp 0x299e94fa0
lea rax, [rdx - 1]
mov r8, rdx
xor ecx, ecx
mov rdx, rax
call fcn.299e8e040
xor eax, eax
add rsp, 0x28
ret
Function at 0x299ed1790
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push r14
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r14, rdx
mov rsi, rcx
lea rbp, [r14 + 7]
test r14, r14
cmovns rbp, r14
sar rbp, 3
cmp r14, 7
jle 0x299ed18a4
mov rcx, qword [0x299f4c780]
mov dword [rsp + 0x60], r8d
call sub.libgcc_s_seh_1.dll___emutls_get_address
mov edx, dword [rsp + 0x60]
cmp byte [rax], 0
jne 0x299ed18a0
lea rcx, [0x299f2f4e0]
xor r8d, r8d
nop dword [rax]
mov ebx, dword [rsi + r8*8 + 4]
mov eax, dword [rsi + r8*8]
add r8, 1
movzx r9d, bl
movzx edi, bh
xor eax, edx
mov edx, ebx
shr ebx, 0x10
shr edx, 0x18
movzx ebx, bl
mov edx, dword [rcx + rdx*4]
xor edx, dword [rcx + r9*4 + 0xc00]
movzx r9d, al
xor edx, dword [rcx + r9*4 + 0x1c00]
mov r9d, eax
shr r9d, 0x18
xor edx, dword [rcx + r9*4 + 0x1000]
xor edx, dword [rcx + rdi*4 + 0x800]
movzx edi, ah
shr eax, 0x10
movzx eax, al
xor edx, dword [rcx + rbx*4 + 0x400]
xor edx, dword [rcx + rdi*4 + 0x1800]
xor edx, dword [rcx + rax*4 + 0x1400]
cmp rbp, r8
jg 0x299ed17e8
shl rbp, 3
mov ebx, edx
cmp r14, rbp
jle 0x299ed1890
lea rcx, [0x299f2f4e0]
add rbp, rsi
add rsi, r14
nop dword [rax]
movzx edx, byte [rbp]
add rbp, 1
xor edx, ebx
shr ebx, 8
movzx edx, dl
xor ebx, dword [rcx + rdx*4]
cmp rbp, rsi
jne 0x299ed1878
mov eax, ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r14
ret
mov ebx, edx
jmp 0x299ed1890
mov ebx, r8d
xor ebp, ebp
jmp 0x299ed185f
Function at 0x299eedb60
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x38
movaps xmmword [rsp], xmm6
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp + 0x20], xmm8
movdqu xmm6, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm5, xmmword [rcx + 0x30]
lea rax, [rdx - 0x40]
movd xmm0, r8d
cmp rax, 0x3f
pxor xmm0, xmm6
jle 0x299eedda0
lea r8, [rdx - 0x80]
movdqa xmm4, xmmword [0x299f439a0]
lea rax, [rcx + 0x40]
mov rdx, r8
and rdx, 0xffffffffffffffc0
lea rdx, [rcx + rdx + 0x80]
nop dword [rax]
movdqa xmm8, xmm0
movdqa xmm7, xmm3
movdqa xmm6, xmm2
pclmulqdq xmm0, xmm4, 0x11
movdqa xmm1, xmm5
pclmulqdq xmm7, xmm4, 0
pclmulqdq xmm6, xmm4, 0
pclmulqdq xmm8, xmm4, 0
pclmulqdq xmm5, xmm4, 0x11
pxor xmm0, xmm8
add rax, 0x40
movdqu xmm8, xmmword [rax - 0x40]
pclmulqdq xmm1, xmm4, 0
pclmulqdq xmm3, xmm4, 0x11
pxor xmm1, xmm5
pxor xmm3, xmm7
movdqu xmm5, xmmword [rax - 0x10]
pclmulqdq xmm2, xmm4, 0x11
pxor xmm2, xmm6
pxor xmm0, xmm8
movdqu xmm7, xmmword [rax - 0x30]
movdqu xmm6, xmmword [rax - 0x20]
cmp rax, rdx
pxor xmm5, xmm1
pxor xmm3, xmm7
pxor xmm2, xmm6
jne 0x299eedbc0
mov rax, r8
shr rax, 6
lea rdx, [rax + 2]
shl rax, 6
mov r9, rax
mov rax, r8
shl rdx, 6
sub rax, r9
movdqa xmm1, xmmword [0x299f43990]
movdqa xmm4, xmm0
cmp rax, 0xf
pclmulqdq xmm4, xmm1, 0
pclmulqdq xmm0, xmm1, 0x11
pxor xmm0, xmm4
pxor xmm3, xmm0
movdqa xmm0, xmm3
pclmulqdq xmm3, xmm1, 0x11
pclmulqdq xmm0, xmm1, 0
pxor xmm3, xmm0
pxor xmm2, xmm3
movdqa xmm3, xmm2
pclmulqdq xmm2, xmm1, 0x11
movdqa xmm0, xmm2
pclmulqdq xmm3, xmm1, 0
pxor xmm0, xmm3
pxor xmm0, xmm5
jle 0x299eedd21
movdqu xmm7, xmmword [rcx + rdx]
movdqa xmm2, xmm0
cmp rax, 0x1f
pclmulqdq xmm0, xmm1, 0x11
pclmulqdq xmm2, xmm1, 0
pxor xmm0, xmm2
pxor xmm0, xmm7
jle 0x299eedd21
movdqu xmm7, xmmword [rcx + rdx + 0x10]
movdqa xmm2, xmm0
cmp rax, 0x2f
pclmulqdq xmm0, xmm1, 0x11
pclmulqdq xmm2, xmm1, 0
pxor xmm0, xmm2
pxor xmm0, xmm7
jle 0x299eedd21
movdqu xmm3, xmmword [rcx + rdx + 0x20]
movdqa xmm2, xmm0
pclmulqdq xmm0, xmm1, 0x11
pclmulqdq xmm2, xmm1, 0
pxor xmm0, xmm2
pxor xmm0, xmm3
movdqa xmm2, xmm0
psrldq xmm0, 8
movaps xmm6, xmmword [rsp]
pclmulqdq xmm2, xmm1, 0x10
pxor xmm2, xmm0
movdqa xmm1, xmm2
movdqa xmm0, xmm2
movdqa xmm2, xmmword [0x299f439b0]
psrldq xmm0, 4
movdqa xmm3, xmmword [0x299f439d0]
movaps xmm7, xmmword [rsp + 0x10]
pand xmm1, xmm2
pclmulqdq xmm1, xmmword [0x299f439c0], 0
pxor xmm1, xmm0
movaps xmm8, xmmword [rsp + 0x20]
movdqa xmm0, xmm1
pand xmm0, xmm2
pclmulqdq xmm0, xmm3, 0x10
pand xmm0, xmm2
pclmulqdq xmm0, xmm3, 0
pxor xmm0, xmm1
pextrd eax, xmm0, 1
add rsp, 0x38
ret
mov edx, 0x40
jmp 0x299eedc62
Function at 0x299eeddb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
push rbx
test rdx, rdx
mov eax, r8d
mov r9, rcx
lea r8, [rdx + 7]
mov r10, rdx
cmovns r8, rdx
xor r11d, r11d
lea rcx, [0x299f439e0]
sar r8, 3
cmp rdx, 7
jle 0x299eede80
nop
mov ebx, dword [r9 + r11*8 + 4]
xor eax, dword [r9 + r11*8]
add r11, 1
mov esi, ebx
movzx edx, bl
shr esi, 0x18
mov edx, dword [rcx + rdx*4 + 0xc00]
xor edx, dword [rcx + rsi*4]
movzx esi, al
xor edx, dword [rcx + rsi*4 + 0x1c00]
mov esi, eax
shr esi, 0x18
xor edx, dword [rcx + rsi*4 + 0x1000]
movzx esi, bh
shr ebx, 0x10
movzx ebx, bl
xor edx, dword [rcx + rsi*4 + 0x800]
xor edx, dword [rcx + rbx*4 + 0x400]
movzx ebx, ah
shr eax, 0x10
movzx eax, al
xor edx, dword [rcx + rbx*4 + 0x1800]
xor edx, dword [rcx + rax*4 + 0x1400]
cmp r8, r11
mov eax, edx
jg 0x299eedde0
shl r8, 3
cmp r10, r8
jle 0x299eede78
lea rcx, [0x299f439e0]
add r8, r9
add r9, r10
movzx edx, byte [r8]
add r8, 1
xor edx, eax
shr eax, 8
movzx edx, dl
xor eax, dword [rcx + rdx*4]
cmp r9, r8
jne 0x299eede60
pop rbx
pop rsi
ret
xor r8d, r8d
jmp 0x299eede4e
Function at 0x299f19ea0
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 fcn.299f23cd0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.299f23cd0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x299f19f10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x299f56a64]
test esi, esi
mov rbx, rcx
jle 0x299f1a040
mov rax, qword [0x299f56a68]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x299f19f5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x299f19fe5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x299f19f40
mov rcx, rbx
call fcn.299f1a770
test rax, rax
mov rdi, rax
je 0x299f1a062
mov rax, qword [0x299f56a68]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.299f1a8b0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x299f56a68]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x299f1a047
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x299f19fde
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x299f19ff0
add dword [0x299f56a64], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x299f56a68]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x299f19fde
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.299f19ea0
nop dword [rax]
xor esi, esi
jmp 0x299f19f68
mov rax, qword [0x299f56a68]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.299f19ea0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.299f19ea0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x299f1a3e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x299f56aa0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x299f56a80]
test rbx, rbx
je 0x299f1a43c
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 0x299f1a433
test rsi, rsi
je 0x299f1a433
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x299f1a418
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x299f1a770
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x299f4c7a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x299f1a790
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x299f1a798
ret
cmp word [r8 + 0x18], 0x20b
jne 0x299f1a790
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x299f1a7ed
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x299f1a7e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x299f1a790
add rax, 0x28
cmp rax, r9
jne 0x299f1a7d0
xor eax, eax
ret

Function at 0x299f1a7f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x299f4c7a0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x299f1a80f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x299f1a818
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x299f1a80f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x299f1a8b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x299f4c7a0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x299f1a8cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x299f1a8d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140004460]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140004470]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140007008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1400043c0]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.140001980
mov rcx, qword [0x1400044f0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140004450]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140001790
mov ebx, dword [0x140007028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, qword [0x140007020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140007020], rbp
call fcn.140001590
mov rax, qword [0x1400043e0]
mov r8, qword [0x140007018]
mov ecx, dword [0x140007028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140007020]
call fcn.1400029b0
mov ecx, dword [0x14000700c]
mov dword [0x140007010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140007008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140004470]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.140002710
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140004490]
mov rcx, qword [0x140004480]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x140007010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x1400044b0]
mov rcx, qword [0x1400044a0]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
Function at 0x1400017a0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.140002580
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140001810
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
mov rbx, rcx
test esi, esi
jle 0x140001940
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000185b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400018e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001840
mov rcx, rbx
call fcn.140002260
mov rdi, rax
test rax, rax
je 0x140001962
mov rax, qword [0x140007098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400023a0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001947
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400018de
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400018f0
add dword [0x140007094], 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 [0x140007098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400018de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400017a0
nop dword [rax]
xor esi, esi
jmp 0x140001868
mov rax, qword [0x140007098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400017a0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400017a0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140001ed0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001f2c
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 0x140001f23
test rsi, rsi
je 0x140001f23
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f08
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002260
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002280
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002288
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002280
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400022dd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400022d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002280
add rax, 0x28
cmp rax, r9
jne 0x1400022c0
xor eax, eax
ret

Function at 0x1400022e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043d0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400022ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002308
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400022ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400023a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043d0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400023bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400023c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x6da61c50
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6da825e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6da61dd8
mov rax, qword [0x6da825e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6da61c9c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6da61d25
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6da61c80
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6da61e0d
mov rax, qword [0x6da825e8]
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 [0x6da825e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6da61df0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6da61d1e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6da61d80
add dword [0x6da825e4], 1
cmp edi, 8
jae 0x6da61d53
test dil, 4
jne 0x6da61dc4
test edi, edi
je 0x6da61d48
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6da61ddf
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 0x6da61d48
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 0x6da61d6c
jmp 0x6da61d48
add rsi, qword [0x6da825e8]
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 0x6da61d1e
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 0x6da61d48
xor esi, esi
jmp 0x6da61ca7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6da61d48
mov rax, qword [0x6da825e8]
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 0x6da62560
Capabilities:
Get thread local storage value

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