joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018fb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x140019169
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov esi, r9d
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x140019046
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.14001be00
mov r8d, dword [rbx + 0x80]
mov r9d, esi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.1400169f0
mov ecx, dword [rbx + 0x84]
test ecx, ecx
jns 0x140019037
mov eax, ecx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x80]
test eax, eax
cmovg edx, eax
call fcn.1400163c0
mov dword [rbx + 0x80], 0
jmp 0x140019155
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
mov r8d, 4
call fcn.14001c340
movzx edx, word [rbx + 0x48]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rdi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rdi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], esi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], esi
movsd xmm0, qword [rdi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], esi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], esi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x48], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140025800
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14004e900]
xor rax, rsp
mov qword [rsp + 0x48], rax
call fcn.14000b020
mov rcx, qword [0x14004eeb8]
lea rdx, [rsp + 0x28]
mov rdi, rax
call qword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [rsp + 0x30]
sub ecx, dword [rsp + 0x28]
movd xmm1, ecx
mov ecx, dword [rsp + 0x34]
sub ecx, dword [rsp + 0x2c]
cvtdq2ps xmm1, xmm1
movd xmm0, ecx
lea rcx, [rsp + 0x40]
cvtdq2ps xmm0, xmm0
movss dword [rdi + 8], xmm1
movss dword [rdi + 0xc], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x40]
xorps xmm1, xmm1
sub rax, qword [0x14004eec0]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x14004eec8]
mov ecx, 0x11
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x10], xmm1
mov rax, qword [rsp + 0x40]
mov qword [0x14004eec0], rax
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rdi + 0x128], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rdi + 0x129], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x12b], 0
mov byte [rdi + 0x12a], al
call fcn.14000b020
cmp byte [rax + 0x3a7], 0
lea rbx, [rax + 0x110]
je 0x14002592d
cvttss2si ecx, dword [rbx]
lea rdx, [rsp + 0x38]
cvttss2si eax, dword [rax + 0x114]
mov dword [rsp + 0x38], ecx
mov rcx, qword [0x14004eeb8]
mov dword [rsp + 0x3c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov dword [rbx], 0xff7fffff
mov dword [rbx + 4], 0xff7fffff
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, qword [0x14004eeb8]
jne 0x140025989
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140025989
mov rcx, qword [0x14004eeb8]
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x140025989
movd xmm0, dword [rsp + 0x20]
movd xmm1, dword [rsp + 0x24]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx], xmm0
movss dword [rbx + 4], xmm1
cmp byte [rdi + 0xc8], 0
je 0x140025999
mov eax, 0xffffffff
jmp 0x14002599e
call fcn.14000b0d0
cmp dword [0x14004e13c], eax
je 0x1400259b1
mov dword [0x14004e13c], eax
call fcn.1400259e0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14003f0c0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140025e40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x14004e900]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [rcx]
mov ebx, edx
test al, al
je 0x140025e78
cmp al, 0x25
jne 0x140025e6d
cmp byte [rcx + 1], al
jne 0x140025e78
inc rcx
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x140025e61
cmp byte [rcx], 0x25
jne 0x140025f49
cmp byte [rcx + 1], 0x25
je 0x140025f49
xorps xmm3, xmm3
mov r8, rcx
cvtss2sd xmm3, xmm2
mov edx, 0x40
lea rcx, [rsp + 0x30]
movq r9, xmm3
call fcn.14000ba50
cmp byte [rsp + 0x30], 0x20
lea rcx, [rsp + 0x30]
jne 0x140025ebd
inc rcx
cmp byte [rcx], 0x20
je 0x140025eb5
lea eax, [rbx - 4]
cmp eax, 1
jbe 0x140025f37
movzx edx, byte [rcx]
movzx r8d, dl
cmp dl, 0x2d
jne 0x140025ed6
movzx r8d, byte [rcx + 1]
lea rax, [rcx + 1]
xorps xmm1, xmm1
cmovne rax, rcx
cmp r8b, 0x2b
lea rcx, [rax + 1]
cmovne rcx, rax
movzx eax, byte [rcx]
cmp al, 0x30
jl 0x140025f26
movss xmm2, dword [0x1400419f8]
nop dword [rax]
cmp al, 0x39
ja 0x140025f26
movsx eax, byte [rcx]
inc rcx
sub eax, 0x30
mulss xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movaps xmm1, xmm0
cmp al, 0x30
jge 0x140025f00
cmp dl, 0x2d
jne 0x140025f44
xorps xmm1, xmmword [0x140041a80]
movaps xmm0, xmm1
jmp 0x140025f4c
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm1
jmp 0x140025f4c
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14003f0c0
add rsp, 0x80
pop rbx
ret

Function at 0x140025f70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x14004e900]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [rcx]
mov ebx, edx
test al, al
je 0x140025fa8
cmp al, 0x25
jne 0x140025f9d
cmp byte [rcx + 1], al
jne 0x140025fa8
inc rcx
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x140025f91
cmp byte [rcx], 0x25
jne 0x14002606b
cmp byte [rcx + 1], 0x25
je 0x14002606b
mov r8, rcx
movaps xmm3, xmm2
lea rcx, [rsp + 0x30]
movq r9, xmm2
mov edx, 0x40
call fcn.14000ba50
cmp byte [rsp + 0x30], 0x20
lea rcx, [rsp + 0x30]
jne 0x140025fe9
inc rcx
cmp byte [rcx], 0x20
je 0x140025fe1
lea eax, [rbx - 4]
cmp eax, 1
jbe 0x14002605d
movzx edx, byte [rcx]
movzx r8d, dl
cmp dl, 0x2d
jne 0x140026002
movzx r8d, byte [rcx + 1]
lea rax, [rcx + 1]
xorps xmm1, xmm1
cmovne rax, rcx
cmp r8b, 0x2b
lea rcx, [rax + 1]
cmovne rcx, rax
movzx eax, byte [rcx]
cmp al, 0x30
jl 0x14002604c
movsd xmm2, qword [0x140045a40]
cmp al, 0x39
ja 0x14002604c
movsx eax, byte [rcx]
inc rcx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x140026028
cmp dl, 0x2d
jne 0x140026066
xorps xmm1, xmmword [0x140045a80]
movaps xmm0, xmm1
jmp 0x14002606e
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x14002606e
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14003f0c0
add rsp, 0x80
pop rbx
ret
Function at 0x14003b340
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14004e900]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov ebx, r8d
mov rdi, rdx
xor edx, edx
cmp ecx, 0x7b
ja 0x14003b374
movsxd rax, ecx
lea rdx, [0x14004e2c0]
mov rdx, qword [rdx + rax*8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x140046240]
movdqu xmmword [rsp + 0x48], xmm1
mov byte [rsp + 0x38], 0
test rdx, rdx
jne 0x14003b3a3
mov r8d, 0xa
lea rdx, str.Select_Key
jmp 0x14003b3ba
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x14003b3b0
lea rcx, [rsp + 0x38]
call fcn.14003d960
cmp ebx, 1
jne 0x14003b3e0
mov r8d, 9
lea rdx, str.Press_Key
lea rcx, [rsp + 0x38]
call fcn.14003d960
mov dword [rsp + 0x30], 0x42fa0000
mov dword [rsp + 0x34], 0x41c80000
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0xf
cmova rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x30]
call fcn.14002a0d0
test al, al
je 0x14003b431
test ebx, ebx
jne 0x14003b431
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], ebx
xor r9d, r9d
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x14003b471
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003b46c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003b46c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003ec84
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003f0c0
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14003f868
Capabilities:
Parse pe header

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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x498
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r15, qword [rax + 0x20]
lea rsi, [rax + 0x20]
xor eax, eax
lea rbx, [rsp + 0x160]
mov qword [rsp + 0x4e0], rcx
mov ecx, 0x20
mov rdi, rbx
mov qword [rsp + 0x48], rsi
rep stosq qword [rdi], rax
cmp rsi, r15
je 0x14000331e
mov r13, qword [sym.imp.msvcrt.dll_strcpy_s]
lea rsi, [rsp + 0x50]
xor r14d, r14d
lea r12, [rsp + 0x270]
lea rbp, [rsp + 0x380]
nop word [rax + rax]
mov rax, r14
mov ecx, 0x20
mov rdi, rsi
xor edx, edx
rep stosq qword [rdi], rax
mov ecx, 0x20
mov r9d, 0xffffffff
mov dword [rdi], 0
mov rdi, rbx
rep stosq qword [rdi], rax
mov dword [rdi], 0
mov r8, qword [r15 + 0x40]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r8, qword [rsp + 0x4e0]
mov edx, 0x104
mov rcx, rbx
call r13
mov r8, rbx
mov edx, 0x104
mov rcx, r12
call r13
mov edx, 0x104
mov r8, rsi
mov rcx, rbp
call r13
mov rcx, r12
call qword [sym.imp.msvcrt.dll__strlwr]
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__strlwr]
mov rdx, r12
mov rcx, rbp
call sub.msvcrt.dll_strstr
test rax, rax
je 0x140003310
mov rax, qword [r15 + 0x20]
add rsp, 0x498
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [r15]
cmp qword [rsp + 0x48], r15
jne 0x140003258
xor eax, eax
jmp 0x1400032fb

Function at 0x140003330
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
movdqa xmm0, xmmword [str.NtQuerySystemInformation]
mov rax, qword [0x140163950]
lea rcx, [0x140163930]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x38], 0
movaps xmmword [rsp + 0x20], xmm0
call fcn.1400031e0
mov rdi, rax
movsxd rax, dword [rax + 0x3c]
add rax, rdi
mov edx, dword [rax + 0x8c]
test edx, edx
je 0x1400033f0
mov r12d, dword [rax + 0x88]
add r12, rdi
mov ebx, dword [r12 + 0x20]
mov ebp, dword [r12 + 0x18]
add rbx, rdi
test ebp, ebp
je 0x1400033f0
xor esi, esi
lea r13, [rsp + 0x20]
jmp 0x1400033ad
add rsi, 1
add rbx, 4
cmp rbp, rsi
je 0x1400033f0
mov ecx, dword [rbx]
mov rdx, r13
add rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400033a0
mov edx, dword [r12 + 0x24]
lea rcx, [rdi + rsi*2]
mov eax, dword [r12 + 0x1c]
movzx edx, word [rcx + rdx]
lea rdx, [rdi + rdx*4]
mov eax, dword [rdx + rax]
add rax, rdi
je 0x1400033f0
xor r9d, r9d
xor ecx, ecx
mov r8d, 0x40
mov rdx, r13
call rax
test eax, eax
je 0x1400033ff
xor eax, eax
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor eax, eax
cmp byte [rsp + 0x58], 2
setle al
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x140003590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm6
movdqa xmm0, xmmword [str.NtQueryInformationProcesntdll.dll]
mov rax, qword [0x1401639a0]
mov ecx, 0x73
movq xmm6, qword [0x1401639a8]
movzx ebp, word [0x1401639b0]
lea rdi, [rsp + 0x40]
mov word [rsp + 0x68], cx
mov rcx, rdi
mov byte [rsp + 0x3f], 0
mov qword [rsp + 0x60], rax
mov word [rsp + 0x48], bp
movaps xmmword [rsp + 0x50], xmm0
movq qword [rsp + 0x40], xmm6
call fcn.140003440
mov rbx, rax
movsxd rax, dword [rax + 0x3c]
add rax, rbx
mov r8d, dword [rax + 0x8c]
test r8d, r8d
je 0x14000378c
mov r13d, dword [rax + 0x88]
add r13, rbx
mov r14d, dword [r13 + 0x20]
mov r12d, dword [r13 + 0x18]
add r14, rbx
test r12d, r12d
je 0x14000378c
xor r15d, r15d
lea rsi, [rsp + 0x50]
jmp 0x140003651
add r15, 1
add r14, 4
cmp r12, r15
je 0x140003778
mov ecx, dword [r14]
mov rdx, rsi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140003640
mov edx, dword [r13 + 0x24]
lea rcx, [rbx + r15*2]
mov eax, dword [r13 + 0x1c]
movzx edx, word [rcx + rdx]
lea rdx, [rbx + rdx*4]
mov r12d, dword [rdx + rax]
add r12, rbx
setne r13b
movdqa xmm0, xmmword [str.NtCurrentProcessNtCreateSnapshotNtClose]
mov rcx, rdi
mov byte [rsp + 0x60], 0
mov word [rsp + 0x48], bp
movaps xmmword [rsp + 0x50], xmm0
movq qword [rsp + 0x40], xmm6
call fcn.140003440
mov rbx, rax
movsxd rax, dword [rax + 0x3c]
add rax, rbx
mov edx, dword [rax + 0x8c]
test edx, edx
je 0x140003788
mov ebp, dword [rax + 0x88]
add rbp, rbx
mov r14d, dword [rbp + 0x20]
mov edi, dword [rbp + 0x18]
add r14, rbx
test edi, edi
je 0x140003788
xor r15d, r15d
jmp 0x1400036f1
add r15, 1
add r14, 4
cmp rdi, r15
je 0x140003788
mov ecx, dword [r14]
mov rdx, rsi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400036e0
mov edx, dword [rbp + 0x24]
lea rcx, [rbx + r15*2]
mov eax, dword [rbp + 0x1c]
movzx edx, word [rcx + rdx]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
je 0x140003788
call rax
mov rcx, rax
xor edx, edx
mov r9d, 0x30
mov r8, rsi
mov qword [rsp + 0x20], 0
call r12
test eax, eax
jne 0x140003752
test r13b, r13b
je 0x140003752
mov rax, qword [rsp + 0x58]
cmp byte [rax + 2], 0
je 0x140003752
mov byte [rsp + 0x3f], 1
movzx eax, byte [rsp + 0x3f]
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r13d, r13d
xor r12d, r12d
jmp 0x140003682
xor ecx, ecx
jmp 0x140003722
xor r13d, r13d
xor r12d, r12d
lea rsi, [rsp + 0x50]
jmp 0x140003682
Function at 0x14001a970
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 fcn.140022b50
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.140022b50
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 0x14001a9e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401700d4]
mov rbx, rcx
test esi, esi
jle 0x14001ab10
mov rax, qword [0x1401700d8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001aa2b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14001aab5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14001aa10
mov rcx, rbx
call fcn.14001b510
mov rdi, rax
test rax, rax
je 0x14001ab32
mov rax, qword [0x1401700d8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14001b650
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401700d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001ab17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14001aaae
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14001aac0
add dword [0x1401700d4], 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 [0x1401700d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001aaae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14001a970
nop dword [rax]
xor esi, esi
jmp 0x14001aa38
mov rax, qword [0x1401700d8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14001a970
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14001a970
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14001b200
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp edx, 2
je 0x14001b330
ja 0x14001b248
test edx, edx
je 0x14001b2c8
mov eax, dword [0x140170128]
test eax, eax
je 0x14001b3b0
mov dword [0x140170128], 1
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp edx, 3
jne 0x14001b235
mov eax, dword [0x140170128]
test eax, eax
je 0x14001b235
lea r12, [0x140170140]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140170120]
test rbx, rbx
je 0x14001b2b4
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 rsi, rsi
je 0x14001b3d8
test eax, eax
jne 0x14001b3d8
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001b288
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14001b235
mov eax, dword [0x140170128]
test eax, eax
jne 0x14001b348
mov eax, dword [0x140170128]
cmp eax, 1
jne 0x14001b235
mov rbx, qword [0x140170120]
test rbx, rbx
je 0x14001b301
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
call fcn.140023558
test rbx, rbx
jne 0x14001b2f0
lea rcx, [0x140170140]
mov qword [0x140170120], 0
mov dword [0x140170128], 0
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x14001b235
call fcn.14001a960
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r12, [0x140170140]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140170120]
test rbx, rbx
je 0x14001b39c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word [rax + rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14001b3c8
test rsi, rsi
je 0x14001b3c8
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001b378
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14001b2d2
lea rcx, [0x140170140]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x14001b22b
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001b378
jmp 0x14001b39c
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001b288
jmp 0x14001b2b4

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

Disassembly:
mov r8, qword [0x140167bb0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14001b530
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14001b538
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14001b530
movzx eax, word [rdx + 0x14]
sub rcx, r8
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14001b585
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14001b57c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14001b530
add rax, 0x28
cmp rax, r9
jne 0x14001b568
xor eax, eax
ret
Function at 0x14001b590
Capabilities:
Parse pe header

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

Function at 0x14001b650
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140167bb0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14001b66f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14001b678
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x14001b8f0
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x140170128]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x14001b120
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x14001b16a
mov qword [rax + 8], rsi
lea rsi, [0x140170140]
mov dword [rax], edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140170120]
mov rcx, rsi
mov qword [0x140170120], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14001b116
or eax, 0xffffffff
jmp 0x14001b118
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14001b920
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp 0x140023750
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x140023760
xor eax, eax
ret
jmp 0x14001b100

Function at 0x14001b960
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x14001b990
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14001b9a8
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]