joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14011afd0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14022b7e0]
mov ecx, dword [0x140222a94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14011b097
mov ecx, dword [0x14021aed0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14011b033
movsxd rcx, dword [0x14022b7d8]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [0x14022b7dc]
movsxd rdx, dword [0x14022b7d8]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov eax, dword [0x14022b7f0]
mov ecx, dword [0x140222a94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14011b0da
mov ecx, dword [0x14021aed0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14011b092
movsxd rcx, dword [0x14022b7e8]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [0x14022b7ec]
movsxd rdx, dword [0x14022b7e8]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
ret
lea rcx, [0x14022b7e0]
call fcn.14011d638
cmp dword [0x14022b7e0], 0xffffffff
jne 0x14011aff9
mov qword [0x14022b7d8], 0
lea rcx, [0x14022b7d8]
xor edx, edx
call fcn.140012fc0
lea rcx, [0x14022b7e0]
call fcn.14011d5d8
jmp 0x14011aff9
lea rcx, [0x14022b7f0]
call fcn.14011d638
cmp dword [0x14022b7f0], 0xffffffff
jne 0x14011b058
mov qword [0x14022b7e8], 0
lea rcx, [0x14022b7e8]
xor edx, edx
call fcn.140012fc0
lea rcx, [0x14022b7f0]
call fcn.14011d5d8
jmp 0x14011b058

Function at 0x14012c4ec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14012c61c
Function at 0x140156a70
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov qword [rbp - 8], 0xfffffffffffffffe
call fcn.14012fe40
call qword [0x14023a010]
mov ecx, 2
call fcn.14011e160
lea rcx, str.terminate_handler_unexpectedly_returned_n
mov edx, 0x28
mov r8d, 1
mov r9, rax
call fcn.140137dc8
call fcn.14011d580
int3

Function at 0x1401571a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor edx, edx
jmp 0x1401572d0
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15d, edx
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x60], 0
je 0x14015732e
mov edi, dword [rsi + 0x5c]
test r15b, r15b
je 0x14015730e
mov dword [rsi + 0x5c], 0xffffffff
mov byte [rsi + 0x60], 0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14011fe20
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movabs r14, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], r14
mov eax, dword [rsi + 0x58]
test eax, eax
mov edi, 1
cmovg edi, eax
xor ebp, ebp
mov rcx, qword [rsi + 0x40]
call fcn.1401381a4
cmp eax, 0xffffffff
je 0x1401573ab
mov byte [rsp + rbp + 0x58], al
inc rbp
cmp rdi, rbp
jne 0x14015734c
mov byte [rsp + 0x57], 0xaa
cmp byte [rsi + 0x61], 0
je 0x1401573b5
mov al, byte [rsp + 0x58]
mov byte [rsp + 0x57], al
test r15b, r15b
je 0x140157388
movzx edi, byte [rsp + 0x57]
mov dword [rsi + 0x5c], edi
jmp 0x14015730e
mov edi, edi
test rdi, rdi
jle 0x140157468
mov rdx, qword [rsi + 0x40]
dec rdi
mov eax, edi
movzx ecx, byte [rsp + rax + 0x58]
call fcn.14013f084
cmp eax, 0xffffffff
jne 0x14015738a
mov edi, 0xffffffff
jmp 0x14015730e
lea rax, [rsp + 0x48]
mov qword [rax], r14
lea r12, [rsp + 0x40]
mov qword [r12], r14
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov r13d, dword [rdx]
movzx ebp, word [rdx + 4]
movzx r14d, word [rdx + 6]
lea r9, [rsp + rdi + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], r12
lea rbx, [rsp + 0x58]
mov qword [rsp + 0x30], rbx
lea rbx, [rsp + 0x57]
mov qword [rsp + 0x28], rbx
lea rbx, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x58]
call qword [0x14023a010]
cmp eax, 1
jne 0x140157451
mov rax, qword [rsi + 0x50]
mov dword [rax], r13d
mov word [rax + 4], bp
mov word [rax + 6], r14w
cmp rdi, 8
je 0x1401573ab
mov rcx, qword [rsi + 0x40]
call fcn.1401381a4
cmp eax, 0xffffffff
je 0x1401573ab
mov byte [rsp + rdi + 0x58], al
inc rdi
jmp 0x1401573c6
cmp eax, 2
je 0x1401573ab
cmp eax, 3
je 0x140157371
jmp 0x140157379
movzx edi, byte [rsp + 0x57]
jmp 0x14015730e
Function at 0x1401574b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor edx, edx
jmp 0x1401575e0
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15d, edx
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x5e], 0
je 0x14015763e
movzx edi, word [rsi + 0x5c]
test r15b, r15b
je 0x14015761e
mov word [rsi + 0x5c], 0xffff
mov byte [rsi + 0x5e], 0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14011fe20
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movabs r14, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], r14
mov eax, dword [rsi + 0x58]
test eax, eax
mov edi, 1
cmovg edi, eax
xor ebp, ebp
mov rcx, qword [rsi + 0x40]
call fcn.1401381a4
cmp eax, 0xffffffff
je 0x1401576c3
mov byte [rsp + rbp + 0x58], al
inc rbp
cmp rdi, rbp
jne 0x14015765c
mov word [rsp + 0x56], 0xaaaa
cmp byte [rsi + 0x5f], 0
je 0x1401576cc
movsx eax, byte [rsp + 0x58]
mov word [rsp + 0x56], ax
test r15b, r15b
je 0x14015769d
movzx edi, word [rsp + 0x56]
mov word [rsi + 0x5c], di
jmp 0x14015761e
mov edi, edi
test rdi, rdi
jle 0x14015777f
mov rdx, qword [rsi + 0x40]
dec rdi
mov eax, edi
movsx eax, byte [rsp + rax + 0x58]
movzx ecx, ax
call fcn.14013f084
cmp eax, 0xffffffff
jne 0x14015769f
mov di, 0xffff
jmp 0x14015761e
lea rax, [rsp + 0x48]
mov qword [rax], r14
lea r12, [rsp + 0x40]
mov qword [r12], r14
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov r13d, dword [rdx]
movzx ebp, word [rdx + 4]
movzx r14d, word [rdx + 6]
lea r9, [rsp + rdi + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], r12
lea rbx, [rsp + 0x58]
mov qword [rsp + 0x30], rbx
lea rbx, [rsp + 0x56]
mov qword [rsp + 0x28], rbx
lea rbx, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x58]
call qword [0x14023a010]
cmp eax, 1
jne 0x140157768
mov rax, qword [rsi + 0x50]
mov dword [rax], r13d
mov word [rax + 4], bp
mov word [rax + 6], r14w
cmp rdi, 8
je 0x1401576c3
mov rcx, qword [rsi + 0x40]
call fcn.1401381a4
cmp eax, 0xffffffff
je 0x1401576c3
mov byte [rsp + rdi + 0x58], al
inc rdi
jmp 0x1401576dd
cmp eax, 2
je 0x1401576c3
cmp eax, 3
je 0x140157683
jmp 0x14015768d
movzx edi, word [rsp + 0x56]
jmp 0x14015761e
Function at 0x1401577e0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x40], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x40]
mov qword [r14 - 8], r12
lea r13, [rsp + 0x30]
lea r15, [rsp + 0x38]
mov ebp, 0xffffffff
mov qword [rsp + 0x30], r12
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x20], r13
mov r8, r15
mov r9, r14
call qword [0x14023a010]
mov edi, eax
mov rbx, qword [rsp + 0x30]
sub rbx, r15
mov r9, qword [rsi + 0x40]
mov edx, 1
mov rcx, r15
mov r8, rbx
call fcn.140137dc8
cmp rax, rbx
jne 0x140157885
cmp edi, 1
je 0x140157824
cmp edi, 2
je 0x140157885
mov rcx, qword [rsi + 0x40]
call fcn.1401374e0
xor ebp, ebp
neg eax
sbb ebp, ebp
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14011fe20
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1401578b0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp byte [rcx + 0x58], 0
je 0x1401578e5
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, r14
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140137dc8
xor ebx, ebx
test rsi, rsi
jle 0x140157911
movzx edx, byte [r14 + rbx]
mov rax, qword [rdi]
mov rax, qword [rax + 0x60]
mov rcx, rdi
call qword [0x14023a010]
cmp eax, 0xffffffff
je 0x140157911
inc rbx
cmp rsi, rbx
jne 0x1401578ec
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140157920
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], r12
cmp edx, 0xffffffff
je 0x14015798a
mov r15d, edx
mov rdi, rcx
mov byte [rsp + 0x57], r15b
cmp byte [rcx + 0x58], 0
je 0x1401579b0
mov r9, qword [rdi + 0x40]
lea rcx, [rsp + 0x57]
mov edx, 1
mov r8d, 1
call fcn.140137dc8
mov esi, 0xffffffff
cmp rax, 1
je 0x14015798d
jmp 0x140157990
xor r15d, r15d
mov esi, r15d
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14011fe20
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [rsp + 0x58]
lea r13, [rsp + 0x48]
mov qword [r13], rbx
lea rsi, [rsp + 0x57]
lea r14, [rsp + 0x40]
mov qword [rsp + 0x40], r12
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x38], r13
lea rbp, [rsp + 0x60]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
mov r8, rsi
lea r9, [rsp + 0x58]
call qword [0x14023a010]
cmp qword [rsp + 0x40], rsi
je 0x140157a67
mov ebp, eax
cmp eax, 3
je 0x140157a46
cmp ebp, 1
ja 0x140157a67
mov rsi, qword [rsp + 0x48]
sub rsi, rbx
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, rbx
mov r8, rsi
call fcn.140137dc8
cmp rax, rsi
jne 0x140157a67
mov rsi, qword [rsp + 0x40]
cmp ebp, 1
je 0x1401579c8
jmp 0x14015798d
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, rsi
call fcn.140137dc8
cmp rax, 1
je 0x14015798d
mov esi, 0xffffffff
jmp 0x140157990

Function at 0x140157ad0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp byte [rcx + 0x58], 0
je 0x140157b05
mov r9, qword [rdi + 0x40]
mov edx, 2
mov rcx, r14
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140137dc8
xor ebx, ebx
test rsi, rsi
jle 0x140157b32
movzx edx, word [r14 + rbx*2]
mov rax, qword [rdi]
mov rax, qword [rax + 0x60]
mov rcx, rdi
call qword [0x14023a010]
cmp ax, 0xffff
je 0x140157b32
inc rbx
cmp rsi, rbx
jne 0x140157b0c
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140157b40
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], r12
cmp dx, 0xffff
je 0x140157baa
mov r15d, edx
mov rdi, rcx
mov word [rsp + 0x56], dx
cmp byte [rcx + 0x58], 0
je 0x140157bd0
mov r9, qword [rdi + 0x40]
lea rcx, [rsp + 0x56]
mov edx, 2
mov r8d, 1
call fcn.140137dc8
mov si, 0xffff
cmp rax, 1
je 0x140157bad
jmp 0x140157bb0
xor r15d, r15d
mov esi, r15d
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14011fe20
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [rsp + 0x58]
lea r13, [rsp + 0x48]
mov qword [r13], rbx
lea rsi, [rsp + 0x56]
lea r14, [rsp + 0x40]
mov qword [rsp + 0x40], r12
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x38], r13
lea rbp, [rsp + 0x60]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
mov r8, rsi
lea r9, [rsp + 0x58]
call qword [0x14023a010]
cmp qword [rsp + 0x40], rsi
je 0x140157c87
mov ebp, eax
cmp eax, 3
je 0x140157c66
cmp ebp, 1
ja 0x140157c87
mov rsi, qword [rsp + 0x48]
sub rsi, rbx
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, rbx
mov r8, rsi
call fcn.140137dc8
cmp rax, rsi
jne 0x140157c87
mov rsi, qword [rsp + 0x40]
cmp ebp, 1
je 0x140157be8
jmp 0x140157bad
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, rsi
call fcn.140137dc8
cmp rax, 1
je 0x140157bad
mov si, 0xffff
jmp 0x140157bb0

Function at 0x140157ce0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x140157d17
movabs r9, 0xf000000000000000
shl rax, 4
movsx r10, byte [rdx]
add r10, rax
mov rcx, r10
and rcx, r9
mov rax, rcx
shr rax, 0x38
or rax, rcx
xor rax, r10
inc rdx
cmp rdx, r8
jne 0x140157cf1
ret

Function at 0x140157d60
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x140157d98
movabs r9, 0xf000000000000000
shl rax, 4
movzx r10d, word [rdx]
add r10, rax
mov rcx, r10
and rcx, r9
mov rax, rcx
shr rax, 0x38
or rax, rcx
xor rax, r10
add rdx, 2
cmp rdx, r8
jne 0x140157d71
ret
Function at 0x14015db80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov r12, r8
mov r14, rdx
mov bl, byte [rbp + 0x68]
test byte [r9 + 8], 1
jne 0x14015dbe0
movzx edx, word [rbp + 0x60]
movzx ebx, bl
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
mov dword [rsp + 0x28], ebx
mov word [rsp + 0x20], dx
mov rdx, r14
mov r8, r12
call qword [0x14023a010]
mov rax, r14
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
mov rax, qword [r9 + 0x30]
lea rcx, [rbp - 0x30]
mov qword [rcx], rax
mov qword [rbp - 0x10], rax
lock inc dword [rax + 8]
lea rdx, [0x140224990]
call fcn.14010e3f0
mov rsi, rax
mov eax, 0xffffffff
mov rcx, qword [rbp - 0x10]
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x14015dc21
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14023a010]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rbp - 0x30]
mov qword [r15 + 0x10], rax
movaps xmm0, xmmword [0x1401efb80]
movaps xmmword [r15], xmm0
mov rax, qword [rsi]
xor bl, 1
movzx ecx, bl
mov rax, qword [rax + rcx*8 + 0x28]
mov rcx, rsi
mov rdx, r15
call qword [0x14023a010]
movzx esi, byte [r15 + 0x17]
test sil, sil
mov rcx, qword [r15]
mov rdx, qword [r15 + 8]
mov rax, rsi
cmovs rax, rdx
test rax, rax
je 0x14015dcf0
test sil, sil
mov rbx, rcx
cmovns rbx, r15
test r12, r12
je 0x14015dcd3
movzx eax, word [rbx]
mov rcx, qword [r12 + 0x30]
cmp rcx, qword [r12 + 0x38]
je 0x14015dcd8
lea rdx, [rcx + 2]
mov qword [r12 + 0x30], rdx
mov word [rcx], ax
cmp ax, 0xffff
jne 0x14015dca6
xor r12d, r12d
mov sil, byte [rbp - 0x19]
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
add rbx, 2
test sil, sil
mov rax, r15
cmovs rax, rcx
movzx edi, sil
cmovs rdi, rdx
lea rax, [rax + rdi*2]
cmp rbx, rax
jne 0x14015dc7d
jmp 0x14015dcf0
xor r12d, r12d
jmp 0x14015dcb2
mov rcx, qword [r12]
mov rsi, qword [rcx + 0x60]
mov rcx, r12
mov edx, eax
mov rax, rsi
call qword [0x14023a010]
jmp 0x14015dc9d
shr sil, 7
mov qword [r14], r12
test sil, sil
je 0x14015dbce
call fcn.14011d780
jmp 0x14015dbce
Function at 0x14016db40
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x1402256c8], 0
je 0x14016db86
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.14011fe20
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x1402256c0]
test rdi, rdi
je 0x14016dc26
test byte [0x14021ae98], 1
je 0x14016db69
cmp byte [rdi + 0x17], 0
jns 0x14016dba8
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1402256c8], rax
inc rax
cmp rax, 1
ja 0x14016db69
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140122050
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14016dc1f
cmp eax, 0x104
jbe 0x14016dce7
xor esi, esi
jmp 0x14016db69
mov ecx, 0x18
call fcn.14011d790
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140122050
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x1401efb80]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.14005c110
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
jns 0x14016dc8a
mov r8, qword [rdi + 8]
mov rcx, rdi
mov dx, 0x5c
call fcn.14010e920
cmp rax, 0xffffffffffffffff
je 0x14016dccc
movzx ecx, byte [rdi + 0x17]
mov rdx, rcx
test cl, cl
jns 0x14016dcab
mov rdx, qword [rdi + 8]
cmp rdx, rax
jbe 0x14016ddb5
mov rdx, rax
inc rdx
test cl, cl
js 0x14016dd96
mov word [rdi + rax*2 + 2], 0
mov byte [rdi + 0x17], dl
lea rdx, str.debug.log
mov rcx, rdi
call fcn.14005d6a0
mov qword [0x1402256c0], rdi
jmp 0x14016db96
mov rcx, qword [0x1402256c0]
lea rdx, [rsp + 0x40]
call fcn.14001a6e0
mov rcx, qword [0x1402256c0]
movzx eax, byte [rcx + 0x17]
test al, al
js 0x14016dda9
mov rdx, rcx
cmp word [rdx + rax*2 - 2], 0x5c
je 0x14016dd29
lea rdx, [0x1401f777a]
call fcn.14005d6a0
mov rcx, qword [0x1402256c0]
lea rdx, str.debug.log
call fcn.14005d6a0
mov rcx, qword [0x1402256c0]
cmp byte [rcx + 0x17], 0
jns 0x14016dd45
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1402256c8], rax
inc rax
cmp rax, 1
ja 0x14016db69
mov qword [0x1402256c8], 0
jmp 0x14016dc1f
mov rcx, qword [rdi]
mov word [rcx + rax*2 + 2], 0
mov qword [rdi + 8], rdx
jmp 0x14016dccc
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
jmp 0x14016dd0e
mov rcx, rdi
call fcn.14016bfe0
int3
Function at 0x14016f0d0
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, rcx
mov edi, 2
cmp rdx, 1
jne 0x14016f10a
mov rsi, qword [r14 + 8]
cmp rdi, rsi
ja 0x14016f205
jae 0x14016f1fb
mov rax, qword [r14 + 0x18]
test rax, rax
js 0x14016f125
cvtsi2ss xmm0, rax
jmp 0x14016f13a
lea rax, [rdx - 1]
test rdx, rax
jne 0x14016f118
mov rdi, rdx
jmp 0x14016f0e7
mov rcx, rdx
call fcn.14010b600
mov rdi, rax
jmp 0x14016f0e7
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [r14 + 0x20]
call fcn.140135b9c
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x1401e2fa8]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rsi, 3
jb 0x14016f1e7
mov rcx, rsi
shr rcx, 1
movabs rdx, 0x5555555555555555
and rdx, rcx
mov rbx, rsi
sub rbx, rdx
movabs rdx, 0x3333333333333333
mov rcx, rbx
shr rcx, 2
and rbx, rdx
and rcx, rdx
add rcx, rbx
mov rdx, rcx
shr rdx, 4
add rdx, rcx
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rdx
movabs rdx, 0x101010101010101
imul rdx, rcx
shr rdx, 0x38
cmp edx, 1
ja 0x14016f1e7
cmp rax, 2
jb 0x14016f1ef
dec rax
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
jmp 0x14016f1ef
mov rcx, rax
call fcn.14010b600
cmp rdi, rax
cmovb rdi, rax
cmp rdi, rsi
jb 0x14016f205
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, r14
mov rdx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x140156080

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

Disassembly:
push rsi
mov r8, qword [rcx]
mov r9, qword [rcx + 8]
sub r9, r8
je 0x14016f2ca
mov rdx, r9
shr rdx, 2
xor eax, eax
lea r10, [0x1401fc8d0]
movzx r11d, dl
movzx esi, byte [r8 + rax]
xor esi, r11d
shr edx, 8
xor edx, dword [r10 + rsi*4]
inc rax
cmp r9, rax
jne 0x14016f2ad
jmp 0x14016f2cc
xor edx, edx
cmp edx, dword [rcx + 0x18]
sete al
pop rsi
ret
Function at 0x140172070
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x1401720ef
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1401720f4
test bl, bl
je 0x1401720cb
cmp byte [rdi + 8], 0
je 0x140172150
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
mov edx, esi
call fcn.14005ff80
mov sil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14011fe20
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rdi]
jmp 0x14017209d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rdi + 8], 0
je 0x14017211c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140172121
xor esi, esi
jmp 0x1401720d8
mov rcx, qword [rdi]
jmp 0x140172109
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rdi + 8], 0
je 0x140172158
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1401720cb
mov esi, dword [rsp + 0x24]
jmp 0x1401720cb
mov rcx, qword [rdi]
jmp 0x1401720c0
mov rcx, qword [rdi]
jmp 0x140172138

Function at 0x140172190
Capabilities:
Create thread

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp fcn.140020710
Function at 0x1401758b0
Capabilities:
Access peb ldr_data

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x1401758eb
mov eax, dword [0x140222a94]
mov rdx, qword gs:[0x58]
mov rax, qword [rdx + rax*8]
lea rax, [rax + 0x120]
cmp qword [rcx + 8], rax
je 0x140175981
mov rcx, qword [rcx + 0x20]
jmp 0x1401758bc
mov rcx, qword [rsi + 0x28]
mov rax, qword [rsi + 0x48]
cmp rcx, 0x61
mov edi, 0x60
cmovae rdi, rcx
mov rcx, rdi
call qword [0x14023a010]
mov rdx, rax
xor r8d, r8d
mov qword [rax], r8
mov qword [rax + 8], 0x18
mov qword [rax + 0x10], rdi
lock add qword [rsi + 0x10], rdi
lea rcx, [rax + 0x18]
mov qword [rax + 8], 0x60
mov qword [rax + 0x18], rsi
mov edi, dword [0x140222a94]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdi*8]
lea rax, [rax + 0x120]
mov qword [rdx + 0x20], rax
mov qword [rdx + 0x28], rdx
lea rax, [rdx + 0x60]
mov qword [rdx + 0x40], rax
mov rax, qword [rdx + 0x10]
add rax, rdx
mov qword [rdx + 0x48], rax
mov qword [rdx + 0x30], r8
xorps xmm0, xmm0
movups xmmword [rdx + 0x50], xmm0
mov rax, qword [rsi]
mov qword [rdx + 0x38], rax
lock cmpxchg qword [rsi], rcx
jne 0x140175976
mov eax, dword [0x140222a94]
mov rdx, qword gs:[0x58]
mov rax, qword [rdx + rax*8]
mov qword [rax + 0x128], rcx
mov rdx, qword [rsi + 0x20]
mov qword [rax + 0x120], rdx
mov qword [rsi + 8], rcx
mov rax, rcx
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x14017d2d0
Capabilities:
Compare security identifiers

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14018af10
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, rdx
mov r13, rcx
mov rsi, qword [rcx + 0x10]
cmp rsi, qword [rcx + 0x18]
je 0x14018af4a
mov rax, qword [r14]
mov qword [rsi], rax
add qword [r13 + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [r13]
mov rdi, qword [r13 + 8]
mov rax, rdi
sub rax, r15
jbe 0x14018afa7
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, rdi
sub r15, rax
sub rsi, rdi
je 0x14018af96
mov rcx, r15
mov rdx, rdi
mov r8, rsi
call fcn.140121c40
mov rdi, qword [r13 + 8]
add rsi, r15
mov qword [r13 + 0x10], rsi
lea rax, [rdi + r12*8]
mov qword [r13 + 8], rax
jmp 0x14018af2f
mov rax, rsi
sub rax, r15
mov rcx, rax
sar rcx, 2
test rax, rax
mov ebx, 1
cmovne rbx, rcx
mov rax, rbx
shr rax, 0x3d
jne 0x14018b046
mov r12, rbx
shr r12, 2
lea rcx, [rbx*8]
call fcn.14011d790
lea r9, [rax + r12*8]
lea r8, [rax + rbx*8]
mov r10, r9
sub rsi, rdi
je 0x14018b019
mov rbx, rsi
sar rbx, 3
and rsi, 0xfffffffffffffff8
mov r10, rsi
add r10, r9
shl rbx, 3
lea rsi, [rax + r12*8]
xor ecx, ecx
mov rdx, qword [rdi + rcx]
mov qword [rsi + rcx], rdx
add rcx, 8
cmp rbx, rcx
jne 0x14018b008
mov qword [r13], rax
mov qword [r13 + 8], r9
mov qword [r13 + 0x10], r10
mov qword [r13 + 0x18], r8
mov rsi, r10
test r15, r15
je 0x14018af2f
mov rcx, r15
call fcn.14011d780
mov rsi, qword [r13 + 0x10]
jmp 0x14018af2f
call fcn.14011d580
int3