joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021980
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1400ab980]
mov edi, ecx
cmp byte [rbx + 0x4a9d], 0
jne 0x1400219e1
cmp byte [rbx + 0x4a9e], 0
jne 0x1400219e1
movsx r9d, word [rbx + 0x5bc2]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140010520
test dil, 1
je 0x140021b0f
jmp 0x140021a69
vmovss xmm1, dword [rbx + 0x389c]
vmovss xmm0, dword [0x14006bfa4]
vfmadd213ss xmm0, xmm1, dword [rbx + 0xe0c]
vmovss xmm2, dword [0x14006bfbc]
vfmadd213ss xmm2, xmm1, dword [rbx + 0xe08]
movsx r9d, word [rbx + 0x5bc2]
lea r8, str.Tooltip__02d
xor eax, eax
mov dword [rbx + 0x47d4], 1
vmovss dword [rbx + 0x47e0], xmm2
vmovss dword [rbx + 0x47e4], xmm0
mov qword [rbx + 0x47e8], rax
lea rcx, [rsp + 0x20]
vmovss xmm0, dword [rbx + 0x3904]
vmulss xmm1, xmm0, dword [0x14006bef4]
or dword [rbx + 0x47d0], 0x41
lea edx, [rax + 0x10]
vmovss dword [rbx + 0x4830], xmm1
call fcn.140010520
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140021ac0
lea r11, [0x140065130]
nop dword [rax]
cmp r9b, 0x23
jne 0x140021aa3
cmp byte [r8], r9b
jne 0x140021aa3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140021a90
not ecx
call fcn.1400186f0
test rax, rax
je 0x140021b0f
cmp byte [rax + 0xb6], 0
je 0x140021b0f
mov byte [rax + 0xbb], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xbd], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xd8], 1
mov edx, 0x10
inc word [rbx + 0x5bc2]
movsx r9d, word [rbx + 0x5bc2]
call fcn.140010520
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14001af30
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14005f3c0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400279a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5ca8], 0
lea rbx, [rcx + 0x5cb0]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140027a47
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x1400279fa
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140029db0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.1400110b0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5ca8]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5cb8]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400ab90c]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x140027a4f
mov rcx, rbx
call fcn.1400110b0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140027ec0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1400ab980]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140027f23
mov qword [rsp], rbx
lea rbx, [0x140065130]
nop dword [rax]
cmp r9b, 0x23
jne 0x140027f03
cmp byte [r8], r9b
jne 0x140027f03
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x140027ef0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5c20]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x140027f57
mov r10, qword [r10 + 0x5c28]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x140027f5e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x140027f44
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x140055570
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x28
test dword [rcx + 0x10], 0x100000
je 0x1400555f2
mov r10d, 0xffffffff
lea r8, [0x140069881]
mov eax, r10d
lea r11, [0x140065130]
mov r9b, 0x50
cmp r9b, 0x23
jne 0x1400555aa
cmp byte [r8], r9b
jne 0x1400555aa
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140055597
mov rcx, qword [0x1400ab980]
not eax
cmp dword [rcx + 0x3f58], eax
jne 0x1400555de
mov dword [rcx + 0x3f5c], eax
cmp dword [rcx + 0x3f88], eax
jne 0x140055657
mov byte [rcx + 0x3f8c], 1
add rsp, 0x28
ret
mov rax, qword [0x1400ab980]
lea rcx, str.Pvp_Config
mov qword [rsp + 0x30], rbx
xor edx, edx
mov qword [rsp + 0x20], rdi
mov rbx, qword [rax + 0x3ef8]
movsxd rax, dword [rbx + 0xf0]
mov r8, qword [rbx + 0xf8]
mov r8d, dword [r8 + rax*4 - 4]
call fcn.1400106c0
mov rcx, qword [rbx]
mov edi, eax
mov rbx, qword [rsp + 0x30]
cmp dword [rcx + 0x3f40], eax
jne 0x140055650
lea r8, str.Pvp_Config
mov edx, 0xb
mov ecx, eax
call fcn.140029090
mov eax, edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret

Function at 0x14005f1b0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14005f234
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140063a20]
cmp byte [rcx + rax], 0
je 0x14005f234
dec r8
sub rdx, 1
jne 0x14005f21a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140060094
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400600de
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400600de
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400600de
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400600de
cmp dword [rcx + 0x84], 0xe
jbe 0x1400600de
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400600e0
xor al, al
add rsp, 0x28
ret
Function at 0x141ae7058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x141ae71df
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 0x141ae7089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141ae706f
add dl, dl
jne 0x141ae7096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141ae70f6
xor eax, eax
add dl, dl
jne 0x141ae70a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141ae71ad
add dl, dl
jne 0x141ae70b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141ae70c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141ae70d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141ae70dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141ae70ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141ae707e
mov eax, 1
add dl, dl
jne 0x141ae7106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141ae7113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141ae70fb
sub eax, ebx
mov ebx, 1
jne 0x141ae714c
mov ecx, 1
add dl, dl
jne 0x141ae712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141ae713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141ae7123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141ae707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141ae7168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141ae7175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141ae715d
cmp eax, 0x7d00
jae 0x141ae719b
cmp eax, 0x500
jb 0x141ae7196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141ae707e
cmp eax, 0x7f
ja 0x141ae719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141ae707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141ae71d2
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 0x141ae707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400425c0
Capabilities:
Write file on windows

Disassembly:
movsxd rax, dword [rcx - 4]
sub rcx, rax
jmp 0x1400425c0
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov r15, r8
mov rsi, rcx
lea rax, [rcx - 0x28]
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x48], 0
lea rcx, [rsp + 0x40]
call fcn.140035250
nop
mov r14b, 1
xor r12d, r12d
mov dword [rsp + 0x90], r12d
mov ebx, r12d
nop dword [rax]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x90]
mov r8d, 8
lea rdx, [rsp + 0x98]
mov rcx, qword [rsi - 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
inc ebx
cmp ebx, 0x3e8
jg 0x140042674
mov eax, 0x66666667
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*4]
add ecx, ecx
cmp ebx, ecx
jne 0x140042666
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0x90]
cmp eax, 8
jne 0x140042610
jmp 0x14004267b
mov eax, dword [rsp + 0x90]
test edi, edi
je 0x140042735
cmp eax, 8
jne 0x140042735
mov edi, dword [rsp + 0x98]
mov dword [rsp + 0xa8], r12d
mov ebx, r12d
nop
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0xa8]
mov r8d, edi
mov rdx, r15
mov rcx, qword [rsi - 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, eax
inc ebx
cmp ebx, 0x3e8
jg 0x1400426fb
mov eax, 0x66666667
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*4]
add ecx, ecx
cmp ebx, ecx
jne 0x1400426ee
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0xa8]
cmp edi, eax
jne 0x1400426a0
jmp 0x140042702
mov eax, dword [rsp + 0xa8]
test ebp, ebp
je 0x140042726
cmp edi, eax
jne 0x140042726
lea rdx, [0x140042390]
lea rcx, [rsp + 0x30]
call fcn.140030fd0
mov rax, qword [rsp + 0x30]
mov qword [rsi - 0x48], rax
jmp 0x14004274c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Blob_WriteFile_failed__GLE_d._n
jmp 0x140042742
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Header_WriteFile_failed__GLE_d._n
mov edx, eax
call fcn.14003e9e0
xor r14b, r14b
cmp byte [rsp + 0x48], 0
je 0x14004275d
mov rcx, qword [rsp + 0x40]
call fcn.14003dee0
movzx eax, r14b
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140042800
Capabilities:
Read file on windows

Disassembly:
movsxd rax, dword [rcx - 4]
sub rcx, rax
jmp 0x140042800
push rbx
push rsi
push r12
sub rsp, 0x40
lea rsi, [rcx - 0xe4]
xor r12d, r12d
mov rbx, rcx
mov dword [rsi + 4], 0xffffffff
mov dword [rsi], r12d
lea r9, [rsp + 0x68]
mov rcx, qword [rcx - 0x38]
mov rdx, rsi
lea r8d, [r12 + 8]
mov dword [rsp + 0x68], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140042966
cmp dword [rsp + 0x68], r12d
je 0x140042966
mov qword [rsp + 0x70], rbp
lea rcx, [rbx - 0xf8]
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x38], r14
mov r14d, dword [rsi]
mov edx, r14d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x60], r12d
call fcn.140041f40
movzx ebp, al
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rbx - 0xf0]
lea r9, [rsp + 0x60]
mov rcx, qword [rbx - 0x38]
mov r8d, r14d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test eax, eax
je 0x1400428bb
cmp dword [rsp + 0x60], r12d
jne 0x1400428c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14004293e
test edi, edi
jne 0x1400428e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1400428e4
mov eax, dword [rsp + 0x60]
add qword [rbx - 0xf0], rax
jmp 0x140042890
test bpl, bpl
je 0x140042938
lea rdx, [0x140042390]
lea rcx, [rsp + 0x60]
call fcn.140030fd0
mov rax, qword [rsp + 0x60]
lea rcx, [rbx - 0xf8]
mov r8, qword [rbx - 0xf0]
mov r9, rsi
mov edx, dword [rsi]
mov qword [rbx - 0x40], rax
call fcn.140041960
mov r14, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
mov r15, qword [rsp + 0x30]
add rsp, 0x40
pop r12
pop rsi
pop rbx
ret
movzx eax, bpl
jmp 0x14004291b
lea rcx, str.Pipe_Broke._n
call fcn.14003e9e0
test edi, edi
jne 0x140042962
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Read_header_failed._GLE_d_n
call fcn.14003e9e0
xor al, al
jmp 0x14004291b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x140042988
lea rcx, str.Pipe_Broke._n
call fcn.14003e9e0
xor al, al
add rsp, 0x40
pop r12
pop rsi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ReadFile_failed__GLE_d._n
call fcn.14003e9e0
xor al, al
add rsp, 0x40
pop r12
pop rsi
pop rbx
ret

Function at 0x140053ae0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x140053b3f
mov rax, qword [rcx + 8]
add rcx, 8
movsxd r8, dword [rax + 4]
add rcx, r8
mov rax, qword [rcx]
call qword [rax + 0x20]
test al, al
je 0x140053b3f
lea rcx, [rbx + 0x48]
call fcn.14007bb30
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rdx, qword [rbx + 0x40]
mov rax, qword [rdx + 8]
add rdx, 8
movsxd rcx, dword [rax + 4]
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rdx, rdi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.Qt5Widgets.dll_protected_virtual:_void___cdecl_QWidget::closeEvent_class_QCloseEvent____ptr64____ptr64]
Function at 0x140058de0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x50
lea rbp, [rsp + 0x20]
mov qword [rbp], 0xfffffffffffffffe
mov qword [rbp + 0x58], rbx
mov qword [rbp + 0x60], rsi
mov rax, qword [0x1401f00d0]
xor rax, rbp
mov qword [rbp + 0x28], rax
mov r14, rcx
add rcx, 0x180
cmp qword [rcx + 0x18], 0x10
jb 0x140058e20
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
lea r8, str.IOM_VERSION
mov edx, 0x3e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x140058f65
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x140058f65
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r9, rax
lea ecx, [rbx + 1]
mov edx, ecx
lea rax, [rcx + 0xf]
cmp rax, rdx
ja 0x140058e94
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140097980
sub rsp, rax
lea rdi, [rsp + 0x20]
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rdi], 0
mov qword [rbp + 0x20], 0xf
xor r8d, r8d
mov qword [rbp + 0x18], r8
mov byte [rbp + 8], r8b
cmp byte [rdi], r8b
je 0x140058edd
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], 0
jne 0x140058ed3
mov rdx, rdi
lea rcx, [rbp + 8]
call fcn.140011e80
nop
lea rcx, [r14 + 0x160]
lea rax, [rbp + 8]
cmp rcx, rax
je 0x140058f0b
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 8]
call fcn.140011d50
nop
mov rax, qword [rbp + 0x20]
cmp rax, 0x10
jb 0x140058f65
inc rax
mov rcx, qword [rbp + 8]
cmp rax, 0x1000
jb 0x140058f60
test cl, 0x1f
je 0x140058f30
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140058f40
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140058f50
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140058f5d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140097204
mov rcx, qword [rbp + 0x28]
xor rcx, rbp
call fcn.140097900
mov rbx, qword [rbp + 0x58]
mov rsi, qword [rbp + 0x60]
lea rsp, [rbp + 0x30]
pop r14
pop rdi
pop rbp
ret
Function at 0x140072c30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
movzx ebx, r8b
mov rdi, rdx
mov rsi, rcx
mov r11, qword [rcx]
mov r10, qword [r11 + 8]
mov r8b, 1
nop dword [rax]
cmp byte [r10 + 0x19], 0
jne 0x140072cd0
mov r11, r10
test bl, bl
je 0x140072c9a
mov rax, qword [r10 + 0x20]
mov rcx, qword [r9]
cmp rax, rcx
jae 0x140072c7f
mov r8b, 1
jmp 0x140072c94
jbe 0x140072c86
xor r8b, r8b
jmp 0x140072c94
movzx eax, word [r9 + 8]
cmp word [r10 + 0x28], ax
setl r8b
xor r8b, 1
jmp 0x140072cc0
mov rax, qword [r9]
mov rcx, qword [r10 + 0x20]
cmp rax, rcx
jae 0x140072cab
mov r8b, 1
jmp 0x140072cc0
jbe 0x140072cb2
xor r8b, r8b
jmp 0x140072cc0
movzx eax, word [r10 + 0x28]
cmp word [r9 + 8], ax
setl r8b
test r8b, r8b
je 0x140072cca
mov r10, qword [r10]
jmp 0x140072cce
mov r10, qword [r10 + 0x10]
jmp 0x140072c60
mov rax, r11
mov qword [rsp + 0x30], rax
test r8b, r8b
je 0x140072d76
mov rcx, qword [rsi]
cmp r11, qword [rcx]
jne 0x140072d1f
movzx eax, byte [rsp + 0x80]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r9
mov r9, r11
mov r8b, 1
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140072690
mov rcx, qword [rax]
mov qword [rdi], rcx
mov byte [rdi + 8], 1
mov rax, rdi
jmp 0x140072dce
cmp byte [r11 + 0x19], 0
je 0x140072d2c
mov rax, qword [r11 + 0x10]
jmp 0x140072d71
mov rcx, qword [r11]
cmp byte [rcx + 0x19], 0
jne 0x140072d50
mov rax, rcx
nop dword [rax + rax]
mov rcx, qword [rax + 0x10]
cmp byte [rcx + 0x19], 0
jne 0x140072d71
mov rax, rcx
jmp 0x140072d40
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x19], 0
jne 0x140072d69
cmp rax, qword [rcx]
jne 0x140072d69
mov rax, rcx
mov qword [rsp + 0x30], rcx
jmp 0x140072d50
cmp byte [rax + 0x19], 0
cmove rax, rcx
mov qword [rsp + 0x30], rax
mov rcx, qword [rax + 0x20]
mov rdx, qword [r9]
cmp rcx, rdx
jb 0x140072da0
ja 0x140072d94
movzx ecx, word [r9 + 8]
cmp word [rax + 0x28], cx
setl cl
test cl, cl
jne 0x140072da0
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov rax, rdi
jmp 0x140072dce
movzx eax, byte [rsp + 0x80]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r9
mov r9, r11
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140072690
mov rcx, qword [rax]
mov qword [rdi], rcx
mov byte [rdi + 8], 1
mov rax, rdi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140074050
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
movzx ebx, r8b
mov rsi, rdx
mov rdi, rcx
mov r11, qword [rcx]
mov r10, qword [r11 + 8]
mov r8b, 1
nop dword [rax]
cmp byte [r10 + 0x19], 0
jne 0x14007412f
mov r11, r10
test bl, bl
je 0x1400740df
mov r8, qword [r9]
mov rax, qword [r10 + 0x20]
cmp rax, r8
jne 0x1400740a3
xor r8b, r8b
jmp 0x1400740d9
mov rax, qword [rax + 0x10]
mov r8, qword [r8 + 0x10]
cmp rax, r8
jne 0x1400740b5
xor r8b, r8b
jmp 0x1400740d9
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400740d3
inc rax
test ecx, ecx
jne 0x1400740c0
test edx, edx
sets r8b
xor r8b, 1
jmp 0x140074119
mov r8, qword [r10 + 0x20]
mov rcx, qword [r9]
cmp rcx, r8
je 0x140074123
mov rcx, qword [rcx + 0x10]
mov r8, qword [r8 + 0x10]
cmp rcx, r8
je 0x140074123
sub r8, rcx
nop dword [rax + rax]
movzx edx, byte [rcx]
movzx eax, byte [rcx + r8]
sub edx, eax
jne 0x140074113
inc rcx
test eax, eax
jne 0x140074100
test edx, edx
sets r8b
test r8b, r8b
je 0x140074126
mov r10, qword [r10]
jmp 0x14007412a
xor r8b, r8b
mov r10, qword [r10 + 0x10]
jmp 0x140074080
movzx eax, byte [rsp + 0x70]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r9
mov r9, r11
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140073d80
mov rcx, qword [rax]
mov qword [rsi], rcx
mov byte [rsi + 8], 1
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14007bcd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov ecx, dword [0x1401efda0]
cmp ecx, 0xffffffff
jne 0x14007bcf8
xor esi, esi
jmp 0x14007bd01
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x40], rsi
test rsi, rsi
je 0x14007bdf3
nop
mov rbx, qword [rsi + 0x18]
cmp qword [rsi + 0x30], 0
jne 0x14007bd26
test rbx, rbx
je 0x14007bdcc
jmp 0x14007bd30
test rbx, rbx
je 0x14007bd84
nop dword [rax + rax]
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x14007bd67
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 0x14007bd30
cmp qword [rsi + 0x30], 0
je 0x14007bd10
nop dword [rax + rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14007bdaf
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x14007bdaf
mov rax, qword [rcx]
call qword [rax + 8]
mov r8, rbx
lea rdx, [rsp + 0x48]
lea rcx, [rsi + 0x28]
call fcn.140054360
cmp qword [rsi + 0x30], 0
jne 0x14007bd90
jmp 0x14007bd10
lea rdx, [0x14007b660]
lea rcx, [0x14020b1f0]
call fcn.14007b440
mov ecx, dword [0x1401efda0]
cmp ecx, 0xffffffff
je 0x14007bdf3
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x14007be23
or eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x14007be23
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]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14007be40
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r9, qword [rcx]
lea r8, [0x14007bed0]
mov rdi, rcx
xor edx, edx
xor ecx, ecx
lea rax, [r9 + 0x20]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rsi, rax
test rax, rax
jne 0x14007be85
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x40], rbx
mov rax, qword [rdi]
lock inc dword [rax + 8]
mov rbx, qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14007bea8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rsi
mov rcx, qword [rdi]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rsp + 0x40]
mov al, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret