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

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c6b0
test ebx, ebx
jle 0x14001c6a0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.14001b550
test rax, rax
jne 0x14001c68d
add rsp, 0x20
pop rbx
ret

Function at 0x14001c7a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c818
test byte [rbx + 0x40], 0xc
jne 0x14001c7cf
mov eax, dword [0x140128658]
test eax, eax
jne 0x14001c7e0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001a720
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001c803
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001c803
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001c82c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001aa10
call fcn.14001b550
test rax, rax
mov rbx, rax
jne 0x14001c7bf
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001c84a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001aa10
call fcn.14001c6c0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001c8d0
call fcn.14001d9b0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001c908
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c960
test esi, esi
je 0x14001c8e6
call fcn.14001c7a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c940
mov edx, edi
call fcn.14001da60
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c950
call fcn.14001c7a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x14001c8a5
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c8be
call fcn.14001b550
jmp 0x14001c8e6
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a1
Function at 0x14001c860
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c818
test byte [rbx + 0x40], 0xc
jne 0x14001c7cf
mov eax, dword [0x140128658]
test eax, eax
jne 0x14001c7e0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001a720
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001c803
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001c803
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001c82c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001aa10
call fcn.14001b550
test rax, rax
mov rbx, rax
jne 0x14001c7bf
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001c84a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001aa10
call fcn.14001c6c0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001c8d0
call fcn.14001d9b0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001c908
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c960
test esi, esi
je 0x14001c8e6
call fcn.14001c7a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c940
mov edx, edi
call fcn.14001da60
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c950
call fcn.14001c7a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x14001c8a5
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c8be
call fcn.14001b550
jmp 0x14001c8e6
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a1

Function at 0x14001c970
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c9e0
test esi, esi
je 0x14001c9c0
call fcn.14001c7a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c9f0
mov edx, esi
call fcn.14001da60
call fcn.14001c7a0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001c7a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c7a0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001b550
mov rbx, rax
jmp 0x14001c991
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c9aa
Function at 0xa838f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.a838f1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0xa838f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xa838f06f
add dl, dl
jne 0xa838f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xa838f0f6
xor eax, eax
add dl, dl
jne 0xa838f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xa838f1ad
add dl, dl
jne 0xa838f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa838f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa838f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa838f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xa838f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xa838f07e
mov eax, 1
add dl, dl
jne 0xa838f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa838f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xa838f0fb
sub eax, ebx
mov ebx, 1
jne 0xa838f14c
mov ecx, 1
add dl, dl
jne 0xa838f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa838f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xa838f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xa838f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa838f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa838f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xa838f15d
cmp eax, 0x7d00
jae 0xa838f19b
cmp eax, 0x500
jb 0xa838f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xa838f07e
cmp eax, 0x7f
ja 0xa838f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xa838f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xa838f1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0xa838f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001de0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rax, qword [0x140059aa8]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp edx, 0xffffffff
je 0x140001f0c
mov esi, edx
mov rdi, rcx
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140001e3d
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax]
test ecx, ecx
jle 0x140001e3d
dec ecx
mov dword [rax], ecx
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax]
lea rdx, [rcx + 1]
mov qword [rax], rdx
mov byte [rcx], sil
jmp 0x140001f51
cmp qword [rdi + 0x80], 0
je 0x140001f10
mov rax, qword [rdi + 0x18]
lea rcx, [rdi + 0x70]
cmp qword [rax], rcx
jne 0x140001e77
mov ecx, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov qword [rax], rdx
mov rax, qword [rdi + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x140001f17
mov byte [rsp + 0x5f], sil
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x60]
lea rdx, [rdi + 0x74]
mov rbp, qword [rcx]
lea rbx, [rsp + 0x48]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea r15, [rsp + 0x60]
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r14, [rsp + 0x5f]
mov r8, r14
call qword [rbp + 0x38]
mov ebp, 0xffffffff
cmp eax, 2
jae 0x140001f30
mov rbx, qword [rsp + 0x48]
sub rbx, r15
je 0x140001efc
mov r9, qword [rdi + 0x80]
mov edx, 1
mov rcx, r15
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x140001f4f
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], r14
mov eax, 0xffffffff
jmp 0x140001f4a
xor esi, esi
jmp 0x140001f51
mov esi, 0xffffffff
jmp 0x140001f51
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
cmove esi, eax
jmp 0x140001f51
cmp eax, 3
jne 0x140001f4f
mov rdx, qword [rdi + 0x80]
movsx ecx, byte [rsp + 0x5f]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
cmove esi, eax
mov ebp, esi
mov esi, ebp
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140029cf0
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400023c0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x1400023fb
mov r14, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x140002403
mov rcx, rbx
mov rdx, rdi
mov r8, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
xor r14d, r14d
jmp 0x1400024f8
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002456
mov rax, qword [rbx + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x140002456
cmp r15, r14
cmovae r15, r14
mov rcx, rdi
mov r8, r15
call fcn.14002b030
add rdi, r15
mov rsi, r14
sub rsi, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [rbx + 0x80], 0
jne 0x140002467
jmp 0x1400024f5
mov rsi, r14
cmp qword [rbx + 0x80], 0
je 0x1400024f5
mov rax, qword [rbx + 0x18]
lea rcx, [rbx + 0x70]
cmp qword [rax], rcx
jne 0x140002493
mov ecx, dword [rbx + 0x90]
mov rdx, qword [rbx + 0x88]
mov qword [rax], rdx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rbx + 0x50]
mov dword [rax], ecx
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
nop word [rax + rax]
cmp rsi, 0x1000
jb 0x1400024d1
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call r15
add rdi, rax
sub rsi, rax
cmp rax, 0xfff
je 0x1400024a0
jmp 0x1400024f5
test rsi, rsi
je 0x1400024f3
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rsi, rax
jmp 0x1400024f5
xor esi, esi
sub r14, rsi
mov rax, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140002510
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r8
mov r14, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x140002546
mov rcx, rbx
mov rdx, r14
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140002590
test rsi, rsi
jle 0x140002590
mov rax, qword [rbx + 0x58]
mov edi, dword [rax]
test edi, edi
jle 0x140002590
cmp rdi, rsi
cmovae rdi, rsi
mov rdx, r14
mov r8, rdi
call fcn.14002b030
add r14, rdi
mov r15, rsi
sub r15, rdi
mov rax, qword [rbx + 0x58]
sub dword [rax], edi
mov rax, qword [rbx + 0x40]
add qword [rax], rdi
test r15, r15
jg 0x140002598
jmp 0x1400025b8
mov r15, rsi
test r15, r15
jle 0x1400025b8
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x1400025b8
mov edx, 1
mov rcx, r14
mov r8, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub r15, rax
sub rsi, r15
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400029b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x140059aa8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dil, 1
cmp qword [rcx + 0x68], 0
je 0x140002a5a
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x140002a5a
mov rax, qword [rsi]
mov rcx, rsi
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002a58
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x50]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
lea rbx, [rsp + 0x28]
mov qword [rsp + 0x20], rbx
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [rax + 0x40]
cmp eax, 3
je 0x140002a71
cmp eax, 1
je 0x140002a27
test eax, eax
jne 0x140002a58
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x140002a4e
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x140002a58
cmp byte [rsi + 0x71], 0
sete dil
jmp 0x140002a5a
xor edi, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140029cf0
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 0x71], 0
mov dil, 1
jmp 0x140002a5a
Function at 0x140003e20
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp], 0xfffffffffffffffe
mov r15d, edx
mov r14, rcx
lea rax, [0x1400313a0]
lea rcx, [0x140031390]
test dl, dl
cmovne rcx, rax
movups xmm0, xmmword [rcx]
movaps xmmword [rbp - 0x40], xmm0
lea r9, [0x140059b60]
lea rcx, [rbp - 0x40]
xor edx, edx
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x140003ebc
mov rbx, qword [0x140059b10]
mov rsi, rbx
nop word cs:[rax + rax]
mov rsi, qword [rsi]
cmp rsi, rbx
sete dil
je 0x140003f54
lea rdx, [rsi + 0x10]
lea r8, [rsi + 0x20]
mov rcx, r14
mov r9d, r15d
call fcn.1400031a0
test al, al
jne 0x140003e90
jmp 0x140003f54
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x18], eax
movabs rax, 0x2000000000000000
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp - 0x20]
mov qword [rbp - 0x28], rax
lea rax, str.Failed_to_get_System_folder__error:_
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], 0x26
lea rsi, [rbp - 0x60]
lea rdx, [rbp - 0x10]
lea r8, [rbp - 0x30]
mov rcx, rsi
call fcn.1400155e0
mov rcx, rsi
mov edx, 2
call fcn.1400250c0
mov rax, qword [rbp - 0x48]
cmp rax, 0x10
jb 0x140003f52
mov rcx, qword [rbp - 0x60]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140003f4d
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x140003f66
add rax, 0x28
mov rdx, rax
mov rcx, rbx
call fcn.140029c98
xor edi, edi
mov eax, edi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14000d670
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r14, rdx
mov rax, qword [0x140059aa8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov edi, dword [rdx]
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
lea r15, [rdx + rax*2]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], r15
movzx ecx, word [rdx]
mov dword [rsp + 0x40], ecx
cmp ecx, 0xd7ff
ja 0x14000d71e
add rdx, 2
mov rbp, rdx
mov qword [rsp + 0x38], rbp
mov byte [rsp + 0x48], 0
test rax, rax
je 0x14000d740
xor esi, esi
lea rbx, [rsp + 0x28]
jmp 0x14000d6f6
mov rcx, rbx
call fcn.14000db50
mov rax, qword [rsp + 0x28]
mov esi, ebp
cmp rax, qword [rsp + 0x30]
je 0x14000d765
test edi, edi
js 0x14000d6fe
cmp esi, edi
je 0x14000d75d
mov ecx, dword [rsp + 0x40]
call fcn.14000d9f0
mov ebp, eax
xor eax, 0x7fffffff
cmp eax, esi
jl 0x14000d761
add ebp, esi
test edi, edi
js 0x14000d6e0
cmp ebp, edi
jle 0x14000d6e0
jmp 0x14000d765
cmp ecx, 0xdbff
ja 0x14000d744
cmp rax, 1
jne 0x14000d78a
mov dword [rsp + 0x40], 0xfffd
mov qword [rsp + 0x38], r15
mov byte [rsp + 0x48], 0
jmp 0x14000d6ca
xor esi, esi
jmp 0x14000d765
cmp ecx, 0xdfff
ja 0x14000d6b4
mov dword [rsp + 0x40], 0xfffd
jmp 0x14000d6b4
mov esi, edi
jmp 0x14000d765
test edi, edi
js 0x14000d7b0
mov dword [r14], esi
mov r15, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140029cf0
mov rax, r15
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rbp, [rdx + 2]
movzx ebx, word [rbp]
add ebx, 0x2000
movzx ebx, bx
cmp ebx, 0xfbff
ja 0x14000d7b9
mov dword [rsp + 0x40], 0xfffd
jmp 0x14000d6bb
mov dword [r14], 0x7fffffff
jmp 0x14000d76d
shl ecx, 0xa
movzx ebp, word [rdx + 2]
add ecx, ebp
add ecx, 0xfca02400
mov dword [rsp + 0x40], ecx
add rdx, 4
jmp 0x14000d6b8
Function at 0x140021e60
Capabilities:
Suspend thread

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov rax, qword [rdx]
mov r8d, dword [rax + 0x30]
mov ecx, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenThread]
test rax, rax
je 0x140021ec3
mov rdi, rax
cmp byte [rsi + 0x10], 0
je 0x140021e9f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x140021eba
cmp byte [rsi + 0x10], 0
jne 0x140021ead
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Wow64SuspendThread]
cmp eax, 0xffffffff
je 0x140021eba
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140021ecc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsi + 8]
mov byte [rax], 0
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x140021f10
Capabilities:
Resume thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rax, qword [rdx]
mov r8d, dword [rax + 0x30]
mov ecx, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenThread]
test rax, rax
je 0x140021f51
mov rdi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
cmp ebx, 0xffffffff
jne 0x140021f5a
mov rax, qword [rsi + 8]
mov byte [rax], 0
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x140021fa0
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x270
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1e8], 0xfffffffffffffffe
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov r12, rcx
mov dword [rsp + 0x20], 0
lea rcx, str.KidQuery
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WININET.dll_InternetOpenW]
test rax, rax
je 0x140022197
mov r15, rax
mov qword [rsp + 0x38], 1
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
mov rcx, rax
mov rdx, rsi
mov r8w, 0x1bb
xor r9d, r9d
call qword [sym.imp.WININET.dll_InternetConnectW]
test rax, rax
je 0x140022146
mov r14, rax
movaps xmm0, xmmword [0x14002f730]
movaps xmmword [rbp + 0x1c0], xmm0
lea rax, [rbp + 0x1c0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], 1
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x20], 0
mov rcx, r14
mov rdx, rdi
mov r8, rbx
xor r9d, r9d
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
test rax, rax
je 0x140022170
mov rbx, rax
mov rsi, qword [rbp + 0x250]
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov dword [rsp + 0x20], eax
lea rdx, str.Content_Type:_application_x_www_form_urlencoded
mov rcx, rbx
mov r8d, 0x2f
mov r9, rsi
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x140022181
lea rdi, [rbp - 0x40]
mov r8d, 0x200
mov rcx, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x1e4], 0
xorps xmm0, xmm0
movups xmmword [r12], xmm0
mov qword [rbp + 0x1d8], r12
mov qword [r12 + 0x10], 0
lea r12, [rbp + 0x1e4]
mov rsi, qword [sym.imp.WININET.dll_InternetReadFile]
nop word cs:[rax + rax]
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x1ff
mov r9, r12
call rsi
test eax, eax
je 0x140022151
mov r9d, dword [rbp + 0x1e4]
test r9d, r9d
je 0x140022151
mov rcx, qword [rbp + 0x1d8]
mov rdx, qword [rcx + 8]
mov r8, rdi
call fcn.140022230
jmp 0x140022110
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140022197
mov rsi, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call rsi
mov rcx, r14
call rsi
mov rcx, rbx
call rsi
mov r12, qword [rbp + 0x1d8]
jmp 0x1400221a8
mov rsi, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call rsi
mov rcx, r14
jmp 0x140022195
mov rsi, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call rsi
mov rcx, r14
call rsi
mov rcx, rbx
call rsi
xorps xmm0, xmm0
movups xmmword [r12], xmm0
mov qword [r12 + 0x10], 0
mov rax, r12
add rsp, 0x270
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
Function at 0x1400227f0
Capabilities:
Create process on windows

Disassembly:
push rbp
push rsi
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
call fcn.140022d80
test al, al
je 0x1400228ec
lea rcx, str.cs2.exe
call fcn.140024100
test eax, eax
jne 0x1400228e2
mov dword [rsp + 0x28], 0xa
mov qword [rsp + 0x20], 0
lea rdx, str.open
lea r8, str.steam:__rungameid_730
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x20
call fcn.140029c54
mov qword [rbp - 0x20], rax
movaps xmm0, xmmword [0x14002f780]
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], 0x1f
movups xmm0, xmmword [str.Started_game__now_waiting...]
movups xmmword [rax], xmm0
movups xmm0, xmmword [0x14004efeb]
movups xmmword [rax + 0xc], xmm0
mov byte [rax + 0x1c], 0
lea rcx, [rbp - 0x20]
xor edx, edx
call fcn.1400250c0
mov rax, qword [rbp - 8]
cmp rax, 0x10
jb 0x1400228d1
mov rcx, qword [rbp - 0x20]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1400228cc
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x1400228f5
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.140029c98
lea rcx, str.cs2.exe
mov edx, 0x32
call fcn.140024be0
mov rcx, rsi
call fcn.140022ef0
jmp 0x1400228ee
xor eax, eax
add rsp, 0x58
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3

Function at 0x140024100
Capabilities:
Enumerate processes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x268
mov rdi, rcx
mov rax, qword [0x140059aa8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov dword [rsp + 0x28], 0x238
xor r14d, r14d
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
je 0x1400241c0
mov rbx, rax
lea rdx, [rsp + 0x28]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1400241b7
lea r15, [rsp + 0x54]
mov r13, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov r12, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rbp, [rsp + 0x28]
jmp 0x14002418f
mov rcx, rbx
mov rdx, rbp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x1400241b7
mov rcx, rdi
mov rdx, r15
call r13
test eax, eax
jne 0x140024180
mov esi, dword [rsp + 0x30]
call r12
cmp esi, eax
je 0x140024180
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14d, dword [rsp + 0x30]
jmp 0x1400241c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140029cf0
mov eax, r14d
add rsp, 0x268
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret