joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001a100
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
sub rsp, 0x1a8
mov rax, qword [0x18008d040]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp edx, 1
je 0x18001a138
xor eax, eax
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.180041300
add rsp, 0x1a8
ret
mov qword [0x180090378], rcx
call fcn.180019a00
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, rax
test rax, rax
je 0x18001a2f7
movups xmm1, xmmword [rax + 0x30]
mov qword [rsp + 0x1b0], rbx
mov ebx, 2
mov qword [rsp + 0x1a0], rdi
mov r8d, ebx
psrldq xmm1, 0xc
movd eax, xmm1
movsxd rcx, eax
lea rax, [rsp + 0x80]
add rcx, rdx
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub r8, 1
jne 0x18001a190
mov rcx, qword [rcx]
mov qword [rax], rcx
mov edi, dword [rsp + 0xd0]
add rdi, 0xfffffffffffffc00
add rdi, rdx
je 0x18001a2e7
lea r9, [rsp + 0x190]
mov qword [rsp + 0x1b8], rsi
mov edx, 0x100
mov r8d, 0x40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ecx, ecx
mov edx, 0x100
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea rcx, [0x18000f2f0]
mov rdx, rdi
mov rsi, rax
lea rax, [0x180019ed0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
nop word [rax + rax]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rcx]
lea rcx, [rcx + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm1, xmmword [rcx - 0x70]
movups xmmword [rdx - 0x70], xmm1
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rdx - 0x60], xmm0
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rdx - 0x50], xmm1
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rdx - 0x40], xmm0
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rdx - 0x30], xmm1
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rdx - 0x20], xmm0
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rdx - 0x10], xmm1
sub rbx, 1
jne 0x18001a260
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9, rdi
xor r8d, r8d
mov rcx, rax
xor edx, edx
lea rax, [0x1800903b0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rsi, qword [rsp + 0x1b8]
mov rbx, qword [rsp + 0x1b0]
mov rdi, qword [rsp + 0x1a0]
mov eax, 1
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.180041300
add rsp, 0x1a8
ret
Function at 0x18001ad50
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x18001ad72
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x18001adec
mov rdi, r14
mov rcx, rbx
call fcn.18001c2e0
test rax, rax
jle 0x18001adc4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.18006f690
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 0x18001addc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x18001ade4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x18001ad86
sub r14, rdi
jmp 0x18001aecf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x18001ae03
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18001ae05
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18001ae37
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.18006f690
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 0x18001aecc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18001ae72
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 0x18001aead
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.18004dce0
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x18001aecc
cmp rbp, rax
ja 0x18001ae80
test rbp, rbp
je 0x18001aecc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.18004dce0
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x18001c7e0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x18008d040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
mov rdx, qword [0x180097598]
test rdx, rdx
jne 0x18001c8dc
mov qword [rsp + 0x80], rbx
mov rbx, qword [0x180097700]
mov dword [rsp + 0x50], 0x7865742e
mov byte [rsp + 0x54], 0x74
movsxd rdx, dword [rbx + 0x3c]
movzx eax, word [rdx + rbx + 0x14]
lea r8, [rdx + rbx]
add rax, 0x18
add r8, rax
movzx eax, word [rdx + rbx + 6]
lea rcx, [rax + rax*4]
lea r11, [r8 + rcx*8]
cmp r8, r11
je 0x18001c893
lea r9, [rsp + 0x50]
sub r9, r8
nop dword [rax]
lea r10, [r8 + 5]
mov rax, r8
cmp r8, r10
je 0x18001c893
nop dword [rax]
movsx edx, byte [r9 + rax]
movzx ecx, byte [rax]
cmp ecx, edx
jne 0x18001c886
inc rax
cmp rax, r10
jne 0x18001c870
jmp 0x18001c893
add r8, 0x28
sub r9, 0x28
cmp r8, r11
jne 0x18001c860
mov eax, dword [r8 + 8]
mov ecx, dword [r8 + 0xc]
add rcx, rbx
mov word [rsp + 0x30], 0x26ff
mov rbx, qword [rsp + 0x80]
lea rdx, [rax + rcx]
cmp rax, 2
jb 0x18001c8d5
movzx eax, word [rsp + 0x30]
lea r8, [rdx - 2]
cmp ax, word [rcx]
je 0x18001c8d2
cmp rcx, r8
je 0x18001c8d5
inc rcx
cmp ax, word [rcx]
jne 0x18001c8c5
mov rdx, rcx
mov qword [0x180097598], rdx
xor eax, eax
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x40], rdi
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea edx, [r9 + 8]
call fcn.18003fe70
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180041300
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
Function at 0x18001ea20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x180097754], 0
lea rdi, [0x180097750]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x18001eaf8
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x18001ea50
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x18001eb2e
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4]
sub r9d, 1
jne 0x18001eb10
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x18001eb6f
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x18001eb53
cmp byte [r8], r9b
jne 0x18001eb53
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rdi + rdx*4]
test r9b, r9b
jne 0x18001eb40
not eax
pop rdi
ret

Function at 0x18001f160
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x20
movsxd rbp, r9d
mov rsi, r8
test r8, r8
je 0x18001f17a
mov dword [r8], 0
call fcn.18001ef50
mov rbx, rax
test rax, rax
jne 0x18001f18f
add rsp, 0x20
pop rsi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x40], rdi
mov rcx, rbx
mov qword [rsp + 0x48], r14
lea r8d, [rdx + 2]
call fcn.18004e0b0
test eax, eax
jne 0x18001f279
mov rcx, rbx
call fcn.18004eb98
movsxd r14, eax
cmp r14d, 0xffffffff
je 0x18001f279
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.18004e0b0
test eax, eax
jne 0x18001f279
mov rcx, qword [0x18008dc98]
lea eax, [r14 + rbp]
inc dword [rcx + 0x354]
mov rdx, qword [rcx + 0xf0]
movsxd rcx, eax
call rdx
mov rdi, rax
test rax, rax
je 0x18001f279
mov r9, rbx
mov qword [rsp + 0x50], r15
mov r8, r14
mov edx, 1
mov rcx, rax
call fcn.18004dce0
cmp rax, r14
je 0x18001f252
mov rcx, rbx
call fcn.180049440
mov rax, qword [0x18008dc98]
mov rcx, rdi
dec dword [rax + 0x354]
call qword [rax + 0xf8]
xor eax, eax
mov r15, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
pop rbp
pop rbx
ret
test ebp, ebp
jle 0x18001f264
mov r8, rbp
lea rcx, [r14 + rdi]
xor edx, edx
call fcn.18006fd30
mov rcx, rbx
call fcn.180049440
test rsi, rsi
je 0x18001f274
mov dword [rsi], r14d
mov rax, rdi
jmp 0x18001f23b
mov rcx, rbx
call fcn.180049440
xor eax, eax
jmp 0x18001f240
Function at 0x180037130
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
push r13
push r14
sub rsp, 0xb8
mov r13, rcx
movsxd rax, r9d
xor ecx, ecx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0xe8], ecx
mov r14, rdx
test r9d, r9d
jle 0x180037392
mov qword [r11 + 8], rbx
lea rbx, [r8 + 0x20]
mov qword [r11 + 0x10], rbp
movzx ebp, byte [r13 + 0x24]
mov qword [r11 + 0x18], rsi
mov qword [r11 - 0x18], rdi
mov edi, 0x100
mov qword [r11 - 0x20], r12
xor r12d, r12d
mov qword [r11 - 0x28], r15
movaps xmmword [r11 - 0x38], xmm6
movaps xmmword [r11 - 0x48], xmm7
xorps xmm7, xmm7
movaps xmmword [r11 - 0x58], xmm8
movzx r11d, byte [r13 + 0x20]
movss xmm8, dword [0x1800827b0]
nop word [rax + rax]
movss xmm6, dword [rbx - 0x20]
comiss xmm6, xmm7
jbe 0x1800371fa
movsxd r10, dword [r14 + 0x24]
mov r9, qword [r14 + 8]
movsx ecx, di
movzx eax, byte [r10 + r9 + 7]
movzx edx, byte [r10 + r9 + 6]
imul edx, ecx
movsx ecx, di
add dx, ax
movzx eax, byte [r10 + r9 + 5]
movsx r8d, dx
movzx edx, byte [r10 + r9 + 4]
imul edx, ecx
add ax, dx
cwde
sub eax, r8d
movd xmm0, eax
jmp 0x180037219
movsxd rdx, dword [r14 + 0x1c]
xorps xmm6, xmm8
mov rax, qword [r14 + 8]
movzx ecx, byte [rdx + rax + 0x12]
movzx eax, byte [rdx + rax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
xor edi, edi
mov byte [rbx], r11b
mov byte [rbx + 1], bpl
divss xmm6, xmm0
cmp dword [rbx - 0x10], edi
jle 0x180037330
mov r15, qword [rsp + 0xf0]
mov rax, r12
shl rax, 4
add r15, 6
xor esi, esi
add r15, rax
nop word [rax + rax]
mov rax, qword [rbx - 0x18]
test rax, rax
jne 0x180037260
mov edx, dword [rbx - 0x1c]
add edx, edi
jmp 0x180037263
mov edx, dword [rax + rsi]
mov eax, dword [r13 + 0x24]
xorps xmm3, xmm3
xorps xmm2, xmm2
mov rcx, r14
cvtsi2ss xmm3, rax
mov eax, dword [r13 + 0x20]
cvtsi2ss xmm2, rax
mulss xmm3, xmm6
mulss xmm2, xmm6
call fcn.180032450
mov edx, eax
mov rcx, r14
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
movss dword [rsp + 0x28], xmm7
movss dword [rsp + 0x20], xmm7
call fcn.180034da0
movzx ecx, word [r13 + 0x1c]
inc r12
movzx r11d, word [r13 + 0x20]
movzx eax, cx
sub ax, word [rsp + 0x50]
dec cx
movzx ebp, word [r13 + 0x24]
dec ax
add ax, r11w
inc edi
add ax, word [rsp + 0x54]
add rsi, 4
mov word [r15 - 2], ax
movzx eax, bp
sub ax, word [rsp + 0x58]
add ax, cx
mov ecx, dword [rsp + 0xe8]
add ax, word [rsp + 0x5c]
inc ecx
mov word [r15], ax
add r15, 0x10
mov dword [rsp + 0xe8], ecx
cmp edi, dword [rbx - 0x10]
jl 0x180037250
jmp 0x180037337
mov ecx, dword [rsp + 0xe8]
add rbx, 0x28
mov edi, 0x100
sub qword [rsp + 0x60], 1
jne 0x1800371b0
movaps xmm8, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x90]
mov r15, qword [rsp + 0xa0]
mov r12, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xe0]
mov rbp, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xd0]
mov eax, ecx
add rsp, 0xb8
pop r14
pop r13
ret
Function at 0x18003a920
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x18003aab3
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov esi, r9d
mov rbx, r8
mov rbp, rdx
mov rdi, rcx
jbe 0x18003a992
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.18003a4b0
mov r8d, dword [rdi + 0x80]
mov r9d, esi
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
call fcn.180039c00
lea rcx, [rdi + 0x80]
call fcn.1800300f0
jmp 0x18003aa9f
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.180038af0
movzx edx, word [rdi + 0x48]
mov rax, qword [rdi + 0x38]
movss xmm1, dword [rbx]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rbx + 4]
mov rax, qword [rdi + 0x58]
mov word [rax], dx
mov rax, qword [rdi + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rdi + 0x58]
mov word [rax + 4], cx
mov rax, qword [rdi + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rdi + 0x58]
mov word [rax + 8], cx
mov rax, qword [rdi + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rdi + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rdi + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rdi + 0x50]
mov dword [rax + 0x10], esi
mov rax, qword [rdi + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rdi + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rdi + 0x50]
mov dword [rax + 0x24], esi
movsd xmm0, qword [rbx]
mov rax, qword [rdi + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rdi + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rdi + 0x50]
mov dword [rax + 0x38], esi
mov rax, qword [rdi + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rdi + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rdi + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], esi
add qword [rdi + 0x50], 0x50
add dword [rdi + 0x48], 4
add qword [rdi + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x18004e918
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.1800421e0
sub rsp, rax
mov rax, qword [0x18008d040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18005702c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18004e967
mov rax, rbp
jmp 0x18004ea6f
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x8fbb0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18005de50
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x8fbb0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18004ea6b
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 0x18004ea6b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18005de50
test rax, rax
js 0x18004ea6b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18004ea6b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18004ea5d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18004ea5d
cmp byte [rcx], 0xd
jne 0x18004ea43
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18004ea52
cmp byte [rcx + 1], 0xa
jne 0x18004ea52
inc rcx
jmp 0x18004ea52
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x8d470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18004ea25
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18004ea6f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180041300
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 0x18005714c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180057162
mov al, 1
jmp 0x1800571c2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180057173
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800571c0
mov ecx, dword [rcx + 0x18]
nop
call fcn.18006136c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800571c0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800571c0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800571c0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800571c2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18005d1f0
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, [0x18008fbb0]
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 0x18005d247
cmp word [rdx], r13w
jne 0x18005d247
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18005d24c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18005d371
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18005d392
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18005d285
mov rdx, r9
mov word [rbx], cx
jmp 0x18005d2ac
cmp r9, r8
jae 0x18005d2bc
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 0x18005d266
jmp 0x18005d371
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 0x18005d366
cmp dword [rsp + 0x80], esi
je 0x18005d366
lea r8, [0x18008fbb0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18005d33e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18005d30e
mov word [rbx], r13w
jmp 0x18005d36e
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 0x18005d31b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18005d36e
cmp word [rsp + 0x70], r13w
jne 0x18005d34b
cmp rbx, r14
je 0x18005d308
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18005de58
cmp word [rsp + 0x70], r13w
je 0x18005d371
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, [0x18008fbb0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18005d36b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18005d371
Function at 0x180060bb0
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 0x180060be0
xor eax, eax
jmp 0x180060ca3
mov rbp, rbx
cmp word [rax], si
je 0x180060c05
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180060bec
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180060be8
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.18005f454
movsxd r14, eax
test eax, eax
jne 0x180060c43
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180060bd9
mov rcx, r14
call fcn.18005b82c
mov rdi, rax
test rax, rax
jne 0x180060c5c
xor ecx, ecx
call fcn.18005986c
jmp 0x180060c38
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.18005f454
test eax, eax
jne 0x180060c8d
mov rcx, rdi
call fcn.18005986c
jmp 0x180060c97
xor ecx, ecx
call fcn.18005986c
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 0x180063a18
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.180057650
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 0x180063ab9
cmp ebx, dword [rsp + 0x30]
je 0x180063ab2
test esi, esi
je 0x180063ab2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180063a8d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180063a9a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180063a77
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180063a9e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180063abb
mov eax, 1
jmp 0x180063abb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret