joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010d420
Capabilities:
Get file size

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

Function at 0x14010e190
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140106c50
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140106c50
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14010e2e0
cmp rax, 0xffffffffffffffff
je 0x14010e2e0
xor edi, edi
test rbp, rbp
jle 0x14010e28b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14010acb8
mov rbx, rax
test rax, rax
jne 0x14010e218
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14010e281
mov edx, 0x8000
mov ecx, r14d
call fcn.1401081f4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140109974
cmp eax, 0xffffffff
je 0x14010e261
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14010e228
mov edx, r15d
mov ecx, r14d
call fcn.1401081f4
jmp 0x14010e281
cmp byte [rsi + 0x38], dil
je 0x14010e278
cmp dword [rsi + 0x34], 5
jne 0x14010e278
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x14010e281
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14010ad30
jmp 0x14010e2f4
jns 0x14010e2f4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140106c50
cmp rax, 0xffffffffffffffff
jne 0x14010e2ac
cmp byte [rsi + 0x30], dil
je 0x14010e2f4
mov edi, dword [rsi + 0x2c]
jmp 0x14010e2f4
mov ecx, r14d
call fcn.14010e080
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14010e2f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x14010e2f4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14010e2ed
mov eax, dword [rsi + 0x2c]
jmp 0x14010e2f2
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140106c50
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140111b70
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140111ba0
xor eax, eax
jmp 0x140111c63
mov rbp, rbx
cmp word [rax], si
je 0x140111bc5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140111bac
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140111ba8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14010eb2c
movsxd r14, eax
test eax, eax
jne 0x140111c03
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140111b99
mov rcx, r14
call fcn.14010b914
mov rdi, rax
test rax, rax
jne 0x140111c1c
xor ecx, ecx
call fcn.14010ad30
jmp 0x140111bf8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14010eb2c
test eax, eax
jne 0x140111c4d
mov rcx, rdi
call fcn.14010ad30
jmp 0x140111c57
xor ecx, ecx
call fcn.14010ad30
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140111c80
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 0x140111d07
mov rsi, rbx
cmp word [rax], bp
je 0x140111cc6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140111cb0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140111cac
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14010b914
mov rdi, rax
test rax, rax
je 0x140111cf4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140118220
mov rbp, rdi
xor ecx, ecx
call fcn.14010ad30
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
Function at 0x140112fc0
Capabilities:
Delete file

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

Function at 0x140114e90
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14015f700]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140114eda
call fcn.1400fc7d4
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1400fc7f4
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1400f7f20
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400f09f0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140114ee5
lea eax, [rbx + 1]
jmp 0x140114ec7
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140114ec5
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140114ec7

Function at 0x140117e50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140117e78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140117e78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400493d0
Capabilities:
Check mutex on windows

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov byte [rcx], 0
mov qword [rcx + 8], 0
lea r8, str.A946A6A9_917E_4949_B9BC_6BADA8C7FD63
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsi + 8], rax
test rax, rax
je 0x140049410
mov rcx, rax
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete byte [rsi]
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x14004a980
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
push rbx
mov r8, rcx
xor ebx, ebx
xor eax, eax
xor ecx, ecx
xchg rbx, rsi
cpuid
xchg rbx, rsi
test eax, eax
jle 0x14004aa92
mov esi, eax
mov eax, 1
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r9d, ecx
mov r10d, edx
mov r11d, eax
cmp esi, 7
jb 0x14004a9cd
mov eax, 7
xor ecx, ecx
xchg rbx, rbx
cpuid
xchg rbx, rbx
and ebx, 0x20
mov dword [r8], r11d
mov eax, r11d
and eax, 0xf
mov dword [r8 + 8], eax
shr r11d, 0xc
and r11d, 3
mov dword [r8 + 4], r11d
mov eax, r10d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r10d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r10d, 0x1a
and r10b, 1
mov byte [r8 + 0xe], r10b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x19], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x14004aac9
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
test al, al
setne al
test ebx, ebx
setne cl
and cl, al
mov byte [r8 + 0x16], cl
mov eax, 0x80000000
xor ecx, ecx
xchg rbx, rbx
cpuid
xchg rbx, rbx
cmp eax, 0x80000006
jle 0x14004aacd
mov eax, 0x80000007
xor ecx, ecx
xchg rbx, rbx
cpuid
xchg rbx, rbx
shr edx, 8
and dl, 1
mov byte [r8 + 0x18], dl
test dl, dl
je 0x14004aad3
pop rbx
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x14004aa65
mov dl, byte [r8 + 0x18]
jmp 0x14004aac1
cmp byte [r8 + 0x19], 0
je 0x14004aac5
mov eax, 0x40000000
xor ecx, ecx
xchg rbx, rbx
cpuid
xchg rbx, rbx
cmp ebx, 0x7263694d
jne 0x14004aac5
cmp ecx, 0x666f736f
jne 0x14004aac5
cmp edx, 0x76482074
jne 0x14004aac5
mov byte [r8 + 0x18], 1
jmp 0x14004aac5
Function at 0x140052fc0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x140052ffc
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140053006
add rdi, rbx
sub rsi, rbx
jne 0x140052fda
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3

Function at 0x140053010
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x1403b51c8], 0
jne 0x14005304d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140053040
mov dword [rdi], eax
mov dword [0x1403b51d0], eax
mov qword [0x1403b51c8], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x1400552e0
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
mov r15, rcx
mov rax, qword [0x1403a7038]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, qword [rcx]
mov rbx, qword [rcx + 8]
cmp rbx, rdi
je 0x140055336
cmp byte [rbx - 1], 0
jns 0x14005531b
mov rcx, qword [rbx - 0x18]
call fcn.1401cfdbc
lea rsi, [rbx - 0x30]
cmp byte [rbx - 0x19], 0
jns 0x14005532e
mov rcx, qword [rbx - 0x30]
call fcn.1401cfdbc
mov rbx, rsi
cmp rsi, rdi
jne 0x14005530c
mov qword [r15 + 8], rdi
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x60]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x14033b990]
movaps xmmword [rdi], xmm0
lea r8, str.SYSTEMCurrentControlSetControlSession_Manager
mov rcx, rdi
mov rdx, 0xffffffff80000002
mov r9d, 1
call fcn.14008b020
mov rdi, qword [rdi]
test rdi, rdi
je 0x14005541f
lea r14, [rsp + 0x5c]
mov dword [r14], 0
xorps xmm0, xmm0
lea rbx, [rsp + 0x40]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov edx, 1
mov rcx, rbx
call fcn.140055a80
lea r9, [rsp + 0x3c]
mov dword [r9], 0xaaaaaaaa
mov rax, qword [rbx]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
lea rdx, str.PendingFileRenameOperations
mov rcx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x140055426
cmp eax, 0xea
jne 0x14005545d
mov ebx, 0x8000ffff
cmp dword [rsp + 0x3c], 7
jne 0x14005546b
mov edx, dword [rsp + 0x5c]
test dl, 1
jne 0x14005546b
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
cmp rcx, rdx
jae 0x14005542d
sub rdx, rcx
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.140055a80
mov rax, qword [rbx]
jmp 0x140055437
mov ebx, 0x80070002
jmp 0x14005547f
mov ebx, 0x80070002
jmp 0x14005546b
jbe 0x140055437
add rdx, rax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
lea rdx, str.PendingFileRenameOperations
lea r9, [rsp + 0x3c]
mov rcx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400554a7
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14005547f
mov qword [rsp + 0x48], rcx
call fcn.1401cfdbc
lea rcx, [rsp + 0x60]
call fcn.14008b2c0
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401d1390
mov eax, ebx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
sub rdx, rcx
mov r8, r15
call fcn.140054fa0
mov ebx, eax
jmp 0x14005546b
Function at 0x14005a0a0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rdx
mov edi, ecx
mov rax, qword [0x1403a7038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r8d, 0x20
call fcn.1401e936c
mov ebx, 6
cmp eax, 0x20
jne 0x14005a176
mov ecx, dword [rsi + 8]
mov rbx, qword [sym.imp.WS2_32.dll_ntohl]
call rbx
mov dword [rsi + 8], eax
mov ecx, dword [rsi + 0xc]
call rbx
mov dword [rsi + 0xc], eax
mov ecx, dword [rsi + 0x10]
call rbx
mov dword [rsi + 0x10], eax
mov ecx, dword [rsi + 0x14]
call rbx
mov dword [rsi + 0x14], eax
mov ecx, dword [rsi + 0x18]
call rbx
mov dword [rsi + 0x18], eax
mov ecx, dword [rsi + 0x1c]
call rbx
mov dword [rsi + 0x1c], eax
movaps xmm0, xmmword [0x14033b990]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx + 0x20], xmm0
movaps xmmword [rdx + 0x10], xmm0
movaps xmmword [rdx], xmm0
mov ecx, edi
call fcn.1401e6ec8
mov ebx, 6
test eax, eax
jne 0x14005a176
movabs rax, 0x303146464944424d
mov ebx, 8
cmp qword [rsi], rax
jne 0x14005a176
movsxd rax, dword [rsp + 0x34]
cmp rax, 0x20
jb 0x14005a176
add rax, 0xffffffffffffffe0
mov ecx, dword [rsi + 0x14]
sub rax, rcx
jb 0x14005a176
mov ecx, dword [rsi + 0x18]
sub rax, rcx
jb 0x14005a176
mov ecx, dword [rsi + 0x1c]
cmp rax, rcx
jb 0x14005a176
setne al
movzx ebx, al
shl ebx, 3
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401d1390
mov eax, ebx
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
Function at 0x14005a190
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r15d, r9d
mov r12, r8
mov ebx, edx
mov rdi, rcx
mov r13d, dword [rcx + 8]
mov ebp, dword [rcx + 0x18]
add ebp, dword [rcx + 0x14]
add ebp, dword [rcx + 0x1c]
mov rcx, rbp
call fcn.140189470
test rax, rax
je 0x14005a1f4
mov r14, rax
add r13, r12
mov rsi, rax
test ebp, ebp
je 0x14005a1fb
mov ecx, ebx
mov rdx, rsi
mov r8d, ebp
call fcn.1401e936c
test eax, eax
js 0x14005a216
sub ebp, eax
mov ecx, eax
add rsi, rcx
test eax, eax
jne 0x14005a1ce
test ebp, ebp
je 0x14005a1ce
jmp 0x14005a20f
mov ebx, 1
jmp 0x14005a223
mov eax, dword [rdi + 0x14]
imul ecx, eax, 0xaaaaaaab
ror ecx, 2
cmp ecx, 0x15555555
jbe 0x14005a236
mov ebx, 8
jmp 0x14005a21b
mov ebx, 6
mov rcx, r14
call fcn.1401894d0
mov eax, ebx
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test rax, rax
je 0x14005a374
mov dword [rsp + 0x24], r15d
mov rbp, r14
add rbp, rax
mov eax, dword [rdi + 0x18]
mov ecx, dword [rdi + 0x1c]
add rax, rbp
add rcx, rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rax
mov rdi, rax
mov qword [rsp + 0x28], rbp
mov r15, r12
mov r12, r14
mov qword [rsp + 0x30], r15
mov ecx, dword [r12]
mov rsi, qword [sym.imp.WS2_32.dll_ntohl]
call rsi
mov dword [r12], eax
mov ecx, dword [r12 + 4]
call rsi
mov dword [r12 + 4], eax
mov ecx, dword [r12 + 8]
call rsi
mov dword [r12 + 8], eax
mov eax, dword [r12]
mov rcx, r13
sub rcx, r15
cmp rcx, rax
jb 0x14005a20f
mov rcx, qword [rsp + 0x40]
sub rcx, rbp
cmp rcx, rax
jb 0x14005a20f
test eax, eax
je 0x14005a2dc
xor eax, eax
mov cl, byte [r15 + rax]
add byte [rbp + rax], cl
inc rax
mov r8d, dword [r12]
cmp rax, r8
jb 0x14005a2c6
jmp 0x14005a2df
xor r8d, r8d
mov ecx, dword [rsp + 0x24]
mov rdx, rbp
call fcn.1401ee0ec
mov ebx, 7
cmp eax, dword [r12]
jne 0x14005a21b
mov esi, eax
mov r8d, dword [r12 + 4]
mov rax, qword [rsp + 0x38]
sub rax, rdi
cmp rax, r8
jb 0x14005a20f
mov ecx, dword [rsp + 0x24]
mov rdx, rdi
call fcn.1401ee0ec
cmp eax, dword [r12 + 4]
jne 0x14005a21b
mov edx, esi
add r15, rdx
movsxd rcx, dword [r12 + 8]
mov rbx, qword [rsp + 0x30]
sub rbx, r15
cmp rbx, rcx
jg 0x14005a20f
mov rbx, r13
sub rbx, r15
cmp rbx, rcx
jl 0x14005a20f
add rbp, rdx
mov eax, eax
add rdi, rax
add r15, rcx
add r12, 0xc
xor ebx, ebx
cmp r12, qword [rsp + 0x28]
jb 0x14005a273
jmp 0x14005a21b
xor ebx, ebx
jmp 0x14005a21b
Function at 0x14005a380
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
movaps xmmword [rsp + 0xa0], xmm6
mov r15, r8
mov rbp, rcx
mov rax, qword [0x1403a7038]
xor rax, rsp
mov qword [rsp + 0x98], rax
lea rbx, [rsp + 0x30]
mov dword [rbx], 0xaaaaaaaa
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 0
xor esi, esi
mov rcx, rdx
mov edx, 0x8000
mov r8d, 0x40
xor r9d, r9d
call fcn.1401ea0fc
neg eax
sbb esi, esi
or esi, dword [rbx]
js 0x14005a41e
movaps xmm6, xmmword [0x14033b990]
lea rdx, [rsp + 0x70]
movaps xmmword [rdx + 0x10], xmm6
movaps xmmword [rdx], xmm6
mov ecx, esi
call fcn.14005a0a0
mov r12d, 0xffffffff
xor r14d, r14d
test eax, eax
je 0x14005a428
mov edi, eax
mov ebx, 0xffffffff
jmp 0x14005a55c
mov edi, 6
jmp 0x14005a583
mov dword [rsp + 0x30], 0xaaaaaaaa
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 0
mov rcx, rbp
mov edx, 0x8000
mov r8d, 0x40
xor r9d, r9d
call fcn.1401ea0fc
mov ebx, dword [rsp + 0x30]
neg eax
mov ebp, 0
sbb ebp, ebp
or ebp, ebx
js 0x14005a544
lea rdx, [rsp + 0x30]
movaps xmmword [rdx + 0x20], xmm6
movaps xmmword [rdx + 0x10], xmm6
movaps xmmword [rdx], xmm6
mov ecx, ebp
call fcn.1401e6ec8
mov r12d, 0xffffffff
mov edi, 6
test eax, eax
jne 0x14005a559
mov r13d, dword [rsp + 0x44]
cmp r13d, dword [rsp + 0x78]
jne 0x14005a54d
mov rcx, r13
call fcn.140189470
test rax, rax
je 0x14005a554
mov r14, rax
mov ecx, ebp
mov rdx, rax
mov r8d, r13d
call fcn.1401e936c
cmp eax, dword [rsp + 0x78]
jne 0x14005a55c
mov ebp, eax
call fcn.14026ead0
movsxd rdx, ebp
mov rcx, r14
call fcn.14026eaa0
not eax
cmp dword [rsp + 0x7c], eax
jne 0x14005a5b1
lea r12, [rsp + 0x6c]
mov dword [r12], 0xaaaaaaaa
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x28], 0
xor ebp, ebp
mov rcx, r15
mov edx, 0x8301
mov r8d, 0x40
xor r9d, r9d
call fcn.1401ea0fc
mov r12d, dword [r12]
neg eax
sbb ebp, ebp
or ebp, r12d
js 0x14005a5b8
lea rcx, [rsp + 0x70]
mov edx, esi
mov r8, r14
mov r9d, ebp
call fcn.14005a190
mov edi, eax
jmp 0x14005a55c
mov edi, 6
mov ebx, ebp
jmp 0x14005a55c
mov edi, 8
jmp 0x14005a559
mov edi, 1
xor r14d, r14d
mov rcx, r14
call fcn.1401894d0
mov ecx, esi
call fcn.1401e3d34
test ebx, ebx
js 0x14005a576
mov ecx, ebx
call fcn.1401e3d34
test r12d, r12d
js 0x14005a583
mov ecx, r12d
call fcn.1401e3d34
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1401d1390
mov eax, edi
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edi, 4
jmp 0x14005a55c
mov r12d, ebp
jmp 0x14005a55c
Function at 0x14005c2c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r8
mov rsi, rdx
mov bl, byte [rbp + 0x68]
test byte [r9 + 8], 1
jne 0x14005c31a
mov dl, byte [rbp + 0x60]
movzx ebx, bl
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
mov dword [rsp + 0x28], ebx
mov byte [rsp + 0x20], dl
mov rdx, rsi
mov r8, rdi
call qword [0x1403db008]
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
lea r14, [rbp - 0x20]
mov rcx, r9
mov rdx, r14
call fcn.1401790c0
lea rdx, [0x1403b5bd8]
mov rcx, r14
call fcn.1401798d0
mov r14, rax
mov rcx, qword [rbp - 0x20]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x14005c35a
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1403db008]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rbp - 0x20]
mov qword [r15 + 0x10], rax
movaps xmm0, xmmword [0x14033b990]
movaps xmmword [r15], xmm0
mov rax, qword [r14]
xor bl, 1
movzx ecx, bl
mov rax, qword [rax + rcx*8 + 0x28]
mov rcx, r14
mov rdx, r15
call qword [0x1403db008]
movzx r9d, byte [r15 + 0x17]
test r9b, r9b
mov rcx, qword [r15]
mov r8, qword [r15 + 8]
mov rax, r9
cmovs rax, r8
test rax, rax
je 0x14005c421
test r9b, r9b
mov rbx, r15
cmovs rbx, rcx
test rdi, rdi
je 0x14005c406
mov al, byte [rbx]
movzx eax, al
mov rcx, qword [rdi + 0x30]
cmp rcx, qword [rdi + 0x38]
je 0x14005c40a
lea rdx, [rcx + 1]
mov qword [rdi + 0x30], rdx
mov byte [rcx], al
cmp eax, 0xffffffff
jne 0x14005c3db
xor edi, edi
mov r9b, byte [rbp - 9]
mov rcx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x18]
inc rbx
test r9b, r9b
mov rax, r15
cmovs rax, rcx
movzx edx, r9b
cmovs rdx, r8
add rdx, rax
cmp rbx, rdx
jne 0x14005c3b6
jmp 0x14005c421
xor edi, edi
jmp 0x14005c3e7
mov rcx, qword [rdi]
mov r8, qword [rcx + 0x60]
mov rcx, rdi
mov edx, eax
mov rax, r8
call qword [0x1403db008]
jmp 0x14005c3d4
shr r9b, 7
mov qword [rsi], rdi
test r9b, r9b
je 0x14005c30a
call fcn.1401cfdbc
jmp 0x14005c30a

Function at 0x140064a20
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x10
call fcn.1401cfd80
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x140064a90]
xor ecx, ecx
xor edx, edx
mov r9, rax
call fcn.1401e34f4
mov qword [rbx], rax
test rax, rax
je 0x140064a77
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x140070bd0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r14, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1403a7038]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor eax, eax
mov qword [rcx], rax
mov rbp, qword [rdx]
mov qword [rdx], rax
lea rdi, [rbp + 1]
cmp rdi, 2
jb 0x140070c0e
call fcn.14017e5d0
cmp qword [rsi], rbp
je 0x140070c43
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140070cfa
cmp rdi, 2
jb 0x140070c3a
mov qword [rsi], rbp
call fcn.14017e5d0
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsi + 8], 0xffffffffffffffff
lea r15, [rsi + 0x10]
xor eax, eax
mov qword [rsp + 0x28], rax
mov rdi, qword [r14]
mov qword [r14], rax
cmp rdi, 0xffffffffffffffff
je 0x140070c6c
test rdi, rdi
je 0x140070c90
call fcn.14017e5d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140070c88
mov qword [rsp + 0x28], rdi
call fcn.14017e5d0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [rsp + 0x28]
mov rcx, r15
call fcn.1402a1540
mov rax, qword [rbx]
inc rax
cmp rax, 2
jb 0x140070cbd
call fcn.14017e5d0
mov rcx, qword [rbx]
call fcn.140189420
mov qword [rbx], 0
mov rax, qword [r14]
inc rax
cmp rax, 2
jb 0x140070cdd
call fcn.14017e5d0
mov rcx, qword [r14]
call fcn.140189420
mov qword [r14], 0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401d1390
mov rax, rsi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14017e5d0
mov rcx, qword [rsi]
call fcn.140189420
mov qword [rsi], 0
jmp 0x140070c2c