joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400471c0
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 0x14004734f
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.14003f4a0
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 0x140047314
mov qword [rsp + 0x38], rbp
movabs rdi, 0xcbf29ce484222325
movabs rbp, 0x100000001b3
nop dword [rax]
nop dword [rax + rax]
movzx r9d, byte [rax + 0x10]
mov rcx, qword [rcx]
mov r11d, r9d
xor r11, rdi
imul r11, rbp
and r11, qword [rsi + 0x30]
shl r11, 4
add r11, qword [rsi + 0x18]
mov r8, qword [r11]
cmp r8, rbx
jne 0x14004728f
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140047303
mov rdx, qword [r11 + 8]
cmp r9b, byte [rdx + 0x10]
jne 0x1400472c8
mov r10, qword [rdx]
cmp r10, rax
je 0x1400472c2
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 0x140047303
cmp r8, rdx
je 0x1400472df
nop dword [rax]
mov rdx, qword [rdx + 8]
cmp r9b, byte [rdx + 0x10]
je 0x140047329
cmp r8, rdx
jne 0x1400472d0
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 0x140047260
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 0x140047303
lea rcx, str.invalid_hash_bucket_count
call fcn.140052050
int3
Function at 0x140048e60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x1400b2080]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rsi, rdx
mov rdi, rcx
mov rax, qword [rcx + 0x10]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14004903b
mov rbx, qword [rcx + 0x18]
mov qword [rsp + 0x30], rbx
mov rcx, rbx
call fcn.140053cbc
test eax, eax
jne 0x140049068
xor r14d, r14d
mov qword [rsi + 0x28], r14
mov qword [rsi + 0x30], r14
mov qword [rsp + 0x60], r14
lea r15, vtable.fmt::v7::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov qword [rsp + 0x50], r15
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], 0xfa
mov rcx, qword [rdi + 0x28]
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
mov rdx, rsi
call qword [rax + 8]
cmp byte [rdi + 0x20], r14b
je 0x140048fcf
mov rax, qword [rsi + 0x28]
cmp qword [rsi + 0x30], rax
jbe 0x140048fcf
test rax, rax
je 0x140048f2d
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
movsxd rax, dword [rsi + 0x10]
movzx ebp, word [rdi + rax*2 + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x140048f4e
lea ebp, [rax + 7]
jmp 0x140048f69
mov edx, dword [rsp + 0x40]
and edx, 0xfff0
or edx, ebp
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
movzx ebp, word [rsp + 0x40]
mov rcx, qword [rsi + 0x30]
mov r8, qword [rsi + 0x28]
cmp rcx, r8
jbe 0x140048f96
sub ecx, r8d
mov rdx, qword [rsp + 0x58]
add rdx, r8
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8d, ecx
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
movzx edx, bp
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rdx, qword [rsi + 0x30]
mov rcx, qword [rsp + 0x60]
cmp rcx, rdx
jbe 0x140048ff3
sub ecx, edx
add rdx, qword [rsp + 0x58]
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8d, ecx
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
jmp 0x140048ff3
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov qword [rsp + 0x50], r15
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
cmp rcx, rax
je 0x140049033
mov rdx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004902d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140049062
call fcn.140054a70
nop
mov rcx, rbx
call fcn.140053cc4
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140054500
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14005b424
nop
mov ecx, eax
call fcn.140052f30
int3
Function at 0x14004a680
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x180
mov rax, qword [0x1400b2080]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor eax, eax
mov qword [rsp + 0x60], rax
lea rbx, vtable.fmt::v7::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], 0xfa
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
call qword [rax + 8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x28]
call fcn.140008080
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14004a746
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a740
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004a7a4
call fcn.140054a70
nop
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
cmp rcx, rax
je 0x14004a785
mov rdx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a780
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004a79e
call fcn.140054a70
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140054500
add rsp, 0x180
pop rbx
ret
call fcn.14005b424
nop
call fcn.14005b424
nop
int3
Function at 0x14004ae60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
cmp rdx, r8
je 0x14004b0dd
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
movaps xmmword [rsp + 0x50], xmm6
mov rbp, r8
mov rsi, rdx
xor r12d, r12d
movabs r15, 0x100000001b3
movabs r13, 0x492492492492492
lea rbx, [0x1400ba358]
movss xmm6, dword [0x14009fa00]
movabs rax, 0xcbf29ce484222325
mov r8, qword [rsi + 0x10]
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14004aed1
mov rdx, qword [rsi]
mov rdi, rax
add r8, r8
mov rcx, r12
je 0x14004aef3
nop dword [rax]
movzx eax, byte [rcx + rdx]
xor rdi, rax
imul rdi, r15
inc rcx
cmp rcx, r8
jb 0x14004aee0
mov r9, rdi
mov r8, rsi
lea rdx, [rsp + 0x30]
call fcn.14004bc70
cmp qword [rsp + 0x38], 0
jne 0x14004b0ae
cmp qword [0x1400ba360], r13
je 0x14004b0de
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], r12
mov ecx, 0x38
call fcn.1400547c8
mov r14, rax
mov qword [rsp + 0x28], rax
mov rdx, rsi
lea rcx, [rax + 0x10]
call fcn.140012d00
nop
mov ecx, dword [rsi + 0x20]
mov dword [r14 + 0x30], ecx
mov r8, qword [0x1400ba360]
lea rcx, [r8 + 1]
xorps xmm0, xmm0
test rcx, rcx
js 0x14004af66
cvtsi2ss xmm0, rcx
jmp 0x14004af7b
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rbx, qword [0x1400ba388]
xorps xmm2, xmm2
test rbx, rbx
js 0x14004af91
cvtsi2ss xmm2, rbx
jmp 0x14004afa9
mov rcx, rbx
shr rcx, 1
mov rax, rbx
and eax, 1
or rcx, rax
cvtsi2ss xmm2, rcx
addss xmm2, xmm2
movaps xmm1, xmm0
divss xmm1, xmm2
movss xmm3, dword [0x1400ba350]
comiss xmm1, xmm3
seta al
test al, al
je 0x14004b046
divss xmm0, xmm3
call fcn.14007e24c
xor ecx, ecx
comiss xmm0, xmm6
jb 0x14004afec
subss xmm0, xmm6
comiss xmm0, xmm6
jae 0x14004afec
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x14004b01e
cmp rbx, 0x200
jae 0x14004b01b
lea rbx, [rbx*8]
cmp rbx, rcx
jae 0x14004b01e
mov rbx, rcx
mov rdx, rbx
call fcn.14004b920
lea r8, [r14 + 0x10]
mov r9, rdi
lea rdx, [rsp + 0x40]
call fcn.14004bc70
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x30], xmm0
mov r8, qword [0x1400ba360]
mov qword [rsp + 0x28], r12
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx + 8]
inc r8
mov qword [0x1400ba360], r8
mov qword [r14], rcx
mov qword [r14 + 8], rdx
mov qword [rdx], r14
mov qword [rcx + 8], r14
and rdi, qword [0x1400ba380]
add rdi, rdi
mov rax, qword [0x1400ba368]
mov r8, qword [rax + rdi*8]
cmp r8, qword [0x1400ba358]
jne 0x14004b090
mov qword [rax + rdi*8], r14
jmp 0x14004b0a2
cmp r8, rcx
jne 0x14004b09b
mov qword [rax + rdi*8], r14
jmp 0x14004b0a7
cmp qword [rax + rdi*8 + 8], rdx
jne 0x14004b0a7
mov qword [rax + rdi*8 + 8], r14
lea rbx, [0x1400ba358]
add rsi, 0x28
cmp rsi, rbp
jne 0x14004aeb6
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [rsp + 0x50]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, str.unordered_map_set_too_long
call fcn.140052050
int3
Function at 0x14004c5b0
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x240
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
mov rax, qword [0x1400b2080]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
mov eax, dword [rcx + 0x40]
cmp eax, 2
setle r13b
movzx esi, byte [rcx + 0xd8]
jle 0x14004c60d
test sil, sil
je 0x14004c807
mov qword [rsp + 0x100], 0
lea rax, vtable.fmt::v7::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov qword [rsp + 0xf0], rax
lea rax, [rsp + 0x110]
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x108], 0xfa
mov rax, qword [rsp + 0x280]
mov rcx, rax
cmp qword [rax + 0x18], 0x10
jb 0x14004c659
mov rcx, qword [rax]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0xe0], rcx
mov qword [rsp + 0xe8], rax
movaps xmm0, xmmword [rsp + 0xe0]
movdqa xmmword [rsp + 0xe0], xmm0
mov qword [rsp + 0x30], 0xd
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movaps xmm1, xmmword [r9]
movdqa xmmword [rsp + 0xc0], xmm1
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xf0]
call fcn.14002a190
mov r15, qword [rsp + 0x100]
mov r12, qword [rsp + 0xf8]
lea rcx, [rdi + 8]
cmp qword [rdi + 0x20], 0x10
jb 0x14004c6e8
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x40], rcx
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x48], rax
movaps xmm6, xmmword [r14]
movsd xmm7, qword [r14 + 0x10]
call fcn.140053db8
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x70], 2
mov qword [rsp + 0x78], rax
mov rax, qword gs:[0x58]
mov r14, qword [rax]
mov ecx, 0x18
mov eax, dword [rcx + r14]
mov edx, 0x10
test al, 1
jne 0x14004c756
or eax, 1
mov dword [rcx + r14], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov ecx, 0x10
add rcx, r14
mov qword [rcx], rax
jmp 0x14004c75a
lea rcx, [rdx + r14]
mov rax, qword [rcx]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
movups xmmword [rsp + 0x98], xmm6
movsd qword [rsp + 0xa8], xmm7
mov qword [rsp + 0xb0], r12
mov qword [rsp + 0xb8], r15
movzx r9d, sil
movzx r8d, r13b
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.14003e2d0
nop
lea rax, vtable.fmt::v7::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov qword [rsp + 0xf0], rax
lea rax, [rsp + 0x110]
mov rcx, qword [rsp + 0xf8]
cmp rcx, rax
je 0x14004c807
mov rdx, qword [rsp + 0x108]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004c801
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004c83f
call fcn.140054a70
nop
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.140054500
lea r11, [rsp + 0x240]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
ret
call fcn.14005b424
nop
int3
Function at 0x14004e8d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14004e901
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x14004e97e
lfence
mov rdi, r14
mov rcx, rbx
call fcn.1400132d0
test rax, rax
jle 0x14004e956
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.1400568b0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14004e96e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14004e976
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14004e918
sub r14, rdi
jmp 0x14004ea62
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14004e995
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14004e997
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14004e9c9
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400568b0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14004ea5c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14004ea04
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14004ea3d
nop dword [rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140064698
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14004ea5c
cmp rbp, rax
ja 0x14004ea10
test rbp, rbp
je 0x14004ea5c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140064698
sub rbp, rax
sub r14, rbp
lfence
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140052264
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400522e8
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140088a90]
cmp byte [rcx + rax], 0
je 0x1400522e8
dec r8
sub rdx, 1
jne 0x1400522ce
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140055540
Capabilities:
Parse pe header

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

Function at 0x140062c44
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140062c64
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400604bc
or eax, 0xffffffff
jmp 0x140062c66
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400729b0
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 0x1400729e2
call fcn.140060548
mov dword [rax], 0x16
call fcn.14005b404
jmp 0x140072b01
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140072b01
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140072b01
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140072a11
lock or dword [rcx + 0x14], 0x10
jmp 0x140072b01
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140072a25
call fcn.1400730ac
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140062030
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400735c4
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140072aef
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140072aba
mov rcx, rsi
call fcn.140062030
cmp eax, edi
je 0x140072aa5
mov rcx, rsi
call fcn.140062030
cmp eax, 0xfffffffe
je 0x140072aa5
mov rcx, rsi
call fcn.140062030
movsxd rbx, eax
lea r14, [0x1400b9a30]
mov rcx, rsi
sar rbx, 6
call fcn.140062030
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140072aac
lea rdx, [0x1400b2430]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140072aba
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140072ade
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140072ade
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140072ade
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 0x140072b04
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 0x140072e2c
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.1400551a0
sub rsp, rax
mov rax, qword [0x1400b2080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140062030
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140072e7b
mov rax, rbp
jmp 0x140072f83
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 + 0xb9a30]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140072540
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xb9a30]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140072f7f
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 0x140072f7f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140072540
test rax, rax
js 0x140072f7f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140072f7f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140072f71
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140072f71
cmp byte [rcx], 0xd
jne 0x140072f57
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140072f66
cmp byte [rcx + 1], 0xa
jne 0x140072f66
inc rcx
jmp 0x140072f66
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xb2640]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140072f39
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140072f83
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140054500
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 0x140073118
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, [0x1400b9a30]
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 0x140073176
cmp word [rdx], r12w
jne 0x140073176
or byte [rax + r8*8 + 0x38], cl
jmp 0x14007317c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400732d7
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400732b2
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400731b5
mov rcx, r9
jmp 0x1400731d8
cmp r9, rdx
jae 0x1400731ef
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 0x140073199
jmp 0x1400732d7
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 0x1400732ac
cmp dword [rsp + 0x80], edi
je 0x1400732ac
mov rdx, r14
lea r11, [0x1400b9a30]
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 0x140073285
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140073258
mov word [rbx], r12w
jmp 0x1400732d3
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 0x140073261
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400732d3
cmp word [rsp + 0x70], r12w
jne 0x140073292
cmp rbx, rsi
je 0x140073252
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140072548
cmp word [rsp + 0x70], r12w
je 0x1400732d7
mov word [rbx], r13w
jmp 0x1400732d3
lea r11, [0x1400b9a30]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400732cf
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400732d7
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 0x140076378
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 0x1400763ff
mov rsi, rbx
cmp word [rax], bp
je 0x1400763be
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400763a8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400763a4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14006d438
mov rdi, rax
test rax, rax
je 0x1400763ec
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400568b0
mov rbp, rdi
xor ecx, ecx
call fcn.14006d3fc
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