joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18017c200
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 0x18017c261
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 0x18017c220
mov ecx, dword [r9]
jmp 0x18017c34b
cmp ecx, 0x4e0
jb 0x18017c34b
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 0x18017c280
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 0x18017c2d0
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 0x18017c390
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rsi
sub rsp, 0x30
movsx eax, byte [rdx]
lea rsi, [rdx + 1]
mov qword [rsp + 0x50], rdi
mov rdi, rdx
mov ebx, 0x811c9dc5
test al, al
jne 0x18017c3bc
mov r9d, ebx
jmp 0x18017c3cf
xor eax, ebx
mov rcx, rsi
imul edx, eax, 0x1000193
call fcn.1800dc830
mov r9d, eax
movabs r10, 0x100000001b3
movzx r8d, r9b
movabs rax, 0xcbf29ce484222325
mov ecx, r9d
xor r8, rax
shr ecx, 8
imul r8, r10
movzx edx, cl
mov eax, r9d
xor r8, rdx
shr eax, 0x10
imul r8, r10
movzx ecx, al
xor r8, rcx
mov eax, r9d
mov rcx, qword [0x180224340]
imul r8, r10
shr rax, 0x18
xor r8, rax
imul r8, r10
and rcx, r8
shl rcx, 4
add rcx, qword [0x180224328]
mov rax, qword [rcx + 8]
cmp rax, qword [0x180224318]
je 0x18017c458
mov rcx, qword [rcx]
cmp r9d, dword [rax + 0x10]
je 0x18017c45a
cmp rax, rcx
je 0x18017c458
mov rax, qword [rax + 8]
cmp r9d, dword [rax + 0x10]
jne 0x18017c447
jmp 0x18017c45a
xor eax, eax
test rax, rax
jne 0x18017c4b3
mov rcx, qword [0x18022aa20]
mov rdx, rdi
mov qword [rsp + 0x48], rbp
mov rax, qword [rcx]
call qword [rax + 0x68]
movsx ecx, byte [rdi]
mov rbp, rax
test cl, cl
jne 0x18017c482
mov eax, ebx
jmp 0x18017c494
mov eax, ecx
mov rcx, rsi
xor eax, ebx
imul edx, eax, 0x1000193
call fcn.1800dc830
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x20]
call fcn.18017c7f0
mov rcx, qword [rax]
mov qword [rcx + 0x18], rbp
mov rbp, qword [rsp + 0x48]
movsx eax, byte [rdi]
mov rdi, qword [rsp + 0x50]
test al, al
je 0x18017c4d1
xor eax, ebx
mov rcx, rsi
imul edx, eax, 0x1000193
call fcn.1800dc830
mov ebx, eax
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
lea rdx, [rsp + 0x20]
call fcn.18017c7f0
mov rbx, qword [rsp + 0x58]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
add rsp, 0x30
pop rsi
ret
Function at 0x18017cad0
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x18017cb01
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x180224318]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x180224328]
lea rdx, [rdi + rdi]
call fcn.18008f170
mov rax, qword [0x180224318]
lea r9, [rdi - 1]
mov qword [0x180224340], r9
mov qword [0x180224348], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x18017cc74
mov qword [rsp + 0x38], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x180224328]
mov r9, qword [r11]
cmp r9, rbx
jne 0x18017cbc0
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x18017cc35
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x18017cbfd
mov r10, qword [rdx]
cmp r10, rax
je 0x18017cbf7
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x18017cc35
cmp r9, rdx
je 0x18017cc11
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x18017cc49
cmp r9, rdx
jne 0x18017cc02
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x18017cc6f
mov r9, qword [0x180224340]
jmp 0x18017cb71
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x18017cc35
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18017d4a0
Capabilities:
Enumerate gui resources
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
sub rsp, 0x48
mov qword [rax + 0x18], rbx
mov rbx, r8
mov qword [rax - 0x10], rsi
mov qword [rax - 0x18], rdi
test r8, r8
jne 0x18017d4da
lea r8, [rax + 0x10]
lea rdx, [rax - 0x28]
call fcn.18017d5f0
mov edx, dword [rsp + 0x58]
mov rbx, qword [rax]
add rbx, 0x18
mov qword [rsp + 0x40], rbp
test edx, edx
je 0x18017d5ae
mov ecx, edx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x18017d5ae
cmp qword [0x18022b180], 0
jne 0x18017d529
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], 0
lea rcx, [0x180179e40]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x50]
mov qword [0x18022b180], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x18022b180]
jne 0x18017d5ae
cmp byte [rbx], 0
mov dil, 1
jne 0x18017d5b1
movzx esi, dil
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rcx, rax
lea r8, [rbx + 8]
movabs rax, 0x346dc5d63886594b
imul rcx
sar rdx, 0xb
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, qword [r8]
add rax, 0xfa
cmp rdx, rax
jge 0x18017d5d8
movzx ecx, dil
xor al, al
mov rbp, qword [rsp + 0x40]
test sil, sil
mov byte [rbx], dil
mov rdi, qword [rsp + 0x30]
mov byte [rbx + 1], sil
mov rsi, qword [rsp + 0x38]
mov byte [rbx + 2], cl
mov byte [rbx + 3], al
mov rbx, qword [rsp + 0x60]
je 0x18017d5a9
mov qword [r8], rdx
add rsp, 0x48
ret
xor dil, dil
xor sil, sil
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rcx, rax
movabs rax, 0x346dc5d63886594b
imul rcx
sar rdx, 0xb
mov rax, rdx
shr rax, 0x3f
add rdx, rax
xor cl, cl
lea r8, [rbx + 8]
test dil, dil
jne 0x18017d57e
cmp byte [rbx], cl
je 0x18017d57e
mov al, 1
jmp 0x18017d580
Function at 0x18017d8e0
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x18017d911
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1802243e8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x1802243f8]
lea rdx, [rdi + rdi]
call fcn.18008f170
mov rax, qword [0x1802243e8]
lea r9, [rdi - 1]
mov qword [0x180224410], r9
mov qword [0x180224418], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x18017da84
mov qword [rsp + 0x38], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x1802243f8]
mov r9, qword [r11]
cmp r9, rbx
jne 0x18017d9d0
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x18017da45
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x18017da0d
mov r10, qword [rdx]
cmp r10, rax
je 0x18017da07
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x18017da45
cmp r9, rdx
je 0x18017da21
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x18017da59
cmp r9, rdx
jne 0x18017da12
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x18017da7f
mov r9, qword [0x180224410]
jmp 0x18017d981
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x18017da45
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18017ded0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r15
sub rsp, 0x80
mov rbp, r8
mov r15, rdx
mov esi, 0x811c9dc5
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rcx + r8], 0
jne 0x18017def2
xor edx, edx
test rcx, rcx
je 0x18017df25
nop dword [rax]
nop word [rax + rax]
movsx eax, byte [rdx + r8]
inc rdx
xor eax, esi
imul esi, eax, 0x1000193
cmp rdx, rcx
jb 0x18017df10
xor edi, edi
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], r14
cmp dword [r15 + 8], edi
jle 0x18017dfb8
xor r14d, r14d
mov rbx, qword [r15]
mov r9d, 0x811c9dc5
mov rax, 0xffffffffffffffff
movups xmm1, xmmword [rbx + r14 + 0x40]
mov r8, qword [rbx + r14]
nop word [rax + rax]
inc rax
cmp byte [r8 + rax], 0
jne 0x18017df60
xor edx, edx
test rax, rax
je 0x18017df88
movsx ecx, byte [rdx + r8]
inc rdx
xor ecx, r9d
imul r9d, ecx, 0x1000193
cmp rdx, rax
jb 0x18017df71
cmp esi, r9d
je 0x18017dfe7
movq rdx, xmm1
test rdx, rdx
je 0x18017dfac
mov r8, rbp
lea rcx, [0x18022aaf0]
call fcn.18017ded0
mov ecx, eax
test eax, eax
jne 0x18017dfde
inc edi
add r14, 0x60
cmp edi, dword [r15 + 8]
jl 0x18017df40
xor eax, eax
mov r14, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xb0]
add rsp, 0x80
pop r15
pop rdi
pop rsi
ret
mov eax, dword [rbx + r14 + 0x48]
add eax, ecx
jmp 0x18017dfba
psrldq xmm1, 8
movd eax, xmm1
jmp 0x18017dfba

Function at 0x18017fe5c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x18017fe96
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18017fe9b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18017fee4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1801ad280]
cmp byte [rcx + rax], 0
je 0x18017fee4
dec r8
sub rdx, 1
jne 0x18017feca
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140002ca0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x14004d040]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rsi, rdx
mov rbx, rcx
xor ebp, ebp
lea rcx, str.FileDownload
mov edx, 1
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rdi, rax
test rax, rax
je 0x140002d58
mov qword [rsp + 0x28], rbp
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0x100
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rbx, rax
test rax, rax
je 0x140002d4f
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov rcx, rbx
cmp rax, 0xffffffffffffffff
jne 0x140002d5f
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x140002de0
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], ebp
mov r8d, 0x400
lea rdx, [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140002dc3
nop dword [rax]
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x140002dc3
lea r9, [rsp + 0x44]
mov dword [rsp + 0x44], ebp
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rsp + 0x40]
mov r8d, 0x400
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140002d80
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14003dce0
mov rbx, qword [rsp + 0x490]
add rsp, 0x460
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400050a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x14004db54], 0
lea rdi, [0x14004db50]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x140005178
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x1400050d0
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x1400051ae
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4]
sub r9d, 1
jne 0x140005190
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x1400051ef
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x1400051d3
cmp byte [r8], r9b
jne 0x1400051d3
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 [rdi + rdx*4]
test r9b, r9b
jne 0x1400051c0
not eax
pop rdi
ret
Function at 0x1400053f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
test r8, r8
je 0x140005409
mov qword [r8], 0
lea rdx, [0x140041020]
call fcn.140005200
mov rbx, rax
test rax, rax
jne 0x140005428
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbp
xor edx, edx
mov r8d, 2
mov qword [rsp + 0x38], rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400054ea
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x1400054ea
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400054ea
mov rax, qword [0x14004da08]
mov rbp, rsi
test rax, rax
je 0x140005487
inc dword [rax + 0x3c8]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400054ea
mov r9, rbx
mov r8, rbp
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, rbp
je 0x1400054d7
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14004da08]
test rax, rax
je 0x1400054cc
dec dword [rax + 0x3c8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400054f3
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x1400054e5
mov qword [rdi], rbp
mov rax, rsi
jmp 0x1400054f5
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140015900
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push r15
sub rsp, 0x20
mov rdi, qword [0x14004da08]
xor esi, esi
mov r15, rcx
mov dword [rdi + 0x2d9c], esi
test rcx, rcx
je 0x140015a1a
mov qword [rsp + 0x40], rbx
lea rbx, [rdi + 0x2da0]
mov dword [rdi + 0x2d9c], esi
mov ecx, dword [rbx + 4]
mov qword [rsp + 0x48], rbp
test ecx, ecx
jns 0x14001595a
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.140016a10
mov dword [rbx], esi
cmp dword [rbx + 4], esi
jne 0x14001596e
mov edx, 8
mov rcx, rbx
call fcn.140016a10
movsxd rcx, dword [rbx]
mov ebp, esi
mov rax, qword [rbx + 8]
mov byte [rcx + rax], sil
inc dword [rbx]
cmp dword [rdi + 0x2db0], esi
jle 0x1400159ba
mov qword [rsp + 0x50], r14
mov r14, rsi
nop dword [rax]
mov r9, qword [rdi + 0x2db8]
mov r8, rbx
add r9, r14
mov rcx, rdi
mov rdx, r9
call qword [r9 + 0x20]
inc ebp
add r14, 0x30
cmp ebp, dword [rdi + 0x2db0]
jl 0x140015990
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
cmp qword [rbx + 8], rsi
je 0x1400159c9
mov esi, dword [rbx]
dec esi
mov rax, qword [rdi + 0x2da8]
lea rdx, [0x140041024]
test rax, rax
movsxd rsi, esi
lea rdi, [0x14004d9fc]
mov rcx, r15
cmovne rdi, rax
call fcn.140005200
mov rbx, rax
test rax, rax
je 0x140015a15
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
Function at 0x14001da10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
push r13
push r14
sub rsp, 0xb8
mov r13, rcx
movsxd rax, r9d
xor ecx, ecx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0xe8], ecx
mov r14, rdx
test r9d, r9d
jle 0x14001dc72
mov qword [r11 + 8], rbx
lea rbx, [r8 + 0x20]
mov qword [r11 + 0x10], rbp
movzx ebp, byte [r13 + 0x24]
mov qword [r11 + 0x18], rsi
mov qword [r11 - 0x18], rdi
mov edi, 0x100
mov qword [r11 - 0x20], r12
xor r12d, r12d
mov qword [r11 - 0x28], r15
movaps xmmword [r11 - 0x38], xmm6
movaps xmmword [r11 - 0x48], xmm7
xorps xmm7, xmm7
movaps xmmword [r11 - 0x58], xmm8
movzx r11d, byte [r13 + 0x20]
movss xmm8, dword [0x140045b60]
nop word [rax + rax]
movss xmm6, dword [rbx - 0x20]
comiss xmm6, xmm7
jbe 0x14001dada
movsxd r10, dword [r14 + 0x24]
mov r9, qword [r14 + 8]
movsx ecx, di
movzx eax, byte [r10 + r9 + 7]
movzx edx, byte [r10 + r9 + 6]
imul edx, ecx
movsx ecx, di
add dx, ax
movzx eax, byte [r10 + r9 + 5]
movsx r8d, dx
movzx edx, byte [r10 + r9 + 4]
imul edx, ecx
add ax, dx
cwde
sub eax, r8d
movd xmm0, eax
jmp 0x14001daf9
movsxd rdx, dword [r14 + 0x1c]
xorps xmm6, xmm8
mov rax, qword [r14 + 8]
movzx ecx, byte [rdx + rax + 0x12]
movzx eax, byte [rdx + rax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
xor edi, edi
mov byte [rbx], r11b
mov byte [rbx + 1], bpl
divss xmm6, xmm0
cmp dword [rbx - 0x10], edi
jle 0x14001dc10
mov r15, qword [rsp + 0xf0]
mov rax, r12
shl rax, 4
add r15, 6
xor esi, esi
add r15, rax
nop word [rax + rax]
mov rax, qword [rbx - 0x18]
test rax, rax
jne 0x14001db40
mov edx, dword [rbx - 0x1c]
add edx, edi
jmp 0x14001db43
mov edx, dword [rax + rsi]
mov eax, dword [r13 + 0x24]
xorps xmm3, xmm3
xorps xmm2, xmm2
mov rcx, r14
cvtsi2ss xmm3, rax
mov eax, dword [r13 + 0x20]
cvtsi2ss xmm2, rax
mulss xmm3, xmm6
mulss xmm2, xmm6
call fcn.140018d40
mov edx, eax
mov rcx, r14
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
movss dword [rsp + 0x28], xmm7
movss dword [rsp + 0x20], xmm7
call fcn.14001b670
movzx ecx, word [r13 + 0x1c]
inc r12
movzx r11d, word [r13 + 0x20]
movzx eax, cx
sub ax, word [rsp + 0x50]
dec cx
movzx ebp, word [r13 + 0x24]
dec ax
add ax, r11w
inc edi
add ax, word [rsp + 0x54]
add rsi, 4
mov word [r15 - 2], ax
movzx eax, bp
sub ax, word [rsp + 0x58]
add ax, cx
mov ecx, dword [rsp + 0xe8]
add ax, word [rsp + 0x5c]
inc ecx
mov word [r15], ax
add r15, 0x10
mov dword [rsp + 0xe8], ecx
cmp edi, dword [rbx - 0x10]
jl 0x14001db30
jmp 0x14001dc17
mov ecx, dword [rsp + 0xe8]
add rbx, 0x28
mov edi, 0x100
sub qword [rsp + 0x60], 1
jne 0x14001da90
movaps xmm8, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x90]
mov r15, qword [rsp + 0xa0]
mov r12, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xe0]
mov rbp, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xd0]
mov eax, ecx
add rsp, 0xb8
pop r14
pop r13
ret