joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d44c
Capabilities:
Modify service
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rbp + 0x3f], rax
cmp byte [rcx + 0x28], 0
mov rbx, rdx
mov rdi, rcx
jne 0x14000d5f2
and dword [rbp + 0xf], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
cmp qword [rbx + 0x18], 8
mov rsi, rax
jb 0x14000d495
mov rbx, qword [rbx]
mov rcx, qword [rdi + 0x20]
mov r8d, 0x2e
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rbp + 7], rax
mov rbx, rax
test rax, rax
je 0x14000d5f2
and qword [rsp + 0x50], 0
or edx, 0xffffffff
and qword [rsp + 0x48], 0
mov r9d, edx
and qword [rsp + 0x40], 0
mov r8d, 4
and qword [rsp + 0x38], 0
mov rcx, rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
lea rax, [rbp + 0xf]
mov r9d, 0x24
lea r8, [rbp + 0x17]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14000d5e9
cmp dword [rbp + 0x1b], 1
je 0x14000d5e9
jmp 0x14000d573
mov ecx, dword [rbp + 0x2f]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rbp + 0xf]
mov r9d, 0x24
lea r8, [rbp + 0x17]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14000d5e9
cmp dword [rbp + 0x1b], 1
je 0x14000d5e9
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, dword [rdi + 0x2c]
sub rax, rsi
cmp rax, rcx
ja 0x14000d5e9
cmp dword [rbp + 0x1b], 3
je 0x14000d529
lea rdx, [rbp + 7]
mov rcx, rdi
call fcn.14000d614
mov rbx, qword [rbp + 7]
lea r8, [rbp + 0x17]
mov rcx, rbx
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14000d5e9
jmp 0x14000d5e3
mov ecx, dword [rbp + 0x2f]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rbp + 0xf]
mov r9d, 0x24
lea r8, [rbp + 0x17]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14000d5e9
cmp dword [rbp + 0x1b], 1
je 0x14000d5e9
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edx, dword [rdi + 0x2c]
sub rax, rsi
cmp rax, rdx
ja 0x14000d5e9
cmp dword [rbp + 0x1b], 1
jne 0x14000d5a1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14001bcd0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000dfb0
Capabilities:
Encode data using xor

Disassembly:
push rbx
xor r10d, r10d
mov rbx, rdx
mov r11, rcx
test r9, r9
je 0x14000e104
cmp r9, 8
jb 0x14000e0d9
lea rcx, [r9 - 1]
lea rax, [r8 - 1]
add rcx, r11
add rax, r9
cmp r11, rax
ja 0x14000dfea
cmp rcx, r8
jae 0x14000e0d9
lea rax, [r9 - 1]
add rax, rbx
cmp r11, rax
ja 0x14000dfff
cmp rcx, rbx
jae 0x14000e0d9
mov rcx, rbx
mov qword [rsp + 0x18], rdi
sub rcx, r8
mov rdx, r11
cmp r9, 0x40
jb 0x14000e099
mov rdi, r9
mov qword [rsp + 0x10], rsi
and edi, 0x3f
mov rsi, r9
sub rsi, rdi
lea rax, [r8 + 0x10]
sub rdx, r8
nop
movdqu xmm0, xmmword [rax - 0x10]
add r10, 0x40
movdqu xmm1, xmmword [rcx + rax - 0x10]
movdqu xmm2, xmmword [rcx + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rdx + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rcx + rax - 0x30]
movdqu xmmword [rdx + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rcx + rax - 0x20]
movdqu xmmword [rdx + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rdx + rax - 0x20], xmm2
cmp r10, rsi
jb 0x14000e030
mov rsi, qword [rsp + 0x10]
cmp rdi, 8
jb 0x14000e0cf
jmp 0x14000e09c
sub rdx, r8
mov rdi, r9
and rdi, 0xfffffffffffffff8
lea rax, [r10 + r8]
nop word [rax + rax]
movq xmm1, qword [rcx + rax]
add r10, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rdx + rax - 8], xmm1
cmp r10, rdi
jb 0x14000e0b0
mov rdi, qword [rsp + 0x18]
cmp r10, r9
jae 0x14000e104
sub rbx, r8
lea rax, [r10 + r8]
sub r11, r8
sub r9, r10
nop word [rax + rax]
movzx ecx, byte [rax + rbx]
xor cl, byte [rax]
mov byte [rax + r11], cl
lea rax, [rax + 1]
sub r9, 1
jne 0x14000e0f0
pop rbx
ret
Function at 0x14000e110
Capabilities:
Encode data using xor

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov rdi, rcx
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x38]
movups xmmword [rsp + 0x38], xmm0
call fcn.14000f270
test eax, eax
jne 0x14000e2ae
mov r8d, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x3c]
mov r9d, dword [rsp + 0x40]
bswap ecx
mov ecx, ecx
bswap r8d
bswap r9d
mov r8d, r8d
shl r8, 0x20
or r8, rcx
mov r9d, r9d
mov ecx, dword [rsp + 0x44]
shl r9, 0x20
bswap ecx
mov ecx, ecx
or r9, rcx
mov qword [rsp + 0x68], rbx
cmp dword [0x140055c40], eax
mov qword [rdi + 0xa0], r9
mov qword [rdi + 0x120], r8
jne 0x14000e1dc
mov eax, 1
mov dword [0x140055c40], 1
xor ecx, ecx
cpuid
mov dword [0x140055c48], eax
mov dword [0x140055c4c], ebx
mov dword [0x140055c50], ecx
mov dword [0x140055c54], edx
mov dword [0x140055c44], ecx
jmp 0x14000e1e2
mov ecx, dword [0x140055c44]
test cl, 2
jne 0x14000e2a7
mov qword [rdi + 0xe0], 0
mov qword [rdi + 0x60], 0
mov ebx, 4
mov eax, r9d
mov rcx, r8
and eax, 1
shl rcx, 0x3f
imul edx, eax, 0xe1000000
mov rax, r9
shr rax, 1
mov r9, rcx
or r9, rax
mov rax, r8
shr rax, 1
mov qword [rdi + rbx*8 + 0x60], r9
mov ecx, edx
shl rcx, 0x20
mov r8, rcx
xor r8, rax
mov qword [rdi + rbx*8 + 0xe0], r8
shr ebx, 1
jne 0x14000e203
mov r10d, 2
mov ebx, r10d
nop
mov r8, qword [rdi + rbx*8 + 0xe0]
mov r9, qword [rdi + rbx*8 + 0x60]
cmp rbx, 1
jle 0x14000e298
lea rax, [rdi + 0x68]
lea rdx, [rbx - 1]
nop dword [rax + rax]
mov rcx, r8
xor rcx, qword [rax + 0x80]
mov qword [rax + rbx*8 + 0x80], rcx
lea rax, [rax + 8]
mov rcx, r9
xor rcx, qword [rax - 8]
mov qword [rax + rbx*8 - 8], rcx
sub rdx, 1
jne 0x14000e270
lea eax, [r10 + r10]
add rbx, rbx
mov r10d, eax
cmp eax, 8
jle 0x14000e250
mov rbx, qword [rsp + 0x68]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001bcd0
add rsp, 0x50
pop rdi
ret
Function at 0x14000f9e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movups xmm1, xmmword [rdx]
aeskeygenassist xmm0, xmm1, 1
pshufd xmm3, xmm0, 0xff
xorps xmm3, xmm1
movups xmmword [rcx], xmm1
pslldq xmm1, 4
xorps xmm3, xmm1
pslldq xmm1, 4
xorps xmm3, xmm1
pslldq xmm1, 4
xorps xmm3, xmm1
aeskeygenassist xmm0, xmm3, 2
pshufd xmm1, xmm0, 0xff
xorps xmm1, xmm3
movdqu xmmword [rcx + 0x10], xmm3
pslldq xmm3, 4
movdqa xmm0, xmm3
pslldq xmm3, 4
xorps xmm0, xmm1
movdqa xmm2, xmm3
xorps xmm2, xmm0
pslldq xmm3, 4
xorps xmm2, xmm3
aeskeygenassist xmm0, xmm2, 4
pshufd xmm1, xmm0, 0xff
xorps xmm1, xmm2
movdqu xmmword [rcx + 0x20], xmm2
pslldq xmm2, 4
movdqa xmm0, xmm2
pslldq xmm2, 4
xorps xmm0, xmm1
movdqa xmm3, xmm2
xorps xmm3, xmm0
pslldq xmm2, 4
xorps xmm3, xmm2
aeskeygenassist xmm0, xmm3, 8
pshufd xmm1, xmm0, 0xff
xorps xmm1, xmm3
movdqu xmmword [rcx + 0x30], xmm3
pslldq xmm3, 4
movdqa xmm0, xmm3
pslldq xmm3, 4
xorps xmm0, xmm1
movdqa xmm2, xmm3
xorps xmm2, xmm0
pslldq xmm3, 4
xorps xmm2, xmm3
aeskeygenassist xmm0, xmm2, 0x10
pshufd xmm1, xmm0, 0xff
xorps xmm1, xmm2
movdqu xmmword [rcx + 0x40], xmm2
pslldq xmm2, 4
movdqa xmm0, xmm2
pslldq xmm2, 4
xorps xmm0, xmm1
movdqa xmm3, xmm2
xorps xmm3, xmm0
pslldq xmm2, 4
xorps xmm3, xmm2
aeskeygenassist xmm0, xmm3, 0x20
pshufd xmm1, xmm0, 0xff
xorps xmm1, xmm3
movdqu xmmword [rcx + 0x50], xmm3
pslldq xmm3, 4
movdqa xmm0, xmm3
pslldq xmm3, 4
xorps xmm0, xmm1
movdqa xmm2, xmm3
xorps xmm2, xmm0
pslldq xmm3, 4
xorps xmm2, xmm3
aeskeygenassist xmm0, xmm2, 0x40
pshufd xmm1, xmm0, 0xff
xorps xmm1, xmm2
movdqu xmmword [rcx + 0x60], xmm2
pslldq xmm2, 4
movdqa xmm0, xmm2
pslldq xmm2, 4
movdqa xmm3, xmm2
xorps xmm0, xmm1
xorps xmm3, xmm0
pslldq xmm2, 4
xorps xmm3, xmm2
aeskeygenassist xmm0, xmm3, 0x80
pshufd xmm1, xmm0, 0xff
xorps xmm1, xmm3
movdqu xmmword [rcx + 0x70], xmm3
pslldq xmm3, 4
movdqa xmm0, xmm3
pslldq xmm3, 4
xorps xmm0, xmm1
movdqa xmm2, xmm3
xorps xmm2, xmm0
pslldq xmm3, 4
xorps xmm2, xmm3
aeskeygenassist xmm0, xmm2, 0x1b
pshufd xmm1, xmm0, 0xff
xorps xmm1, xmm2
movdqu xmmword [rcx + 0x80], xmm2
pslldq xmm2, 4
movdqa xmm0, xmm2
pslldq xmm2, 4
xorps xmm0, xmm1
movdqa xmm3, xmm2
xorps xmm3, xmm0
pslldq xmm2, 4
xorps xmm3, xmm2
aeskeygenassist xmm0, xmm3, 0x36
pshufd xmm1, xmm0, 0xff
xorps xmm1, xmm3
movdqu xmmword [rcx + 0x90], xmm3
pslldq xmm3, 4
movdqa xmm0, xmm3
pslldq xmm3, 4
xorps xmm0, xmm1
movdqa xmm1, xmm3
xorps xmm1, xmm0
pslldq xmm3, 4
xorps xmm1, xmm3
movdqu xmmword [rcx + 0xa0], xmm1
ret
Function at 0x140016c10
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
movzx eax, r9b
mov rdi, r8
movzx r11d, al
mov rbx, rdx
and r11b, 0x1f
shr eax, 5
mov r10, rcx
and eax, 0x80000003
jge 0x140016c4a
dec eax
or eax, 0xfffffffc
inc eax
movzx ecx, al
movzx ebp, r11b
mov r9d, dword [r8 + rcx*4]
mov ecx, 0x20
sub cl, r11b
movzx edx, cl
xor ecx, ecx
test r11b, r11b
bswap r9d
cmove edx, ecx
sub rbx, r10
movzx esi, dl
lea r11d, [rcx + 4]
nop word [rax + rax]
inc al
lea r10, [r10 + 4]
and al, 3
movzx ecx, al
mov r8d, dword [rdi + rcx*4]
mov ecx, esi
bswap r8d
mov edx, r8d
shr edx, cl
mov ecx, ebp
shl r9d, cl
or edx, r9d
mov r9d, r8d
bswap edx
xor edx, dword [rbx + r10 - 4]
mov dword [r10 - 4], edx
sub r11, 1
jne 0x140016c80
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
Function at 0x14001aca0
Capabilities:
Get file size
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
lea rax, vtable.FileWrapper.0
mov qword [rcx], rax
xorps xmm0, xmm0
movups xmmword [rcx + 8], xmm0
xor r12d, r12d
mov qword [rcx + 0x18], r12
mov qword [rcx + 0x20], r12
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rdx + rbx*2], r12w
jne 0x14001ace4
movabs r15, 0x7ffffffffffffffe
cmp rbx, r15
ja 0x14001aeb1
mov qword [rcx + 0x20], 7
cmp rbx, 8
jae 0x14001ad2d
mov qword [rcx + 0x18], rbx
add rbx, rbx
mov r8, rbx
add rcx, 8
call fcn.14001ef50
mov word [rbx + rdi + 8], r12w
jmp 0x14001addb
mov rax, rbx
or rax, 7
cmp rax, r15
jbe 0x14001ad49
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x14001ad7b
mov r15, rax
mov ecx, 0xa
cmp rax, rcx
cmovb r15, rcx
lea rcx, [r15 + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x14001aeab
add rcx, rcx
cmp rcx, 0x1000
jb 0x14001ada7
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14001aeab
mov rcx, rax
call fcn.14001bf8c
test rax, rax
je 0x14001aea5
lea rbp, [rax + 0x27]
and rbp, 0xffffffffffffffe0
mov qword [rbp - 8], rax
jmp 0x14001adb9
test rcx, rcx
je 0x14001adb6
call fcn.14001bf8c
mov rbp, rax
jmp 0x14001adb9
mov rbp, r12
mov qword [rdi + 8], rbp
mov qword [rdi + 0x18], rbx
mov qword [rdi + 0x20], r15
add rbx, rbx
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
call fcn.14001ef50
mov word [rbx + rbp], r12w
mov qword [rdi + 0x28], 0xffffffffffffffff
mov dword [rdi + 0x30], 1
mov qword [rdi + 0x40], r12
mov ebx, r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x28], rax
cmp rax, 0xffffffffffffffff
jne 0x14001ae70
call qword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 5
je 0x14001ae40
sub eax, 0x1b
je 0x14001ae39
cmp eax, 1
jne 0x14001ae67
mov eax, 3
jmp 0x14001ae5b
mov edx, 0x80
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rsi
call fcn.14001b1a0
mov eax, 2
mov dword [rdi + 0x30], eax
inc ebx
cmp ebx, 2
jge 0x14001ae74
jmp 0x14001adf1
mov dword [rdi + 0x30], 1
jmp 0x14001ae74
mov dword [rdi + 0x30], r12d
cmp dword [rdi + 0x30], 0
jne 0x14001ae89
lea rdx, [rdi + 0x38]
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop
mov rax, rdi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call fcn.14002354c
int3
call fcn.140004168
int3
call fcn.140004200
int3
Function at 0x14001b000
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r14
push r15
sub rsp, 0x30
cmp qword [rcx + 0x28], 0xffffffffffffffff
mov r14, r9
mov r15d, r8d
mov rsi, rdx
mov rbp, rcx
je 0x14001b091
test rdx, rdx
je 0x14001b091
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], r12
xor r12d, r12d
mov ebx, r12d
nop dword [rax + rax]
mov rcx, qword [rbp + 0x28]
mov r9, r14
mov r8d, r15d
mov qword [rsp + 0x20], r12
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test eax, eax
jne 0x14001b06e
lea ecx, [rax + 0x32]
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x32
jl 0x14001b040
mov r12, qword [rsp + 0x60]
test edi, edi
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
setne al
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rsi
ret
mov rbp, qword [rsp + 0x68]
xor al, al
add rsp, 0x30
pop r15
pop r14
pop rsi
ret

Function at 0x14001b140
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov eax, dword [rcx]
mov rbx, rcx
test eax, eax
jne 0x14001b187
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x40]
mov dword [rbx], ecx
cmp ecx, 1
ja 0x14001b17b
mov eax, 2
jmp 0x14001b185
mov eax, dword [rbx + 4]
cmp ecx, eax
ja 0x14001b185
lea eax, [rcx - 1]
mov dword [rbx], eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001bcd0
add rsp, 0x60
pop rbx
ret
Function at 0x14001b790
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xb0
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140059ec8], eax
jle 0x14001b927
lea rcx, [0x140059ec8]
call fcn.14001c0ac
cmp dword [0x140059ec8], 0xffffffff
jne 0x14001b927
mov ecx, 0x40
call fcn.14001bf8c
mov rbx, rax
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
lea ecx, [rax + 0x30]
call fcn.14001bf8c
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
lea rcx, [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rsp + 0x90]
cmp edi, 1
ja 0x14001b859
mov edi, 2
jmp 0x14001b867
cmp edi, 0xa
jbe 0x14001b865
mov edi, 0xa
jmp 0x14001b867
dec edi
mov dword [rsp + 0x30], 0x40
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rcx, qword [rsp + 0x40]
mov edx, 0x100000
test eax, eax
cmove rcx, rdx
mov qword [rbx + 0x10], 0xa000000
xorps xmm1, xmm1
test rcx, rcx
js 0x14001b8a1
cvtsi2sd xmm1, rcx
jmp 0x14001b8b6
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
mulsd xmm1, qword [str.ffffff]
mov eax, edi
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
divsd xmm1, xmm0
xor ecx, ecx
movsd xmm0, qword [0x14004b2f8]
comisd xmm1, xmm0
jb 0x14001b8f3
subsd xmm1, xmm0
comisd xmm1, xmm0
jae 0x14001b8f3
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rax, xmm1
add rax, rcx
and rax, 0xffffffffff800000
mov edx, 0x1800000
cmp rax, 0x800000
cmovb rax, rdx
mov qword [rbx + 0x10], rax
mov qword [0x140059ed0], rbx
lea rcx, [0x140059ec8]
call fcn.14001c040
mov rax, qword [0x140059ed0]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14001bcd0
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rdi
ret

Function at 0x14001c980
Capabilities:
Parse pe header

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

Function at 0x140024a4c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140024848
Function at 0x14002c6c8
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 0x14002c6f8
xor eax, eax
jmp 0x14002c7bb
mov rbp, rbx
cmp word [rax], si
je 0x14002c71d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002c704
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002c700
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.14002c5e8
movsxd r14, eax
test eax, eax
jne 0x14002c75b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002c6f1
mov rcx, r14
call fcn.140028584
mov rdi, rax
test rax, rax
jne 0x14002c774
xor ecx, ecx
call fcn.140028548
jmp 0x14002c750
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.14002c5e8
test eax, eax
jne 0x14002c7a5
mov rcx, rdi
call fcn.140028548
jmp 0x14002c7af
xor ecx, ecx
call fcn.140028548
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 0x14002f98c
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.14002895c
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 0x14002fa2d
cmp ebx, dword [rsp + 0x30]
je 0x14002fa26
test esi, esi
je 0x14002fa26
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002fa01
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002fa0e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002f9eb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002fa12
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002fa2f
mov eax, 1
jmp 0x14002fa2f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400341ec
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, [0x140054440]
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 0x140034243
cmp word [rdx], r13w
jne 0x140034243
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140034248
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14003436d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14003438e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140034281
mov rdx, r9
mov word [rbx], cx
jmp 0x1400342a8
cmp r9, r8
jae 0x1400342b8
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 0x140034262
jmp 0x14003436d
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 0x140034362
cmp dword [rsp + 0x80], esi
je 0x140034362
lea r8, [0x140054440]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14003433a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14003430a
mov word [rbx], r13w
jmp 0x14003436a
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 0x140034317
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14003436a
cmp word [rsp + 0x70], r13w
jne 0x140034347
cmp rbx, r14
je 0x140034304
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14003410c
cmp word [rsp + 0x70], r13w
je 0x14003436d
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, [0x140054440]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140034367
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14003436d
Function at 0x140035498
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.14003410c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14003410c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400355e8
cmp rax, 0xffffffffffffffff
je 0x1400355e8
xor edi, edi
test rbp, rbp
jle 0x140035593
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140028cbc
mov rbx, rax
test rax, rax
jne 0x140035520
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140035589
mov edx, 0x8000
mov ecx, r14d
call fcn.1400257e0
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.140031bfc
cmp eax, 0xffffffff
je 0x140035569
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140035530
mov edx, r15d
mov ecx, r14d
call fcn.1400257e0
jmp 0x140035589
cmp byte [rsi + 0x38], dil
je 0x140035580
cmp dword [rsi + 0x34], 5
jne 0x140035580
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140035589
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140028548
jmp 0x1400355fc
jns 0x1400355fc
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14003410c
cmp rax, 0xffffffffffffffff
jne 0x1400355b4
cmp byte [rsi + 0x30], dil
je 0x1400355fc
mov edi, dword [rsi + 0x2c]
jmp 0x1400355fc
mov ecx, r14d
call fcn.14002d2a8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400355fc
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 0x1400355fc
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400355f5
mov eax, dword [rsi + 0x2c]
jmp 0x1400355fa
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14003410c
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

Function at 0x140035d80
Capabilities:
Parse pe header

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