joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400704c0
Capabilities:
Parse pe header

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

Function at 0x1400801a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov qword [rbp - 0x4c], rcx
mov rdx, rsi
mov qword [rbp - 0x54], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.140004720
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.140004770
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.1400025ae
mov dword [rax + 0xa0], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x140088370
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
mov r8d, edx
mov dword [rbp - 0x3c], r8d
mov rdx, rcx
mov qword [rbp - 0x48], rdx
xor ecx, ecx
mov qword [rbp - 0x50], rcx
mov r9d, 2
mov dword [rbp - 0x40], r9d
lea rcx, [rbp - 0x78]
call fcn.140004720
mov r8d, dword [rbp - 0x3c]
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
mov r9d, dword [rbp - 0x40]
call sub.bcrypt.dll_BCryptGenRandom
mov ebx, eax
lea rcx, [rbp - 0x78]
call fcn.140004770
test ebx, ebx
jne 0x1400883e4
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp ebx, 0xc0000017
jne 0x14008840b
lea rcx, [0x140351538]
call fcn.140004290
mov rbx, rax
mov rcx, rbx
call fcn.1400a5d30
mov rcx, rbx
call fcn.140004880
lea rcx, [0x140350cf0]
call fcn.140004290
mov rbx, rax
mov rcx, rbx
call fcn.1400a12e0
mov rcx, rbx
call fcn.140004880
int3
Function at 0x140088890
Capabilities:
Inspect section memory permissions

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x50]
mov rbx, rcx
mov eax, dword [rbx + 0x38]
cmp eax, 0xffffffff
je 0x1400888ad
add rsp, 0x48
pop rbx
pop rbp
ret
mov dword [rsp + 0x20], 0x10
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x20]
mov rcx, rbx
mov r9d, 4
call fcn.14010f270
mov ecx, eax
test ecx, ecx
jne 0x14008893a
xor eax, eax
mov ecx, 0x40000000
test byte [rbp - 0x10], 0x30
cmove eax, ecx
mov ecx, eax
or ecx, 0x80000000
test byte [rbp - 0x10], 2
cmovne eax, ecx
mov ecx, eax
or ecx, 0x10000000
test dword [rbp - 0x10], 0x800
cmovne eax, ecx
mov ecx, eax
or ecx, 0x8000000
test byte [rbp - 0x10], 4
cmovne eax, ecx
mov ecx, eax
or ecx, 0x4000000
test dword [rbp - 0x10], 0x1000
cmovne eax, ecx
mov ecx, eax
or ecx, 0x20000000
test byte [rbp - 0x10], 8
cmovne eax, ecx
mov dword [rbx + 0x38], eax
add rsp, 0x48
pop rbx
pop rbp
ret
call fcn.14010f140
mov ecx, eax
lea rdx, [0x1402f8738]
call fcn.1400dbf80
mov rcx, rax
call fcn.140004880
int3
Function at 0x1400a3820
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push rdi
push rsi
push rbp
push rbx
sub rsp, 0x30
xor eax, eax
mov qword [rsp + 0x28], rax
mov rdi, rcx
mov ebx, edx
mov rsi, r8
mov ecx, 1
test ebx, ebx
cmovle ebx, ecx
mov rcx, rdi
neg rcx
lea rdx, [0x140507e90]
mov rax, rcx
or rax, 1
bsr r8, rax
lzcnt rax, rax
xor eax, 0x3f
test dword [0x14066b2d0], 0x1000
cmovne r8d, eax
movsxd rax, r8d
movzx edx, byte [rdx + rax]
mov eax, edx
shl rax, 3
lea r8, [0x1405080f0]
add rax, r8
cmp rcx, qword [rax]
setb cl
movzx ecx, cl
sub edx, ecx
cmp ebx, edx
mov ebp, edx
cmovge ebp, ebx
mov r14d, dword [rsi + 8]
add ebp, r14d
lea rcx, [0x14034ea58]
mov edx, ebp
call fcn.140004350
mov r15, rax
test r15, r15
jne 0x1400a38bf
xor eax, eax
jmp 0x1400a38cd
lea rax, [r15 + 0xc]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movsxd rdx, ebp
lea rbp, [rax + rdx*2]
neg rdi
cmp rdi, 0x64
jb 0x1400a39a6
lea rax, [0x14033d578]
cmp qword [rax - 8], 0
jne 0x1400a39db
mov rcx, qword [0x14064ebf0]
add rbp, 0xfffffffffffffffc
add ebx, 0xfffffffe
movabs rdx, 0x28f5c28f5c28f5c3
mov rax, rdi
shr rax, 2
mul rdx
shr rdx, 2
imul rax, rdx, 0x64
sub rdi, rax
mov r13, rdx
mov rax, qword [rcx + 0x38]
cmp byte [rax], al
shl edi, 2
mov edx, edi
mov eax, dword [rax + rdx + 0x10]
mov dword [rbp], eax
cmp r13, 0x64
jae 0x1400a399e
test r13, r13
je 0x1400a3976
dec ebx
movabs rdx, 0xcccccccccccccccd
mov rax, r13
mul rdx
shr rdx, 3
lea rax, [rdx + rdx*4]
add rax, rax
mov rcx, r13
sub rcx, rax
mov r13, rdx
add rbp, 0xfffffffffffffffe
add ecx, 0x30
mov word [rbp], cx
test r13, r13
jne 0x1400a3940
test ebx, ebx
jg 0x1400a3940
mov rax, rbp
lea ecx, [r14 - 1]
test ecx, ecx
jl 0x1400a39c2
cmp r14d, ecx
jle 0x1400a39ab
add rax, 0xfffffffffffffffe
mov edx, ecx
movzx edx, word [rsi + rdx*2 + 0xc]
mov word [rax], dx
dec ecx
jns 0x1400a398a
jmp 0x1400a39c2
mov rdi, r13
jmp 0x1400a38fa
mov r13, rdi
jmp 0x1400a393b
add rax, 0xfffffffffffffffe
cmp ecx, r14d
jae 0x1400a39e5
mov edx, ecx
movzx edx, word [rsi + rdx*2 + 0xc]
mov word [rax], dx
dec ecx
jns 0x1400a39ab
xor eax, eax
mov qword [rsp + 0x28], rax
mov rax, r15
add rsp, 0x30
pop rbx
pop rbp
pop rsi
pop rdi
pop r13
pop r14
pop r15
ret
call fcn.140001690
jmp 0x1400a38f3
call fcn.14010bb40
int3

Function at 0x14010c3b0
Capabilities:
Delete file

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x90]
xor eax, eax
mov qword [rbp - 0x40], rax
test rcx, rcx
je 0x14010c3dc
add rcx, 0xc
mov rbx, rcx
jmp 0x14010c3de
xor ebx, ebx
mov qword [rbp - 0x40], rbx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rbx
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x70]
call fcn.140004720
mov rcx, qword [rbp - 0x48]
call sub.KERNEL32.dll_DeleteFileW
mov ebx, eax
lea rcx, [rbp - 0x70]
call fcn.140004770
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
test ebx, ebx
setne bl
movzx ebx, bl
call fcn.1400025ae
mov dword [rax + 0xa0], esi
movzx eax, bl
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14010d160
Capabilities:
Move file

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
mov rcx, rbx
call fcn.1400dafb0
mov rbx, rax
mov rcx, rsi
call fcn.1400dafb0
mov rsi, rax
mov r8d, 2
mov ecx, 3
test dil, dil
cmovne r8d, ecx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp fcn.14010d090

Function at 0x14010d1b0
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov rbx, rdx
mov esi, r8d
mov rdi, r9
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1400eb6a0
mov rcx, qword [rbp - 0x48]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x54], rcx
mov rdx, rbx
mov qword [rbp - 0x5c], rdx
mov r8d, esi
mov dword [rbp - 0x4c], r8d
mov r9, rdi
mov qword [rbp - 0x64], r9
lea rcx, [rbp - 0x90]
call fcn.140004720
mov rcx, qword [rbp - 0x54]
mov rdx, qword [rbp - 0x5c]
mov r8d, dword [rbp - 0x4c]
mov r9, qword [rbp - 0x64]
call sub.KERNEL32.dll_ReadFile
mov ebx, eax
lea rcx, [rbp - 0x90]
call fcn.140004770
call sub.KERNEL32.dll_GetLastError
mov esi, eax
cmp byte [rbp - 0x40], 0
je 0x14010d26d
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.1400eb6e0
call fcn.1400025ae
mov dword [rax + 0xa0], esi
mov eax, ebx
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x14010d2d0
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov rsi, rdx
mov edi, r8d
mov rbx, r9
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1400eb6a0
nop
mov qword [rbp - 0x50], rbx
mov rcx, qword [rbp - 0x48]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x5c], rcx
mov rdx, rsi
mov qword [rbp - 0x64], rdx
mov r8d, edi
mov dword [rbp - 0x54], r8d
mov r9, rbx
mov qword [rbp - 0x6c], r9
lea rcx, [rbp - 0x98]
call fcn.140004720
mov rcx, qword [rbp - 0x5c]
mov rdx, qword [rbp - 0x64]
mov r8d, dword [rbp - 0x54]
mov r9, qword [rbp - 0x6c]
call sub.KERNEL32.dll_ReadFile
mov ebx, eax
lea rcx, [rbp - 0x98]
call fcn.140004770
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x14010d39f
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.1400eb6e0
call fcn.1400025ae
mov dword [rax + 0xa0], esi
mov eax, ebx
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14010dcf0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov qword [rbp - 0x4c], rcx
mov rdx, rsi
mov qword [rbp - 0x54], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.140004720
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.140004770
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.1400025ae
mov dword [rax + 0xa0], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140143b90
Capabilities:
Parse pe header

Disassembly:
push rsi
push rbx
sub rsp, 0x68
xor eax, eax
mov qword [rsp + 0x28], rax
xorps xmm4, xmm4
movaps xmmword [rsp + 0x30], xmm4
movaps xmmword [rsp + 0x40], xmm4
movaps xmmword [rsp + 0x50], xmm4
mov qword [rsp + 0x60], rax
mov rbx, rcx
mov rsi, rdx
mov rcx, qword [rbx]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
call qword [rax + 0x50]
add rax, 2
cmp rax, qword [rbx + 0x10]
ja 0x140143d61
mov rcx, qword [rbx]
cmp byte [rcx], cl
lea rdx, [rsp + 0x58]
mov r8d, 2
call fcn.1400d67c0
mov rcx, qword [rsp + 0x58]
cmp dword [rsp + 0x60], 2
jl 0x140143d67
movzx ecx, word [rcx]
cmp ecx, 0x5a4d
je 0x140143d53
test ecx, ecx
jne 0x140143c58
mov rcx, qword [rbx]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
call qword [rax + 0x50]
add rax, 2
cmp rax, qword [rbx + 0x10]
ja 0x140143d61
mov rcx, qword [rbx]
cmp byte [rcx], cl
lea rdx, [rsp + 0x48]
mov r8d, 2
call fcn.1400d67c0
mov rcx, qword [rsp + 0x48]
cmp dword [rsp + 0x50], 2
jl 0x140143d67
cmp word [rcx], 0xffff
je 0x140143d98
mov byte [rsi], 1
mov rcx, qword [rbx + 8]
cmp rcx, qword [rbx + 0x10]
ja 0x140143d5b
mov rcx, qword [rbx]
mov rcx, qword [rcx + 8]
xor edx, edx
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0x78]
cmp byte [rsi], 0
jne 0x140143d4c
mov rcx, qword [rbx + 8]
add rcx, 0x3c
cmp rcx, qword [rbx + 0x10]
ja 0x140143d5b
mov rcx, qword [rbx]
mov rcx, qword [rcx + 8]
mov edx, 0x3c
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rcx, qword [rbx]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
call qword [rax + 0x50]
add rax, 4
cmp rax, qword [rbx + 0x10]
ja 0x140143d61
mov rcx, qword [rbx]
cmp byte [rcx], cl
lea rdx, [rsp + 0x38]
mov r8d, 4
call fcn.1400d67c0
mov rcx, qword [rsp + 0x38]
cmp dword [rsp + 0x40], 4
jl 0x140143d67
mov edx, dword [rcx]
mov ecx, edx
add rcx, qword [rbx + 8]
cmp rcx, qword [rbx + 0x10]
ja 0x140143d5b
mov rcx, qword [rbx]
mov rcx, qword [rcx + 8]
movsxd rdx, edx
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rcx, qword [rbx]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
call qword [rax + 0x50]
add rax, 4
cmp rax, qword [rbx + 0x10]
ja 0x140143d61
mov rcx, qword [rbx]
cmp byte [rcx], cl
lea rdx, [rsp + 0x28]
mov r8d, 4
call fcn.1400d67c0
mov rcx, qword [rsp + 0x28]
cmp dword [rsp + 0x30], 4
jl 0x140143d67
cmp dword [rcx], 0x4550
jne 0x140143d72
add rsp, 0x68
pop rbx
pop rsi
ret
mov byte [rsi], 0
jmp 0x140143c7b
call fcn.140141910
int3
call fcn.1401418e0
int3
mov ecx, 0x28
call fcn.1400a81d0
int3
lea rcx, [0x14034f6b8]
call fcn.140004290
mov rbx, rax
mov rcx, rbx
lea rdx, [0x14030cc90]
call fcn.140098950
mov rcx, rbx
call fcn.140004880
lea rcx, [0x14034f6b8]
call fcn.140004290
mov rbx, rax
mov rcx, rbx
lea rdx, [0x140322dc0]
call fcn.140098950
mov rcx, rbx
call fcn.140004880
int3
Function at 0x1401df230
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x90]
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x70]
call fcn.140004720
mov rcx, qword [rbp - 0x48]
call sub.KERNEL32.dll_GetSystemInfo
lea rcx, [rbp - 0x70]
call fcn.140004770
nop
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1402d49c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x38
cmp r8d, 8
jge 0x1402d4a5d
xor eax, eax
cmp r8d, 4
jl 0x1402d4a11
add r8d, 0xfffffffc
movsx r10, word [rcx + rax*2]
movsx r9, dx
cmp r10d, r9d
je 0x1402d4a58
nop dword [rax]
movsx r10, word [rcx + rax*2 + 2]
cmp r10d, r9d
je 0x1402d4a51
movsx r10, word [rcx + rax*2 + 4]
cmp r10d, r9d
je 0x1402d4a49
movsx r10, word [rcx + rax*2 + 6]
cmp r10d, r9d
je 0x1402d4a41
add rax, 4
test r8d, r8d
jle 0x1402d4c3a
movsx r9, dx
nop
dec r8d
movsx rdx, word [rcx + rax*2]
cmp edx, r9d
je 0x1402d4a58
inc rax
test r8d, r8d
jg 0x1402d4a20
jmp 0x1402d4c3a
add eax, 3
jmp 0x1402d4c35
add eax, 2
jmp 0x1402d4c35
inc eax
jmp 0x1402d4c35
jmp 0x1402d4c35
movsx r9, dx
movd xmm0, r9d
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
mov rax, rcx
lea edx, [r8 - 8]
movsxd rdx, edx
add rdx, rdx
lea r10, [rax + rdx]
movups xmm1, xmmword [rax]
pcmpeqw xmm1, xmm0
movaps xmmword [rsp + 0x20], xmm1
xorps xmm2, xmm2
pcmpeqw xmm1, xmm2
pmovmskb r9d, xmm1
cmp r9d, 0xffff
jne 0x1402d4b76
add rax, 0x10
cmp rax, r10
jbe 0x1402d4a80
mov eax, r8d
test al, 7
je 0x1402d4c3a
movups xmm1, xmmword [r10]
pcmpeqw xmm0, xmm1
movaps xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
pcmpeqw xmm0, xmm1
pmovmskb ecx, xmm0
cmp ecx, 0xffff
je 0x1402d4c3a
mov rax, qword [rsp + 0x20]
mov qword [rsp + 8], rax
movzx eax, word [rsp + 8]
shr eax, 0xf
movzx ecx, word [rsp + 0xa]
shr ecx, 0xf
add ecx, ecx
or eax, ecx
movzx ecx, word [rsp + 0xc]
shr ecx, 0xf
shl ecx, 2
or ecx, eax
mov eax, ecx
movzx ecx, word [rsp + 0xe]
shr ecx, 0xf
shl ecx, 3
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov qword [rsp], rcx
movzx ecx, word [rsp]
shr ecx, 0xf
movzx r8d, word [rsp + 2]
shr r8d, 0xf
add r8d, r8d
or ecx, r8d
movzx r8d, word [rsp + 4]
shr r8d, 0xf
shl r8d, 2
or r8d, ecx
mov ecx, r8d
movzx r8d, word [rsp + 6]
shr r8d, 0xf
shl r8d, 3
or r8d, ecx
mov ecx, r8d
shl ecx, 4
or eax, ecx
jne 0x1402d4c2c
mov ecx, 0x20
jmp 0x1402d4c2f
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x18], rdx
movzx edx, word [rsp + 0x18]
shr edx, 0xf
movzx r8d, word [rsp + 0x1a]
shr r8d, 0xf
add r8d, r8d
or edx, r8d
movzx r8d, word [rsp + 0x1c]
shr r8d, 0xf
shl r8d, 2
or r8d, edx
mov edx, r8d
movzx r8d, word [rsp + 0x1e]
shr r8d, 0xf
shl r8d, 3
or r8d, edx
mov edx, r8d
mov r8, qword [rsp + 0x28]
mov qword [rsp + 0x10], r8
movzx r8d, word [rsp + 0x10]
shr r8d, 0xf
movzx r10d, word [rsp + 0x12]
shr r10d, 0xf
add r10d, r10d
or r8d, r10d
movzx r10d, word [rsp + 0x14]
shr r10d, 0xf
shl r10d, 2
or r10d, r8d
mov r8d, r10d
movzx r10d, word [rsp + 0x16]
shr r10d, 0xf
shl r10d, 3
or r10d, r8d
mov r8d, r10d
shl r8d, 4
or edx, r8d
jne 0x1402d4c1d
mov r8d, 0x20
jmp 0x1402d4c21
bsf r8d, edx
sub rax, rcx
shr rax, 1
add eax, r8d
jmp 0x1402d4c35
bsf ecx, eax
shr rdx, 1
lea eax, [rdx + rcx]
add rsp, 0x38
ret
mov eax, 0xffffffff
add rsp, 0x38
ret
Function at 0x1402dd7c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
cmp r9d, 8
jge 0x1402dd811
movzx r10d, dx
sub r8d, r10d
movzx eax, r8w
xor edx, edx
test r9d, r9d
jle 0x1402dda3b
movsxd r8, edx
movzx r8d, word [rcx + r8*2]
sub r8d, r10d
movzx r8d, r8w
cmp r8d, eax
jle 0x1402dd805
inc edx
cmp edx, r9d
jl 0x1402dd7e5
jmp 0x1402dda3b
mov eax, edx
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
movzx r10d, dx
movd xmm0, r10d
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
mov eax, r8d
sub eax, r10d
movzx eax, ax
movd xmm1, eax
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
mov rax, rcx
add r9d, 0xfffffff8
mov edx, r9d
add rdx, rdx
lea r8, [rax + rdx]
movups xmm2, xmmword [case.0x1402ca6e5.101]
movaps xmm3, xmm1
psubw xmm3, xmm2
movups xmm4, xmmword [rax]
psubw xmm4, xmm0
movaps xmm5, xmm4
psubw xmm5, xmm2
movaps xmm6, xmm3
pcmpgtw xmm6, xmm5
pcmpeqw xmm4, xmm1
por xmm4, xmm6
movaps xmmword [rsp + 0x20], xmm4
xorps xmm5, xmm5
pcmpeqw xmm4, xmm5
pmovmskb r10d, xmm4
cmp r10d, 0xffff
jne 0x1402dd97b
add rax, 0x10
cmp rax, r8
jb 0x1402dd858
movups xmm4, xmmword [r8]
psubw xmm4, xmm0
movaps xmm0, xmm4
psubw xmm0, xmm2
pcmpgtw xmm3, xmm0
pcmpeqw xmm1, xmm4
por xmm1, xmm3
movaps xmmword [rsp + 0x20], xmm1
xorps xmm0, xmm0
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
cmp eax, 0xffff
je 0x1402dda3b
mov rax, qword [rsp + 0x20]
mov qword [rsp + 8], rax
movzx eax, word [rsp + 8]
shr eax, 0xf
movzx ecx, word [rsp + 0xa]
shr ecx, 0xf
add ecx, ecx
or eax, ecx
movzx ecx, word [rsp + 0xc]
shr ecx, 0xf
shl ecx, 2
or ecx, eax
mov eax, ecx
movzx ecx, word [rsp + 0xe]
shr ecx, 0xf
shl ecx, 3
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov qword [rsp], rcx
movzx ecx, word [rsp]
shr ecx, 0xf
movzx r8d, word [rsp + 2]
shr r8d, 0xf
add r8d, r8d
or ecx, r8d
movzx r8d, word [rsp + 4]
shr r8d, 0xf
shl r8d, 2
or r8d, ecx
mov ecx, r8d
movzx r8d, word [rsp + 6]
shr r8d, 0xf
shl r8d, 3
or r8d, ecx
mov ecx, r8d
shl ecx, 4
or eax, ecx
bsf ecx, eax
mov r8d, 0x20
test eax, eax
cmove ecx, r8d
mov eax, ecx
shr rdx, 1
add eax, edx
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x18], rdx
movzx edx, word [rsp + 0x18]
shr edx, 0xf
movzx r8d, word [rsp + 0x1a]
shr r8d, 0xf
add r8d, r8d
or edx, r8d
movzx r8d, word [rsp + 0x1c]
shr r8d, 0xf
shl r8d, 2
or r8d, edx
mov edx, r8d
movzx r8d, word [rsp + 0x1e]
shr r8d, 0xf
shl r8d, 3
or r8d, edx
mov edx, r8d
mov r8, qword [rsp + 0x28]
mov qword [rsp + 0x10], r8
movzx r8d, word [rsp + 0x10]
shr r8d, 0xf
movzx r10d, word [rsp + 0x12]
shr r10d, 0xf
add r10d, r10d
or r8d, r10d
movzx r10d, word [rsp + 0x14]
shr r10d, 0xf
shl r10d, 2
or r10d, r8d
mov r8d, r10d
movzx r10d, word [rsp + 0x16]
shr r10d, 0xf
shl r10d, 3
or r10d, r8d
mov r8d, r10d
shl r8d, 4
or edx, r8d
bsf r8d, edx
mov r10d, 0x20
test edx, edx
cmove r8d, r10d
sub rax, rcx
shr rax, 1
add eax, r8d
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
mov eax, 0xffffffff
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x140012950
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x14010a068]
xor rax, rsp
mov qword [rbp + 0x140], rax
and qword [rdx], 0
mov r15, rdx
mov r8, rcx
mov edx, 0x104
lea rcx, [rsp + 0x30]
xor r14d, r14d
call fcn.140016cc4
lea r8, [0x1400ef330]
lea rcx, [rsp + 0x30]
call fcn.140016d4c
mov edi, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x1400129f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140012b20
mov rcx, qword [rbp + 0x168]
mov edx, 0xc0
call fcn.14000687c
mov esi, eax
jmp 0x140012b04
and dword [rsp + 0x24], r14d
lea rdx, [rsp + 0x24]
and dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.140006944
mov esi, eax
test eax, eax
jns 0x140012a3a
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xc6
call fcn.140006840
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140012b63
jmp 0x140012b04
lea r8, [0x1400ef338]
lea rcx, [rsp + 0x30]
call fcn.140016d4c
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x140012a88
mov rcx, qword [rbp + 0x168]
mov edx, 0xcc
call fcn.14000687c
mov rcx, rbx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140012b75
jmp 0x140012b04
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140006944
mov esi, eax
test eax, eax
jns 0x140012ad3
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xce
call fcn.140006840
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140012b99
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140012b87
jmp 0x140012b04
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140012bab
movsxd rax, dword [rsp + 0x20]
mov rcx, rbx
movsxd r14, dword [rsp + 0x24]
shl rax, 0x1f
or r14, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140012b51
xor esi, esi
test esi, esi
jns 0x140012b20
mov rcx, qword [rbp + 0x168]
mov r9d, esi
mov edx, 0x59
call fcn.140006840
mov eax, esi
jmp 0x140012b25
mov qword [r15], r14
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400e3680
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [rbp + 0x168]
mov edx, 0x8f0
call fcn.14000689c
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x8f0
call fcn.14000689c
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x8f0
call fcn.14000689c
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x8f0
call fcn.14000689c
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x8f0
call fcn.14000689c
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x8f0
call fcn.14000689c
int3
Function at 0x140018730
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
xor edx, edx
mov rcx, qword [rcx + 0x1f0]
mov rax, qword [rcx]
mov rax, qword [rax + 0x68]
call qword [case.0x140064bf9.0]
mov rcx, qword [rbx + 0x208]
xor edx, edx
mov rax, qword [rcx]
mov rax, qword [rax + 0x68]
call qword [case.0x140064bf9.0]
mov rcx, rbx
call fcn.14002721c
cmp dword [rbx + 0x1424], 0
jne 0x1400187c1
mov edx, 1
mov rcx, rbx
mov r8d, edx
call fcn.14001a360
and dword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov rcx, qword [rbx + 0x13b8]
lea rdx, str.EnableBalloon
mov r9d, 4
mov dword [rbx + 0x1424], 1
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp byte [0x140111efc], 0
je 0x1400187e1
mov edx, 0xe9c
lea rcx, [0x14010a480]
mov r8d, 1
call fcn.140037844
add rsp, 0x30
pop rbx
ret