joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005560
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140005584
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400055c7
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x1400055c7
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, edi
mov byte [rdx], dil
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x1400056f8
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000560a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140005635
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmove edi, ecx
mov eax, edi
jmp 0x1400056fd
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400056aa
sub eax, 1
je 0x1400056aa
cmp eax, 2
jne 0x1400056f8
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmove edi, ecx
mov eax, edi
jmp 0x1400056fd
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x1400056db
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400056f8
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400056fd
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140005ae0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005ba9
cmp byte [rcx + 0x71], 0
je 0x140005ba9
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140005b9c
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140005b58
sub eax, 1
je 0x140005b5c
cmp eax, 2
jne 0x140005b9c
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x140005b8a
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140005b9c
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x14000a96c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14000a9f0
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000d5f0]
cmp byte [rcx + rax], 0
je 0x14000a9f0
dec r8
sub rdx, 1
jne 0x14000a9d6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000b944
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b98e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000b98e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000b98e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000b98e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000b98e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000b990
xor al, al
add rsp, 0x28
ret
Function at 0x706016a3
Capabilities:
Write file on windows

Disassembly:
push rdi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rbx, rcx
mov r10, rdx
je 0x706016cc
mov rdi, rdx
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
mov rdx, rcx
not rdx
lea r8, [rdx - 1]
mov rcx, r10
mov r9, rbx
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rdi
jmp fcn.70643e58

Function at 0x706020d1
Capabilities:
Hash data using murmur3

Disassembly:
push rbx
mov r8d, 4
xor ebx, ebx
xor r11d, r11d
mov rax, rdx
mov r9, rdx
cqo
idiv r8
mov rdx, qword [0x70653460]
shl rax, 2
mov r10b, byte [rdx]
cmp rax, rbx
jg 0x70602111
mov rax, r9
mov r8d, 4
add rcx, rbx
cqo
idiv r8
xor r8d, r8d
jmp 0x7060214c
mov edx, dword [rcx + rbx]
add rbx, 4
imul edx, edx, 0xcc9e2d51
rol edx, 0xf
test r10b, r10b
jne 0x7060219d
imul edx, edx, 0x1b873593
xor edx, r11d
rol edx, 0xd
lea edx, [rdx + rdx*4]
lea r11d, [rdx - 0x19ab949c]
jmp 0x706020f6
dec rdx
shl r8d, 8
movzx eax, byte [rcx + rdx]
or r8d, eax
test rdx, rdx
jg 0x7060213e
imul ecx, r8d, 0xcc9e2d51
xor eax, eax
rol ecx, 0xf
test r10b, r10b
jne 0x7060219f
imul r8d, ecx, 0x1b873593
mov edx, r11d
xor edx, r9d
xor r8d, edx
mov eax, r8d
shr eax, 0x10
xor r8d, eax
imul r8d, r8d, 0x85ebca6b
mov eax, r8d
shr eax, 0xd
xor eax, r8d
imul eax, eax, 0xc2b2ae35
mov r8d, eax
shr r8d, 0x10
xor eax, r8d
jmp 0x7060219f
xor eax, eax
pop rbx
ret

Function at 0x7060346a
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov qword [rsp + 0x28], rdx
mov ecx, 2
call qword [str.P_dp]
mov r8, qword [rsp + 0x28]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.70643e58
Function at 0x70604b12
Capabilities:
Hash data with crc32

Disassembly:
push r14
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
xor r8d, r8d
mov rbp, rcx
mov rsi, rdx
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.70604acb
mov rdi, qword [0x70653460]
mov rax, qword [rsp + 0x28]
cmp byte [rdi], 0
je 0x70604b4c
xor eax, eax
jmp 0x70604c61
bt eax, 0x13
jae 0x70604b7b
test al, 2
je 0x70604b7b
cmp rsi, 0x3f
jle 0x70604b7b
mov rbx, rsi
or r8d, 0xffffffff
mov rcx, rbp
and rbx, 0xfffffffffffffff0
mov rdx, rbx
call fcn.7060176e
cmp byte [rdi], 0
not eax
je 0x70604b7f
jmp 0x70604b45
xor ebx, ebx
xor eax, eax
cmp rbx, rsi
jge 0x70604c61
lea rcx, [rbp + rbx]
mov rdx, rsi
not eax
lea r10, [0x70648240]
sub rdx, rbx
mov bl, byte [rdi]
xor esi, esi
mov r11, rdx
mov r14, rdx
and r11, 0xfffffffffffffff8
cmp rsi, r11
jne 0x70604bbb
lea r9, [0x70648240]
jmp 0x70604c56
test bl, bl
mov r8d, dword [rcx + rsi]
jne 0x70604c61
xor eax, r8d
mov r8d, dword [rcx + rsi + 4]
add rsi, 8
mov edi, r8d
movzx r9d, r8b
mov edx, r8d
shr edi, 0x18
mov r9d, dword [r10 + r9*4 + 0xc00]
shr r8d, 0x10
xor r9d, dword [r10 + rdi*4]
movzx edi, al
movzx r8d, r8b
xor r9d, dword [r10 + rdi*4 + 0x1c00]
mov edi, eax
shr edi, 0x18
xor r9d, dword [r10 + rdi*4 + 0x1000]
movzx edi, dh
xor r9d, dword [r10 + rdi*4 + 0x800]
movzx edi, ah
shr eax, 0x10
xor r9d, dword [r10 + r8*4 + 0x400]
movzx r8d, al
xor r9d, dword [r10 + rdi*4 + 0x1800]
mov eax, dword [r10 + r8*4 + 0x1400]
xor eax, r9d
jmp 0x70604baa
mov r8b, byte [rcx + r11]
inc r11
xor r8d, eax
shr eax, 8
movzx r8d, r8b
xor eax, dword [r9 + r8*4]
cmp r14, r11
jg 0x70604c41
test bl, bl
jne 0x70604c61
not eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r14
ret
Function at 0x70609057
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rsi, qword [str.P_dp]
xor ebx, ebx
lea r12, [rsp + 0x20]
mov rdi, rcx
mov rbp, rdx
cmp rbx, rbp
mov ecx, 1
jl 0x706090b4
call rsi
mov r8d, 1
mov edx, 1
lea rcx, [0x7064627f]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rsi
mov rcx, rax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.70643e58
call rsi
mov rdx, rbx
xor r8d, r8d
shl rdx, 4
mov rcx, rax
movups xmm0, xmmword [rdi + rdx]
mov rdx, r12
movaps xmmword [rsp + 0x20], xmm0
call fcn.70608fa1
mov rax, qword [0x70653460]
cmp byte [rax], 0
jne 0x706090e5
inc rbx
jmp 0x70609075
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x7060aa0d
Capabilities:
Query environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm7
cmp qword [rdx], 0
mov rax, qword [rdx + 8]
movups xmm7, xmmword [r8]
mov qword [rsp + 0x30], 0
mov rbx, rcx
mov qword [rsp + 0x38], 0
lea rcx, [0x7064616f]
je 0x7060aa46
lea rcx, [rax + 8]
call sub.msvcrt.dll_getenv
mov rcx, rax
mov rsi, rax
call fcn.70636576
test al, al
lea rax, [rsp + 0x20]
jne 0x7060aa76
mov rdx, rsi
mov rcx, rax
call fcn.7060a973
movups xmm0, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x30], xmm0
jmp 0x7060aa88
lea rcx, [rsp + 0x30]
mov rdx, rax
movaps xmmword [rsp + 0x20], xmm7
call fcn.7060408b
movaps xmm1, xmmword [rsp + 0x30]
mov rax, rbx
movaps xmm7, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm1
add rsp, 0x58
pop rbx
pop rsi
ret

Function at 0x706109f9
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rcx, rdx
mov edx, 1
mov r9, rsi
call sub.msvcrt.dll_fwrite
mov rcx, rsi
mov rbx, rax
call fcn.70610850
movsxd rax, ebx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x70610b71
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov rcx, rdx
mov edx, 1
mov r9, rbx
mov rsi, r8
call sub.msvcrt.dll_fread
cmp rsi, rax
je 0x70610ba4
mov rcx, rbx
mov qword [rsp + 0x28], rax
call fcn.70610850
mov rax, qword [rsp + 0x28]
add rsp, 0x38
pop rbx
pop rsi
ret
Function at 0x7062049a
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
lea rax, [0x7064f040]
mov ebx, 3
lea r12, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789___v
test r9b, r9b
mov r14, rdx
mov r15, r8
mov qword [rsp + 0x30], 0
cmovne r12, rax
mov r13, rcx
xor ebp, ebp
mov qword [rsp + 0x38], 0
lea rax, [r8*4]
lea rsi, [rsp + 0x30]
cqo
idiv rbx
lea rdx, [rax + 6]
mov rcx, rsi
call fcn.706094f3
mov rax, r15
cqo
idiv rbx
xor ebx, ebx
sub r15, rdx
cmp rbp, r15
jne 0x70620520
cmp rdx, 1
jne 0x706205be
jmp 0x70620631
movzx edi, byte [r14 + rbp + 1]
mov rcx, rsi
mov qword [rsp + 0x28], rdx
movzx eax, byte [r14 + rbp]
shl edi, 8
shl eax, 0x10
or edi, eax
movzx eax, byte [r14 + rbp + 2]
add rbp, 3
or edi, eax
call fcn.706122b7
mov eax, edi
shr eax, 0x12
mov cl, byte [r12 + rax]
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 8], cl
mov rcx, rsi
call fcn.706122b7
mov eax, edi
shr eax, 0xc
and eax, 0x3f
mov cl, byte [r12 + rax]
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 9], cl
mov rcx, rsi
call fcn.706122b7
mov eax, edi
and edi, 0x3f
shr eax, 6
and eax, 0x3f
mov cl, byte [r12 + rax]
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 0xa], cl
mov rcx, rsi
call fcn.706122b7
mov cl, byte [r12 + rdi]
mov rax, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x28]
mov byte [rax + rbx + 0xb], cl
add rbx, 4
jmp 0x7062050c
cmp rdx, 2
jne 0x70620696
movzx edi, byte [r14 + rbp]
mov rcx, rsi
mov eax, edi
movzx edi, byte [r14 + rbp + 1]
shl eax, 0x10
shl edi, 8
or edi, eax
call fcn.706122b7
mov eax, edi
mov rcx, rsi
shr eax, 0x12
mov dl, byte [r12 + rax]
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 8], dl
call fcn.706122b7
mov eax, edi
shr edi, 6
mov rcx, rsi
shr eax, 0xc
and edi, 0x3c
and eax, 0x3f
mov dl, byte [r12 + rax]
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 9], dl
call fcn.706122b7
mov dl, byte [r12 + rdi]
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 0xa], dl
jmp 0x70620680
movzx edi, byte [r14 + rbp]
mov rcx, rsi
call fcn.706122b7
mov rcx, rsi
shl edi, 0x10
mov eax, edi
shr edi, 0xc
shr eax, 0x12
and edi, 0x30
mov dl, byte [r12 + rax]
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 8], dl
call fcn.706122b7
mov rax, qword [rsp + 0x38]
mov rcx, rsi
mov dl, byte [r12 + rdi]
mov byte [rax + rbx + 9], dl
call fcn.706122b7
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 0xa], 0x3d
mov rcx, rsi
call fcn.706122b7
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 0xb], 0x3d
add rbx, 4
mov rdx, rbx
mov rcx, rsi
call fcn.706094f3
movaps xmm0, xmmword [rsp + 0x30]
mov rax, r13
movups xmmword [r13], xmm0
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x706206bf
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
lea rax, [0x7064f040]
mov ebx, 3
lea r12, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789___v
mov r15, qword [rdx]
mov r14, qword [rdx + 8]
lea rsi, [rsp + 0x30]
test r8b, r8b
mov r13, rcx
mov qword [rsp + 0x30], 0
cmovne r12, rax
mov rcx, rsi
xor ebp, ebp
mov qword [rsp + 0x38], 0
lea rax, [r15*4]
cqo
idiv rbx
lea rdx, [rax + 6]
call fcn.706094f3
mov rax, r15
cqo
idiv rbx
xor ebx, ebx
sub r15, rdx
cmp rbp, r15
jne 0x70620746
cmp rdx, 1
jne 0x706207e5
jmp 0x70620859
movzx edi, byte [r14 + rbp + 9]
mov rcx, rsi
mov qword [rsp + 0x28], rdx
movzx eax, byte [r14 + rbp + 8]
shl edi, 8
shl eax, 0x10
or edi, eax
movzx eax, byte [r14 + rbp + 0xa]
add rbp, 3
or edi, eax
call fcn.706122b7
mov eax, edi
shr eax, 0x12
mov cl, byte [r12 + rax]
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 8], cl
mov rcx, rsi
call fcn.706122b7
mov eax, edi
shr eax, 0xc
and eax, 0x3f
mov cl, byte [r12 + rax]
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 9], cl
mov rcx, rsi
call fcn.706122b7
mov eax, edi
and edi, 0x3f
shr eax, 6
and eax, 0x3f
mov cl, byte [r12 + rax]
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 0xa], cl
mov rcx, rsi
call fcn.706122b7
mov cl, byte [r12 + rdi]
mov rax, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x28]
mov byte [rax + rbx + 0xb], cl
add rbx, 4
jmp 0x70620732
cmp rdx, 2
jne 0x706208bf
movzx edi, byte [rbp + r14 + 8]
mov rcx, rsi
mov eax, edi
movzx edi, byte [rbp + r14 + 9]
shl eax, 0x10
shl edi, 8
or edi, eax
call fcn.706122b7
mov eax, edi
mov rcx, rsi
shr eax, 0x12
mov dl, byte [r12 + rax]
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 8], dl
call fcn.706122b7
mov eax, edi
shr edi, 6
mov rcx, rsi
shr eax, 0xc
and edi, 0x3c
and eax, 0x3f
mov dl, byte [r12 + rax]
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 9], dl
call fcn.706122b7
mov dl, byte [r12 + rdi]
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 0xa], dl
jmp 0x706208a9
movzx edi, byte [rbp + r14 + 8]
mov rcx, rsi
call fcn.706122b7
mov rcx, rsi
shl edi, 0x10
mov eax, edi
shr edi, 0xc
shr eax, 0x12
and edi, 0x30
mov dl, byte [r12 + rax]
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 8], dl
call fcn.706122b7
mov rax, qword [rsp + 0x38]
mov rcx, rsi
mov dl, byte [r12 + rdi]
mov byte [rax + rbx + 9], dl
call fcn.706122b7
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 0xa], 0x3d
mov rcx, rsi
call fcn.706122b7
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 0xb], 0x3d
add rbx, 4
mov rdx, rbx
mov rcx, rsi
call fcn.706094f3
movaps xmm0, xmmword [rsp + 0x30]
mov rax, r13
movups xmmword [r13], xmm0
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x7063e9d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x7065d684]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x7063eb58
mov rax, qword [0x7065d688]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x7063ea1c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x7063eaa5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x7063ea00
mov rcx, rbx
call fcn.7063f670
test rax, rax
mov r12, rax
je 0x7063eb8d
mov rax, qword [0x7065d688]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.7063f7a0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x7065d688]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x7063eb70
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x7063ea9e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x7063eb00
add dword [0x7065d684], 1
cmp edi, 8
jae 0x7063ead3
test dil, 4
jne 0x7063eb44
test edi, edi
je 0x7063eac8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x7063eb5f
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 0x7063eac8
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 0x7063eaec
jmp 0x7063eac8
add rsi, qword [0x7065d688]
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 0x7063ea9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.70644190
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x7063eac8
xor esi, esi
jmp 0x7063ea27
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x7063eac8
mov rax, qword [0x7065d688]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.70644190
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.70644190
nop
nop dword [rax]

Function at 0x7063f2e0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x7065d960]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x7065d940]
test rbx, rbx
je 0x7063f334
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 0x7063f32b
test rsi, rsi
je 0x7063f32b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x7063f310
lea rcx, [0x7065d960]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x7063f670
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x706532c0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x7063f6dd
mov rcx, r8
call fcn.7063f550
test eax, eax
je 0x7063f6dd
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 0x7063f6dd
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 0x7063f6d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x7063f6df
add rax, 0x28
cmp rax, r9
jne 0x7063f6c0
xor eax, eax
add rsp, 0x28
ret

Function at 0x70644190
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x706013a0]
jmp fcn.70601380
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.70644050
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.70644050
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x70601390
Function at 0x180001730
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18006c3c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x18000176d
xor al, al
jmp 0x1800017bc
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x18000177e
xor al, al
jmp 0x1800017bc
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x1800017a5
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x1800017a5
mov al, 1
jmp 0x1800017bc
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800549f0
add rsp, 0x60
pop rbx
ret
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800549f0
add rsp, 0x60
pop rbx
ret

Function at 0x180001a30
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x18006c3c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x180001a61
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x180001b1a
nop word [rax + rax]
lea rax, [rbx - 0x70000000]
cmp rax, 0x10000000
ja 0x180001a8b
add rbx, 0x8000000
jmp 0x180001b11
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180001b1a
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x180001af6
cmp rcx, 0x10000
jb 0x180001af6
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x180001b1c
add rbx, 0x10000
jmp 0x180001b11
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x180001b11
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x180001a70
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800549f0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x180001b40
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x18006c3c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x180001c28
nop dword [rax]
lea rax, [rbx - 0x70000000]
cmp rax, 0x10000000
ja 0x180001b9b
sub rbx, 0x8000000
jmp 0x180001c1f
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180001c28
cmp dword [rsp + 0x40], 0x10000
jne 0x180001c03
cmp qword [rsp + 0x38], 0x10000
jb 0x180001c03
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x180001c2a
sub rbx, 0x10000
jmp 0x180001c1f
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x180001b80
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800549f0
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret