joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d950
Capabilities:
Check if file exists

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2e8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x260], 0xfffffffffffffffe
mov rsi, rcx
test r8, r8
je 0x14000dae7
js 0x14000dc8f
mov r14, r8
mov rdi, rdx
movzx eax, byte [0x14002b101]
mov edx, 1
mov rcx, r8
call fcn.140002530
test rax, rax
je 0x14000dc94
mov qword [rbp + 0x250], rax
mov rcx, rax
mov rdx, rdi
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [0x14002b101]
mov edx, 1
mov rcx, r14
call fcn.140002530
test rax, rax
mov qword [rbp + 0x240], r14
je case.0x14000708e.219
mov rbx, rax
mov rcx, rax
mov rdx, rdi
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], r14
mov byte [rbp - 0x48], 0
lea rdx, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rcx, [rbp - 0x60]
mov r8d, 1
call fcn.140008e00
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x248], rax
mov rdx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x50]
mov byte [rbp + 0x25e], 1
lea rcx, [rbp + 0x208]
mov qword [rbp + 0x238], rdx
call fcn.14000f3a0
mov rax, qword [rbp + 0x208]
mov rbx, qword [rbp + 0x210]
movabs rdi, 0x8000000000000000
cmp rax, rdi
je 0x14000daa1
mov rcx, qword [rbp + 0x218]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], rcx
mov byte [rbp + 0x25e], 1
lea rcx, [rbp + 0x1f0]
lea rdx, [rbp - 0x60]
mov r8b, 1
call fcn.14000fe70
mov r14, qword [rbp + 0x1f0]
mov rbx, qword [rbp + 0x1f8]
cmp r14, rdi
jne 0x14000db0e
mov rdi, qword [rbp + 0x240]
mov qword [rsi], rbx
mov dword [rsi + 0x10], 2
movabs rax, 0x300000002
mov qword [rsi], rax
mov dword [rsi + 0x10], 2
lea rdi, [rbp - 0x60]
mov r8d, 0x250
mov rcx, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov rdi, qword [rbp + 0x240]
je 0x14000dbeb
mov r15, rax
movzx eax, byte [0x14002b101]
mov ecx, 0x30
mov edx, 8
call fcn.140002530
test rax, rax
je 0x14000dcb7
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], rdi
mov rcx, qword [rbp + 0x250]
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rdi
mov byte [rax + 0x28], 0
mov qword [rsi], rax
mov qword [rsi + 8], r15
mov dword [rsi + 0x10], 1
mov rcx, rsi
add rcx, 0x14
lea rdx, [rbp - 0x60]
mov r8d, 0x250
call sub.VCRUNTIME140.dll_memcpy
test r14, r14
je 0x14000dbc4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14000dc5b
movzx eax, byte [0x14002b101]
mov ecx, 0x30
mov edx, 8
call fcn.140002530
test rax, rax
je case.0x140007ed5.164
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], rdi
mov rcx, qword [rbp + 0x250]
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rdi
mov byte [rax + 0x28], 0
mov qword [rsi], rax
mov qword [rsi + 8], 0xffffffffffffffff
mov dword [rsi + 0x10], 0
add byte [rax], al
add byte [rax], al
shl rax, 0x20
call fcn.1400182c0
mov qword [rbp + 0x220], r15
Function at 0x14000e220
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
movups xmm0, xmmword [0x140022580]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14000e258
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x88], rcx
test r9, r9
mov qword [rsp + 0x80], r9
lea rcx, [rsp + 0x88]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14000e2ba
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14000e2c5
xor edx, edx
jmp 0x14000e2d5
cmp eax, 0x103
je 0x14000e300
test eax, eax
js 0x14000e2e0
mov rdx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0xb0
pop rsi
ret
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1400225e0]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x80]
call fcn.1400078b0
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x78]
call fcn.140003830
mov ecx, 7
int 0x29
ud2

Function at 0x14000e370
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
movups xmm0, xmmword [0x140022580]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14000e3a8
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x88], rcx
test r9, r9
mov qword [rsp + 0x80], r9
lea rcx, [rsp + 0x88]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000e411
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000e445
test eax, eax
js 0x14000e425
mov rdx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0xb0
pop rsi
ret
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1400225e0]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x80]
call fcn.1400078b0
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x78]
call fcn.140003830
mov ecx, 7
int 0x29
ud2
Function at 0x14001c7c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001c83a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14001c830
cmp r11, r10
ja 0x14001c8c5
cmp r10, rdx
ja 0x14001c8d7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001c832
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001c810
jmp 0x14001c8a7
ja 0x14001c83a
mov r11, r10
cmp rax, r8
jne 0x14001c7e2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001c8ab
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001c880
mov r8, r10
sub ecx, r9d
jns 0x14001c89e
jmp 0x14001c8ad
cmp r10, rdx
je 0x14001c8b9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001c8ad
xor al, 1
cmp r8, rdx
jne 0x14001c860
jmp 0x14001c8ad
xor eax, eax
jmp 0x14001c8ad
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14001f190
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001f690
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001f680
int3
Function at 0x140041b30
Capabilities:
Encode data using xor

Disassembly:
jno 0x140041b0f
wait
cwde
xor dword [rsp + rcx - 0x26], edi
push rax
movsd dword [rdi], dword [rsi]
invalid
jge 0x140041b82
mov byte [rbx - 0x44d29f67], al
push rdx
cmpsd dword [rsi], dword [rdi]
pop rsp
sbb al, 0x98
invalid
lodsd eax, dword [rsi]
fcmove st(0), st(1)
xor al, byte [rbp + 0x7c]
xchg ebx, eax
add eax, 0xe472459b
jl 0x140041b2d
cmp eax, 0x5b64540
fldcw word [rbp - 0x27]
sal byte [rcx], 0x36
or r13b, byte [r11 + rbp*4 + 0xb]
adc dword [rdx + riz*2 - 0x5657300a], 0x78
cli
loope 0x140041b00
outsb dx, byte [rsi]
invalid
retf 0x90cf

Function at 0x140b51058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140b511df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140b51089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b5106f
add dl, dl
jne 0x140b51096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b510f6
xor eax, eax
add dl, dl
jne 0x140b510a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b511ad
add dl, dl
jne 0x140b510b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b510c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b510d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b510dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140b510ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140b5107e
mov eax, 1
add dl, dl
jne 0x140b51106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b51113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b510fb
sub eax, ebx
mov ebx, 1
jne 0x140b5114c
mov ecx, 1
add dl, dl
jne 0x140b5112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b5113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b51123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b5107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140b51168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b51175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b5115d
cmp eax, 0x7d00
jae 0x140b5119b
cmp eax, 0x500
jb 0x140b51196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b5107e
cmp eax, 0x7f
ja 0x140b5119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b5107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140b511d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140b5107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400093e0
Capabilities:
Parse pe header

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

Function at 0x14000c8cc
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 0x14000c93b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c93b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000c93b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000c93b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000c93b
cmp dword [rcx + 0x84], 0xe
jbe 0x14000c93b
cmp dword [rcx + 0xf8], 0
je 0x14000c93b
mov ecx, ebx
call fcn.14000c9e0
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.14000c7d4
nop
cmp dword [rbp + 0x20], 0
jne 0x14000c99c
call fcn.14000f5f4
cmp eax, 1
jne 0x14000c98c
xor dl, dl
jmp 0x14000c996
call fcn.14000f5c0
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14000c9a7
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000c9b0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000c8cc

Function at 0x14000cab4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000c8cc
Function at 0x14000f46c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14000f4f3
mov rsi, rbx
cmp word [rax], bp
je 0x14000f4b2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14000f49c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14000f498
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000fea0
mov rdi, rax
test rax, rax
je 0x14000f4e0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400148c0
mov rbp, rdi
xor ecx, ecx
call fcn.14000e0f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140013a50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140013a78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140013a78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140017080
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r14
sub rsp, 0xa0
movups xmm0, xmmword [r8]
mov esi, edx
mov dword [rax - 0x68], 0x18c9ca7d
movsd xmm1, qword [r8 + 0x10]
lea rdx, [rsp + 0x40]
mov dword [rax - 0x64], 0xfd92ee3d
lea r8, [rsp + 0x20]
mov dword [rax - 0x60], 0x1f0a757a
mov r14, rcx
mov dword [rax - 0x5c], 0xaab5761e
lea rcx, [rsp + 0x78]
mov dword [rax - 0x58], 0x4af8d1d3
mov dword [rax - 0x54], 0x68f4bbfb
mov eax, 0xd3c9
movaps xmmword [rsp + 0x20], xmm0
mov word [rsp + 0x58], ax
movsd qword [rsp + 0x30], xmm1
call fcn.140016350
xor edi, edi
movups xmm0, xmmword [rax]
movsd xmm1, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x72], eax
mov rax, qword gs:[0x30]
movups xmmword [rsp + 0x5a], xmm0
movsd qword [rsp + 0x6a], xmm1
mov rcx, qword [rax + 0x60]
mov rbx, qword [rcx + 0x18]
add rbx, 0x20
mov r11, qword [rbx]
cmp r11, rbx
je 0x1400171b0
nop dword [rax]
nop word [rax + rax]
mov r9, qword [r11 + 0x50]
lea r10, [rsp + 0x5a]
test r9, r9
je 0x1400171a8
movzx edx, word [r9]
test dx, dx
je 0x14001719e
movzx eax, word [r10]
test ax, ax
je 0x140017198
lea ecx, [rdx - 0x41]
cmp cx, 0x19
lea r8d, [rdx + 0x20]
lea ecx, [rax + 0x20]
cmova r8w, dx
lea edx, [rax - 0x41]
cmp dx, 0x19
cmovbe ax, cx
cmp r8w, ax
jne 0x1400171a8
movzx edx, word [r9 + 2]
add r9, 2
add r10, 2
test dx, dx
jne 0x140017157
jmp 0x14001719e
cmp word [r9], di
jne 0x1400171a8
cmp word [r10], di
je 0x140017239
mov r11, qword [r11]
cmp r11, rbx
jne 0x140017140
mov rbx, rdi
mov r8d, 0x563837c7
mov edx, esi
mov rcx, rbx
call fcn.140017320
mov qword [r14], rax
test rax, rax
je 0x140017242
mov r8d, 0x47dd0707
mov edx, esi
mov rcx, rbx
call fcn.140017320
mov qword [r14 + 8], rax
test rax, rax
je 0x140017242
mov r8d, 0xb1e553a4
mov edx, esi
mov rcx, rbx
call fcn.140017320
mov qword [r14 + 0x10], rax
test rax, rax
je 0x140017242
mov r8d, 0x40bce702
mov edx, esi
mov rcx, rbx
call fcn.140017320
mov qword [r14 + 0x18], rax
test rax, rax
je 0x140017242
mov r8d, 0xfb313582
mov edx, esi
mov rcx, rbx
call fcn.140017320
test rax, rax
mov qword [r14 + 0x20], rax
mov ecx, 0xffffffff
cmove edi, ecx
mov eax, edi
jmp 0x140017247
mov rbx, qword [r11 + 0x20]
jmp 0x1400171b3
mov eax, 0xffffffff
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret
Function at 0x140017320
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov ebp, r8d
mov r14d, edx
mov rdi, rcx
test rcx, rcx
je 0x1400173e4
movsxd rax, dword [rcx + 0x3c]
xor r11d, r11d
mov r9d, dword [rax + rcx + 0x88]
add r9, rcx
mov ebx, dword [r9 + 0x20]
mov r15d, dword [r9 + 0x24]
add rbx, rcx
mov r12d, dword [r9 + 0x1c]
add r15, rcx
mov esi, dword [r9 + 0x18]
add r12, rcx
test esi, esi
je 0x1400173e4
nop dword [rax + rax]
mov r9d, dword [rbx]
xor edx, edx
add r9, rdi
xor r10d, r10d
mov eax, r14d
movsx r8d, byte [r9]
test r8d, r8d
je 0x1400173d4
nop word [rax + rax]
lea ecx, [r8 + rax]
imul edx, ecx, 0xd7bddb77
lea r10d, [r10 + 1]
ror edx, 0x11
add edx, 0xd7bddb77
add eax, edx
ror eax, 0xf
imul eax, r8d
movsx r8d, byte [r10 + r9]
add eax, eax
mov edx, eax
ror eax, 0xe
ror edx, 0x10
test r8d, r8d
jne 0x1400173a0
cmp edx, ebp
je 0x140017401
inc r11d
add rbx, 4
cmp r11d, esi
jb 0x140017380
xor eax, eax
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret
movzx ecx, word [r15 + r11*2]
mov eax, dword [r12 + rcx*4]
add rax, rdi
jmp 0x1400173e6
Function at 0x140018990
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x50]
sub rsp, 0x150
movups xmm0, xmmword [r9]
lea r8, [rbp - 0x50]
mov rdi, rdx
movsd xmm1, qword [r9 + 0x10]
lea rdx, [rsp + 0x20]
mov eax, 0xdd60
movaps xmmword [rbp - 0x50], xmm0
mov rbx, rcx
mov dword [rsp + 0x20], 0xcc2a26e0
lea rcx, [rbp - 0x30]
mov dword [rsp + 0x24], 0x8ffd0acb
mov dword [rsp + 0x28], 0xf1de78e5
mov dword [rsp + 0x2c], 0x7b90851
mov dword [rsp + 0x30], 0xfcd08d8d
mov dword [rsp + 0x34], 0x350c87cd
mov dword [rsp + 0x38], 0x36d8380e
mov dword [rsp + 0x3c], 0x5d3bfc43
mov dword [rsp + 0x40], 0xe5aefe83
mov dword [rsp + 0x44], 0xdc6d0240
mov dword [rsp + 0x48], 0x5879a097
mov dword [rsp + 0x4c], 0xb2b85f1
mov dword [rsp + 0x50], 0xdde4a258
mov dword [rsp + 0x54], 0xccb3f92f
mov dword [rsp + 0x58], 0xc44e3b3e
mov dword [rsp + 0x5c], 0xa65b8da7
mov dword [rsp + 0x60], 0xee41097f
mov dword [rsp + 0x64], 0xbf1352d9
mov dword [rsp + 0x68], 0x886b4981
mov dword [rsp + 0x6c], 0xbb6def03
mov dword [rsp + 0x70], 0xc76fa505
mov dword [rsp + 0x74], 0xf761fd07
mov dword [rsp + 0x78], 0xb7635d09
mov dword [rsp + 0x7c], 0xb765dd0b
mov dword [rbp - 0x80], 0xb767dd0d
mov dword [rbp - 0x7c], 0xb779dd0f
mov dword [rbp - 0x78], 0xb77bdd11
mov dword [rbp - 0x74], 0xb77ddd13
mov dword [rbp - 0x70], 0xb77fdd15
mov dword [rbp - 0x6c], 0xb771dd17
mov dword [rbp - 0x68], 0xb773dd19
mov word [rbp - 0x64], ax
movsd qword [rbp - 0x40], xmm1
call fcn.140016950
lea rcx, [rbp - 0x60]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rsp + 0x30], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rsp + 0x50], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rsp + 0x70], xmm1
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm1
call qword [rbx + 0x88]
lea rdx, [rbp + 0x60]
lea rcx, [rbp - 0x60]
call qword [rbx + pe_nt_image_headers64]
mov rcx, qword [rbp + 0x60]
mov eax, 0x8421085
mul ecx
mov r8d, ecx
mov eax, 0x8421085
sub r8d, edx
shr r8d, 1
add r8d, edx
mul ecx
mov eax, ecx
shr r8d, 5
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub ecx, eax
movzx ecx, word [rsp + rcx*2 + 0x20]
mov r9d, 1
mov word [rdi], cx
test r8d, r8d
je 0x140018ba4
nop
mov ecx, r8d
mov eax, 0x8421085
mul r8d
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 5
imul eax, ecx, 0x3e
sub r8d, eax
mov eax, r8d
mov r8d, ecx
mov ecx, r9d
inc r9d
movzx eax, word [rsp + rax*2 + 0x20]
mov word [rdi + rcx*2], ax
test r8d, r8d
jne 0x140018b70
mov eax, r9d
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
inc r9d
mov word [rdi + rax*2], 0x2e
mov word [rdi + r9*2], 0x70
inc r9d
mov word [rdi + r9*2], 0x64
inc r9d
xor eax, eax
mov word [rdi + r9*2], 0x66
lea ecx, [r9 + 1]
mov word [rdi + rcx*2], ax
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140001001
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400c8dd0]
mov rcx, qword [0x1400c8d70]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x1400c8de0]
cmp word [rcx], 0x5a4d
mov dword [rax], 1
mov rax, qword [0x1400c8df0]
mov dword [rax], 1
jne 0x140001083
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001083
mov ecx, dword [rax + 0x18]
cmp cx, 0x10b
je 0x14000105e
cmp cx, 0x20b
je 0x14000106d
jmp 0x140001083
cmp dword [rax + 0x74], 0xe
jbe 0x140001083
cmp dword [rax + 0xe8], 0
jmp 0x14000107d
cmp dword [rax + 0x84], 0xe
jbe 0x140001083
cmp dword [rax + 0xf8], 0
setne dl
movzx edx, dl
mov rax, qword [0x1400c8dc0]
mov dword [0x140106020], edx
mov ecx, 2
cmp dword [rax], 0
jne 0x14000109f
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400c8eb0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400c8e90]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1400c8260]
cmp dword [rax], 1
jne 0x1400010e1
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
Function at 0x140008e94
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1401060f8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1401060f4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140008ee2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140008eda
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140008fc9
inc ebx
add rax, 0x28
jmp 0x140008eba
mov rcx, r12
call sym.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
jne 0x140008f01
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
movsxd rbx, ebx
mov rax, qword [0x1401060f8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call sym._GetPEImageBase
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401060f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140008f63
mov rax, qword [0x1401060f8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140008fc3
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140008fc3
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 [0x1401060f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140008fc3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
inc dword [0x1401060f4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140009430
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140106160]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140106140]
test rbx, rbx
je 0x14000947c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140009476
test rsi, rsi
je 0x140009476
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x14000944e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140009630
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140009653
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140009653
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret