joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b785c
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 0x1400b788c
xor eax, eax
jmp 0x1400b794f
mov rbp, rbx
cmp word [rax], si
je 0x1400b78b1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400b7898
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400b7894
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.1400b6164
movsxd r14, eax
test eax, eax
jne 0x1400b78ef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400b7885
mov rcx, r14
call fcn.1400ade18
mov rdi, rax
test rax, rax
jne 0x1400b7908
xor ecx, ecx
call fcn.1400adddc
jmp 0x1400b78e4
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.1400b6164
test eax, eax
jne 0x1400b7939
mov rcx, rdi
call fcn.1400adddc
jmp 0x1400b7943
xor ecx, ecx
call fcn.1400adddc
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 0x1400baac4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400ada04
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400bab65
cmp ebx, dword [rsp + 0x30]
je 0x1400bab5e
test esi, esi
je 0x1400bab5e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400bab39
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400bab46
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400bab23
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400bab4a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400bab67
mov eax, 1
jmp 0x1400bab67
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400bebcc
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.1400a2efc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400bec56
cmp byte [rbp - 0x21], r15b
je 0x1400bec51
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400bec8c
call fcn.1400b0484
test eax, eax
jne 0x1400bec78
cmp byte [rbp - 0x21], r15b
je 0x1400bec70
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400bec8c
cmp byte [rbp - 0x21], r15b
je 0x1400bec89
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.1400aa7d8
test eax, eax
jne 0x1400bed2c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400a2efc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400beccb
cmp byte [rbp - 0x21], r15b
je 0x1400bed00
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400bed00
call fcn.1400b0484
test eax, eax
jne 0x1400becec
cmp byte [rbp - 0x21], r15b
je 0x1400bece5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400bed00
cmp byte [rbp - 0x21], r15b
je 0x1400becfd
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.1400aa7d8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400bed2c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400bed2f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400bed3d
mov rcx, rdi
call fcn.1400adddc
cmp byte [rbp + 0x3f], r15b
je 0x1400bed4c
mov rcx, qword [rbp + 0x27]
call fcn.1400adddc
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 0x1400bfaac
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400b0f70
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400b0f70
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400bfbfc
cmp rax, 0xffffffffffffffff
je 0x1400bfbfc
xor edi, edi
test rbp, rbp
jle 0x1400bfba7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400add64
mov rbx, rax
test rax, rax
jne 0x1400bfb34
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400bfb9d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400abb44
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400b24ec
cmp eax, 0xffffffff
je 0x1400bfb7d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400bfb44
mov edx, r15d
mov ecx, r14d
call fcn.1400abb44
jmp 0x1400bfb9d
cmp byte [rsi + 0x38], dil
je 0x1400bfb94
cmp dword [rsi + 0x34], 5
jne 0x1400bfb94
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400bfb9d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400adddc
jmp 0x1400bfc10
jns 0x1400bfc10
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400b0f70
cmp rax, 0xffffffffffffffff
jne 0x1400bfbc8
cmp byte [rsi + 0x30], dil
je 0x1400bfc10
mov edi, dword [rsi + 0x2c]
jmp 0x1400bfc10
mov ecx, r14d
call fcn.1400b8570
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400bfc10
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400bfc10
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400bfc09
mov eax, dword [rsi + 0x2c]
jmp 0x1400bfc0e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400b0f70
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400c0a60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400c0a88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400c0a88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0xc3c160
Capabilities:
Decompress data using aplib

Disassembly:
call 0xc3c2e7
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0xc3c191
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xc3c177
add dl, dl
jne 0xc3c19e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xc3c1fe
xor eax, eax
add dl, dl
jne 0xc3c1ad
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xc3c2b5
add dl, dl
jne 0xc3c1be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc3c1cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc3c1d8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc3c1e5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xc3c1f2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xc3c186
mov eax, 1
add dl, dl
jne 0xc3c20e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc3c21b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xc3c203
sub eax, ebx
mov ebx, 1
jne 0xc3c254
mov ecx, 1
add dl, dl
jne 0xc3c236
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc3c243
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xc3c22b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xc3c186
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc3c270
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc3c27d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xc3c265
cmp eax, 0x7d00
jae 0xc3c2a3
cmp eax, 0x500
jb 0xc3c29e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xc3c186
cmp eax, 0x7f
ja 0xc3c2a6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xc3c186
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xc3c2da
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0xc3c186
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140005308
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x150
mov rax, qword [0x140026028]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov r10d, dword [rcx + 8]
mov rbx, rdx
mov r11d, r8d
and r10d, 0x3f
add qword [rcx + 8], r11
mov r9, rcx
test r8d, r8d
je 0x14000549e
mov al, byte [rbx]
dec r11d
mov byte [r10 + r9 + 0x10], al
inc rbx
inc r10d
cmp r10d, 0x40
jne 0x140005495
lea rdx, [r9 + 0x10]
xor r8d, r8d
movzx ecx, byte [rdx]
movzx eax, byte [rdx + 1]
lea rdx, [rdx + 4]
shl eax, 0x10
shl ecx, 0x18
or ecx, eax
movzx eax, byte [rdx - 2]
shl eax, 8
or ecx, eax
movzx eax, byte [rdx - 1]
or ecx, eax
mov dword [rsp + r8*4], ecx
inc r8
cmp r8, 0x10
jl 0x140005378
cmp r8, 0x50
jge 0x1400053d4
mov edx, 0x50
lea rcx, [rsp + r8*4 - 0x38]
sub rdx, r8
mov eax, dword [rcx + 0x2c]
xor eax, dword [rcx + 0x18]
xor eax, dword [rcx - 8]
xor eax, dword [rcx]
lea rcx, [rcx + 4]
rol eax, 1
mov dword [rcx + 0x34], eax
sub rdx, 1
jne 0x1400053ba
mov r15d, dword [r9 + 0x50]
xor r10d, r10d
mov r12d, dword [r9 + 0x54]
mov r14d, r15d
mov r13d, dword [r9 + 0x58]
mov esi, r12d
mov edi, dword [r9 + 0x5c]
mov r8d, r13d
mov ebp, dword [r9 + 0x60]
mov edx, r14d
rol edx, 5
add edx, dword [rsp + r10*4]
add edx, ebp
cmp r10, 0x14
jge 0x140005417
mov ecx, edi
xor ecx, r8d
and ecx, esi
xor ecx, edi
add ecx, 0x5a827999
jmp 0x140005455
cmp r10, 0x28
jge 0x14000542c
mov ecx, edi
xor ecx, r8d
xor ecx, esi
add ecx, 0x6ed9eba1
jmp 0x140005455
cmp r10, 0x3c
jge 0x140005448
mov ecx, r8d
mov eax, r8d
or ecx, esi
and eax, esi
and ecx, edi
or ecx, eax
add ecx, 0x8f1bbcdc
jmp 0x140005455
mov ecx, edi
xor ecx, r8d
xor ecx, esi
add ecx, 0xca62c1d6
add ecx, edx
mov ebp, edi
mov edi, r8d
inc r10
mov r8d, esi
mov esi, r14d
ror r8d, 2
mov r14d, ecx
cmp r10, 0x50
jl 0x1400053f4
add dword [r9 + 0x5c], edi
lea eax, [r15 + rcx]
add dword [r9 + 0x60], ebp
mov dword [r9 + 0x50], eax
xor r10d, r10d
lea eax, [r12 + rsi]
mov dword [r9 + 0x54], eax
lea eax, [r8 + r13]
mov dword [r9 + 0x58], eax
test r11d, r11d
jne 0x140005357
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140005f10
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140005784
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.SetDefaultDllDirectories
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400057b7
mov ecx, 0x800
call rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rcx, [rsp + 0x30]
mov rbx, rax
call fcn.14000220c
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400023c4
mov ebx, eax
test eax, eax
js 0x140005876
lea rdx, str.user
lea rcx, [rsp + 0x20]
call fcn.140001c74
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140002870
mov rdx, qword [rsp + 0x20]
test al, al
sete dil
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140005826
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, str.unregister
lea rcx, [rsp + 0x28]
call fcn.140001c74
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140002870
mov rdx, qword [rsp + 0x28]
test al, al
sete bl
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000586a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov dl, bl
mov cl, dil
call fcn.1400056c0
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.14000234c
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140007b80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, qword [rcx + 0x10]
xor r14d, r14d
mov r15, qword [rcx + 8]
mov rbx, rdx
mov r13, rcx
mov esi, r14d
test r12, r12
je 0x140007c93
nop
mov rdi, qword [r15 + rsi*8]
mov rax, qword [rdi + 0x20]
lea rbx, [rax + 0xf]
and rbx, 0xfffffffffffffff0
sub rbx, rax
je 0x140007bfc
nop word [rax + rax]
mov rdx, qword [rdi + 0x10]
lea rcx, [rdi + 0x18]
mov r8d, 1
call fcn.140007ed0
mov byte [rax], 0xfe
sub rbx, 1
jne 0x140007be0
inc rsi
cmp rsi, r12
jb 0x140007bc0
mov rdx, r14
mov rcx, r14
nop word [rax + rax]
mov rax, qword [r15 + rcx*8]
mov qword [rax + 8], rdx
mov rax, qword [r15 + rcx*8]
inc rcx
add rdx, qword [rax + 0x20]
cmp rcx, r12
jb 0x140007c10
mov rbx, r14
nop dword [rax + rax]
mov r10, qword [r15 + rbx*8]
mov rax, qword [r10 + 0x30]
mov rcx, qword [r10 + 0x38]
mov rdi, qword [r10 + 8]
lea rdx, [rcx + rcx*2]
lea r11, [rax + rdx*8]
cmp rax, r11
je 0x140007c86
nop dword [rax]
movsxd rcx, dword [rax + 8]
mov r9, qword [rax]
mov rdx, qword [r15 + rcx*8]
mov r8, qword [rdx + 8]
sub r8, r9
sub r8, rdi
add r8, qword [rax + 0x10]
movsxd rcx, r8d
cmp rcx, r8
jne 0x140007d53
mov rcx, qword [r10 + 0x18]
add rax, 0x18
mov dword [r9 + rcx], r8d
cmp rax, r11
jne 0x140007c50
inc rbx
cmp rbx, r12
jb 0x140007c30
mov rbx, qword [rsp + 0x58]
lea rdx, [0x140088db0]
mov rcx, rbx
call fcn.140014890
mov rsi, rax
test rax, rax
jne 0x140007ccf
call fcn.14005688c
mov ecx, dword [rax]
call fcn.1400568ac
mov r9, rax
lea rdx, str.Failed_to_open___s_:__s
mov r8, rbx
lea ecx, [rsi + 2]
call fcn.140013c50
xor al, al
jmp 0x140007d36
mov rbp, qword [r13 + 0x10]
mov dil, 1
mov r15, qword [r13 + 8]
nop word [rax + rax]
cmp r14, rbp
jae 0x140007d2a
mov rcx, qword [r15 + r14*8]
mov r9, rsi
mov edx, 1
mov rbx, qword [rcx + 0x20]
mov rcx, qword [rcx + 0x18]
mov r8, rbx
call fcn.140056750
cmp rbx, rax
sete dil
jne 0x140007d14
inc r14
test dil, dil
jne 0x140007ce0
jmp 0x140007d2a
mov r8, qword [rsp + 0x58]
lea rdx, str.BinarySegmentWrite_failed_when_writing___s_
mov ecx, 2
call fcn.140013c50
mov rcx, rsi
call fcn.14005649c
movzx eax, dil
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, str.pointer_relocation_too_big
call fcn.140013b50
int3
Function at 0x1400146b0
Capabilities:
Delete directory
Delete file

Disassembly:
push rbx
sub rsp, 0x70
mov rbx, rcx
mov rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.140028b60
movups xmm1, xmmword [rax]
movd eax, xmm1
movups xmmword [rsp + 0x20], xmm1
test al, 1
jne 0x1400146de
mov al, 1
add rsp, 0x70
pop rbx
ret
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140013ff0
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140014240
mov eax, dword [rsp + 0x20]
lea rcx, [rsp + 0x50]
shr eax, 3
test al, 1
je 0x14001471b
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14001472d
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rsp + 0x68]
cmp eax, 1
sete bl
cmp rdx, 8
jb 0x140014771
mov rcx, qword [rsp + 0x50]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001476c
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001477a
mov rcx, r8
call fcn.14004c810
movzx eax, bl
add rsp, 0x70
pop rbx
ret
call fcn.1400561ac
int3

Function at 0x140014780
Capabilities:
Move file

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rdx
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.140013ff0
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140013ff0
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140014240
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140014240
cmp qword [rsp + 0x38], 8
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
mov r8d, 1
cmovae rdx, qword [rsp + 0x20]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rdx, qword [rsp + 0x38]
test eax, eax
setne bl
cmp rdx, 8
jb 0x14001482c
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140014827
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140014888
mov rcx, r8
call fcn.14004c810
mov rdx, qword [rsp + 0x58]
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], ax
cmp rdx, 8
jb 0x14001487f
mov rcx, qword [rsp + 0x40]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001487a
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140014888
mov rcx, r8
call fcn.14004c810
movzx eax, bl
add rsp, 0x60
pop rbx
ret
call fcn.1400561ac
int3
Function at 0x140015840
Capabilities:
Hash data using djb2

Disassembly:
push rbx
push r12
push r15
sub rsp, 0x4c0
mov r12, r9
mov rbx, r8
mov r15, rcx
call fcn.140016040
cmp eax, 0xffffffff
je 0x1400158ae
movsxd rdx, eax
mov rax, qword [r15 + 0x28]
lea r9, [rax + rdx*4]
test r9, r9
je 0x1400158ae
mov rax, qword [r15 + 0x60]
xor r8d, r8d
add rax, 0x10
movsxd rcx, dword [rax]
sub r8d, ecx
neg r8d
lea rdx, [rax + rcx]
sbb rax, rax
and rdx, rax
movsxd rax, dword [r9]
imul rcx, rax, 0xb0
mov al, 1
add rdx, rcx
mov qword [r12], rdx
add rsp, 0x4c0
pop r15
pop r12
pop rbx
ret
mov qword [rsp + 0x4e0], rbp
lea rcx, [rsp + 0x220]
mov qword [rsp + 0x4e8], rsi
mov rdx, rbx
mov qword [rsp + 0x4f0], rdi
mov qword [rsp + 0x4b8], r13
mov qword [rsp + 0x4b0], r14
call fcn.1400408e0
mov r13d, 0xffff
nop dword [rax]
movzx eax, word [rsp + 0x224]
movzx ecx, word [rsp + 0x226]
shr ax, 1
and ax, 1
cmp cx, ax
jbe 0x14001591c
add cx, r13w
mov al, 1
mov word [rsp + 0x226], cx
jmp 0x14001591e
xor al, al
test al, al
je 0x140015a2f
lea rdx, [rsp + 0x220]
lea rcx, [rsp + 0x20]
call fcn.140040c50
movzx edx, byte [rsp + 0x20]
lea r9, [rsp + 0x21]
mov r8d, 0x1505
test edx, edx
je 0x140015970
nop dword [rax]
lea eax, [rdx - 0x41]
cmp eax, 0x1a
lea ecx, [rdx + 0x20]
lea r9, [r9 + 1]
cmovb edx, ecx
imul r8d, r8d, 0x21
add r8d, edx
movzx edx, byte [r9 - 1]
test edx, edx
jne 0x140015950
mov eax, dword [r15 + 0x40]
test r8d, r8d
mov edi, 1
cmovne edi, r8d
test eax, eax
je 0x1400158f0
mov rsi, qword [r15 + 0x30]
lea ebp, [rax - 1]
mov r14, qword [r15 + 0x38]
mov ebx, ebp
and ebx, edi
mov ecx, ebx
mov eax, dword [rsi + rbx*4]
test eax, eax
je 0x1400158f0
cmp edi, eax
jne 0x1400159c4
mov rcx, qword [r14 + rcx*8]
lea rax, [rsp + 0x20]
cmp rcx, rax
je 0x1400159d6
lea rdx, [rsp + 0x20]
call fcn.140007fb0
test eax, eax
je 0x1400159d6
inc ebx
and ebx, ebp
mov ecx, ebx
mov eax, dword [rsi + rbx*4]
test eax, eax
jne 0x1400159a4
jmp 0x1400158f0
cmp ebx, 0xffffffff
je 0x1400158f0
mov rax, qword [r15 + 0x58]
movsxd rcx, ebx
lea rdx, [rax + rcx*4]
test rdx, rdx
je 0x1400158f0
movsxd r9, dword [rdx]
xor r8d, r8d
cmp r9d, 0xffffffff
je 0x140015a27
mov rax, qword [r15 + 0x60]
add rax, 0x10
movsxd rcx, dword [rax]
sub r8d, ecx
neg r8d
lea rdx, [rax + rcx]
sbb rax, rax
imul rcx, r9, 0xb0
mov r8, rdx
and r8, rax
add r8, rcx
mov qword [r12], r8
mov al, 1
jmp 0x140015a31
xor al, al
mov r13, qword [rsp + 0x4b8]
mov rdi, qword [rsp + 0x4f0]
mov rsi, qword [rsp + 0x4e8]
mov rbp, qword [rsp + 0x4e0]
mov r14, qword [rsp + 0x4b0]
add rsp, 0x4c0
pop r15
pop r12
pop rbx
ret
Function at 0x140015a70
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rsi, rcx
mov edi, 1
mov rcx, r9
mov rbp, r9
lea edx, [rdi + 0x2d]
call fcn.14004d7b8
test rax, rax
je 0x140015be9
movzx edx, byte [rax]
lea r9, [rax + 1]
mov r8d, 0x1505
test edx, edx
je 0x140015ae0
nop word [rax + rax]
lea eax, [rdx - 0x41]
cmp eax, 0x1a
lea ecx, [rdx + 0x20]
lea r9, [r9 + 1]
cmovb edx, ecx
imul r8d, r8d, 0x21
add r8d, edx
movzx edx, byte [r9 - 1]
test edx, edx
jne 0x140015ac0
mov r11, qword [rsi + 0x60]
test r8d, r8d
movsxd rcx, dword [r11 + 0x60]
mov r10d, edi
cmovne r10d, r8d
xor eax, eax
sub eax, ecx
lea r8, [r11 + 0x60]
neg eax
lea r9, [r8 + rcx]
movsxd rcx, dword [r8]
sbb rax, rax
and r9, rax
xor eax, eax
sub eax, ecx
neg eax
lea rdx, [r8 + rcx]
sbb rax, rax
and rdx, rax
movsxd rax, dword [r11 + 0x5c]
lea rcx, [rdx + rax*4]
cmp r9, rcx
je 0x140015b3b
cmp dword [r9], r10d
je 0x140015b36
add r9, 4
cmp r9, rcx
jne 0x140015b26
jmp 0x140015b3b
mov edi, 2
mov eax, dword [rbx + 0xa4]
bt eax, 0xc
jb 0x140015be4
bt eax, 0xe
jae 0x140015b58
mov edi, 2
jmp 0x140015b61
cmp edi, 2
jne 0x140015be9
movsxd rcx, dword [r11 + 0x68]
lea r8, [r11 + 0x68]
xor eax, eax
sub eax, ecx
neg eax
lea rbx, [r8 + rcx]
movsxd rcx, dword [r8]
sbb rax, rax
and rbx, rax
xor eax, eax
sub eax, ecx
neg eax
lea rdx, [r8 + rcx]
sbb rax, rax
and rdx, rax
movsxd rax, dword [r11 + 0x64]
lea rsi, [rdx + rax*4]
cmp rbx, rsi
je 0x140015be9
nop dword [rax]
movsxd rcx, dword [rbx]
xor eax, eax
sub eax, ecx
mov r8, 0xffffffffffffffff
neg eax
sbb rax, rax
lea r9, [rbx + rcx]
and r9, rax
nop word [rax + rax]
inc r8
cmp byte [r9 + r8], 0
jne 0x140015bc0
mov rdx, rbp
mov rcx, r9
call fcn.140057830
test eax, eax
je 0x140015be4
add rbx, 4
cmp rbx, rsi
jne 0x140015ba0
jmp 0x140015be9
mov edi, 1
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret