joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180009d40
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x5c0
mov rax, qword [0x180176010]
xor rax, rsp
mov qword [rsp + 0x5b0], rax
call fcn.180008d70
call fcn.180008b10
lea rax, [0x18017ea78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [0x18015f610]
lea rbx, [0x18017eca0]
mov rcx, rbx
call fcn.18003c420
test eax, eax
je 0x180009f40
mov rcx, qword [0x18017ea78]
mov rax, qword [rcx]
call qword [rax + 0xf0]
test eax, eax
setne dil
cmp byte [0x18017ea73], 0
je 0x180009e05
lea rax, str.was_not
lea r8, [0x18015f618]
test dil, dil
cmove r8, rax
lea rax, str.Non_FASTLINK
lea rdx, str.FASTLINK
cmove rdx, rax
mov ecx, 0x5fa
call fcn.1800089f0
call fcn.180008a70
movzx eax, dil
xor eax, 1
jmp 0x180009f1f
test dil, dil
je 0x180009f52
cmp byte [0x18017ea77], 0
je 0x180009e28
mov byte [0x18017ea71], 1
mov ecx, 0x5dc
call fcn.1800089f0
mov rcx, qword [0x18017ea78]
mov rax, qword [rcx]
mov qword [rsp + 0x20], 0
lea r9, [0x180009820]
mov r8d, 0x20
lea rdx, [0x18017eeb0]
call qword [rax + 0xc8]
test eax, eax
jne 0x180009e82
mov rcx, qword [0x18017ea78]
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x98]
mov dword [rsp + 0x30], eax
xor ecx, ecx
cmp eax, 2
jne 0x180009f69
jmp 0x180009f5f
call fcn.180008ab0
cmp byte [0x18017ea77], 0
je 0x180009eb2
mov ecx, 0x5e1
call fcn.1800089f0
call fcn.180008a70
cmp byte [0x18017ea76], 0
jne 0x180009eb2
mov ecx, 0x5f5
call fcn.1800089f0
lea rax, [0x18017ea90]
cmp byte [0x18017ea76], 0
cmovne rbx, rax
mov r8d, 0xb
mov rdx, rbx
lea rcx, [0x18017eeb0]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x180009f76
cmp byte [0x18017ea77], 0
je 0x180009f03
cmp byte [0x18017ea76], 0
jne 0x180009f03
mov ecx, 0x5e1
call fcn.1800089f0
call fcn.180008a70
xor eax, eax
jmp 0x180009f1f
mov rcx, qword [rsp + 0x5b0]
xor rcx, rsp
call fcn.18000a220
mov rbx, qword [rsp + 0x5e0]
add rsp, 0x5c0
pop rdi
ret
mov r8d, dword [rsp + 0x30]
mov edx, 0x452
mov rcx, rbx
call fcn.180008b50
mov edx, 0x453
mov rcx, rbx
call fcn.180008b50
mov edx, 0x44d
call fcn.180008b50
mov r8d, eax
mov edx, 0x3ea
call fcn.180008b50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, rbx
mov edx, 0x451
xor ecx, ecx
call fcn.180008b50
nop
int3
Function at 0x180018070
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180017ed1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop
test rax, rax
je 0x180017ed1
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180017ed1
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180017ed1
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180017ed1
cmp dword [rcx + 0x84], 0xe
jbe 0x180017ed1
cmp dword [rcx + 0xf8], 0
je 0x180017ed1
mov ecx, ebx
call fcn.180017f8c
nop
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180017d58
nop
cmp dword [rbp + 0x20], 0
je 0x180017f1f
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180017f28
nop
int3
xor r8d, r8d
xor edx, edx
jmp 0x180017e60

Function at 0x18001dd0c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18001dd2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18002aaa0
or eax, 0xffffffff
jmp 0x18001dd2e
xor eax, eax
add rsp, 0x28
ret
Function at 0x18002fe10
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 0x18002fe97
mov rsi, rbx
cmp word [rax], bp
je 0x18002fe56
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18002fe40
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18002fe3c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18002ab88
mov rdi, rax
test rax, rax
je 0x18002fe84
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1800175d0
mov rbp, rdi
xor ecx, ecx
call fcn.18002ab4c
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 0x180049720
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
mov r13, rdx
mov edx, 0x80000000
mov dword [r9], ebx
mov r15, r9
mov esi, r8d
mov rbp, rcx
mov r12d, ebx
test edx, r8d
jne 0x180049760
cmp r8d, 1
jne 0x18004976f
mov edx, 0xc0000000
cmp esi, 1
jne 0x18004976f
mov r8d, ebx
jmp 0x18004977a
or r8d, 0xbfffffff
shr r8d, 0x1d
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov rcx, r13
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1800497e4
test esi, esi
je 0x18004983c
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x18004983c
mov r12d, 1
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x180049833
lea rdx, [0x180134800]
lea ecx, [rax + 0x27]
call fcn.18000acb8
mov rdi, rax
test rax, rax
je 0x180049833
mov dword [rax + 8], esi
mov rcx, rdi
mov dword [rax + 0x18], ebx
lea rax, [0x18013dfd8]
mov qword [rdi], rax
lea rax, [0x18013e058]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x20], r14
call qword [0x18013dfe0]
jmp 0x18004983f
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, rbx
mov rcx, qword [rbp + 0x80f0]
test rcx, rcx
je 0x180049851
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbp + 0x80f0], rdi
test rdi, rdi
jne 0x18004986f
test esi, esi
setne bl
add ebx, 2
mov dword [r15], ebx
xor eax, eax
jmp 0x18004992e
test r12d, r12d
je 0x18004991f
mov r8d, dword [rsp + 0x90]
lea r9, [0x18013dda0]
mov rax, r9
mov byte [rbp + 0x80e0], 1
mov ecx, ebx
lea rdx, str.Microsoft_C_C_program_database_2.00_r_n
nop word [rax + rax]
cmp r8d, dword [rax]
je 0x1800498bb
inc ecx
add rax, 0x28
cmp rax, rdx
jl 0x1800498a0
mov dword [r15], 4
mov edi, ebx
jmp 0x1800498fb
movsxd rax, ecx
mov rdx, r15
lea rcx, [rax + rax*4]
movups xmm0, xmmword [r9 + rcx*8]
movups xmmword [rbp + 0x80a0], xmm0
movups xmm1, xmmword [r9 + rcx*8 + 0x10]
movups xmmword [rbp + 0x80b0], xmm1
movsd xmm0, qword [r9 + rcx*8 + 0x20]
mov rcx, rbp
movsd qword [rbp + 0x80c0], xmm0
call fcn.180048340
mov edi, eax
test eax, eax
jne 0x18004992c
mov rcx, qword [rbp + 0x80f0]
test rcx, rcx
je 0x18004990d
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, r13
mov qword [rbp + 0x80f0], rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x18004992c
mov rdx, r15
mov rcx, rbp
call fcn.1800486c0
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18004eec0
Capabilities:
Get file size

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x180176010]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r9
mov r14, r8
mov r15, rdx
mov rbx, rcx
test r8, r8
je 0x18004eff7
xorps xmm0, xmm0
mov dword [rcx], 1
mov rax, qword [r8]
lea rdx, [rsp + 0x60]
movups xmmword [rsp + 0x60], xmm0
xor r8d, r8d
mov rcx, r14
movups xmmword [rsp + 0x70], xmm0
movups xmmword [r11 - 0x78], xmm0
movups xmmword [r11 - 0x68], xmm0
movups xmmword [r11 - 0x58], xmm0
call qword [rax + 0x60]
test eax, eax
js 0x18004efea
mov rcx, qword [rsp + 0x60]
lea rax, [rbx + 0x48]
test rcx, rcx
jne 0x18004ef5a
lea r8, str._Portable_PDB_
mov edx, 0x104
mov rcx, rax
call fcn.1800274b0
jmp 0x18004ef86
xor esi, esi
xor r9d, r9d
mov qword [rsp + 0x40], rsi
xor r8d, r8d
mov qword [rsp + 0x38], rsi
xor edx, edx
mov qword [rsp + 0x30], 0x104
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call fcn.18001e138
mov rax, qword [rsp + 0x70]
mov ecx, eax
mov dword [rbx + 0x18], eax
cmp rcx, rax
jne 0x18004efea
lea rdx, [0x180134800]
call fcn.18000a734
mov qword [rbx + 0x10], rax
test rax, rax
je 0x18004f08d
mov rax, qword [r14]
xor edx, edx
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
call qword [rax + 0x28]
test eax, eax
jne 0x18004efea
mov rax, qword [r14]
lea r9, [rsp + 0x50]
mov r8d, dword [rbx + 0x18]
mov rcx, r14
mov rdx, qword [rbx + 0x10]
call qword [rax + 0x18]
test eax, eax
jne 0x18004efea
mov eax, dword [rsp + 0x50]
cmp dword [rbx + 0x18], eax
je 0x18004f0fd
mov dword [rdi], 3
xor eax, eax
jmp 0x18004f102
xor esi, esi
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov rcx, r15
mov dword [rsp + 0x20], 3
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x18004f03a
mov dword [rdi], 4
xor eax, eax
jmp 0x18004f102
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [rbx + 8]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x18004f063
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [rdi], 3
jmp 0x18004f102
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rsp + 0x20], ebp
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r14, rax
test rax, rax
jne 0x18004f097
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rdi], 2
xor eax, eax
jmp 0x18004f102
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor r8d, r8d
mov qword [rsp + 0x20], rbp
mov rcx, r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov rcx, r14
mov r12, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12, r12
je 0x18004f083
mov qword [rsp + 0x40], rsi
lea rdx, [rbx + 0x48]
mov qword [rsp + 0x38], rsi
xor r9d, r9d
mov qword [rsp + 0x30], 0x104
xor r8d, r8d
mov qword [rsp + 0x28], rdx
mov rcx, r15
xor edx, edx
mov qword [rbx + 0x10], r12
mov dword [rbx + 0x18], ebp
mov qword [rsp + 0x20], rsi
call fcn.18001e138
mov eax, 1
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.18000a220
add rsp, 0xc0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18007f9b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
lea rsi, [0x18017b8f0]
mov r11, rdx
mov rbx, rcx
cmp rdx, 8
jb 0x18007fa77
mov qword [rsp + 0x10], rdi
mov rdi, rdx
shr rdi, 3
imul rax, rdi, 0xfffffffffffffff8
add r11, rax
xor r8d, dword [rbx]
mov r10d, dword [rbx + 4]
add rbx, 8
mov r9d, r8d
mov eax, r8d
shr rax, 0x10
movzx edx, al
mov eax, r8d
shr rax, 8
movzx ecx, al
mov eax, r10d
mov r8d, dword [rsi + rdx*4 + 0x1400]
shr rax, 0x10
xor r8d, dword [rsi + rcx*4 + 0x1800]
movzx ecx, al
mov eax, r10d
shr rax, 8
xor r8d, dword [rsi + rcx*4 + 0x400]
movzx ecx, al
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rsi + rcx*4 + 0x800]
xor r8d, dword [rsi + rax*4 + 0x1000]
mov eax, r10d
shr rax, 0x18
xor r8d, dword [rsi + rax*4]
movzx eax, r9b
xor r8d, dword [rsi + rax*4 + 0x1c00]
movzx eax, r10b
xor r8d, dword [rsi + rax*4 + 0xc00]
sub rdi, 1
jne 0x18007f9e0
mov rdi, qword [rsp + 0x10]
test r11, r11
je 0x18007fa9c
nop dword [rax]
movzx eax, byte [rbx]
lea rbx, [rbx + 1]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [rsi + rcx*4]
sub r11, 1
jne 0x18007fa80
mov rbx, qword [rsp + 0x18]
mov eax, r8d
pop rsi
ret
Function at 0x14000acdc
Capabilities:
Parse pe header

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

Function at 0x14000c804
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000c832
xor eax, eax
jmp 0x14000c918
cmp qword [rcx + 0x68], 0
je 0x14000c843
call fcn.14000c934
jmp 0x14000c918
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000c85a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000c85c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000c88e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14000eed0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14000c912
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000c8c5
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14000c8ee
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400194d4
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000c912
cmp rsi, rbx
ja 0x14000c8cc
test rsi, rsi
je 0x14000c912
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400194d4
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140013140
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140012fab
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140012fab
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140012fab
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140012fab
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140012fab
cmp dword [rcx + 0x84], 0xe
jbe 0x140012fab
cmp dword [rcx + 0xf8], 0
je 0x140012fab
mov ecx, ebx
call fcn.14001305c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140012e38
nop
cmp dword [rbp + 0x20], 0
je 0x140012ff9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140013004
int3
xor r8d, r8d
xor edx, edx
jmp 0x140012f3c
Function at 0x140021360
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 0x140021390
xor eax, eax
jmp 0x140021453
mov rbp, rbx
cmp word [rax], si
je 0x1400213b5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002139c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140021398
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.140021280
movsxd r14, eax
test eax, eax
jne 0x1400213f3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140021389
mov rcx, r14
call fcn.14001d8ac
mov rdi, rax
test rax, rax
jne 0x14002140c
xor ecx, ecx
call fcn.14001c3b0
jmp 0x1400213e8
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.140021280
test eax, eax
jne 0x14002143d
mov rcx, rdi
call fcn.14001c3b0
jmp 0x140021447
xor ecx, ecx
call fcn.14001c3b0
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 0x140024248
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.14001d54c
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 0x1400242e9
cmp ebx, dword [rsp + 0x30]
je 0x1400242e2
test esi, esi
je 0x1400242e2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400242bd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400242ca
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400242a7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400242ce
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400242eb
mov eax, 1
jmp 0x1400242eb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400269e8
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.14002e0d0
sub rsp, rax
mov rax, qword [0x140041010]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001eb80
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140026a37
mov rax, rbp
jmp 0x140026b3f
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 + 0x432c0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140027b08
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x432c0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140026b3b
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 0x140026b3b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140027b08
test rax, rax
js 0x140026b3b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140026b3b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140026b2d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140026b2d
cmp byte [rcx], 0xd
jne 0x140026b13
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140026b22
cmp byte [rcx + 1], 0xa
jne 0x140026b22
inc rcx
jmp 0x140026b22
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x41960]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140026af5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140026b3f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000a150
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 0x140026d60
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140026d76
mov al, 1
jmp 0x140026dd6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140026d87
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140026dd4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140021b64
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140026dd4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140026dd4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140026dd4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140026dd6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140026ea8
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, [0x1400432c0]
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 0x140026eff
cmp word [rdx], r13w
jne 0x140026eff
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140026f04
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140027029
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002704a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140026f3d
mov rdx, r9
mov word [rbx], cx
jmp 0x140026f64
cmp r9, r8
jae 0x140026f74
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 0x140026f1e
jmp 0x140027029
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 0x14002701e
cmp dword [rsp + 0x80], esi
je 0x14002701e
lea r8, [0x1400432c0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140026ff6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140026fc6
mov word [rbx], r13w
jmp 0x140027026
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 0x140026fd3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140027026
cmp word [rsp + 0x70], r13w
jne 0x140027003
cmp rbx, r14
je 0x140026fc0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140027b10
cmp word [rsp + 0x70], r13w
je 0x140027029
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, [0x1400432c0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140027023
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140027029