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

Disassembly:
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x490
mov rax, qword [0x140211140]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor r14d, r14d
mov r13, r9
mov rdi, r8
mov r12d, edx
mov r15d, ecx
cmp r8, r9
jbe 0x140007d2e
lea rcx, str.copy_some_to_file:_panic:_startin___startout__n
call fcn.140008c80
lea ecx, [r14 + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x488], rbx
mov rbx, qword [rsp + 0x4e0]
test rbx, rbx
jns 0x140007d72
lea rdx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64]
test eax, eax
jns 0x140007d6a
lea rcx, str.Cant_stat_file__n
call fcn.140008c80
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rbx, qword [rsp + 0x38]
test rbx, rbx
jne 0x140007d7b
xor eax, eax
jmp 0x140007e59
mov qword [rsp + 0x480], rbp
lea rbp, [rdi + rbx]
mov qword [rsp + 0x478], rsi
lea rsi, [rbx + r13]
cmp rbx, 0x200
jle 0x140007dac
add rsi, 0xfffffffffffffe00
add rbp, 0xfffffffffffffe00
jmp 0x140007db2
sub rsi, rbx
sub rbp, rbx
test rbx, rbx
jle 0x140007e45
nop dword [rax + rax]
movsxd rdx, esi
xor r8d, r8d
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseeki64]
movsxd rdx, ebp
xor r8d, r8d
mov ecx, r15d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseeki64]
lea rdx, [rsp + 0x60]
mov ecx, r15d
mov r8d, 0x200
cmp rbx, 0x200
jg 0x140007df8
mov r8d, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
movsxd rdi, eax
test rdi, rdi
jle 0x140007e9a
mov r8d, edi
lea rdx, [rsp + 0x60]
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
test eax, eax
js 0x140007e82
add r14, rdi
sub rbx, rdi
cmp rbx, 0x200
jle 0x140007e36
sub rsi, rdi
sub rbp, rdi
jmp 0x140007e3c
sub rsi, rbx
sub rbp, rbx
test rbx, rbx
jg 0x140007dc0
mov rbp, qword [rsp + 0x480]
lea rax, [r14 + r13]
mov rsi, qword [rsp + 0x478]
mov rbx, qword [rsp + 0x488]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1401b1540
add rsp, 0x490
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, str.Write_error__n
call fcn.140008c80
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str.Read_error__n
call fcn.140008c80
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x1400095c0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x48
xor edx, edx
lea rcx, [0x14021c600]
mov r8d, 0x138
call sub.VCRUNTIME140.dll_memset
cmp byte [0x140211257], 0
lea rax, [0x1401b52bc]
mov qword [0x14021c610], rax
lea rax, [0x1401b52c0]
mov qword [0x14021c620], rax
lea rax, str.bdefgpstvz
mov qword [0x14021c630], rax
lea rax, [0x1401b52c8]
mov qword [0x14021c640], rax
lea rax, [0x1401b52cc]
mov qword [0x14021c650], rax
lea rax, [0x1401b52d0]
mov qword [0x14021c660], rax
lea rax, [0x1401b52d4]
mov qword [0x14021c670], rax
lea rax, [0x1401b52d8]
mov qword [0x14021c680], rax
lea rax, [0x1401b52dc]
mov qword [0x14021c690], rax
lea rax, [0x1401b44ac]
mov qword [0x14021c6a0], rax
lea rax, [0x1401b52e0]
mov qword [0x14021c6b0], rax
lea rax, [0x1401b52e4]
mov qword [0x14021c6c0], rax
lea rax, [0x1401b44b4]
mov qword [0x14021c6d0], rax
lea rax, [0x1401b52e8]
mov qword [0x14021c6e0], rax
lea rax, [0x1401b52ec]
mov qword [0x14021c6f0], rax
lea rax, [0x1401b52f0]
mov qword [0x14021c700], rax
lea rax, [0x1401b52f4]
mov qword [0x14021c710], rax
lea rax, [0x1401b52f8]
mov qword [0x14021c720], rax
jne 0x1400096f0
lea rcx, [fcn.140009810]
call fcn.1401b1d04
mov byte [0x140211257], 1
call fcn.14000ed70
test eax, eax
jns 0x14000974c
lea rax, str.unable_to_initialize_error_interface
mov r9d, 0xd7
mov qword [rsp + 0x38], rax
lea r8, str.H5_init_library
mov rax, qword [0x14020e398]
lea rdx, str.C:_srcosgeo4whdf5_srcH5.c
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov rax, qword [0x14020e168]
mov qword [rsp + 0x28], rax
mov rax, qword [0x14020e0d8]
mov qword [rsp + 0x20], rax
call fcn.140060100
or eax, 0xffffffff
add rsp, 0x48
ret
call fcn.140039e10
test eax, eax
jns 0x140009764
lea rax, str.unable_to_initialize_property_list_interface
mov r9d, 0xd9
jmp 0x140009706
call fcn.14001b9f0
test eax, eax
jns 0x14000977c
lea rax, str.unable_to_initialize_datatype_interface
mov r9d, 0xdb
jmp 0x140009706
call fcn.1400561a0
test eax, eax
jns 0x140009797
lea rax, str.unable_to_initialize_dataset_interface
mov r9d, 0xdd
jmp 0x140009706
call fcn.1400508a0
test eax, eax
jns 0x1400097b2
lea rax, str.unable_to_initialize_metadata_caching_interface
mov r9d, 0xdf
jmp 0x140009706
call fcn.14003c430
test eax, eax
jns 0x1400097cd
lea rax, str.unable_to_initialize_link_interface
mov r9d, 0xe1
jmp 0x140009706
call fcn.140060ab0
test eax, eax
jns 0x1400097e8
lea rax, str.unable_to_initialize_FS_interface
mov r9d, 0xe3
jmp 0x140009706
lea rcx, str._all
call fcn.140009260
lea rcx, str.HDF5_DEBUG
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rcx, rax
call fcn.140009260
xor eax, eax
add rsp, 0x48
ret
Function at 0x140012d60
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov ecx, 0x7fff
call fcn.140060ae0
mov rbx, rax
test rax, rax
jne 0x140012dd8
lea rax, str.cant_allocate_memory_for_expanded_path
mov r9d, 0x4f2
mov qword [rsp + 0x38], rax
lea r8, str.H5_expand_windows_env_vars
mov rax, qword [0x14020e400]
lea rdx, str.C:_srcosgeo4whdf5_srcH5system.c
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov rax, qword [0x14020e1e0]
mov qword [rsp + 0x28], rax
mov rax, qword [0x14020e0d8]
mov qword [rsp + 0x20], rax
call fcn.140060100
or eax, 0xffffffff
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rdi]
mov r8d, 0x7fff
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp eax, 0x7fff
jle 0x140012e0c
lea rax, str.expanded_path_is_too_long
mov r9d, 0x4f6
mov qword [rsp + 0x38], rax
mov rax, qword [0x14020e3f8]
jmp 0x140012e29
test eax, eax
jne 0x140012e73
lea rax, str.failed_to_expand_path
mov r9d, 0x4f9
mov qword [rsp + 0x38], rax
mov rax, qword [0x14020e360]
mov qword [rsp + 0x30], rax
lea r8, str.H5_expand_windows_env_vars
mov rax, qword [0x14020e1e0]
lea rdx, str.C:_srcosgeo4whdf5_srcH5system.c
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov rax, qword [0x14020e0d8]
mov qword [rsp + 0x20], rax
call fcn.140060100
mov rcx, rbx
or edi, 0xffffffff
call fcn.140060c20
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rdi]
call fcn.140060c20
mov qword [rdi], rbx
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14005d9a0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x48
cmp byte [0x140212df8], 0
jne 0x14005d9ba
cmp byte [0x140211255], 0
jne 0x14005da74
lea rcx, str.HDF5_PLUGIN_PRELOAD
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14005da00
movzx ecx, byte [rax]
cmp cl, byte [0x1401c4464]
jne 0x14005da00
movzx ecx, byte [rax + 1]
cmp cl, byte [0x1401c4465]
jne 0x14005da00
movzx eax, byte [rax + 2]
cmp al, byte [0x1401c4466]
jne 0x14005da00
mov dword [0x14020e0cc], 0
mov byte [0x14020e0d0], 0
call fcn.140131a80
test eax, eax
jns 0x14005da5c
lea rax, str.cant_create_plugin_cache
mov r9d, 0xa7
mov qword [rsp + 0x38], rax
lea r8, str.H5PL__init_package
mov rax, qword [0x14020e398]
lea rdx, str.C:_srcosgeo4whdf5_srcH5PLint.c
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov rax, qword [0x14020e1e0]
mov qword [rsp + 0x28], rax
mov rax, qword [0x14020e0d8]
mov qword [rsp + 0x20], rax
call fcn.140060100
or eax, 0xffffffff
add rsp, 0x48
ret
call fcn.140131e50
test eax, eax
jns 0x14005da74
lea rax, str.cant_create_plugin_search_path_table
mov r9d, 0xab
jmp 0x14005da16
xor eax, eax
add rsp, 0x48
ret
Function at 0x1400e1610
Capabilities:
Encode data using xor

Disassembly:
cmp byte [0x140211581], 0
mov r10, rcx
mov r8d, dword [rcx + 0x9c4]
jne 0x1400e162f
cmp byte [0x140211255], 0
je 0x1400e162f
xor eax, eax
ret
cmp r8d, 1
jbe 0x1400e1684
mov rax, qword [rcx + 0xd08]
lea r9d, [r8 - 1]
cmp qword [rcx + r9*8 + 0xe90], rax
ja 0x1400e1684
mov rax, qword [rdx]
cmp r8d, 1
jbe 0x1400e168c
add rdx, 8
lea r8, [rcx + 0x1094]
nop
movzx ecx, byte [r8]
lea r8, [r8 + 4]
shl rax, cl
xor rax, qword [rdx]
lea rdx, [rdx + 8]
sub r9, 1
jne 0x1400e1660
xor edx, edx
div qword [r10 + 0xd08]
mov eax, edx
ret
lea eax, [r8 - 1]
mov rax, qword [rdx + rax*8]
xor edx, edx
div qword [r10 + 0xd08]
mov eax, edx
ret

Function at 0x140105240
Capabilities:
Hash data using djb2

Disassembly:
movsx edx, byte [rcx]
mov eax, 0x1505
test edx, edx
je 0x140105260
nop dword [rax]
imul eax, eax, 0x21
lea rcx, [rcx + 1]
add eax, edx
movsx edx, byte [rcx]
test edx, edx
jne 0x140105250
ret
Function at 0x140131e50
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x50
xor edi, edi
cmp byte [0x140212df8], dil
jne 0x140131e6e
cmp byte [0x140211255], dil
jne 0x140131ff0
mov ecx, 0x80
mov qword [rsp + 0x68], rsi
mov dword [0x1402132a0], edi
mov dword [0x14020f978], 0x10
call fcn.140060ae0
mov qword [0x140213298], rax
test rax, rax
jne 0x140131eec
lea rax, str.cant_allocate_memory_for_path_table
mov r9d, 0xfd
mov qword [rsp + 0x38], rax
lea r8, str.H5PL__create_path_table
mov rax, qword [0x14020e400]
lea rdx, str.C:_srcosgeo4whdf5_srcH5PLpath.c
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov rax, qword [0x14020e1e0]
mov qword [rsp + 0x28], rax
mov rax, qword [0x14020e0d8]
mov qword [rsp + 0x20], rax
call fcn.140060100
or edi, 0xffffffff
jmp 0x140131fc9
lea rcx, str.HDF5_PLUGIN_PATH
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea rcx, str._ALLUSERSPROFILE_hdf5libplugin
test rax, rax
je 0x140131f08
mov rcx, rax
call fcn.140060b50
mov rsi, rax
test rax, rax
jne 0x140131f24
lea rax, str.cant_allocate_memory_for_path_copy
mov r9d, 0x109
jmp 0x140131ea6
lea rdx, [0x1401b5268]
mov qword [rsp + 0x60], rbx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
mov rbx, rax
test rax, rax
je 0x140131fb7
mov rcx, rbx
call fcn.140131d30
xor ecx, ecx
test eax, eax
js 0x140131f66
lea rdx, [0x1401b5268]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
mov rbx, rax
test rax, rax
jne 0x140131f41
jmp 0x140131fb7
mov qword [rsp + 0x40], rbx
lea rax, str.cant_insert_path:__s
mov qword [rsp + 0x38], rax
lea r8, str.H5PL__create_path_table
mov rax, qword [0x14020e400]
lea rdx, str.C:_srcosgeo4whdf5_srcH5PLpath.c
mov qword [rsp + 0x30], rax
mov r9d, 0x112
mov rax, qword [0x14020e1e0]
mov qword [rsp + 0x28], rax
mov rax, qword [0x14020e0d8]
mov qword [rsp + 0x20], rax
call fcn.140060100
or edi, 0xffffffff
mov rcx, rsi
call fcn.140060c20
mov rbx, qword [rsp + 0x60]
cmp edi, 0xffffffff
jne 0x140131feb
mov rcx, qword [0x140213298]
test rcx, rcx
je 0x140131fe1
call fcn.140060c20
mov qword [0x140213298], rax
mov dword [0x14020f978], 0
mov rsi, qword [rsp + 0x68]
mov eax, edi
add rsp, 0x50
pop rdi
ret
Function at 0x14147d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14147d1df
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 0x14147d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14147d06f
add dl, dl
jne 0x14147d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14147d0f6
xor eax, eax
add dl, dl
jne 0x14147d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14147d1ad
add dl, dl
jne 0x14147d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14147d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14147d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14147d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14147d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14147d07e
mov eax, 1
add dl, dl
jne 0x14147d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14147d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14147d0fb
sub eax, ebx
mov ebx, 1
jne 0x14147d14c
mov ecx, 1
add dl, dl
jne 0x14147d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14147d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14147d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14147d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14147d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14147d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14147d15d
cmp eax, 0x7d00
jae 0x14147d19b
cmp eax, 0x500
jb 0x14147d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14147d07e
cmp eax, 0x7f
ja 0x14147d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14147d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14147d1d2
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 0x14147d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400047b0
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 0x1400047de
xor eax, eax
jmp 0x1400048c4
cmp qword [rcx + 0x68], 0
je 0x1400047ef
call fcn.1400048e0
jmp 0x1400048c4
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140004806
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004808
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000483a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140007690
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 0x1400048be
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140004871
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 0x14000489a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000dc40
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400048be
cmp rsi, rbx
ja 0x140004878
test rsi, rsi
je 0x1400048be
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14000dc40
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 0x140006564
Capabilities:
Parse pe header

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

Function at 0x140010858
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140010654
Function at 0x14001548c
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.1400060e0
sub rsp, rax
mov rax, qword [0x140030020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001406c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400154db
mov rax, rbp
jmp 0x1400155e3
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 + 0x323a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400165ac
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x323a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400155df
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 0x1400155df
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400165ac
test rax, rax
js 0x1400155df
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400155df
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400155d1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400155d1
cmp byte [rcx], 0xd
jne 0x1400155b7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400155c6
cmp byte [rcx + 1], 0xa
jne 0x1400155c6
inc rcx
jmp 0x1400155c6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x30410]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140015599
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400155e3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400057e0
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 0x140015804
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001581a
mov al, 1
jmp 0x14001587a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001582b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140015878
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001a680
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140015878
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140015878
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140015878
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001587a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001594c
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, [0x1400323a0]
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 0x1400159a3
cmp word [rdx], r13w
jne 0x1400159a3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400159a8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140015acd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140015aee
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400159e1
mov rdx, r9
mov word [rbx], cx
jmp 0x140015a08
cmp r9, r8
jae 0x140015a18
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 0x1400159c2
jmp 0x140015acd
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 0x140015ac2
cmp dword [rsp + 0x80], esi
je 0x140015ac2
lea r8, [0x1400323a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140015a9a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140015a6a
mov word [rbx], r13w
jmp 0x140015aca
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 0x140015a77
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140015aca
cmp word [rsp + 0x70], r13w
jne 0x140015aa7
cmp rbx, r14
je 0x140015a64
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400165b4
cmp word [rsp + 0x70], r13w
je 0x140015acd
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, [0x1400323a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140015ac7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140015acd
Function at 0x140019e18
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 0x140019e48
xor eax, eax
jmp 0x140019f0b
mov rbp, rbx
cmp word [rax], si
je 0x140019e6d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140019e54
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140019e50
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.140018418
movsxd r14, eax
test eax, eax
jne 0x140019eab
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140019e41
mov rcx, r14
call fcn.140016818
mov rdi, rax
test rax, rax
jne 0x140019ec4
xor ecx, ecx
call fcn.1400128dc
jmp 0x140019ea0
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.140018418
test eax, eax
jne 0x140019ef5
mov rcx, rdi
call fcn.1400128dc
jmp 0x140019eff
xor ecx, ecx
call fcn.1400128dc
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 0x14001cbd4
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.140012edc
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 0x14001cc75
cmp ebx, dword [rsp + 0x30]
je 0x14001cc6e
test esi, esi
je 0x14001cc6e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001cc49
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001cc56
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001cc33
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001cc5a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001cc77
mov eax, 1
jmp 0x14001cc77
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret