joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001350
Capabilities:
Find process by pid

Disassembly:
sub rsp, 0x28
mov ecx, ecx
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x14000137a
mov rcx, qword [rsp + 0x38]
call fcn.140001784
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001384
Capabilities:
Create device object

Disassembly:
push rbx
sub rsp, 0x60
and qword [rsp + 0x78], 0
lea rdx, [0x140002350]
mov rbx, rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x140002370]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x78]
mov r9d, 0x22
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov byte [rsp + 0x28], 0
xor edx, edx
and dword [rsp + 0x20], 0
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
js 0x140001418
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov ebx, eax
test eax, eax
jns 0x14000140a
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, ebx
jmp 0x140001418
mov rax, qword [rsp + 0x78]
mov qword [0x140004090], rax
xor eax, eax
add rsp, 0x60
pop rbx
ret

Function at 0x14000173c
Capabilities:
Find process by pid

Disassembly:
sub rsp, 0x28
mov ecx, ecx
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x14000177c
mov edx, dword [0x14000400c]
add rdx, qword [rsp + 0x38]
mov rcx, qword [rdx]
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov rcx, qword [rdx + 8]
mov rax, qword [rdx]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
add rsp, 0x28
ret

Function at 0x140002010
Capabilities:
Find process by pid

Disassembly:
sub rsp, 0x28
mov ecx, ecx
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140002042
mov ecx, dword [section..data]
mov rax, qword [rsp + 0x38]
mov dword [rcx + rax], 0x31
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
add rsp, 0x28
ret

Function at 0x14000204c
Capabilities:
Find process by pid

Disassembly:
sub rsp, 0x28
mov ecx, ecx
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x14000207e
mov ecx, dword [0x140004004]
mov rax, qword [rsp + 0x38]
mov dword [rcx + rax], 4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
add rsp, 0x28
ret
Function at 0x140002088
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ecx, ecx
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
call fcn.140001618
movsxd rdi, eax
test ebx, ebx
js 0x1400020f4
cmp rdi, 0xffffffffc0000001
je 0x1400020f4
lea rdx, [rsp + 0x40]
mov ecx, 4
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x1400020e9
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + rdi]
mov rax, qword [rsp + 0x38]
mov qword [rdi + rax], rcx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140002104
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x40
and qword [rsp + 0x58], 0
lea rdx, [rsp + 0x58]
mov ecx, ecx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
lea rax, [rsp + 0x60]
mov r9d, 0x1f0000
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov rax, qword [sym.imp.ntoskrnl.exe_PsProcessType]
xor edx, edx
mov byte [rsp + 0x28], 0
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov rcx, qword [rsp + 0x60]
xor edx, edx
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwTerminateProcess]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x1400066b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r11, rdx
mov r14, qword [rsp + 0x90]
mov r15, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebp, ecx
shr ebp, 8
lea r8, [r11 + r8*2]
xor eax, eax
mov rdi, r11
movzx esi, byte [r11 + 1]
add r11, 2
lea r10, [rax + rsi]
cmp byte [rdi], bpl
jne 0x140006730
cmp r10, rax
jb 0x1400067a4
cmp r10, rdx
ja 0x1400067b8
add rax, r9
xor edi, edi
nop
cmp rsi, rdi
je 0x140006732
lea rbx, [rdi + 1]
cmp byte [rax + rdi], cl
mov rdi, rbx
jne 0x140006710
jmp 0x140006793
ja 0x14000673a
mov rax, r10
cmp r11, r8
jne 0x1400066e2
add r14, r15
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea rbx, [r15 + 1]
movzx edx, byte [r15]
test dl, dl
js 0x140006770
mov r15, rbx
sub ecx, edx
jns 0x14000678a
jmp 0x140006795
cmp rbx, r14
je 0x1400067c9
movzx ebp, byte [r15 + 1]
add r15, 2
and edx, 0x7f
shl edx, 8
or edx, ebp
sub ecx, edx
js 0x140006795
xor al, 1
cmp r15, r14
jne 0x140006750
jmp 0x140006795
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, rax
mov rdx, r10
call fcn.140004f50
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140004630
ud2
lea rcx, str.called__Option::unwrap____on_a__None__valueinternal_error:_entered_unreachable_code_rustc_d5a82bbd26e1ad8b7401f6a718a9c57c96905483library_alloc_srccollections_btree_navigate.rs
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140004ac0
ud2
Function at 0x14000ede0
Capabilities:
Encode data using xor

Disassembly:
cmp rdx, 0x20
jae 0x14000edfb
test rdx, rdx
je 0x14000ee00
cmp rdx, 4
jae 0x14000ee03
xor eax, eax
mov r8, rcx
jmp 0x14000ef64
jmp fcn.140003ed0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
lea rax, [r8 - 4]
mov r9, rax
shr r9, 2
inc r9
test rax, rax
je 0x14000ef89
mov r10, r9
and r10, 0xfffffffffffffffe
pxor xmm0, xmm0
xor r11d, r11d
movdqa xmm2, xmmword [0x140037120]
movdqa xmm3, xmmword [0x140037130]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx eax, word [rcx + r11]
movd xmm4, eax
movzx eax, word [rcx + r11 + 2]
movd xmm5, eax
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm4, xmm0
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm0, xmm5, 0xd4
pshufd xmm5, xmm0, 0xd4
pand xmm5, xmm3
paddq xmm5, xmm1
movzx eax, word [rcx + r11 + 4]
movd xmm0, eax
movzx eax, word [rcx + r11 + 6]
movd xmm1, eax
pcmpgtb xmm0, xmm2
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0xd4
pshufd xmm0, xmm0, 0xd4
pand xmm0, xmm3
paddq xmm0, xmm4
pcmpgtb xmm1, xmm2
punpcklbw xmm1, xmm1
pshuflw xmm1, xmm1, 0xd4
pshufd xmm1, xmm1, 0xd4
pand xmm1, xmm3
paddq xmm1, xmm5
add r11, 8
add r10, 0xfffffffffffffffe
jne 0x14000ee50
test r9b, 1
je 0x14000ef4a
movzx eax, word [rcx + r11]
movd xmm2, eax
movzx eax, word [rcx + r11 + 2]
movd xmm3, eax
movdqa xmm4, xmmword [0x140037120]
pcmpgtb xmm2, xmm4
punpcklbw xmm2, xmm2
pshuflw xmm2, xmm2, 0xd4
pshufd xmm2, xmm2, 0xd4
movdqa xmm5, xmmword [0x140037130]
pand xmm2, xmm5
paddq xmm0, xmm2
pcmpgtb xmm3, xmm4
punpcklbw xmm3, xmm3
pshuflw xmm2, xmm3, 0xd4
pshufd xmm2, xmm2, 0xd4
pand xmm2, xmm5
paddq xmm1, xmm2
paddq xmm0, xmm1
pshufd xmm1, xmm0, 0xee
paddq xmm1, xmm0
movq rax, xmm1
cmp r8, rdx
je 0x14000ef88
add r8, rcx
add rcx, rdx
nop word [rax + rax]
xor edx, edx
cmp byte [r8], 0xc0
lea r9, [r8 + 1]
setge dl
add rax, rdx
mov r8, r9
cmp r9, rcx
jne 0x14000ef70
ret
pxor xmm0, xmm0
xor r11d, r11d
pxor xmm1, xmm1
test r9b, 1
jne 0x14000eef3
jmp 0x14000ef4a
Function at 0x14000f700
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rdi, qword [rcx]
test rdi, rdi
je 0x14000f752
mov r11, qword [rsi + 8]
mov r9, qword [rsi + 0x10]
cmp r9, r11
jae 0x14000f752
movzx eax, byte [rdi + r9]
cmp eax, 0x49
je 0x14000f76d
cmp eax, 0x42
jne 0x14000f752
lea rcx, [r9 + 1]
mov qword [rsi + 0x10], rcx
cmp rcx, r11
jae 0x14000f7aa
cmp byte [rdi + rcx], 0x5f
jne 0x14000f7aa
lea rax, [r9 + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14000f8a2
mov rcx, rsi
xor edx, edx
call fcn.14000ad10
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc r9
mov qword [rsi + 0x10], r9
mov rcx, rsi
xor edx, edx
call fcn.14000ad10
test al, al
jne 0x14000f7a5
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000f81c
lea rdx, [0x14007c5db]
mov r8d, 1
call fcn.1400046c0
test al, al
je 0x14000f81c
mov dil, 2
jmp 0x14000f761
xor eax, eax
mov r10d, 0x3e
nop word cs:[rax + rax]
mov r8b, 1
cmp rcx, r11
jae 0x14000f8fc
movzx edx, byte [rdi + rcx]
cmp dl, 0x5f
je 0x14000f896
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14000f7ff
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14000f7ee
add dl, 0xa9
jmp 0x14000f7fd
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14000f8fc
add dl, 0xe3
mov ebx, edx
inc rcx
mov qword [rsi + 0x10], rcx
mul r10
jo 0x14000f8fc
movzx edx, bl
add rax, rdx
jae 0x14000f7c0
jmp 0x14000f8fc
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14000f761
xor ebx, ebx
lea r14, [0x14007c9c6]
nop word cs:[rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14000f854
cmp byte [rax + rcx], 0x45
je 0x14000f954
sub rbx, 1
jb 0x14000f879
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000f879
mov r8d, 2
mov rdx, r14
call fcn.1400046c0
test al, al
jne 0x14000f7a5
mov rcx, rsi
call fcn.14000f960
test al, al
jne 0x14000f7a5
mov rax, qword [rsi]
test rax, rax
jne 0x14000f840
jmp 0x14000f761
inc rcx
mov qword [rsi + 0x10], rcx
inc rax
je 0x14000f8fc
cmp rax, r9
jae 0x14000f8f9
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14000f94d
cmp qword [rsi + 0x20], 0
je 0x14000f946
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.14000f700
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14000f763
mov r8b, 1
xor ebx, ebx
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000f93c
lea rax, [0x14007c991]
lea rdx, str.recursion_limit_reachedinvalid_syntax
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.1400046c0
mov dil, 2
test al, al
jne 0x14000f761
mov qword [rsi], 0
mov byte [rsi + 8], bl
xor edi, edi
jmp 0x14000f761
mov bl, 1
xor r8d, r8d
jmp 0x14000f8fe
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14000f761
Function at 0x140012cf0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140012d6e
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x140012daf
cmp dword [rsp + 0x2c], 0
je 0x140012d93
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140012dc9
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1400840f0]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1400840f0], rsi
jne 0x140012d50
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x140012da5
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x140012e1f
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140012d98
mov edi, dword [rsp + 0x28]
jmp 0x140012da5
mov edi, dword [rsi + 0x18]
jmp 0x140012da3
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140013470
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x30], 0
lea rax, [0x14007cd10]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.1400038b0
ud2
mov qword [rsp + 0x30], 0
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
lea rax, [0x14007cd10]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.1400134e0
ud2

Function at 0x1400138b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140036068]
test ecx, ecx
je 0x140013948
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400138d9
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x140013937
mov ecx, dword [0x140036068]
test ecx, ecx
je 0x14001395b
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14001393d
mov rsi, rax
test rax, rax
jne 0x140013931
mov ecx, 0x10
mov edx, 8
call fcn.14000aa00
test rax, rax
je 0x14001397e
mov rsi, rax
mov byte [rax + 8], 0
lea rax, [0x140036050]
mov qword [rsi], rax
mov ecx, dword [0x140036068]
test ecx, ecx
je 0x14001396e
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x14001393f
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140036050]
call fcn.140012cf0
mov ecx, eax
jmp 0x1400138c5
lea rcx, [0x140036050]
call fcn.140012cf0
mov ecx, eax
jmp 0x1400138e5
lea rcx, [0x140036050]
call fcn.140012cf0
mov ecx, eax
jmp 0x140013929
mov ecx, 0x10
mov edx, 8
call fcn.140002f40
ud2
Function at 0x140014d40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400360a8]
test ecx, ecx
je 0x140014de9
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140014d6c
cmp qword [rax], 0
je 0x140014d6c
add rax, 8
jmp 0x140014de3
mov ecx, dword [0x1400360a8]
test ecx, ecx
je 0x140014dfc
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140014de1
mov rsi, rax
test rax, rax
jne 0x140014dcc
mov ecx, 0x18
mov edx, 8
call fcn.14000aa00
test rax, rax
je 0x140014e1f
mov rsi, rax
mov qword [rax], 0
lea rax, [0x140036090]
mov qword [rsi + 0x10], rax
mov ecx, dword [0x1400360a8]
test ecx, ecx
je 0x140014e0f
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rax, [rsi + 8]
mov qword [rsi], 1
mov qword [rsi + 8], 0
jmp 0x140014de3
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140036090]
call fcn.140012cf0
mov ecx, eax
jmp 0x140014d55
lea rcx, [0x140036090]
call fcn.140012cf0
mov ecx, eax
jmp 0x140014d7c
lea rcx, [0x140036090]
call fcn.140012cf0
mov ecx, eax
jmp 0x140014dc4
mov ecx, 0x18
mov edx, 8
call fcn.140002f40
ud2

Function at 0x140014ea0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x140036088]
test ecx, ecx
je 0x140014f71
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140014ed3
mov rdi, rax
cmp qword [rax], 0
je 0x140014ed3
add rdi, 8
jmp 0x140014f67
mov ecx, dword [0x140036088]
test ecx, ecx
je 0x140014f84
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140014f65
mov rsi, rax
test rax, rax
jne 0x140014f37
mov ecx, 0x20
mov edx, 8
call fcn.14000aa00
test rax, rax
je 0x140014fa7
mov rsi, rax
mov qword [rax], 0
lea rax, [0x140036070]
mov qword [rsi + 0x18], rax
mov ecx, dword [0x140036088]
test ecx, ecx
je 0x140014f97
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rsi + 8]
cmp qword [rsi], 0
mov rcx, qword [rsi + 0x10]
mov qword [rsi], 1
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
je 0x140014f67
test rcx, rcx
je 0x140014f67
lock dec qword [rcx]
jne 0x140014f67
call fcn.140012e70
jmp 0x140014f67
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140036070]
call fcn.140012cf0
mov ecx, eax
jmp 0x140014eb6
lea rcx, [0x140036070]
call fcn.140012cf0
mov ecx, eax
jmp 0x140014ee3
lea rcx, [0x140036070]
call fcn.140012cf0
mov ecx, eax
jmp 0x140014f2f
mov ecx, 0x20
mov edx, 8
call fcn.140002f40
ud2
Function at 0x140017af0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
movzx ebx, byte [rdx + 0x38]
xor r15d, r15d
cmp bl, 1
setne dl
mov eax, 0
sbb eax, eax
mov r14, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140017b23
test ecx, ecx
jne 0x140017b72
movzx r15d, byte [rdi + 0x3a]
cmp al, 0xff
je 0x140017b30
test ecx, ecx
jne 0x140017b72
mov rcx, rdi
call fcn.1400179d0
movzx r10d, al
test bl, bl
jne 0x140017b79
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x140017b66.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x140017cec]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x140017b66.2
xor r10d, r10d
test bl, bl
je 0x140017b40
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140017cce
mov r11, qword [rdi]
lea r9, [r11 + rcx]
movzx r8d, byte [rdi + 0x10]
cmp rdx, rcx
jne 0x140017bab
xor edi, edi
jmp 0x140017c28
add rsi, r10
add rsi, rax
sub rsi, rdx
inc rsi
lea rax, [rdx + r11]
dec rax
xor edi, edi
cmp r8b, 3
jae 0x140017bf0
nop word cs:[rax + rax]
cmp byte [rax], 0x5c
je 0x140017c0b
inc rsi
dec rax
cmp rsi, 1
jne 0x140017bd0
jmp 0x140017c28
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x140017c0b
cmp ebx, 0x5c
je 0x140017c0b
inc rsi
dec rax
cmp rsi, 1
jne 0x140017bf0
jmp 0x140017c28
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x140017cdc
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x140017c52
mov al, 9
cmp rdx, 2
je 0x140017c56
cmp rdx, 1
jne 0x140017c66
cmp byte [r9], 0x2e
jne 0x140017c66
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140017c66
mov al, 0xa
jmp 0x140017c66
cmp byte [r9], 0x2e
jne 0x140017c66
cmp byte [r9 + 1], 0x2e
sete al
xor al, 9
add rdi, rdx
mov qword [r14], rdi
mov qword [r14 + 8], r9
mov qword [r14 + 0x10], rdx
mov byte [r14 + 0x18], al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 8
jmp case.0x140017b66.2
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 2
jmp case.0x140017b66.2
mov esi, 2
jmp case.0x140017b66.2
lea r8, [0x14007e100]
call fcn.1400045a0
ud2
lea r8, [0x14007e118]
call fcn.1400045a0
ud2
Function at 0x140034a30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400357d0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400357d0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140034aa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400841f4]
mov rbx, rcx
test esi, esi
jle 0x140034bd0
mov rax, qword [0x1400841f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140034aeb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140034b75
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140034ad0
mov rcx, rbx
call fcn.1400354f0
mov rdi, rax
test rax, rax
je 0x140034bf2
mov rax, qword [0x1400841f8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140035630
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400841f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140034bd7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140034b6e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140034b80
add dword [0x1400841f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400841f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140034b6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140034a30
nop dword [rax]
xor esi, esi
jmp 0x140034af8
mov rax, qword [0x1400841f8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140034a30
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140034a30
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140035160
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140084260]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140084240]
test rbx, rbx
je 0x1400351bc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400351b3
test rsi, rsi
je 0x1400351b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140035198
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400354f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14007f990]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140035510
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140035518
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140035510
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14003556d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140035564
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140035510
add rax, 0x28
cmp rax, r9
jne 0x140035550
xor eax, eax
ret

Function at 0x140035570
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14007f990]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14003558f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140035598
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14003558f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140035630
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14007f990]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14003564f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140035658
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret