joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e0d0
Capabilities:
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x60
and qword [rax - 0x30], 0
mov rsi, rdx
and qword [rax - 0x20], 0
lea rdx, str.ZwSetInformationFile
mov rbp, rcx
mov qword [rax - 0x18], 0xf
lea rcx, [rax - 0x30]
mov ebx, r9d
mov rdi, r8
call fcn.140006e88
mov eax, dword [rsp + 0x90]
mov r9d, ebx
mov r8, rdi
mov dword [rsp + 0x20], eax
mov rdx, rsi
mov rcx, rbp
call sub.ntdll.dll_ZwSetInformationFile
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.14000dcb4
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140010df0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x140114728]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, qword [rsp + 0xd0]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140010e34
test rbx, rbx
je 0x140010e4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140010e4d
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14006ba60
add rsp, 0xa0
pop rbx
ret
lea rdx, [0x1400c4798]
lea rcx, [rsp + 0x50]
call fcn.140010148
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.14000b824
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140009f98
lea rdx, [0x1400ec4d8]
lea rcx, [rsp + 0x38]
call fcn.14006dc60
int3
Function at 0x140015880
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x140114728]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov edi, 0xffff
xor r14d, r14d
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x1400158c4
movzx eax, r14w
jmp 0x1400159fa
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x140015900
mov rax, qword [rcx + 0x58]
movsxd r9, dword [rax]
lea rdx, [r8 + r9*2]
cmp r8, rdx
jae 0x140015900
lea ecx, [r9 - 1]
mov dword [rax], ecx
movzx eax, si
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], si
jmp 0x1400159fa
cmp qword [rcx + 0x80], r14
je 0x1400159f7
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14001593e
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140015967
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call fcn.14008f664
cmp ax, di
je 0x1400159f7
movzx edi, si
jmp 0x1400159f7
lea r8, [rbp + 0xf]
mov word [rbp + 7], si
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp + 9]
lea r8, [rbp + 0x3f]
mov qword [rsp + 0x30], r8
lea r8, [rbp + 0x1f]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x28], r8
lea r8, [rbp + 0x17]
mov qword [rsp + 0x20], r8
lea r8, [rbp + 7]
call qword [0x1400c3580]
test eax, eax
je 0x1400159bc
sub eax, 1
je 0x1400159bc
cmp eax, 2
jne 0x1400159f7
movzx ecx, word [rbp + 7]
jmp 0x14001594a
mov r14, qword [rbp + 0xf]
lea rax, [rbp + 0x1f]
sub r14, rax
je 0x1400159e6
mov r9, qword [rbx + 0x80]
lea rcx, [rbp + 0x1f]
mov r8, r14
mov edx, 1
call fcn.14008ee78
cmp r14, rax
jne 0x1400159f7
lea rax, [rbp + 7]
mov byte [rbx + 0x72], 1
cmp qword [rbp + 0x17], rax
movzx eax, si
jne 0x1400159fa
movzx eax, di
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14006ba60
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x1400330b4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14001cc6e
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x14001cc51
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x14001cc3c

Function at 0x14004f610
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
cmp eax, 0xffffffff
je 0x14004f62f
mov rax, rbx
add rsp, 0x20
pop rbx
ret
mov r9d, 0xc
lea r8, str.TLS_capacity_depleted
lea rcx, str.libslog_src_thread_specific.cpp
lea edx, [r9 + 0x1d]
call fcn.14005fd30
int3
Function at 0x140053250
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x60]
xor r15d, r15d
mov rax, qword [rsp + 0x68]
mov r13, rdx
mov r10, qword [rsp + 0x78]
mov qword [r14], r8
mov qword [r10], rax
mov rax, qword [r14]
cmp rax, r9
je 0x140053416
mov r12, qword [rsp + 0x70]
lea r9d, [r15 + 1]
mov rsi, qword [r10]
mov r8d, 0x3ff
mov r11d, 0x2400
mov ebx, 0x2800
cmp rsi, r12
je 0x140053416
movzx edx, word [r13]
xor bpl, bpl
movzx ecx, word [rax]
cmp r9w, dx
jae 0x1400532ea
lea eax, [r11 + rcx]
cmp ax, r8w
ja 0x140053436
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x140053300
mov eax, ecx
add cx, bx
cmp cx, r8w
ja 0x140053300
shl eax, 0xa
mov bpl, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140053313
movzx r8d, al
mov r11d, r15d
mov ebx, r15d
jmp 0x14005335e
mov r8d, eax
cmp eax, 0x800
jae 0x14005332d
shr r8d, 6
mov r11d, r9d
or r8b, 0xc0
mov ebx, r9d
jmp 0x14005335e
cmp eax, 0x10000
jae 0x140053347
shr r8d, 0xc
mov r11d, 2
or r8b, 0xe0
mov ebx, r11d
jmp 0x14005335e
shr r8d, 0x12
mov r11d, 3
movzx ebx, bpl
or r8b, 0xf0
xor ebx, 1
add ebx, ebx
lea r9d, [rbx + 1]
mov rdi, r12
sub rdi, rsi
mov ecx, r9d
cmp rdi, rcx
jl 0x140053416
test dx, dx
jne 0x1400533a9
mov rcx, qword [rsp + 0x40]
test byte [rcx + 0x14], 2
je 0x1400533a9
lea edx, [r9 + 3]
cmp rdi, rdx
jl 0x140053416
mov byte [rsi], 0xef
inc qword [r10]
mov rcx, qword [r10]
mov byte [rcx], 0xbb
inc qword [r10]
mov rcx, qword [r10]
mov byte [rcx], 0xbf
inc qword [r10]
add qword [r14], 2
test bpl, bpl
jne 0x1400533b8
cmp r11d, 3
jae 0x1400533c4
mov rcx, qword [r10]
mov r9d, ebx
mov byte [rcx], r8b
inc qword [r10]
test r9d, r9d
je 0x1400533f1
lea r8d, [r11 + r11*2]
add r8d, r8d
sub r8d, 6
mov edx, eax
mov ecx, r8d
dec r9d
shr edx, cl
mov rcx, qword [r10]
and dl, 0x3f
or dl, 0x80
mov byte [rcx], dl
inc qword [r10]
test r9d, r9d
jg 0x1400533d0
shr eax, 0xa
mov r9d, 1
test bpl, bpl
mov ecx, r9d
cmovne ecx, eax
mov word [r13], cx
mov rax, qword [r14]
cmp rax, qword [rsp + 0x58]
jne 0x14005329f
mov rax, qword [rsp + 0x50]
cmp rax, qword [r14]
sete r15b
mov eax, r15d
mov rbx, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x48]
mov eax, 2
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140068ed0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x20
mov ecx, dword [0x140114718]
cmp ecx, 0xffffffff
je 0x140068ef0
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140068f0a
call fcn.14006a160
mov ecx, dword [0x140114718]
cmp ecx, 0xffffffff
jne 0x140068f04
xor eax, eax
jmp 0x140068f0a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rbx, [rax + 0x18]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140067bb0
mov qword [rbx], rax
add rsp, 0x20
pop rbx
ret
Function at 0x140069740
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x140114718]
cmp ecx, 0xffffffff
je 0x1400697a3
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400697a3
mov rcx, qword [rax + 0x28]
mov rdx, rcx
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x140069788
cmp qword [rax + 0x20], rbx
jae 0x14006977c
mov rax, qword [rax + 0x10]
jmp 0x140069782
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140069770
cmp byte [rdx + 0x19], 0
jne 0x1400697a3
cmp rbx, qword [rdx + 0x20]
jb 0x1400697a3
cmp rdx, rcx
je 0x1400697a3
lea rax, [rdx + 0x28]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14006a160
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.140067b50
mov rbx, rax
mov qword [rsp + 0x30], rax
lea rdx, [0x140069340]
lea rcx, [0x14011ace0]
call fcn.140068f30
mov ecx, dword [0x140114718]
cmp ecx, 0xffffffff
je 0x14006a19b
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
add rsp, 0x20
pop rbx
ret

Function at 0x14006a9b0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x14006a9d8
mov qword [rdi], 0
mov rax, rdi
add rsp, 0x20
pop rdi
ret
cmp qword [rsp + 0x40], 0
jle 0x14006a9c8
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x38]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x14006aa0c
inc ebx
cmp ebx, 3
ja 0x14006aa42
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14006a9f6
mov rbx, qword [rsp + 0x30]
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rsp + 0x38]
xorps xmm0, xmm0
mulsd xmm1, qword [0x1400c9078]
cvtsi2sd xmm0, qword [rsp + 0x40]
divsd xmm1, xmm0
cvttsd2si rax, xmm1
mov qword [rdi], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov qword [rdi], 0
add rsp, 0x20
pop rdi
ret
Function at 0x14006ad50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ecx, dword [0x140114718]
cmp ecx, 0xffffffff
jne 0x14006ad6e
xor esi, esi
jmp 0x14006ad77
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x30], rsi
test rsi, rsi
je 0x14006ae6d
mov rax, qword [rsi + 0x30]
nop dword [rax]
test rax, rax
jne 0x14006ada6
cmp qword [rsi + 0x18], 0
je 0x14006ae46
mov rbx, qword [rsi + 0x18]
jmp 0x14006adb0
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x14006ae08
nop
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x14006ade7
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rbx]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsi + 0x18]
test rbx, rbx
jne 0x14006adb0
mov rax, qword [rsi + 0x30]
test rax, rax
je 0x14006ad95
nop dword [rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14006ae2c
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x14006ae2c
call qword [rbx + 0x28]
mov rdx, rbx
lea rcx, [rsi + 0x28]
call fcn.1400688b0
cmp qword [rsi + 0x30], 0
jne 0x14006ae10
xor eax, eax
jmp 0x14006ad90
lea rdx, [0x140069340]
lea rcx, [0x14011ace0]
call fcn.140068f30
mov ecx, dword [0x140114718]
cmp ecx, 0xffffffff
je 0x14006ae6d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x14006aea0
mov eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x14006aea0
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14006aeb0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x70
mov rsi, r9
mov rbp, r8
mov r14, rdx
mov rdi, rcx
call fcn.140069740
mov rbx, rax
test rax, rax
je 0x14006af7e
cmp byte [rsp + 0xa0], 0
je 0x14006af05
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14006af05
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x14006af05
call qword [rax]
test rbp, rbp
jne 0x14006af6e
test rsi, rsi
jne 0x14006af6e
mov qword [rsp + 0x20], rdi
mov ecx, dword [0x140114718]
cmp ecx, 0xffffffff
je 0x14006af2d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14006af5b
call fcn.14006a160
mov ecx, dword [0x140114718]
cmp ecx, 0xffffffff
jne 0x14006af52
xor ebx, ebx
lea rcx, [rbx + 0x28]
lea rdx, [rsp + 0x20]
call fcn.1400694a0
jmp 0x14006b08b
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
lea rcx, [rbx + 0x28]
lea rdx, [rsp + 0x20]
call fcn.1400694a0
jmp 0x14006b08b
mov qword [rbx], r14
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rsi
jmp 0x14006b08b
test rbp, rbp
jne 0x14006af8c
test rsi, rsi
je 0x14006b08b
xor ebx, ebx
mov ecx, dword [0x140114718]
cmp ecx, 0xffffffff
je 0x14006afa4
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14006afbf
call fcn.14006a160
mov ecx, dword [0x140114718]
cmp ecx, 0xffffffff
jne 0x14006afb9
mov rax, rbx
jmp 0x14006afbf
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
lea rsi, [rax + 0x28]
mov rbp, qword [rsi]
mov rax, qword [rbp + 8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], ebx
mov rcx, rbp
cmp byte [rax + 0x19], bl
jne 0x14006b018
nop word [rax + rax]
mov qword [rsp + 0x30], rax
cmp qword [rax + 0x20], rdi
jae 0x14006b005
mov dword [rsp + 0x38], ebx
mov rax, qword [rax + 0x10]
jmp 0x14006b013
mov dword [rsp + 0x38], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], bl
je 0x14006aff0
cmp byte [rcx + 0x19], bl
jne 0x14006b023
cmp rdi, qword [rcx + 0x20]
jae 0x14006b08b
movabs rax, 0x3ffffffffffffff
cmp qword [rsi + 8], rax
je 0x14006b0a6
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rbx
mov ecx, 0x40
call fcn.14006b46c
nop
mov qword [rax + 0x20], rdi
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rax + 0x28], xmm0
movsd xmm1, qword [rsp + 0x60]
movsd qword [rax + 0x38], xmm1
mov qword [rax], rbp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rbp
mov word [rax + 0x18], 0
movups xmm0, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x20], xmm0
mov r8, rax
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14004fb20
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
call fcn.14004fda0
int3
Function at 0x1400882fc
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140088103
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140088103
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140088103
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140088103
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140088103
cmp dword [rcx + 0x84], 0xe
jbe 0x140088103
cmp dword [rcx + 0xf8], 0
je 0x140088103
mov ecx, ebx
call fcn.140088228
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140087efc
cmp dword [rbp + 0x20], 0
je 0x140088150
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140088158
int3
xor r8d, r8d
xor edx, edx
jmp 0x14008809c
Function at 0x1400ac284
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x1400abf36
call fcn.14008da00
mov dword [rax], 0x16
call fcn.14007bf14
jmp 0x1400ac081
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400ac081
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400ac081
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400abf65
lock or dword [rcx + 0x14], 0x10
jmp 0x1400ac081
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400abf79
call fcn.1400adfe0
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x1400abf89
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x1400abf8c
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.1400a5510
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.1400ad60c
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1400ac06f
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1400ac01d
mov rcx, rbx
call fcn.1400a5510
cmp eax, 0xffffffff
je 0x1400ac008
mov rcx, rbx
call fcn.1400a5510
cmp eax, 0xfffffffe
je 0x1400ac008
mov rcx, rbx
call fcn.1400a5510
movsxd rdi, eax
lea r14, [0x14011c130]
mov rcx, rbx
sar rdi, 6
call fcn.1400a5510
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1400ac00f
lea rdx, [0x140114af0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400ac01d
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1400ac041
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1400ac041
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1400ac041
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x1400ac05f
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x1400ac06a
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x1400ac086
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x1400abf00
Function at 0x180017820
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [rcx + 0x18]
mov rdi, qword [rcx + 0x10]
cmp dword [rsi + 0xfc], 0
je 0x180017884
mov qword [rsp + 0x30], rbx
mov edx, 0xe83
mov rbx, qword [rdi + 0x18]
mov rcx, rdi
lea rax, [rbx + 8]
mov qword [rdi + 0x18], rax
call fcn.18002a1f0
mov dword [rbx], eax
mov dword [rbx + 4], 0xfffffffb
mov rax, qword [rsi + 0xe8]
mov rbx, qword [rsp + 0x30]
test rax, rax
je 0x180017878
mov rcx, rdi
call rax
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
and dword [rsi + 0x274], 0xffffffef
mov rax, qword [rdi + 0x30]
mov qword [rdx + 0x68], rax
mov dword [rdx + 0x60], edi
mov dword [rdx + 0x5c], 0xffffffff
mov dword [rdx + 0x58], 0
mov qword [rdi + 0x30], rdx
mov rdx, rdi
call fcn.180017430
mov rsi, qword [rsp + 0x38]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x180018250
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
mov esi, r9d
mov r14, rcx
test r9b, 1
jne 0x18001837c
cmp rdx, r8
je 0x18001837c
mov eax, dword [rdx]
xor r10d, r10d
mov rdi, qword [r14]
xor r11d, r11d
movzx edx, ax
shl rdx, 4
add rdx, rdi
mov ebx, dword [rdx]
mov r9d, ebx
mov ecx, ebx
shr r9d, 0x1c
cmp r9d, 8
jne 0x1800182b5
mov eax, ecx
shr eax, 0x10
cmp al, 1
jne 0x1800182bb
or r10d, dword [rdx + 4]
movzx edx, cx
jmp 0x18001828b
cmp r9d, 5
jne 0x1800182c0
movzx edx, cx
jmp 0x18001828b
and ecx, 0x3000000
or r10d, ecx
mov ecx, dword [r8]
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x10000000
je 0x18001830f
movzx r8d, cx
shl r8, 4
add r8, rdi
mov ecx, dword [r8]
mov eax, ecx
shr eax, 0x1c
cmp eax, 8
jne 0x180018301
mov eax, ecx
shr eax, 0x10
cmp al, 1
jne 0x1800182da
or r11d, dword [r8 + 4]
jmp 0x1800182da
cmp eax, 5
je 0x1800182da
and ecx, 0x3000000
or r11d, ecx
test sil, 4
je 0x180018320
cmp r10d, r11d
jne 0x1800183ab
jmp 0x180018346
test sil, 8
jne 0x180018346
mov eax, r11d
and eax, r10d
cmp eax, r11d
jne 0x1800183ab
cmp r9d, 4
je 0x18001837c
mov eax, dword [r8]
and eax, 0xf0000000
cmp eax, 0x40000000
je 0x18001837c
mov ecx, dword [r8]
mov eax, ecx
shr eax, 0x1c
cmp r9d, eax
jne 0x1800183ab
mov eax, dword [r8 + 4]
cmp dword [rdx + 4], eax
jne 0x1800183ab
test r9d, r9d
je 0x1800183a1
and ebx, 0xe0000000
cmp ebx, 0x20000000
jne 0x180018396
or esi, 4
test sil, 1
je 0x180018274
mov eax, 1
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov r14, qword [rsp + 0x20]
ret
cmp r9d, 1
jne 0x18001837c
cmp rdx, r8
jmp 0x1800183a9
xor ecx, ebx
test ecx, 0xc000000
je 0x18001837c
xor eax, eax
jmp 0x180018381
Function at 0x18001e4b0
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
inc dword [rcx + 0x5c]
mov esi, r8d
cmp dword [rcx + 0x5c], 0x14
mov rdi, rdx
mov rbx, rcx
jg 0x18001e501
call fcn.18001e080
mov rdx, rdi
mov rcx, rbx
call fcn.18001de70
dec dword [rbx + 0x5c]
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.18001d050
mov edx, 0x8d7
call fcn.18001ce80
int3
Function at 0x1800276e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x24]
mov rsi, r8
mov rbx, rcx
cmp rdx, rax
jbe 0x1800277e2
movsxd r9, dword [rdx + 4]
mov eax, r9d
and eax, 7
cmp al, 3
jne 0x180027719
mov rax, r9
and rax, 0xfffffffffffffff8
sub rdx, rax
movsxd rax, dword [rdx + 4]
mov r8, rdx
test al, 3
jne 0x180027737
mov eax, eax
movzx ecx, byte [rax - 3]
lea rcx, [rcx*8 + 8]
sub r8, rcx
jmp 0x18002773e
and rax, 0xfffffffffffffff8
sub r8, rax
mov edi, dword [r8]
mov rcx, rbx
mov r8, rdx
mov edx, edi
call fcn.180026de0
cmp eax, 0xffffffff
je 0x1800277e2
mov ecx, dword [rdi + 0x10]
lea r8, [0x180066760]
mov eax, eax
sub rcx, 0x40
add rax, 0x10
mov r10d, dword [rcx + rax*4]
lea rdx, [rcx + rax*4]
movzx eax, r10b
movzx r8d, word [r8 + rax*2]
shr r8d, 0xb
cmp r8d, 9
jne 0x1800277b3
mov eax, r10d
shr eax, 8
movzx r9d, al
cmp r10b, 0x45
lea r8d, [r9 - 3]
cmovne r8d, r9d
mov r9, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.180027ed0
cmp r8d, 0x16
je 0x1800277e2
mov eax, dword [rbx + 8]
mov edx, dword [rax + r8*4 + 0x104]
lea rax, str.metamethod
add rdx, 0x10
mov qword [rsi], rdx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret