joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c00
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x178
mov rax, qword [0x0040f310]
mov qword [rsp + 0x150], rax
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov qword [r11 - 8], rsi
mov rsi, rdx
mov qword [r11 - 0x10], rdi
mov rbp, rcx
lea r8, [rsp + 0x40]
xor edi, edi
mov r9d, 0x104
mov rcx, rsi
xor edx, edx
mov rbx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x404cfc
nop
nop
nop
nop
mov rdx, qword [rbp + 0x10]
lea rcx, [rsp + 0x40]
inc edi
call fcn.00406c30
test eax, eax
je 0x404ca1
test rbx, rbx
je 0x404c93
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.00406900
test eax, eax
jle 0x404ca1
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll__strdup]
mov rbx, rax
lea r8, [rsp + 0x40]
mov r9d, 0x104
mov edx, edi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x404c60
test rbx, rbx
je 0x404cfc
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404d00
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x404cfc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x404d5c
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, str.JavaHome
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x38], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404cec
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x404d51
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll__strdup]
mov rdi, qword [rsp + 0x168]
mov rsi, qword [rsp + 0x170]
mov rbp, qword [rsp + 0x198]
mov rbx, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x150]
call fcn.00409d10
add rsp, 0x178
ret

Function at 0x404e70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r8, qword [rcx]
xor r10d, r10d
xor r11d, r11d
movzx eax, byte [r8]
mov qword [rsp + 0x20], rdi
mov rdi, rcx
test al, al
je 0x404ea3
nop
nop
cmp al, 0x20
je 0x404e98
cmp al, 9
jne 0x404ea3
mov al, byte [r8 + 1]
inc r8
test al, al
jne 0x404e90
cmp byte [r8], r10b
mov qword [rsp + 0x18], rbx
mov rbx, r8
je 0x404f2a
test r11d, r11d
jne 0x404ec1
movzx eax, byte [r8]
cmp al, 0x20
je 0x404f0c
cmp al, 9
je 0x404f0c
movzx ecx, byte [r8]
cmp cl, 0x5c
jne 0x404ee3
cmp byte [r8 + 1], 0x22
jne 0x404ee3
mov eax, r10d
cdq
and eax, 1
xor eax, edx
sub eax, edx
jne 0x404ee3
inc r8
jmp 0x404ef3
cmp cl, 0x22
jne 0x404ef3
xor eax, eax
test r11d, r11d
sete al
mov r11d, eax
movzx eax, byte [r8]
inc r8
cmp al, 0x5c
jne 0x404f03
inc r10d
jmp 0x404f06
xor r10d, r10d
cmp byte [r8], 0
jne 0x404eb0
cmp byte [r8], 0
je 0x404f19
mov byte [r8], 0
inc r8
mov qword [rdi], r8
mov rax, rbx
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x18]
ret
mov rdi, qword [rsp + 0x20]
mov rax, rbx
mov rbx, qword [rsp + 0x18]
mov qword [rcx], r8
ret
Function at 0x405c20
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rsi
mov rsi, rcx
mov rbx, rdx
mov rcx, r8
mov edx, r9d
mov qword [rsp + 0x50], rdi
mov rdi, r8
call fcn.004059e0
test al, al
jne 0x405c76
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea r8, str.Error:_could_not_find_Java_2_Runtime_Environment.
lea rdx, [0x0040dbcc]
add rcx, 0x60
call qword [sym.imp.msvcrt.dll_fprintf]
mov ecx, 2
call qword [sym.imp.msvcrt.dll_exit]
int3
lea rdx, str.amd64
xor r8d, r8d
mov rcx, rdi
call fcn.00403520
cmp eax, 1
jge 0x405cb8
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea r8, str.Error:_no_known_VMs.__check_for_corrupt_jvm.cfg_file_
lea rdx, [0x0040dbcc]
add rcx, 0x60
call qword [sym.imp.msvcrt.dll_fprintf]
mov ecx, 1
call qword [sym.imp.msvcrt.dll_exit]
int3
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.004019b0
mov rbx, qword [rsp + 0x90]
mov edx, 0x2f
mov rcx, rax
mov byte [rbx], 0
mov rsi, rax
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
jne 0x405d10
lea edx, [rax + 0x5c]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
jne 0x405d10
lea rdx, str._s_bin_sjvm.dll
mov r9, rsi
mov r8, rdi
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_sprintf]
jmp 0x405d23
lea rdx, str._sjvm.dll
mov r8, rsi
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_sprintf]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__stat]
test eax, eax
je 0x405dc1
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
lea r8, [rcx - 1]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdi, str.Error:_no___s_JVM_at___s.
not rcx
dec rcx
add r8, rcx
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
dec rcx
add rcx, r8
call fcn.00401000
lea rdx, str.Error:_no___s_JVM_at___s.
mov r9, rbx
mov rcx, rax
mov r8, rsi
mov rdi, rax
call qword [sym.imp.msvcrt.dll_sprintf]
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea rdx, [0x0040dbcc]
add rcx, 0x60
mov r8, rdi
call qword [sym.imp.msvcrt.dll_fprintf]
mov ecx, 4
call qword [sym.imp.msvcrt.dll_exit]
int3
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x405de0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
sub rsp, 0x88
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rdi
mov eax, 0xffffffff
cmp qword [rdx + 8], rax
mov rdi, rdx
mov ebp, ecx
je 0x405f5e
cmp qword [rdx], rax
je 0x405f5e
mov edx, dword [rdx + 0x10]
xor r8d, r8d
call qword [sym.imp.msvcrt.dll__lseek]
test eax, eax
js 0x405f5e
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x90], rbx
inc rcx
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
mov rbx, rax
je 0x405e75
mov qword [rsp + 0xa0], rsi
mov rsi, qword [rdi + 8]
mov rdx, rax
mov r8d, esi
mov ecx, ebp
call qword [sym.imp.msvcrt.dll__read]
movsxd rcx, eax
cmp rcx, rsi
je 0x405e95
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
xor eax, eax
mov rsi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0x98]
add rsp, 0x88
ret
mov eax, dword [rdi + 0x14]
test eax, eax
jne 0x405ea4
mov byte [rsi + rbx], al
mov rax, rbx
jmp 0x405e6d
cmp eax, 8
jne 0x405e6b
xor eax, eax
mov r9d, 0x58
lea r8, [0x0040dda8]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov eax, dword [rdi + 8]
lea edx, [r9 - 0x67]
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call fcn.004070e0
test eax, eax
js 0x405e62
mov rcx, qword [rdi]
inc rcx
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
mov rsi, rax
je 0x405e62
mov qword [rsp + 0x30], rax
mov eax, dword [rdi]
lea rcx, [rsp + 0x20]
mov edx, 1
mov dword [rsp + 0x38], eax
call fcn.00407230
test eax, eax
jns 0x405f38
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
xor eax, eax
jmp 0x405e6d
mov rax, qword [rdi]
mov rcx, rbx
mov byte [rsi + rax], 0
call qword [sym.imp.msvcrt.dll_free]
lea rcx, [rsp + 0x20]
call fcn.00407080
test eax, eax
js 0x405f28
mov rax, rsi
jmp 0x405e6d
xor eax, eax
jmp 0x405e7d
Function at 0x405f70
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbp
mov rbp, rdx
mov edx, 0xffffffea
mov qword [rsp + 0x48], rdi
mov ebx, ecx
lea r8d, [rdx + 0x18]
call qword [sym.imp.msvcrt.dll__lseek]
test eax, eax
mov edi, eax
js 0x405fb2
mov r8d, 0x16
mov rdx, rbp
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__read]
test eax, eax
jns 0x405fcb
mov eax, 0xffffffff
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
movzx eax, byte [rbp + 2]
movzx ecx, byte [rbp + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbp + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbp]
shl ecx, 8
or ecx, eax
cmp ecx, 0x6054b50
jne 0x406008
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
xor edx, edx
mov ecx, ebx
mov qword [rsp + 0x20], r12
lea r8d, [rdx + 2]
call qword [sym.imp.msvcrt.dll__lseek]
test eax, eax
mov r12d, eax
jns 0x40602c
mov eax, 0xffffffff
jmp 0x4060ef
mov qword [rsp + 0x40], rsi
mov esi, 0x10015
mov r8d, 2
cmp eax, esi
mov ecx, ebx
cmovl esi, eax
mov edx, esi
neg edx
call qword [sym.imp.msvcrt.dll__lseek]
test eax, eax
js 0x4060e5
mov ecx, 0x10015
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
mov rdi, rax
je 0x4060e5
mov r8d, esi
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__read]
test eax, eax
js 0x4060dc
movsxd rsi, eax
add eax, 0xffffffea
movsxd rbx, eax
add rsi, rdi
add rbx, rdi
cmp rbx, rdi
jb 0x4060dc
nop
cmp byte [rbx], 0x50
jne 0x4060d4
movzx eax, byte [rbx + 2]
movzx ecx, byte [rbx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 1]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, 0x50
cmp ecx, 0x6054b50
jne 0x4060d4
movzx eax, byte [rbx + 0x15]
shl eax, 8
movsxd rcx, eax
movzx eax, byte [rbx + 0x14]
or rcx, rax
lea rax, [rcx + rbx + 0x16]
cmp rax, rsi
je 0x406108
dec rbx
cmp rbx, rdi
jae 0x406090
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x40]
mov r12, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
mov rax, qword [rbx]
mov rcx, rdi
mov qword [rbp], rax
mov rax, qword [rbx + 8]
mov qword [rbp + 8], rax
mov eax, dword [rbx + 0x10]
mov dword [rbp + 0x10], eax
movzx eax, word [rbx + 0x14]
mov word [rbp + 0x14], ax
call qword [sym.imp.msvcrt.dll_free]
mov r11d, r12d
sub r11, rsi
lea rax, [rbx + r11]
jmp 0x4060ea
Function at 0x4099c0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x0040f440]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x0040f538]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x409a41
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x0040f538]
jmp 0x409a5d
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x0040f538], r11
mov qword [0x0040f4d8], rax
mov rax, qword [0x0040f310]
mov qword [0x0040f3b0], r11
mov qword [0x0040f4c0], rdi
mov dword [0x0040f3a0], 0xc0000409
mov dword [0x0040f3a4], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x0040f308]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0040a540]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x0040f310]
jne 0x409d29
rol rcx, 0x10
test cx, 0xffff
jne 0x409d25
ret
ror rcx, 0x10
jmp 0x4099c0
Function at 0x409b00
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rdi
cmp word [0x00400000], 0x5a4d
je 0x409b21
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x409b9d
movsxd rax, dword [0x0040003c]
lea rcx, [0x00400000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x409b42
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x409b9d
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x409b80
cmp ecx, 0x20b
je 0x409b5e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x409b9d
cmp dword [rax + 0x84], 0xe
ja 0x409b6f
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x409b9d
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x60], ebx
jmp 0x409b9d
cmp dword [rax + 0x74], 0xe
ja 0x409b8e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x409b9d
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0x60], ebx
mov ecx, 1
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x0040f920], 0xffffffffffffffff
mov qword [0x0040f928], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x0040f91c]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x0040f918]
mov dword [rcx], eax
call fcn.004098f0
cmp dword [0x0040f320], 0
jne 0x409bf7
lea rcx, [0x00409cf0]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x0040a280]
lea rcx, [0x0040a278]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x0040f914]
mov dword [rsp + 0x68], r11d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x0040f910]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x0040a270]
lea rcx, [0x0040a260]
call sub.msvcrt.dll__initterm
mov r11, qword [rsp + 0x38]
mov rax, qword [sym.imp.msvcrt.dll___initenv]
mov qword [rax], r11
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
call fcn.00588000
mov edi, eax
mov dword [rsp + 0x34], eax
test ebx, ebx
jne 0x409c83
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x409ca4
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x58
ret
Function at 0x402790
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004088e0]
test rbx, rbx
je 0x4027e4
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 0x4027db
test r12, r12
je 0x4027db
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4027c0
lea rcx, [0x00408900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402b20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x004053b0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x402b99
mov rcx, r10
call fcn.004029f0
test eax, eax
je 0x402b99
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 0x402b96
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 0x402b8d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x402b99
add r8, 0x28
cmp r8, r9
jne 0x402b78
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140f21e80
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f21e8a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f21eb3
pop rbp
sub rbp, 0x33
sub rbp, 0xf21e80
sub rsp, 0x20
jmp 0x140f21ed2
mov rax, 0xf21e80
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x378dbffe
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f21ef1
jmp 0x140f21f08
mov dh, 0x77
invalid
Function at 0x140013ec0
Capabilities:
Parse pe header

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

Function at 0x14095f000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x14095f00a
jmp 0x14096100f
jmp fcn.1405f20b0
Function at 0x140001000
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
push rax
mov eax, 1
cmp dword [0x140004038], 0
jne 0x1400011da
mov rcx, qword gs:[0x60]
mov rcx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
mov rdx, qword [rcx + 0x30]
test rdx, rdx
je 0x1400011d8
xor ebp, ebp
mov ebx, 0xdfdfdfdf
jmp 0x14000105f
mov rbp, rdi
mov rcx, qword [rcx]
mov rdx, qword [rcx + 0x30]
test rdx, rdx
je 0x1400010a0
mov r14, rdx
movsxd rdx, dword [rdx + 0x3c]
mov edi, dword [rdx + r14 + 0x88]
test rdi, rdi
je 0x140001053
mov edx, dword [rdi + r14 + 0xc]
add rdi, r14
mov ebp, dword [rdx + r14]
and ebp, ebx
cmp ebp, 0x4c44544e
jne 0x140001050
mov edx, dword [r14 + rdx + 4]
and edx, ebx
mov rbp, rdi
cmp edx, 0x4c440e4c
jne 0x140001053
mov rbp, rdi
jmp 0x1400010a9
test rbp, rbp
je 0x1400011d8
mov ecx, dword [rbp + 0x18]
mov r9d, dword [rbp + 0x1c]
add r9, r14
mov r10d, dword [rbp + 0x20]
add r10, r14
mov r11d, dword [rbp + 0x24]
add r11, r14
lea r13, [r14 + 0x12]
lea rax, [r14 - 0xe]
mov qword [rsp], rax
lea r15, [r14 + 0x32]
xor r8d, r8d
lea r12, [0x140004038]
jmp 0x1400010fe
add rsi, r13
mov qword [rbx + r12 + 0x10], rsi
inc r8d
cmp r8d, 0x1f4
je 0x140001201
test rcx, rcx
je 0x1400011eb
dec ecx
mov esi, dword [r10 + rcx*4]
movzx edi, word [rsi + r14]
cmp edi, 0x775a
jne 0x1400010f5
add rsi, r14
mov edi, 0x1ab82d94
xor ebx, ebx
nop dword [rax + rax]
mov ebp, edi
movzx edx, word [rbx + rsi]
inc ebx
rol edi, 0x18
add edi, edx
xor edi, ebp
cmp byte [rsi + rbx], 0
jne 0x140001120
mov ebx, r8d
shl rbx, 4
mov dword [rbx + r12 + 8], edi
movzx edx, word [r11 + rcx*2]
mov esi, dword [r9 + rdx*4]
mov dword [rbx + r12 + 0xc], esi
movzx edx, word [r13 + rsi]
xor edx, 0x50f
movzx edi, byte [r13 + rsi + 2]
xor edi, 0xc3
or di, dx
je 0x1400010dd
mov rax, qword [rsp]
lea rdi, [rax + rsi]
add rsi, r15
xor ebp, ebp
nop dword [rax]
movzx edx, word [rsi + rbp]
xor edx, 0x50f
movzx eax, byte [rsi + rbp + 2]
xor eax, 0xc3
or ax, dx
je 0x1400011c8
movzx eax, word [rdi]
xor eax, 0x50f
movzx edx, byte [rdi + 2]
xor edx, 0xc3
or dx, ax
je 0x1400011d0
add rbp, 0x20
add rdi, 0xffffffffffffffe0
cmp rbp, 0x3fe0
jne 0x140001180
xor esi, esi
jmp 0x1400010e0
add rsi, rbp
jmp 0x1400010e0
mov rsi, rdi
jmp 0x1400010e0
xor eax, eax
add rsp, 8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov dword [0x140004038], r8d
mov r10d, r8d
dec r10d
mov eax, 1
jne 0x14000121c
jmp 0x1400011da
mov dword [0x140004038], 0x1f4
mov r8d, 0x1f4
mov r10d, 0x1f3
mov eax, 1
xor r11d, r11d
lea r9, [0x140004058]
mov r14d, r10d
jmp 0x140001238
dec r14d
cmp r11d, r10d
je 0x1400011da
mov r14d, r14d
inc r11d
cmp r8d, r11d
je 0x140001230
mov ecx, dword [0x140004044]
mov rdi, r14
mov rbx, r9
jmp 0x140001289
mov edx, dword [rbx - 0x18]
mov r15, qword [rbx - 0x10]
mov ebp, dword [rbx - 8]
mov dword [rbx - 0x18], ebp
mov dword [rbx - 0x14], esi
mov rsi, qword [rbx]
mov qword [rbx - 0x10], rsi
mov dword [rbx - 8], edx
mov dword [rbx - 4], ecx
mov qword [rbx], r15
add rbx, 0x10
dec rdi
je 0x140001230
mov esi, dword [rbx - 4]
cmp ecx, esi
ja 0x140001260
mov ecx, esi
jmp 0x140001280
Function at 0x140001360
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by fnv-1a hash
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov qword [rsp + 0x58], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r14, rax
mov qword [rsp + 0x70], 0x3a3
mov rax, qword gs:[0x60]
mov r8, qword [rax + 0x18]
add r8, 0x10
nop word cs:[rax + rax]
mov r8, qword [r8]
mov rax, qword [r8 + 0x30]
movsxd rcx, dword [rax + 0x3c]
mov r9d, dword [rax + rcx + 0x88]
test r9, r9
je 0x1400013a0
mov edx, dword [rax + r9 + 0x18]
test rdx, rdx
je 0x1400013a0
mov esi, dword [rax + r9 + 0x20]
add rsi, rax
lea r10, [rax + 1]
jmp 0x1400013d5
test rdx, rdx
je 0x1400013a0
mov ecx, dword [rsi + rdx*4 - 4]
dec rdx
movzx ebx, byte [rax + rcx]
test bl, bl
je 0x1400013d0
add rcx, r10
mov edi, 0x811c9dc5
nop dword [rax]
movsx ebx, bl
xor ebx, edi
imul edi, ebx, 0x1000193
movzx ebx, byte [rcx]
inc rcx
test bl, bl
jne 0x1400013f0
cmp edi, 0x3285501
jne 0x1400013d0
mov ecx, dword [rax + r9 + 0x1c]
mov ebx, dword [rax + r9 + 0x24]
add rcx, rax
add rbx, rax
mov edx, edx
movzx edx, word [rbx + rdx*2]
mov ebx, dword [rcx + rdx*4]
add rbx, rax
xor edi, edi
mov edx, 0x3a3
xor ecx, ecx
mov r8d, 0x1000
mov r9d, 4
call rbx
mov qword [rsp + 0x68], rax
mov r8d, 0x3a2
mov rcx, rax
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x64], 0
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x68]
lea r8, [rsp + 0x70]
mov rcx, r14
mov r9d, 0x40
call fcn.140001687
mov rax, qword [rsp + 0x68]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x58]
mov edx, 0x1fffff
xor r8d, r8d
mov r9, r14
call fcn.1400015ed
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400014df
call qword [sym.imp.KERNEL32.dll_GetThreadId]
lea rcx, str.Success__ThreadHandle_d_n
mov edx, eax
call fcn.140001510
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call fcn.14000163a
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140001e70
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001eba
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001eba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001eba
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001eba
cmp dword [rcx + 0x84], 0xe
jbe 0x140001eba
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ebc
xor al, al
add rsp, 0x28
ret
Function at 0x140550058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1405501df
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 0x140550089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14055006f
add dl, dl
jne 0x140550096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405500f6
xor eax, eax
add dl, dl
jne 0x1405500a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405501ad
add dl, dl
jne 0x1405500b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405500c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405500d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405500dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405500ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14055007e
mov eax, 1
add dl, dl
jne 0x140550106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140550113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405500fb
sub eax, ebx
mov ebx, 1
jne 0x14055014c
mov ecx, 1
add dl, dl
jne 0x14055012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14055013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140550123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14055007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140550168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140550175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14055015d
cmp eax, 0x7d00
jae 0x14055019b
cmp eax, 0x500
jb 0x140550196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14055007e
cmp eax, 0x7f
ja 0x14055019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14055007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405501d2
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 0x14055007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20