joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002fb0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rsi, r8
mov rbp, rdx
mov r14, rcx
test r8, r8
jg 0x140002fd2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140002fe1
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x28], rbx
mov rbx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x140003032
cmp rax, rsi
mov rdi, rsi
mov rcx, r14
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, rbp
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, r14
add rbp, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [r14 + 0x80], 0
mov rdi, rbx
je 0x1400030a1
mov rcx, r14
call fcn.1400020d0
cmp rbx, 0xfff
jbe 0x140003081
mov r9, qword [r14 + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add rbp, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x1400030ba
cmp rbx, rax
ja 0x140003050
test rdi, rdi
je 0x1400030a1
mov r9, qword [r14 + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x28]
mov rax, rsi
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rsi, rbx
jmp 0x1400030a4
Function at 0x1400030c0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x1400030e1
add rsp, 0x20
pop r14
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x14000315c
test rax, rax
jle 0x14000313c
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x14000315c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000315c
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
add dword [rax], eax
add byte [rax], al
mov al, 0x87
add dword [rax + 1], eax
add byte [rax], al
xor byte [rcx + 0x14001], cl
add byte [rax], al
push rax
mov dword [rcx], eax
add dword [rax], eax
add byte [rax], al
jo 0x140043de3
add dword [rax + 1], eax
add byte [rax], al
add byte [rax + 0x1400189], dl
add byte [rax], al
add byte [rax + 0x1400189], dh
add dword [rax], eax
add byte [rax], al
ror byte [rcx + 0x14001], 1
Function at 0x140004708
Capabilities:
Parse pe header

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

Function at 0x140856058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1408561df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140856089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14085606f
add dl, dl
jne 0x140856096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408560f6
xor eax, eax
add dl, dl
jne 0x1408560a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408561ad
add dl, dl
jne 0x1408560b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408560c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408560d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408560dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408560ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14085607e
mov eax, 1
add dl, dl
jne 0x140856106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140856113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408560fb
sub eax, ebx
mov ebx, 1
jne 0x14085614c
mov ecx, 1
add dl, dl
jne 0x14085612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14085613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140856123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14085607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140856168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140856175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14085615d
cmp eax, 0x7d00
jae 0x14085619b
cmp eax, 0x500
jb 0x140856196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14085607e
cmp eax, 0x7f
ja 0x14085619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14085607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408561d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14085607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1800027f8
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x12e8]
mov eax, 0x13e8
call fcn.180034e50
sub rsp, rax
mov rbx, rcx
xor ecx, ecx
call fcn.18003c4f4
or dword [rbp + 0x12d4], 0xffffffff
mov r8d, 1
mov edx, r8d
mov dword [rsp + 0x54], eax
mov r9d, 0x270
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul ecx, ecx, 0x6c078965
add ecx, edx
mov dword [rsp + rdx*4 + 0x54], ecx
mov eax, ecx
add rdx, r8
cmp rdx, r9
jb 0x180002834
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], r9d
lea rcx, [rbp + 0x1300]
mov dword [rbp + 0x1300], r8d
mov dword [rbp + 0x1304], 5
call fcn.180009d70
mov dword [rbx + 0x28], eax
mov ecx, 0x165
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
add rax, rcx
mov dword [rsp + 0x48], ecx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x30]
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.180009e2c
mov ecx, dword [rbx + 0x28]
mov qword [rbp + 0x1310], rax
sub ecx, 1
je 0x180002a3f
sub ecx, 1
je 0x1800029c8
sub ecx, 1
je 0x180002968
sub ecx, 1
je 0x1800028ee
cmp ecx, 1
jne 0x180002a99
mov ecx, 0x1c58
call fcn.18003484c
mov qword [rbx + 0x20], rax
jmp 0x180002a99
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea r9, [rbp + 0x1308]
and qword [rsp + 0x40], 0
lea r8, [rbp + 0x1318]
mov ecx, 0x1e8
mov dword [rbp + 0x1300], 4
add rax, rcx
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x40]
movaps xmm0, xmmword [rsp + 0x30]
lea rax, [rbp + 0x1300]
lea rcx, [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x1308], 0x3000
mov qword [rbp + 0x1318], 0x1c58
call fcn.180009a64
mov qword [rbx + 0x18], rax
jmp 0x180002a99
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r9, [rbp + 0x1308]
mov ecx, 0x193
mov qword [rbp + 0x1308], 0x1c58
mov dword [rsp + 0x38], ecx
lea r8, [rbp + 0x1300]
add rax, rcx
mov dword [rbp + 0x1300], 8
mov qword [rsp + 0x30], rax
lea rdx, [rbp + 0x1310]
movaps xmm0, xmmword [rsp + 0x30]
lea rcx, [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.180009fcc
mov qword [rbx + 0x10], rax
jmp 0x180002a99
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea r9, [rbp + 0x1308]
and qword [rsp + 0x40], 0
lea r8, [rbp + 0x1318]
mov ecx, 0x1ef
mov dword [rbp + 0x1300], 4
add rax, rcx
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x40]
movaps xmm0, xmmword [rsp + 0x30]
lea rax, [rbp + 0x1300]
lea rcx, [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x1308], 0x3000
mov qword [rbp + 0x1318], 0x1c58
call fcn.180009a64
mov qword [rbx + 8], rax
jmp 0x180002a99
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r9, [rbp + 0x1308]
mov ecx, 0x1d6
mov qword [rbp + 0x1308], 0x1c58
mov dword [rsp + 0x38], ecx
lea r8, [rbp + 0x1300]
add rax, rcx
mov dword [rbp + 0x1300], 8
mov qword [rsp + 0x30], rax
lea rdx, [rbp + 0x1310]
movaps xmm0, xmmword [rsp + 0x30]
lea rcx, [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.180009fcc
mov qword [rbx], rax
mov rax, rbx
add rsp, 0x13e8
pop rbx
pop rbp
ret
Function at 0x1800045d8
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0xb8]
sub rsp, 0x1a0
mov r14, qword [rcx + 0x10]
mov rdi, rcx
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r14
cmp rax, 2
jb 0x180004836
cmp qword [rdi + 0x18], 0xf
jbe 0x180004625
mov rdi, qword [rdi]
lea r15, [r14 + 2]
mov ebx, 0xf
lea rsi, [rsp + 0x20]
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x20], xmm0
movdqu xmmword [rsp + 0x30], xmm1
cmp r15, rbx
jbe 0x18000469a
mov rbx, r15
or rbx, 0xf
cmp rbx, rcx
jbe 0x180004664
mov rbx, rcx
movabs rcx, 0x8000000000000000
jmp 0x18000467d
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x180004687
call fcn.18000f910
mov rsi, rax
jmp 0x180004695
test rcx, rcx
je 0x180004693
call fcn.1800344a0
jmp 0x180004682
xor esi, esi
mov qword [rsp + 0x20], rsi
mov r8, r14
mov qword [rsp + 0x30], r15
mov rdx, rdi
mov qword [rsp + 0x38], rbx
mov rcx, rsi
call fcn.18004fa20
mov word [rsi + r14], 0x2a5c
lea rcx, [rsp + 0x20]
mov byte [rsi + r15], 0
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x38], 0xf
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdx, qword [rsp + 0x38]
mov rdi, rax
cmp rdx, 0xf
jbe 0x18000471a
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004715
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000482a
call fcn.1800343b4
movdqa xmm0, xmmword [0x18005e7c0]
mov byte [rsp + 0x20], 0
movdqu xmmword [rsp + 0x30], xmm0
cmp rdi, 0xffffffffffffffff
jne 0x18000473a
xor eax, eax
jmp 0x18000480d
xor ebx, ebx
test byte [rsp + 0x60], 0x10
je 0x1800047ec
and qword [rsp + 0x50], 0
lea rax, [rbp - 0x74]
and qword [rsp + 0x58], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x180004763
lea rdx, [rbp - 0x74]
lea rcx, [rsp + 0x40]
call fcn.18000b0f4
mov rdx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
cmp rdx, 0xf
cmova rax, rcx
cmp qword [rsp + 0x50], 1
jne 0x18000479f
cmp byte [rax], 0x2e
je 0x1800047bd
cmp rdx, 0xf
lea rax, [rsp + 0x40]
cmova rax, rcx
cmp qword [rsp + 0x50], 2
jne 0x1800047bb
cmp word [rax], 0x2e2e
je 0x1800047bd
inc ebx
cmp rdx, 0xf
jbe 0x1800047ec
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800047e7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180004830
call fcn.1800343b4
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x18000473c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.18003d19c
int3
call fcn.18003d19c
int3
call fcn.180001380
int3
Function at 0x18000cbdc
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r9, qword [rcx]
mov ebx, 0x270
mov ecx, dword [r9]
cmp ecx, ebx
jne 0x18000cc47
lea r8, [r9 + 8]
mov r10d, 0x7fffffff
mov r11d, 0x9908b0df
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
and edx, r10d
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub rbx, 1
jne 0x18000cc0a
mov ecx, dword [r9]
jmp 0x18000cd15
cmp ecx, 0x4e0
jb 0x18000cd15
lea rbx, [r9 + 0x9c4]
mov esi, 0xe3
mov edi, dword [rbx]
mov r10d, 0x7fffffff
mov r11d, 0x9908b0df
mov eax, edi
mov edi, dword [rbx + 4]
mov edx, eax
lea rbx, [rbx + 4]
xor edx, edi
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [rbx + 0x630]
xor ecx, edx
mov dword [rbx - 0x9c4], ecx
sub rsi, 1
jne 0x18000cc6d
lea rbx, [r9 + 0xd50]
mov esi, 0x18c
mov edi, dword [rbx]
mov eax, edi
mov edi, dword [rbx + 4]
mov edx, eax
lea rbx, [rbx + 4]
xor edx, edi
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [rbx - 0xd50]
xor ecx, edx
mov dword [rbx - 0x9c4], ecx
sub rsi, 1
jne 0x18000ccae
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret

Function at 0x1800403dc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800403f2
mov al, 1
jmp 0x180040452
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180040403
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180040450
mov ecx, dword [rcx + 0x18]
nop
call fcn.18004a79c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180040450
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180040450
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180040450
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180040452
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180044e24
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.180034e50
sub rsp, rax
mov rax, qword [0x180071080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800402bc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180044e73
mov rax, rbp
jmp 0x180044f7b
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 + 0xbe590]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800461a0
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xbe590]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180044f77
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 0x180044f77
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800461a0
test rax, rax
js 0x180044f77
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180044f77
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180044f69
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180044f69
cmp byte [rcx], 0xd
jne 0x180044f4f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180044f5e
cmp byte [rcx + 1], 0xa
jne 0x180044f5e
inc rcx
jmp 0x180044f5e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x714b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180044f31
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180044f7b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180034c70
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 0x180045540
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, [0x1800be590]
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 0x180045597
cmp word [rdx], r13w
jne 0x180045597
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18004559c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800456c1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800456e2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800455d5
mov rdx, r9
mov word [rbx], cx
jmp 0x1800455fc
cmp r9, r8
jae 0x18004560c
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 0x1800455b6
jmp 0x1800456c1
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 0x1800456b6
cmp dword [rsp + 0x80], esi
je 0x1800456b6
lea r8, [0x1800be590]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18004568e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18004565e
mov word [rbx], r13w
jmp 0x1800456be
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 0x18004566b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800456be
cmp word [rsp + 0x70], r13w
jne 0x18004569b
cmp rbx, r14
je 0x180045658
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800461a8
cmp word [rsp + 0x70], r13w
je 0x1800456c1
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, [0x1800be590]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800456bb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800456c1
Function at 0x18004915c
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 0x18004918c
xor eax, eax
jmp 0x18004924f
mov rbp, rbx
cmp word [rax], si
je 0x1800491b1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180049198
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180049194
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.180047844
movsxd r14, eax
test eax, eax
jne 0x1800491ef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180049185
mov rcx, r14
call fcn.180044678
mov rdi, rax
test rax, rax
jne 0x180049208
xor ecx, ecx
call fcn.1800427ac
jmp 0x1800491e4
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.180047844
test eax, eax
jne 0x180049239
mov rcx, rdi
call fcn.1800427ac
jmp 0x180049243
xor ecx, ecx
call fcn.1800427ac
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 0x18004ce48
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.1800408e0
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 0x18004cee9
cmp ebx, dword [rsp + 0x30]
je 0x18004cee2
test esi, esi
je 0x18004cee2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18004cebd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18004ceca
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18004cea7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18004cece
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18004ceeb
mov eax, 1
jmp 0x18004ceeb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret