joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b11f0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [0x140186040]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
test eax, eax
js 0x1400b12a5
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400b1250
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.14000b7a0
nop
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
lea r8, [rdx + rcx*2]
lea rdx, [rsp + 0x40]
cmova rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.14006a5b0
nop
lea rcx, [rsp + 0x40]
call fcn.14000ab00
jmp 0x1400b12ca
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
xor r8d, r8d
lea rdx, [0x14015e871]
mov rcx, rbx
call fcn.140002990
mov rax, rbx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14012fb20
add rsp, 0x280
pop rbx
ret
Function at 0x1400c4fa0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov r13, r9
mov r15, r8
mov r14, rdx
mov rbp, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x28], rdx
mov rbx, rdx
lea rax, [r8 - 1]
mov qword [rsp + 0x20], rax
mov r12, rax
sar r12, 1
cmp rdx, r12
jge 0x1400c5070
nop dword [rax]
nop word [rax + rax]
lea rdi, [rbx + rbx]
lea rbx, [rdi + 2]
shl rbx, 5
add rbx, rbp
lea rdx, [rbx - 0x20]
lea rcx, [rsp + 0x50]
call fcn.140009d20
or esi, 1
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140009d20
or esi, 2
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
call fcn.1400c3fa0
movzx ebx, al
lea rcx, [rsp + 0x30]
call fcn.14000ab00
nop
lea rcx, [rsp + 0x50]
call fcn.14000ab00
xor rbx, 1
inc rbx
add rbx, rdi
mov rdx, rbx
shl rdx, 5
add rdx, rbp
shl r14, 5
lea rcx, [r14 + rbp]
call fcn.1400630a0
mov r14, rbx
cmp rbx, r12
jl 0x1400c4ff0
mov rdi, rbx
cmp rbx, r12
jne 0x1400c509b
test r15b, 1
jne 0x1400c509b
shl r15, 5
lea rdx, [rbp - 0x20]
add rdx, r15
shl rbx, 5
lea rcx, [rbx + rbp]
call fcn.1400630a0
mov rdi, qword [rsp + 0x20]
lea rbx, [rdi - 1]
mov r15, qword [rsp + 0x28]
sar rbx, 1
cmp r15, rdi
jge 0x1400c50f9
mov rdx, r13
lea rcx, [rsp + 0x30]
call fcn.140009d20
or esi, 0x10
or esi, 4
mov dword [rsp + 0x20], esi
mov rdx, rbx
shl rdx, 5
add rdx, rbp
lea rcx, [rsp + 0x50]
call fcn.140009d20
or esi, 0x20
or esi, 8
mov dword [rsp + 0x20], esi
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
call fcn.1400c3fa0
test al, al
je 0x1400c50f9
mov r14b, 1
jmp 0x1400c50fc
xor r14b, r14b
test sil, 8
je 0x1400c5110
and esi, 0xfffffff7
lea rcx, [rsp + 0x50]
call fcn.14000ab00
nop
test sil, 4
je 0x1400c5123
and esi, 0xfffffffb
lea rcx, [rsp + 0x30]
call fcn.14000ab00
shl rdi, 5
lea rcx, [rdi + rbp]
test r14b, r14b
je 0x1400c514a
mov rdx, rbx
shl rdx, 5
add rdx, rbp
call fcn.1400630a0
mov rdi, rbx
dec rbx
jmp 0x1400c50a4
mov rdx, r13
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
jmp fcn.1400630a0
Function at 0x1400d7260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov ebp, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2f0]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.1400c5ef0
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x1400d72b6
xor eax, eax
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x3c]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x38]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x34]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r12d
test ebp, ebp
jg 0x1400d730d
mov ebp, 0x4b0000
jmp 0x1400d731b
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.1400c84d0
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x1400d7331
mov eax, r12d
jmp 0x1400d733a
mov edx, edi
mov ecx, ebp
call fcn.1400c84d0
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x1400d7356
shl esi, 0x10
mov ecx, esi
jmp 0x1400d7445
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x1400d73b4
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.1400c5ef0
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x1400d73a4
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.1400c83a0
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.1400c5ef0
add ebx, eax
jmp 0x1400d744e
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x1400d73c1
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x1400d7400
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.1400c5ef0
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x1400d7405
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.1400c83a0
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.1400c5ef0
add ebx, eax
jmp 0x1400d744e
cmp eax, r12d
jge 0x1400d743e
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.1400c5ef0
sub ebp, eax
sub r15d, esi
je 0x1400d743e
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.1400c83a0
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.1400c5ef0
add ebx, eax
jmp 0x1400d744e
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.1400c5ef0
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rbp
pop rbx
jmp fcn.1400c5ef0
Function at 0x140123490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x140186040]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov ebp, r9d
mov eax, dword [rcx + 0x5c]
mov rsi, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x278], rdi
nop dword [rax]
mov r10d, dword [rbx + 0x14]
mov eax, r10d
mov r14d, dword [rbx + 4]
cmp r10d, r14d
mov r9d, dword [rbx + 0xc]
cmovg eax, r14d
cmp r9d, eax
jl 0x14012362c
cmp r10d, r14d
mov eax, r14d
cmovg eax, r10d
cmp r9d, eax
jg 0x14012362c
cmp r10d, r14d
jne 0x140123530
sub rbx, 0x10
jmp 0x140123674
mov edx, dword [rsi + 0x88]
xor r9d, r9d
cmp r10d, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x1401235a2
mov eax, dword [rsi + 4]
mov ecx, eax
mov r8d, dword [rsi + 8]
neg ecx
cmp r10d, r14d
jge 0x140123564
dec eax
add eax, r10d
and eax, ecx
sub eax, r10d
jmp 0x14012356c
and ecx, r10d
mov eax, r10d
sub eax, ecx
cmp eax, r8d
setge r11b
test edx, edx
je 0x14012358b
movzx edx, r11b
mov rcx, rsi
call fcn.140124640
test al, al
jne 0x140123685
movzx r8d, r11b
mov edx, r9d
mov rcx, rsi
call fcn.140124cb0
test al, al
jne 0x140123685
mov edx, dword [rsi + 0x64]
lea r9, [0x140125010]
mov ecx, dword [rsi + 0x60]
mov r8, rbx
cmp r10d, r14d
jge 0x1401235ce
mov dword [rsp + 0x28], edx
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.140123310
jmp 0x140123622
mov eax, dword [rbx + 4]
neg ecx
movzx edi, byte [rsi + 0x6a]
neg eax
mov dword [rbx + 4], eax
neg edx
mov eax, dword [rbx + 0xc]
neg eax
mov dword [rsp + 0x28], ecx
mov dword [rbx + 0xc], eax
mov rcx, rsi
mov eax, dword [rbx + 0x14]
neg eax
mov dword [rsp + 0x20], edx
mov edx, 2
mov dword [rbx + 0x14], eax
call fcn.140123310
test dil, dil
je 0x14012361a
cmp byte [rsi + 0x6a], 0
jne 0x14012361a
mov rdx, qword [rsi + 0x70]
mov ecx, dword [rdx + 0x20]
neg ecx
mov dword [rdx + 0x20], ecx
mov ecx, dword [rbx + 4]
neg ecx
mov dword [rbx + 4], ecx
test al, al
jne 0x140123685
sub rbx, 0x10
jmp 0x140123674
mov eax, dword [rbx + 8]
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x20], ecx
add ecx, eax
mov dword [rbx + 0x24], r10d
lea edx, [rax + rbp]
mov eax, ecx
sar eax, 1
mov dword [rbx + 0x18], eax
lea eax, [rcx + rdx]
sar eax, 2
lea ecx, [r10 + r9]
mov dword [rbx + 0x10], eax
mov eax, ecx
sar edx, 1
sar eax, 1
mov dword [rbx + 8], edx
lea edx, [r14 + r9]
mov dword [rbx + 0x1c], eax
lea eax, [rcx + rdx]
sar eax, 2
sar edx, 1
mov dword [rbx + 0x14], eax
mov dword [rbx + 0xc], edx
add rbx, 0x10
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x140123689
mov ebp, dword [rbx]
jmp 0x1401234f0
mov al, 1
jmp 0x140123692
mov dword [rsi + 0x58], ebp
xor al, al
mov dword [rsi + 0x5c], r14d
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14012fb20
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret
Function at 0x1401299e0
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1401299fc
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140129a50
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140129b75
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x140129b75
test rax, rax
je 0x140129b75
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x140129b75
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x140129aea
lea rax, [0x140129bd0]
jmp 0x140129b43
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x140129b75
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140129b63
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x140129b10
lea rax, [0x140129ba0]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x140129b8a
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x14012b160
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x14012b16b
xor eax, eax
ret
lea r11, [0x1401518b0]
not ecx
cmp r8d, 8
jb 0x14012b241
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x14012b190
test r8d, r8d
je 0x14012b26d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x14012b250
not ecx
mov eax, ecx
ret
Function at 0x14012ee44
Capabilities:
Get geographical location

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

Function at 0x14012f690
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.14012ef5c
mov ebx, eax
test eax, eax
jne 0x14012f6c0
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14012f723
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14012f71a
test al, 0x10
je 0x14012f71a
bt eax, 0xa
jae 0x14012f713
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14012f734
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14012f70f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14012f70f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x14012f71a
and dword [rsp + 0x3c], 0
jmp 0x14012f71f
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

Function at 0x140130a10
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140130a5a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140130a5a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140130a5a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140130a5a
cmp dword [rcx + 0x84], 0xe
jbe 0x140130a5a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140130a5c
xor al, al
add rsp, 0x28
ret
Function at 0x140029a2c
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.14001d034
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d034
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029b7c
cmp rax, 0xffffffffffffffff
je 0x140029b7c
xor edi, edi
test rbp, rbp
jle 0x140029b27
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f948
mov rbx, rax
test rax, rax
jne 0x140029ab4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029b1d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a99c
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.14001dd10
cmp eax, 0xffffffff
je 0x140029afd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029ac4
mov edx, r15d
mov ecx, r14d
call fcn.14001a99c
jmp 0x140029b1d
cmp byte [rsi + 0x38], dil
je 0x140029b14
cmp dword [rsi + 0x34], 5
jne 0x140029b14
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029b1d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b700
jmp 0x140029b90
jns 0x140029b90
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d034
cmp rax, 0xffffffffffffffff
jne 0x140029b48
cmp byte [rsi + 0x30], dil
je 0x140029b90
mov edi, dword [rsi + 0x2c]
jmp 0x140029b90
mov ecx, r14d
call fcn.140018e54
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029b90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029b90
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029b89
mov eax, dword [rsi + 0x2c]
jmp 0x140029b8e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d034
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 0x14002ac80
Capabilities:
Parse pe header

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

Function at 0x1401720be
Capabilities:
Encode data using xor

Disassembly:
test rcx, rcx
lea rsp, [rsp + 8]
je 0x140130f86
lea rdx, [0x140165868]
push 0xffffffffe50d7c92
sar dword [rsp + 1], 0xbf
push 0x1b0b6635
movzx r10d, byte [rbp + riz]
push 0x55a9bf0f
xor r10d, r9d
neg qword [rsp + 7]
and r10d, 0xff
mov r10d, dword [rdx + r10*4]
ror byte [rsp + 1], 0xe7
shr r9d, 8
xor r9d, r10d
inc rbp
xor r9d, 0x9aa45805
dec rcx
lea rsp, [rsp + 0x18]
jne 0x140130f35
call fcn.14014b559
xor r9d, r9d
jmp 0x140130f20
Function at 0x140127781
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push qword [rsp + 0x10]
popfq
lea rsp, [rsp + 0x18]
call fcn.140139c2d
add byte [rsi + 0x74], ch
outsd dx, dword [rsi]
jae 0x1400a07d4
jb 0x1400a07d9
insb byte [rdi], dx
js 0x1400a07d5
add dh, dh
out 0xdb, al
sub edx, dword [rbp + rdi - 0x5d]
xor ah, cl
frstor dword [rbx]
movabs eax, dword [0xe271352c13b34c1c]
cmp dword [rbp - 0x5ae5e53b], 0x2d
xor ah, al
sbb eax, 0xad11d2ae
invalid
scasd eax, dword [rdi]
jge 0x1400a07d9
add al, byte [rax]
add byte [rax], al
invalid
add byte [rax], al
add ch, dl
jno 0x1400a0813
mov eax, 0xfcd5cd8a
invalid
or dword [rbx], 0x14
xlatb
imul eax, dword [rdx], 0xffffff9c
add eax, 0xddec735b
movabs dword [0x8b56acb27b24fcc0], eax
jno 0x1400a07d6
or al, 0x33
mov ecx, 0xbfc4119a
mov dword [rax - 0x6aa3abdb], 0x742754d6
sahf
lea edi, [rdi - 0x37b0739f]
xchg edi, eax
notrack jmp 0x1400a07d6
jno 0x1400a0754
add byte [rcx], al
or byte [rbx], al
add byte [rax], cl
invalid

Function at 0x140149e56
Capabilities:
Encode data using xor

Disassembly:
push 0x670b518f
not bl
mov qword [rsp + 8], 0x28bf5e22
xor bl, 0x85
ror bl, 1
jmp 0x140151cf6
add byte [rax], al
inc bl
rol bl, 1
xor sil, bl
rol qword [rsp + 4], 0xfe
lea rbx, [rsp + rbx + 0x10]
push 0xfffffffffe19ae39
mov dword [rbx], ecx
lea rsp, [rsp + 0x18]
jae fcn.14014d70a
add byte [rax], al
add byte [rax], al
add byte [rax], al
sub eax, 0xbb438541
add byte [rax], al
add byte [0xfb58a266], ch
jno 0x140151ca9
xor al, 1
and byte [rbx - 0x73ef6853], cl
fidiv dword [rax*4 - 0x4a5dbb18]
out dx, eax
xor ebx, dword [rax]
in al, 0xe6
stosb byte [rdi], al
mov ss, esp
loope 0x140151d1d
invalid

Function at 0x1401572ee
Capabilities:
Encode data using xor

Disassembly:
add r8, 0xc
xor esi, esi
test rdi, rdi
lea rsp, [rsp + 0x10]
je 0x14015793b
mov edx, 0xd628070d
jmp 0x1401578ce
sar rdx, 0xe8
push r9
lea r9, [rdx*2 - 0x536a554e]
rol dx, 0xa6
lea rdx, [0x14012dbb0]
mov r9d, 0x6da0f91c
movzx r9d, byte [rax + r9 - 0x6da0f91c]
push 0x23953ca9
xor r9d, esi
and r9d, 0xff
mov r9d, dword [rdx + r9*4]
sar dword [rsp + 2], 6
shr esi, 8
xor esi, r9d
xor byte [rsp + 6], 0x1c
adc byte [rsp], 0xa0
inc rax
ror word [rsp], 0xc2
xor esi, 0x3fc18e
dec rdi
lea rsp, [rsp + 8]
jne 0x1401578e7
pop r9
not esi
mov dword [r8], esi
push 0xffffffffff0a2932
call fcn.1401360f2

Function at 0x14016a541
Capabilities:
Encode data using xor

Disassembly:
test r9, r9
lea rsp, [rsp + 0x20]
je 0x14016a5a3
mov ebx, 0x48c2db5
not bl
push r8
lea r8, [0x14013a1f8]
mov ebx, 0xd2b6c02e
push rbx
movzx ebx, byte [rsi]
xor ebx, ecx
and ebx, 0xff
mov ebx, dword [r8 + rbx*4]
shr ecx, 8
push 0xffffffff95aaee82
xor ecx, ebx
inc rsi
xor ecx, 0x249c2a9c
sal qword [rsp + 8], 0x5a
dec r9
lea rsp, [rsp + 0x10]
jne 0x14016a55f
mov r8d, 0x1a21c99e
pop r8
call fcn.14015c28b
Function at 0x402830
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004079c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004079a0]
test rbx, rbx
je 0x402884
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40287b
test rsi, rsi
je 0x40287b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402860
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x004079c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x141cb0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141cb01df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141cb0089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141cb006f
add dl, dl
jne 0x141cb0096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141cb00f6
xor eax, eax
add dl, dl
jne 0x141cb00a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141cb01ad
add dl, dl
jne 0x141cb00b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141cb00c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141cb00d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141cb00dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141cb00ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141cb007e
mov eax, 1
add dl, dl
jne 0x141cb0106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141cb0113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141cb00fb
sub eax, ebx
mov ebx, 1
jne 0x141cb014c
mov ecx, 1
add dl, dl
jne 0x141cb012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141cb013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141cb0123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141cb007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141cb0168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141cb0175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141cb015d
cmp eax, 0x7d00
jae 0x141cb019b
cmp eax, 0x500
jb 0x141cb0196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141cb007e
cmp eax, 0x7f
ja 0x141cb019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141cb007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141cb01d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141cb007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20