joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b5e50
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x1400b602f
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.1400b2560
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x1400b5ff4
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x14]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x15]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x16]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x17]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x1400b5f6c
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x1400b5fe3
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x1400b5fa9
mov r10, qword [rdx]
cmp r10, rax
je 0x1400b5fa3
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x1400b5fe3
cmp r9, rdx
je 0x1400b5fbf
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x1400b6009
cmp r9, rdx
jne 0x1400b5fb0
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x1400b5ef0
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x1400b5fe3
lea rcx, str.invalid_hash_bucket_count
call fcn.1400eba14
int3
Function at 0x1400b9cb0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x1400b9ebf
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.1400b2560
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x1400b9e84
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop dword [rax + rax]
mov r10, qword [rax + 0x10]
mov r11, qword [rsi + 0x30]
mov rdx, r10
mov rcx, qword [rcx]
shr rdx, 8
movzx r9d, dl
movzx edx, r10b
xor rdx, rbp
imul rdx, rdi
xor r9, rdx
mov rdx, r10
imul r9, rdi
shr rdx, 0x10
movzx r8d, dl
mov rdx, r10
xor r9, r8
shr rdx, 0x18
imul r9, rdi
movzx r8d, dl
mov rdx, r10
xor r9, r8
shr rdx, 0x20
imul r9, rdi
movzx r8d, dl
mov rdx, r10
xor r9, r8
shr rdx, 0x28
imul r9, rdi
movzx r8d, dl
mov rdx, r10
xor r9, r8
shr rdx, 0x30
imul r9, rdi
movzx r8d, dl
mov rdx, r10
xor r9, r8
shr rdx, 0x38
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r8, qword [r11]
cmp r8, rbx
jne 0x1400b9dfc
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x1400b9e73
mov rdx, qword [r11 + 8]
cmp r10, qword [rdx + 0x10]
jne 0x1400b9e35
mov r10, qword [rdx]
cmp r10, rax
je 0x1400b9e2f
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x1400b9e73
cmp r8, rdx
je 0x1400b9e4f
nop word [rax + rax]
mov rdx, qword [rdx + 8]
cmp r10, qword [rdx + 0x10]
je 0x1400b9e99
cmp r8, rdx
jne 0x1400b9e40
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x1400b9d50
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x1400b9e73
lea rcx, str.invalid_hash_bucket_count
call fcn.1400eba14
int3

Function at 0x1400bc070
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
cmp rcx, rdx
je 0x1400bc0aa
nop dword [rax + rax]
movsx r9d, byte [rcx]
mov rax, r8
shl rax, 6
sub r9d, 0x61c88647
add r9, rax
inc rcx
mov rax, r8
shr rax, 2
add r9, rax
xor r8, r9
cmp rcx, rdx
jne 0x1400bc080
movabs rax, 0x200000005
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x1e
imul eax, eax, 0x7fffffff
sub r8d, eax
bts r8d, 0x1e
mov eax, r8d
ret
Function at 0x1400e86e0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x20
movzx eax, byte [rsp + 0x39]
movabs rdi, 0x100000001b3
mov r10, qword [rcx + 0x38]
movabs rsi, 0xcbf29ce484222325
mov r11, qword [rcx + 0x20]
mov r9, rcx
movzx r8d, dl
xor r8, rsi
imul r8, rdi
xor r8, rax
movzx eax, byte [rsp + 0x3a]
imul r8, rdi
xor r8, rax
movzx eax, byte [rsp + 0x3b]
imul r8, rdi
xor r8, rax
mov rax, r10
imul r8, rdi
and rax, r8
mov r8, qword [rcx + 0x10]
add rax, rax
mov rbx, qword [r11 + rax*8 + 8]
cmp rbx, r8
je 0x1400e8771
mov rax, qword [r11 + rax*8]
cmp edx, dword [rbx + 0x10]
je 0x1400e8773
cmp rbx, rax
je 0x1400e8771
mov rbx, qword [rbx + 8]
cmp edx, dword [rbx + 0x10]
jne 0x1400e8761
jmp 0x1400e8773
xor ebx, ebx
test rbx, rbx
cmove rbx, r8
cmp rbx, r8
je 0x1400e883d
movzx eax, byte [rbx + 0x11]
movzx ecx, byte [rbx + 0x10]
xor rcx, rsi
imul rcx, rdi
xor rcx, rax
movzx eax, byte [rbx + 0x12]
imul rcx, rdi
xor rcx, rax
movzx eax, byte [rbx + 0x13]
imul rcx, rdi
xor rcx, rax
imul rcx, rdi
and r10, rcx
add r10, r10
mov rax, qword [r11 + r10*8]
cmp qword [r11 + r10*8 + 8], rbx
jne 0x1400e87db
cmp rax, rbx
jne 0x1400e87d0
mov qword [r11 + r10*8], r8
mov qword [r11 + r10*8 + 8], r8
jmp 0x1400e87e7
mov r8, qword [rbx + 8]
mov qword [r11 + r10*8 + 8], r8
jmp 0x1400e87e7
cmp rax, rbx
jne 0x1400e87e7
mov rax, qword [rbx]
mov qword [r11 + r10*8], rax
mov rcx, qword [rbx]
lea rdi, [rbx + 0x18]
dec qword [r9 + 0x18]
mov rax, qword [rbx + 8]
mov qword [rax], rcx
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x1400e881e
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
mov qword [rdi + 0x38], 0
mov edx, 0x58
mov rcx, rbx
call fcn.14011460c
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400eb620
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x1400eb7cf
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.1400b2560
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x1400eb794
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rbp
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, qword [rsi + 0x30]
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x1400eb70d
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x1400eb783
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x1400eb74a
mov r10, qword [rdx]
cmp r10, rax
je 0x1400eb744
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x1400eb783
cmp r9, rdx
je 0x1400eb75f
nop
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x1400eb7a9
cmp r9, rdx
jne 0x1400eb750
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x1400eb6c0
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x1400eb783
lea rcx, str.invalid_hash_bucket_count
call fcn.1400eba14
int3

Function at 0x14010ad04
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x1400f6076
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x1400f6059
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x1400f6044
Function at 0x1401155f8
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140185220]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x48], rdx
mov esi, dword [rdx]
mov eax, 0x80000000
mov r10d, 0xc0000000
cmp esi, 2
cmovne r10d, eax
cmp qword [rdx + 0x18], 0
je 0x14011660e
cmp esi, 2
mov edx, 2
je 0x140116613
mov edx, 3
mov eax, 0x100
mov r8d, 1
cmp esi, 2
cmovne eax, r8d
cmp byte [rdi + 0x68], 0
je 0x140116658
lea rcx, [rdi + 0x48]
cmp qword [rcx + 0x18], 8
jb 0x140116639
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
xor r9d, r9d
mov edx, r10d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x140116683
lea rcx, [rdi + 0x28]
cmp qword [rcx + 0x18], 0x10
jb 0x140116666
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
xor r9d, r9d
mov edx, r10d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
mov qword [rbx + 0x80], rax
cmp rax, 0xffffffffffffffff
je 0x1401167a4
mov rdx, qword [rdi + 0x18]
test rdx, rdx
je 0x1401166e6
cmp esi, 2
jne 0x1401166e6
mov rax, rdx
sar rax, 0x20
mov dword [rsp + 0x40], eax
xor r9d, r9d
lea r8, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1401166d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401167b4
mov rcx, qword [rbx + 0x80]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1401167b4
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x140155a58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x80]
test rax, rax
je 0x140116725
lea rdx, [rsp + 0x40]
call rax
test eax, eax
je 0x140116784
movsxd rcx, dword [rsp + 0x44]
mov eax, dword [rsp + 0x40]
jmp 0x14011673b
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x140116794
mov ecx, dword [rsp + 0x40]
mov eax, eax
shl rcx, 0x20
or rcx, rax
mov rax, qword [rdi + 0x10]
cmp rax, 0xffffffffffffffff
je 0x140116755
cmp rcx, rax
cmovl rax, rcx
jmp 0x140116758
mov rax, rcx
mov qword [rbx + 0x78], rax
lea rcx, [rdi + 0x28]
call fcn.1400b9000
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401145b0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rdx, str.failed_querying_file_size
mov rcx, rbx
call fcn.140115fd0
int3
lea rdx, str.failed_querying_file_size
mov rcx, rbx
call fcn.140115fd0
int3
lea rdx, str.failed_opening_file
mov rcx, rbx
call fcn.140115fd0
int3
lea rdx, str.failed_setting_file_size
mov rcx, rbx
call fcn.140115fd0
int3
Function at 0x14011cd98
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14011cbf7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14011cbf7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14011cbf7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14011cbf7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14011cbf7
cmp dword [rcx + 0x84], 0xe
jbe 0x14011cbf7
cmp dword [rcx + 0xf8], 0
je 0x14011cbf7
mov ecx, ebx
call fcn.14011ccb4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14011ca84
nop
cmp dword [rbp + 0x20], 0
je 0x14011cc45
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14011cc50
int3
xor r8d, r8d
xor edx, edx
jmp 0x14011cb88

Function at 0x14012c674
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x14012c6af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14011e6f8
call fcn.14011e784
mov eax, dword [rax]
jmp 0x14012c726
cmp rdi, qword [rbx + 0x18]
ja 0x14012c6bb
mov qword [rbx + 0x20], rdi
jmp 0x14012c724
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x14012c6d2
mov rcx, qword [rbx + 0x10]
call fcn.1401382b0
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.140138364
mov qword [rbx + 0x10], rax
mov r8, rax
neg rax
mov edx, 0
sbb eax, eax
not eax
and eax, 0xc
cmove rdx, rsi
test eax, eax
sete cl
mov byte [rbx + 0x28], cl
mov qword [rbx + 0x18], rdx
test eax, eax
jne 0x14012c726
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x14012c699
mov qword [rbx + 0x20], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140139b30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140139b62
call fcn.14011e784
mov dword [rax], 0x16
call fcn.14011c984
jmp 0x140139c81
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140139c81
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140139c81
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140139b91
lock or dword [rcx + 0x14], 0x10
jmp 0x140139c81
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140139ba5
call fcn.14013a094
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1401395a4
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14013bca4
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140139c6f
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140139c3a
mov rcx, rsi
call fcn.1401395a4
cmp eax, edi
je 0x140139c25
mov rcx, rsi
call fcn.1401395a4
cmp eax, 0xfffffffe
je 0x140139c25
mov rcx, rsi
call fcn.1401395a4
movsxd rbx, eax
lea r14, [0x14018b850]
mov rcx, rsi
sar rbx, 6
call fcn.1401395a4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140139c2c
lea rdx, [0x140185600]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140139c3a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140139c5e
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140139c5e
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140139c5e
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140139c84
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14013b578
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140115240
sub rsp, rax
mov rax, qword [0x140185220]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401395a4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14013b5c7
mov rax, rbp
jmp 0x14013b6cf
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x18b850]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14013b1bc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x18b850]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14013b6cb
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14013b6cb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14013b1bc
test rax, rax
js 0x14013b6cb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14013b6cb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14013b6bd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14013b6bd
cmp byte [rcx], 0xd
jne 0x14013b6a3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14013b6b2
cmp byte [rcx + 1], 0xa
jne 0x14013b6b2
inc rcx
jmp 0x14013b6b2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x185650]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14013b685
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14013b6cf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401145b0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14013b7f8
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14018b850]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14013b856
cmp word [rdx], r12w
jne 0x14013b856
or byte [rax + r8*8 + 0x38], cl
jmp 0x14013b85c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14013b9b7
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14013b992
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14013b895
mov rcx, r9
jmp 0x14013b8b8
cmp r9, rdx
jae 0x14013b8cf
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14013b879
jmp 0x14013b9b7
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14013b98c
cmp dword [rsp + 0x80], edi
je 0x14013b98c
mov rdx, r14
lea r11, [0x14018b850]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14013b965
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14013b938
mov word [rbx], r12w
jmp 0x14013b9b3
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14013b941
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14013b9b3
cmp word [rsp + 0x70], r12w
jne 0x14013b972
cmp rbx, rsi
je 0x14013b932
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14013b1c4
cmp word [rsp + 0x70], r12w
je 0x14013b9b7
mov word [rbx], r13w
jmp 0x14013b9b3
lea r11, [0x14018b850]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14013b9af
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14013b9b7
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140141340
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1401413c7
mov rsi, rbx
cmp word [rax], bp
je 0x140141386
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140141370
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14014136c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140138364
mov rdi, rax
test rax, rax
je 0x1401413b4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140118050
mov rbp, rdi
xor ecx, ecx
call fcn.1401382b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret