joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57e6e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbp
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x458
mov rbp, rsp
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x4a0], r8
mov qword [rbp + 0x4a8], r9
mov rcx, qword [rbp + 0x4a0]
call fcn.0040f2e0
mov rcx, qword [rbp + 0x4a8]
call fcn.0040f2e0
nop
xor ebx, ebx
lea rax, [rbp + 0x50]
mov dword [rax], ebx
add ebx, 1
add rax, 4
cmp ebx, 0x100
jne 0x57e743
nop
xor esi, esi
xor ebx, ebx
lea r8, [rbp + 0x50]
xor ecx, ecx
mov rax, qword [rbp + 0x4a0]
test rax, rax
je 0x57e76e
mov ecx, dword [rax - 4]
mov r9, qword [rbp + 0x4a0]
mov eax, ebx
cdq
idiv ecx
add edx, 1
movsxd rdx, edx
movzx eax, word [r9 + rdx*2 - 2]
mov ecx, dword [r8]
add esi, ecx
add esi, eax
and esi, 0x800000ff
jns 0x57e7a1
sub esi, 1
or esi, 0xffffff00
add esi, 1
movsxd rax, esi
mov edx, dword [rbp + rax*4 + 0x50]
mov dword [r8], edx
mov dword [rbp + rax*4 + 0x50], ecx
add ebx, 1
add r8, 4
cmp ebx, 0x100
jne 0x57e75d
nop
xor ebx, ebx
xor esi, esi
lea rcx, [rbp + 0x40]
call fcn.0040f110
xor eax, eax
mov rdx, qword [rbp + 0x4a8]
test rdx, rdx
je 0x57e7dd
mov eax, dword [rdx - 4]
xor ecx, ecx
test rdx, rdx
je 0x57e7e7
mov ecx, dword [rdx - 4]
test eax, 1
sete al
test ecx, ecx
setg cl
test cl, al
je 0x57e8e1
xor eax, eax
xor edi, edi
jmp 0x57e8c8
add ebx, 1
and ebx, 0x800000ff
jns 0x57e81d
sub ebx, 1
or ebx, 0xffffff00
add ebx, 1
movsxd r13, ebx
mov ecx, dword [rbp + r13*4 + 0x50]
add esi, ecx
and esi, 0x800000ff
jns 0x57e83b
sub esi, 1
or esi, 0xffffff00
add esi, 1
movsxd r14, esi
mov edx, dword [rbp + r14*4 + 0x50]
mov dword [rbp + r13*4 + 0x50], edx
mov dword [rbp + r14*4 + 0x50], ecx
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x4a8]
mov r8d, eax
mov r9d, 2
call fcn.00411150
lea rcx, [rbp + 0x38]
lea rdx, [0x0057e970]
mov r8, qword [rbp + 0x48]
call fcn.00410f30
mov rcx, qword [rbp + 0x38]
call fcn.00432e90
mov ecx, dword [rbp + r13*4 + 0x50]
add ecx, dword [rbp + r14*4 + 0x50]
and ecx, 0x800000ff
jns 0x57e8a1
sub ecx, 1
or ecx, 0xffffff00
add ecx, 1
movsxd rcx, ecx
xor eax, dword [rbp + rcx*4 + 0x50]
lea rcx, [rbp + 0x30]
mov edx, eax
call fcn.00410b50
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x30]
call fcn.00410e60
add edi, 2
mov eax, edi
add eax, 1
xor ecx, ecx
mov rdx, qword [rbp + 0x4a8]
test rdx, rdx
je 0x57e8d9
mov ecx, dword [rdx - 4]
cmp edi, ecx
jl 0x57e806
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040f780
nop
lea rcx, [rbp + 0x30]
mov edx, 4
call fcn.0040f1f0
lea rcx, [rbp + 0x4a0]
mov edx, 2
call fcn.0040f1f0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x458]
pop rbx
pop rsi
pop rdi
pop r13
pop r14
pop rbp
ret
Function at 0x57f7e0
Capabilities:
Inspect section memory permissions

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov ecx, 7
lea rdx, [rbp + 0x28]
call fcn.0057f1c0
lea rcx, [rbp + 0x2c]
lea rdx, [rbp + 0x38]
mov r8d, 4
call fcn.00409590
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x3c]
mov r8d, 4
call fcn.00409590
mov rax, qword [rbp + 0x38]
test rax, 8
je 0x57f83d
lea rax, [0x005c9a74]
movabs rcx, 0x800000000
or qword [rax], rcx
mov rax, qword [rbp + 0x38]
test rax, 0x20
je 0x57f85e
lea rax, [0x005c9a74]
movabs rcx, 0x1000000000
or qword [rax], rcx
mov rax, qword [rbp + 0x38]
test rax, 0x100
je 0x57f87f
lea rax, [0x005c9a74]
movabs rcx, 0x2000000000
or qword [rax], rcx
mov rax, qword [rbp + 0x38]
test rax, 0x200
je 0x57f8a0
lea rax, [0x005c9a74]
movabs rcx, 0x4000000000
or qword [rax], rcx
mov rax, qword [rbp + 0x38]
test rax, 0x400
je 0x57f8c1
lea rax, [0x005c9a74]
movabs rcx, 0x8000000000
or qword [rax], rcx
mov rax, qword [rbp + 0x38]
test rax, 0x800
je 0x57f8e2
lea rax, [0x005c9a74]
movabs rcx, 0x10000000000
or qword [rax], rcx
mov rax, qword [rbp + 0x38]
test rax, 0x4000
je 0x57f903
lea rax, [0x005c9a74]
movabs rcx, 0x20000000000
or qword [rax], rcx
mov rax, qword [rbp + 0x38]
test rax, 0x10000
je 0x57f924
lea rax, [0x005c9a74]
movabs rcx, 0x40000000000
or qword [rax], rcx
mov rax, qword [rbp + 0x38]
test rax, 0x20000
je 0x57f945
lea rax, [0x005c9a74]
movabs rcx, 0x80000000000
or qword [rax], rcx
mov rax, qword [rbp + 0x38]
test rax, 0x40000
je 0x57f966
lea rax, [0x005c9a74]
movabs rcx, 0x100000000000
or qword [rax], rcx
mov rax, qword [rbp + 0x38]
test rax, 0x80000
je 0x57f987
lea rax, [0x005c9a74]
movabs rcx, 0x200000000000
or qword [rax], rcx
mov rax, qword [rbp + 0x38]
test rax, 0x400000
je 0x57f9a8
lea rax, [0x005c9a74]
movabs rcx, 0x400000000000
or qword [rax], rcx
mov rax, qword [rbp + 0x38]
test rax, 0x800000
je 0x57f9c9
lea rax, [0x005c9a74]
movabs rcx, 0x800000000000
or qword [rax], rcx
mov rax, qword [rbp + 0x38]
test rax, 0x1000000
je 0x57f9ea
lea rax, [0x005c9a74]
movabs rcx, 0x1000000000000
or qword [rax], rcx
mov rax, qword [rbp + 0x38]
test rax, 0x4000000
je 0x57fa0b
lea rax, [0x005c9a74]
movabs rcx, 0x2000000000000
or qword [rax], rcx
mov rax, qword [rbp + 0x38]
test rax, 0x8000000
je 0x57fa2c
lea rax, [0x005c9a74]
movabs rcx, 0x4000000000000
or qword [rax], rcx
mov rax, qword [rbp + 0x38]
test rax, 0x10000000
je 0x57fa4d
lea rax, [0x005c9a74]
movabs rcx, 0x8000000000000
or qword [rax], rcx
mov rax, qword [rbp + 0x38]
test rax, 0x20000000
je 0x57fa6e
lea rax, [0x005c9a74]
movabs rcx, 0x10000000000000
or qword [rax], rcx
mov rax, qword [rbp + 0x38]
test rax, 0x40000000
je 0x57fa8f
lea rax, [0x005c9a74]
movabs rcx, 0x20000000000000
or qword [rax], rcx
mov eax, 0x80000000
mov rcx, qword [rbp + 0x38]
test rax, rcx
je 0x57fab1
lea rax, [0x005c9a74]
movabs rcx, 0x40000000000000
or qword [rax], rcx
movabs rax, 0x100000000
mov rcx, qword [rbp + 0x38]
test rax, rcx
je 0x57fad8
lea rax, [0x005c9a74]
movabs rcx, 0x80000000000000
or qword [rax], rcx
movabs rax, 0x200000000
mov rcx, qword [rbp + 0x38]
test rax, rcx
je 0x57faff
lea rax, [0x005c9a74]
movabs rcx, 0x100000000000000
or qword [rax], rcx
lea rsp, [rbp + 0x40]
pop rbp
ret
Function at 0x5807c0
Capabilities:
Get token membership

Disassembly:
push rbp
sub rsp, 0x90
mov rbp, rsp
mov qword [rbp + 0x68], rbp
mov qword [rbp + 0x88], 0
nop
lea rax, [0x005bb628]
mov qword [rbp + 0x78], rax
mov rcx, qword [rbp + 0x78]
mov dl, 2
mov r8d, 0x20
mov r9d, 0x220
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x48], 0
lea rax, [rbp + 0x88]
mov qword [rsp + 0x50], rax
call sub.advapi32.dll_AllocateAndInitializeSid
mov ecx, eax
call fcn.0043fce0
xor ecx, ecx
mov rdx, qword [rbp + 0x88]
lea r8, [rbp + 0x80]
call sub.advapi32.dll_CheckTokenMembership
test eax, eax
je 0x58086b
cmp dword [rbp + 0x80], 0
setne al
mov byte [rbp + 0x87], al
jmp 0x580872
mov byte [rbp + 0x87], 0
nop
cmp qword [rbp + 0x88], 0
je 0x580889
mov rcx, qword [rbp + 0x88]
call sub.advapi32.dll_FreeSid
movzx rax, byte [rbp + 0x87]
lea rsp, [rbp + 0x90]
pop rbp
ret
Function at 0x5836f0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Read pipe

Disassembly:
push rbp
push rbx
mov byte [rsp - 0x3f8], 0
mov byte [rsp - 0x13f8], 0
sub rsp, 0x13f8
mov rbp, rsp
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], rbp
mov qword [rbp + 0x1410], rcx
mov qword [rbp + 0x1418], rdx
mov rcx, qword [rbp + 0x1418]
call fcn.00416360
nop
mov dword [rbp + 0x13b0], 0x18
mov dword [rbp + 0x13c0], 0xffffffff
mov qword [rbp + 0x13b8], 0
lea rcx, [rbp + 0x13d0]
lea rdx, [rbp + 0x13c8]
lea r8, [rbp + 0x13b0]
xor r9, r9
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x583971
nop
lea rcx, [rbp + 0x1348]
mov edx, 0x68
xor r8, r8
call fcn.0040b030
mov dword [rbp + 0x1348], 0x68
mov rax, qword [rbp + 0x13d0]
mov qword [rbp + 0x1398], rax
mov rax, qword [rbp + 0x13c8]
mov qword [rbp + 0x13a0], rax
mov rax, qword [rbp + 0x13c8]
mov qword [rbp + 0x13a8], rax
mov dword [rbp + 0x1384], 0x101
mov word [rbp + 0x1388], 0
lea rcx, [rbp + 0x58]
call fcn.005831d0
lea rcx, [rbp + 0x60]
mov edx, 3
mov r8, qword [rbp + 0x58]
lea r9, [0x00583a3c]
mov rax, qword [rbp + 0x1410]
mov qword [rsp + 0x20], rax
call fcn.00411060
mov rcx, qword [rbp + 0x60]
call fcn.00410b10
xor ecx, ecx
mov rdx, rax
lea r8, [rbp + 0x13b0]
lea r9, [rbp + 0x13b0]
mov dword [rsp + 0x20], 0xffffffff
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rax, [rbp + 0x1348]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x13d8]
mov qword [rsp + 0x48], rax
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x583958
nop
mov rcx, qword [rbp + 0x13d8]
mov edx, 0x64
call sub.kernel32.dll_WaitForSingleObject
mov dword [rbp + 0x7c], eax
mov rcx, qword [rbp + 0x13d0]
xor edx, edx
xor r8, r8
xor r9, r9
lea rax, [rbp + 0x78]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
call sub.kernel32.dll_PeekNamedPipe
cmp dword [rbp + 0x78], 0
jbe 0x583928
mov dword [rbp + 0x80], 0
mov rcx, qword [rbp + 0x13d0]
lea rdx, [rbp + 0x9e7]
mov r8d, 0x960
lea r9, [rbp + 0x80]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_ReadFile
mov eax, dword [rbp + 0x80]
mov byte [rax + rbp + 0x9e7], 0
lea rcx, [rbp + 0x9e7]
lea rdx, [rbp + 0x86]
call sub.user32.dll_OemToCharA
mov rcx, qword [rbp + 0x1418]
lea rdx, [rbp + 0x86]
mov rax, qword [rbp + 0x1418]
mov rbx, qword [rax]
call qword [rbx + 0x18]
cmp dword [rbp + 0x80], 0x960
jae 0x5838ad
mov ecx, 1
call sub.kernel32.dll_Sleep
cmp dword [rbp + 0x7c], 0x102
je 0x58386d
nop
mov rcx, qword [rbp + 0x13d8]
call sub.kernel32.dll_CloseHandle
mov rcx, qword [rbp + 0x13e0]
call sub.kernel32.dll_CloseHandle
nop
mov rcx, qword [rbp + 0x13d0]
call sub.kernel32.dll_CloseHandle
mov rcx, qword [rbp + 0x13c8]
call sub.kernel32.dll_CloseHandle
nop
lea rcx, [rbp + 0x58]
mov edx, 2
call fcn.0040f1f0
lea rcx, [rbp + 0x1418]
call fcn.00416250
lea rsp, [rbp + 0x13f8]
pop rbx
pop rbp
ret
Function at 0x1004039e0
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
Function at 0x140020c90
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140020d5c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140020d5c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140020d75
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x140020d4c
cmp byte [rax], 0x5c
jne 0x140020d46
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140020d46
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140020d32
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140020d43
test r8b, 0x10
jne 0x140020d46
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140020d46
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.14001b370
test edi, edi
jne 0x140020cb0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.14001b360
int3
Function at 0x140026ae0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
lea rax, [r8 - 1]
mov r14, r9
mov r15, rax
mov qword [rsp + 0x20], rax
sar r15, 1
mov r13, r8
mov rsi, rdx
mov rbp, rcx
mov r12, rdx
mov rdi, rdx
cmp rdx, r15
jge 0x140026b7b
nop word [rax + rax]
lea rbx, [rdi + rdi]
lea rdx, [rbx + 2]
shl rdx, 6
add rdx, rbp
lea r8, [rdx - 0x40]
call fcn.140025d00
shl rsi, 6
lea rcx, [rbp + 0x20]
movzx edi, al
add rcx, rsi
xor rdi, 1
inc rdi
add rdi, rbx
mov rdx, rdi
shl rdx, 6
add rdx, rbp
movups xmm0, xmmword [rdx]
movups xmmword [rsi + rbp], xmm0
movups xmm1, xmmword [rdx + 0x10]
add rdx, 0x20
movups xmmword [rsi + rbp + 0x10], xmm1
call fcn.1400040f0
mov rsi, rdi
cmp rdi, r15
jl 0x140026b20
mov rbx, rdi
cmp rdi, r15
jne 0x140026bbe
test r13b, 1
jne 0x140026bbe
shl r13, 6
lea rdx, [rbp - 0x20]
shl rdi, 6
lea rcx, [rbp + 0x20]
add rdx, r13
add rcx, rdi
movups xmm0, xmmword [rbp + r13 - 0x40]
movups xmmword [rdi + rbp], xmm0
movups xmm1, xmmword [rbp + r13 - 0x30]
movups xmmword [rdi + rbp + 0x10], xmm1
call fcn.1400040f0
mov rbx, qword [rsp + 0x20]
cmp r12, rbx
jge 0x140026c0f
lea rdi, [rbx - 1]
mov r8, r14
sar rdi, 1
mov rsi, rdi
shl rsi, 6
add rsi, rbp
mov rdx, rsi
call fcn.140025d00
test al, al
je 0x140026c0f
movups xmm0, xmmword [rsi]
shl rbx, 6
lea rcx, [rbp + 0x20]
lea rdx, [rsi + 0x20]
add rcx, rbx
movups xmmword [rbx + rbp], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rbx + rbp + 0x10], xmm1
call fcn.1400040f0
mov rbx, rdi
cmp r12, rdi
jl 0x140026bc3
movups xmm0, xmmword [r14]
shl rbx, 6
lea rcx, [rbp + 0x20]
lea rdx, [r14 + 0x20]
add rcx, rbx
movups xmmword [rbx + rbp], xmm0
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rbx + rbp + 0x10], xmm1
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
jmp fcn.1400040f0
Function at 0x140042820
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x18
movdqu xmm5, xmmword [rcx]
xor ecx, ecx
movaps xmmword [rsp], xmm6
movdqa xmm6, xmmword [0x14007fa40]
pshufb xmm5, xmmword [0x14007fa30]
movdqa xmm4, xmm5
add r8d, 0xffffffe0
je 0x14004295d
nop dword [rax]
movq qword [rcx + rdx], xmm4
movdqa xmm2, xmm4
pclmulqdq xmm2, xmm5, 0
movdqa xmm1, xmm2
movdqa xmm3, xmm4
movdqa xmm0, xmm4
pslldq xmm1, 8
pclmulqdq xmm0, xmm5, 1
pclmulqdq xmm3, xmm5, 0x10
xorps xmm3, xmm0
movdqa xmm0, xmm2
psrldq xmm2, 8
xorps xmm3, xmm1
pclmulqdq xmm0, xmm6, 0x10
xorps xmm3, xmm0
movdqa xmm0, xmm4
xorps xmm2, xmm3
movdqa xmm1, xmm3
psllq xmm2, 1
pclmulqdq xmm2, xmm6, 0
pclmulqdq xmm0, xmm5, 0x11
xorps xmm2, xmm0
psrldq xmm1, 8
xorps xmm2, xmm1
punpcklqdq xmm3, xmm2
psllq xmm2, 1
psrlq xmm3, 0x3f
xorps xmm3, xmm2
movdqu xmmword [rcx + rdx + 0x10], xmm3
movdqu xmmword [rcx + rdx + 8], xmm4
movdqa xmm2, xmm3
movq qword [rcx + rdx + 8], xmm3
pclmulqdq xmm2, xmm5, 0
movdqa xmm1, xmm2
movdqa xmm4, xmm3
pclmulqdq xmm4, xmm5, 0x10
movdqa xmm0, xmm3
pslldq xmm1, 8
pclmulqdq xmm0, xmm5, 1
xorps xmm4, xmm0
add ecx, 0x20
movdqa xmm0, xmm2
psrldq xmm2, 8
xorps xmm4, xmm1
pclmulqdq xmm0, xmm6, 0x10
xorps xmm4, xmm0
xorps xmm2, xmm4
movdqa xmm0, xmm4
psllq xmm2, 1
psrldq xmm0, 8
pclmulqdq xmm2, xmm6, 0
pclmulqdq xmm3, xmm5, 0x11
xorps xmm2, xmm3
xorps xmm2, xmm0
punpcklqdq xmm4, xmm2
psrlq xmm4, 0x3f
psllq xmm2, 1
xorps xmm4, xmm2
cmp ecx, r8d
jb 0x140042850
movq qword [rcx + rdx], xmm4
movdqa xmm2, xmm4
pclmulqdq xmm2, xmm5, 0
movdqa xmm1, xmm2
movdqa xmm3, xmm4
pclmulqdq xmm3, xmm5, 0x10
pslldq xmm1, 8
movdqa xmm0, xmm4
pclmulqdq xmm0, xmm5, 1
xorps xmm3, xmm0
movdqa xmm0, xmm2
xorps xmm3, xmm1
psrldq xmm2, 8
pclmulqdq xmm0, xmm6, 0x10
xorps xmm3, xmm0
movdqa xmm0, xmm4
xorps xmm2, xmm3
movdqa xmm1, xmm3
psllq xmm2, 1
pclmulqdq xmm2, xmm6, 0
movaps xmm6, xmmword [rsp]
pclmulqdq xmm0, xmm5, 0x11
xorps xmm2, xmm0
psrldq xmm1, 8
xorps xmm2, xmm1
punpcklqdq xmm3, xmm2
psrlq xmm3, 0x3f
psllq xmm2, 1
xorps xmm3, xmm2
movdqu xmmword [rcx + rdx + 0x10], xmm3
movdqu xmmword [rcx + rdx + 8], xmm4
movq qword [rcx + rdx + 8], xmm3
add rsp, 0x18
ret

Function at 0x140042a10
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140042a94
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140081640]
cmp byte [rcx + rax], 0
je 0x140042a94
dec r8
sub rdx, 1
jne 0x140042a7a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140046808
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140047608
Capabilities:
Parse pe header

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

Function at 0x1400637f8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400635f4

Function at 0x1400664d4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400664ea
mov al, 1
jmp 0x14006654a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400664fb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140066548
mov ecx, dword [rcx + 0x18]
nop
call fcn.14007005c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140066548
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140066548
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140066548
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14006654a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14006ab48
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.140047450
sub rsp, rax
mov rax, qword [0x1400a3250]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400662b8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14006ab97
mov rax, rbp
jmp 0x14006ac9f
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 + 0xa9060]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14006ba94
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xa9060]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14006ac9b
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 0x14006ac9b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14006ba94
test rax, rax
js 0x14006ac9b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14006ac9b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14006ac8d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14006ac8d
cmp byte [rcx], 0xd
jne 0x14006ac73
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14006ac82
cmp byte [rcx + 1], 0xa
jne 0x14006ac82
inc rcx
jmp 0x14006ac82
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa3660]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14006ac55
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14006ac9f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400467e0
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 0x14006ae34
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, [0x1400a9060]
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 0x14006ae8b
cmp word [rdx], r13w
jne 0x14006ae8b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14006ae90
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14006afb5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14006afd6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14006aec9
mov rdx, r9
mov word [rbx], cx
jmp 0x14006aef0
cmp r9, r8
jae 0x14006af00
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 0x14006aeaa
jmp 0x14006afb5
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 0x14006afaa
cmp dword [rsp + 0x80], esi
je 0x14006afaa
lea r8, [0x1400a9060]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14006af82
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14006af52
mov word [rbx], r13w
jmp 0x14006afb2
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 0x14006af5f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14006afb2
cmp word [rsp + 0x70], r13w
jne 0x14006af8f
cmp rbx, r14
je 0x14006af4c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14006ba9c
cmp word [rsp + 0x70], r13w
je 0x14006afb5
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, [0x1400a9060]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14006afaf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14006afb5
Function at 0x14006e310
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x240]
sub rsp, 0x340
mov rax, qword [0x1400a3250]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov r12, r8
mov rdi, rcx
movabs rbx, 0x200000000801
cmp rdx, rcx
je 0x14006e372
mov al, byte [rdx]
sub al, 0x2f
cmp al, 0x2d
ja 0x14006e362
movsx rax, al
bt rbx, rax
jb 0x14006e372
mov rcx, rdi
call fcn.140076748
mov rdx, rax
cmp rax, rdi
jne 0x14006e350
mov r8b, byte [rdx]
cmp r8b, 0x3a
jne 0x14006e399
lea rax, [rdi + 1]
cmp rdx, rax
je 0x14006e399
mov r9, r12
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.14006e18c
jmp 0x14006e63c
sub r8b, 0x2f
xor r14d, r14d
cmp r8b, 0x2d
ja 0x14006e3b2
movsx rax, r8b
bt rbx, rax
mov al, 1
jb 0x14006e3b5
mov al, r14b
sub rdx, rdi
mov qword [rsp + 0x40], r14
inc rdx
mov qword [rsp + 0x48], r14
neg al
mov qword [rsp + 0x50], r14
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x58], r14
sbb r13, r13
mov qword [rsp + 0x60], r14
and r13, rdx
mov byte [rsp + 0x68], r14b
xor edx, edx
mov qword [rsp + 0x38], r13
call fcn.140056718
mov rax, qword [rsp + 0x78]
mov ecx, 0xfde9
cmp dword [rax + 0xc], ecx
jne 0x14006e418
cmp byte [rbp - 0x78], r14b
je 0x14006e413
mov rax, qword [rsp + 0x70]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ecx
jmp 0x14006e450
call fcn.140068bd0
test eax, eax
jne 0x14006e43b
cmp byte [rbp - 0x78], r14b
je 0x14006e433
mov rax, qword [rsp + 0x70]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14006e450
cmp byte [rbp - 0x78], r14b
je 0x14006e44d
mov rax, qword [rsp + 0x70]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r14d
lea r8, [rsp + 0x30]
mov rcx, rdi
lea rdx, [rsp + 0x40]
call fcn.1400630d4
mov rcx, qword [rsp + 0x50]
lea r8, [rbp - 0x20]
test eax, eax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
cmovne rcx, r14
xor r9d, r9d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]