joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438600
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x004481e4]
mov r12, rcx
test ebx, ebx
jle 0x438730
mov rax, qword [0x004481e8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x43864c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x4386d3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x438630
mov rcx, r12
call fcn.00438fb0
mov rsi, rax
test rax, rax
je 0x438752
mov rax, qword [0x004481e8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.004390e0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004481e8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x438737
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x4386cc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x4386e0
add dword [0x004481e4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x004481e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4386cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00438590
nop dword [rax]
xor ebx, ebx
jmp 0x438657
mov rax, qword [0x004481e8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.00438590
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00438590
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x438c20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00448240]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00448220]
test rbx, rbx
je 0x438c74
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x438c6b
test r12, r12
je 0x438c6b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x438c50
lea rcx, [0x00448240]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x438fb0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x00442400]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x438fd0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x438fd8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x438fd0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x439025
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x43901c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x438fd0
add rax, 0x28
cmp rax, r9
jne 0x439008
xor eax, eax
ret
Function at 0x439030
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00442400]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x439050
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x439058
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x439050
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x4390e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00442400]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x439100
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x439108
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x18000e240
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0xf0]
mov rsi, rdx
mov rdi, qword [rcx + 0xf8]
mov rax, qword [rdx + 0x80]
sub rdi, rbx
sar rdi, 2
mov rbp, qword [rax + 0xf0]
test rdi, rdi
je 0x18000e2c4
movaps xmmword [rsp + 0x20], xmm6
sub rbp, rbx
movss xmm6, dword [0x180074c50]
nop
movss xmm0, dword [rbx + rbp]
xorps xmm0, xmm6
call fcn.180058b90
addss xmm0, dword [rsi + 0x13c]
movss xmm1, dword [rsi + 0x1a4]
divss xmm1, xmm0
movss dword [rbx], xmm1
add rbx, 4
sub rdi, 1
jne 0x18000e290
movaps xmm6, xmmword [rsp + 0x20]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180016be0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rdi, rcx
test r8, r8
jg 0x180016c11
xor eax, eax
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbp
je 0x180016c93
mov rbx, r14
mov rcx, rdi
call fcn.180018a30
test rax, rax
jle 0x180016c63
mov rdx, qword [rdi + 0x38]
cmp rbx, rax
mov rbp, rbx
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.180036f70
mov rax, qword [rdi + 0x50]
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x180016c86
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x38]
call qword [0x1800632c8]
cmp eax, 0xffffffff
je 0x180016d7f
mov byte [rsi], al
dec rbx
mov ebp, 1
add rsi, rbp
test rbx, rbx
jg 0x180016c25
jmp 0x180016d7f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180016caa
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180016cac
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180016cde
cmp rax, r14
mov rbx, r14
mov rcx, rsi
cmovb rbx, rax
mov r8, rbx
call fcn.180036f70
mov rax, qword [rdi + 0x50]
add rsi, rbx
sub rbp, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
mov rbx, rbp
je 0x180016d7f
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x180016d1c
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
cmp rbp, 0xfff
jbe 0x180016d60
nop word [rax + rax]
mov r9, qword [rdi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.18003cde4
sub rbp, rax
add rsi, rax
mov rbx, rbp
cmp rax, 0xfff
jne 0x180016da0
cmp rbp, rax
ja 0x180016d30
test rbx, rbx
je 0x180016d7f
mov r9, qword [rdi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.18003cde4
sub rbx, rax
sub r14, rbx
mov rbx, qword [rsp + 0x30]
mov rax, r14
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub r14, rbp
jmp 0x180016d82
Function at 0x18002d3b0
Capabilities:
Encode data using xor

Disassembly:
cmp qword [rdx + 0x18], 0x10
mov r9, qword [rdx + 0x10]
jb 0x18002d3be
mov rdx, qword [rdx]
xor eax, eax
mov r8d, eax
test r9, r9
je 0x18002d3ec
nop dword [rax + rax]
movzx ecx, byte [r8 + rdx]
inc r8
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor eax, ecx
cmp r8, r9
jne 0x18002d3d0
lea ecx, [rax + rax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul r8d, eax, 0x8001
mov eax, 0x446f8657
mul r8d
mov ecx, r8d
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 7
imul ecx, ecx, 0xca
sub r8d, ecx
lea eax, [r8 + 0x36]
ret

Function at 0x1800336d0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [rcx + 8]
mov rdi, rdx
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x180033718
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x180033718
mov dword [rdi], 0
xor al, al
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp dword [rsp + 0x30], 0
jne 0x180033727
cmp ebx, 0x7fffffff
jbe 0x18003372c
mov ebx, 0x7fffffff
mov dword [rdi], ebx
mov al, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180033770
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x40]
xor eax, eax
mov ebx, r8d
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800337a4
cmp dword [rsp + 0x40], ebx
sete al
add rsp, 0x30
pop rbx
ret
mov al, 1
add rsp, 0x30
pop rbx
ret
Function at 0x180033c70
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push rdi
mov r8, qword [rdx + 0x10]
lea rdi, [rdx + 0x10]
mov qword [rsp + 0x20], rsi
mov r10, rdx
mov rsi, rcx
lea rax, [r8 - 6]
cmp rax, 8
ja 0x180033c95
lea r11d, [r8 - 6]
jmp 0x180033d0c
lea rax, [r8 - 0xf]
cmp rax, 0x10
ja 0x180033cc6
imul r11, r8, 0x1f
movabs rax, 0x47ae147ae147ae15
add r11, 0x1af
mul r11
sub r11, rdx
shr r11, 1
add r11, rdx
shr r11, 6
jmp 0x180033d0c
lea rax, [r8 - 0x20]
cmp rax, 0x11
ja 0x180033cf4
lea rcx, [r8 + 0x138]
movabs rax, 0x47ae147ae147ae15
mul rcx
sub rcx, rdx
shr rcx, 1
lea r11, [rdx + rcx]
shr r11, 4
jmp 0x180033d0c
mov r11d, dword [rsp + 0x18]
lea rax, [r8 - 0x32]
cmp rax, 0xce
mov edx, 0xf
cmovbe r11d, edx
cmp qword [r10 + 0x18], 0x10
mov r9, r10
jb 0x180033d19
mov r9, qword [r10]
mov edx, r8d
xor edx, 1
cmp r8d, 4
jl 0x180033d6b
mov qword [rsp + 0x10], rbx
mov ebx, r8d
shr rbx, 2
lea eax, [rbx*4]
sub r8d, eax
nop dword [rax + rax]
imul eax, dword [r9], 0x5bd1e995
add r9, 4
imul edx, edx, 0x5bd1e995
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
xor edx, ecx
sub rbx, 1
jne 0x180033d40
mov rbx, qword [rsp + 0x10]
sub r8d, 1
je 0x180033d91
sub r8d, 1
je 0x180033d87
cmp r8d, 1
jne 0x180033d9d
movzx eax, byte [r9 + 2]
shl eax, 0x10
xor edx, eax
movzx eax, byte [r9 + 1]
shl eax, 8
xor edx, eax
movzx eax, byte [r9]
xor eax, edx
imul edx, eax, 0x5bd1e995
mov eax, edx
xorps xmm0, xmm0
shr eax, 0xd
xor eax, edx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
and eax, 0xf
cvtsi2sd xmm0, rax
mulsd xmm0, qword [0x180074bf0]
cvttsd2si rcx, xmm0
cmp r11d, 0x10
jae 0x180033de7
cmp ecx, 0x10
jae 0x180033de7
mov eax, r11d
shl rax, 4
add rax, rcx
movzx ecx, ax
mov rax, qword [rsi]
inc dword [rax + rcx*4]
cmp qword [r10 + 0x18], 0x10
mov rsi, qword [rsp + 0x20]
jb 0x180033df6
mov r10, qword [r10]
mov qword [rdi], 0
mov al, 1
mov byte [r10], 0
pop rdi
ret

Function at 0x180035730
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x228
mov byte [rsp + 0x60], 0x73
mov byte [rsp + 0x61], 0x40
mov byte [rsp + 0x62], 0x68
mov byte [rsp + 0x63], 0x49
mov byte [rsp + 0x64], 0x3f
mov byte [rsp + 0x65], 0x32
mov byte [rsp + 0x66], 0x62
mov byte [rsp + 0x67], 0x42
mov byte [rsp + 0x68], 0x38
mov byte [rsp + 0x69], 0x76
mov byte [rsp + 0x6a], 0x45
mov byte [rsp + 0x6b], 0x79
mov byte [rsp + 0x6c], 0x79
mov byte [rsp + 0x6d], 0x34
mov byte [rsp + 0x6e], 0x25
mov byte [rsp + 0x6f], 0x4a
mov byte [rsp + 0x70], 0x3c
mov byte [rsp + 0x71], 0x3f
mov byte [rsp + 0x72], 0x70
mov byte [rsp + 0x73], 0x38
mov byte [rsp + 0x74], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x7c], 0
mov eax, 0x6b
mov word [rsp + 0xa0], ax
mov eax, 0x65
mov word [rsp + 0xa2], ax
mov eax, 0x72
mov word [rsp + 0xa4], ax
mov eax, 0x6e
mov word [rsp + 0xa6], ax
mov eax, 0x65
mov word [rsp + 0xa8], ax
mov eax, 0x6c
mov word [rsp + 0xaa], ax
stosb byte [rdi], al
add byte [rax], al
add byte [rax + 0x33], bh
Function at 0x18003576c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x228
mov byte [rsp + 0x60], 0x73
mov byte [rsp + 0x61], 0x40
mov byte [rsp + 0x62], 0x68
mov byte [rsp + 0x63], 0x49
mov byte [rsp + 0x64], 0x3f
mov byte [rsp + 0x65], 0x32
mov byte [rsp + 0x66], 0x62
mov byte [rsp + 0x67], 0x42
mov byte [rsp + 0x68], 0x38
mov byte [rsp + 0x69], 0x76
mov byte [rsp + 0x6a], 0x45
mov byte [rsp + 0x6b], 0x79
mov byte [rsp + 0x6c], 0x79
mov byte [rsp + 0x6d], 0x34
mov byte [rsp + 0x6e], 0x25
mov byte [rsp + 0x6f], 0x4a
mov byte [rsp + 0x70], 0x3c
mov byte [rsp + 0x71], 0x3f
mov byte [rsp + 0x72], 0x70
mov byte [rsp + 0x73], 0x38
mov byte [rsp + 0x74], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x7c], 0
mov eax, 0x6b
mov word [rsp + 0xa0], ax
mov eax, 0x65
mov word [rsp + 0xa2], ax
mov eax, 0x72
mov word [rsp + 0xa4], ax
mov eax, 0x6e
mov word [rsp + 0xa6], ax
mov eax, 0x65
mov word [rsp + 0xa8], ax
mov eax, 0x6c
mov word [rsp + 0xaa], ax
stosb byte [rdi], al
add byte [rax], al
add byte [rax + 0x33], bh

Function at 0x180035800
Capabilities:
Resolve function by parsing pe exports

Disassembly:
stosb byte [rdi], al
add byte [rax], al
add byte [rax + 0x33], bh
mov word [rsp + 0xac], ax
mov eax, 0x32
mov word [rsp + 0xae], ax
mov eax, 0x2e
mov word [rsp + 0xb0], ax
mov eax, 0x64
mov word [rsp + 0xb2], ax
mov eax, 0x6c
mov word [rsp + 0xb4], ax
mov eax, 0x6c
mov word [rsp + 0xb6], ax
xor eax, eax
mov word [rsp + 0xb8], ax
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0x138], 0
mov qword [rsp + 0x100], 0
mov dword [rsp + 0x1a0], 0x6c
mov dword [rsp + 0xc8], 0x3d0910
mov dword [rsp + 0x78], 0
jmp 0x1800358aa

Function at 0x180035850
Capabilities:
Resolve function by parsing pe exports

Disassembly:
stosb byte [rdi], al
add byte [rax], al
add byte [rax + 0x33], bh
mov word [rsp + 0xac], ax
mov eax, 0x32
mov word [rsp + 0xae], ax
mov eax, 0x2e
mov word [rsp + 0xb0], ax
mov eax, 0x64
mov word [rsp + 0xb2], ax
mov eax, 0x6c
mov word [rsp + 0xb4], ax
mov eax, 0x6c
mov word [rsp + 0xb6], ax
xor eax, eax
mov word [rsp + 0xb8], ax
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0x138], 0
mov qword [rsp + 0x100], 0
mov dword [rsp + 0x1a0], 0x6c
mov dword [rsp + 0xc8], 0x3d0910
mov dword [rsp + 0x78], 0
jmp 0x1800358aa

Function at 0x180036110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
cmp dword [rcx + rax + 0x88], 0
jne 0x180036160
xor eax, eax
jmp 0x180036238
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
mov qword [rsp + 0x48], rax
and al, 0x48
mov dword [rsp + 0x24], 0
jmp 0x1800361a6
Function at 0x1800365b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0x88]
add byte [rax - 0x75], cl
and al, 0x70
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x20], 0
jmp 0x180036661
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jae 0x1800366bf
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.1800364d0
cmp eax, dword [rsp + 0x78]
jne 0x1800366bd
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
jmp 0x1800366c1
jmp 0x180036657
xor eax, eax
add rsp, 0x68
ret

Function at 0x180047890
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800478a6
mov al, 1
jmp 0x180047906
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800478b7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180047904
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800535d8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180047904
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180047904
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180047904
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180047906
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180049f34
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.180035800
sub rsp, rax
mov rax, qword [0x18007f060]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180047770
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180049f83
mov rax, rbp
jmp 0x18004a08b
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 + 0x82b90]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18004ae80
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x82b90]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18004a087
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 0x18004a087
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18004ae80
test rax, rax
js 0x18004a087
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18004a087
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18004a079
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18004a079
cmp byte [rcx], 0xd
jne 0x18004a05f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18004a06e
cmp byte [rcx + 1], 0xa
jne 0x18004a06e
inc rcx
jmp 0x18004a06e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x7f440]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18004a041
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18004a08b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180034ea0
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 0x18004a220
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, [0x180082b90]
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 0x18004a277
cmp word [rdx], r13w
jne 0x18004a277
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18004a27c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18004a3a1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18004a3c2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18004a2b5
mov rdx, r9
mov word [rbx], cx
jmp 0x18004a2dc
cmp r9, r8
jae 0x18004a2ec
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 0x18004a296
jmp 0x18004a3a1
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 0x18004a396
cmp dword [rsp + 0x80], esi
je 0x18004a396
lea r8, [0x180082b90]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18004a36e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18004a33e
mov word [rbx], r13w
jmp 0x18004a39e
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 0x18004a34b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18004a39e
cmp word [rsp + 0x70], r13w
jne 0x18004a37b
cmp rbx, r14
je 0x18004a338
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18004ae88
cmp word [rsp + 0x70], r13w
je 0x18004a3a1
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, [0x180082b90]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18004a39b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18004a3a1
Function at 0x1800503f8
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 0x180050428
xor eax, eax
jmp 0x1800504eb
mov rbp, rbx
cmp word [rax], si
je 0x18005044d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180050434
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180050430
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.18004eac4
movsxd r14, eax
test eax, eax
jne 0x18005048b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180050421
mov rcx, r14
call fcn.18004b544
mov rdi, rax
test rax, rax
jne 0x1800504a4
xor ecx, ecx
call fcn.180048a38
jmp 0x180050480
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.18004eac4
test eax, eax
jne 0x1800504d5
mov rcx, rdi
call fcn.180048a38
jmp 0x1800504df
xor ecx, ecx
call fcn.180048a38
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 0x180052d78
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.180045b74
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 0x180052e19
cmp ebx, dword [rsp + 0x30]
je 0x180052e12
test esi, esi
je 0x180052e12
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180052ded
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180052dfa
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180052dd7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180052dfe
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180052e1b
mov eax, 1
jmp 0x180052e1b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret