joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003cac
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140003d2a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140003d21
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140003d21
mov rax, qword [rbp - 8]
jmp 0x140003d3f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140003cf4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400052d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov ecx, 0x7fff
call fcn.140050af0
mov rbx, rax
test rax, rax
jne 0x140005348
lea rax, str.cant_allocate_memory_for_expanded_path
mov r9d, 0x57a
mov qword [rsp + 0x38], rax
lea r8, str.H5_expand_windows_env_vars
mov rax, qword [0x14022b5e0]
lea rdx, str.C:cihdf5_1655187604574work_srcH5system.c
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov rax, qword [0x14022b4b0]
mov qword [rsp + 0x28], rax
mov rax, qword [0x14022b488]
mov qword [rsp + 0x20], rax
call fcn.140050180
lea eax, [rbx - 1]
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 0x14000537c
lea rax, str.expanded_path_is_too_long
mov r9d, 0x57e
mov qword [rsp + 0x38], rax
mov rax, qword [0x14022b5d8]
jmp 0x140005399
test eax, eax
jne 0x1400053e3
lea rax, str.failed_to_expand_path
mov r9d, 0x581
mov qword [rsp + 0x38], rax
mov rax, qword [0x14022b670]
mov qword [rsp + 0x30], rax
lea r8, str.H5_expand_windows_env_vars
mov rax, qword [0x14022b4b0]
lea rdx, str.C:cihdf5_1655187604574work_srcH5system.c
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov rax, qword [0x14022b488]
mov qword [rsp + 0x20], rax
call fcn.140050180
mov rcx, rbx
call fcn.140050c40
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rdi]
call fcn.140050c40
mov qword [rdi], rbx
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140022b20
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x48
xor edx, edx
lea rcx, [0x140231500]
mov r8d, 0x138
call sub.VCRUNTIME140.dll_memset
cmp byte [0x14022ea5f], 0
lea rax, [0x1401c55e0]
mov qword [0x140231510], rax
lea rax, [0x1401c55e4]
mov qword [0x140231520], rax
lea rax, str.bdefgioptvz
mov qword [0x140231530], rax
lea rax, [0x1401c55ec]
mov qword [0x140231540], rax
lea rax, [0x1401c55f0]
mov qword [0x140231550], rax
lea rax, [0x1401c55f4]
mov qword [0x140231560], rax
lea rax, [0x1401c55f8]
mov qword [0x140231570], rax
lea rax, [0x1401c55fc]
mov qword [0x140231580], rax
lea rax, [0x1401c5600]
mov qword [0x140231590], rax
lea rax, [0x1401c5604]
mov qword [0x1402315a0], rax
lea rax, [0x1401c5608]
mov qword [0x1402315b0], rax
lea rax, [0x1401c560c]
mov qword [0x1402315c0], rax
lea rax, [0x1401c5610]
mov qword [0x1402315d0], rax
lea rax, [0x1401c5614]
mov qword [0x1402315e0], rax
lea rax, [0x1401bdfc8]
mov qword [0x1402315f0], rax
lea rax, [0x1401c5618]
mov qword [0x140231600], rax
lea rax, [0x1401c561c]
mov qword [0x140231610], rax
lea rax, [0x1401c5620]
mov qword [0x140231620], rax
jne 0x140022c50
lea rcx, [fcn.140022d80]
call fcn.1401b8f80
mov byte [0x14022ea5f], 1
call fcn.140016030
test eax, eax
jns 0x140022cae
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 [0x14022b658]
lea rdx, str.C:cihdf5_1655187604574work_srcH5.c
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov rax, qword [0x14022b490]
mov qword [rsp + 0x28], rax
mov rax, qword [0x14022b488]
mov qword [rsp + 0x20], rax
call fcn.140050180
mov eax, 0xffffffff
add rsp, 0x48
ret
call fcn.14003fca0
test eax, eax
jns 0x140022cc6
lea rax, str.unable_to_initialize_property_list_interface
mov r9d, 0xd9
jmp 0x140022c66
call fcn.14000e0f0
test eax, eax
jns 0x140022cde
lea rax, str.unable_to_initialize_datatype_interface
mov r9d, 0xdb
jmp 0x140022c66
call fcn.140065560
test eax, eax
jns 0x140022cf9
lea rax, str.unable_to_initialize_dataset_interface
mov r9d, 0xdd
jmp 0x140022c66
call fcn.140055040
test eax, eax
jns 0x140022d14
lea rax, str.unable_to_initialize_metadata_caching_interface
mov r9d, 0xdf
jmp 0x140022c66
call fcn.140041a30
test eax, eax
jns 0x140022d2f
lea rax, str.unable_to_initialize_link_interface
mov r9d, 0xe1
jmp 0x140022c66
call fcn.1400fe2d0
test eax, eax
jns 0x140022d4a
lea rax, str.unable_to_initialize_FS_interface
mov r9d, 0xe3
jmp 0x140022c66
lea rcx, str._all
call fcn.140022750
lea rcx, str.HDF5_DEBUG
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rcx, rax
call fcn.140022750
xor eax, eax
add rsp, 0x48
ret
Function at 0x1400628a0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x48
cmp byte [0x14022ea51], 0
jne 0x1400628bd
cmp byte [0x14022ea5d], 0
je 0x1400628bd
xor eax, eax
add rsp, 0x48
ret
lea rcx, [0x1401d1680]
call fcn.140069580
test eax, eax
jns 0x140062922
lea rax, str.unable_to_initialize_interface
mov r9d, 0xa9
mov qword [rsp + 0x38], rax
lea r8, str.H5D__init_package
mov rax, qword [0x14022b658]
lea rdx, str.C:cihdf5_1655187604574work_srcH5Dint.c
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov rax, qword [0x14022b530]
mov qword [rsp + 0x28], rax
mov rax, qword [0x14022b488]
mov qword [rsp + 0x20], rax
call fcn.140050180
mov eax, 0xffffffff
add rsp, 0x48
ret
xor edx, edx
mov qword [rsp + 0x40], rbx
mov r8d, 0x1240
lea rcx, [0x14022ec60]
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [0x14022b2e0]
call fcn.1400692e0
mov rbx, rax
test rax, rax
jne 0x140062979
lea rax, str.cant_get_default_dataset_creation_property_list
mov r9d, 0xb2
mov qword [rsp + 0x38], rax
mov rax, qword [0x14022b948]
mov qword [rsp + 0x30], rax
mov rax, qword [0x14022b530]
jmp 0x140062a33
lea r8, [0x14022ed58]
mov rcx, rbx
lea rdx, str.layout
call fcn.14003fb70
test eax, eax
jns 0x1400629a2
lea rax, str.cant_retrieve_layout
mov r9d, 0xb6
jmp 0x140062a1b
lea r8, [0x14022ed38]
mov rcx, rbx
lea rdx, [0x1401c402c]
call fcn.14003fb70
test eax, eax
jns 0x1400629cb
lea rax, str.cant_retrieve_external_file_list
mov r9d, 0xba
jmp 0x140062a1b
lea r8, [0x14022ec98]
mov rcx, rbx
lea rdx, str.fill_value
call fcn.14003fb70
test eax, eax
jns 0x1400629f4
lea rax, str.cant_retrieve_fill_value
mov r9d, 0xbc
jmp 0x140062a1b
lea r8, [0x14022ecf0]
mov rcx, rbx
lea rdx, str.pline
call fcn.14003fb70
test eax, eax
jns 0x140062a68
lea rax, str.cant_retrieve_pipeline_filter
mov r9d, 0xbe
mov qword [rsp + 0x38], rax
mov rax, qword [0x14022b670]
mov qword [rsp + 0x30], rax
mov rax, qword [0x14022b548]
mov qword [rsp + 0x28], rax
lea r8, str.H5D__init_package
mov rax, qword [0x14022b488]
lea rdx, str.C:cihdf5_1655187604574work_srcH5Dint.c
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.140050180
mov rbx, qword [rsp + 0x40]
mov eax, 0xffffffff
add rsp, 0x48
ret
lea rcx, str.HDF5_VDS_PREFIX
mov byte [0x14022fea0], 1
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea rcx, str.HDF5_EXTFILE_PREFIX
mov qword [0x14022feb0], rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, qword [rsp + 0x40]
mov qword [0x14022fea8], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x1400d20b0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [0x14022ea51], 0
mov r10, rcx
jne 0x1400d20c8
cmp byte [0x14022ea5d], 0
je 0x1400d20c8
xor eax, eax
ret
mov ecx, dword [rcx + 0x9cc]
mov rax, qword [rdx]
cmp ecx, 1
jbe 0x1400d2108
add rdx, 8
lea r8, [r10 + 0x109c]
lea r9d, [rcx - 1]
nop word [rax + rax]
movzx ecx, byte [r8]
lea r8, [r8 + 4]
shl rax, cl
xor rax, qword [rdx]
lea rdx, [rdx + 8]
sub r9, 1
jne 0x1400d20f0
xor edx, edx
div qword [r10 + 0xd10]
mov eax, edx
ret
Function at 0x140117d10
Capabilities:
Hash data using djb2

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

Disassembly:
push rdi
sub rsp, 0x50
xor edi, edi
cmp byte [0x140230358], dil
jne 0x14018682e
cmp byte [0x14022ea5d], dil
jne 0x140186a1f
mov ecx, 0x80
mov qword [rsp + 0x68], rsi
mov dword [0x1402307b0], edi
mov dword [0x14022db90], 0x10
call fcn.140050af0
mov qword [0x1402307a8], rax
test rax, rax
jne 0x1401868ae
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 [0x14022b5e0]
lea rdx, str.C:cihdf5_1655187604574work_srcH5PLpath.c
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov rax, qword [0x14022b4b0]
mov qword [rsp + 0x28], rax
mov rax, qword [0x14022b488]
mov qword [rsp + 0x20], rax
call fcn.140050180
mov edi, 0xffffffff
jmp 0x1401869f8
lea rcx, str.HDF5_PLUGIN_PATH
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
lea rcx, str._ALLUSERSPROFILE_hdf5libplugin
cmovne rcx, rax
call fcn.140050b60
mov rsi, rax
test rax, rax
jne 0x1401868e5
lea rax, str.cant_allocate_memory_for_path_copy
mov r9d, 0x109
jmp 0x140186866
lea rdx, [0x1401bddd0]
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 0x1401869e6
cmp byte [0x140230358], dil
jne 0x140186918
cmp byte [0x14022ea5d], dil
jne 0x14018692a
mov edx, dword [0x1402307b0]
mov rcx, rbx
call fcn.140186df0
test eax, eax
js 0x140186946
lea rdx, [0x1401bddd0]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
mov rbx, rax
test rax, rax
jne 0x140186906
jmp 0x1401869e6
lea rax, str.unable_to_append_search_path
mov r9d, 0x195
mov qword [rsp + 0x38], rax
lea r8, str.H5PL__append_path
mov rax, qword [0x14022b998]
lea rdx, str.C:cihdf5_1655187604574work_srcH5PLpath.c
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov rax, qword [0x14022b4b0]
mov qword [rsp + 0x28], rax
mov rax, qword [0x14022b488]
mov qword [rsp + 0x20], rax
call fcn.140050180
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 [0x14022b5e0]
lea rdx, str.C:cihdf5_1655187604574work_srcH5PLpath.c
mov qword [rsp + 0x30], rax
mov r9d, 0x112
mov rax, qword [0x14022b4b0]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov rax, qword [0x14022b488]
mov qword [rsp + 0x20], rax
call fcn.140050180
mov edi, 0xffffffff
mov rcx, rsi
call fcn.140050c40
mov rbx, qword [rsp + 0x60]
cmp edi, 0xffffffff
jne 0x140186a1a
mov rcx, qword [0x1402307a8]
test rcx, rcx
je 0x140186a10
call fcn.140050c40
mov qword [0x1402307a8], rax
mov dword [0x14022db90], 0
mov rsi, qword [rsp + 0x68]
mov eax, edi
add rsp, 0x50
pop rdi
ret
Function at 0x140002050
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rdi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov r9, rcx
movabs rbp, 0xc2b2ae3d27d4eb4f
movabs rsi, 0x9e3779b185ebca87
movabs r14, 0x27d4eb2f165667c5
movabs r15, 0x7a1435883d4d519d
cmp rdi, 0x20
jb 0x140002149
mov r8, qword [r9 + 0x18]
mov rdx, qword [rcx + 8]
mov rax, r8
mov r9, qword [r9 + 0x20]
mov rcx, qword [rcx + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rcx
rol rax, 7
add r10, rax
mov rax, rdx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rdx, rbp
imul rcx, rbp
imul r8, rbp
imul r9, rbp
rol rdx, 0x1f
imul rdx, rsi
rol rcx, 0x1f
xor r10, rdx
rol r8, 0x1f
imul r10, rsi
imul rcx, rsi
imul r8, rsi
sub r10, r15
rol r9, 0x1f
xor r10, rcx
imul r10, rsi
imul r9, rsi
sub r10, r15
xor r10, r8
imul r10, rsi
sub r10, r15
xor r10, r9
imul r10, rsi
add rax, r10
add rax, rdi
jmp 0x140002151
lea rax, [rdi + r14]
add rax, qword [rcx + 0x18]
lea rdx, [r11 + 8]
cmp rdx, rbx
ja 0x14000218a
nop word [rax + rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, rbp
add r11, 8
rol rcx, 0x1f
imul rcx, rsi
xor rax, rcx
rol rax, 0x1b
imul rax, rsi
sub rax, r15
cmp rdx, rbx
jbe 0x140002160
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400021b5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rsi
xor rax, rcx
rol rax, 0x17
imul rax, rbp
add rax, r8
cmp r11, rbx
jae 0x1400021db
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r14
xor rax, rcx
rol rax, 0xb
imul rax, rsi
cmp r11, rbx
jb 0x1400021c0
mov rbx, qword [rsp + 0x18]
mov rcx, rax
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
shr rcx, 0x21
xor rcx, rax
imul rcx, rbp
mov rbp, qword [rsp + 0x20]
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
ret

Function at 0x14000a3d0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x14000a475
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14000a42d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14000a420
cmp rcx, 1
jb 0x14000a4a6
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14000a443
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1400102f0
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14000a410
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000b940
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14000ffb4
int3
Function at 0x14000a530
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a575
xor al, al
jmp 0x14000a5c2
cmp word [rbx], 0
je 0x14000a58d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a580
cmp word [rsp + 0x30], 0
je 0x14000a5bb
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a5e3
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a5a0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b940
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000ffb4
int3
Function at 0x14000aec0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001f930
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002fdd4]
lea rsi, [0x140032e10]
mov rdi, rcx
test r11d, r11d
jne 0x14000af39
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000a5f0
test al, al
je 0x14000b019
lea rcx, [rsp + 0x20]
call fcn.1400145bc
movsxd r11, dword [0x14002fdd4]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002fdd4], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000af74
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000af64
add rax, 2
test ecx, ecx
jne 0x14000af50
test edx, edx
je 0x14000af97
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000af44
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000af80
cmp rax, 2
jne 0x14000af9b
cmp word [rdi + 2], 0x3a
jne 0x14000af9b
mov al, 1
jmp 0x14000aff8
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000afc6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000afed
mov bl, 1
cmp dword [0x14002fdd4], 0x400
jge 0x14000afed
mov rcx, rdi
call fcn.1400145bc
movsxd rdx, dword [0x14002fdd4]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002fdd4], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b940
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000ad60
int3
Function at 0x14000b140
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002fdd8]
test rcx, rcx
je 0x14000b17b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b16e
mov rcx, qword [0x14002fdd8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002fdd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002fde8], 0
je 0x14000b26e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x1400298f0]
mov qword [rsp + 0x80], rsi
lea rsi, [0x140030610]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b24f
test al, 0x10
je 0x14000b24f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b1f5
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000c234
Capabilities:
Parse pe header

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

Function at 0x14000ffa8
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 0x14000fe13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fe13
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fe13
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fe13
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fe13
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fe13
cmp dword [rcx + 0xf8], 0
je 0x14000fe13
mov ecx, ebx
call fcn.14000fec4
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.14000fca0
nop
cmp dword [rbp + 0x20], 0
je 0x14000fe61
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000fe6c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000fda4
Function at 0x1400193b8
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 0x14001943f
mov rsi, rbx
cmp word [rax], bp
je 0x1400193fe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400193e8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400193e4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016be8
mov rdi, rax
test rax, rax
je 0x14001942c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001ffd0
mov rbp, rdi
xor ecx, ecx
call fcn.140015cf8
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 0x14001b5ac
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001b5c2
mov al, 1
jmp 0x14001b622
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001b5d3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001b620
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019700
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b620
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001b620
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001b620
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001b622
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001f840
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001f868
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001f868
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret