joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400298d0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1400de080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [0x1400e1b70]
lea rdx, [rsp + 0x38]
mov rdi, qword [0x1400e1960]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x40]
lea rcx, [rsp + 0x30]
sub eax, dword [rsp + 0x38]
mov qword [rsp + 0x30], 0
movd xmm1, eax
mov eax, dword [rsp + 0x44]
sub eax, dword [rsp + 0x3c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm1
movss dword [rdi + 0x14], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x30]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x1400e1b78]
cvtsi2ss xmm0, qword [0x1400e1b80]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x1400e1b78], rcx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rdi + 0x140], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rdi + 0x141], al
call qword [sym.imp.USER32.dll_GetKeyState]
mov rbx, qword [0x1400e1960]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x143], 0
mov byte [rdi + 0x142], al
cmp byte [rbx + 0x39b], 0
je 0x140029a0f
cvttss2si eax, dword [rbx + 0x128]
mov rcx, qword [0x1400e1b70]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], eax
cvttss2si eax, dword [rbx + 0x12c]
mov dword [rsp + 0x24], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x140029a0f
mov edx, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov dword [rbx + 0x128], 0xff7fffff
mov dword [rbx + 0x12c], 0xff7fffff
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, qword [0x1400e1b70]
jne 0x140029a79
lea rcx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140029a79
mov rcx, qword [0x1400e1b70]
lea rdx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x140029a79
movd xmm0, dword [rsp + 0x28]
movd xmm1, dword [rsp + 0x2c]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx + 0x128], xmm0
movss dword [rbx + 0x12c], xmm1
cmp byte [rdi + 0xc8], 0
je 0x140029a89
mov eax, 0xffffffff
jmp 0x140029a96
mov rax, qword [0x1400e1960]
mov eax, dword [rax + 0x1f48]
cmp dword [0x1400deea0], eax
je 0x140029aa9
mov dword [0x1400deea0], eax
call fcn.140029480
call fcn.140029600
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140084e10
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140037a80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1400de080]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
mov ebx, edx
mov r8, rcx
test al, al
je 0x140037ac0
cmp al, 0x25
jne 0x140037ab4
cmp byte [r8 + 1], al
jne 0x140037ac0
inc r8
movzx eax, byte [r8 + 1]
inc r8
test al, al
jne 0x140037aa7
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x140037c29
cmp byte [r8 + 1], dl
je 0x140037c29
lea r11, [rsp + 0x20]
mov r9, r8
nop
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x140037afd
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x140037b25
sub dl, 0x61
cmp dl, 0x19
ja 0x140037b17
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x140037b25
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x140037ae0
jmp 0x140037b28
inc r9
cmp r8, r9
jae 0x140037b5f
movabs rdx, 0x800000000000009
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x140037b54
bt rdx, rax
jb 0x140037b5a
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x140037b40
xorps xmm3, xmm3
mov byte [r11], 0
cvtss2sd xmm3, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
movq r9, xmm3
call fcn.140004430
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x140037b98
nop
inc rcx
cmp byte [rcx], 0x20
je 0x140037b90
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x140037c18
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x140037bba
movzx r8d, byte [rcx + 1]
lea rax, [rcx + 1]
mov rcx, rax
movzx eax, r8b
cmp r8b, 0x2b
jne 0x140037bc8
movzx eax, byte [rcx + 1]
lea rdx, [rcx + 1]
xorps xmm1, xmm1
cmovne rdx, rcx
cmp al, 0x30
jl 0x140037c06
movss xmm2, dword [0x1400cb254]
nop
cmp al, 0x39
ja 0x140037c06
movzx eax, al
inc rdx
sub eax, 0x30
mulss xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rdx]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movaps xmm1, xmm0
cmp al, 0x30
jge 0x140037be0
cmp r9b, 0x2d
jne 0x140037c24
xorps xmm1, xmmword [0x1400cb860]
movaps xmm0, xmm1
jmp 0x140037c2c
call fcn.14009712c
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm1
jmp 0x140037c2c
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140084e10
add rsp, 0x90
pop rbx
ret
Function at 0x140037c50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1400de080]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
mov ebx, edx
mov r8, rcx
test al, al
je 0x140037c90
cmp al, 0x25
jne 0x140037c84
cmp byte [r8 + 1], al
jne 0x140037c90
inc r8
movzx eax, byte [r8 + 1]
inc r8
test al, al
jne 0x140037c77
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x140037df3
cmp byte [r8 + 1], dl
je 0x140037df3
lea r11, [rsp + 0x20]
mov r9, r8
nop
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x140037ccd
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x140037cf5
sub dl, 0x61
cmp dl, 0x19
ja 0x140037ce7
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x140037cf5
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x140037cb0
jmp 0x140037cf8
inc r9
cmp r8, r9
jae 0x140037d2f
movabs rdx, 0x800000000000009
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x140037d24
bt rdx, rax
jb 0x140037d2a
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x140037d10
movaps xmm3, xmm2
mov byte [r11], 0
movq r9, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.140004430
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x140037d68
nop dword [rax + rax]
inc rcx
cmp byte [rcx], 0x20
je 0x140037d60
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x140037de6
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x140037d8a
movzx r8d, byte [rcx + 1]
lea rax, [rcx + 1]
mov rcx, rax
movzx eax, r8b
cmp r8b, 0x2b
jne 0x140037d98
movzx eax, byte [rcx + 1]
lea rdx, [rcx + 1]
xorps xmm1, xmm1
cmovne rdx, rcx
cmp al, 0x30
jl 0x140037dd4
movsd xmm2, qword [0x1400cb210]
nop
cmp al, 0x39
ja 0x140037dd4
movzx eax, al
inc rdx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rdx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x140037db0
cmp r9b, 0x2d
jne 0x140037dee
xorps xmm1, xmmword [0x1400cb850]
movaps xmm0, xmm1
jmp 0x140037df6
call fcn.14009712c
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x140037df6
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140084e10
add rsp, 0x90
pop rbx
ret

Function at 0x140042f50
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400e1960]
mov ecx, 1
mov dword [rax + 0x130], 0
mov byte [rax + 0x134], 0
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140042f8a
mov rax, qword [0x1400e1960]
mov byte [rax + 0x130], 1
add rsp, 0x28
ret
Function at 0x140045ec0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400de080]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov ebx, r8d
xor edi, edi
mov edx, edi
cmp ecx, 0xa5
ja 0x140045ef6
movsxd rax, ecx
lea rdx, [0x1400def10]
mov rdx, qword [rdx + rax*8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rdi
mov r8d, 0xf
mov qword [rsp + 0x50], r8
mov byte [rsp + 0x38], dil
test rdx, rdx
jne 0x140045f23
mov qword [rsp + 0x48], rdi
mov byte [rsp + 0x38], dl
jmp 0x140045f49
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140045f30
lea rcx, [rsp + 0x38]
call fcn.1400738b0
mov r8, qword [rsp + 0x50]
cmp ebx, 1
jne 0x140045f6a
lea rax, [rsp + 0x38]
cmp r8, 0xf
cmova rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rdi
mov byte [rax], 0
mov r8, qword [rsp + 0x50]
mov dword [rsp + 0x30], 0x42a00000
mov dword [rsp + 0x34], 0x41a00000
lea rcx, [rsp + 0x38]
cmp r8, 0xf
cmova rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x30]
call fcn.140044e00
test al, al
je 0x140045fb9
test ebx, ebx
jne 0x140045fb9
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [0x140045ba0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x140045ff2
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140045fed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004600a
call fcn.1400850ac
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140084e10
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
call fcn.14008f070
int3
Function at 0x140046010
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400de080]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov ebx, r8d
xor edi, edi
mov edx, edi
cmp ecx, 0xa5
ja 0x140046046
movsxd rax, ecx
lea rdx, [0x1400def10]
mov rdx, qword [rdx + rax*8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rdi
mov r8d, 0xf
mov qword [rsp + 0x50], r8
mov byte [rsp + 0x38], dil
test rdx, rdx
jne 0x140046073
mov qword [rsp + 0x48], rdi
mov byte [rsp + 0x38], dl
jmp 0x140046099
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140046080
lea rcx, [rsp + 0x38]
call fcn.1400738b0
mov r8, qword [rsp + 0x50]
cmp ebx, 1
jne 0x1400460ba
lea rax, [rsp + 0x38]
cmp r8, 0xf
cmova rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rdi
mov byte [rax], 0
mov r8, qword [rsp + 0x50]
mov dword [rsp + 0x30], 0x42a00000
mov dword [rsp + 0x34], 0x41a00000
lea rcx, [rsp + 0x38]
cmp r8, 0xf
cmova rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x30]
call fcn.140044e00
test al, al
je 0x140046109
test ebx, ebx
jne 0x140046109
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [0x140045bf0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x140046142
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004613d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004615a
call fcn.1400850ac
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140084e10
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
call fcn.14008f070
int3
Function at 0x14006e580
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14006e5b1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x14006e62b
mov rdi, r14
mov rcx, rbx
call fcn.1400720e0
test rax, rax
jle 0x14006e603
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.1400b3750
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14006e61b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14006e623
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14006e5c5
sub r14, rdi
jmp 0x14006e70f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14006e642
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14006e644
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14006e676
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400b3750
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14006e70c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14006e6b1
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
cmp rbp, 0xfff
jbe 0x14006e6ed
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400910a8
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14006e70c
cmp rbp, rax
ja 0x14006e6c0
test rbp, rbp
je 0x14006e70c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400910a8
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400832ac
Capabilities:
Get geographical location

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

Function at 0x140085cf4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140085b20
sub rsp, rax
mov rax, qword [0x1400de080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14009f0a4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14008f4df
mov rax, rbp
jmp 0x14008f5e7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xe13b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14009fb78
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xe13b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14008f5e3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008f5e3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14009fb78
test rax, rax
js 0x14008f5e3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14008f5e3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14008f5d5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14008f5d5
cmp byte [rcx], 0xd
jne 0x14008f5bb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14008f5ca
cmp byte [rcx + 1], 0xa
jne 0x14008f5ca
inc rcx
jmp 0x14008f5ca
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xde4b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14008f59d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14008f5e7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140084e10
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14009743c
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 0x1400972a7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400972a7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400972a7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400972a7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400972a7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400972a7
cmp dword [rcx + 0xf8], 0
je 0x1400972a7
mov ecx, ebx
call fcn.140097358
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.140097134
nop
cmp dword [rbp + 0x20], 0
je 0x1400972f5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140097300
int3
xor r8d, r8d
xor edx, edx
jmp 0x140097238
Function at 0x1400978c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400978f7
call fcn.14009887c
mov dword [rax], 0x16
call fcn.14008f050
xor eax, eax
jmp 0x140097985
mov rdx, r9
mov rcx, r8
call fcn.14009785c
mov rbx, rax
test rax, rax
je 0x140097982
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140097788]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14009796f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400987f0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140097956
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140097965
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14009cecc
jmp 0x140097982
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14009797f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14009fc24
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400e13b0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14009fc7b
cmp word [rdx], r13w
jne 0x14009fc7b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14009fc80
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14009fda5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14009fdc6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14009fcb9
mov rdx, r9
mov word [rbx], cx
jmp 0x14009fce0
cmp r9, r8
jae 0x14009fcf0
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14009fc9a
jmp 0x14009fda5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14009fd9a
cmp dword [rsp + 0x80], esi
je 0x14009fd9a
lea r8, [0x1400e13b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14009fd72
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14009fd42
mov word [rbx], r13w
jmp 0x14009fda2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14009fd4f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14009fda2
cmp word [rsp + 0x70], r13w
jne 0x14009fd7f
cmp rbx, r14
je 0x14009fd3c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14009fb80
cmp word [rsp + 0x70], r13w
je 0x14009fda5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400e13b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14009fd9f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14009fda5
Function at 0x1400a1ccc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400a1ce2
mov al, 1
jmp 0x1400a1d42
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400a1cf3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400a1d40
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400a6678
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400a1d40
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400a1d40
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400a1d40
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400a1d42
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400a5964
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400a5994
xor eax, eax
jmp 0x1400a5a57
mov rbp, rbx
cmp word [rax], si
je 0x1400a59b9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400a59a0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400a599c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400a40d8
movsxd r14, eax
test eax, eax
jne 0x1400a59f7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400a598d
mov rcx, r14
call fcn.14009dda4
mov rdi, rax
test rax, rax
jne 0x1400a5a10
xor ecx, ecx
call fcn.14009cecc
jmp 0x1400a59ec
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400a40d8
test eax, eax
jne 0x1400a5a41
mov rcx, rdi
call fcn.14009cecc
jmp 0x1400a5a4b
xor ecx, ecx
call fcn.14009cecc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400a8bcc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14009f5b0
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400a8c6d
cmp ebx, dword [rsp + 0x30]
je 0x1400a8c66
test esi, esi
je 0x1400a8c66
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400a8c41
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400a8c4e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400a8c2b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400a8c52
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400a8c6f
mov eax, 1
jmp 0x1400a8c6f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret