joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b4580
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400e9858], 0
mov r12, rcx
mov r13, rdx
mov rdi, r8
je 0x1400b4608
lea rdx, [0x1400d990a]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400b4710
mov rsi, qword [0x1400e9850]
jmp 0x1400b45c5
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x1400b45c0
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, r12
mov rdx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.1400b2d40
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
mov r9d, dword [rax]
mov eax, dword [rax + 4]
lea rcx, [rdx + 8]
mov qword [0x1400e9850], rcx
test eax, eax
je 0x1400b46f8
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop dword [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x1400b4660
not eax
cmp r9d, eax
jne 0x1400b4778
mov byte [0x1400e9858], 1
jmp 0x1400b459d
cmp byte [0x1400e9848], 0
jne 0x1400b45b4
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x1400e98a0], rax
call rbx
mov qword [0x1400e9898], rax
call rbx
mov qword [0x1400e9890], rax
call rbx
mov qword [0x1400e98d0], rax
call rbx
mov qword [0x1400e98c8], rax
call rbx
mov qword [0x1400e98c0], rax
call rbx
mov qword [0x1400e98b0], rax
call rbx
mov byte [0x1400e9848], 1
mov qword [0x1400e98a8], rax
jmp 0x1400b45b4
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x1400bea90
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1400cffa0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400cffa0
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x1400bf742
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400e9be8]
test eax, eax
je 0x1400bf7da
lea rax, [0x1400e9bc0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400e9bf0]
mov qword [rbp - 8], rax
jmp 0x1400bf7be
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400bf7b2
cmp qword [rbp - 0x10], 0
je 0x1400bf7b2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400bf778
lea rax, [0x1400e9bc0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400bf7db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400bf8e0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400bf908
mov eax, 0
jmp 0x1400bf956
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400bf931
mov eax, 0
jmp 0x1400bf956
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400bf951
mov eax, 0
jmp 0x1400bf956
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400bf95c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400bf9da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400bf9d1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400bf9d1
mov rax, qword [rbp - 8]
jmp 0x1400bf9ef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400bf9a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002000
Capabilities:
Acquire debug privileges
Enumerate processes

Disassembly:
push rdi
sub rsp, 0x40
mov rdi, rdx
cmp ecx, 2
je 0x140002025
lea rcx, str.Usage:_aes_finder__pid__process_name_n
call fcn.140001010
mov eax, 1
add rsp, 0x40
pop rdi
ret
call fcn.140001070
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x60]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000209b
lea r8, [rsp + 0x34]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x140002090
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x30]
xor eax, eax
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x3c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 8]
cmp byte [rcx], 0x2d
jne 0x1400020b8
inc rcx
call fcn.1400110b4
mov ecx, eax
call fcn.140001b00
jmp 0x140002137
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [0x14002ec80], rax
cmp rax, 0xffffffffffffffff
je 0x140002137
lea rdx, [0x14002ecd0]
mov byte [0x14002ec90], 1
mov rcx, rax
mov dword [0x14002ecd0], 0x130
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140002137
mov qword [rsp + 0x50], rbx
nop word [rax + rax]
cmp byte [0x14002ec90], 0
mov rbx, qword [rdi + 8]
jne 0x14000214b
mov rcx, qword [0x14002ec80]
lea rdx, [0x14002ecd0]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140002160
mov rcx, qword [0x14002ec80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
lea rcx, str.Done__n
call fcn.140001010
xor eax, eax
add rsp, 0x40
pop rdi
ret
mov byte [0x14002ec90], 0
nop dword [rax]
nop word [rax + rax]
mov rdx, rbx
lea rcx, [0x14002ecfc]
call fcn.140010c7c
test eax, eax
je 0x14000218d
mov rcx, qword [0x14002ec80]
lea rdx, [0x14002ecd0]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140002160
jmp 0x140002125
mov ecx, dword [0x14002ecd8]
test ecx, ecx
je 0x140002125
call fcn.140001b00
jmp 0x140002100
Function at 0x1400021b0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movups xmm0, xmmword [rcx]
mov r14, rcx
lea rbx, [0x140028f40]
mov rsi, rdx
lea rbp, [0x140028f68]
movups xmmword [rsp], xmm0
mov r11d, dword [rsp + 0xc]
lea r15, [0x140029070]
mov r9d, dword [rsp + 8]
add rcx, 0x10
mov r10d, dword [rsp + 4]
mov edi, dword [rsp]
mov eax, r11d
shr eax, 0x10
movzx edx, al
mov eax, r11d
shr eax, 8
movzx r8d, byte [rdx + r15]
shl r8d, 8
movzx edx, al
movzx eax, byte [rdx + r15]
xor r8d, eax
movzx eax, r11b
shl r8d, 8
movzx edx, byte [rax + r15]
xor r8d, edx
mov eax, r11d
shl r8d, 8
shr rax, 0x18
movzx eax, byte [rax + r15]
xor r8d, eax
xor r8d, dword [rbx]
xor r8d, edi
mov edi, r8d
cmp r8d, dword [rcx]
jne 0x1400022af
mov eax, r8d
xor eax, r10d
mov r10d, eax
cmp eax, dword [rcx + 4]
jne 0x1400022af
xor eax, r9d
mov r9d, eax
cmp eax, dword [rcx + 8]
jne 0x1400022af
xor eax, r11d
mov r11d, eax
cmp eax, dword [rcx + 0xc]
jne 0x1400022af
add rbx, 4
add rcx, 0x10
cmp rbx, rbp
jl 0x140002200
mov eax, dword [r14]
bswap eax
mov dword [rsi], eax
mov eax, dword [r14 + 4]
bswap eax
mov dword [rsi + 4], eax
mov eax, dword [r14 + 8]
bswap eax
mov dword [rsi + 8], eax
mov eax, dword [r14 + 0xc]
bswap eax
mov dword [rsi + 0xc], eax
mov al, 1
jmp 0x1400022b1
xor al, al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1400022d0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor r8d, r8d
mov rsi, rdx
cmp dword [0x14002d008], 2
mov r14, rcx
jl 0x140002310
movdqu xmm0, xmmword [rcx]
pshufb xmm0, xmmword [0x140029cb0]
movdqu xmmword [rsp], xmm0
jmp 0x140002323
mov eax, dword [rcx + r8*4]
bswap eax
mov dword [rsp + r8*4], eax
inc r8
cmp r8, 4
jl 0x140002310
mov r11d, dword [rsp + 0xc]
lea rbx, [0x140028f40]
mov r9d, dword [rsp + 8]
lea rbp, [0x140028f68]
mov r10d, dword [rsp + 4]
lea r15, [0x140029070]
mov edi, dword [rsp]
add rcx, 0x10
nop
mov eax, r11d
shr eax, 0x10
movzx edx, al
mov eax, r11d
shr eax, 8
movzx r8d, byte [rdx + r15]
movzx edx, al
shl r8d, 8
movzx eax, byte [rdx + r15]
xor r8d, eax
movzx eax, r11b
shl r8d, 8
movzx edx, byte [rax + r15]
xor r8d, edx
mov eax, r11d
shr rax, 0x18
shl r8d, 8
movzx eax, byte [rax + r15]
xor r8d, eax
mov eax, dword [rcx]
xor r8d, dword [rbx]
xor r8d, edi
bswap eax
mov edi, r8d
cmp r8d, eax
jne 0x1400023fe
mov eax, dword [rcx + 4]
xor r10d, r8d
bswap eax
cmp r10d, eax
jne 0x1400023fe
mov eax, dword [rcx + 8]
xor r9d, r10d
bswap eax
cmp r9d, eax
jne 0x1400023fe
mov eax, dword [rcx + 0xc]
xor r11d, r9d
bswap eax
cmp r11d, eax
jne 0x1400023fe
add rbx, 4
add rcx, 0x10
cmp rbx, rbp
jl 0x140002350
mov eax, dword [r14]
mov dword [rsi], eax
mov eax, dword [r14 + 4]
mov dword [rsi + 4], eax
mov eax, dword [r14 + 8]
mov dword [rsi + 8], eax
mov eax, dword [r14 + 0xc]
mov dword [rsi + 0xc], eax
mov al, 1
jmp 0x140002400
xor al, al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140002420
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x10
mov r15d, dword [rcx + 0x14]
lea r11, [rcx + 0xc]
mov esi, dword [r11]
lea r12, [rcx + 4]
mov r10d, dword [rcx + 0x10]
lea r13, [rcx + 8]
mov r8d, dword [rcx]
mov r14, rdx
mov r9d, dword [r12]
mov eax, r15d
mov edi, dword [r13]
shr eax, 0x10
movzx edx, al
mov eax, r15d
shr eax, 8
mov qword [rsp + 0x60], r11
lea r11, [rcx + 0x10]
mov qword [rsp + 0x68], r11
lea r11, [rcx + 0x14]
mov qword [rsp], r11
lea r11, [0x140029070]
movzx ebp, byte [rdx + r11]
xor ebp, 1
movzx edx, al
shl ebp, 8
mov qword [rsp + 0x50], rcx
add rcx, 0x18
movzx eax, byte [rdx + r11]
xor ebp, eax
movzx eax, r15b
shl ebp, 8
movzx edx, byte [rax + r11]
mov eax, r15d
xor ebp, edx
shr rax, 0x18
shl ebp, 8
movzx eax, byte [rax + r11]
xor ebp, eax
xor ebp, r8d
cmp ebp, dword [rcx]
jne 0x140002589
lea rbx, [0x140028f40]
xor r9d, ebp
lea rdx, [0x140028f60]
cmp r9d, dword [rcx + 4]
jne 0x140002589
mov eax, r9d
xor eax, edi
mov edi, eax
cmp eax, dword [rcx + 8]
jne 0x140002589
xor eax, esi
mov esi, eax
cmp eax, dword [rcx + 0xc]
jne 0x140002589
add rbx, 4
cmp rbx, rdx
je 0x1400025a0
xor r10d, eax
cmp r10d, dword [rcx + 0x10]
jne 0x140002589
mov r11d, r10d
xor r11d, r15d
cmp r11d, dword [rcx + 0x14]
jne 0x140002589
lea r15, [0x140029070]
mov eax, r11d
shr eax, 0x10
add rcx, 0x18
movzx edx, al
mov eax, r11d
shr eax, 8
movzx r8d, byte [rdx + r15]
shl r8d, 8
movzx edx, al
movzx eax, byte [rdx + r15]
xor r8d, eax
movzx eax, r11b
shl r8d, 8
movzx edx, byte [rax + r15]
xor r8d, edx
mov eax, r11d
shl r8d, 8
shr rax, 0x18
movzx eax, byte [rax + r15]
mov r15d, r11d
xor r8d, eax
xor r8d, dword [rbx]
xor ebp, r8d
cmp ebp, dword [rcx]
je 0x1400024d4
xor al, al
mov rbx, qword [rsp + 0x58]
add rsp, 0x10
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
bswap eax
mov dword [r14], eax
mov eax, dword [r12]
bswap eax
mov dword [r14 + 4], eax
mov eax, dword [r13]
bswap eax
mov dword [r14 + 8], eax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
bswap eax
mov dword [r14 + 0xc], eax
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
bswap eax
mov dword [r14 + 0x10], eax
mov rax, qword [rsp]
mov eax, dword [rax]
bswap eax
mov dword [r14 + 0x14], eax
mov al, 1
jmp 0x14000258b
Function at 0x1400025f0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x10
mov r11d, dword [rcx + 0xc]
lea r9, [rcx + 0xc]
mov ebx, dword [rcx + 0x10]
lea r12, [rcx + 4]
mov eax, dword [rcx + 0x14]
lea r13, [rcx + 8]
mov ebp, dword [rcx]
mov r14, rdx
mov r10d, dword [r12]
mov esi, dword [r13]
bswap eax
mov r15d, eax
shr eax, 0x10
movzx edx, al
mov eax, r15d
shr eax, 8
mov qword [rsp + 0x60], r9
lea r9, [rcx + 0x10]
mov qword [rsp + 0x68], r9
lea r9, [rcx + 0x14]
bswap ebp
mov qword [rsp], r9
lea r9, [0x140029070]
movzx r8d, byte [rdx + r9]
movzx edx, al
xor r8d, 1
shl r8d, 8
mov qword [rsp + 0x50], rcx
add rcx, 0x18
bswap r10d
movzx eax, byte [rdx + r9]
xor r8d, eax
movzx eax, r15b
shl r8d, 8
bswap esi
bswap r11d
movzx edx, byte [rax + r9]
mov eax, r15d
shr rax, 0x18
xor r8d, edx
shl r8d, 8
xor ebp, r8d
bswap ebx
movzx eax, byte [rax + r9]
xor ebp, eax
mov eax, dword [rcx]
bswap eax
cmp ebp, eax
jne 0x140002782
lea rdi, [0x140028f40]
mov eax, dword [rcx + 4]
lea rdx, [0x140028f60]
bswap eax
xor r10d, ebp
cmp r10d, eax
jne 0x140002782
mov eax, dword [rcx + 8]
xor esi, r10d
bswap eax
cmp esi, eax
jne 0x140002782
mov eax, dword [rcx + 0xc]
xor r11d, esi
bswap eax
cmp r11d, eax
jne 0x140002782
add rdi, 4
cmp rdi, rdx
je 0x1400027a0
mov eax, dword [rcx + 0x10]
xor ebx, r11d
bswap eax
cmp ebx, eax
jne 0x140002782
mov eax, dword [rcx + 0x14]
mov r9d, ebx
xor r9d, r15d
bswap eax
cmp r9d, eax
jne 0x140002782
lea r15, [0x140029070]
mov eax, r9d
shr eax, 0x10
add rcx, 0x18
movzx edx, al
mov eax, r9d
shr eax, 8
movzx r8d, byte [rdx + r15]
movzx edx, al
shl r8d, 8
movzx eax, byte [rdx + r15]
xor r8d, eax
movzx eax, r9b
shl r8d, 8
movzx edx, byte [rax + r15]
xor r8d, edx
mov eax, r9d
shr rax, 0x18
shl r8d, 8
movzx eax, byte [rax + r15]
mov r15d, r9d
xor r8d, eax
mov eax, dword [rcx]
xor r8d, dword [rdi]
xor ebp, r8d
bswap eax
cmp ebp, eax
je 0x1400026ba
xor al, al
mov rbx, qword [rsp + 0x58]
add rsp, 0x10
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
mov dword [r14], eax
mov eax, dword [r12]
mov dword [r14 + 4], eax
mov eax, dword [r13]
mov dword [r14 + 8], eax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
mov dword [r14 + 0xc], eax
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
mov dword [r14 + 0x10], eax
mov rax, qword [rsp]
mov eax, dword [rax]
mov dword [r14 + 0x14], eax
mov al, 1
jmp 0x140002784
Function at 0x1400027e0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
movups xmm1, xmmword [rcx + 0x10]
lea r9, [0x140029070]
mov r12, rdx
movups xmm2, xmmword [rcx]
mov r13, rcx
add rcx, 0x20
movdqa xmm0, xmm1
movaps xmmword [rsp + 0x10], xmm1
psrldq xmm0, 0xc
movd ebp, xmm0
psrldq xmm1, 0xc
movaps xmmword [rsp], xmm2
mov eax, ebp
shr eax, 0x10
movzx edx, al
mov eax, ebp
shr eax, 8
movzx r15d, byte [rdx + r9]
movzx edx, al
xor r15d, 1
shl r15d, 8
movzx eax, byte [rdx + r9]
xor r15d, eax
movd eax, xmm1
shl r15d, 8
movzx edx, al
movzx eax, byte [rdx + r9]
xor r15d, eax
mov eax, ebp
shr rax, 0x18
shl r15d, 8
movzx eax, byte [rax + r9]
xor r15d, eax
movd eax, xmm2
xor r15d, eax
cmp r15d, dword [rcx]
jne 0x1400029d7
mov eax, dword [rsp + 0x10]
lea rsi, [0x140028f40]
mov ebx, dword [rsp + 0x18]
mov r11d, dword [rsp + 0x14]
mov r14d, dword [rsp + 0xc]
mov edi, dword [rsp + 8]
mov r10d, dword [rsp + 4]
mov dword [rsp + 0x70], eax
xor r10d, r15d
lea rdx, [0x140028f5c]
cmp r10d, dword [rcx + 4]
jne 0x1400029d7
mov eax, r10d
xor eax, edi
mov edi, eax
cmp eax, dword [rcx + 8]
jne 0x1400029d7
xor eax, r14d
mov r14d, eax
cmp eax, dword [rcx + 0xc]
jne 0x1400029d7
add rsi, 4
cmp rsi, rdx
je 0x140002a00
mov r8d, eax
ror r8d, 8
mov eax, r8d
shr eax, 0x10
movzx edx, al
mov eax, r8d
shr eax, 8
movzx r9d, byte [rdx + r9]
movzx edx, al
lea rax, [0x140029070]
shl r9d, 8
movzx eax, byte [rdx + rax]
lea rdx, [0x140029070]
xor r9d, eax
movzx eax, r8b
shl r9d, 8
movzx edx, byte [rax + rdx]
xor r9d, edx
mov eax, r8d
shl r9d, 8
lea rdx, [0x140029070]
shr rax, 0x18
movzx eax, byte [rax + rdx]
xor r9d, eax
xor r9d, dword [rsp + 0x70]
mov dword [rsp + 0x70], r9d
cmp r9d, dword [rcx + 0x10]
jne 0x1400029d7
xor r11d, r9d
cmp r11d, dword [rcx + 0x14]
jne 0x1400029d7
xor ebx, r11d
cmp ebx, dword [rcx + 0x18]
jne 0x1400029d7
mov eax, ebx
xor eax, ebp
mov ebp, eax
cmp eax, dword [rcx + 0x1c]
jne 0x1400029d7
lea r9, [0x140029070]
mov eax, ebp
shr eax, 0x10
add rcx, 0x20
movzx edx, al
mov eax, ebp
shr eax, 8
movzx r8d, byte [rdx + r9]
shl r8d, 8
movzx edx, al
movzx eax, byte [rdx + r9]
xor r8d, eax
movzx eax, bpl
shl r8d, 8
movzx edx, byte [rax + r9]
mov eax, ebp
xor r8d, edx
shr rax, 0x18
shl r8d, 8
movzx eax, byte [rax + r9]
xor r8d, eax
xor r8d, dword [rsi]
xor r15d, r8d
cmp r15d, dword [rcx]
je 0x1400028af
xor al, al
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, dword [r13]
bswap eax
mov dword [r12], eax
mov eax, dword [r13 + 4]
bswap eax
mov dword [r12 + 4], eax
mov eax, dword [r13 + 8]
bswap eax
mov dword [r12 + 8], eax
mov eax, dword [r13 + 0xc]
bswap eax
mov dword [r12 + 0xc], eax
mov eax, dword [r13 + 0x10]
bswap eax
mov dword [r12 + 0x10], eax
mov eax, dword [r13 + 0x14]
bswap eax
mov dword [r12 + 0x14], eax
mov eax, dword [r13 + 0x18]
bswap eax
mov dword [r12 + 0x18], eax
mov eax, dword [r13 + 0x1c]
bswap eax
mov dword [r12 + 0x1c], eax
mov al, 1
jmp 0x1400029d9
Function at 0x14000b328
Capabilities:
Parse pe header

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

Function at 0x140011e80
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140011c7c
Function at 0x140017518
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 0x140017548
xor eax, eax
jmp 0x14001760b
mov rbp, rbx
cmp word [rax], si
je 0x14001756d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140017554
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140017550
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.140017438
movsxd r14, eax
test eax, eax
jne 0x1400175ab
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140017541
mov rcx, r14
call fcn.140013c30
mov rdi, rax
test rax, rax
jne 0x1400175c4
xor ecx, ecx
call fcn.140012fb8
jmp 0x1400175a0
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.140017438
test eax, eax
jne 0x1400175f5
mov rcx, rdi
call fcn.140012fb8
jmp 0x1400175ff
xor ecx, ecx
call fcn.140012fb8
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 0x14001b61c
Capabilities:
Get file size

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