joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001d50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rax, dword [0x14022c1f4]
mov ebx, ecx
test eax, eax
jle 0x140001d84
lea rcx, [0x140224010]
mov edx, ebx
mov r9d, dword [rcx + rax*4]
mov ecx, eax
and r9d, dword [0x14022c1f0]
shl edx, cl
or r9d, edx
jmp 0x140001d87
mov r9d, ebx
mov edx, dword [0x14022c1f8]
lea rdi, [0x140233770]
mov r8d, dword [0x140233764]
add eax, edx
mov dword [0x14022c1f0], r9d
mov dword [0x14022c1f4], eax
cmp eax, 8
jl 0x140001e3e
mov ecx, r9d
nop word [rax + rax]
movsxd rdx, r8d
inc r8d
mov dword [0x140233764], r8d
mov byte [rdx + rdi], cl
cmp r8d, 0xfe
jl 0x140001e1c
mov rdx, qword [0x140233758]
mov ecx, r8d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
movsxd r8, dword [0x140233764]
mov edx, 1
mov r9, qword [0x140233758]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9d, dword [0x14022c1f0]
xor r8d, r8d
mov eax, dword [0x14022c1f4]
mov dword [0x140233764], r8d
shr r9d, 8
sub eax, 8
mov dword [0x14022c1f0], r9d
mov ecx, r9d
mov dword [0x14022c1f4], eax
cmp eax, 8
jge 0x140001dc0
mov edx, dword [0x14022c1f8]
mov ecx, dword [0x14022c1fc]
cmp dword [0x14023102c], ecx
jg 0x140001e57
cmp dword [0x140233748], 0
je 0x140001e89
jmp 0x140001e64
cmp dword [0x140233748], 0
je 0x140001f68
mov ecx, dword [0x140233750]
mov dword [0x14022c1f8], ecx
mov dword [0x140233748], 0
mov edx, 1
shl edx, cl
dec edx
mov dword [0x14022c1fc], edx
cmp ebx, dword [0x140233760]
jne 0x140001f5d
test eax, eax
jle 0x140001f15
nop dword [rax]
movsxd rcx, r8d
inc r8d
mov dword [0x140233764], r8d
mov byte [rcx + rdi], r9b
cmp r8d, 0xfe
jl 0x140001efd
mov rdx, qword [0x140233758]
mov ecx, r8d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
movsxd r8, dword [0x140233764]
mov edx, 1
mov r9, qword [0x140233758]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9d, dword [0x14022c1f0]
xor r8d, r8d
mov eax, dword [0x14022c1f4]
mov dword [0x140233764], r8d
shr r9d, 8
sub eax, 8
mov dword [0x14022c1f0], r9d
mov dword [0x14022c1f4], eax
test eax, eax
jg 0x140001ea0
test r8d, r8d
jle 0x140001f50
mov rdx, qword [0x140233758]
mov ecx, r8d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
movsxd r8, dword [0x140233764]
mov edx, 1
mov r9, qword [0x140233758]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov dword [0x140233764], 0
mov rcx, qword [0x140233758]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea ecx, [rdx + 1]
cmp ecx, dword [section..data]
mov dword [0x14022c1f8], ecx
jne 0x140001e7a
mov ecx, dword [0x140224004]
mov dword [0x14022c1fc], ecx
jmp 0x140001e89
Function at 0x140002bc0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x48
xor edx, edx
lea rcx, [0x140236780]
mov r8d, 0x138
call sub.VCRUNTIME140.dll_memset
cmp byte [0x1402338f3], 0
lea rax, [0x1401ba120]
mov qword [0x140236790], rax
lea rax, [0x1401ba124]
mov qword [0x1402367a0], rax
lea rax, str.bdefgiopstvz
mov qword [0x1402367b0], rax
lea rax, [0x1401ba12c]
mov qword [0x1402367c0], rax
lea rax, [0x1401ba130]
mov qword [0x1402367d0], rax
lea rax, [0x1401ba134]
mov qword [0x1402367e0], rax
lea rax, [0x1401ba138]
mov qword [0x1402367f0], rax
lea rax, [0x1401ba13c]
mov qword [0x140236800], rax
lea rax, [0x1401ba140]
mov qword [0x140236810], rax
lea rax, [0x1401ba144]
mov qword [0x140236820], rax
lea rax, [0x1401ba148]
mov qword [0x140236830], rax
lea rax, [0x1401ba14c]
mov qword [0x140236840], rax
lea rax, [0x1401ba150]
mov qword [0x140236850], rax
lea rax, [0x1401ba154]
mov qword [0x140236860], rax
lea rax, [0x1401ba158]
mov qword [0x140236870], rax
lea rax, [0x1401ba15c]
mov qword [0x140236880], rax
lea rax, [0x1401ba160]
mov qword [0x140236890], rax
lea rax, [0x1401ba164]
mov qword [0x1402368a0], rax
jne 0x140002cf0
lea rcx, [0x140002e20]
call fcn.1401b1be4
mov byte [0x1402338f3], 1
call fcn.1400084d0
test eax, eax
jns 0x140002d4e
lea rax, [0x1401ba168]
mov r9d, 0xd7
mov qword [rsp + 0x38], rax
lea r8, str.H5_init_library
mov rax, qword [0x140226bb8]
lea rdx, str.C:cihdf5_1655187604574work_srcH5.c
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov rax, qword [0x1402269f0]
mov qword [rsp + 0x28], rax
mov rax, qword [0x1402269e8]
mov qword [rsp + 0x20], rax
call fcn.14004a260
mov eax, 0xffffffff
add rsp, 0x48
ret
call fcn.1400292f0
test eax, eax
jns 0x140002d66
lea rax, str.unable_to_initialize_property_list_interface
mov r9d, 0xd9
jmp 0x140002d06
call fcn.140012500
test eax, eax
jns 0x140002d7e
lea rax, str.unable_to_initialize_datatype_interface
mov r9d, 0xdb
jmp 0x140002d06
call fcn.140034eb0
test eax, eax
jns 0x140002d99
lea rax, str.unable_to_initialize_dataset_interface
mov r9d, 0xdd
jmp 0x140002d06
call fcn.14002f060
test eax, eax
jns 0x140002db4
lea rax, str.unable_to_initialize_metadata_caching_interface
mov r9d, 0xdf
jmp 0x140002d06
call fcn.14001d310
test eax, eax
jns 0x140002dcf
lea rax, str.unable_to_initialize_link_interface
mov r9d, 0xe1
jmp 0x140002d06
call fcn.14004acd0
test eax, eax
jns 0x140002dea
lea rax, str.unable_to_initialize_FS_interface
mov r9d, 0xe3
jmp 0x140002d06
lea rcx, str._all
call fcn.1400027f0
lea rcx, str.HDF5_DEBUG
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rcx, rax
call fcn.1400027f0
xor eax, eax
add rsp, 0x48
ret
Function at 0x140024c30
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov ecx, 0x7fff
call fcn.14004ad00
mov rbx, rax
test rax, rax
jne 0x140024ca8
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 [0x140226b40]
lea rdx, str.C:cihdf5_1655187604574work_srcH5system.c
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov rax, qword [0x140226a10]
mov qword [rsp + 0x28], rax
mov rax, qword [0x1402269e8]
mov qword [rsp + 0x20], rax
call fcn.14004a260
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 0x140024cdc
lea rax, str.expanded_path_is_too_long
mov r9d, 0x57e
mov qword [rsp + 0x38], rax
mov rax, qword [0x140226b38]
jmp 0x140024cf9
test eax, eax
jne 0x140024d43
lea rax, str.failed_to_expand_path
mov r9d, 0x581
mov qword [rsp + 0x38], rax
mov rax, qword [0x140226bd0]
mov qword [rsp + 0x30], rax
lea r8, str.H5_expand_windows_env_vars
mov rax, qword [0x140226a10]
lea rdx, str.C:cihdf5_1655187604574work_srcH5system.c
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov rax, qword [0x1402269e8]
mov qword [rsp + 0x20], rax
call fcn.14004a260
mov rcx, rbx
call fcn.14004ae50
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rdi]
call fcn.14004ae50
mov qword [rdi], rbx
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140032940
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x48
cmp byte [0x140233b03], 0
jne 0x14003295d
cmp byte [0x1402338f1], 0
je 0x14003295d
xor eax, eax
add rsp, 0x48
ret
lea rcx, [0x1401c6890]
call fcn.14001afb0
test eax, eax
jns 0x1400329c2
lea rax, str.unable_to_initialize_interface
mov r9d, 0xa9
mov qword [rsp + 0x38], rax
lea r8, str.H5D__init_package
mov rax, qword [0x140226bb8]
lea rdx, str.C:cihdf5_1655187604574work_srcH5Dint.c
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov rax, qword [0x140226a90]
mov qword [rsp + 0x28], rax
mov rax, qword [0x1402269e8]
mov qword [rsp + 0x20], rax
call fcn.14004a260
mov eax, 0xffffffff
add rsp, 0x48
ret
xor edx, edx
mov qword [rsp + 0x40], rbx
mov r8d, 0x1240
lea rcx, [0x1402341f0]
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [0x140226730]
call fcn.14001ad10
mov rbx, rax
test rax, rax
jne 0x140032a19
lea rax, str.cant_get_default_dataset_creation_property_list
mov r9d, 0xb2
mov qword [rsp + 0x38], rax
mov rax, qword [0x140226ea8]
mov qword [rsp + 0x30], rax
mov rax, qword [0x140226a90]
jmp 0x140032ad3
lea r8, [0x1402342e8]
mov rcx, rbx
lea rdx, str.layout
call fcn.1400291c0
test eax, eax
jns 0x140032a42
lea rax, str.cant_retrieve_layout
mov r9d, 0xb6
jmp 0x140032abb
lea r8, [0x1402342c8]
mov rcx, rbx
lea rdx, [0x1401c6ae8]
call fcn.1400291c0
test eax, eax
jns 0x140032a6b
lea rax, str.cant_retrieve_external_file_list
mov r9d, 0xba
jmp 0x140032abb
lea r8, [0x140234228]
mov rcx, rbx
lea rdx, str.fill_value
call fcn.1400291c0
test eax, eax
jns 0x140032a94
lea rax, str.cant_retrieve_fill_value
mov r9d, 0xbc
jmp 0x140032abb
lea r8, [0x140234280]
mov rcx, rbx
lea rdx, str.pline
call fcn.1400291c0
test eax, eax
jns 0x140032b08
lea rax, str.cant_retrieve_pipeline_filter
mov r9d, 0xbe
mov qword [rsp + 0x38], rax
mov rax, qword [0x140226bd0]
mov qword [rsp + 0x30], rax
mov rax, qword [0x140226aa8]
mov qword [rsp + 0x28], rax
lea r8, str.H5D__init_package
mov rax, qword [0x1402269e8]
lea rdx, str.C:cihdf5_1655187604574work_srcH5Dint.c
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.14004a260
mov rbx, qword [rsp + 0x40]
mov eax, 0xffffffff
add rsp, 0x48
ret
lea rcx, str.HDF5_VDS_PREFIX
mov byte [0x140235430], 1
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea rcx, str.HDF5_EXTFILE_PREFIX
mov qword [0x140235440], rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, qword [rsp + 0x40]
mov qword [0x140235438], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x1400d3f30
Capabilities:
Encode data using xor

Disassembly:
cmp byte [0x140233b03], 0
mov r10, rcx
jne 0x1400d3f48
cmp byte [0x1402338f1], 0
je 0x1400d3f48
xor eax, eax
ret
mov ecx, dword [rcx + 0x9cc]
mov rax, qword [rdx]
cmp ecx, 1
jbe 0x1400d3f88
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 0x1400d3f70
xor edx, edx
div qword [r10 + 0xd10]
mov eax, edx
ret
Function at 0x14012f240
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x50
xor edi, edi
cmp byte [0x14023549a], dil
jne 0x14012f25e
cmp byte [0x1402338f1], dil
jne 0x14012f44f
mov ecx, 0x80
mov qword [rsp + 0x68], rsi
mov dword [0x140235570], edi
mov dword [0x14022a828], 0x10
call fcn.14004ad00
mov qword [0x140235568], rax
test rax, rax
jne 0x14012f2de
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 [0x140226b40]
lea rdx, str.C:cihdf5_1655187604574work_srcH5PLpath.c
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov rax, qword [0x140226a10]
mov qword [rsp + 0x28], rax
mov rax, qword [0x1402269e8]
mov qword [rsp + 0x20], rax
call fcn.14004a260
mov edi, 0xffffffff
jmp 0x14012f428
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.14004ad70
mov rsi, rax
test rax, rax
jne 0x14012f315
lea rax, str.cant_allocate_memory_for_path_copy
mov r9d, 0x109
jmp 0x14012f296
lea rdx, [0x1401ed494]
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 0x14012f416
cmp byte [0x14023549a], dil
jne 0x14012f348
cmp byte [0x1402338f1], dil
jne 0x14012f35a
mov edx, dword [0x140235570]
mov rcx, rbx
call fcn.14012f820
test eax, eax
js 0x14012f376
lea rdx, [0x1401ed494]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
mov rbx, rax
test rax, rax
jne 0x14012f336
jmp 0x14012f416
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 [0x140226ef8]
lea rdx, str.C:cihdf5_1655187604574work_srcH5PLpath.c
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov rax, qword [0x140226a10]
mov qword [rsp + 0x28], rax
mov rax, qword [0x1402269e8]
mov qword [rsp + 0x20], rax
call fcn.14004a260
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 [0x140226b40]
lea rdx, str.C:cihdf5_1655187604574work_srcH5PLpath.c
mov qword [rsp + 0x30], rax
mov r9d, 0x112
mov rax, qword [0x140226a10]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov rax, qword [0x1402269e8]
mov qword [rsp + 0x20], rax
call fcn.14004a260
mov edi, 0xffffffff
mov rcx, rsi
call fcn.14004ae50
mov rbx, qword [rsp + 0x60]
cmp edi, 0xffffffff
jne 0x14012f44a
mov rcx, qword [0x140235568]
test rcx, rcx
je 0x14012f440
call fcn.14004ae50
mov qword [0x140235568], rax
mov dword [0x14022a828], 0
mov rsi, qword [rsp + 0x68]
mov eax, edi
add rsp, 0x50
pop rdi
ret
Function at 0x140130860
Capabilities:
Hash data using djb2

Disassembly:
movsx edx, byte [rcx]
mov eax, 0x1505
test edx, edx
je 0x140130880
nop dword [rax]
imul eax, eax, 0x21
lea rcx, [rcx + 1]
add eax, edx
movsx edx, byte [rcx]
test edx, edx
jne 0x140130870
ret
Function at 0x1400040a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x140040a24], 0
lea rdi, [0x140040a20]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x140004178
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x1400040d0
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x1400041ae
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4]
sub r9d, 1
jne 0x140004190
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x1400041ef
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x1400041d3
cmp byte [r8], r9b
jne 0x1400041d3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rdi + rdx*4]
test r9b, r9b
jne 0x1400041c0
not eax
pop rdi
ret
Function at 0x1400043f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
test r8, r8
je 0x140004409
mov qword [r8], 0
lea rdx, [0x140035a68]
call fcn.140004200
mov rbx, rax
test rax, rax
jne 0x140004428
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400044e8
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x1400044e8
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400044e8
mov rax, qword [0x1400408e8]
mov rbp, rsi
test rax, rax
je 0x140004485
inc dword [rax + 0x3c8]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400044e8
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x1400044d5
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400408e8]
test rax, rax
je 0x1400044ca
dec dword [rax + 0x3c8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400044f1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x1400044e3
mov qword [rdi], rbp
mov rax, rsi
jmp 0x1400044f3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140013b40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push r15
sub rsp, 0x20
mov rdi, qword [0x1400408e8]
xor esi, esi
mov r15, rcx
mov dword [rdi + 0x2d9c], esi
test rcx, rcx
je 0x140013c5a
mov qword [rsp + 0x40], rbx
lea rbx, [rdi + 0x2da0]
mov dword [rdi + 0x2d9c], esi
mov ecx, dword [rbx + 4]
mov qword [rsp + 0x48], rbp
test ecx, ecx
jns 0x140013b9a
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.140014c20
mov dword [rbx], esi
cmp dword [rbx + 4], esi
jne 0x140013bae
mov edx, 8
mov rcx, rbx
call fcn.140014c20
movsxd rcx, dword [rbx]
mov ebp, esi
mov rax, qword [rbx + 8]
mov byte [rcx + rax], sil
inc dword [rbx]
cmp dword [rdi + 0x2db0], esi
jle 0x140013bfa
mov qword [rsp + 0x50], r14
mov r14, rsi
nop dword [rax]
mov r9, qword [rdi + 0x2db8]
mov r8, rbx
add r9, r14
mov rcx, rdi
mov rdx, r9
call qword [r9 + 0x20]
inc ebp
add r14, 0x30
cmp ebp, dword [rdi + 0x2db0]
jl 0x140013bd0
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
cmp qword [rbx + 8], rsi
je 0x140013c09
mov esi, dword [rbx]
dec esi
mov rax, qword [rdi + 0x2da8]
lea rdx, [0x140035a6c]
test rax, rax
movsxd rsi, esi
lea rdi, [0x1400408dd]
mov rcx, r15
cmovne rdi, rax
call fcn.140004200
mov rbx, rax
test rax, rax
je 0x140013c55
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
Function at 0x14001bcb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
push r13
push r14
sub rsp, 0xb8
mov r13, rcx
movsxd rax, r9d
xor ecx, ecx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0xe8], ecx
mov r14, rdx
test r9d, r9d
jle 0x14001bf12
mov qword [r11 + 8], rbx
lea rbx, [r8 + 0x20]
mov qword [r11 + 0x10], rbp
movzx ebp, byte [r13 + 0x24]
mov qword [r11 + 0x18], rsi
mov qword [r11 - 0x18], rdi
mov edi, pe_nt_image_headers64
mov qword [r11 - 0x20], r12
xor r12d, r12d
mov qword [r11 - 0x28], r15
movaps xmmword [r11 - 0x38], xmm6
movaps xmmword [r11 - 0x48], xmm7
xorps xmm7, xmm7
movaps xmmword [r11 - 0x58], xmm8
movzx r11d, byte [r13 + 0x20]
movss xmm8, dword [0x14003a090]
nop word [rax + rax]
movss xmm6, dword [rbx - 0x20]
comiss xmm6, xmm7
jbe 0x14001bd7a
movsxd r10, dword [r14 + 0x24]
mov r9, qword [r14 + 8]
movsx ecx, di
movzx eax, byte [r10 + r9 + 7]
movzx edx, byte [r10 + r9 + 6]
imul edx, ecx
movsx ecx, di
add dx, ax
movzx eax, byte [r10 + r9 + 5]
movsx r8d, dx
movzx edx, byte [r10 + r9 + 4]
imul edx, ecx
add ax, dx
cwde
sub eax, r8d
movd xmm0, eax
jmp 0x14001bd99
movsxd rdx, dword [r14 + 0x1c]
xorps xmm6, xmm8
mov rax, qword [r14 + 8]
movzx ecx, byte [rdx + rax + 0x12]
movzx eax, byte [rdx + rax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
xor edi, edi
mov byte [rbx], r11b
mov byte [rbx + 1], bpl
divss xmm6, xmm0
cmp dword [rbx - 0x10], edi
jle 0x14001beb0
mov r15, qword [rsp + 0xf0]
mov rax, r12
shl rax, 4
add r15, 6
xor esi, esi
add r15, rax
nop word [rax + rax]
mov rax, qword [rbx - 0x18]
test rax, rax
jne 0x14001bde0
mov edx, dword [rbx - 0x1c]
add edx, edi
jmp 0x14001bde3
mov edx, dword [rax + rsi]
mov eax, dword [r13 + 0x24]
xorps xmm3, xmm3
xorps xmm2, xmm2
mov rcx, r14
cvtsi2ss xmm3, rax
mov eax, dword [r13 + 0x20]
cvtsi2ss xmm2, rax
mulss xmm3, xmm6
mulss xmm2, xmm6
call fcn.140016df0
mov edx, eax
mov rcx, r14
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
movss dword [rsp + 0x28], xmm7
movss dword [rsp + 0x20], xmm7
call fcn.1400198d0
movzx ecx, word [r13 + 0x1c]
inc r12
movzx r11d, word [r13 + 0x20]
movzx eax, cx
sub ax, word [rsp + 0x50]
dec cx
movzx ebp, word [r13 + 0x24]
dec ax
add ax, r11w
inc edi
add ax, word [rsp + 0x54]
add rsi, 4
mov word [r15 - 2], ax
movzx eax, bp
sub ax, word [rsp + 0x58]
add ax, cx
mov ecx, dword [rsp + 0xe8]
add ax, word [rsp + 0x5c]
inc ecx
mov word [r15], ax
add r15, 0x10
mov dword [rsp + 0xe8], ecx
cmp edi, dword [rbx - 0x10]
jl 0x14001bdd0
jmp 0x14001beb7
mov ecx, dword [rsp + 0xe8]
add rbx, 0x28
mov edi, pe_nt_image_headers64
sub qword [rsp + 0x60], 1
jne 0x14001bd30
movaps xmm8, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x90]
mov r15, qword [rsp + 0xa0]
mov r12, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xe0]
mov rbp, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xd0]
mov eax, ecx
add rsp, 0xb8
pop r14
pop r13
ret
Function at 0x14001fc00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x14001fdb7
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov esi, r9d
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x14001fc96
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.14001f5d0
mov r8d, dword [rbx + 0x80]
mov r9d, esi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.14001ebe0
mov ecx, dword [rbx + 0x84]
test ecx, ecx
jns 0x14001fc87
mov eax, ecx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x80]
test eax, eax
cmovg edx, eax
call fcn.1400148c0
mov dword [rbx + 0x80], 0
jmp 0x14001fda3
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.14001da00
movzx edx, word [rbx + 0x48]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rdi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rdi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], esi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], esi
movsd xmm0, qword [rdi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], esi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], esi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x48], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret