joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005210
Capabilities:
Create directory
Query environment variable

Disassembly:
push rdi
mov eax, 0x4030
call fcn.140009a40
sub rsp, rax
mov rax, qword [0x140037018]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.1400068e0
mov rdi, rax
test rax, rax
jne 0x140005259
lea rcx, str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.140001c70
xor eax, eax
jmp 0x140005342
mov r8d, 0x1000
mov qword [rsp + 0x4048], rbx
lea rdx, [rsp + 0x2020]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rdi
mov ebx, eax
call fcn.14000c9b4
test ebx, ebx
jne 0x140005299
lea rcx, str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.140001c70
xor eax, eax
jmp 0x14000533a
mov r8d, 0x1000
lea rdx, [rsp + 0x2020]
xor ecx, ecx
call fcn.140010ed8
mov rbx, rax
test rax, rax
jne 0x1400052c6
lea rcx, str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.140001c70
xor eax, eax
jmp 0x14000533a
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2000
call fcn.14000b090
mov edx, 0x5c
mov rcx, rbx
call fcn.14000afe4
mov rdi, rax
test rax, rax
je 0x14000532c
nop dword [rax]
mov r8, rdi
lea rcx, [rsp + 0x20]
sub r8, rbx
mov rdx, rbx
sar r8, 1
inc r8
call fcn.1400119a4
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, 0x5c
lea rcx, [rdi + 2]
call fcn.14000afe4
mov rdi, rax
test rax, rax
jne 0x1400052f0
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rax, rbx
mov rbx, qword [rsp + 0x4048]
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.140009ab0
add rsp, 0x4030
pop rdi
ret

Function at 0x140005360
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1030
call fcn.140009a40
sub rsp, rax
mov rax, qword [0x140037018]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rdx
mov rdi, r8
lea rdx, [0x140025420]
call fcn.140002d90
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call fcn.1400057a0
xor edi, edi
mov rbx, rax
test rsi, rsi
je 0x140005453
mov rcx, rsi
test rax, rax
je 0x14000545b
call fcn.14000bc68
test eax, eax
jne 0x14000543f
nop word [rax + rax]
mov r9, rsi
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x1000
call fcn.14000bf20
test rax, rax
jne 0x1400053fe
mov rcx, rsi
call fcn.14000bc94
test eax, eax
je 0x140005424
mov rcx, rsi
jmp 0x140005435
mov r9, rbx
lea rcx, [rsp + 0x20]
mov r8, rax
mov edx, 1
call fcn.14000c928
test rax, rax
je 0x140005432
mov rcx, rbx
call fcn.14000bc94
test eax, eax
jne 0x140005432
mov rcx, rsi
call fcn.14000bc68
test eax, eax
je 0x1400053d0
jmp 0x14000543f
mov rcx, rbx
call fcn.1400132e4
mov edi, 0xffffffff
mov rcx, rsi
call fcn.14000bc04
mov rcx, rbx
call fcn.14000bc04
mov eax, edi
jmp 0x140005465
test rbx, rbx
je 0x140005460
mov rcx, rbx
call fcn.14000bc04
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140009ab0
add rsp, 0x1030
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400054e0
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
mov eax, 0x2060
call fcn.140009a40
sub rsp, rax
mov rax, qword [0x140037018]
xor rax, rsp
mov qword [rsp + 0x2050], rax
mov rbp, rdx
mov r14, rcx
test rdx, rdx
je 0x14000556b
lea rcx, [0x140027894]
call fcn.1400056f0
mov rcx, rbp
mov rsi, rax
call fcn.140005210
mov rdi, rax
test rax, rax
je 0x14000563f
mov rdx, rax
lea rcx, [0x140027898]
call fcn.140012098
mov rcx, rdi
mov ebx, eax
call fcn.14000c9b4
test ebx, ebx
je 0x140005570
lea rcx, str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
call fcn.140001c70
xor eax, eax
jmp 0x1400056c8
mov rsi, qword [rsp + 0x20]
lea rdx, [rsp + 0x50]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.KERNEL32.dll_GetCurrentProcessId
mov r9d, eax
lea r8, str._MEI_d
mov edx, 0x10
lea rcx, [rsp + 0x28]
call fcn.1400060b0
xor ebx, ebx
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.1400132c8
mov rcx, rax
mov rdi, rax
call fcn.140006590
test eax, eax
je 0x140005646
mov rcx, rdi
call fcn.14000c9b4
inc ebx
cmp ebx, 5
jl 0x1400055a0
test rbp, rbp
je 0x14000563f
xor r8d, r8d
lea rdx, [0x140027894]
xor ecx, ecx
call fcn.1400068e0
test rsi, rsi
je 0x140005629
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov rdi, rax
call fcn.1400068e0
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.140012098
mov rcx, rdi
call fcn.14000c9b4
mov rcx, rbx
call fcn.14000c9b4
mov rcx, rsi
call fcn.14000c9b4
xor eax, eax
jmp 0x1400056c8
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.14000c9b4
xor eax, eax
jmp 0x1400056c8
mov r8d, 0x1000
mov rdx, rdi
mov rcx, r14
call fcn.1400069f0
mov rcx, rdi
call fcn.14000c9b4
test rbp, rbp
je 0x1400056c3
xor r8d, r8d
lea rdx, [0x140027894]
xor ecx, ecx
call fcn.1400068e0
test rsi, rsi
je 0x1400056ad
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov rdi, rax
call fcn.1400068e0
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.140012098
mov rcx, rdi
call fcn.14000c9b4
mov rcx, rbx
call fcn.14000c9b4
mov rcx, rsi
jmp 0x1400056be
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.14000c9b4
mov eax, 1
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.140009ab0
lea r11, [rsp + 0x2060]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400056f0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4038
call fcn.140009a40
sub rsp, rax
mov rax, qword [0x140037018]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.1400068e0
mov r8d, 0x2000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140005786
mov r8d, 0x2000
lea rdx, [rsp + 0x2020]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r8d, r8d
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.1400069f0
test rax, rax
je 0x140005786
cmp byte [rax], 0
je 0x140005786
mov rcx, rax
call fcn.1400149a4
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.140009ab0
add rsp, 0x4038
ret
xor eax, eax
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.140009ab0
add rsp, 0x4038
ret

Function at 0x140005d50
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.1400068e0
xor edx, edx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rdi
mov ebx, eax
call fcn.14000c9b4
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140005d90
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x2110
call fcn.140009a40
sub rsp, rax
mov rax, qword [0x140037018]
xor rax, rsp
mov qword [rsp + 0x2100], rax
mov rdx, rcx
xor edi, edi
lea rcx, [rsp + 0x100]
mov dword [rsp + 0x50], edi
mov r8d, 0x1000
call fcn.1400068e0
mov ebx, 1
lea ecx, [rdi + 0x16]
mov edx, ebx
call fcn.140012d28
mov edx, ebx
lea ecx, [rdi + 2]
call fcn.140012d28
mov edx, ebx
lea ecx, [rdi + 0xf]
call fcn.140012d28
mov edx, ebx
lea ecx, [rdi + 0x15]
call fcn.140012d28
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x58], 0x18
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], ebx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xorps xmm0, xmm0
mov qword [rsp + 0x98], rdi
xor ecx, ecx
movdqa xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0xcc], 0x101
mov word [rsp + 0xd0], bx
call fcn.14000cb80
mov rcx, rax
call fcn.140014a1c
mov ecx, eax
call fcn.1400128dc
mov ecx, ebx
mov qword [rsp + 0xe0], rax
call fcn.14000cb80
mov rcx, rax
call fcn.140014a1c
mov ecx, eax
call fcn.1400128dc
lea ecx, [rdi + 2]
mov qword [rsp + 0xe8], rax
call fcn.14000cb80
mov rcx, rax
call fcn.140014a1c
mov ecx, eax
call fcn.1400128dc
mov qword [rsp + 0xf0], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, rax
lea rcx, [rsp + 0x100]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140005f11
mov rcx, qword [rsp + 0x70]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x50]
jmp 0x140005f29
lea rdx, str.Error_creating_child_process__n
lea rcx, [0x140027998]
call fcn.140001cd0
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2100]
xor rcx, rsp
call fcn.140009ab0
mov rbx, qword [rsp + 0x2128]
add rsp, 0x2110
pop rdi
ret
Function at 0x140006590
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x2070
call fcn.140009a40
sub rsp, rax
mov rax, qword [0x140037018]
xor rax, rsp
mov qword [rsp + 0x2060], rax
xor ebx, ebx
mov qword [rsp + 0x38], 0xffffffffffffffff
mov qword [rsp + 0x40], rbx
mov rdi, rcx
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x38]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140006661
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140006618
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140006661
mov edx, dword [rsp + 0x30]
mov ecx, 1
call fcn.14000c9ac
mov rbx, rax
test rax, rax
je 0x140006661
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov r8, rbx
mov edx, 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140006661
mov rcx, qword [rbx]
lea rdx, [rsp + 0x40]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
mov rcx, rbx
call fcn.14000c9b4
mov rcx, qword [rsp + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x14000667a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
lea r9, str.S_1_3_4
test rbx, rbx
lea r8, str.D:_A__FA____s_
mov edx, 0x1000
lea rcx, [rsp + 0x60]
cmovne r9, rbx
call fcn.140006390
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r9d, r9d
mov dword [rsp + 0x48], 0x18
lea r8, [rsp + 0x50]
mov dword [rsp + 0x58], 0
lea rcx, [rsp + 0x60]
lea edx, [r9 + 1]
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x1400066ec
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400066ec
xor eax, eax
jmp 0x1400066f1
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2060]
xor rcx, rsp
call fcn.140009ab0
mov rbx, qword [rsp + 0x2088]
add rsp, 0x2070
pop rdi
ret
Function at 0x1400120d0
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400120f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140015810
or eax, 0xffffffff
jmp 0x1400120f2
xor eax, eax
add rsp, 0x28
ret

Function at 0x140012420
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140037018]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor esi, esi
mov rbx, rdx
test rdx, rdx
jne 0x14001215f
call fcn.140015880
mov dword [rax], 0x16
call fcn.140015760
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140009ab0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
test rcx, rcx
je 0x140012126
mov dword [rsp + 0x28], esi
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400121cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x1400121a0
cmp eax, 3
jbe 0x1400121bd
cmp eax, 8
je 0x1400121ad
cmp eax, 0x12
je 0x1400121bd
call fcn.140015880
mov dword [rax], 0x16
jmp 0x140012136
call fcn.140015880
mov dword [rax], 0xc
jmp 0x140012136
call fcn.140015880
mov dword [rax], 2
jmp 0x140012136
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, esi
mov dword [rbx], eax
call fcn.140012368
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.140012368
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.140012368
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.14001aeec
test eax, eax
jne 0x14001222b
mov rax, rdi
jmp 0x14001213a
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140015780
int3
jmp 0x1400120f8
Function at 0x140012428
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x140037018]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edi, edi
mov rbx, rdx
test rcx, rcx
jne 0x14001229d
call fcn.140015880
mov dword [rax], 0x16
call fcn.140015760
or eax, 0xffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140009ab0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x290
pop rdi
ret
cmp rcx, 0xffffffffffffffff
je 0x140012269
test rbx, rbx
je 0x140012269
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400122f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x1400122d1
cmp eax, 3
jbe 0x1400122eb
cmp eax, 8
je 0x1400122de
cmp eax, 0x12
je 0x1400122eb
call fcn.140015880
mov dword [rax], 0x16
jmp 0x140012279
call fcn.140015880
mov dword [rax], 0xc
jmp 0x140012279
call fcn.140015880
mov dword [rax], 2
jmp 0x140012279
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, edi
mov dword [rbx], eax
call fcn.140012368
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.140012368
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.140012368
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.14001aeec
test eax, eax
je 0x14001227c
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140015780
int3
jmp 0x140012240

Function at 0x140012f04
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140012f24
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140015810
or eax, 0xffffffff
jmp 0x140012f26
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400142a8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400140d4
Function at 0x779c30
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x779c3d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x779c4d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x779c35
lea eax, [rcx + 1]
jmp 0x779c5b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x779c6e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x779c54
sub eax, 3
jb 0x779c8e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x779cdd
sar eax, 1
movsxd rbp, eax
jb 0x779cc4
jmp 0x779c9c
add ebx, ebx
jne 0x779c9a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x779cc4
inc ecx
add ebx, ebx
jne 0x779caa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x779cc4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x779cbd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x779cac
add ecx, 2
jmp 0x779cc9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00779bf2
jmp 0x779c3d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x128000
mov dl, 0x1a
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x779d29
cmp rsi, rcx
jae 0x779d31
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x779d10
cmp al, 0x8f
ja 0x779d10
cmp byte [rsi - 2], 0xf
je 0x779d16
sub al, 0xe8
cmp al, 1
ja 0x779cfa
cmp rsi, rcx
jae 0x779d31
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x779d00
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x779d31
lodsb al, byte [rsi]
jmp 0x779d10
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x374000]
mov eax, dword [rdi]
or eax, eax
je 0x779d8e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x379000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x779d3e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x779d88
mov qword [rbx], rax
add rbx, 8
jmp 0x779d5e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x779dd2
cmp al, 0xef
ja 0x779dba
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x779d9a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x779da9
mov eax, dword [rdi]
add rdi, 4
jmp 0x779da9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x779e26
sub rsp, 0xffffffffffffff80
jmp 0x471ac0
Function at 0x140002900
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000295d
lea rbx, [0x14005dcd0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140002944
cmp r10, 2
jb 0x140002944
cmp byte [r9], r8b
jne 0x140002944
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140002920
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000299f
lea rbx, [0x14005dcd0]
cmp r8b, 0x23
jne 0x140002983
cmp byte [r9], r8b
jne 0x140002983
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140002970
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x140002b40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rsi, r8
mov rbx, rcx
test rcx, rcx
jne 0x140002b75
mov r8d, 0x8ca
lea rdx, [0x140057940]
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor r14d, r14d
test rsi, rsi
je 0x140002b80
mov qword [rsi], r14
lea rdx, [0x14005d458]
mov rcx, rbx
call fcn.1400029b0
mov rbx, rax
test rax, rax
jne 0x140002ba8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140002cd2
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002cd2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140002cd2
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002cd2
cmp rdi, 0xffffffffffffffff
je 0x140002cd2
mov rcx, rdi
call fcn.140008de0
mov rbp, rax
test rax, rax
je 0x140002cd2
mov r9, rbx
mov r8, rdi
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, rdi
je 0x140002cbf
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, qword [0x14009a1f8]
test r8, r8
je 0x140002cb4
movsx rdx, word [r8 + 0x5480]
lea rcx, [r8 + 0x5484]
mov r9d, dword [r8 + 0x3fe8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140002ca9
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x5480], cx
movsx rax, cx
lea rcx, [r8 + 0x5484]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r14d
inc word [rcx + 6]
inc dword [r8 + 0x547c]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002cdb
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x140002ccd
mov qword [rsi], rdi
mov rax, rbp
jmp 0x140002cdd
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 rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14000c550
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov r9, qword [0x14009a1f8]
mov r14, r8
movaps xmmword [rsp + 0x30], xmm6
mov ebp, edx
mov rsi, rcx
mov rdi, r9
mov rbx, qword [r9 + 0x40a0]
test edx, edx
jne 0x14000c5a5
mov r8d, 0x170b
lea rdx, [0x140057940]
lea rcx, str.id___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov r9, qword [0x14009a1f8]
mov rax, qword [r9 + 0x40a0]
cmp qword [rax + 0x1c0], 0
jne 0x14000c5c5
cmp qword [r9 + 0x4ec0], 0
mov ecx, 0x268
je 0x14000c5ca
mov ecx, 0x238
movss xmm2, dword [rax + rcx]
movss xmm3, dword [rax + rcx + 4]
lea rcx, [rsp + 0x60]
subss xmm3, dword [rax + 0x11c]
subss xmm2, dword [rax + 0x118]
mov rdx, qword [r14]
call fcn.140018f10
test byte [rdi + 0x4ac0], 2
je 0x14000c62d
test byte [rdi + 0x4ac8], 1
je 0x14000c62d
movss xmm0, dword [rdi + 0x4ae0]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14000c61a
movss dword [rsp + 0x60], xmm0
movss xmm0, dword [rdi + 0x4ae4]
comiss xmm0, xmm1
jbe 0x14000c62d
movss dword [rsp + 0x64], xmm0
or dword [r9 + 0x4ac0], 2
lea rcx, [rsp + 0x60]
movsd xmm0, qword [rsp + 0x60]
xor edx, edx
movsd qword [r9 + 0x4ae0], xmm0
mov dword [r9 + 0x4ac8], 1
or dword [rdi + 0x4ac0], 0x100
mov dword [rdi + 0x4af8], 1
mov r9, qword [rbx + 8]
test rsi, rsi
je 0x14000c68a
mov dword [rsp + 0x28], ebp
lea r8, str._s__s__08X
mov qword [rsp + 0x20], rsi
call fcn.140002760
jmp 0x14000c69a
lea r8, str._s__08X
mov dword [rsp + 0x20], ebp
call fcn.140002760
mov rcx, qword [rsp + 0x60]
xor edx, edx
movss xmm6, dword [rdi + 0x3958]
mov r8d, 0x1000107
call fcn.14000fe60
mov rsi, qword [rdi + 0x40a0]
movzx r14d, al
movss dword [rdi + 0x3958], xmm6
cmp word [rsi + 0xd8], 1
mov dword [rsi + 0x90], ebp
jne 0x14000c6e4
movsd xmm0, qword [rsi + 0x28]
movsd qword [rbx + 0x118], xmm0
mov r9d, ebp
lea rdx, [0x140058da9]
not r9d
lea r10, [0x14005dcd0]
mov ebx, r9d
mov r8b, 0x23
nop
cmp r8b, 0x23
jne 0x14000c713
cmp byte [rdx], r8b
jne 0x14000c713
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r10 + rcx*4]
test r8b, r8b
jne 0x14000c700
not ebx
cmp dword [rdi + 0x4114], ebx
jne 0x14000c743
xor edx, edx
xor ecx, ecx
call fcn.1400084d0
cmp dword [rdi + 0x4bec], ebp
jne 0x14000c788
cmp word [rsi + 0x174], 0
jne 0x14000c75e
cmp byte [rsi + 0x17a], 0
je 0x14000c788
xor edx, edx
mov rcx, rsi
call fcn.140012f20
xor edx, edx
mov rcx, rsi
call fcn.14001c8e0
mov rdx, rsi
mov ecx, ebx
call fcn.1400084d0
mov eax, dword [rdi + 0x4c20]
mov dword [rdi + 0x4140], eax
mov rbx, qword [rsp + 0x68]
movzx eax, r14b
mov rbp, qword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret