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

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rsi, rdx
cmp dword [rcx], 2
jne 0x140038096
movdqu xmm0, xmmword [rcx + 8]
pshufd xmm1, xmm0, 0x44
pxor xmm1, xmmword [str.uespemosarenegylmodnarodsetybdet]
movdqa xmmword [rsp + 0x30], xmm1
pshufd xmm1, xmm0, 0xee
pxor xmm1, xmmword [0x140113750]
movdqa xmmword [rsp + 0x40], xmm1
movdqa xmmword [rsp + 0x50], xmm0
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
mov rdi, qword [rsi]
xor eax, eax
test rdi, rdi
setne al
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov r8d, 8
call fcn.140007050
test rdi, rdi
je 0x140038125
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
lea rcx, [rsp + 0x30]
jmp 0x14003813e
mov rdx, qword [rsi]
xor ecx, ecx
test rdx, rdx
setne cl
movabs rax, 0xcbf29ce484222325
xor rax, rcx
movabs rcx, 0x1efac7090aef4a21
imul rax, rcx
test rdx, rdx
je 0x140038236
mov r9, qword [rsi + 0x10]
test r9, r9
je 0x1400382b8
mov rcx, qword [rsi + 8]
movabs rdx, 0x100000001b3
mov r10, r9
and r10, 7
je 0x140038243
mov r11, rax
mov r8, rcx
nop word cs:[rax + rax]
movzx eax, byte [r8]
inc r8
xor rax, r11
imul rax, rdx
mov r11, rax
dec r10
jne 0x140038100
cmp r9, 8
jae 0x14003824c
jmp 0x1400382b8
movzx eax, byte [rsi + 8]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov r8d, 8
call fcn.140007050
mov rcx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x60]
shl r9, 0x38
or r9, qword [rsp + 0x68]
mov rax, qword [rsp + 0x48]
mov r8, qword [rsp + 0x30]
add r8, rcx
rol rcx, 0xd
xor rax, r9
xor rcx, r8
rol r8, 0x20
mov rdx, qword [rsp + 0x38]
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rax, r8
xor rcx, rdx
rol rdx, 0x20
xor r8, r9
add r8, rcx
rol rcx, 0xd
xor rcx, r8
rol r8, 0x20
xor rdx, 0xff
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rcx, rdx
rol rdx, 0x20
xor rax, r8
add r8, rcx
rol rcx, 0xd
xor rcx, r8
rol r8, 0x20
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rcx, rdx
rol rdx, 0x20
xor rax, r8
add r8, rcx
rol rcx, 0xd
xor rcx, r8
add rdx, rax
shl rax, 0x10
xor rax, rdx
shr rax, 0x2b
add rdx, rcx
shr rcx, 0x2f
xor rcx, rax
mov rax, rdx
shr rax, 0x20
xor rax, rdx
xor rax, rcx
jmp 0x1400382b8
movzx edx, byte [rsi + 8]
xor rax, rdx
imul rax, rcx
jmp 0x1400382b8
mov r8, rcx
cmp r9, 8
jb 0x1400382b8
add rcx, r9
nop
movzx r9d, byte [r8]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 1]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 2]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 3]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 4]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 5]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 6]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 7]
add r8, 8
xor rax, r9
imul rax, rdx
cmp r8, rcx
jne 0x140038250
and eax, 0x7fff
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x140040780
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov r15, rdx
mov qword [rsp + 0x40], rcx
cmp rdx, 0x15
jae 0x1400407d1
cmp r15, 1
jbe 0x140040e45
mov r8d, 1
mov rcx, qword [rsp + 0x40]
mov rdx, r15
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.140041270
lea rax, [r15*4]
movabs rdx, 0x7ffffffffffffff8
and rdx, rax
movzx eax, byte [0x140182310]
xor ecx, ecx
call fcn.1400df910
test rax, rax
je 0x140040f5e
mov rsi, rax
movzx eax, byte [0x140182310]
mov edx, 0x100
xor ecx, ecx
call fcn.1400df910
test rax, rax
je 0x140040f6a
mov rdi, rax
mov rax, qword [rsp + 0x40]
lea rcx, [rax + 0xc]
mov qword [rsp + 0x58], rcx
add rax, 0xfffffffffffffff8
mov qword [rsp + 0x50], rax
mov eax, 0x10
mov qword [rsp + 0x48], rax
xor r13d, r13d
movabs rbp, 0x1ffffffffffffffe
xor r14d, r14d
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], r15
jmp 0x140040874
nop
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140041330
Capabilities:
Encrypt data using speck

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x2e8
movdqa xmmword [rsp + 0x2d0], xmm15
movdqa xmmword [rsp + 0x2c0], xmm14
movdqa xmmword [rsp + 0x2b0], xmm13
movdqa xmmword [rsp + 0x2a0], xmm12
movdqa xmmword [rsp + 0x290], xmm11
movdqa xmmword [rsp + 0x280], xmm10
movdqa xmmword [rsp + 0x270], xmm9
movdqa xmmword [rsp + 0x260], xmm8
movdqa xmmword [rsp + 0x250], xmm7
movaps xmmword [rsp + 0x240], xmm6
mov r13, rdx
mov r12, rcx
mov r15, qword [rsp + 0x350]
test r9, r9
je 0x1400414de
lea rax, [r8 + r9]
xor edx, edx
movdqa xmm0, xmmword [str.xn__]
mov rcx, r8
jmp 0x1400413df
xor r11d, r11d
mov rdx, r11
cmp rcx, rax
je 0x14004225e
movzx ebx, byte [rcx]
movzx r10d, bl
test r10b, r10b
js 0x140041400
inc rcx
cmp r10d, 0x2e
jne 0x140041480
jmp 0x1400413d0
mov r11d, r10d
and r11d, 0x1f
movzx esi, byte [rcx + 1]
and esi, 0x3f
cmp r10b, 0xdf
jbe 0x140041450
movzx r10d, byte [rcx + 2]
shl esi, 6
and r10d, 0x3f
or r10d, esi
cmp bl, 0xf0
jb 0x140041469
movzx esi, byte [rcx + 3]
add rcx, 4
and r11d, 7
shl r11d, 0x12
shl r10d, 6
and esi, 0x3f
or esi, r10d
or esi, r11d
mov r10d, esi
cmp r10d, 0x2e
jne 0x140041480
jmp 0x1400413d0
add rcx, 2
shl r11d, 6
or r11d, esi
mov r10d, r11d
cmp r10d, 0x2e
jne 0x140041480
jmp 0x1400413d0
add rcx, 3
shl r11d, 0xc
or r10d, r11d
cmp r10d, 0x2e
je 0x1400413d0
nop
cmp r10d, 0x110000
je 0x14004225e
test rdx, rdx
jne 0x140041498
cmp r10d, 0x2d
je 0x1400414de
mov r11d, 5
cmp rdx, 4
ja 0x1400414c3
movdqa xmmword [rsp + 0x60], xmm0
je 0x1400424c7
cmp r10d, dword [rsp + rdx*4 + 0x60]
jne 0x1400414c3
inc rdx
mov r11, rdx
cmp rdx, 4
je 0x1400414de
lea edx, [r10 - 0x61]
cmp edx, 0x1a
jb 0x1400413d3
add r10d, 0xffffffd0
cmp r10d, 9
jbe 0x1400413d3
mov qword [rsp + 0x1d0], r12
mov eax, dword [r13 + 0x30]
movzx ecx, byte [r13 + 0x34]
add r9, r8
xorps xmm6, xmm6
movups xmmword [rsp + 0xc8], xmm6
mov byte [rsp + 0xd8], 0
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x70], 0
add byte [rax], al
add byte [rsi - 0x39], ah
and al, 0x74
add byte [rax], al
mov rax, qword [r15]
mov r14, qword [r15 + 0x10]
sub rax, r14
cmp rax, r9
jb 0x1400424a4
lea r8, str.C:UsersUser.cargo_registry_srcindex.crates.io_6f17d22bba15001fidna_0.5.0_srcuts46.rs
mov ecx, 4
mov edx, 4
call fcn.1401085b0
Function at 0x140055f00
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rax, r8
mov r14, rdx
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x60]
mov r8d, 0xb
mov rdx, rax
call fcn.140055c00
mov dword [rsp + 0x38], 0x800
mov dword [rsp + 0x3c], 0
movzx eax, byte [0x140182310]
mov edx, 0x800
xor ecx, ecx
call fcn.1400df910
test rax, rax
je 0x140056087
mov rbx, rax
mov qword [rsp + 0x48], 0x800
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
mov rdi, qword [rsp + 0x68]
lea rbp, [rsp + 0x38]
lea r15, [rsp + 0x3c]
mov r12, qword [sym.imp.advapi32.dll_RegQueryValueExW]
mov rsi, qword [rsp + 0x48]
mov r13, qword [rsp + 0x58]
sub rsi, r13
nop word [rax + rax]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbx
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call r12
cmp eax, 0xea
jne 0x140055fde
mov r8d, dword [rsp + 0x38]
cmp rsi, r8
jae 0x140055fa0
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.140108ba0
mov rbx, qword [rsp + 0x50]
jmp 0x140055f8a
test eax, eax
jne 0x140056000
mov eax, dword [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x3c]
cmp eax, 0xb
jbe 0x140056064
movabs rax, 0xde00000002
jmp 0x140056008
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 8], rax
movabs rax, 0x8000000000000000
mov qword [rcx], rax
cmp qword [rsp + 0x48], 0
je 0x140056038
mov rcx, qword [0x140182260]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rsp + 0x60], 0
je 0x140056052
mov rcx, qword [0x140182260]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x40]
mov qword [rdx + 0x10], rcx
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rdx], xmm0
mov byte [rdx + 0x18], al
cmp qword [rsp + 0x60], 0
jne 0x140056040
jmp 0x140056052
mov ecx, 1
mov edx, 0x800
call fcn.1401082a0
int3

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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x728
movdqa xmmword [rsp + 0x710], xmm10
movdqa xmmword [rsp + 0x700], xmm9
Function at 0x140001e5e
Capabilities:
Set environment variable

Disassembly:
push rsi
sub rsp, 0x150
mov rax, qword [0x14005b7d8]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov r8d, 2
xor ecx, ecx
movabs r9, 0xcccccccccccccccd
lea r10, [0x14005a048]
mov rax, rcx
mul r9
mov rsi, rdx
mov rax, r8
mul r9
shr rdx, 2
lea eax, [rdx + rdx*4]
add eax, 0xfffffffe
cmp eax, ecx
je 0x140001edd
shr rsi, 2
lea rax, [rsi + rsi*4]
cmp eax, ecx
je 0x140001ed3
mov eax, dword [0x14005a048]
add eax, ecx
imul eax, eax, 0x143fd
add eax, 0x16bcb
bt eax, 0x10
jb 0x140001edd
mov al, byte [rcx + r10 + 0xe]
mov byte [rcx + r10 + 4], al
inc rcx
inc r8
cmp rcx, 0xa
jne 0x140001e91
mov ecx, 2
xor esi, esi
mov r8d, 0xcccccccd
lea r10, [0x14005a060]
mov rax, rcx
mul r9
shr rdx, 2
lea eax, [rdx + rdx*4]
add eax, 0xfffffffe
cmp eax, esi
je 0x140001f47
mov eax, esi
imul rax, r8
shr rax, 0x22
lea eax, [rax + rax*4]
neg eax
add eax, esi
je 0x140001f3d
mov eax, dword [0x14005a060]
add eax, esi
imul eax, eax, 0x143fd
add eax, 0x16bcb
bt eax, 0x10
jb 0x140001f47
mov al, byte [rsi + r10 + 0x13]
mov byte [rsi + r10 + 4], al
inc rsi
inc rcx
cmp rsi, 0xf
jne 0x140001efd
lea rcx, str._ES_E__BL___II
lea rdx, [0x14003b485]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea rsi, [rsp + 0x40]
mov r8d, 0x104
mov rcx, rsi
xor edx, edx
call fcn.140007f60
mov rcx, rsi
call fcn.140001da4
mov rcx, rsi
xor edx, edx
call qword [0x1400606c8]
test eax, eax
je 0x140002070
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x40]
mov edx, 0xc0000000
mov r8d, 3
xor r9d, r9d
call qword [0x1400605c0]
cmp rax, 0xffffffffffffffff
je 0x140002070
mov rsi, rax
mov edx, 0x280000
xor ecx, ecx
mov r8d, 0x3000
mov r9d, 4
call qword [0x1400605b0]
mov qword [0x140060740], rax
mov qword [rsp + 0x20], 0
lea r9, [0x140060748]
mov rcx, rsi
mov rdx, rax
mov r8d, 0x280000
call qword [0x1400605d0]
test eax, eax
je 0x140002065
mov dword [0x14005f040], 1
mov r8d, dword [0x140060748]
mov rdx, qword [0x140060740]
mov rcx, qword [0x14005b760]
lea rax, [0x14006074c]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
call qword [0x140060598]
call fcn.14000109c
call qword [0x140060740]
mov ecx, 0x29
jmp 0x14000206a
mov ecx, 0x2a
call qword [0x140060600]
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.140017d70
nop
add rsp, 0x150
pop rsi
ret
Function at 0x1400026dc
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r8
mov r14, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x140002710
mov rcx, rbx
mov rdx, r14
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_64
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002755
test rsi, rsi
jle 0x140002755
mov rax, qword [rbx + 0x50]
mov edi, dword [rax]
test edi, edi
jle 0x140002755
cmp rdi, rsi
cmovae rdi, rsi
mov rcx, r14
mov r8, rdi
call fcn.140008080
add r14, rdi
mov r15, rsi
sub r15, rdi
mov rax, qword [rbx + 0x50]
sub dword [rax], edi
mov rax, qword [rbx + 0x38]
add qword [rax], rdi
jmp 0x140002758
mov r15, rsi
test r15, r15
jle 0x140002789
cmp qword [rbx + 0x80], 0
je 0x140002789
mov rcx, rbx
call fcn.1400021b4
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, r14
mov r8, r15
call fcn.14001ed48
sub r15, rax
sub rsi, r15
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, r8
mov rdi, r8
test r8, r8
jle 0x140002d92
mov r15, rdx
mov rbx, rcx
mov rdi, r14
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002d76
mov rax, qword [rbx + 0x50]
mov esi, dword [rax]
test esi, esi
jle 0x140002d76
cmp rdi, rsi
cmovb rsi, rdi
mov rcx, r15
mov r8, rsi
call fcn.140008080
add r15, rsi
sub rdi, rsi
mov rax, qword [rbx + 0x50]
sub dword [rax], esi
mov rax, qword [rbx + 0x38]
add qword [rax], rsi
jmp 0x140002d8d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140002d92
mov byte [r15], al
inc r15
dec rdi
test rdi, rdi
jg 0x140002d39
sub r14, rdi
mov rax, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400274a4
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 0x140027303
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140027303
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140027303
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140027303
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140027303
cmp dword [rcx + 0x84], 0xe
jbe 0x140027303
cmp dword [rcx + 0xf8], 0
je 0x140027303
mov ecx, ebx
call fcn.1400273c0
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.140027190
nop
cmp dword [rbp + 0x20], 0
je 0x140027351
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002735c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140027294
Function at 0x14002ca7c
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 0x14002caae
call fcn.14001fa3c
mov dword [rax], 0x16
call fcn.14001ddd0
jmp 0x14002cbcd
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14002cbcd
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14002cbcd
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14002cadd
lock or dword [rcx + 0x14], 0x10
jmp 0x14002cbcd
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14002caf1
call fcn.14002ca10
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14002b408
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14002d094
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14002cbbb
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14002cb86
mov rcx, rsi
call fcn.14002b408
cmp eax, edi
je 0x14002cb71
mov rcx, rsi
call fcn.14002b408
cmp eax, 0xfffffffe
je 0x14002cb71
mov rcx, rsi
call fcn.14002b408
movsxd rbx, eax
lea r14, [0x1400631b0]
mov rcx, rsi
sar rbx, 6
call fcn.14002b408
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14002cb78
lea rdx, [0x14005e670]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002cb86
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14002cbaa
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14002cbaa
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14002cbaa
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 0x14002cbd0
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 0x14002cbe8
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, [0x1400631b0]
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 0x14002cc46
cmp word [rdx], r12w
jne 0x14002cc46
or byte [rax + r8*8 + 0x38], cl
jmp 0x14002cc4c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14002cda7
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14002cd82
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14002cc85
mov rcx, r9
jmp 0x14002cca8
cmp r9, rdx
jae 0x14002ccbf
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 0x14002cc69
jmp 0x14002cda7
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 0x14002cd7c
cmp dword [rsp + 0x80], edi
je 0x14002cd7c
mov rdx, r14
lea r11, [0x1400631b0]
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 0x14002cd55
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14002cd28
mov word [rbx], r12w
jmp 0x14002cda3
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 0x14002cd31
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14002cda3
cmp word [rsp + 0x70], r12w
jne 0x14002cd62
cmp rbx, rsi
je 0x14002cd22
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14002d874
cmp word [rsp + 0x70], r12w
je 0x14002cda7
mov word [rbx], r13w
jmp 0x14002cda3
lea r11, [0x1400631b0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14002cd9f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14002cda7
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 0x14002dc28
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.140018450
sub rsp, rax
mov rax, qword [0x14005b7d8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002b408
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002dc77
mov rax, rbp
jmp 0x14002dd7f
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 + 0x631b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002d86c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x631b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002dd7b
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 0x14002dd7b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002d86c
test rax, rax
js 0x14002dd7b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002dd7b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002dd6d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002dd6d
cmp byte [rcx], 0xd
jne 0x14002dd53
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002dd62
cmp byte [rcx + 1], 0xa
jne 0x14002dd62
inc rcx
jmp 0x14002dd62
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x5e6c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002dd35
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002dd7f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140017d70
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 0x14003224c
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 0x14003227c
xor eax, eax
jmp 0x14003233f
mov rbp, rbx
cmp word [rax], si
je 0x1400322a1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140032288
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140032284
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.1400304e4
movsxd r14, eax
test eax, eax
jne 0x1400322df
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140032275
mov rcx, r14
call fcn.14002e150
mov rdi, rax
test rax, rax
jne 0x1400322f8
xor ecx, ecx
call fcn.14002b3cc
jmp 0x1400322d4
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.1400304e4
test eax, eax
jne 0x140032329
mov rcx, rdi
call fcn.14002b3cc
jmp 0x140032333
xor ecx, ecx
call fcn.14002b3cc
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