joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140083230
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.14005b310
mov rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
test rax, rax
je 0x1400832c6
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
call fcn.140077f90
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
test rsi, rsi
je 0x1400832c6
mov rcx, rsi
call sub.kernel32.dll_DeleteFileW
test eax, eax
je 0x14008329e
test rbx, rbx
jne 0x140083309
jmp 0x140083321
call sub.kernel32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
test rbx, rbx
je 0x1400832c3
mov rcx, qword [0x1401c3148]
xor edx, edx
mov r8, rsi
call sub.kernel32.dll_HeapFree
mov rbx, rdi
test rbx, rbx
je 0x140083321
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x140083321
lea rsi, [rbx - 1]
mov rdi, qword [rbx - 1]
mov rbx, qword [rbx + 7]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x140083309
cmp qword [rbx + 0x10], 0x11
jb 0x1400832f8
mov rdi, qword [rdi - 8]
mov rcx, qword [0x1401c3148]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov rcx, qword [0x1401c3148]
xor edx, edx
mov r8, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
jmp sub.kernel32.dll_HeapFree
nop
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400893f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140083f00
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140083f00
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140089460
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401c4894]
mov rbx, rcx
test esi, esi
jle 0x140089590
mov rax, qword [0x1401c4898]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400894ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140089535
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140089490
mov rcx, rbx
call fcn.140089eb0
mov rdi, rax
test rax, rax
je 0x1400895b2
mov rax, qword [0x1401c4898]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140089ff0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401c4898]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140089597
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14008952e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140089540
add dword [0x1401c4894], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1401c4898]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14008952e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400893f0
nop dword [rax]
xor esi, esi
jmp 0x1400894b8
mov rax, qword [0x1401c4898]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400893f0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400893f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140089b20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401c4900]
mov rcx, r12
call qword [sym.imp.kernel32.dll_EnterCriticalSection]
mov rbx, qword [0x1401c48e0]
test rbx, rbx
je 0x140089b7c
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140089b73
test rsi, rsi
je 0x140089b73
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140089b58
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.kernel32.dll_LeaveCriticalSection]
Function at 0x140089eb0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14019ef50]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140089ed0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140089ed8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140089ed0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140089f2d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140089f24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140089ed0
add rax, 0x28
cmp rax, r9
jne 0x140089f10
xor eax, eax
ret

Function at 0x140089f30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14019ef50]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140089f4f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140089f58
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140089f4f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140089ff0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14019ef50]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14008a00f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14008a018
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x14008b3d0
Capabilities:
Encrypt data using blowfish

Disassembly:
push rdi
push rsi
mov rax, qword [0x1401a4ee0]
lea rsi, [0x1401a4ee0]
mov qword [rcx], rax
lea rdi, [rcx + 8]
mov rax, qword [0x1401a5f20]
and rdi, 0xfffffffffffffff8
mov qword [rcx + 0x1040], rax
sub rcx, rdi
sub rsi, rcx
add ecx, 0x1048
shr ecx, 3
rep movsq qword [rdi], qword [rsi]
pop rsi
pop rdi
ret
Function at 0x140093c80
Capabilities:
Hash data via bcrypt

Disassembly:
mov eax, ecx
mov rcx, rdx
mov rdx, r8
cmp eax, 0x200
je 0x140093ca8
mov r8d, eax
and r8b, 0x7f
cmp r8d, 0x100
je 0x140093ca8
cmp eax, 1
je 0x140093ca8
ret
mov r8d, r9d
jmp fcn.1400979d0

Function at 0x140095e70
Capabilities:
Get socket status

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x468
mov dword [rcx + 0x258], 0
mov rbp, rdx
mov rbx, rcx
lea rdx, [rsp + 0x34]
call fcn.14013aa20
mov esi, eax
test eax, eax
jne 0x140095f4c
mov edi, dword [rbx + 0x244]
mov eax, dword [rsp + 0x34]
mov ecx, dword [rbx + 0x98]
test edi, edi
jne 0x140095f60
test ecx, ecx
jle 0x140095f10
cmp ecx, 0x3e7
jle 0x140095ec7
test eax, eax
jne 0x140095f10
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__time64]
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.msvcrt.dll__difftime64]
mulsd xmm0, qword [0x14019cd88]
mov edx, dword [rbx + 0x98]
cvttsd2si eax, xmm0
cmp edx, eax
jl 0x140096038
sub edx, eax
mov r9d, 1
mov eax, edx
imul rax, rax, 0x10624dd3
shr rax, 0x26
jmp 0x140095f83
mov rax, qword [0x14019cd90]
mov rcx, qword [rbx + 0x238]
xor edx, edx
xor r8d, r8d
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x38]
add ecx, 1
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ws2_32.dll_select]
test eax, eax
je 0x140096010
js 0x140095ff0
mov eax, esi
add rsp, 0x468
pop rbx
pop rsi
pop rdi
pop rbp
ret
imul edx, eax, 0x3e8
test ecx, ecx
jle 0x140095f7a
cmp edx, ecx
jg 0x140095ec7
test eax, eax
je 0x140095ec7
xor r9d, r9d
test edx, edx
setg r9b
mov dword [rsp + 0x38], eax
imul eax, eax, 0xfffffc18
mov rcx, qword [rbx + 0x238]
add eax, edx
xor edx, edx
imul eax, eax, 0x3e8
mov dword [rsp + 0x3c], eax
test dil, 1
je 0x140095fba
mov qword [rsp + 0x48], rcx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 1
xor r8d, r8d
and edi, 2
je 0x140095fdd
mov qword [rsp + 0x258], rcx
lea r8, [rsp + 0x250]
mov dword [rsp + 0x250], 1
xor eax, eax
test r9d, r9d
je 0x140095f2d
jmp 0x140095f28
lea r8, str.Error_waiting_on_socket
mov edx, 0xfffffff7
mov rcx, rbx
call fcn.14008f440
mov esi, eax
jmp 0x140095f4c
lea r8, str.Timed_out_waiting_on_socket
mov edx, 0xfffffff7
mov rcx, rbx
call fcn.14008f440
mov esi, eax
mov eax, esi
add rsp, 0x468
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea r8, str.API_timeout_expired
mov edx, 0xfffffff7
mov rcx, rbx
call fcn.14008f440
mov esi, eax
jmp 0x140095f4c
Function at 0x140096a30
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov r12d, dword [rdx + 0x10]
mov rax, qword [rcx + 0x10]
mov edx, dword [rcx + 0x24]
mov rbx, rcx
mov edi, r8d
mov rcx, qword [rcx]
mov rbp, r9
test r12d, r12d
je 0x140096b50
mov r15, qword [rbx + 0x18]
lea r14, [rsp + 0x5c]
mov dword [rsp + 0x28], edx
xor r9d, r9d
mov r8d, dword [rsp + 0xd0]
mov dword [rsp + 0x48], 0
mov rdx, r15
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptEncrypt
test eax, eax
js 0x140096bb1
mov ecx, dword [rsp + 0x5c]
mov r13, rcx
call sub.msvcrt.dll_malloc
mov rsi, rax
test rax, rax
je 0x140096bb1
mov r8d, dword [rbx + 0x24]
mov rax, qword [rbx + 0x10]
xor r9d, r9d
or edi, r12d
mov rcx, qword [rbx]
mov rdx, r15
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x28], r8d
mov r8d, dword [rsp + 0xd0]
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x20], rax
je 0x140096ba0
call sub.bcrypt.dll_BCryptEncrypt
test eax, eax
js 0x140096ba9
test r12d, r12d
je 0x140096bd0
mov r9, qword [rsp + 0xd0]
mov r8, rsi
mov rdx, rbp
mov rcx, rbp
call fcn.1400991f0
mov edx, dword [rbx + 0x2c]
mov rcx, qword [rbx + 0x18]
call fcn.14008cea0
mov rcx, rsi
call fcn.140083fb8
xor eax, eax
jmp 0x140096bb6
test r8d, r8d
jne 0x140096bf0
lea r14, [rsp + 0x5c]
mov dword [rsp + 0x28], edx
xor r9d, r9d
mov rdx, rbp
mov qword [rsp + 0x40], r14
mov r15, rbp
mov r8d, dword [rsp + 0xd0]
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptDecrypt
jmp 0x140096aa3
call sub.bcrypt.dll_BCryptDecrypt
test eax, eax
jns 0x140096bd0
mov rcx, rsi
call fcn.140083fb8
mov eax, 0xffffffff
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r8d, dword [rsp + 0x5c]
mov rdx, rsi
mov rcx, rbp
call sub.msvcrt.dll_memcpy
mov rcx, rsi
call fcn.140083fb8
xor eax, eax
jmp 0x140096bb6
mov r15, r9
jmp 0x140096a64

Function at 0x1400977c0
Capabilities:
Hash data via bcrypt

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov dword [rsp + 0x20], 0
mov esi, edx
mov rdx, r8
mov rbx, rcx
mov r8d, dword [rsp + 0xa0]
mov rdi, r9
lea rcx, [rsp + 0x30]
xor r9d, r9d
call fcn.1400978c0
test eax, eax
je 0x140097800
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rbp, qword [rsp + 0x30]
mov r8d, esi
mov rdx, rbx
xor r9d, r9d
mov rcx, rbp
call sub.bcrypt.dll_BCryptHashData
mov r8d, dword [rsp + 0x44]
xor r9d, r9d
mov rdx, rdi
sar eax, 0x1f
mov rcx, rbp
mov esi, eax
call sub.bcrypt.dll_BCryptFinishHash
mov rcx, rbp
mov ebx, eax
call sub.bcrypt.dll_BCryptDestroyHash
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140097847
call fcn.140083fb8
mov eax, ebx
sar eax, 0x1f
or eax, esi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x1400979d0
Capabilities:
Hash data via bcrypt

Disassembly:
sub rsp, 0x28
xor r9d, r9d
mov rcx, qword [rcx]
call sub.bcrypt.dll_BCryptHashData
sar eax, 0x1f
add rsp, 0x28
ret
Function at 0x140098730
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x28
xor r9d, r9d
mov r8d, edx
mov rdx, rcx
mov rcx, qword [0x140175380]
call sub.bcrypt.dll_BCryptGenRandom
sar eax, 0x1f
add rsp, 0x28
ret

Function at 0x1400991f0
Capabilities:
Encode data using xor

Disassembly:
test r9, r9
je 0x140099216
xor eax, eax
nop word [rax + rax]
movzx r10d, byte [rdx + rax]
xor r10b, byte [r8 + rax]
mov byte [rcx + rax], r10b
add rax, 1
cmp r9, rax
jne 0x140099200
ret
Function at 0x1400b6e10
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
xor esi, esi
mov r15, qword [rsp + 0xc0]
mov rbp, rcx
mov qword [rsp + 0x30], rdx
mov r13, r8
mov r14, r9
mov rcx, qword [rsp + 0xc8]
lea rdx, [0x14019ce95]
lea rdi, [rsp + 0x43]
call sub.msvcrt.dll_fopen
mov rbx, rax
test rax, rax
jne 0x1400b6e8d
jmp 0x1400b7060
mov r9, rbx
mov r8d, 1
mov edx, 1
mov rcx, rdi
call sub.msvcrt.dll_fread
cmp rax, 1
jne 0x1400b6e99
movzx eax, byte [rsp + 0x43]
cmp al, 0xa
je 0x1400b6e99
cmp al, 0xd
je 0x1400b6e99
add rsi, 1
mov rcx, rbx
call sub.msvcrt.dll_feof
test eax, eax
je 0x1400b6e60
mov rcx, rbx
call sub.msvcrt.dll_rewind
cmp rsi, 1
jbe 0x1400b7038
mov rdx, rbp
mov rcx, rsi
call qword [rbp + 8]
mov rdi, rax
test rax, rax
je 0x1400b7010
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fread
cmp rsi, rax
je 0x1400b6f10
mov rdx, rbp
mov rcx, rdi
call qword [rbp + 0x18]
mov rcx, rbx
call sub.msvcrt.dll_fclose
lea r8, str.Unable_to_read_public_key_from_file
mov edx, 0xfffffff0
mov rcx, rbp
call fcn.14008f440
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rbx
lea r12, [rsi - 1]
call sub.msvcrt.dll_fclose
movzx ecx, byte [rdi + rsi - 1]
mov rbx, qword [sym.imp.msvcrt.dll_isspace]
call rbx
test eax, eax
je 0x1400b6f70
nop
mov rsi, r12
sub r12, 1
movzx ecx, byte [rdi + r12]
call rbx
test eax, eax
je 0x1400b6f70
test r12, r12
jne 0x1400b6f30
mov rdx, rbp
mov rcx, rdi
call qword [rbp + 0x18]
lea r8, str.Missing_public_key_data
mov edx, 0xfffffff0
mov rcx, rbp
call fcn.14008f440
jmp 0x1400b6efd
mov r8, rsi
mov edx, 0x20
mov rcx, rdi
call sub.msvcrt.dll_memchr
test rax, rax
je 0x1400b70a6
lea r9, [rax + 1]
mov r8, rsi
mov edx, 0x20
mov rbx, r9
mov rcx, r9
mov qword [rsp + 0x38], r9
sub rbx, rdi
sub r8, rbx
cmp rdi, r9
cmovae r8, rsi
add rsi, rdi
call sub.msvcrt.dll_memchr
mov r9, qword [rsp + 0x38]
lea rdx, [rsp + 0x48]
mov rcx, rbp
test rax, rax
lea r8, [rsp + 0x44]
cmove rax, rsi
sub rax, r9
mov dword [rsp + 0x20], eax
call fcn.140138700
test eax, eax
jne 0x1400b7084
mov rsi, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x48]
sub rbx, 1
mov qword [rsi], rdi
mov edi, dword [rsp + 0x44]
mov qword [r13], rbx
mov qword [r14], rdx
mov qword [r15], rdi
jmp 0x1400b6efd
mov rcx, rbx
call sub.msvcrt.dll_fclose
lea r8, str.Unable_to_allocate_memory_for_public_key_data
mov edx, 0xfffffffa
mov rcx, rbp
call fcn.14008f440
jmp 0x1400b6efd
mov rcx, rbx
call sub.msvcrt.dll_fclose
lea r8, str.Invalid_data_in_public_key_file
mov edx, 0xfffffff0
mov rcx, rbp
call fcn.14008f440
jmp 0x1400b6efd
lea r8, str.Unable_to_open_public_key_file
mov edx, 0xfffffff0
mov rcx, rbp
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.14008f440
mov rdx, rbp
mov rcx, rdi
call qword [rbp + 0x18]
lea r8, str.Invalid_key_data__not_base64_encoded
mov edx, 0xfffffff0
mov rcx, rbp
call fcn.14008f440
jmp 0x1400b6efd
mov rdx, rbp
mov rcx, rdi
call qword [rbp + 0x18]
lea r8, str.Invalid_public_key_data
mov edx, 0xfffffff0
mov rcx, rbp
call fcn.14008f440
jmp 0x1400b6efd
Function at 0x1400bcf60
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov qword [rsp + 0x28], 0
mov rdi, rdx
mov rsi, rcx
call fcn.14011b840
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.140127dc0
test eax, eax
js 0x1400bd075
mov rcx, qword [rsp + 0x28]
mov r13, qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
xor r8d, r8d
xor edx, edx
call r13
mov ebx, eax
test eax, eax
jne 0x1400bcff0
mov r12, qword [0x14019f130]
xor ebp, ebp
mov rbx, qword [sym.imp.kernel32.dll_GetLastError]
call rbx
test eax, eax
jne 0x1400bd040
mov ebx, 0xfffffffd
mov rcx, qword [rsp + 0x28]
call qword [r12 + 0x10]
mov rcx, rbp
call qword [r12 + 0x10]
mov eax, ebx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [0x14019f130]
mov ecx, eax
mov r8d, 0x13
lea rdx, [0x14018fc79]
add rcx, rcx
call qword [r12]
mov rbp, rax
test rax, rax
je 0x1400bd070
mov rcx, qword [rsp + 0x28]
mov r8d, ebx
mov rdx, rax
call r13
test eax, eax
je 0x1400bcfb8
mov r8d, eax
mov rdx, rbp
mov rcx, rsi
call fcn.14011d540
mov ebx, eax
jmp 0x1400bcfca
call rbx
cmp eax, 0xcb
je 0x1400bcfc5
mov r8, rdi
mov ecx, 2
mov ebx, 0xffffffff
lea rdx, str.could_not_read_environment_variable__s
call fcn.1400da2e0
jmp 0x1400bcfca
call fcn.1400da310
mov ebx, 0xffffffff
jmp 0x1400bcfdc

Function at 0x1400bd550
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
mov eax, dword [0x140176080]
mov rbx, rcx
test eax, eax
je 0x1400bd570
mov qword [rbx], rax
xor eax, eax
add rsp, 0x50
pop rbx
ret
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x48]
mov dword [0x140176080], eax
mov qword [rbx], rax
xor eax, eax
add rsp, 0x50
pop rbx
ret

Function at 0x1400bd590
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov edx, 1
test eax, eax
cmovle eax, edx
add rsp, 0x58
ret

Function at 0x1400bd6a0
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
mov eax, dword [0x140178420]
mov rbx, rcx
test eax, eax
je 0x1400bd6c0
mov qword [rbx], rax
xor eax, eax
add rsp, 0x50
pop rbx
ret
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
mov dword [0x140178420], eax
mov qword [rbx], rax
xor eax, eax
add rsp, 0x50
pop rbx
ret
Function at 0x1400c0880
Capabilities:
Hash data using djb2

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1400c08bb
movsx edx, byte [rcx]
lea r8, [rcx + 1]
mov eax, 0x1505
test dl, dl
je 0x1400c08b6
nop dword [rax]
mov ecx, eax
add r8, 1
shl ecx, 5
add eax, ecx
add eax, edx
movsx edx, byte [r8 - 1]
test dl, dl
jne 0x1400c08a0
add rsp, 0x28
ret
lea r9, [0x140193b98]
lea r8, [0x140193b9d]
mov ecx, 3
lea rdx, [0x140193bae]
call fcn.1400da2e0
mov eax, 0xffffffff
jmp 0x1400c08b6
Function at 0x1400d1390
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov qword [rcx], 0
mov rdi, rcx
mov r15, rdx
mov r10, r8
test rdx, rdx
je 0x1400d156d
test r8, r8
je 0x1400d156d
mov eax, 0xfffffffe
cmp rax, r8
jb 0x1400d1580
lea eax, [r8 - 1]
mov r14d, eax
mov edx, eax
shr r14d, 4
shr edx, 6
mov ecx, r14d
lea rcx, [rcx + rcx*2]
lea r8, [rcx*8 + 0x20]
cmp eax, 0x43f
jbe 0x1400d1620
mov ecx, 4
mov eax, 1
nop dword [rax]
add ecx, 1
cmp ecx, 0x1f
je 0x1400d163f
mov esi, eax
shl esi, cl
cmp esi, edx
jb 0x1400d1408
movsxd rax, esi
lea r13d, [rsi - 1]
mov qword [rsp + 0x38], rax
lea r11, [rax*8]
lea rcx, [r11 + r8]
mov rax, rcx
shr rax, 0x20
jne 0x1400d163f
mov rax, qword [0x14019f130]
mov qword [rsp + 0x30], r11
mov r8d, 0x13
lea rdx, [0x1401959b3]
mov qword [rsp + 0xa0], r10
mov qword [rsp + 0x28], rcx
call qword [rax]
mov rbp, rax
test rax, rax
je 0x1400d160a
mov rcx, qword [rsp + 0x28]
mov r11, qword [rsp + 0x30]
mov qword [rax + 8], r15
xor edx, edx
mov r10, qword [rsp + 0xa0]
mov dword [rax + 0x18], r13d
lea r12, [rax + 0x20]
mov dword [rax], ecx
mov r8, r11
mov rcx, r12
lea rbx, [r12 + r11]
mov qword [rax + 0x10], r10
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x38]
mov edx, 4
call fcn.1400bc480
mov r8, rax
test rax, rax
je 0x1400d1652
shl r14d, 4
mov rax, r15
mov edx, r14d
sub rdx, 0x10
add rax, rdx
jb 0x1400d15a7
lea r11, [rax + 1]
lea r9, [rax + 0x11]
mov r14d, 0xffffffff
sub r11, rdx
lea r10, [0x14019f4e0]
nop dword [rax]
movzx eax, byte [r9 - 0x10]
lea rdx, [r9 - 0xf]
nop dword [rax]
movzx r15d, byte [rdx]
mov ecx, eax
add rdx, 1
shl eax, 8
shr ecx, 0x17
or eax, r15d
xor eax, dword [r10 + rcx*4]
cmp r9, rdx
jne 0x1400d1508
lea rdx, [r9 - 1]
cmp r14d, eax
je 0x1400d159a
mov qword [rbx], rdx
mov edx, eax
sub r9, 0x10
and edx, r13d
mov dword [rbx + 8], eax
lea rcx, [r12 + rdx*8]
mov r14, qword [rcx]
mov qword [rbx + 0x10], r14
mov qword [rcx], rbx
add rbx, 0x18
add dword [r8 + rdx*4], 1
cmp r11, r9
je 0x1400d15a7
mov r14d, eax
jmp 0x1400d14f8
mov rax, qword [0x14019f130]
mov rcx, r8
call qword [rax + 0x10]
mov qword [rdi], rbp
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movabs r8, 0x180000008
mov edx, 0x3ffffff
mov r14d, 0xfffffff
jmp 0x1400d13fa
sub r9, 0x10
mov qword [rbx - 0x18], rdx
cmp r11, r9
jne 0x1400d1558
mov esi, esi
xor r10d, r10d
jmp 0x1400d15b9
add r10, 1
cmp r10, rsi
je 0x1400d155d
mov r9d, dword [r8 + r10*4]
cmp r9d, 0x3f
jbe 0x1400d15b0
mov rcx, qword [rbp + r10*8 + 0x20]
shr r9d, 7
nop dword [rax]
mov edx, r9d
mov rax, rcx
jmp 0x1400d15e5
test rax, rax
je 0x1400d1600
mov rax, qword [rax + 0x10]
sub edx, 1
jne 0x1400d15e0
mov qword [rcx + 0x10], rax
test rax, rax
je 0x1400d15b0
mov rcx, rax
jmp 0x1400d15d0
mov qword [rcx + 0x10], 0
jmp 0x1400d15b0
call fcn.1400da310
mov eax, 0xffffffff
jmp 0x1400d156f
mov qword [rsp + 0x38], 0x10
mov r11d, pe_nt_image_headers64
mov r13d, 0xf
mov esi, 0x10
jmp 0x1400d1430
lea rdx, str.overly_large_delta
mov ecx, 1
call fcn.1400da2e0
jmp 0x1400d160f
mov rax, qword [0x14019f130]
mov rcx, rbp
call qword [rax + 0x10]
jmp 0x1400d160f
Function at 0x1400dec30
Capabilities:
Enumerate files on windows

Disassembly:
push r12
mov eax, 0x22d0
push rbp
push rdi
push rsi
push rbx
call fcn.140083330
sub rsp, rax
lea rsi, [rsp + 0x2c0]
mov rdx, rcx
mov rdi, rcx
mov rcx, rsi
call fcn.140129270
mov ebx, eax
test al, al
jne 0x1400dec70
mov eax, ebx
add rsp, 0x22d0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rbp, [rsp + 0x70]
mov rcx, rsi
mov rdx, rbp
call qword [sym.imp.kernel32.dll_FindFirstFileW]
mov r12, qword [sym.imp.kernel32.dll_FindNextFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400decf0
nop dword [rax]
cmp word [rsp + 0x9c], 0x2e
je 0x1400decc0
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.kernel32.dll_FindClose]
mov eax, ebx
add rsp, 0x22d0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
movzx eax, word [rsp + 0x9e]
test ax, ax
je 0x1400dece0
cmp ax, 0x2e
jne 0x1400deca3
cmp word [rsp + 0xa0], 0
jne 0x1400deca3
nop
mov rdx, rbp
mov rcx, rsi
call r12
test eax, eax
jne 0x1400dec98
jmp 0x1400deca5
lea rdx, [rsp + 0x20]
mov rcx, rdi
xor ebx, ebx
call fcn.14014d390
test eax, eax
js 0x1400dec5f
movzx eax, word [rsp + 0x26]
and ax, 0xf000
cmp ax, 0x4000
sete bl
jmp 0x1400dec5f