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

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140127230
mov ecx, dword [0x14027eb88]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140128618
test byte [rbx + 0x40], 0xc
jne 0x1401285cf
mov eax, dword [0x140609108]
test eax, eax
jne 0x1401285e0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140126440
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140128603
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140128603
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14012862c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140126710
call fcn.1401272e0
mov rbx, rax
test rax, rax
jne 0x1401285bf
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14012864a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140126710
call fcn.1401284c0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1401286d0
call fcn.1401260f0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140128708
call fcn.140127230
mov ecx, dword [0x14027eb88]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140128760
test esi, esi
je 0x1401286e6
call fcn.1401285a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140128740
mov edx, edi
call fcn.1401261c0
call fcn.1401285a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140127230
mov ecx, dword [0x14027eb88]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140128750
call fcn.1401285a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1401285a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140127230
mov ecx, dword [0x14027eb88]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1401286a5
call fcn.1401272e0
mov rbx, rax
jmp 0x1401286a5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1401286be
call fcn.1401272e0
jmp 0x1401286e6
call fcn.1401272e0
mov rbx, rax
jmp 0x1401286a1

Function at 0x140128770
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140127230
mov ecx, dword [0x14027eb88]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1401287e0
test esi, esi
je 0x1401287c0
call fcn.1401285a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1401287f0
mov edx, esi
call fcn.1401261c0
call fcn.1401285a0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1401285a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1401285a0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1401272e0
mov rbx, rax
jmp 0x140128791
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1401287aa
Function at 0x140128db0
Capabilities:
Create thread
Get thread local storage value
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, rcx
mov rdi, rdx
mov rsi, r8
mov r12, r9
call fcn.140126fc0
mov rbx, rax
test rax, rax
je 0x140128fe4
test rbp, rbp
je 0x140128deb
mov rax, qword [rax + 0x1d8]
mov qword [rbp], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rbx + 0x44], 1
mov dword [rbx + 0xbc], 0
mov qword [rbx + 0x28], 0xffffffffffffffff
mov r14, r13
mov qword [rbx + 8], r12
mov r12, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rsi
xor esi, esi
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call r12
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x140128e60
test esi, esi
jne 0x140128e50
xor ecx, ecx
mov esi, 1
call r14
jmp 0x140128e1f
add esi, 1
mov ecx, 0x14
call r13
cmp esi, 5
jne 0x140128e1f
mov qword [rbx + 0x38], 0xffffffffffffffff
lea r12, [rbx + 0x68]
mov rcx, r12
call fcn.140126a10
cmp eax, 1
je 0x14012902f
cmp qword [rbx + 0x30], 0
mov dword [rbx], 0xbab1f00d
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xc0], 0
mov dword [rbx + 0xb8], 0
je 0x140128fcd
xor edx, edx
test rdi, rdi
je 0x140128ecd
mov eax, dword [rdi]
mov rsi, qword [rdi + 0x10]
mov dword [rbx + 0x44], eax
test al, 8
jne 0x140128ff0
mov eax, dword [rdi + 0x18]
mov dword [rbx + 0xc0], eax
mov edx, esi
lea r8, [0x140127590]
mov r9, rbx
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rsi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140128f98
mov eax, dword [rbx + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x140128f70
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [rbx + 0x44], 4
jne 0x140128f50
mov qword [rbx + 0x28], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, rsi
mov qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140128f37
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x140128f11
mov edx, 2
cmp eax, edx
cmovle edx, eax
cmp eax, 0xf
mov eax, 0xf
cmovge edx, eax
jmp 0x140128f11
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140128fa7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x38]
call fcn.1401268a0
mov rcx, r12
call fcn.140126a10
cmp eax, 1
je 0x14012902f
mov qword [rbx + 0x68], 0xffffffffffffffff
pxor xmm0, xmm0
movups xmmword [rbx + 0x28], xmm0
test rbp, rbp
je 0x140128fda
mov qword [rbp], 0
cmp qword [rbx + 0x1d0], 0
je 0x140129018
mov eax, 0xb
jmp 0x140128f41
call fcn.140127230
mov ecx, dword [0x14027eb88]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140129028
mov eax, dword [rax + 0xc0]
jmp 0x140128ec5
mov rcx, rbx
call fcn.140127090
jmp 0x140128fe4
call fcn.1401272e0
jmp 0x140129006
call fcn.140126d80
nop
nop word cs:[rax + rax]
Function at 0x14012b420
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x88
movups xmmword [rsp], xmm6
movups xmmword [rsp + 0x10], xmm7
movups xmmword [rsp + 0x20], xmm8
movups xmmword [rsp + 0x30], xmm9
movups xmmword [rsp + 0x40], xmm10
movups xmmword [rsp + 0x50], xmm11
movups xmmword [rsp + 0x60], xmm12
movups xmmword [rsp + 0x70], xmm13
mov rax, qword [0x1402af460]
movdqu xmm0, xmmword [rcx]
movdqu xmm4, xmmword [rax + 0xa0]
movdqu xmm8, xmmword [rax + 0xe0]
movdqu xmm12, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rcx + 0x30]
aesdec xmm0, xmm4
movdqu xmm5, xmmword [rax + 0xb0]
aesenc xmm12, xmm4
movdqu xmm9, xmmword [rax + 0xf0]
aesdec xmm2, xmm8
aesenc xmm1, xmm8
add rdx, r8
sub r8, 0xffffffffffffff80
movdqu xmm6, xmmword [rax + 0xc0]
aesdec xmm0, xmm5
movdqu xmm10, xmmword [rax + 0x100]
aesenc xmm12, xmm5
movdqu xmm7, xmmword [rax + 0xd0]
aesdec xmm2, xmm9
movdqu xmm11, xmmword [rax + 0x110]
aesenc xmm1, xmm9
aesdec xmm0, xmm6
aesenc xmm12, xmm6
aesdec xmm2, xmm10
aesenc xmm1, xmm10
aesdec xmm0, xmm7
aesenc xmm12, xmm7
aesdec xmm2, xmm11
aesenc xmm1, xmm11
movups xmmword [r8 - 0x80], xmm0
aesdec xmm0, xmm4
movups xmmword [r8 - 0x70], xmm12
aesenc xmm12, xmm4
aesdec xmm0, xmm5
movups xmmword [r8 - 0x60], xmm2
aesdec xmm2, xmm8
aesenc xmm12, xmm5
aesdec xmm0, xmm6
movups xmmword [r8 - 0x50], xmm1
aesenc xmm1, xmm8
aesdec xmm2, xmm9
aesenc xmm12, xmm6
aesenc xmm1, xmm9
aesdec xmm2, xmm10
aesdec xmm0, xmm7
aesenc xmm1, xmm10
aesenc xmm12, xmm7
aesdec xmm2, xmm11
movups xmmword [r8 - 0x40], xmm0
aesenc xmm1, xmm11
movups xmmword [r8 - 0x30], xmm12
movups xmmword [r8 - 0x20], xmm2
movups xmmword [r8 - 0x10], xmm1
cmp r8, rdx
jae 0x14012b655
movdqu xmm3, xmmword [0x140298ff0]
nop dword [rax + rax]
aesdec xmm0, xmm4
aesenc xmm12, xmm4
aesdec xmm2, xmm8
add r8, 0x40
aesdec xmm0, xmm5
aesenc xmm12, xmm5
aesdec xmm2, xmm9
aesdec xmm0, xmm6
aesenc xmm12, xmm6
aesenc xmm1, xmm8
aesdec xmm0, xmm7
aesenc xmm12, xmm7
aesdec xmm2, xmm10
movdqa xmm13, xmm0
aesenc xmm1, xmm9
aesdec xmm2, xmm11
pand xmm13, xmm3
aesenc xmm1, xmm10
movups xmmword [r8 - 0x40], xmm13
movdqa xmm13, xmm12
aesenc xmm1, xmm11
pand xmm13, xmm3
movups xmmword [r8 - 0x30], xmm13
movdqa xmm13, xmm2
pand xmm13, xmm3
movups xmmword [r8 - 0x20], xmm13
movdqa xmm13, xmm1
pand xmm13, xmm3
movups xmmword [r8 - 0x10], xmm13
cmp r8, rdx
jb 0x14012b5b0
movups xmm6, xmmword [rsp]
movups xmm7, xmmword [rsp + 0x10]
movups xmm8, xmmword [rsp + 0x20]
movups xmm9, xmmword [rsp + 0x30]
movups xmm10, xmmword [rsp + 0x40]
movups xmm11, xmmword [rsp + 0x50]
movups xmm12, xmmword [rsp + 0x60]
movups xmm13, xmmword [rsp + 0x70]
add rsp, 0x88
ret
mov rax, rcx
mov rcx, rdx
mov rdx, qword [0x1402af460]
lea r8, [rax + 0x40]
mov edx, dword [rdx + 0x1c]
lea edx, [rdx*8 + 0x80]
jmp 0x14012b420
Function at 0x14012d8e0
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
movdqu xmm0, xmmword [str._f__nc]
movdqu xmm1, xmmword [0x140298f50]
movdqu xmm2, xmmword [0x140298f60]
movdqu xmm3, xmmword [0x140298f70]
add rdx, rcx
cmp rcx, rdx
jae 0x14012d930
nop dword [rax + rax]
aesenc xmm3, xmmword [rcx]
aesdec xmm2, xmmword [rcx + 0x10]
aesenc xmm1, xmmword [rcx + 0x20]
add rcx, 0x40
aesdec xmm0, xmmword [rcx - 0x10]
cmp rcx, rdx
jb 0x14012d910
movdqu xmm4, xmmword [0x140298fc0]
aesenc xmm3, xmm4
aesdec xmm2, xmm4
aesenc xmm1, xmm4
aesdec xmm0, xmm4
movdqu xmm4, xmmword [0x140298fd0]
aesenc xmm3, xmm4
aesdec xmm2, xmm4
aesenc xmm1, xmm4
aesdec xmm0, xmm4
movups xmmword [r8], xmm3
movups xmmword [r8 + 0x10], xmm2
movups xmmword [r8 + 0x20], xmm1
movups xmmword [r8 + 0x30], xmm0
ret
Function at 0x14012e6b0
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
push rbx
sub rsp, 0x60
movups xmmword [rsp], xmm6
movups xmmword [rsp + 0x10], xmm7
movups xmmword [rsp + 0x20], xmm8
movups xmmword [rsp + 0x30], xmm9
movups xmmword [rsp + 0x40], xmm10
movups xmmword [rsp + 0x50], xmm11
movdqu xmm5, xmmword [0x140298f50]
movdqu xmm6, xmmword [0x140298f60]
movdqu xmm7, xmmword [0x140298f70]
movdqu xmm4, xmmword [str._f__nc]
movdqu xmm3, xmmword [r9]
movdqu xmm2, xmmword [r9 + 0x10]
movdqu xmm1, xmmword [r9 + 0x20]
movdqu xmm0, xmmword [r9 + 0x30]
movdqu xmm11, xmmword [0x140298f80]
movdqu xmm10, xmmword [0x140298f90]
movdqu xmm9, xmmword [0x140298fa0]
movdqu xmm8, xmmword [0x140298fb0]
mov rax, rdx
mov r11, rcx
lea rdx, [rcx + 0x1c00]
lea rcx, [rcx + rax - 0x1c00]
mov r10, r11
lea rbx, [rcx + 0x3800]
mov rax, r10
cmp r10, rcx
jae 0x14012e80d
nop dword [rax]
aesdec xmm3, xmm11
aesenc xmm2, xmm10
aesenc xmm7, xmmword [rax]
sub rax, 0xffffffffffffff80
aesdec xmm1, xmm9
aesenc xmm0, xmm8
movups xmmword [rax - 0x80], xmm3
aesdec xmm6, xmmword [rax - 0x70]
aesenc xmm5, xmmword [rax - 0x60]
aesdec xmm4, xmmword [rax - 0x50]
movups xmmword [rax - 0x70], xmm2
prefetcht0 byte [rdx]
movups xmmword [rax - 0x60], xmm1
aesdec xmm3, xmm11
prefetcht0 byte [rdx + 0x40]
aesenc xmm2, xmm10
movups xmmword [rax - 0x50], xmm0
aesdec xmm1, xmm9
sub rdx, 0xffffffffffffff80
aesenc xmm0, xmm8
aesenc xmm7, xmmword [rax - 0x40]
aesdec xmm6, xmmword [rax - 0x30]
aesenc xmm5, xmmword [rax - 0x20]
movups xmmword [rax - 0x40], xmm3
aesdec xmm4, xmmword [rax - 0x10]
movups xmmword [rax - 0x30], xmm2
movups xmmword [rax - 0x20], xmm1
movups xmmword [rax - 0x10], xmm0
cmp rax, rcx
jb 0x14012e760
mov rax, rcx
sub rax, r10
sub rax, 1
and rax, 0xffffffffffffff80
lea r10, [r10 + rax + 0x80]
add rcx, 0x1c00
cmp rbx, rcx
je 0x14012e828
mov rdx, r11
jmp 0x14012e750
movups xmmword [r9], xmm3
movups xmm8, xmmword [rsp + 0x20]
movups xmm9, xmmword [rsp + 0x30]
movups xmmword [r9 + 0x30], xmm0
movdqu xmm0, xmmword [0x140298fc0]
movups xmm10, xmmword [rsp + 0x40]
movups xmmword [r9 + 0x10], xmm2
movups xmm11, xmmword [rsp + 0x50]
aesenc xmm7, xmm0
aesdec xmm6, xmm0
aesenc xmm5, xmm0
movups xmmword [r9 + 0x20], xmm1
aesdec xmm4, xmm0
movdqu xmm0, xmmword [0x140298fd0]
aesenc xmm7, xmm0
aesdec xmm6, xmm0
aesenc xmm5, xmm0
movups xmmword [r8], xmm7
movups xmm7, xmmword [rsp + 0x10]
aesdec xmm4, xmm0
movups xmmword [r8 + 0x10], xmm6
movups xmm6, xmmword [rsp]
movups xmmword [r8 + 0x20], xmm5
movups xmmword [r8 + 0x30], xmm4
add rsp, 0x60
pop rbx
ret
Function at 0x1401a0f60
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x88
movups xmmword [rsp], xmm6
movups xmmword [rsp + 0x10], xmm7
movups xmmword [rsp + 0x20], xmm8
movups xmmword [rsp + 0x30], xmm9
movups xmmword [rsp + 0x40], xmm10
movups xmmword [rsp + 0x50], xmm11
movups xmmword [rsp + 0x60], xmm12
movups xmmword [rsp + 0x70], xmm13
mov rax, qword [0x1402af460]
movdqu xmm0, xmmword [rcx]
movdqu xmm4, xmmword [rax + 0xa0]
movdqu xmm8, xmmword [rax + 0xe0]
movdqu xmm12, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rcx + 0x30]
aesdec xmm0, xmm4
movdqu xmm5, xmmword [rax + 0xb0]
aesenc xmm12, xmm4
movdqu xmm9, xmmword [rax + 0xf0]
aesdec xmm2, xmm8
aesenc xmm1, xmm8
add rdx, r8
sub r8, 0xffffffffffffff80
movdqu xmm6, xmmword [rax + 0xc0]
aesdec xmm0, xmm5
movdqu xmm10, xmmword [rax + 0x100]
aesenc xmm12, xmm5
movdqu xmm7, xmmword [rax + 0xd0]
aesdec xmm2, xmm9
movdqu xmm11, xmmword [rax + 0x110]
aesenc xmm1, xmm9
aesdec xmm0, xmm6
aesenc xmm12, xmm6
aesdec xmm2, xmm10
aesenc xmm1, xmm10
aesdec xmm0, xmm7
aesenc xmm12, xmm7
aesdec xmm2, xmm11
aesenc xmm1, xmm11
movups xmmword [r8 - 0x80], xmm0
aesdec xmm0, xmm4
movups xmmword [r8 - 0x70], xmm12
aesenc xmm12, xmm4
aesdec xmm0, xmm5
movups xmmword [r8 - 0x60], xmm2
aesdec xmm2, xmm8
aesenc xmm12, xmm5
aesdec xmm0, xmm6
movups xmmword [r8 - 0x50], xmm1
aesenc xmm1, xmm8
aesdec xmm2, xmm9
aesenc xmm12, xmm6
aesenc xmm1, xmm9
aesdec xmm2, xmm10
aesdec xmm0, xmm7
aesenc xmm1, xmm10
aesenc xmm12, xmm7
aesdec xmm2, xmm11
movups xmmword [r8 - 0x40], xmm0
aesenc xmm1, xmm11
movups xmmword [r8 - 0x30], xmm12
movups xmmword [r8 - 0x20], xmm2
movups xmmword [r8 - 0x10], xmm1
cmp r8, rdx
jae 0x14012b655
movdqu xmm3, xmmword [0x140298ff0]
nop dword [rax + rax]
aesdec xmm0, xmm4
aesenc xmm12, xmm4
aesdec xmm2, xmm8
add r8, 0x40
aesdec xmm0, xmm5
aesenc xmm12, xmm5
aesdec xmm2, xmm9
aesdec xmm0, xmm6
aesenc xmm12, xmm6
aesenc xmm1, xmm8
aesdec xmm0, xmm7
aesenc xmm12, xmm7
aesdec xmm2, xmm10
movdqa xmm13, xmm0
aesenc xmm1, xmm9
aesdec xmm2, xmm11
pand xmm13, xmm3
aesenc xmm1, xmm10
movups xmmword [r8 - 0x40], xmm13
movdqa xmm13, xmm12
aesenc xmm1, xmm11
pand xmm13, xmm3
movups xmmword [r8 - 0x30], xmm13
movdqa xmm13, xmm2
pand xmm13, xmm3
movups xmmword [r8 - 0x20], xmm13
movdqa xmm13, xmm1
pand xmm13, xmm3
movups xmmword [r8 - 0x10], xmm13
cmp r8, rdx
jb 0x14012b5b0
movups xmm6, xmmword [rsp]
movups xmm7, xmmword [rsp + 0x10]
movups xmm8, xmmword [rsp + 0x20]
movups xmm9, xmmword [rsp + 0x30]
movups xmm10, xmmword [rsp + 0x40]
movups xmm11, xmmword [rsp + 0x50]
movups xmm12, xmmword [rsp + 0x60]
movups xmm13, xmmword [rsp + 0x70]
add rsp, 0x88
ret
mov rax, rcx
mov rcx, rdx
mov rdx, qword [0x1402af460]
lea r8, [rax + 0x40]
mov edx, dword [rdx + 0x1c]
lea edx, [rdx*8 + 0x80]
jmp 0x14012b420
Function at 0x140217a70
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read_1
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140217ab8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x140217a8a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14022a2d0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x14022a2f8
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read_1
test eax, eax
jle 0x14022a340
cdqe
add rsi, rax
sub rbx, rax
jne 0x14022a310
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x14022a34c
call rbp
cmp dword [rax], 4
je 0x14022a310
lea rcx, str.random_device_could_not_be_read
call fcn.14027d440
nop
nop
nop
nop
nop
nop
nop
nop
mov rax, qword [0x1402b05b0]
add rax, 0x10
mov qword [rcx], rax
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov eax, dword [rax - 8]
test eax, eax
mov rax, qword [rcx + 8]
jg 0x14022a390
mov dword [rax - 8], 1
ret
lock add dword [rax - 8], 1
ret
Function at 0x140237e00
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
movups xmmword [rsp], xmm6
movups xmmword [rsp + 0x10], xmm7
movdqu xmm3, xmmword [0x140292470]
pxor xmm7, xmm7
movdqu xmm4, xmmword [0x140292480]
movdqu xmm5, xmmword [0x140292490]
movdqu xmm6, xmmword [0x1402924a0]
mov rdx, rcx
lea rcx, [rcx + 0x380]
mov rax, rdx
nop
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 4]
add rax, 0x10
movdqu xmm2, xmmword [rax + 0x624]
pand xmm1, xmm4
pand xmm0, xmm3
por xmm0, xmm1
movdqa xmm1, xmm0
pand xmm0, xmm5
psrld xmm1, 1
pxor xmm1, xmm2
movdqa xmm2, xmm7
psubd xmm2, xmm0
pand xmm2, xmm6
movdqa xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rcx, rax
jne 0x140237e40
movq xmm0, qword [rdx + 0x380]
mov eax, dword [rdx + 0x388]
movq xmm1, qword [0x140292470]
mov ecx, dword [rdx + 0x38c]
movq xmm2, qword [0x140292480]
and eax, 0x80000000
pand xmm0, xmm1
and ecx, 0x7fffffff
movq xmm1, qword [rdx + 0x384]
or eax, ecx
pand xmm1, xmm2
mov ecx, eax
and eax, 1
por xmm0, xmm1
neg eax
shr ecx, 1
xor ecx, dword [rdx + 0x9bc]
movdqa xmm2, xmm0
and eax, 0x9908b0df
movq xmm1, qword [rdx + 0x9b4]
psrld xmm2, 1
xor eax, ecx
lea rcx, [rdx + 0x9bc]
pxor xmm1, xmm2
mov dword [rdx + 0x388], eax
movq xmm2, qword [0x140292490]
lea rax, [rdx + 0x38c]
pand xmm0, xmm2
pxor xmm2, xmm2
psubd xmm2, xmm0
movq xmm0, qword [0x1402924a0]
pand xmm0, xmm2
pxor xmm2, xmm2
pxor xmm1, xmm0
movq qword [rdx + 0x380], xmm1
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 4]
add rax, 0x10
movdqu xmm7, xmmword [rax - 0x39c]
pand xmm1, xmm4
pand xmm0, xmm3
por xmm0, xmm1
movdqa xmm1, xmm0
pand xmm0, xmm5
psrld xmm1, 1
pxor xmm1, xmm7
movdqa xmm7, xmm2
psubd xmm7, xmm0
pand xmm7, xmm6
movdqa xmm0, xmm7
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rcx, rax
jne 0x140237f43
mov eax, dword [rdx + 0x9bc]
mov ecx, dword [rdx]
mov qword [rdx + 0x9c0], 0
movups xmm6, xmmword [rsp]
movups xmm7, xmmword [rsp + 0x10]
and ecx, 0x7fffffff
and eax, 0x80000000
or eax, ecx
mov ecx, eax
and eax, 1
neg eax
shr ecx, 1
xor ecx, dword [rdx + 0x630]
and eax, 0x9908b0df
xor eax, ecx
mov dword [rdx + 0x9bc], eax
add rsp, 0x28
ret

Function at 0x140262b40
Capabilities:
Parse credit card information

Disassembly:
mov rax, qword [rcx + 0xb8]
cmp qword [rcx + 0xb0], rax
je 0x140262b80
mov eax, dword [rcx + 0x88]
test eax, eax
je 0x140262b68
cmp eax, 2
je 0x140262b70
cmp eax, 1
je 0x140262b78
ret
jmp fcn.140262cd0
jmp fcn.140263a80
jmp fcn.140263100
mov dword [rcx + 0x90], 0x1b
ret
Function at 0x140270800
Capabilities:
Encode data using xor

Disassembly:
mov r11, rdx
mov rax, rcx
mov r10, rdx
and r11, 0xfffffffffffffff8
add r11, rcx
movabs rcx, 0xc6a4a7935bd1e995
imul r10, rcx
xor r10, r8
cmp rax, r11
je 0x140270858
nop word cs:[rax + rax]
mov r9, qword [rax]
add rax, 8
imul r9, rcx
mov r8, r9
shr r8, 0x2f
xor r8, r9
imul r8, rcx
xor r8, r10
mov r10, r8
imul r10, rcx
cmp r11, rax
jne 0x140270830
and edx, 7
je 0x14027088d
sub edx, 1
movsxd rax, edx
xor edx, edx
nop dword [rax]
movzx ecx, byte [r11 + rax]
shl rdx, 8
sub rax, 1
add rdx, rcx
test eax, eax
jns 0x140270868
xor rdx, r10
movabs r10, 0xc6a4a7935bd1e995
imul r10, rdx
movabs rax, 0xc6a4a7935bd1e995
mov rdx, r10
shr rdx, 0x2f
xor rdx, r10
imul rdx, rax
mov rax, rdx
shr rax, 0x2f
xor rax, rdx
ret

Function at 0x14027b500
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ecx, 0x10
call fcn.1402798b0
lea rdx, str.Blob_read_out_of_range
mov rcx, rax
mov rbx, rax
call fcn.140218a10
lea r8, [0x140218b50]
lea rdx, [0x1402b35f0]
mov rcx, rbx
call fcn.140279f20
mov rsi, rax
mov rcx, rbx
call fcn.140279bc0
mov rcx, rsi
call fcn.1401157b0
nop
nop
nop
nop
nop
push rdi
push rsi
push rbx
sub rsp, 0x40
lea rbx, [0x1402fa020]
mov rcx, rbx
lea rdi, [rsp + 0x20]
lea rsi, [rsp + 0x30]
mov dword [rsp + 0x30], 0x61666564
mov rdx, rdi
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x33], 0x746c7561
mov qword [rsp + 0x28], 7
mov byte [rsp + 0x37], 0
call fcn.14022a0d0
mov rcx, qword [rsp + 0x20]
cmp rcx, rsi
je 0x14027b555
call fcn.140279780
lea rcx, [0x140047ca0]
call fcn.140001410
mov rcx, rbx
call fcn.14022a2d0
mov edx, 1
lea r8, [0x1402f9640]
mov dword [0x1402f9640], eax
mov ecx, eax
nop dword [rax]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
lea ecx, [rax + rdx]
mov dword [r8 + rdx*4], ecx
add rdx, 1
cmp rdx, 0x270
jne 0x14027b580
mov qword [0x1402fa000], 0x270
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
Function at 0x1400014a4
Capabilities:
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x1c0
lea rbp, [rsp + 0x80]
mov word [rbp + 0x13e], 0x202
movzx eax, word [rbp + 0x13e]
lea rdx, [rbp - 0x60]
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
jns 0x1400014f9
lea rax, str.bad_n
mov rcx, rax
call fcn.140001450
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov ecx, 1
call sub.msvcrt.dll_exit
nop
add rsp, 0x1c0
pop rbp
ret

Function at 0x14000154d
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov dword [rbp - 4], 0
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x10], rax
jmp 0x1400015c9
mov eax, dword [rbp + 0x20]
sub eax, dword [rbp - 4]
mov ecx, eax
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp + 0x10]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp - 0x14], eax
mov eax, dword [rbp - 0x14]
cdqe
add qword [rbp - 0x10], rax
mov eax, dword [rbp - 0x14]
add dword [rbp - 4], eax
cmp dword [rbp - 0x14], 0xffffffff
jne 0x1400015c9
mov rax, qword [rbp + 0x10]
lea rdx, str.no_data
mov rcx, rax
call fcn.140001503
mov eax, dword [rbp - 4]
cmp eax, dword [rbp + 0x20]
jl 0x140001579
mov eax, dword [rbp - 4]
add rsp, 0x40
pop rbp
ret

Function at 0x1400015da
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov r8d, 0
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0xffffffffffffffff
jne 0x140001620
mov rax, qword [rbp - 8]
lea rdx, [0x140009013]
mov rcx, rax
call fcn.140001503
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_gethostbyname]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000164e
mov rax, qword [rbp - 8]
lea rdx, [0x140009015]
mov rcx, rax
call fcn.140001503
mov rax, qword [rbp - 0x10]
movzx eax, word [rax + 0x12]
movsx rcx, ax
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x18]
mov rdx, qword [rax]
lea rax, [rbp - 0x20]
add rax, 4
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov word [rbp - 0x20], 2
mov eax, dword [rbp + 0x18]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp - 0x1e], ax
lea rax, [rbp - 0x20]
mov rcx, qword [rbp - 8]
mov r8d, 0x10
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
test eax, eax
je 0x1400016c4
mov rax, qword [rbp - 8]
lea rdx, [0x140009018]
mov rcx, rax
call fcn.140001503
mov rax, qword [rbp - 8]
add rsp, 0x40
pop rbp
ret