joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b7630
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400e1700]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
mov dword [rsp + 0x20], 0xf0000040
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
mov r9d, Ordinal_26
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1400b767c
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400b774e
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1400b76c0
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov qword [rsp + 0x38], 0
jmp 0x1400b774e
mov rcx, rbp
call fcn.140075f30
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
lea edx, [r8 + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x20
jne 0x1400b772a
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rdi
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400b773a
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400b774c
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400b8870
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400b8500
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x1400b8565
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x1400b8510
ret

Function at 0x1400b86d0
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 0x1400b8754
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400b8754
dec r8
sub rdx, 1
jne 0x1400b873a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400b98b8
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00406330]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x00406340]
mov dword [rax], 1
mov rax, qword [0x00406350]
mov dword [rax], 1
mov rax, qword [0x00406320]
mov dword [rax], 1
mov rax, qword [0x00406210]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x00406310]
mov dword [0x0040900c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x004062d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x004061c0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067
Function at 0x401e80
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x401ef0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00409614]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x402098
mov rax, qword [0x00409618]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x401f3c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x401fc7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x401f20
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x4020d2
mov rax, qword [0x00409618]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00409618]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4020e1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x401fc0
sub eax, 4
and eax, 0xfffffffb
jne 0x402050
add dword [0x00409614], 1
cmp ebx, 8
jae 0x401ff8
test bl, 4
jne 0x4020a0
test ebx, ebx
je 0x401fe9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x4020c0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x401fe9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x40202a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00409618]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401fc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor edi, edi
jmp 0x401f47
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x401fe9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x401fe9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x00409618]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
nop
nop dword [rax]
Function at 0x4028c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00409900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004098e0]
test rbx, rbx
je 0x402914
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x40290b
test r12, r12
je 0x40290b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4028f0
lea rcx, [0x00409900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402b40
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x402b50
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x402b60
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402ba5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x402b9c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402ba7
add rax, 0x28
cmp rax, r9
jne 0x402b88
xor eax, eax
ret

Function at 0x402c50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00406210]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x402cc9
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402cc9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x402cc6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x402cbd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x402cc9
add r8, 0x28
cmp r8, r9
jne 0x402ca8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x402db0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00406210]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x402e1f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402e1f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x402e1d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x402e14
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402e28
add rax, 0x28
cmp rax, r9
jne 0x402e00
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x402e40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00406210]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x402eb8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402eb8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x402eb8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402eb8
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x402eac
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x402ec0
add rdx, 0x28
cmp rdx, r10
jne 0x402e98
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x402ed0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x402ede
mov edx, dword [rax + 0xc]
test edx, edx
je 0x402eb5
test r8d, r8d
jg 0x402ec8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x140153c10
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 0x140153c97
mov rsi, rbx
cmp word [rax], bp
je 0x140153c56
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140153c40
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140153c3c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14014d564
mov rdi, rax
test rax, rax
je 0x140153c84
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140136430
mov rbp, rdi
xor ecx, ecx
call fcn.14014ccf0
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 0x140154b58
Capabilities:
Terminate process

Disassembly:
rol byte [rbp + 0x31], 0xc9
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
call r10
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne fcn.140154b84
jmp 0x140154d5b

Function at 0x140154bd4
Capabilities:
Terminate process

Disassembly:
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x40]
mov r8d, dword [rcx + 0x5c]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x80]
lea r9, [rsp + 0x60]
call rax
xor ecx, ecx
cmp eax, 0
je 0x140154bba
cmp dword [rsp + 0x60], 0
seta cl
test cl, 1
jne 0x140154bc1
jmp 0x140154bd6
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
mov eax, eax
add rcx, rax
mov qword [rsp + 0x50], rcx
jmp 0x140154b86
mov rax, qword [rsp + 0x50]
cmp rax, qword [rsp + 0x68]
jne 0x140154be7
jmp 0x140154d5b
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x38], 0
cmp dword [rsp + 0x38], 0x14
jge 0x140154c30
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x54]
movsxd rcx, dword [rsp + 0x38]
mov eax, dword [rax + rcx]
add eax, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x50]
movsxd rdx, dword [rsp + 0x38]
mov dword [rcx + rdx], eax
mov eax, dword [rsp + 0x38]
add eax, 4
mov dword [rsp + 0x38], eax
jmp 0x140154bfa
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
jne 0x140154c5b
jmp 0x140154d5b
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x40]
mov r9d, dword [rcx + 0x40]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0x5c]
mov edx, ecx
xor ecx, ecx
mov r8d, 0x1000
call rax
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x40]
Function at 0x140154c84
Capabilities:
Terminate process

Disassembly:
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x7c]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x9c]
mov ecx, ecx
add rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 4]
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x38], 8
cmp dword [rsp + 0x38], 0x5000
jge 0x140154ced
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rsp + 0x38]
mov eax, dword [rax + rcx]
add eax, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x48]
movsxd rdx, dword [rsp + 0x38]
mov dword [rcx + rdx], eax
mov eax, dword [rsp + 0x38]
add eax, 4
mov dword [rsp + 0x38], eax
jmp 0x140154cb8
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xa4]
mov rcx, qword [rsp + 0x48]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0x70]
mov ecx, ecx
add rax, rcx
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx + 0xc]
add rax, rcx
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x70]
mov rcx, qword [rsp + 0x48]
mov eax, eax
add rcx, rax
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]

Function at 0x140154d54
Capabilities:
Terminate process

Disassembly:
mov rcx, qword [rsp + 0x48]
call rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140157f70
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140157f98
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140157f98
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400080c8
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x1400517e8]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rdi, qword [rbp + 0x190]
mov rax, r8
mov rsi, qword [rbp + 0x198]
mov r8d, 0x40
mov r14, qword [rbp + 0x1a0]
cmp r9, r8
mov r12, rdx
mov r15, rcx
cmovb r8, r9
lea rcx, [rbp + 0xb0]
mov rdx, rax
mov rbx, r9
call fcn.140028560
cmp rbx, 0x44
jae 0x14000831d
lea rax, [rbx + 1]
mov byte [rbp + rbx + 0xb0], 0
cmp rax, 0x44
jae 0x14000831d
mov byte [rbp + rax + 0xb0], 0
lea rax, [rbx + 2]
cmp rax, 0x44
jae 0x14000831d
and qword [rsp + 0x40], 0
lea r9, [rbx + 4]
and qword [rsp + 0x38], 0
lea r8, [rbp + 0xb0]
and qword [rsp + 0x30], 0
mov rdx, r12
and qword [rsp + 0x28], 0
mov rcx, r15
mov byte [rbp + rax + 0xb0], 0
lea rax, [rbp + 0x68]
mov qword [rsp + 0x20], rax
mov byte [rbp + rbx + 0xb3], 1
call fcn.140007dac
mov ebx, 0x20
lea rdx, [rbp + 0x68]
mov r8d, ebx
lea rcx, [rbp + 0x88]
call fcn.140028560
mov eax, dword [rbp + 0x1a8]
dec eax
mov qword [rbp + 0x50], rdi
mov qword [rbp + 0x58], rsi
lea rdi, [rbp + 0x40]
mov qword [rbp + 0x60], r14
lea rsi, [rbp + 0x50]
mov dword [rbp + 0x40], eax
lea r14d, [rbx - 0x1d]
mov dword [rbp + 0x44], 0x10
mov dword [rbp + 0x48], 0x10
mov byte [rsp + 0x51], 0
mov byte [rsp + 0x50], 0
cmp dword [rdi], 0
jbe 0x14000829e
mov ebx, dword [rdi]
lea rax, [rsp + 0x50]
mov r9d, 0x20
mov qword [rsp + 0x40], rax
lea r8, [rbp + 0x68]
lea rax, [rsp + 0x60]
mov rdx, r12
mov qword [rsp + 0x38], rax
mov rcx, r15
lea rax, [rsp + 0x51]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x100]
mov qword [rsp + 0x20], rax
call fcn.140007dac
mov r8d, 0x20
lea rdx, [rbp + 0x100]
lea rcx, [rbp + 0x68]
call fcn.140028560
xor eax, eax
lea ecx, [rax + 2]
movdqu xmm0, xmmword [rbp + rax + 0x88]
movdqu xmm1, xmmword [rbp + rax + 0x68]
lea rax, [rax + 0x10]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax + 0x78], xmm1
sub rcx, 1
jne 0x14000826e
sub rbx, 1
jne 0x14000820b
lea ebx, [rcx + 0x20]
mov rcx, qword [rsi]
lea rdx, [rbp + 0x88]
mov r8, rbx
call fcn.140028560
add rdi, 4
add rsi, 8
sub r14, 1
jne 0x140008200
lea edx, [r14 + 0x44]
lea rcx, [rbp + 0xb0]
call fcn.140013664
mov rdx, rbx
lea rcx, [rbp + 0x88]
call fcn.140013664
mov rdx, rbx
lea rcx, [rbp + 0x68]
call fcn.140013664
mov rdx, rbx
lea rcx, [rbp + 0x100]
call fcn.140013664
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140025ea0
add rsp, 0x230
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400260e4
int3

Function at 0x14000c4b4
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x14], 0
mov rbx, rcx
jne 0x14000c4eb
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x14000c4d7
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140040510]
cmp byte [rbx + 0x21], 0
je 0x14000c4eb
lea rcx, [rbx + 0x3a]
add rsp, 0x20
pop rbx
jmp fcn.14000d108
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14000c4f4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x14], 1
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jne 0x14000c526
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 8], rax
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000c5a3
mov rcx, rbx
call fcn.14000c65c
test al, al
je 0x14000c569
mov r8d, 0x4e20
cmp rsi, r8
jbe 0x14000c569
mov rdx, rbp
mov rcx, rbx
call fcn.14000c4f4
jmp 0x14000c5a7
cmp dword [rbx + 0x14], 1
jne 0x14000c57e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14000c57e
xor eax, eax
jmp 0x14000c5a7
cmp dword [rbx + 0x14], 0
jne 0x14000c59e
mov edi, 0x8000
cmp rsi, rdi
jbe 0x14000c59e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x14000c59e
mov r8d, edi
jmp 0x14000c55c
or eax, 0xffffffff
jmp 0x14000c5a7
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14000f330
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x1030
call fcn.140026310
sub rsp, rax
mov rax, qword [0x1400517e8]
xor rax, rsp
mov qword [rsp + 0x1020], rax
xor r14d, r14d
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
cmp word [rcx], r14w
je 0x14000f4e3
call fcn.14000f50c
mov rcx, rbx
call fcn.14002cab8
mov rcx, rbx
mov rbp, rax
call fcn.14000f53c
test al, al
je 0x14000f418
mov rcx, rbx
call fcn.14000f50c
test al, al
je 0x14000f3cc
lea rax, [rbp + 4]
cmp rdi, rax
jbe 0x14000f4e3
mov r8, rdi
lea rdx, [0x140040f90]
mov rcx, rsi
call fcn.1400149a8
mov rdx, rbx
mov r8, rdi
mov rcx, rsi
call fcn.140014964
mov al, 1
jmp 0x14000f4e5
cmp word [rbx], 0x5c
jne 0x14000f4e3
cmp word [rbx + 2], 0x5c
jne 0x14000f4e3
lea rax, [rbp + 6]
cmp rdi, rax
jbe 0x14000f4e3
mov r8, rdi
lea rdx, [0x140040f90]
mov rcx, rsi
call fcn.1400149a8
mov r8, rdi
lea rdx, [0x140040fa0]
mov rcx, rsi
call fcn.140014964
lea rdx, [rbx + 2]
jmp 0x14000f3ba
lea rdx, [rsp + 0x20]
mov ecx, 0x7ff
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x7fe
ja 0x14000f4e3
cmp word [rbx], 0x5c
je 0x14000f4ad
cmp word [rbx], 0x2f
je 0x14000f4ad
mov edx, 0x800
lea rcx, [rsp + 0x20]
call fcn.14000ed4c
lea rcx, [rsp + 0x20]
call fcn.14002cab8
lea rcx, [rax + 4]
add rcx, rbp
cmp rdi, rcx
jbe 0x14000f4e3
mov r8, rdi
lea rdx, [0x140040f90]
mov rcx, rsi
call fcn.1400149a8
mov r8, rdi
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140014964
cmp word [rbx], 0x2e
jne 0x14000f3b7
cmp word [rbx + 2], 0x5c
je 0x14000f4a4
cmp word [rbx + 2], 0x2f
jne 0x14000f3b7
add rbx, 4
jmp 0x14000f3b7
lea rax, [rbp + 6]
cmp rdi, rax
jbe 0x14000f4e3
mov r8, rdi
lea rdx, [0x140040f90]
mov rcx, rsi
call fcn.1400149a8
mov r8, rdi
mov word [rsp + 0x24], r14w
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140014964
jmp 0x14000f3b7
xor al, al
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140025ea0
add rsp, 0x1030
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140012f44
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1400517e8]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov esi, 1
mov rdi, rcx
cmp dword [rcx + 4], esi
jle 0x14001302b
lea rbx, [r11 - 0x38]
sub rbx, rcx
lea rbp, [rcx + 0x2a]
sub rbx, 0x2a
lea r15, [0x140000000]
xor r9d, r9d
mov r10, rbp
lea r14, [rbx + r9]
mov r11d, 4
movzx eax, byte [r10 + 1]
lea rdx, [r9 + rax*4]
movzx eax, byte [r10 - 1]
mov r8b, byte [rdx + r15 + 0x5b1c0]
lea rcx, [r9 + rax*4]
movzx eax, byte [r10 - 2]
xor r8b, byte [rcx + r15 + 0x5a9c0]
lea rcx, [r9 + rax*4]
movzx eax, byte [r10]
xor r8b, byte [rcx + r15 + 0x5a5c0]
lea rcx, [r9 + rax*4]
xor r8b, byte [rcx + r15 + 0x5adc0]
mov byte [r14 + r10], r8b
lea r10, [r10 + 4]
sub r11, 1
jne 0x140012fa2
inc r9
cmp r9, 4
jl 0x140012f95
movsxd rcx, esi
lea r8d, [r11 + 0x10]
shl rcx, 4
lea rdx, [rsp + 0x20]
add rcx, 0x18
add rcx, rdi
call fcn.140028560
inc esi
add rbp, 0x10
sub rbx, 0x10
cmp esi, dword [rdi + 4]
jl 0x140012f92
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140025ea0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret