joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140025f60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x140025fc1
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140025f80
mov ecx, dword [r10]
jmp 0x1400260aa
cmp ecx, 0x4e0
jb 0x1400260aa
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140025fe0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop word [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140026030
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x14006fa70
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x28
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x28
ret
Function at 0x1400eb2c0
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
call fcn.1400f4ea0
mov byte [rsp + 0x30], al
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400eb314
cmp qword [rsp + 0x90], 0
je 0x1400eb301
lea rcx, [rsp + 0x90]
call fcn.1400eb560
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x1400eb314
mov eax, 4
jmp 0x1400eb4a2
call fcn.1400f4c40
movzx eax, al
test eax, eax
jne 0x1400eb345
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400eb334
mov dword [rsp + 0x34], 4
jmp 0x1400eb33c
mov dword [rsp + 0x34], 3
mov eax, dword [rsp + 0x34]
jmp 0x1400eb4a2
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x1400eb431
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x74], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
lea r8, [0x1400eb500]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14002e160
lea rcx, [rsp + 0x38]
call fcn.1400eb5a0
movzx eax, al
test eax, eax
jne 0x1400eb3df
mov dword [rsp + 0x4c], 0
lea rcx, [rsp + 0x38]
call fcn.1400eb580
mov eax, dword [rsp + 0x4c]
jmp 0x1400eb4a2
lea rcx, [rsp + 0x38]
call fcn.14002e390
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
je 0x1400eb419
mov dword [rsp + 0x44], 0
lea rcx, [rsp + 0x38]
call fcn.1400eb580
mov eax, dword [rsp + 0x44]
jmp 0x1400eb4a2
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x38]
call fcn.1400eb580
mov eax, dword [rsp + 0x40]
jmp 0x1400eb4a2
call fcn.1400f4db0
movzx eax, al
test eax, eax
jne 0x1400eb476
mov eax, dword [rsp + 0xa0]
bts eax, 0x15
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x50], 0
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.1400eb4b0
jmp 0x1400eb4a2
call fcn.1400f4cb0
mov qword [rsp + 0x58], rax
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x58]
call fcn.1400eb4b0
add rsp, 0x88
ret

Function at 0x1400eb560
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400f3900
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140110a50
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x48
movzx eax, word [rsp + 0x58]
movd xmm0, eax
movdqa xmmword [rsp + 0x20], xmm0
pshuflw xmm0, xmmword [rsp + 0x20], 0
movdqa xmmword [rsp + 0x20], xmm0
movdqa xmm0, xmmword [rsp + 0x20]
pshufd xmm0, xmm0, 0
movdqa xmmword [rsp + 0x20], xmm0
mov rax, qword [rsp + 0x50]
and rax, 0xfff
cmp rax, 0xff0
ja 0x140110b61
mov rax, qword [rsp + 0x50]
movdqu xmm0, xmmword [rax]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pxor xmm0, xmmword [rsp + 0x10]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pcmpeqw xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x30]
pcmpeqw xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
por xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pmovmskb eax, xmm0
mov dword [rsp], eax
cmp dword [rsp], 0
je 0x140110b51
mov eax, dword [rsp]
bsf eax, eax
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
add rax, qword [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
movzx ecx, word [rsp + 0x58]
cmp eax, ecx
jne 0x140110b41
mov rax, qword [rsp + 0x50]
mov qword [rsp + 8], rax
jmp 0x140110b4a
mov qword [rsp + 8], 0
mov rax, qword [rsp + 8]
jmp 0x140110b9c
mov rax, qword [rsp + 0x50]
add rax, 0x10
mov qword [rsp + 0x50], rax
jmp 0x140110b97
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
movzx ecx, word [rsp + 0x58]
cmp eax, ecx
jne 0x140110b79
mov rax, qword [rsp + 0x50]
jmp 0x140110b9c
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
test eax, eax
jne 0x140110b89
xor eax, eax
jmp 0x140110b9c
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
jmp 0x140110a8b
add rsp, 0x48
ret

Function at 0x1400f45b0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.1400f3b90
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400f45e9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [fcn.140030a90]
mov ecx, dword [rsp + 0x40]
call qword [rsp + 0x28]
jmp 0x1400f45f3
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x38
ret

Function at 0x1400fa230
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400fa25c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400d1c10
mov eax, 0xffffffff
jmp 0x1400fa25e
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400014b0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd r13, dword [rcx + 0x3c]
xor r15d, r15d
mov rbp, rdx
mov rdi, rcx
mov r9d, r15d
mov ebx, dword [r13 + rcx + 0x88]
add rbx, rcx
mov r14d, dword [rbx + 0x1c]
mov r11d, dword [rbx + 0x20]
add r14, rcx
mov r12d, dword [rbx + 0x24]
add r11, rcx
add r12, rcx
cmp rdx, 0x10000
jae 0x14000152c
mov r8d, dword [rbx + 0x10]
movzx edx, bp
cmp edx, r8d
jb 0x140001674
mov ecx, dword [rbx + 0x14]
add ecx, r8d
cmp edx, ecx
jae 0x140001674
sub edx, r8d
mov r9d, dword [r14 + rdx*4]
jmp 0x140001581
mov esi, dword [rbx + 0x18]
mov r10d, r15d
test esi, esi
je 0x140001584
nop word [rax + rax]
mov r8d, dword [r11]
mov rax, rbp
add r8, rdi
sub r8, rbp
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001563
inc rax
test ecx, ecx
jne 0x140001550
test edx, edx
je 0x140001575
inc r10d
add r11, 4
cmp r10d, esi
jb 0x140001540
jmp 0x140001584
mov eax, r10d
movzx ecx, word [r12 + rax*2]
mov r9d, dword [r14 + rcx*4]
add r9, rdi
cmp r9, rbx
jb 0x140001654
mov eax, dword [r13 + rdi + 0x8c]
lea rdx, [rax + rax*4]
lea rax, [rbx + rdx*8]
cmp r9, rax
jae 0x140001654
mov rcx, r9
call fcn.140005348
mov rsi, rax
test rax, rax
je 0x140001674
mov edx, 0x2e
mov rcx, rax
call fcn.1400020e0
mov r14, rax
mov byte [rax], r15b
mov rax, qword [0x14001aa88]
test rax, rax
jne 0x140001630
mov rcx, qword gs:[0x60]
mov rdi, qword [rcx + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x140001615
mov rcx, qword [rbx + 0x50]
lea rdx, str.KERNEL32.DLL
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140001611
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x1400015f2
jmp 0x140001615
mov r15, qword [rbx + 0x20]
lea rdx, str.LoadLibraryA
mov rcx, r15
call fcn.1400014b0
mov qword [0x14001aa88], rax
test rax, rax
je 0x140001674
mov rcx, rsi
call rax
mov rcx, rsi
mov rbx, rax
call fcn.1400053c0
test rbx, rbx
je 0x140001674
lea rdx, [r14 + 1]
mov rcx, rbx
call fcn.1400014b0
mov r9, rax
mov rax, r9
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor eax, eax
jmp 0x140001657

Function at 0x140001dec
Capabilities:
Parse pe header

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

Function at 0x140005ff4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005df0
Function at 0x140009094
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 0x1400090c4
xor eax, eax
jmp 0x140009187
mov rbp, rbx
cmp word [rax], si
je 0x1400090e9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400090d0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400090cc
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.140008fb4
movsxd r14, eax
test eax, eax
jne 0x140009127
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400090bd
mov rcx, r14
call fcn.140009b28
mov rdi, rax
test rax, rax
jne 0x140009140
xor ecx, ecx
call fcn.140006da8
jmp 0x14000911c
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.140008fb4
test eax, eax
jne 0x140009171
mov rcx, rdi
call fcn.140006da8
jmp 0x14000917b
xor ecx, ecx
call fcn.140006da8
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 0x14000e8f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000e918
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000e918
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400028d4
Capabilities:
Check os version

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140346ac0]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor eax, eax
lea rdi, [r11 - 0x28]
mov qword [r11 - 0x28], rax
lea r8, [r11 - 0x20]
mov dword [rsp + 0x28], eax
mov ebx, edx
lea rdx, [r11 - 0x24]
lea ecx, [rax + 0xc]
rep stosb byte [rdi], al
lea rcx, [r11 - 0x28]
call qword [sym.imp.ntdll.dll_RtlGetNtVersionNumbers]
cmp dword [rsp + 0x20], 6
jne 0x140002932
cmp dword [rsp + 0x24], ebx
jne 0x14000292a
mov eax, 1
jmp 0x14000293c
xor eax, eax
cmp dword [rsp + 0x24], ebx
jmp 0x140002939
xor eax, eax
cmp dword [rsp + 0x20], 6
seta al
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140066f10
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140002954
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, r8
mov r12, rcx
xor ebx, ebx
cmp qword [r8], rbx
je 0x140002aa1
mov r8, qword [r8 + 8]
test r8, r8
je 0x140002aa1
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1400029b2
inc rcx
mov qword [rdi + 0x10], rcx
mov rax, qword [rdi + 0x18]
dec rax
mov qword [rdi + 0x18], rax
lea r13d, [rbx + 1]
jmp 0x140002a35
mov rcx, r12
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov r15, rax
mov qword [rsp + 0x28], rbx
test rax, rax
je 0x140002a9a
movzx esi, word [rax + 0x14]
add rsi, 0x18
add rsi, rax
mov qword [rsp + 0x28], rsi
movzx r14d, bx
mov word [rsp + 0x20], bx
mov r13d, 1
cmp r14w, word [r15 + 6]
jae 0x140002a1a
mov r8d, 8
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14005001c
test eax, eax
jne 0x140002a73
mov eax, dword [rsi + 0xc]
add rax, r12
mov qword [rdi + 0x10], rax
mov eax, dword [rsi + 8]
mov qword [rdi + 0x18], rax
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140002a8b
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x140002a8b
mov r8, qword [rdi + 8]
cmp rax, r8
jb 0x140002a8b
mov rsi, rcx
sub rsi, r8
add rsi, rax
cmp rcx, rsi
ja 0x140002a8b
mov r14, qword [rdi + 8]
mov rdx, rcx
mov rcx, qword [rdi]
call qword [sym.imp.ntdll.dll_RtlCompareMemory]
cmp rax, r14
je 0x140002ab2
mov rcx, qword [rdi + 0x10]
inc rcx
mov qword [rdi + 0x10], rcx
mov rax, qword [rdi + 0x18]
sub rax, r13
mov qword [rdi + 0x18], rax
mov r8, r14
jmp 0x140002a3e
add rsi, 0x28
mov qword [rsp + 0x28], rsi
add r14w, r13w
mov word [rsp + 0x20], r14w
jmp 0x1400029eb
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbx
mov ebx, 0xc0000225
jmp 0x140002aae
mov ebx, 0xc00000ef
jmp 0x140002aae
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbx
mov ebx, 0xc000000d
mov dword [rsp + 0x24], ebx
jmp 0x140002aba
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140009930
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebp, ebp
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x14000995c
test rdx, rdx
je 0x140009973
cmp rdx, 0x40
jae 0x140009981
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, 0x40
call fcn.14000a724
test al, al
jne 0x14000995c
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x14000995c
cmp dword [rdi + 0x3c], 0x400
jg 0x14000995c
movsxd rcx, dword [rdi + 0x3c]
lea rbx, [rcx + rdi]
test rsi, rsi
je 0x1400099c6
test rbx, rbx
je 0x14000995c
cmp rbx, rdi
jb 0x14000995c
lea rax, [rcx + 0xf8]
cmp rax, rsi
ja 0x14000995c
cmp rax, 0xf8
jb 0x14000995c
cmp rax, rcx
jb 0x14000995c
jmp 0x1400099d7
mov edx, 0xf8
mov rcx, rbx
call fcn.14000a724
test al, al
jne 0x14000995c
cmp dword [rbx], 0x4550
cmovne rbx, rbp
mov rax, rbx
jmp 0x14000995e

Function at 0x140009bd4
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140346ac0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r12, r8
mov r14, rdx
mov rsi, rcx
call fcn.140009930
xor ebx, ebx
test rax, rax
je 0x140009d5e
mov rdx, r14
mov rcx, rsi
call fcn.140009b64
test rax, rax
je 0x140009d0c
cmp word [rax + 2], bx
je 0x140009d0c
mov edx, 5
mov rcx, rsi
mov r15, rbx
call fcn.140009a34
test rax, rax
jne 0x140009c49
mov rcx, rsi
call fcn.140009a94
mov r15, rax
xor edx, edx
mov rcx, rsi
call fcn.140009930
mov rdi, rax
test rax, rax
je 0x140009d07
mov rcx, rsi
call fcn.1400099ec
mov ebp, dword [rdi + 0x50]
test rbp, rbp
je 0x140009d07
mov r9d, 0x40
mov r8d, 0x3000
mov edx, ebp
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x140009d07
mov r9d, ebp
mov r8, rax
mov rdx, r14
mov rcx, rsi
call fcn.140009d7c
test al, al
je 0x140009d07
mov rcx, rdi
mov qword [r12], rbp
call fcn.140009a94
mov rsi, rax
cmp rdi, rax
jne 0x140009cc0
mov rbx, rdi
jmp 0x140009d07
mov rcx, rdi
call fcn.1400099ec
mov byte [rsp + 0x28], al
lea r8, [rsp + 0x20]
lea rax, vtable.ApplyRelocCallback.0
mov qword [rsp + 0x30], rsi
mov rdx, rbp
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov qword [rsp + 0x38], rdi
call fcn.140009f54
test al, al
jne 0x140009cbb
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rbx
jmp 0x140009d5e
mov rcx, rsi
call fcn.140009a94
mov rcx, rsi
mov rdi, rax
call fcn.140009ad4
mov ebp, eax
test eax, eax
je 0x140009d58
mov r9d, 0x40
mov r8d, 0x3000
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x140009d58
mov r8, r14
mov rdx, rsi
mov rcx, rax
call fcn.14007e530
mov qword [r12], rbp
jmp 0x140009d5b
mov rdi, rbx
mov rax, rdi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140066f10
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000a8bc
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x230
mov rax, qword [0x140346ac0]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov ebx, 5
call fcn.14000a7ec
sub rbx, 1
jne 0x14000a8dc
call fcn.14000a7ec
and qword [rsp + 0x28], rbx
call fcn.14000a7ec
call fcn.14000a7ec
xor edx, edx
mov r8d, 0x1e8
lea rcx, [rsp + 0x30]
call fcn.14007ebd0
lea r9, [rsp + 0x28]
lea r8, [0x14000a894]
mov rdx, qword [sym.imp.ntdll.dll_ZwTerminateProcess]
lea rcx, [rsp + 0x30]
call fcn.14002aa10
nop
call fcn.14000a7ec
lea rcx, [rsp + 0x30]
call fcn.14002e4d0
call fcn.14000a7ec
mov dword [rsp + 0x20], ebx
mov r8d, 0xdeadbeef
mov edx, r8d
lea r9d, [rbx + 0xa]
mov r10d, r9d
mov ebx, 0x12d687
mov r11d, 0x1234
mov eax, dword [rsp + 0x20]
xor eax, edx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add eax, r11d
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x20]
sar ecx, 0x1f
mov eax, dword [rsp + 0x20]
add eax, eax
or eax, ecx
mov dword [rsp + 0x20], eax
add edx, ebx
sub r10, 1
jne 0x14000a95e
mov edx, dword [rsp + 0x20]
mov dword [rsp + 0x20], r10d
mov eax, dword [rsp + 0x20]
xor eax, r8d
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add eax, r11d
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x20]
sar ecx, 0x1f
mov eax, dword [rsp + 0x20]
add eax, eax
or eax, ecx
mov dword [rsp + 0x20], eax
add r8d, ebx
sub r9, 1
jne 0x14000a997
mov eax, dword [rsp + 0x20]
add edx, eax
cmp edx, 0x99999999
jne 0x14000a9f2
lea rdx, str.Impossible_condition
lea rcx, [0x1403492d0]
call fcn.140006ea4
mov rcx, rax
call fcn.14000ac44
xor edx, edx
lea ecx, [rdx + 1]
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
call fcn.14000a7ec
test rbx, rbx
je 0x14000aa2a
mov edx, 0xc0000135
mov rcx, rbx
call qword [sym.imp.ntdll.dll_ZwTerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.14000a7ec
lea rcx, [rsp + 0x30]
call fcn.1400335e0
call fcn.14000a7ec
nop
lea rcx, [rsp + 0x30]
call fcn.14002b1e0
mov ebx, 3
call fcn.14000a7ec
sub rbx, 1
jne 0x14000aa49
call fcn.14000eb90
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140066f10
add rsp, 0x230
pop rbx
ret
Function at 0x140010dec
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140346ac0]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.14007ebd0
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x140010e5f
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140013ef8
mov ecx, 2
mov dword [rsp + 0x20], ecx
and ecx, 0xfffffffd
mov dword [rsp + 0x20], ecx
or ecx, 1
mov dword [rsp + 0x20], ecx
mov rax, rbx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140066f10
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140023040
Capabilities:
Compute adler32 checksum

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov ebx, ecx
movaps xmmword [rsp + 0x30], xmm7
mov r10, rdx
movdqa xmm7, xmmword [0x14008c0d0]
mov edi, 0x15b0
movaps xmmword [rsp + 0x20], xmm8
movdqa xmm8, xmmword [0x14008c0e0]
movaps xmmword [rsp + 0x10], xmm9
movaps xmmword [rsp], xmm10
movdqa xmm10, xmmword [0x14008c0f0]
shr ebx, 0x10
movzx r11d, cx
cmp r9, 0x10
jb 0x140023215
xorps xmm5, xmm5
nop dword [rax]
cmp r9, rdi
movd xmm3, r11d
mov rax, r9
movd xmm9, ebx
cmova rax, rdi
movdqa xmm6, xmm5
and rax, 0xfffffffffffffff0
movdqa xmm4, xmm5
sub r9, rax
cmp rax, 0x20
jb 0x14002313d
mov rdx, rax
shr rdx, 5
imul rcx, rdx, 0xffffffffffffffe0
add rax, rcx
nop word [rax + rax]
movdqu xmm1, xmmword [r8]
movdqu xmm2, xmmword [r8 + 0x10]
add r8, 0x20
movdqa xmm0, xmm1
paddd xmm6, xmm3
psadbw xmm0, xmm5
movdqu xmmword [r10], xmm1
movdqu xmmword [r10 + 0x10], xmm2
add r10, 0x20
pmaddubsw xmm1, xmm10
paddd xmm3, xmm0
movdqa xmm0, xmm2
pmaddubsw xmm2, xmm8
psadbw xmm0, xmm5
pmaddwd xmm1, xmm7
pmaddwd xmm2, xmm7
paddd xmm3, xmm0
paddd xmm9, xmm1
paddd xmm4, xmm2
sub rdx, 1
jne 0x1400230e0
pslld xmm6, 5
paddd xmm4, xmm9
paddd xmm4, xmm6
movdqa xmm6, xmm5
cmp rax, 0x10
jb 0x14002319e
movdqa xmm2, xmm3
shr rax, 4
nop dword [rax]
movdqu xmm1, xmmword [r8]
add r8, 0x10
paddd xmm6, xmm2
movdqa xmm0, xmm1
psadbw xmm0, xmm5
movdqu xmmword [r10], xmm1
add r10, 0x10
paddd xmm3, xmm0
movdqa xmm0, xmm1
pmaddubsw xmm0, xmm8
movdqa xmm2, xmm3
pmaddwd xmm0, xmm7
paddd xmm4, xmm0
sub rax, 1
jne 0x140023160
movdqa xmm0, xmm3
pslld xmm6, 4
psrldq xmm0, 8
paddd xmm6, xmm4
paddd xmm0, xmm3
mov eax, 0x80078071
movd r11d, xmm0
movdqa xmm1, xmm6
punpckhqdq xmm1, xmm6
paddd xmm1, xmm6
mul r11d
pshufd xmm0, xmm1, 1
paddd xmm0, xmm1
movd ebx, xmm0
shr edx, 0xf
imul eax, edx, 0xfff1
sub r11d, eax
mov eax, 0x80078071
mul ebx
shr edx, 0xf
imul eax, edx, 0xfff1
sub ebx, eax
cmp r9, 0x10
jae 0x1400230a0
test r9, r9
jne 0x140023090
shl ebx, 0x10
or ebx, r11d
mov eax, ebx
jmp 0x140023261
test r9, r9
je 0x140023238
sub r8, r10
nop dword [rax]
movzx eax, byte [r8 + r10]
mov byte [r10], al
lea r10, [r10 + 1]
add r11d, eax
add ebx, r11d
sub r9, 1
jne 0x140023220
mov eax, 0x80078071
mul r11d
mov eax, 0x80078071
shr edx, 0xf
imul ecx, edx, 0xfff1
mul ebx
sub r11d, ecx
shr edx, 0xf
imul eax, edx, 0xf
add eax, ebx
shl eax, 0x10
or eax, r11d
mov rbx, qword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x30]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x10]
movaps xmm10, xmmword [rsp]
add rsp, 0x50
pop rdi
ret