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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rbx, rcx
mov r8, qword [rcx + 0x30]
test r8, r8
je 0x14026867b
xor eax, eax
mov r11d, eax
mov r9d, dword [r8 + 0x40]
mov r10d, dword [r8 + 0x44]
jmp 0x1402686fc
mov rax, qword [0x140444cb0]
test rax, rax
jne 0x1402686a6
mov ecx, 0x150
call fcn.1400da124
mov qword [rsp + 0x50], rax
mov rcx, rax
call fcn.1402603d0
nop
mov qword [0x140444cb0], rax
mov rcx, qword [rax + 0x88]
mov rax, qword [rcx]
movsxd rcx, dword [rcx + 0xc]
lea rdx, [rcx + rcx*4]
shl rdx, 4
add rdx, rax
cmp rax, rdx
je 0x1402686d2
cmp byte [rax], 0
jne 0x1402686d4
add rax, 0x50
cmp rax, rdx
jne 0x1402686c4
xor eax, eax
movups xmm2, xmmword [rax + 0x14]
movdqa xmm0, xmm2
psrldq xmm0, 0xc
movd r10d, xmm0
mov r9d, dword [rax + 0x1c]
movdqa xmm0, xmm2
psrldq xmm0, 4
movd r11d, xmm0
movd eax, xmm2
mov ecx, dword [rdi + 4]
lea edx, [rcx + rax]
mov dword [rsp + 0x30], edx
mov r8d, dword [rdi]
lea eax, [r8 + r11]
mov dword [rsp + 0x34], eax
sub r9d, dword [rdi + 0xc]
sub r9d, ecx
mov dword [rsp + 0x38], r9d
sub r10d, dword [rdi + 8]
sub r10d, r8d
mov dword [rsp + 0x3c], r10d
mov rax, qword [rsp + 0x38]
shr rax, 0x20
mov r8, qword [rsp + 0x30]
shr r8, 0x20
mov dword [rsp + 0x20], eax
mov rcx, rbx
call fcn.140289940
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140268970
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
movzx ebp, r8b
movzx r14d, dl
mov rsi, rcx
mov rdx, rcx
lea rcx, [rsp + 0x58]
call fcn.140099a40
nop
mov rbx, qword [rsp + 0x58]
test r14b, r14b
je 0x1402689c5
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x118]
test rbx, rbx
je 0x140268aa7
cmp qword [rbx + 0x10], 0
je 0x140268aa7
test bpl, bpl
je 0x140268a1d
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x110]
test rbx, rbx
je 0x140268aa7
cmp qword [rbx + 0x10], 0
je 0x140268aa7
mov edi, dword [rsi + 0x64]
sub edi, 1
js 0x140268a1d
movsxd rcx, edi
mov rax, qword [rsi + 0x58]
mov rcx, qword [rax + rcx*8]
mov rax, qword [rcx]
call qword [rax + 0x128]
cmp qword [rbx + 0x10], 0
je 0x140268aa7
cmp dword [rsi + 0x64], edi
cmovl edi, dword [rsi + 0x64]
sub edi, 1
jns 0x1402689f2
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x140268a32
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + pe_nt_image_headers64]
test rbx, rbx
je 0x140268a88
cmp qword [rbx + 0x10], 0
je 0x140268a88
mov edi, dword [rsi + 0xac]
cmp qword [rbx + 0x10], 0
je 0x140268a88
test edi, edi
jle 0x140268a88
mov eax, dword [rsi + 0xac]
dec edi
cmp edi, eax
jl 0x140268a67
lea edi, [rax - 1]
mov eax, edi
shr eax, 0x1f
xor al, 1
je 0x140268a88
movsxd rcx, edi
mov rax, qword [rsi + 0xa0]
mov rcx, qword [rax + rcx*8]
mov rax, qword [rcx]
movzx r9d, bpl
movzx r8d, r14b
mov rdx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x140268a44
test r14b, r14b
jne 0x140268a92
test bpl, bpl
je 0x140268aa7
test rbx, rbx
je 0x140268aa7
cmp qword [rbx + 0x10], 0
je 0x140268aa7
mov rcx, rsi
call fcn.140262900
nop
test rbx, rbx
je 0x140268aca
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140268aca
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140280310
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov edi, r8d
mov esi, edx
mov rbx, rcx
mov rax, qword [rcx + 0x50]
test rax, rax
je 0x14028033a
movups xmm2, xmmword [rax]
movsd xmm0, qword [rax + 0x10]
jmp 0x140280350
movdqa xmm2, xmmword [0x1403b5fb0]
xorps xmm1, xmm1
movss xmm0, dword [0x1403b5ae4]
unpcklps xmm0, xmm1
movups xmmword [rsp + 0x40], xmm2
movsd qword [rsp + 0x50], xmm0
mov rdx, qword [rcx + 0x30]
test rdx, rdx
je 0x14028037b
xor ecx, ecx
mov qword [rsp + 0x30], rcx
mov eax, dword [rdx + 0x40]
mov dword [rsp + 0x38], eax
mov eax, dword [rdx + 0x44]
mov dword [rsp + 0x3c], eax
jmp 0x1402803e0
mov rax, qword [0x140444cb0]
test rax, rax
jne 0x1402803a9
mov ecx, 0x150
call fcn.1400da124
mov qword [rsp + 0x80], rax
mov rcx, rax
call fcn.1402603d0
nop
mov qword [0x140444cb0], rax
mov rax, qword [rax + 0x88]
mov rcx, qword [rax]
movsxd rax, dword [rax + 0xc]
lea rdx, [rax + rax*4]
shl rdx, 4
add rdx, rcx
cmp rcx, rdx
je 0x1402803d5
cmp byte [rcx], 0
jne 0x1402803d7
add rcx, 0x50
cmp rcx, rdx
jne 0x1402803c7
xor ecx, ecx
movups xmm0, xmmword [rcx + 0x14]
movups xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.1401de360
mov r8, rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.140035d50
mov eax, dword [rsp + 0x4c]
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
mov eax, edi
cdq
sub eax, edx
sar eax, 1
sub r8d, eax
add r8d, dword [rsp + 0x44]
mov eax, dword [rsp + 0x48]
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
add ecx, dword [rsp + 0x40]
mov dword [rsp + 0x20], edi
mov r9d, esi
mov edx, ecx
mov rcx, rbx
call fcn.140289940
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140282dd0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
test dl, dl
je 0x140282e1b
mov ecx, 0x26
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
test al, 1
jne 0x140282e14
mov ecx, 0x10025
call fcn.1401ebd90
test al, al
jne 0x140282e14
mov ecx, 0x10028
call fcn.1401ebd90
test al, al
jne 0x140282e14
mov ecx, 0x10027
call fcn.1401ebd90
test al, al
je 0x140282e1b
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret

Function at 0x140284f80
Capabilities:
Create process on windows

Disassembly:
add rcx, 0x1f0
mov rax, qword [rcx]
cmp byte [rax], 0
jne fcn.14017e7c0
ret
Function at 0x140001318
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rbp, r9
lea rcx, [0x14000518b]
mov rsi, r8
mov rdi, rdx
call fcn.140001000
test rdi, rdi
je 0x140001420
cmp rsi, 0x40
jb 0x140001420
mov eax, 0x5a4d
cmp ax, word [rdi]
jne 0x140001420
movsxd rcx, dword [rdi + 0x3c]
lea rax, [rcx + 0x108]
cmp rsi, rax
jb 0x140001420
cmp dword [rcx + rdi], 0x4550
jne 0x140001420
mov eax, 0x8664
cmp ax, word [rcx + rdi + 4]
jne 0x140001420
mov eax, 0x20b
cmp ax, word [rcx + rdi + 0x18]
jne 0x140001420
mov rcx, rbx
call fcn.14000185c
mov r9, rbp
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call fcn.14000143c
mov edi, eax
mov rcx, rbx
test eax, eax
je 0x1400013cd
call fcn.140001244
mov eax, edi
jmp 0x140001425
call fcn.140001888
test al, al
jne 0x1400013dd
mov edi, 3
jmp 0x140001416
mov rcx, rbx
call fcn.1400016f0
test al, al
je 0x140001413
mov rcx, rbx
call fcn.1400012a4
test al, al
je 0x140001413
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 1]
call fcn.1400011d4
test al, al
jne 0x14000140f
mov edi, 6
jmp 0x140001416
xor eax, eax
jmp 0x140001425
or edi, 0xffffffff
mov rcx, rbx
call fcn.14000185c
jmp 0x1400013c9
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140001550
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
lea rcx, [0x14000518b]
call fcn.140001000
mov rax, qword [rbx + 0x18]
and qword [rbx + 0x20], 0
test rax, rax
je 0x14000164d
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
mov r14d, dword [rcx + 0x50]
cmp rdi, r14
ja 0x14000164d
movzx eax, word [rcx + 6]
and dword [rsp + 0x50], 0
mov r12d, eax
test rax, rax
je 0x14000161b
xor ebp, ebp
lea rsi, [rcx + 0x118]
mov r15d, dword [rsi - 4]
add r15, qword [rbx + 0x18]
mov ecx, dword [rsi]
test ecx, ecx
je 0x14000160f
test dword [rsi + 0x14], 0x20000000
je 0x14000160f
cmp rdi, rcx
ja 0x14000160f
sub ecx, edi
call fcn.1400016a4
mov rcx, qword [rbx + 0x30]
mov r8, rdi
lea r13, [r15 + rax]
mov rdx, r13
call fcn.14000107c
lea r9, [rsp + 0x50]
mov r8d, 0x40
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000166c
inc rbp
add rsi, 0x28
cmp rbp, r12
jl 0x1400015be
sub r14d, edi
mov ecx, r14d
call fcn.1400016a4
mov rsi, rax
lea r9, [rsp + 0x50]
add rsi, qword [rbx + 0x18]
mov r8d, 0x40
mov rcx, rsi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001676
cmp byte [rbx + 4], al
jne 0x14000167e
xor al, al
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov qword [rbx + 0x20], r13
mov byte [rbx + 3], 1
jmp 0x14000168d
mov qword [rbx + 0x20], rsi
mov byte [rbx + 3], 1
mov rcx, qword [rbx + 0x30]
mov r8, rdi
mov rdx, rsi
call fcn.14000107c
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14000164d
mov r8, rdi
xor edx, edx
call fcn.14000118c
mov al, 1
jmp 0x14000164f
Function at 0x140001030
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx], 0x8457134f
mov rbx, rcx
jne 0x140001087
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x140001087
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001087
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
test rax, rax
je 0x140001087
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
jmp 0x14000108c
mov eax, 0xc0000001
add rsp, 0x20
pop rbx
ret

Function at 0x140001094
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx], 0x8457134f
mov rdi, rcx
jne 0x140001159
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x140001159
and qword [r11 + 8], 0
lea rdx, [r11 + 8]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001159
call fcn.140001170
mov rcx, qword [rsp + 0x40]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rdi + 8]
mov rcx, rbx
mov rsi, qword [rdi + 0x18]
call fcn.140001388
test rax, rax
je 0x140001159
mov ecx, eax
mov edx, 0x1000
and ecx, 0xfff
sub edx, ecx
mov rcx, qword [rdi + 0x10]
cmp edx, esi
cmovl esi, edx
and qword [rsp + 0x48], 0
cmp byte [rdi + 0x20], 0
movsxd r8, esi
je 0x14000113c
mov rdx, rcx
lea r9, [rsp + 0x48]
mov rcx, rax
call fcn.140001564
jmp 0x140001155
lea rdx, [rsp + 0x48]
mov r9d, 1
mov qword [rsp + 0x20], rdx
mov rdx, rax
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
xor eax, eax
jmp 0x14000115e
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140002710
Capabilities:
Accept command line arguments

Disassembly:
mov rdx, r8
lea rcx, [0x1400011e0]
jmp fcn.140012640

Function at 0x14000db20
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x14000dbb6
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x14000dbbd
mov r15, rsi
jmp 0x14000db7b
cmp r15, r14
cmovb r14, r15
mov rcx, rdi
mov r8, r14
call fcn.14003bd40
add rdi, r14
sub r15, r14
mov rax, qword [rbx + 0x50]
sub dword [rax], r14d
mov rax, qword [rbx + 0x38]
add qword [rax], r14
test r15, r15
jle 0x14000dbae
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000db93
mov rax, qword [rbx + 0x50]
mov r14d, dword [rax]
test r14d, r14d
jg 0x14000db50
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14000dbae
mov byte [rdi], al
inc rdi
dec r15
test r15, r15
jg 0x14000db7b
sub rsi, r15
jmp 0x14000dcaa
xor esi, esi
jmp 0x14000dcaa
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000dc10
mov rax, qword [rbx + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x14000dc10
cmp r15, rsi
cmovae r15, rsi
mov rcx, rdi
mov r8, r15
call fcn.14003bd40
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [rbx + 0x80], 0
jne 0x14000dc21
jmp 0x14000dca7
mov r14, rsi
cmp qword [rbx + 0x80], 0
je 0x14000dca7
mov rax, qword [rbx + 0x18]
lea rcx, [rbx + 0x70]
cmp qword [rax], rcx
jne 0x14000dc50
mov ecx, dword [rbx + 0x90]
mov rdx, qword [rbx + 0x88]
mov qword [rax], rdx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rbx + 0x50]
mov dword [rax], ecx
nop dword [rax]
cmp r14, 0x1000
jb 0x14000dc83
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call fcn.140024ff8
add rdi, rax
sub r14, rax
cmp rax, 0xfff
je 0x14000dc50
jmp 0x14000dca7
test r14, r14
je 0x14000dca4
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, r14
call fcn.140024ff8
sub r14, rax
jmp 0x14000dca7
xor r14d, r14d
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14001be8c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001bed6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001bed6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001bed6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001bed6
cmp dword [rcx + 0x84], 0xe
jbe 0x14001bed6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001bed8
xor al, al
add rsp, 0x28
ret
Function at 0x14001cd84
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 0x14001cdbe
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14001cdc3
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 0x14001ce0c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14003f500]
cmp byte [rcx + rax], 0
je 0x14001ce0c
dec r8
sub rdx, 1
jne 0x14001cdf2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140026f58
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140026d54
Function at 0x14002d7a0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002d7b6
mov al, 1
jmp 0x14002d816
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002d7c7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002d814
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400336e8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002d814
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002d814
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002d814
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002d816
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14002eedc
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, [0x1400584a0]
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 0x14002ef33
cmp word [rdx], r13w
jne 0x14002ef33
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14002ef38
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14002f05d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002f07e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14002ef71
mov rdx, r9
mov word [rbx], cx
jmp 0x14002ef98
cmp r9, r8
jae 0x14002efa8
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 0x14002ef52
jmp 0x14002f05d
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 0x14002f052
cmp dword [rsp + 0x80], esi
je 0x14002f052
lea r8, [0x1400584a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002f02a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002effa
mov word [rbx], r13w
jmp 0x14002f05a
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 0x14002f007
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002f05a
cmp word [rsp + 0x70], r13w
jne 0x14002f037
cmp rbx, r14
je 0x14002eff4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400300dc
cmp word [rsp + 0x70], r13w
je 0x14002f05d
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, [0x1400584a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002f057
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14002f05d
Function at 0x14002fbec
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.14003b560
sub rsp, rax
mov rax, qword [0x140055240]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002c9b8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002fc3b
mov rax, rbp
jmp 0x14002fd43
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 + 0x584a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400300d4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x584a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002fd3f
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 0x14002fd3f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400300d4
test rax, rax
js 0x14002fd3f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002fd3f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002fd31
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002fd31
cmp byte [rcx], 0xd
jne 0x14002fd17
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002fd26
cmp byte [rcx + 1], 0xa
jne 0x14002fd26
inc rcx
jmp 0x14002fd26
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x556c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002fcf9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002fd43
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14003b530
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 0x140032844
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 0x1400328cb
mov rsi, rbx
cmp word [rax], bp
je 0x14003288a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140032874
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140032870
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140031410
mov rdi, rax
test rax, rax
je 0x1400328b8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003bd40
mov rbp, rdi
xor ecx, ecx
call fcn.14002bb94
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 0x140035dcc
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.14002b834
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 0x140035e6d
cmp ebx, dword [rsp + 0x30]
je 0x140035e66
test esi, esi
je 0x140035e66
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140035e41
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140035e4e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140035e2b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140035e52
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140035e6f
mov eax, 1
jmp 0x140035e6f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003a894
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400300dc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400300dc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14003a9e4
cmp rax, 0xffffffffffffffff
je 0x14003a9e4
xor edi, edi
test rbp, rbp
jle 0x14003a98f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002df1c
mov rbx, rax
test rax, rax
jne 0x14003a91c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14003a985
mov edx, 0x8000
mov ecx, r14d
call fcn.140027f50
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14002d3a0
cmp eax, 0xffffffff
je 0x14003a965
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14003a92c
mov edx, r15d
mov ecx, r14d
call fcn.140027f50
jmp 0x14003a985
cmp byte [rsi + 0x38], dil
je 0x14003a97c
cmp dword [rsi + 0x34], 5
jne 0x14003a97c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14003a985
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14002bb94
jmp 0x14003a9f8
jns 0x14003a9f8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400300dc
cmp rax, 0xffffffffffffffff
jne 0x14003a9b0
cmp byte [rsi + 0x30], dil
je 0x14003a9f8
mov edi, dword [rsi + 0x2c]
jmp 0x14003a9f8
mov ecx, r14d
call fcn.1400336e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14003a9f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14003a9f8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14003a9f1
mov eax, dword [rsi + 0x2c]
jmp 0x14003a9f6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400300dc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret