joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140231ef0
Capabilities:
Get common file path

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
xor r11d, r11d
mov rdi, qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r12, [rsp + 0x40]
mov rbp, rdx
mov rbx, rcx
mov edx, 0x400
mov qword [rsp + 0x30], r12
lea rsi, [rsp + 0x30]
mov qword [rsp + 0x38], 0
mov word [rsp + 0x40], r11w
nop dword [rax]
xor r8d, r8d
mov rcx, rsi
call fcn.140277f80
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x38]
call rdi
mov edx, eax
cmp qword [rsp + 0x38], rdx
jb 0x140231f30
mov qword [rsp + 0x28], rdx
test eax, eax
je 0x140232000
call fcn.140262bb0
mov rdx, qword [rsp + 0x28]
xor edi, edi
mov dword [rbp], edi
xor r8d, r8d
mov rcx, rsi
mov qword [rbp + 8], rax
call fcn.140277f80
mov rax, qword [rsp + 0x30]
lea rcx, [rbx + 0x10]
mov rdi, qword [rsp + 0x38]
mov qword [rbx], rcx
cmp rax, r12
je 0x140232070
mov qword [rbx], rax
mov rax, qword [rsp + 0x40]
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rdi
lea rdi, [rbx + 0x20]
xor r10d, r10d
mov rcx, rdi
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 0
mov word [rsp + 0x40], r10w
call fcn.140237f60
mov rcx, rbx
call fcn.140237190
mov rcx, qword [rsp + 0x30]
cmp rcx, r12
je 0x140231fe8
mov rax, qword [rsp + 0x40]
lea rdx, [rax + rax + 2]
call fcn.1402aa7f0
mov r9d, dword [rbp]
test r9d, r9d
je 0x140232020
mov rax, rbx
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.140262bb0
mov rdx, qword [rsp + 0x28]
jmp 0x140231f68
mov rdx, rbp
mov rcx, rbx
call fcn.140233260
mov r8d, dword [rbp]
test r8d, r8d
jne 0x140232090
cmp al, 2
je 0x140231ff1
mov rax, qword [rbx]
xor edx, edx
mov qword [rbx + 8], 0
mov rcx, rbx
mov word [rax], dx
call fcn.140237190
call fcn.140262bc0
mov dword [rbp], 0x14
mov qword [rbp + 8], rax
mov rax, rbx
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8, rdi
add r8, 1
je 0x140231fa0
add r8, r8
mov rdx, r12
call sub.msvcrt.dll_memcpy
jmp 0x140231fa0
mov rax, qword [rbx]
xor ecx, ecx
mov qword [rbx + 8], 0
mov word [rax], cx
mov rcx, rbx
call fcn.140237190
mov rax, rbx
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140232f30
Capabilities:
Delete directory
Delete file

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call fcn.14022f270
test al, al
je 0x140232f7e
cmp al, 0xff
je 0x140232f90
mov rdx, rbx
mov rcx, rsi
call fcn.140233260
cmp al, 2
je 0x140232fa8
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140232fb5
mov eax, dword [rbx]
test eax, eax
jne 0x140232f7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.140262bb0
mov dword [rbx], esi
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140262bb0
mov dword [rbx], 0
mov qword [rbx + 8], rax
jmp 0x140232f7e
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x140232f58
call fcn.140262bb0
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x1402330a0
Capabilities:
Move file

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rbp, rcx
mov rdx, r8
mov rbx, r8
mov rcx, rsi
call fcn.140233260
mov rdi, rax
cmp al, 0xff
je 0x140233100
mov ecx, dword [rbx]
test ecx, ecx
jne 0x1402330f3
test al, al
jne 0x140233118
mov rdx, qword [rsi]
mov rcx, qword [rbp]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140233160
call fcn.140262bb0
mov dword [rbx], 0
mov qword [rbx + 8], rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.140262bb0
mov dword [rbx], 0
mov qword [rbx + 8], rax
jmp 0x1402330cd
mov rdx, rbx
mov rcx, rbp
call fcn.140233260
mov edx, dword [rbx]
test edx, edx
jne 0x1402330f3
cmp dil, 2
je 0x140233148
cmp al, 2
jne 0x1402330cd
call fcn.140262bc0
mov dword [rbx], 0x14
mov qword [rbx + 8], rax
jmp 0x1402330f3
cmp al, 2
je 0x1402330cd
call fcn.140262bc0
mov dword [rbx], 0x15
mov qword [rbx + 8], rax
jmp 0x1402330f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [sym.imp.msvcrt.dll__errno]
cmp eax, 5
je 0x140233195
call rdi
mov dword [rax], 5
call fcn.140262bc0
mov rsi, rax
call rdi
mov eax, dword [rax]
mov qword [rbx + 8], rsi
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call rdi
mov dword [rax], 0xd
jmp 0x14023317a

Function at 0x14023be60
Capabilities:
Get disk size

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbx, qword [rsp + 0x90]
mov rdi, rdx
mov rbp, r8
mov rsi, r9
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x28]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x14023bef8
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14023beba
mov qword [rdi], rax
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14023bec8
mov qword [rbp], rax
mov rax, qword [rsp + 0x28]
test rax, rax
jne 0x14023bef0
call fcn.140262bb0
xor esi, esi
mov dword [rbx], esi
mov qword [rbx + 8], rax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov qword [rsi], rax
jmp 0x14023bed2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.140262bb0
mov dword [rbx], esi
mov qword [rbx + 8], rax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x140242640
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140242688
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14024265a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140298d10
Capabilities:
Encode data using xor

Disassembly:
mov r11, rdx
mov rax, rcx
mov r10, rdx
and r11, 0xfffffffffffffff8
add r11, rcx
movabs rcx, 0xc6a4a7935bd1e995
imul r10, rcx
xor r10, r8
cmp rax, r11
je 0x140298d68
nop word cs:[rax + rax]
mov r9, qword [rax]
add rax, 8
imul r9, rcx
mov r8, r9
shr r8, 0x2f
xor r8, r9
imul r8, rcx
xor r8, r10
mov r10, r8
imul r10, rcx
cmp r11, rax
jne 0x140298d40
and edx, 7
je 0x140298d9d
sub edx, 1
movsxd rax, edx
xor edx, edx
nop dword [rax]
movzx ecx, byte [r11 + rax]
shl rdx, 8
sub rax, 1
add rdx, rcx
test eax, eax
jns 0x140298d78
xor rdx, r10
movabs r10, 0xc6a4a7935bd1e995
imul r10, rdx
movabs rax, 0xc6a4a7935bd1e995
mov rdx, r10
shr rdx, 0x2f
xor rdx, r10
imul rdx, rax
mov rax, rdx
shr rax, 0x2f
xor rax, rdx
ret
Function at 0x140001250
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x28
call fcn.1400011a0
test rax, rax
je 0x140001263
add rsp, 0x28
ret
mov ecx, 0x15
mov edx, 0x80020003
call qword [sym.imp.user32.dll_ExitWindowsEx]
test eax, eax
je 0x14000127e
xor eax, eax
add rsp, 0x28
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x28
ret

Function at 0x1400036a0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x140003740
jmp 0x14000372f
jae 0x140003800
cmp r8, 0x201
jae 0x140003740
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140003798
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14000376f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140017c00
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x1400037c1
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140003868
mov r8d, r14d
cmp r15, r8
jne 0x140003720
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140003895
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000372f
jmp 0x140003740
cmp rsi, r8
jb 0x1400038af
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140004990
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x140003851
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140001170
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x140003839
jmp 0x140003851
lea rcx, str.internal_error:_entered_unreachable_code_rustc_7cf61ebde7b22796c69757901dd346d0fe70bd97library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.140018460
jmp 0x1400038c4
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1400188b0
ud2
Function at 0x140008e70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14001a960]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140008eb4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140008f1a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140008f51
test eax, eax
js 0x140008f2b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140008f44
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140004800
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140001af0
mov ecx, 7
int 0x29
ud2
Function at 0x140016070
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400160ea
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1400160e0
cmp r11, r10
ja 0x140016175
cmp r10, rdx
ja 0x140016187
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400160e2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400160c0
jmp 0x140016157
ja 0x1400160ea
mov r11, r10
cmp rax, r8
jne 0x140016092
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001615b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140016130
mov r8, r10
sub ecx, r9d
jns 0x14001614e
jmp 0x14001615d
cmp r10, rdx
je 0x140016169
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001615d
xor al, 1
cmp r8, rdx
jne 0x140016110
jmp 0x14001615d
xor eax, eax
jmp 0x14001615d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140018300
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140018930
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400188b0
int3

Function at 0x140017680
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x1400176ca
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400176ca
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400176ca
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400176ca
cmp dword [rcx + 0x84], 0xe
jbe 0x1400176ca
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400176cc
xor al, al
add rsp, 0x28
ret
Function at 0x140445e73
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140468e80
test rbp, rbp
lea rsp, [rsp + 8]
je 0x14045f5df
lea rcx, [0x140478328]
mov r8d, 0xb8969e2c
movzx r8d, byte [rdx]
xor r8d, r11d
push 0x770383ae
and r8d, 0xff
mov r8d, dword [rcx + r8*4]
shr r11d, 8
xor r11d, r8d
inc rdx
push 0xffffffff8a1687bf
xor r11d, 0x8c32ac9c
dec rbp
lea rsp, [rsp + 0x10]
jne 0x14045f59e
jmp 0x140443b13
xor r11d, r11d
jmp 0x14045f589
Function at 0x140046a70
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.14004651c
test al, al
je 0x1400469d7
xor sil, sil
mov byte [rsp + 0x20], sil
call fcn.1400463b0
mov bl, al
mov ecx, dword [0x1400b8e90]
cmp ecx, 1
je 0x1400469e2
test ecx, ecx
jne 0x14004690d
mov dword [0x1400b8e90], 1
lea rdx, [0x1400a33e0]
lea rcx, [0x1400a33a8]
call fcn.14005ae2c
test eax, eax
je 0x1400468ee
mov eax, 0xff
jmp 0x1400469c7
lea rdx, [0x1400a33a0]
lea rcx, [0x1400a3378]
call fcn.14005ade8
mov dword [0x1400b8e90], 2
jmp 0x140046915
mov sil, 1
mov byte [rsp + 0x20], sil
mov cl, bl
call fcn.14004667c
call fcn.140047768
mov rbx, rax
cmp qword [rax], 0
je 0x140046948
mov rcx, rax
call fcn.1400465e4
test al, al
je 0x140046948
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x1400a3350]
call fcn.140047770
mov rbx, rax
cmp qword [rax], 0
je 0x14004696a
mov rcx, rax
call fcn.1400465e4
test al, al
je 0x14004696a
mov rcx, qword [rbx]
call fcn.140058adc
call fcn.14005a170
mov rdi, rax
call fcn.14005b120
mov rbx, qword [rax]
call fcn.14005b118
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
call main
mov ebx, eax
call fcn.140047514
test al, al
je 0x1400469ec
test sil, sil
jne 0x1400469a1
call fcn.140058ab8
xor edx, edx
mov cl, 1
call fcn.1400466a0
mov eax, ebx
jmp 0x1400469c7
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.140047384
nop
mov ecx, 7
call fcn.140047384
mov ecx, ebx
call fcn.140058b1c
nop
mov ecx, ebx
call fcn.140058ac8
nop
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call fcn.14005a170
mov rdi, rax
call fcn.14005b120
mov rbx, qword [rax]
call fcn.14005b118
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp main
sub rsp, 0x28
call fcn.140047644
add rsp, 0x28
jmp 0x140046880

Function at 0x140047514
Capabilities:
Parse pe header

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

Function at 0x140058b1c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400588a4
Function at 0x140087750
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 0x140087780
xor eax, eax
jmp 0x140087843
mov rbp, rbx
cmp word [rax], si
je 0x1400877a5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14008778c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140087788
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.1400875d0
movsxd r14, eax
test eax, eax
jne 0x1400877e3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140087779
mov rcx, r14
call fcn.140083c2c
mov rdi, rax
test rax, rax
jne 0x1400877fc
xor ecx, ecx
call fcn.1400841e0
jmp 0x1400877d8
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.1400875d0
test eax, eax
jne 0x14008782d
mov rcx, rdi
call fcn.1400841e0
jmp 0x140087837
xor ecx, ecx
call fcn.1400841e0
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 0x140093ae8
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400854a4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140093b72
cmp byte [rbp - 0x21], r15b
je 0x140093b6d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140093ba8
call fcn.1400891ac
test eax, eax
jne 0x140093b94
cmp byte [rbp - 0x21], r15b
je 0x140093b8c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140093ba8
cmp byte [rbp - 0x21], r15b
je 0x140093ba5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140084244
test eax, eax
jne 0x140093c48
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400854a4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140093be7
cmp byte [rbp - 0x21], r15b
je 0x140093c1c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140093c1c
call fcn.1400891ac
test eax, eax
jne 0x140093c08
cmp byte [rbp - 0x21], r15b
je 0x140093c01
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140093c1c
cmp byte [rbp - 0x21], r15b
je 0x140093c19
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140084244
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140093c48
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140093c4b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140093c59
mov rcx, rdi
call fcn.1400841e0
cmp byte [rbp + 0x3f], r15b
je 0x140093c68
mov rcx, qword [rbp + 0x27]
call fcn.1400841e0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400a0830
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400a0858
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400a0858
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180019ad0
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 0x180019b2d
lea rbx, [0x180209e20]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180019b14
cmp r10, 2
jb 0x180019b14
cmp byte [r9], r8b
jne 0x180019b14
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 0x180019af0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180019b6f
lea rbx, [0x180209e20]
cmp r8b, 0x23
jne 0x180019b53
cmp byte [r9], r8b
jne 0x180019b53
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 0x180019b40
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180019cb0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x180019cca
mov qword [r8], 0
lea rdx, [0x180209a18]
call fcn.180019b80
mov rbx, rax
test rax, rax
jne 0x180019cea
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x180019dc1
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 0x180019dc1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180019dc1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180019dc1
cmp rdi, 0xffffffffffffffff
je 0x180019dc1
mov rax, qword [0x1802786e0]
test rax, rax
je 0x180019d5e
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180019dc1
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 0x180019dae
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1802786e0]
test rax, rax
je 0x180019da3
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180019dca
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x180019dbc
mov qword [r14], rdi
mov rax, rsi
jmp 0x180019dcc
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x18001c800
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xd0]
mov rax, qword [rcx + 0xd8]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x180209e20]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [0x1802786e0]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x3ebc], ebx
jne 0x18001c896
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.18002de50
mov eax, ebx
add rsp, 0x20
pop rbx
ret