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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, r9d
mov r11, rdx
or al, cl
mov r10, rcx
or al, dl
or al, r8b
test al, 7
jne 0x1400afafc
shr r9d, 3
xor eax, eax
test r9d, r9d
je 0x1400afc35
cmp r9d, 8
jb 0x1400afacf
lea ecx, [r9 - 1]
mov edx, ecx
lea rbx, [r10 + rcx*8]
lea rcx, [r8 + rcx*8]
cmp r10, rcx
ja 0x1400afa43
cmp rbx, r8
jae 0x1400afacf
lea rcx, [r11 + rdx*8]
cmp r10, rcx
ja 0x1400afa51
cmp rbx, r11
jae 0x1400afacf
mov ebx, r9d
and ebx, 0xfffffff8
mov edi, 4
nop dword [rax]
movdqu xmm0, xmmword [r8 + rax*8]
lea ecx, [rdi - 2]
movdqu xmm1, xmmword [r11 + rax*8]
xorps xmm1, xmm0
movdqu xmm0, xmmword [r11 + rcx*8]
movdqu xmmword [r10 + rax*8], xmm1
add eax, 8
movdqu xmm1, xmmword [r8 + rcx*8]
xorps xmm1, xmm0
movdqu xmmword [r10 + rcx*8], xmm1
mov ecx, edi
movdqu xmm0, xmmword [r11 + rcx*8]
movdqu xmm1, xmmword [r8 + rcx*8]
xorps xmm1, xmm0
movdqu xmmword [r10 + rcx*8], xmm1
lea ecx, [rdi + 2]
add edi, 8
movdqu xmm1, xmmword [r8 + rcx*8]
movdqu xmm0, xmmword [r11 + rcx*8]
xorps xmm1, xmm0
movdqu xmmword [r10 + rcx*8], xmm1
cmp eax, ebx
jb 0x1400afa60
cmp eax, r9d
jae 0x1400afc35
sub r11, r8
lea rdx, [r8 + rax*8]
sub r10, r8
sub r9d, eax
mov ecx, r9d
nop
mov rax, qword [r11 + rdx]
xor rax, qword [rdx]
mov qword [r10 + rdx], rax
lea rdx, [rdx + 8]
sub rcx, 1
jne 0x1400afae0
mov rbx, qword [rsp + 0x18]
pop rdi
ret
xor eax, eax
test r9d, r9d
je 0x1400afc35
cmp r9d, 8
jb 0x1400afc01
lea ecx, [r9 - 1]
mov edx, ecx
lea rbx, [rcx + r10]
add rcx, r11
cmp r10, rcx
ja 0x1400afb2c
cmp rbx, r11
jae 0x1400afc01
lea rcx, [rdx + r8]
cmp r10, rcx
ja 0x1400afb3e
cmp rbx, r8
jae 0x1400afc01
cmp r9d, 0x40
jb 0x1400afbd0
mov qword [rsp + 0x10], rsi
mov edi, r9d
and edi, 0x3f
mov esi, r9d
sub esi, edi
mov ebx, 0x20
nop dword [rax]
movdqu xmm0, xmmword [rax + r8]
lea ecx, [rbx - 0x10]
movdqu xmm1, xmmword [rax + r11]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rcx + r8]
movdqu xmmword [rax + r10], xmm1
add eax, 0x40
movdqu xmm1, xmmword [rcx + r11]
xorps xmm1, xmm0
movdqu xmmword [rcx + r10], xmm1
mov ecx, ebx
movdqu xmm0, xmmword [rcx + r8]
movdqu xmm1, xmmword [rcx + r11]
xorps xmm1, xmm0
movdqu xmmword [rcx + r10], xmm1
lea ecx, [rbx + 0x10]
add ebx, 0x40
movdqu xmm1, xmmword [rcx + r11]
movdqu xmm0, xmmword [rcx + r8]
xorps xmm1, xmm0
movdqu xmmword [rcx + r10], xmm1
cmp eax, esi
jb 0x1400afb60
mov rsi, qword [rsp + 0x10]
cmp edi, 8
jb 0x1400afbfc
mov edx, r9d
and edx, 0xfffffff8
nop word [rax + rax]
movq xmm1, qword [rax + r11]
movq xmm0, qword [rax + r8]
xorps xmm1, xmm0
movq qword [rax + r10], xmm1
add eax, 8
cmp eax, edx
jb 0x1400afbe0
cmp eax, r9d
jae 0x1400afc35
mov edx, eax
sub r8, r11
add rdx, r11
sub r10, r11
sub r9d, eax
mov ecx, r9d
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
xor al, byte [rdx]
mov byte [r10 + rdx], al
lea rdx, [rdx + 1]
sub rcx, 1
jne 0x1400afc20
mov rbx, qword [rsp + 0x18]
pop rdi
ret
Function at 0x1400b5bc0
Capabilities:
Hash data using sha256

Disassembly:
push rbp
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0x100
mov rax, qword [0x140122218]
xor rax, rsp
mov qword [rbp - 9], rax
mov r15, qword [rbp + 0x67]
mov rdi, rdx
mov r12, qword [rbp + 0x77]
mov esi, 0x37
mov byte [rsp + 0x28], r9b
test rcx, rcx
jne 0x1400b5c04
lea eax, [rsi - 0x36]
jmp 0x1400b5dd5
mov ecx, 0x1b8
mov qword [rsp + 0x130], rbx
mov eax, ecx
mov qword [rsp + 0xf8], r13
rol ecx, 8
mov r13d, 2
ror eax, 8
xor ecx, eax
mov qword [rsp + 0xf0], r14
and ecx, 0xff00ff
mov byte [rsp + 0x20], 1
xor ecx, eax
mov dword [rsp + 0x30], ecx
xor r14d, r14d
nop word [rax + rax]
mov r8d, 1
mov dword [rsp + 0x40], 0x6a09e667
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x44], 0xbb67ae85
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x48], 0x3c6ef372
mov dword [rsp + 0x4c], 0xa54ff53a
mov dword [rsp + 0x50], 0x510e527f
mov dword [rsp + 0x54], 0x9b05688c
mov dword [rsp + 0x58], 0x1f83d9ab
mov dword [rsp + 0x5c], 0x5be0cd19
mov qword [rbp - 0x49], r14
mov dword [rbp - 0x41], r14d
mov qword [rbp - 0x39], r14
call fcn.1400aee30
mov ebx, eax
test eax, eax
jne 0x1400b5d8b
inc byte [rsp + 0x20]
lea r8d, [rax + 4]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1400aee30
mov ebx, eax
test eax, eax
jne 0x1400b5d8b
cmp byte [rsp + 0x28], 4
je 0x1400b5d00
lea r8d, [rax + 1]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x40]
call fcn.1400aee30
mov ebx, eax
test eax, eax
jne 0x1400b5d8b
test r15, r15
jne 0x1400b5d12
cmp dword [rbp + 0x6f], r14d
jbe 0x1400b5d29
mov ebx, 0xffffff53
jmp 0x1400b5d8b
mov r8d, dword [rbp + 0x6f]
lea rcx, [rsp + 0x40]
mov rdx, r15
call fcn.1400aee30
mov ebx, eax
test eax, eax
jne 0x1400b5d8b
test r12, r12
je 0x1400b5d4b
mov eax, dword [rbp + 0x7f]
test eax, eax
je 0x1400b5d4b
mov r8d, eax
lea rcx, [rsp + 0x40]
mov rdx, r12
call fcn.1400aee30
mov ebx, eax
test eax, eax
jne 0x1400b5d8b
lea rdx, [rbp - 0x29]
lea rcx, [rsp + 0x40]
call fcn.1400af7d0
mov ebx, eax
test eax, eax
jne 0x1400b5d8b
cmp esi, 0x20
jbe 0x1400b5d7c
movups xmm0, xmmword [rbp - 0x29]
add esi, 0xffffffe0
movups xmm1, xmmword [rbp - 0x19]
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm1
add rdi, 0x20
jmp 0x1400b5d8b
mov r8d, esi
lea rdx, [rbp - 0x29]
mov rcx, rdi
call fcn.1400c3f50
sub r13, 1
jne 0x1400b5c50
mov r13, qword [rsp + 0xf8]
lea rdx, [rbp - 0x29]
mov ecx, 0x20
nop word [rax + rax]
mov byte [rdx], r14b
lea rdx, [rdx + 1]
add ecx, 0xffffffff
jne 0x1400b5db0
test ebx, ebx
mov rbx, qword [rsp + 0x130]
setne r14b
mov eax, r14d
mov r14, qword [rsp + 0xf0]
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1400c17f0
add rsp, 0x100
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400b5f20
Capabilities:
Hash data using sha256

Disassembly:
push rbp
push rdi
push r13
push r14
lea rbp, [rsp - 0x38]
sub rsp, 0x138
mov rax, qword [0x140122218]
xor rax, rsp
mov qword [rbp + 8], rax
mov r13, rdx
mov rdi, rcx
mov r14d, 1
test rcx, rcx
jne 0x1400b5f5a
mov eax, r14d
jmp 0x1400b6167
movups xmm0, xmmword [r9]
mov qword [rsp + 0x130], rbx
test r8d, r8d
movups xmm1, xmmword [r9 + 0x10]
mov qword [rsp + 0x128], rsi
mov esi, r14d
cmovne esi, r8d
mov qword [rsp + 0x120], r12
test sil, 0x1f
mov qword [rsp + 0x118], r15
mov r15d, 0
mov eax, esi
mov ecx, r15d
mov r12d, r15d
setne cl
shr eax, 5
add ecx, eax
mov eax, dword [r9 + 0x30]
mov dword [rbp], eax
lea ebx, [r15 + 0x37]
movzx eax, word [r9 + 0x34]
movups xmmword [rbp - 0x30], xmm0
mov word [rbp + 4], ax
movups xmm0, xmmword [r9 + 0x20]
movzx eax, byte [r9 + 0x36]
mov byte [rbp + 6], al
mov dword [rsp + 0x20], ecx
movups xmmword [rbp - 0x20], xmm1
movups xmmword [rbp - 0x10], xmm0
je 0x1400b612d
nop
mov r8d, ebx
mov dword [rsp + 0x50], 0x6a09e667
lea rdx, [rbp - 0x30]
mov dword [rsp + 0x54], 0xbb67ae85
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x58], 0x3c6ef372
mov dword [rsp + 0x5c], 0xa54ff53a
mov dword [rsp + 0x60], 0x510e527f
mov dword [rsp + 0x64], 0x9b05688c
mov dword [rsp + 0x68], 0x1f83d9ab
mov dword [rsp + 0x6c], 0x5be0cd19
mov qword [rbp - 0x50], r15
mov dword [rbp - 0x48], r15d
mov qword [rbp - 0x40], r15
call fcn.1400aee30
mov r14d, eax
test eax, eax
jne 0x1400b612d
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.1400af7d0
mov r14d, eax
test eax, eax
jne 0x1400b612d
cmp dword [rdi], 1
mov eax, dword [rsp + 0x28]
jbe 0x1400b6099
cmp eax, dword [rdi + 4]
jne 0x1400b6099
cmp byte [rdi + 0x80], 1
je 0x1400b6181
mov r8d, dword [rsp + 0x20]
mov dl, 1
lea eax, [r8 - 1]
cmp r12d, eax
lea ecx, [r8 + 1]
cmovne ecx, r8d
mov dword [rsp + 0x20], ecx
jmp 0x1400b609e
mov dword [rdi + 4], eax
xor dl, dl
mov byte [rdi + 0x80], dl
test r13, r13
je 0x1400b611f
test esi, esi
je 0x1400b611f
cmp esi, 0x20
jb 0x1400b610c
movups xmm0, xmmword [rsp + 0x28]
add esi, 0xffffffe0
lea rcx, [rbp + 4]
movups xmm1, xmmword [rsp + 0x38]
mov edx, 0x36
lea rax, [rbp + 4]
movups xmmword [r13], xmm0
movups xmmword [r13 + 0x10], xmm1
add r13, 0x20
sub rdx, rcx
nop dword [rax]
add byte [rax + 2], 1
jne 0x1400b611f
add byte [rax + 1], 1
jne 0x1400b611f
add byte [rax], 1
jne 0x1400b611f
add byte [rax - 1], 1
jne 0x1400b611f
add byte [rax - 2], 1
jne 0x1400b611f
sub rax, 5
lea rcx, [rdx + rax]
test rcx, rcx
jns 0x1400b60e0
jmp 0x1400b611f
mov r8d, esi
lea rdx, [rsp + 0x28]
mov rcx, r13
call fcn.1400c3f50
mov esi, r15d
inc r12d
cmp r12d, dword [rsp + 0x20]
jl 0x1400b5fe0
lea rcx, [rbp - 0x30]
mov byte [rcx], r15b
lea rcx, [rcx + 1]
add ebx, 0xffffffff
jne 0x1400b6131
test r14d, r14d
setne r15b
mov eax, r15d
mov r12, qword [rsp + 0x120]
mov rsi, qword [rsp + 0x128]
mov rbx, qword [rsp + 0x130]
mov r15, qword [rsp + 0x118]
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.1400c17f0
add rsp, 0x138
pop r14
pop r13
pop rdi
pop rbp
ret
mov eax, 3
jmp 0x1400b6147
Function at 0x1400b6870
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x140122218]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
test rcx, rcx
jne 0x1400b689a
mov eax, 0xffffff53
jmp 0x1400b6a94
mov qword [rsp + 0xb8], rbp
xor ebp, ebp
mov qword [rcx + 0x10], rbp
mov byte [rcx + 0x18], bpl
mov qword [rcx + 8], r9
xor ecx, ecx
mov qword [rsp + 0xc8], rdi
call fcn.1400b6fa0
test eax, eax
jne 0x1400b6a79
mov rax, qword [0x1402324f8]
mov ecx, 0x88
mov qword [rsp + 0xc0], rsi
test rax, rax
je 0x1400b68e4
call rax
jmp 0x1400b68e9
call fcn.1400ca3b8
mov qword [rbx + 0x10], rax
mov esi, 0x34
test rax, rax
jne 0x1400b6903
lea edi, [rax - 0x7d]
mov byte [rbx + 0x18], 2
jmp 0x1400b6a3e
mov edi, 1
mov dword [rsp + 0x20], 0xf0000000
mov r9d, edi
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400b6a18
mov rcx, qword [rbx]
lea r8, [rsp + 0x40]
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1400b6a18
mov rcx, qword [rbx]
xor edx, edx
mov qword [rsp + 0x98], r12
mov qword [rsp + 0x90], r13
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x80], r15
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov r12d, 4
mov edi, ebp
mov r14d, ebp
mov r8d, r12d
mov r15, rbp
lea r13d, [r12 - 1]
nop dword [rax]
nop word [rax + rax]
mov eax, r8d
lea rdx, [rsp + 0x40]
add rax, r15
lea rcx, [rsp + 0x40]
add rdx, rax
add rcx, r15
call fcn.140064320
test eax, eax
mov r8d, esi
cmove edi, r13d
add r14d, r12d
sub r8d, r14d
add r15, r12
cmp r8d, r12d
cmova r8d, r12d
cmp r14d, 0x30
jb 0x1400b6990
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
mov r13, qword [rsp + 0x90]
mov r12, qword [rsp + 0x98]
test edi, edi
jne 0x1400b6a1c
mov rax, qword [rbx + 8]
lea r8d, [rdi + 0x30]
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x44]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov dword [rsp + 0x20], ebp
call fcn.1400b67b0
mov edi, eax
test eax, eax
je 0x1400b6a3e
jmp 0x1400b6a1c
mov byte [rbx + 0x18], 2
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400b6a3a
mov rax, qword [0x1402324f0]
test rax, rax
je 0x1400b6a35
call rax
jmp 0x1400b6a3a
call fcn.1400c970c
mov qword [rbx + 0x10], rbp
lea rax, [rsp + 0x40]
mov byte [rax], bpl
lea rax, [rax + 1]
add esi, 0xffffffff
jne 0x1400b6a43
mov rsi, qword [rsp + 0xc0]
test edi, edi
jne 0x1400b6a61
mov byte [rbx + 0x18], 1
jmp 0x1400b6a82
cmp edi, 3
je 0x1400b6a79
cmp edi, 1
mov byte [rbx + 0x18], 2
mov eax, 0xffffff39
cmove edi, eax
mov ebp, edi
jmp 0x1400b6a82
mov byte [rbx + 0x18], 3
mov ebp, 0xffffff2f
mov rdi, qword [rsp + 0xc8]
mov eax, ebp
mov rbp, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400c17f0
add rsp, 0xa0
pop rbx
ret
Function at 0x1400b6ab0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rsi
push r13
push r14
sub rsp, 0x150
mov rax, qword [0x140122218]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov dword [rsp + 0x60], r8d
mov rsi, rcx
mov qword [rsp + 0x68], rdx
test rcx, rcx
je 0x1400b6cf5
test rdx, rdx
je 0x1400b6cf5
test r8d, r8d
jne 0x1400b6afa
xor eax, eax
jmp 0x1400b6cfa
cmp r8d, 0x10000
ja 0x1400b6cf5
cmp byte [rcx + 0x18], 1
je 0x1400b6b17
mov eax, 0xffffff39
jmp 0x1400b6cfa
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x148], rbp
mov qword [rsp + 0x140], rdi
call fcn.1400b6190
xor ebp, ebp
mov edi, eax
cmp eax, 2
jne 0x1400b6cc4
lea rax, [rsp + 0xa0]
mov edi, 1
mov qword [rsp + 0x38], rax
lea r9, str.c63w
lea rax, [0x140109d88]
mov dword [rsp + 0x30], 0x20
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0x30
mov ecx, edi
call fcn.1400b6e10
test eax, eax
jne 0x1400b6ccd
lea r8d, [rdi + 0x7f]
lea rdx, [0x140109e60]
lea rcx, [rsp + 0xa0]
call fcn.140064320
test eax, eax
jne 0x1400b6ccd
mov r9d, edi
mov qword [rsp + 0x188], rbx
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea ebx, [rbp + 0x24]
test eax, eax
je 0x1400b6ca3
mov rcx, qword [rsi]
lea r8, [rsp + 0x70]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1400b6ca3
mov rcx, qword [rsi]
xor edx, edx
mov qword [rsp + 0x138], r12
mov qword [rsp + 0x130], r15
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov r8d, 4
lea r14d, [rbp + 3]
mov r13d, r8d
mov edi, ebp
mov r15d, ebp
mov r12d, ebp
nop word [rax + rax]
mov eax, r8d
lea rdx, [rsp + 0x70]
add rax, r12
lea rcx, [rsp + 0x70]
add rdx, rax
add rcx, r12
call fcn.140064320
test eax, eax
mov r8d, ebx
cmove edi, r14d
add r15d, r13d
sub r8d, r15d
add r12, r13
cmp r8d, r13d
cmova r8d, r13d
cmp r15d, 0x20
jb 0x1400b6c20
mov r15, qword [rsp + 0x130]
mov r12, qword [rsp + 0x138]
mov r14d, dword [rsp + 0x60]
mov r13, qword [rsp + 0x68]
test edi, edi
jne 0x1400b6ca3
mov rcx, qword [rsi + 0x10]
lea rdx, [rsp + 0x74]
mov r8d, 0x20
call fcn.1400b5df0
mov edi, eax
test eax, eax
jne 0x1400b6ca3
mov rcx, qword [rsi + 0x10]
mov r8d, r14d
mov rdx, r13
call fcn.1400b6190
mov edi, eax
lea rax, [rsp + 0x70]
nop dword [rax + rax]
mov byte [rax], bpl
lea rax, [rax + 1]
add ebx, 0xffffffff
jne 0x1400b6cb0
mov rbx, qword [rsp + 0x188]
test edi, edi
je 0x1400b6ce1
cmp edi, 3
jne 0x1400b6cd8
mov ebp, 0xffffff2f
mov byte [rsi + 0x18], 3
jmp 0x1400b6ce1
mov ebp, 0xffffff39
mov byte [rsi + 0x18], 2
mov rdi, qword [rsp + 0x140]
mov eax, ebp
mov rbp, qword [rsp + 0x148]
jmp 0x1400b6cfa
mov eax, 0xffffff53
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400c17f0
add rsp, 0x150
pop r14
pop r13
pop rsi
ret
Function at 0x1400be6a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r12
push r13
mov rbp, r8
mov rbx, rdx
mov r11, rcx
mov rsi, rdx
movabs r12, 0x82434fe90edcef39
movabs r13, 0xec99bf0d8372caab
cmp rdx, 0x20
jbe 0x1400be79d
mov qword [rsp + 0x28], rdi
mov rdi, r8
mov qword [rsp + 0x30], r14
mov r14, rdx
ror r14, 0x11
ror rdi, 0x11
add r14, r8
mov qword [rsp + 0x38], r15
xor rdi, rdx
lea r15, [rdx - 0x1f]
add r15, rcx
nop
mov r10, qword [r11 + 0x10]
mov rax, qword [r11]
mov r8, qword [r11 + 0x18]
mov r9, qword [r11 + 8]
add r11, 0x20
lea rdx, [r10 + rdi]
ror rdx, 0x11
xor rdx, rax
lea rcx, [r8 + r14]
ror rax, 0x29
xor rax, rbp
ror rcx, 0x11
add r14, rax
xor rcx, r9
ror r9, 0x1f
lea rax, [rdx + r8]
imul rax, r12
xor r9, rsi
xor rbp, rax
sub rdi, r9
lea rax, [rcx + r10]
imul rax, r13
xor rsi, rax
cmp r11, r15
jb 0x1400be700
mov r15, qword [rsp + 0x38]
mov rax, r14
ror rax, 0x11
movabs rcx, 0xcb5af53ae3aaac31
add rax, rdi
ror rdi, 0x11
add rdi, r14
mov r14, qword [rsp + 0x30]
imul rax, rcx
xor rbp, rax
movabs rax, 0xc060724a8424f345
imul rdi, rax
xor rsi, rdi
mov rdi, qword [rsp + 0x28]
and ebx, 0x1f
movabs r8, 0x9c06faf4d023e3ab
cmp rbx, 0x18
ja case.default.0x1400be7c6
lea rdx, [0x140000000]
movzx eax, byte [rdx + rbx + 0xbe888]
mov ecx, dword [rdx + rax*4 + 0xbe878]
add rcx, rdx
jmp rcx
mov rax, r8
mul qword [r11]
xor rdx, rax
add rsi, rdx
add r11, 8
movabs rax, 0xbd9cacc22c6e9571
mul qword [r11]
xor rdx, rax
add rbp, rdx
add r11, 8
movabs rax, 0xd4f06db99d67be4b
mul qword [r11]
xor rdx, rax
add rsi, rdx
add r11, 8
neg ebx
and ebx, 7
lea ecx, [rbx*8]
test r11, 0xff8
je 0x1400be828
mov eax, ebx
sub r11, rax
mov rdx, qword [r11]
shr rdx, cl
jmp 0x1400be835
mov rdx, 0xffffffffffffffff
shr rdx, cl
and rdx, qword [r11]
mov rax, r12
mul rdx
xor rdx, rax
add rbp, rdx
mov rbx, qword [rsp + 0x40]
lea rcx, [rsi + rbp]
ror rcx, 0x11
xor rsi, rbp
imul rsi, r13
mov rax, r8
mul rcx
mov rcx, rax
mov rax, rsi
ror rax, 0x29
xor rdx, rcx
xor rax, rsi
add rax, rdx
pop r13
pop r12
pop rsi
pop rbp
ret

Function at 0x1400c0420
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 0x1400c04a4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400ef800]
cmp byte [rcx + rax], 0
je 0x1400c04a4
dec r8
sub rdx, 1
jne 0x1400c048a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400c09f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400c0534
mov ebx, eax
test eax, eax
jne 0x1400c0a20
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400c0a7c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400c0a73
test al, 0x10
je 0x1400c0a73
bt eax, 0xa
jae 0x1400c0a6c
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400c0a94
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400c0a68
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400c0a8c
test edi, edi
jne 0x1400c0a73
and dword [rsp + 0x3c], 0
jmp 0x1400c0a78
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.1400ca5e0
int3

Function at 0x1400c2714
Capabilities:
Parse pe header

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

Function at 0x1400c8904
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400c8924
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400d3a70
or eax, 0xffffffff
jmp 0x1400c8926
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400ca4f8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400ca52f
call fcn.1400d3afc
mov dword [rax], 0x16
call fcn.1400ca320
xor eax, eax
jmp 0x1400ca5bd
mov rdx, r9
mov rcx, r8
call fcn.1400ca494
mov rbx, rax
test rax, rax
je 0x1400ca5ba
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400ca3c0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400ca5a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400d3a70
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400ca58e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400ca59d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400d9960
jmp 0x1400ca5ba
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400ca5b7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400ca9b4
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.1400c2480
sub rsp, rax
mov rax, qword [0x140122218]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400d7fc4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400caa03
mov rax, rbp
jmp 0x1400cab0b
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 + 0x231100]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400dbc30
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x231100]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400cab07
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 0x1400cab07
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400dbc30
test rax, rax
js 0x1400cab07
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400cab07
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400caaf9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400caaf9
cmp byte [rcx], 0xd
jne 0x1400caadf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400caaee
cmp byte [rcx + 1], 0xa
jne 0x1400caaee
inc rcx
jmp 0x1400caaee
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1225f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400caac1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400cab0b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400c17f0
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 0x1400d45d8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400d43d4

Function at 0x1400d80e4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400d80fa
mov al, 1
jmp 0x1400d815a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400d810b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400d8158
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400e0e60
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400d8158
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400d8158
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400d8158
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400d815a
xor al, al
add rsp, 0x20
pop rbx
ret