joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003140
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000c010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000316d
xor eax, eax
jmp 0x1400032ca
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140003198
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140003198
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x1400032ca
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400032bd
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1400031db
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140003206
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400032c2
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003275
sub eax, 1
je 0x140003275
cmp eax, 2
jne 0x1400032bd
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400032c2
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400032a3
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400032bd
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400032c2
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140005780
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400043f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000c010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400044c3
cmp byte [rcx + 0x71], 0
je 0x1400044c3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400044bf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140004484
sub eax, 1
je 0x140004488
cmp eax, 2
jne 0x1400044bf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005780
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400044b6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400044bf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000446c
xor al, al
jmp 0x14000446c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005780
add rsp, 0x60
pop rbx
ret

Function at 0x1400061e4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000622e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000622e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000622e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000622e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000622e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006230
xor al, al
add rsp, 0x28
ret
Function at 0x1400011e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x13c0
call fcn.140004520
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
mov edi, edx
mov ebx, ecx
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov r9d, 1
mov dword [rsp + 0x24], eax
mov r10d, 0x270
nop
mov r8d, eax
shr r8d, 0x1e
xor r8d, eax
imul eax, r8d, 0x6c078965
add eax, r9d
mov dword [rsp + r9*4 + 0x24], eax
inc r9
cmp r9, r10
jb 0x140001230
lea eax, [rbx - 0x80000000]
mov dword [rsp + 0x20], r10d
mov edx, 0x80000000
lea ecx, [rdi - 1]
cmp ebx, edx
lea esi, [rbx + rdx]
cmovae esi, eax
lea ebx, [rcx + rdx]
cmp ecx, edx
lea eax, [rcx - 0x80000000]
cmovae ebx, eax
sub ebx, esi
cmp ebx, 0xffffffff
jne 0x140001307
lea r8, [rsp + 0x28]
nop word [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140001290
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + rax*4 + 0x24]
mov eax, ecx
shr eax, 0xb
and eax, dword [rsp + 0x13a4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
add eax, 0x80000000
add eax, esi
jmp 0x140001350
lea rcx, [rsp + 0x20]
inc ebx
call fcn.140003430
mov ecx, eax
mov edi, ebx
imul rcx, rdi
cmp ecx, ebx
jae 0x140001344
mov eax, ebx
xor edx, edx
neg eax
div ebx
mov ebx, edx
cmp ecx, edx
jae 0x140001344
nop dword [rax]
lea rcx, [rsp + 0x20]
call fcn.140003430
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jb 0x140001330
shr rcx, 0x20
lea eax, [rsi - 0x80000000]
add eax, ecx
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.140003600
lea r11, [rsp + 0x13c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140003430
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140003491
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140003450
mov ecx, dword [r9]
jmp 0x14000357b
cmp ecx, 0x4e0
jb 0x14000357b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1400034b0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140003500
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x140004050
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd rbx, r8d
mov rdi, r9
mov eax, ebx
mov rsi, rdx
and eax, 0x80000007
jge 0x140002fa8
dec eax
or eax, 0xfffffff8
inc eax
test eax, eax
jne 0x14000301a
mov rcx, rbx
mov qword [rsp + 0x30], r14
mov dword [r9], ebx
call fcn.1400c8f4c
mov r9, rax
test ebx, ebx
jle 0x140002fe0
mov rdx, rax
sub rsi, rax
mov r8, rbx
nop dword [rax]
movzx ecx, byte [rsi + rdx]
mov byte [rdx], cl
lea rdx, [rdx + 1]
sub r8, 1
jne 0x140002fd0
cmp ebx, dword [rdi]
jge 0x140003002
lea rcx, [rbx + rax]
lea rdx, [rcx - 1]
nop dword [rax]
movzx eax, byte [rdx]
lea rcx, [rcx + 1]
xor al, 0xcc
inc ebx
mov byte [rcx - 1], al
cmp ebx, dword [rdi]
jl 0x140002ff0
mov r14, qword [rsp + 0x30]
mov rax, r9
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea rdx, [0x1400f9168]
mov dword [rsp + 0x50], 8
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140003040
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rdi
sub rsp, 0x78
mov rbx, r9
mov byte [0x140105528], 0
mov qword [rsp + 0x48], rbx
call fcn.140002f80
mov r9, rax
mov qword [rsp + 0x38], rax
movzx ecx, byte [rax]
mov byte [0x140105534], cl
movzx ecx, byte [rax + 1]
mov byte [0x140105535], cl
movzx ecx, byte [rax + 2]
mov byte [0x140105536], cl
movzx ecx, byte [rax + 3]
mov byte [0x140105537], cl
movzx ecx, byte [rax + 4]
mov byte [0x140105538], cl
movzx ecx, byte [rax + 5]
mov byte [0x140105539], cl
movzx ecx, byte [rax + 6]
mov byte [0x14010553a], cl
movzx eax, byte [rax + 7]
mov byte [0x14010553b], al
mov eax, 8
mov ecx, dword [rbx]
mov dword [rsp + 0x30], eax
cmp ecx, eax
jle 0x1400031f9
mov qword [rsp + 0x90], rbp
lea rdx, [r9 + 0xa]
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x40], rdx
nop
movzx ebx, byte [rdx - 2]
lea rcx, [0x140105528]
movzx edi, byte [rdx - 1]
mov r8d, eax
movzx esi, byte [rdx]
movzx ebp, byte [rdx + 1]
movzx r14d, byte [rdx + 2]
movzx r15d, byte [rdx + 3]
movzx r12d, byte [rdx + 4]
movzx r13d, byte [rdx + 5]
mov rdx, r9
call fcn.140003280
movzx eax, byte [0x140105534]
mov rdx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x38]
xor byte [rdx - 2], al
movzx eax, byte [0x140105535]
mov byte [0x140105534], bl
xor byte [rdx - 1], al
movzx eax, byte [0x140105536]
mov rbx, qword [rsp + 0x48]
mov byte [0x140105535], dil
xor byte [rdx], al
movzx eax, byte [0x140105537]
mov byte [0x140105536], sil
xor byte [rdx + 1], al
movzx eax, byte [0x140105538]
mov byte [0x140105537], bpl
xor byte [rdx + 2], al
movzx eax, byte [0x140105539]
mov byte [0x140105538], r14b
xor byte [rdx + 3], al
movzx eax, byte [0x14010553a]
mov byte [0x140105539], r15b
xor byte [rdx + 4], al
movzx eax, byte [0x14010553b]
mov byte [0x14010553a], r12b
xor byte [rdx + 5], al
add rdx, 8
mov eax, dword [rsp + 0x30]
add eax, 8
mov byte [0x14010553b], r13b
mov ecx, dword [rbx]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x40], rdx
cmp eax, ecx
jl 0x1400030f0
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x90]
movsxd rax, ecx
lea rdx, [r9 - 1]
movzx r10d, byte [rax + r9 - 1]
movsxd rax, ecx
add rdx, rax
nop dword [rax]
movsxd r8, ecx
lea rdx, [rdx - 1]
dec ecx
cmp byte [rdx], r10b
je 0x140003210
lea eax, [rcx - 8]
lea rcx, [r8 - 9]
mov dword [rbx], eax
call fcn.1400c8f4c
xor r8d, r8d
mov rdi, rax
mov rax, qword [rsp + 0x38]
cmp dword [rbx], r8d
jle 0x140003264
mov r9, rax
mov rcx, rdi
sub r9, rdi
nop word [rax + rax]
movzx edx, byte [r9 + rcx + 8]
inc r8d
mov byte [rcx], dl
lea rcx, [rcx + 1]
cmp r8d, dword [rbx]
jl 0x140003250
mov rcx, rax
call fcn.1400c8f00
mov rax, rdi
add rsp, 0x78
pop rdi
pop rbx
ret
Function at 0x140003840
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov eax, dword [0x14010552c]
lea rdi, [0x140000000]
xor eax, dword [0x1400fef60]
mov ebx, 8
mov r10d, dword [0x140105530]
lea r11d, [rbx - 6]
nop dword [rax]
mov r9d, eax
shr rax, 0x10
movzx ecx, al
mov eax, r9d
shr rax, 0x18
mov r8d, dword [rdi + rcx*4 + 0xff390]
add r8d, dword [rdi + rax*4 + 0xfeb60]
mov eax, r9d
shr rax, 8
movzx ecx, al
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0xff790]
add r8d, dword [rdi + rax*4 + 0xfe760]
lea eax, [r11 - 1]
xor r8d, dword [rdi + rax*4 + 0xfef60]
xor r8d, r10d
mov eax, r8d
shr rax, 0x10
movzx edx, al
mov ecx, r8d
shr rcx, 0x18
mov r10d, r8d
mov eax, dword [rdi + rdx*4 + 0xff390]
add eax, dword [rdi + rcx*4 + 0xfeb60]
mov ecx, r8d
shr rcx, 8
movzx edx, cl
movzx ecx, r8b
xor eax, dword [rdi + rdx*4 + 0xff790]
add eax, dword [rdi + rcx*4 + 0xfe760]
mov ecx, r11d
add r11d, 2
xor eax, dword [rdi + rcx*4 + 0xfef60]
xor eax, r9d
sub rbx, 1
jne 0x140003870
xor r10d, dword [0x1400fefa4]
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov dword [0x14010552c], r10d
mov dword [0x140105530], eax
ret

Function at 0x1400070a0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1400070fd
lea rbx, [0x1400e2550]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400070e4
cmp r10, 2
jb 0x1400070e4
cmp byte [r9], r8b
jne 0x1400070e4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1400070c0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000713f
lea rbx, [0x1400e2550]
cmp r8b, 0x23
jne 0x140007123
cmp byte [r9], r8b
jne 0x140007123
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140007110
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x140007280
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000729a
mov qword [r8], 0
lea rdx, [0x1400e232c]
call fcn.140007150
mov rbx, rax
test rax, rax
jne 0x1400072ba
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x1400073a5
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400073a5
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400073a5
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400073a5
cmp rdi, 0xffffffffffffffff
je 0x1400073a5
mov rax, qword [0x140105450]
test rax, rax
je 0x140007336
inc dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rax, rax
je 0x1400073a5
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140007392
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140105450]
test rax, rax
je 0x140007381
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x1400073ae
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x1400073a0
mov qword [r14], rdi
mov rax, rsi
jmp 0x1400073b0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140012570
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400fe700]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140105450]
mov edi, edx
cmp byte [rbx + 0x1f75], 0
jne 0x1400125d0
cmp byte [rbx + 0x1f76], 0
jne 0x1400125d0
mov r9d, dword [rbx + 0x3054]
lea r8, str.Tooltip__02d
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x20]
call fcn.140006f90
test dil, 1
je 0x1400126ee
jmp 0x140012658
movss xmm1, dword [rbx + 0x1610]
lea r8, str.Tooltip__02d
mov r9d, dword [rbx + 0x3054]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x1400ea130]
mulss xmm1, dword [0x1400ea124]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0x128]
addss xmm1, dword [rbx + 0x12c]
mov qword [rbx + 0x1d08], rax
mov dword [rbx + 0x1cf4], 1
movss dword [rbx + 0x1d00], xmm0
movss dword [rbx + 0x1d04], xmm1
movss xmm0, dword [rbx + 0x166c]
mulss xmm0, dword [0x1400e9fac]
or dword [rbx + 0x1cf0], 0x41
movss dword [rbx + 0x1d50], xmm0
call fcn.140006f90
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x1400126a8
lea r11, [0x1400e2550]
cmp r9b, 0x23
jne 0x14001268b
cmp byte [r8], r9b
jne 0x14001268b
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 0x140012678
not ecx
call fcn.14000cd40
test rax, rax
je 0x1400126ee
cmp byte [rax + 0x8e], 0
je 0x1400126ee
mov byte [rax + 0x95], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb0], 1
lea rcx, [rsp + 0x20]
inc dword [rbx + 0x3054]
mov edx, reloc.WS2_32.dll_recv
mov r9d, dword [rbx + 0x3054]
call fcn.140006f90
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000f390
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400c8ee0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400168a0
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 + 0x30f8], 0
lea rbx, [rcx + 0x3100]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140016947
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x1400168fa
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.1400184d0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140007700
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x30f8]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x3108]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140105448]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001694f
mov rcx, rbx
call fcn.140007700
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400321a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x10]
xor r9d, r9d
mov r11d, edx
mov rbx, rcx
mov ecx, edx
and r11d, 7
je 0x140032209
mov r8d, dword [rbx + 0x14]
cmp edx, r11d
jge 0x1400321f7
mov r10, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r10
jb 0x1400321d4
mov eax, r9d
jmp 0x1400321df
movzx ecx, byte [rax]
inc rax
mov qword [rbx], rax
mov eax, ecx
mov ecx, edx
add edx, 8
shl eax, cl
or eax, r8d
mov dword [rbx + 0x10], edx
mov dword [rbx + 0x14], eax
mov r8d, eax
cmp edx, 0x18
jle 0x1400321c7
mov ecx, r11d
shr r8d, cl
sub edx, r11d
mov dword [rbx + 0x14], r8d
mov dword [rbx + 0x10], edx
mov ecx, edx
test edx, edx
jle 0x14003223e
mov edx, dword [rbx + 0x14]
lea r8, [rsp + 0x30]
nop word [rax + rax]
movzx eax, byte [rbx + 0x14]
inc r9d
shr edx, 8
sub ecx, 8
mov byte [r8], al
lea r8, [r8 + 1]
mov dword [rbx + 0x14], edx
test ecx, ecx
jg 0x140032220
mov dword [rbx + 0x10], ecx
movsxd rcx, r9d
cmp rcx, 4
jge 0x14003226f
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
nop
cmp rax, r8
jb 0x140032259
xor dl, dl
jmp 0x140032262
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x140032250
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov qword [rsp + 0x38], rsi
mov eax, r8d
mov qword [rsp + 0x40], rdi
xor eax, 0xffff
mov qword [rsp + 0x48], r14
cmp ecx, eax
jne 0x140032333
mov rdx, qword [rbx]
mov esi, r8d
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 8]
ja 0x140032333
mov rdi, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x28]
lea rax, [r8 + rdi]
cmp rax, rcx
jbe 0x14003231a
cmp dword [rbx + 0x30], 0
je 0x140032333
sub edi, dword [rbx + 0x20]
sub ecx, dword [rbx + 0x20]
lea edx, [rdi + r8]
cmp edx, ecx
jle 0x1400322ed
lea eax, [rcx + rcx]
mov ecx, eax
cmp edx, eax
jg 0x1400322e4
movsxd r14, ecx
mov rcx, qword [rbx + 0x20]
mov rdx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x140032333
mov rdx, qword [rbx]
movsxd rdi, edi
add rdi, rax
mov qword [rbx + 0x20], rax
add rax, r14
mov qword [rbx + 0x18], rdi
mov qword [rbx + 0x28], rax
mov r8, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rsi
mov eax, 1
add qword [rbx + 0x18], rsi
jmp 0x140032335
xor eax, eax
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x140049b40
Capabilities:
Delete registry key

Disassembly:
sub rsp, 0x28
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
sete al
add rsp, 0x28
ret
Function at 0x14004c110
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov eax, 0x13d0
call fcn.1400c9b10
sub rsp, rax
mov rax, qword [0x1400fe700]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rsp + 0x13b4], 0xffffffff
mov dword [rsp + 0x34], eax
lea eax, [rsi + 1]
nop dword [rax + rax]
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [rsp + rax*4 + 0x34], edx
inc rax
cmp rax, 0x270
jb 0x14004c170
mov dword [rsp + 0x30], 0x270
mov qword [rbx], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov dword [rsp + 0x20], 1
mov edi, 0xa
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
nop dword [rax]
lea rcx, [rsp + 0x30]
call fcn.14005d150
mov ecx, eax
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
cmp eax, 0x4210842
jae 0x14004c1c0
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub ecx, eax
movsxd rax, ecx
movzx r9d, word [r14 + rax*2]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14004c231
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 8
jb 0x14004c225
mov rax, qword [rbx]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], si
jmp 0x14004c239
mov rcx, rbx
call fcn.140053970
sub rdi, 1
jne 0x14004c1c0
mov rax, rbx
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.1400c8ee0
lea r11, [rsp + 0x13d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret