joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3175fafc0
Capabilities:
Access peb ldr_data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rcx, r14
test rcx, rcx
je 0x3175fb008
mov rcx, qword [rcx + 0x30]
mov rcx, qword [rcx + 0x90]
nop dword [rax + rax]
test rcx, rcx
je 0x3175fb008
mov qword [rsp + 0x68], rcx
nop
mov rax, qword [rdi + 0x28]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
jmp 0x3175fb018
mov eax, 1
add rsp, 0x70
pop rbp
ret
mov rax, qword [rsp + 0x60]
mov rcx, qword [0x3176cdce0]
lea rdx, [rsp + 0x58]
mov rbx, qword [rax + 0xf8]
mov qword [rsp], rcx
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], 0
call fcn.3175e4da0
xorps xmm15, xmm15
mov r14, qword [0x31788ac70]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x20]
nop
test rax, rax
je 0x3175fb0f1
mov rcx, qword [rsp + 0x58]
mov rdx, qword [0x3176cdce8]
mov rbx, qword [rsp + 0x60]
mov rsi, rbx
lea rdi, [rsp + 0x50]
mov r8, qword [rsi + 0xf8]
mov qword [rsp], rdx
mov qword [rsp + 8], 0
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], 0
call fcn.3175e5020
xorps xmm15, xmm15
mov r14, qword [0x31788ac70]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
cmp qword [rcx], rax
ja 0x3175fb0f1
cmp qword [rcx + 8], rax
ja 0x3175fb013
mov eax, 1
add rsp, 0x70
pop rbp
ret
Function at 0x3176032e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x317603457
movzx edx, byte [rax]
test edx, edx
jne 0x317603314
nop dword [rax]
test r8b, r8b
jne 0x317603314
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x317603327
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x317603417
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x317603405
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x3176033f7
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x31760337d
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x3176033c0
mov eax, 1
cmp rax, rbx
ja 0x3176033ab
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.317616580
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x3176033ef
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x3176033b3
mov rcx, r11
mov eax, r12d
jmp 0x317603382
mov rcx, rbx
call fcn.3176164c0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.3176164c0
mov eax, r8d
mov rcx, rbx
call fcn.317616580
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x31760344d
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x317603410
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x31760332d
mov eax, edx
mov rcx, rbx
call fcn.3176164c0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.3176164c0
nop
int3

Function at 0x317609020
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x3176090d5
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdi
test byte [rax], al
lea rdx, [rax + 0x10]
mov rsi, qword [rsp + 0x68]
mov rcx, rdi
mov rax, rdx
mov rbx, rsi
call fcn.317606ca0
nop
test bl, bl
je 0x3176090cf
mov qword [rsp + 0x18], rax
movups xmmword [rsp + 0x20], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
lea rcx, [0x317609120]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp], rcx
call fcn.3176140a0
xorps xmm15, xmm15
mov r14, qword [0x31788ac70]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.3176141c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.317609020
Function at 0x31760c020
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x31760c0cf
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x31760c120]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.3176140a0
xorps xmm15, xmm15
mov r14, qword [0x31788ac70]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.3176141c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.31760c020
Function at 0x317615fc0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x3175b4943
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.3175bb180
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.3176141c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x3175b4920
cmp byte [0x31788aa6b], 0
je 0x317615fd5
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x317613220
jmp 0x3175b4920

Function at 0x317615fe0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x31788ad60]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x31788aa6b], 0
je 0x317616015
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x31788b080]
aesenc xmm0, xmmword [0x31788b090]
aesenc xmm0, xmmword [0x31788b0a0]
movq rax, xmm0
ret
jmp 0x3175bb3a0

Function at 0x317616020
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x31788ad60]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x31788aa6b], 0
je 0x317616056
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x31788b080]
aesenc xmm0, xmmword [0x31788b090]
aesenc xmm0, xmmword [0x31788b0a0]
movq rax, xmm0
ret
jmp 0x3175bb400

Function at 0x317625820
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x3176258ea
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.3175b3ea0
xorps xmm15, xmm15
mov r14, qword [0x31788ac70]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x3176258cf
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x3176eaaa0]
xor ebx, ebx
mov rcx, rdx
call fcn.3175fbb80
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.3176263c0
inc rbx
cmp rcx, rbx
jae 0x3176258be
mov edi, 1
lea rsi, [0x3176eaaa0]
call fcn.3175fbc60
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x3177469c8]
lea rsi, [0x317745e58]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.3176141c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.317625820
Function at 0x317640320
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x31764055b
push rbp
mov rbp, rsp
sub rsp, 0x78
mov ebx, dword [rax + 0x2c]
test ebx, ebx
jne 0x3176403ba
mov qword [rsp + 0x88], rax
lea rbx, [0x31770fa20]
mov rcx, rax
lea rax, [0x3178056e0]
call fcn.31761bca0
test cl, cl
jne 0x3176403a3
mov rax, qword [rsp + 0x88]
call fcn.31763f7a0
mov ecx, 1
mov rdi, rax
mov rsi, rbx
lea rax, [rsp + 0x28]
lea rbx, [0x317744f40]
call fcn.3175ff940
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rbx
call fcn.317640c40
mov rcx, qword [rsp + 0x88]
xor edx, edx
jmp 0x3176403d7
lea rdx, [0x31770c660]
cmp rax, rdx
jne 0x3176403c5
test byte [rbx], al
mov rax, rbx
add rsp, 0x78
pop rbp
ret
call fcn.317611ee0
add rsp, 0x78
pop rbp
ret
mov rbx, rdx
lea rcx, [0x3176eee60]
call fcn.3175bbea0
inc rdx
cmp rbx, rdx
jle 0x317640421
mov rsi, qword [rax + rdx*8]
cmp qword [rsi + 0x30], rcx
jne 0x3176403d4
lea rax, [0x3178056e0]
lea rbx, [0x31770fa20]
lea rdi, [0x31770c660]
nop dword [rax + rax]
call fcn.31761be60
lea rdx, [0x31770c660]
cmp rax, rdx
jne 0x31764054b
test byte [rbx], al
mov rax, rbx
add rsp, 0x78
pop rbp
nop
ret
lea rcx, [0x3176e6260]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x58], rcx
lea rax, [0x3176f67e0]
call fcn.3175bf220
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x58]
test byte [rcx], al
cmp dword [0x31788aca0], 0
nop
je 0x31764047b
mov rbx, rax
lea rax, [0x3176f67e0]
call fcn.3175c4da0
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rcx]
mov qword [rax], rdx
movups xmm0, xmmword [rcx + 8]
movups xmmword [rax + 8], xmm0
movups xmm0, xmmword [rcx + 0x18]
movups xmmword [rax + 0x18], xmm0
movups xmm0, xmmword [rcx + 0x28]
movups xmmword [rax + 0x28], xmm0
mov rbx, qword [rsp + 0x48]
xor ecx, ecx
xor edi, edi
xor esi, esi
mov r8d, esi
mov rax, qword [rsp + 0x50]
call fcn.3175b1900
call fcn.317611fe0
mov rsi, qword [rsp + 0x70]
mov dword [rsi + 0x28], eax
mov dword [rsi + 0x2c], 0
mov rcx, qword [rsp + 0x88]
mov edx, dword [rcx + 0x10]
xor eax, eax
jmp 0x3176404e2
imul edx, edx, 0x1000193
xor edx, 0x2a
mov eax, 1
test rax, rax
jle 0x3176404d4
mov dword [rsi + 0x10], edx
cmp dword [0x31788aca0], 0
je 0x317640503
call fcn.317616120
mov qword [r11], rcx
mov rdx, qword [rsi + 0x30]
mov qword [r11 + 8], rdx
mov qword [rsi + 0x30], rcx
lea rax, [0x3178056e0]
lea rbx, [0x31770fa20]
lea rdi, [0x31770c660]
nop dword [rax]
call fcn.31761be60
lea rdx, [0x31770c660]
cmp rax, rdx
jne 0x31764053c
test byte [rbx], al
mov rax, rbx
add rsp, 0x78
pop rbp
ret
mov rbx, rdx
lea rcx, [0x3176eee60]
call fcn.3175bbea0
mov rbx, rdx
lea rcx, [0x3176eee60]
call fcn.3175bbea0
nop
mov qword [rsp + 8], rax
call fcn.3176141c0
mov rax, qword [rsp + 8]
jmp fcn.317640320
Function at 0x3176b9780
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x3176b986d
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
lea rcx, [rbx + 1]
nop dword [rax + rax]
test rcx, rcx
jle 0x3176b9859
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rcx
nop dword [rax]
call fcn.3176b98a0
xorps xmm15, xmm15
mov r14, qword [0x31788ac70]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x18]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rcx
mov rdx, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x60]
cmp rbx, rcx
mov rsi, rcx
cmovl rsi, rbx
mov rdi, qword [rsp + 0x58]
cmp rdi, rdx
jne 0x3176b9813
cmp rbx, rcx
jmp 0x3176b9845
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rax
mov rax, rdx
mov rbx, rdi
mov rcx, rsi
call fcn.317616e40
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x18]
cmp rax, rcx
mov rdx, qword [rsp + 0x40]
mov rbx, rax
mov rax, qword [rsp + 0x38]
jae 0x3176b9851
mov byte [rdx + rbx], 0
add rsp, 0x48
pop rbp
ret
mov rax, rbx
call fcn.3176164c0
lea rax, [0x3176ea9a0]
lea rbx, [0x317746000]
call fcn.3175e67e0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.3176141c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.3176b9780

Function at 0x3176ba390
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov qword [0x31788e728], rax
mov rax, qword [0x31788e728]
test rax, rax
jne 0x3176ba3fa
mov ecx, 2
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x3d
mov edx, 1
lea rax, str.runtime:_failed_to_create_runtime_initialization_wait_event._n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
lea rax, [0x31788e700]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call rax
nop
add rsp, 0x20
pop rbp
ret
Function at 0x3176ba6f6
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov dword [rbp - 4], 0
jmp 0x3176ba766
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthread]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0xffffffffffffffff
jne 0x3176ba759
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call rax
mov eax, dword [rax]
cmp eax, 0xd
jne 0x3176ba759
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x3176ba762
cmp qword [rbp - 0x10], 0xffffffffffffffff
jne 0x3176ba79f
jmp 0x3176ba76c
add dword [rbp - 4], 1
cmp dword [rbp - 4], 0x13
jle 0x3176ba712
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call rax
mov ebx, dword [rax]
mov ecx, 2
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rax
mov rcx, rax
mov r8d, ebx
lea rax, str.runtime:_failed_to_create_new_OS_thread___d__n
mov rdx, rax
call fcn.3176bb8d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
add rsp, 0x38
pop rbx
pop rbp
ret

Function at 0x3176baaf0
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 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.3176bb8b0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]
Function at 0x3176bab60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x31788e794]
test esi, esi
mov rbx, rcx
jle 0x3176bac90
mov rax, qword [0x31788e798]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x3176babab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x3176bac35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x3176bab90
mov rcx, rbx
call fcn.3176bb3c0
test rax, rax
mov rdi, rax
je 0x3176bacb2
mov rax, qword [0x31788e798]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.3176bb500
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x31788e798]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x3176bac97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x3176bac2e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x3176bac40
add dword [0x31788e794], 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 [0x31788e798]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x3176bac2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.3176baaf0
nop dword [rax]
xor esi, esi
jmp 0x3176babb8
mov rax, qword [0x31788e798]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.3176baaf0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.3176baaf0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x3176bb030
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x31788e7c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x31788e7a0]
test rbx, rbx
je 0x3176bb08c
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 0x3176bb083
test rsi, rsi
je 0x3176bb083
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x3176bb068
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 0x3176bb3c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x3177fbd00]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x3176bb3e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x3176bb3e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3176bb3e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x3176bb43d
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 0x3176bb434
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x3176bb3e0
add rax, 0x28
cmp rax, r9
jne 0x3176bb420
xor eax, eax
ret

Function at 0x3176bb440
Capabilities:
Parse pe header

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

Function at 0x3176bb500
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3177fbd00]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x3176bb51f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x3176bb528
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1416a101c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1416a1026
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1416a104f
pop rbp
sub rbp, 0x33
sub rbp, 0x16a101c
sub rsp, 0x20
jmp 0x1416a106e
mov rax, 0x16a101c
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffff805c57e5
xor byte [rax], dl
inc rax
dec rcx
jne 0x1416a108d
jmp 0x1416a10a4
lodsd eax, dword [rsi]
insb byte [rdi], dx
or al, 0x6e
insb byte [rdi], dx
fxam
in eax, 0xe5
lodsd eax, dword [rsi]
and al, 0xed
in al, 0xe5
in eax, 0xad
in al, 0xc
lodsd eax, dword [rsi]
and ah, byte [0x1274ff6a4]
lodsd eax, dword [rsi]
and ah, byte [rdi]
int 0xe5
in eax, 0xe5
lodsd eax, dword [rsi]
adc al, byte [rdi]
lodsd eax, dword [rsi]
in al, 0x24
outsb dx, byte [rsi]
jmp 0xef4ff6b7
Function at 0x14001112c
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x140012080
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x128]
lea rcx, [0x1400240a6]
call fcn.1400113b1
mov eax, dword [rbp + 0x100]
shl eax, 1
mov word [rbp + 4], ax
movzx eax, word [rbp + 0x108]
mov word [rbp + 6], ax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [rbp + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ac80]
call fcn.14001134d
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x140011221
Capabilities:
Terminate process

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

Disassembly:
jmp 0x140014d90
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014db0
xor al, al
jmp 0x140014e31
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014dc3
xor al, al
jmp 0x140014e31
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 0x140014ded
xor al, al
jmp 0x140014e31
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014e01
xor al, al
jmp 0x140014e31
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014e13
xor al, al
jmp 0x140014e31
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014e2f
xor al, al
jmp 0x140014e31
mov al, 1
add rsp, 0x38
ret
Function at 0x1400015fc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001646
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001646
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001646
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001646
cmp dword [rcx + 0x84], 0xe
jbe 0x140001646
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001648
xor al, al
add rsp, 0x28
ret