joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6dae8058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x6dae81df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x6dae8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x6dae806f
add dl, dl
jne 0x6dae8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x6dae80f6
xor eax, eax
add dl, dl
jne 0x6dae80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x6dae81ad
add dl, dl
jne 0x6dae80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6dae80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6dae80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6dae80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x6dae80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x6dae807e
mov eax, 1
add dl, dl
jne 0x6dae8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6dae8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x6dae80fb
sub eax, ebx
mov ebx, 1
jne 0x6dae814c
mov ecx, 1
add dl, dl
jne 0x6dae812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x6dae813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x6dae8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x6dae807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x6dae8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x6dae8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x6dae815d
cmp eax, 0x7d00
jae 0x6dae819b
cmp eax, 0x500
jb 0x6dae8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x6dae807e
cmp eax, 0x7f
ja 0x6dae819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x6dae807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x6dae81d2
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 0x6dae807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x42c1a0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x42c1ad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x42c1bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x42c1a5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x42c1d5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x42c1c2
sub eax, 3
jb 0x42c1ef
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x42c226
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x42c216
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x42c214
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x42c203
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.0042c162
jmp 0x42c1ad
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x7400
mov dl, 6
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x42c276
cmp rsi, rcx
jae 0x42c27e
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x42c25d
cmp al, 0x8f
ja 0x42c25d
cmp byte [rsi - 2], 0xf
je 0x42c263
sub al, 0xe8
cmp al, 1
ja 0x42c247
cmp rsi, rcx
jae 0x42c27e
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x42c24d
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x42c27e
lodsb al, byte [rsi]
jmp 0x42c25d
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2a000]
mov eax, dword [rdi]
or eax, eax
je 0x42c2db
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2c000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x42c28b
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x42c2d5
mov qword [rbx], rax
add rbx, 8
jmp 0x42c2ab
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.0042c35e], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.0042c35e
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x42c34e
sub rsp, 0xffffffffffffff80
jmp 0x4014e0
Function at 0x140043390
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push r14
push r15
sub rsp, 0x30
mov r14, rcx
mov qword [rcx], 0
mov ecx, 0x28
mov rbp, r8
mov r15, rdx
call fcn.140006950
mov rbx, rax
test rax, rax
jne 0x1400433d4
mov eax, 7
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
cmp byte [0x140156ed4], 0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
je 0x140043438
mov rax, qword [0x140157060]
test rax, rax
je 0x1400433fe
mov ecx, 0xc8
call rax
test eax, eax
jne 0x140043438
lea rsi, [rbx + 8]
mov qword [rbx + 0x10], r15
lea rdi, [rbx + 0x10]
mov qword [rsp + 0x28], rsi
mov r9, rbx
mov dword [rsp + 0x20], 0
lea r8, [0x140009e80]
mov qword [rbx + 0x18], rbp
xor edx, edx
xor ecx, ecx
call fcn.140102c14
mov qword [rbx], rax
test rax, rax
jne 0x140043450
jmp 0x140043440
lea rdi, [rbx + 0x10]
lea rsi, [rbx + 8]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
mov qword [rbx + 0x20], rax
cmp qword [rdi], 0
mov rdi, qword [rsp + 0x58]
jne 0x14004346d
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, rbp
mov dword [rsi], eax
call r15
mov qword [rbx + 0x20], rax
mov rsi, qword [rsp + 0x50]
xor eax, eax
mov qword [r14], rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
Function at 0x1400d1400
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x140156040]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov qword [rsp + 0x48], rcx
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
je 0x1400d15fb
mov dword [rbp - 0x60], 0x238
lea rdx, [rbp - 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400d15fb
lea rdx, [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x1400d15f2
mov r10d, 0x18
mov r9d, 0x7d
mov r8d, 0x60
mov edx, 0x36
mov ecx, 0xd5504b18
mov rdi, qword [0x14015c3c0]
mov r14, qword [0x14015c3c8]
cmp rdi, r14
je 0x1400d1478
movd xmm2, ecx
movd xmm0, edx
vpxor xmm1, xmm0, xmm2
movd r15d, xmm1
movd xmm0, r8d
vpxor xmm1, xmm0, xmm2
movd r12d, xmm1
movd xmm0, r9d
vpxor xmm1, xmm0, xmm2
movd esi, xmm1
movd xmm0, r10d
vpxor xmm1, xmm0, xmm2
movd r13d, xmm1
nop word [rax + rax]
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.1400d1c70
mov byte [rsp + 0x70], r15b
mov byte [rsp + 0x71], sil
mov byte [rsp + 0x72], r12b
mov byte [rsp + 0x73], sil
mov byte [rsp + 0x74], r13b
lea rax, [rsp + 0x70]
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], 0
jne 0x1400d1532
movabs rax, 0x7fffffffffffffff
mov rdx, qword [rbp - 0x78]
sub rax, rdx
cmp rax, rcx
jb 0x1400d162d
lea r9, [rsp + 0x78]
cmp qword [rbp - 0x70], 0xf
cmova r9, qword [rsp + 0x78]
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea rcx, [rsp + 0x50]
call fcn.1400d2020
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rdx, qword [rsp + 0x50]
lea rax, [rbp - 0x34]
sub rdx, rax
nop dword [rax + rax]
movzx ebx, byte [rax]
movzx ecx, byte [rax + rdx]
sub ebx, ecx
jne 0x1400d15b2
inc rax
test ecx, ecx
jne 0x1400d15a0
lea rcx, [rsp + 0x50]
call fcn.1400d1e20
lea rcx, [rsp + 0x78]
test ebx, ebx
je 0x1400d15e1
call fcn.1400d1e20
add rdi, 0x20
cmp rdi, r14
jne 0x1400d1500
mov rbx, qword [rsp + 0x40]
jmp 0x1400d1478
mov rax, qword [rsp + 0x48]
mov byte [rax], 1
call fcn.1400d1e20
mov al, 1
jmp 0x1400d15fd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1400fb0b0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400d13e0
int3
Function at 0x1400d94d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbp, r8
mov r15, rdx
mov rbx, rcx
je 0x1400d9573
mov rdi, r8
test r8, r8
jle 0x1400d956b
lea rsi, [rcx + 0x58]
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400d9544
mov rax, qword [rsi]
movsxd rdx, dword [rax]
test edx, edx
jle 0x1400d9544
cmp rdi, rdx
mov r14, rdi
cmovge r14, rdx
mov rdx, r15
mov r8, r14
call fcn.140121b10
mov rax, qword [rsi]
sub rdi, r14
sub dword [rax], r14d
mov rcx, qword [rbx + 0x40]
movsxd rax, r14d
add qword [rcx], rax
jmp 0x1400d9563
mov rax, qword [rbx]
mov rcx, rbx
movzx edx, byte [r15]
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400d956b
dec rdi
lea rsi, [rbx + 0x58]
mov r14d, 1
add r15, r14
test rdi, rdi
jg 0x1400d9504
sub rbp, rdi
mov rax, rbp
jmp 0x1400d95ea
mov rax, qword [rcx + 0x40]
mov rsi, rbp
mov r9, qword [rax]
test r9, r9
je 0x1400d958a
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400d958c
xor ecx, ecx
movsxd rdi, ecx
test rbp, rbp
jle 0x1400d95e4
test ecx, ecx
jle 0x1400d95c5
cmp rbp, rdi
mov rcx, r9
cmovl rdi, rbp
mov r8, rdi
call fcn.140121b10
mov rax, qword [rbx + 0x58]
add r15, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x40]
movsxd rax, edi
add qword [rcx], rax
test rbp, rbp
jle 0x1400d95e4
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x1400d95e4
mov r8, rbp
mov edx, 1
mov rcx, r15
call fcn.140108b20
sub rbp, rax
sub rsi, rbp
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1400d9610
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x1400d9634
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x1400d96c2
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400d9690
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x1400d9690
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.140121b10
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400d96ad
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400d96b5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x1400d9651
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x1400d97a0
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x1400d96d9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400d96db
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400d970d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140121b10
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400d979d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400d9748
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 rsi, 0xfff
jbe 0x1400d977e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.14010a6ec
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x1400d979d
cmp rsi, rax
ja 0x1400d9751
test rsi, rsi
je 0x1400d979d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14010a6ec
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x1400d9bd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140156040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400d9bfd
xor eax, eax
jmp 0x1400d9d4b
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400d9c37
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400d9c37
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400d9d4b
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400d9d3e
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400d9c7a
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400d9c89
movsx ecx, dil
jmp 0x1400d9cdd
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
je 0x1400d9cf7
sub eax, 1
je 0x1400d9cf7
cmp eax, 2
jne 0x1400d9d3e
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.140103818
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400d9d43
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400d9d24
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.140108b20
cmp rsi, rax
jne 0x1400d9d3e
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400d9d43
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400fb0b0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400ec8a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400ec8d4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400ec8c0
ret
Function at 0x1400f1a00
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1400f1ac5
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1400f1ac5
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x1400f1ade
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x1400f1ab5
cmp byte [rcx], 0x5c
jne 0x1400f1aae
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x1400f1aae
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x1400f1a9c
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x1400f1aab
test r8b, 0x10
jne 0x1400f1aae
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x1400f1aae
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400ed970
test edi, edi
jne 0x1400f1a20
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.1400ed960
int3
Function at 0x1400f4f50
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140156040]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
nop
call fcn.14010a9cc
lea ecx, [rax - 0x41]
cmp ecx, 0x19
jbe 0x1400f4f8d
lea ecx, [rax - 0x30]
cmp ecx, 9
jbe 0x1400f4f8d
lea ecx, [rax - 0x61]
cmp ecx, 0x19
ja 0x1400f4f70
mov byte [rsp + rbx + 0x58], al
inc rbx
cmp rbx, 0x1f
jl 0x1400f4f70
mov byte [rsp + 0x77], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea rax, [rsp + 0x58]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop
inc r8
cmp byte [rax + r8], 0
jne 0x1400f4fc0
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x20]
call fcn.1400d1ed0
lea rdx, [rsp + 0x20]
lea rcx, [0x140159fe8]
call fcn.1400dafd0
lea rcx, [rsp + 0x20]
call fcn.1400d1e20
mov r8d, 4
lea rdx, str..txt
lea rcx, [0x140159fe8]
call fcn.1400d3f20
nop
xor ebx, ebx
call fcn.14010a9cc
lea ecx, [rax - 0x41]
cmp ecx, 0x19
jbe 0x1400f502d
lea ecx, [rax - 0x30]
cmp ecx, 9
jbe 0x1400f502d
lea ecx, [rax - 0x61]
cmp ecx, 0x19
ja 0x1400f5010
mov byte [rsp + rbx + 0x58], al
inc rbx
cmp rbx, 0x1f
jl 0x1400f5010
mov byte [rsp + 0x77], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea rax, [rsp + 0x58]
inc rdi
cmp byte [rax + rdi], 0
jne 0x1400f5055
mov r8, rdi
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x20]
call fcn.1400d1ed0
lea rdx, [rsp + 0x20]
lea rcx, [0x140159fc8]
call fcn.1400dafd0
lea rcx, [rsp + 0x20]
call fcn.1400d1e20
mov r8d, 4
lea rdx, str..ps1
lea rcx, [0x140159fc8]
call fcn.1400d3f20
mov dword [rsp + 0x40], 0x18
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x48], 0
xor r9d, r9d
lea r8, [rsp + 0x40]
lea rdx, [0x14015c998]
lea rcx, [0x14015c990]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1400f50f9
xor r8d, r8d
mov edx, 1
mov rcx, qword [0x14015c990]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
setne al
jmp 0x1400f50fb
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400fb0b0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x1400f8b00
Capabilities:
Hide graphical window

Disassembly:
sub rsp, 0xe8
mov rax, qword [0x140156040]
xor rax, rsp
mov qword [rsp + 0xd0], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
xor ecx, ecx
call fcn.14010ac9c
mov ecx, eax
call fcn.14010a9f8
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call fcn.1400d1400
test al, al
jne 0x1400f8b5e
call fcn.1400d1640
test al, al
jne 0x1400f8b5e
lea rcx, [rsp + 0x20]
call fcn.1400d1660
cmp byte [rsp + 0x20], 0
jne 0x1400f8c09
call fcn.1400f4f50
test al, al
je 0x1400f8c09
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0x50]
call fcn.1400f5120
cmp qword [rsp + 0xb8], 0
je 0x1400f8be4
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x28]
call fcn.1400d1c70
nop
lea rcx, [rsp + 0x28]
call fcn.1400f8c50
lea rcx, [rsp + 0xa8]
call fcn.1400d1e20
lea rcx, [rsp + 0x90]
call fcn.1400d1d90
lea rcx, [rsp + 0x50]
call fcn.1400f57b0
nop
mov rcx, qword [0x14015c990]
test rcx, rcx
je 0x1400f8c1b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14015c998]
test rcx, rcx
je 0x1400f8c2e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400fb0b0
add rsp, 0xe8
ret
Function at 0x1400fadf0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path

Disassembly:
push rbx
sub rsp, 0x200
mov rax, qword [0x140156040]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov rbx, rdx
lea rcx, [rsp + 0xe0]
xor edx, edx
mov r8d, 0x104
call fcn.140121750
lea rdx, [rsp + 0xe0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov rax, qword [0x14015c998]
xorps xmm0, xmm0
mov qword [rsp + 0xd0], rax
xor ecx, ecx
movups xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0xc8], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov rdx, rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], ecx
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x20], 1
movups xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0x70], 0x68
movups xmmword [rsp + 0xb0], xmm0
mov dword [rsp + 0xac], 0x101
movups xmmword [rsp + 0x80], xmm0
mov word [rsp + 0xb0], cx
movups xmmword [rsp + 0x90], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1400faf09
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1400faf0b
xor al, al
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.1400fb0b0
add rsp, 0x200
pop rbx
ret

Function at 0x1400fbdd4
Capabilities:
Parse pe header

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

Function at 0x1400fc420
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400fc45a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400fc45f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400fc4a8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140125d00]
cmp byte [rcx + rax], 0
je 0x1400fc4a8
dec r8
sub rdx, 1
jne 0x1400fc48e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14010b1f8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14010b024
Function at 0x140112aec
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140112b0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140108bec
or eax, 0xffffffff
jmp 0x140112b0e
xor eax, eax
add rsp, 0x28
ret
Function at 0x1401213b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401213d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401213d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret