joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c1510
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [section..data]
mov rdi, rax
test rax, rax
jne 0x1400c1552
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400c1599
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400c15f2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400c15b0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400c1633
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400d53fc]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400d53fd]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400c1600
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400c419c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c41e6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c41e6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c41e6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c41e6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c41e6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400c41e8
xor al, al
add rsp, 0x28
ret
Function at 0x1400c4548
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 0x1400c45cc
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400c45cc
dec r8
sub rdx, 1
jne 0x1400c45b2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140004910
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140017010]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
xorps xmm0, xmm0
lea r14, [0x140018020]
xor eax, eax
lea rdi, [0x140018098]
movups xmmword [0x140018020], xmm0
mov qword [0x140018050], rax
mov rbx, r14
movups xmmword [0x140018030], xmm0
mov dword [0x140018058], eax
movups xmmword [0x140018040], xmm0
nop dword [rax]
mov edx, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbx], rax
add rbx, 8
cmp rbx, rdi
jl 0x140004980
call fcn.1400016c0
movsxd r10, dword [0x1400180b0]
lea r9, [0x1400170e0]
mov ebx, 0xe
mov edx, ebx
mov r8, qword [r14 + r10*8]
inc r10d
sub r9, r8
mov rcx, r8
movzx eax, byte [r9 + rcx]
lea rcx, [rcx + 1]
xor al, 0xde
mov byte [rcx - 1], al
sub rdx, 1
jne 0x1400049c0
xor esi, esi
mov byte [r8 + 0xe], dl
cmp r10d, 0xf
cmovge r10d, esi
xor ecx, ecx
lea edx, [rsi + 1]
mov dword [0x1400180b0], r10d
call qword [0x1400180b8]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140004a08
xor eax, eax
jmp 0x140004b1a
call fcn.1400019a0
test al, al
jne 0x140004a52
nop dword [rax]
nop word [rax + rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rcx, rax
mov qword [0x140018018], rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140004a52
call fcn.1400019a0
test al, al
je 0x140004a20
call fcn.1400044a0
call fcn.140003e00
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x140004aa0
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_DispatchMessageA]
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x140004a73
mov rdi, qword [0x140018098]
test rdi, rdi
je 0x140004b16
movsxd r10, dword [0x1400180b0]
lea r9, [0x140017178]
mov rdx, qword [r14 + r10*8]
inc r10d
sub r9, rdx
mov r8, rdx
nop word [rax + rax]
movzx eax, byte [r9 + r8]
lea r8, [r8 + 1]
xor al, 0xde
mov byte [r8 - 1], al
sub rbx, 1
jne 0x140004ad0
mov rcx, qword [0x1400180d8]
cmp r10d, 0xf
mov byte [rdx + 0xe], sil
cmovge r10d, esi
mov dword [0x1400180b0], r10d
call fcn.140001610
mov rcx, rdi
mov qword [0x140017ff8], rax
call rax
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14000eab0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
add rsp, 0x60
pop r14
ret
Function at 0x140004f50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140004f87
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140004fa8
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004faa
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140005003
test ecx, ecx
jle 0x140004fe3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140005003
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140005003
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140005030
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140005052
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140005068
add rsp, 0x30
pop r14
pop rsi
pop rbp
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]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140005084
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005086
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x1400050c0
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140005167
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x1400050fb
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140005141
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x140005180
cmp rbx, rax
ja 0x140005110
mov r8, rdi
test rdi, rdi
je 0x140005167
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x14000516a
Function at 0x140005580
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140017010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400055ad
xor eax, eax
jmp 0x140005702
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x1400055d8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x1400055d8
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 0x140005702
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400056f5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14000561b
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 0x140005646
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 0x1400056fa
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 0x1400056b5
sub eax, 1
je 0x1400056b5
cmp eax, 2
jne 0x1400056f5
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 0x1400056fa
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400056e3
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 0x1400056f5
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x1400056fa
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000eab0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140005ed0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140017010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005fa3
cmp byte [rcx + 0x71], 0
je 0x140005fa3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140005f9f
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 0x140005f64
sub eax, 1
je 0x140005f68
cmp eax, 2
jne 0x140005f9f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000eab0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140005f96
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 0x140005f9f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140005f4c
xor al, al
jmp 0x140005f4c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000eab0
add rsp, 0x60
pop rbx
ret
Function at 0x140020ae0
Capabilities:
Encode data using xor

Disassembly:
cmp rdx, 0x20
jae 0x140020afb
test rdx, rdx
je 0x140020b00
cmp rdx, 4
jae 0x140020b03
xor eax, eax
mov r8, rcx
jmp 0x140020c64
jmp fcn.140016700
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
lea rax, [r8 - 4]
mov r9, rax
shr r9, 2
inc r9
test rax, rax
je 0x140020c89
mov r10, r9
and r10, 0xfffffffffffffffe
pxor xmm0, xmm0
xor r11d, r11d
movdqa xmm2, xmmword [0x140053670]
movdqa xmm3, xmmword [0x1400534f0]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx eax, word [rcx + r11]
movd xmm4, eax
movzx eax, word [rcx + r11 + 2]
movd xmm5, eax
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm4, xmm0
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm0, xmm5, 0xd4
pshufd xmm5, xmm0, 0xd4
pand xmm5, xmm3
paddq xmm5, xmm1
movzx eax, word [rcx + r11 + 4]
movd xmm0, eax
movzx eax, word [rcx + r11 + 6]
movd xmm1, eax
pcmpgtb xmm0, xmm2
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0xd4
pshufd xmm0, xmm0, 0xd4
pand xmm0, xmm3
paddq xmm0, xmm4
pcmpgtb xmm1, xmm2
punpcklbw xmm1, xmm1
pshuflw xmm1, xmm1, 0xd4
pshufd xmm1, xmm1, 0xd4
pand xmm1, xmm3
paddq xmm1, xmm5
add r11, 8
add r10, 0xfffffffffffffffe
jne 0x140020b50
test r9b, 1
je 0x140020c4a
movzx eax, word [rcx + r11]
movd xmm2, eax
movzx eax, word [rcx + r11 + 2]
movd xmm3, eax
movdqa xmm4, xmmword [0x140053670]
pcmpgtb xmm2, xmm4
punpcklbw xmm2, xmm2
pshuflw xmm2, xmm2, 0xd4
pshufd xmm2, xmm2, 0xd4
movdqa xmm5, xmmword [0x1400534f0]
pand xmm2, xmm5
paddq xmm0, xmm2
pcmpgtb xmm3, xmm4
punpcklbw xmm3, xmm3
pshuflw xmm2, xmm3, 0xd4
pshufd xmm2, xmm2, 0xd4
pand xmm2, xmm5
paddq xmm1, xmm2
paddq xmm0, xmm1
pshufd xmm1, xmm0, 0xee
paddq xmm1, xmm0
movq rax, xmm1
cmp r8, rdx
je 0x140020c88
add r8, rcx
add rcx, rdx
nop word [rax + rax]
xor edx, edx
cmp byte [r8], 0xc0
lea r9, [r8 + 1]
setge dl
add rax, rdx
mov r8, r9
cmp r9, rcx
jne 0x140020c70
ret
pxor xmm0, xmm0
xor r11d, r11d
pxor xmm1, xmm1
test r9b, 1
jne 0x140020bf3
jmp 0x140020c4a
Function at 0x140020f60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rdi, qword [rcx]
test rdi, rdi
je 0x140020fb2
mov r11, qword [rsi + 8]
mov r9, qword [rsi + 0x10]
cmp r9, r11
jae 0x140020fb2
movzx eax, byte [rdi + r9]
cmp eax, 0x49
je 0x140020fcd
cmp eax, 0x42
jne 0x140020fb2
lea rcx, [r9 + 1]
mov qword [rsi + 0x10], rcx
cmp rcx, r11
jae 0x14002100a
cmp byte [rdi + rcx], 0x5f
jne 0x14002100a
lea rax, [r9 + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x140021102
mov rcx, rsi
xor edx, edx
call fcn.14001c040
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc r9
mov qword [rsi + 0x10], r9
mov rcx, rsi
xor edx, edx
call fcn.14001c040
test al, al
jne 0x140021005
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14002107c
lea rdx, [0x141075c33]
mov r8d, 1
call fcn.140016ed0
test al, al
je 0x14002107c
mov dil, 2
jmp 0x140020fc1
xor eax, eax
mov r10d, 0x3e
nop word cs:[rax + rax]
mov r8b, 1
cmp rcx, r11
jae 0x14002115c
movzx edx, byte [rdi + rcx]
cmp dl, 0x5f
je 0x1400210f6
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14002105f
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14002104e
add dl, 0xa9
jmp 0x14002105d
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14002115c
add dl, 0xe3
mov ebx, edx
inc rcx
mov qword [rsi + 0x10], rcx
mul r10
jo 0x14002115c
movzx edx, bl
add rax, rdx
jae 0x140021020
jmp 0x14002115c
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140020fc1
xor ebx, ebx
lea r14, [0x14107600e]
nop word cs:[rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400210b4
cmp byte [rax + rcx], 0x45
je 0x1400211bd
sub rbx, 1
jb 0x1400210d9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400210d9
mov r8d, 2
mov rdx, r14
call fcn.140016ed0
test al, al
jne 0x140021005
mov rcx, rsi
call fcn.1400211d0
test al, al
jne 0x140021005
mov rax, qword [rsi]
test rax, rax
jne 0x1400210a0
jmp 0x140020fc1
inc rcx
mov qword [rsi + 0x10], rcx
inc rax
je 0x14002115c
cmp rax, r9
jae 0x140021159
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1400211ad
cmp qword [rsi + 0x20], 0
je 0x1400211a6
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.140020f60
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140020fc3
mov r8b, 1
xor ebx, ebx
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14002119c
lea rax, [0x141075fd9]
lea rdx, [0x141075fc0]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.140016ed0
mov dil, 2
test al, al
jne 0x140020fc1
mov qword [rsi], 0
mov byte [rsi + 8], bl
xor edi, edi
jmp 0x140020fc1
mov bl, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x140021167
jmp 0x14002119c
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140020fc1
Function at 0x140028da0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
movzx ebx, byte [rdx + 0x38]
xor r15d, r15d
cmp bl, 1
setne dl
mov eax, 0
sbb eax, eax
mov r14, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140028dd3
test ecx, ecx
jne 0x140028e22
movzx r15d, byte [rdi + 0x3a]
cmp al, 0xff
je 0x140028de0
test ecx, ecx
jne 0x140028e22
mov rcx, rdi
call fcn.140028c80
movzx r10d, al
test bl, bl
jne 0x140028e29
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x140028e16.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x140028f9c]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x140028e16.2
xor r10d, r10d
test bl, bl
je 0x140028df0
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140028f7e
mov r11, qword [rdi]
lea r9, [r11 + rcx]
movzx r8d, byte [rdi + 0x10]
cmp rdx, rcx
jne 0x140028e5b
xor edi, edi
jmp 0x140028ed8
add rsi, r10
add rsi, rax
sub rsi, rdx
inc rsi
lea rax, [rdx + r11]
dec rax
xor edi, edi
cmp r8b, 3
jae 0x140028ea0
nop word cs:[rax + rax]
cmp byte [rax], 0x5c
je 0x140028ebb
inc rsi
dec rax
cmp rsi, 1
jne 0x140028e80
jmp 0x140028ed8
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x140028ebb
cmp ebx, 0x5c
je 0x140028ebb
inc rsi
dec rax
cmp rsi, 1
jne 0x140028ea0
jmp 0x140028ed8
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x140028f8c
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x140028f02
mov al, 9
cmp rdx, 2
je 0x140028f06
cmp rdx, 1
jne 0x140028f16
cmp byte [r9], 0x2e
jne 0x140028f16
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140028f16
mov al, 0xa
jmp 0x140028f16
cmp byte [r9], 0x2e
jne 0x140028f16
cmp byte [r9 + 1], 0x2e
sete al
xor al, 9
add rdi, rdx
mov qword [r14], rdi
mov qword [r14 + 8], r9
mov qword [r14 + 0x10], rdx
mov byte [r14 + 0x18], al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 8
jmp case.0x140028e16.2
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 2
jmp case.0x140028e16.2
mov esi, 2
jmp case.0x140028e16.2
lea r8, [0x141077b78]
call fcn.140050e70
ud2
lea r8, [0x141077b90]
call fcn.140050e70
ud2
Function at 0x140038d60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov r14, rcx
lea rcx, [rbp - 0x30]
call fcn.14002cb20
mov rdi, qword [rbp - 0x28]
test rdi, rdi
je 0x140038db3
mov rbx, qword [rbp - 0x30]
mov rsi, qword [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140038e2c
mov qword [r14], rbx
mov qword [r14 + 8], rdi
mov qword [r14 + 0x10], rsi
jmp 0x140038e21
mov rdx, qword [rbp - 0x30]
mov eax, edx
and eax, 3
cmp eax, 1
jne 0x140038e19
lea rax, [rdx - 1]
mov qword [rbp - 0x18], rax
mov rcx, qword [rdx - 1]
mov qword [rbp - 0x10], rdx
mov rax, qword [rdx + 7]
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 7]
cmp qword [rax + 8], 0
mov rsi, qword [rbp - 0x18]
je 0x140038e07
mov r8, qword [rsi]
cmp qword [rax + 0x10], 0x11
jb 0x140038df8
mov r8, qword [r8 - 8]
mov rcx, qword [0x141089bd0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x141089bd0]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [r14 + 8], 0
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [r14 + 8], 0
test rbx, rbx
je 0x140038e21
mov rcx, qword [0x141089bd0]
xor edx, edx
mov r8, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
Function at 0x14003b3f0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], r8
mov rcx, qword [0x141089bd0]
test rcx, rcx
jne 0x14003b43d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x14003b4fc
mov rcx, rax
mov qword [0x141089bd0], rax
mov r8d, 0x10
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14003b4fc
mov rsi, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14003b920]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14003b4ee
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov qword [rbp - 0x18], rsi
call qword [rax]
mov rsi, qword [rbp - 0x18]
mov rax, qword [rsi + 8]
cmp qword [rax + 8], 0
je 0x14003b4c7
mov r8, qword [rsi]
cmp qword [rax + 0x10], 0x11
jb 0x14003b4b8
mov r8, qword [r8 - 8]
mov rcx, qword [0x141089bd0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x141089bd0]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov byte [rbp - 9], 1
mov ecx, 0x10
mov edx, 8
call fcn.140050ce0
ud2