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

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140004908
add rsp, 0x20
pop r15
pop rdi
pop rbx
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 + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000492e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004930
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004989
test ecx, ecx
jle 0x140004969
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140004989
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004989
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x1400049b0
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 0x1400049d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400049e8
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 0x140004a04
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004a06
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004a42
mov qword [rsp + 0x20], rdi
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]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140004ade
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140004a7d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140004abe
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]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140004ade
cmp rbx, rax
ja 0x140004a90
test rbx, rbx
je 0x140004ade
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]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140004f40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140023040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140004f6d
xor eax, eax
jmp 0x1400050d9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140004fa7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140004fa7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400050d9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400050cc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140004fea
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
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 0x140005015
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 0x1400050d1
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 0x140005084
sub eax, 1
je 0x140005084
cmp eax, 2
jne 0x1400050cc
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 0x1400050d1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400050b2
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 0x1400050cc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400050d1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140017090
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400063c0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140023040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140006493
cmp byte [rcx + 0x71], 0
je 0x140006493
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000648f
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 0x140006454
sub eax, 1
je 0x140006458
cmp eax, 2
jne 0x14000648f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140017090
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140006486
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 0x14000648f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000643c
xor al, al
jmp 0x14000643c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140017090
add rsp, 0x60
pop rbx
ret
Function at 0x140016ad4
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 0x140016b0e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140016b13
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 0x140016b5c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14001a620]
cmp byte [rcx + rax], 0
je 0x140016b5c
dec r8
sub rdx, 1
jne 0x140016b42
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140017c00
Capabilities:
Parse pe header

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

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

Function at 0x14001bea0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001bfe8

Function at 0x14001de20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001de48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001de48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x6ddca058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x6ddca1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x6ddca089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x6ddca06f
add dl, dl
jne 0x6ddca096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x6ddca0f6
xor eax, eax
add dl, dl
jne 0x6ddca0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x6ddca1ad
add dl, dl
jne 0x6ddca0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6ddca0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6ddca0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6ddca0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x6ddca0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x6ddca07e
mov eax, 1
add dl, dl
jne 0x6ddca106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6ddca113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x6ddca0fb
sub eax, ebx
mov ebx, 1
jne 0x6ddca14c
mov ecx, 1
add dl, dl
jne 0x6ddca12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x6ddca13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x6ddca123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x6ddca07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x6ddca168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x6ddca175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x6ddca15d
cmp eax, 0x7d00
jae 0x6ddca19b
cmp eax, 0x500
jb 0x6ddca196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x6ddca07e
cmp eax, 0x7f
ja 0x6ddca19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x6ddca07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x6ddca1d2
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 0x6ddca07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140003da8
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov edi, edx
mov rsi, rcx
mov rax, qword [0x14010d6b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebx, ebx
xor edx, edx
call fcn.140001684
mov dword [rsi + 0x120], ebx
mov dword [rsi + 0x124], edi
movaps xmm0, xmmword [section..rdata]
lea rdi, [rsp + 0x20]
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov ecx, dword [rdi + 0x28]
cmp eax, ecx
cmova ecx, eax
mov qword [rsi + 0x128], rcx
mov qword [rsi + 0x130], 0x20
mov qword [rsi + 0x138], 0x40
mov dword [rsi + 0x140], ebx
lea rax, [rsi + 8]
mov qword [rsi + 8], 0
xor rax, 0xffffffffb37cc16a
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rsi
mov dword [rsi + 0x28], ebx
lea rcx, [rsi + 0x30]
mov r8d, 0xf0
xor edx, edx
call fcn.1400a2bc0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14009fa30
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret

Function at 0x140007080
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
mov esi, eax
movabs eax, dword [0xda8b088900409214]
test ebx, ebx
jle 0x1400070a1
mov eax, 0xff
call fcn.140002680
xor byte [rsi], al
jne 0x140007091
pop rsi
pop rbx
ret
Function at 0x140024060
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor edx, edx
jmp 0x1400241ba
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x14010d6b8]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp byte [rcx + 0x60], 0
je 0x140024207
mov edi, dword [rsi + 0x5c]
test bl, bl
je 0x140024328
mov dword [rsi + 0x5c], 0xffffffff
mov byte [rsi + 0x60], 0
jmp 0x140024328
cmp byte [rsi + 0x61], 0
je 0x140024237
mov rcx, qword [rsi + 0x40]
call fcn.1400bcc7c
mov edi, 0xffffffff
cmp eax, 0xffffffff
je 0x140024328
test bl, bl
je 0x14002430c
movzx ebx, al
mov dword [rsi + 0x5c], ebx
jmp 0x14002431f
movabs rdi, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x60], rdi
mov eax, dword [rsi + 0x58]
cmp eax, 2
mov r15d, 1
cmovge r15d, eax
xor r14d, r14d
mov rcx, qword [rsi + 0x40]
call fcn.1400bcc7c
cmp eax, 0xffffffff
je 0x140024323
mov byte [rsp + r14 + 0x60], al
inc r14
cmp r15, r14
jne 0x140024259
lea r12, [rsp + 0x60]
mov byte [r12 - 1], 0xaa
lea r13, [rsp + 0x50]
mov qword [r13], rdi
lea rbp, [rsp + 0x48]
mov qword [rbp], rdi
mov edi, 0xffffffff
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov r14d, dword [rdx]
movss xmm6, dword [rdx + 4]
lea r9, [rsp + r15]
add r9, 0x60
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], r12
lea r8, [rsp + 0x5f]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r13
lea r8, [rsp + 0x60]
call qword [0x140125008]
cmp eax, 1
jne 0x140024350
mov rax, qword [rsi + 0x50]
mov dword [rax], r14d
movss dword [rax + 4], xmm6
cmp r15, 8
je 0x140024328
mov rcx, qword [rsi + 0x40]
call fcn.1400bcc7c
cmp eax, 0xffffffff
je 0x140024328
mov byte [rsp + r15 + 0x60], al
inc r15
jmp 0x14002429a
mov rdx, qword [rsi + 0x40]
movzx ebx, al
mov ecx, ebx
call fcn.1400c03d4
cmp eax, 0xffffffff
je 0x140024328
mov edi, ebx
jmp 0x140024328
mov edi, 0xffffffff
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14009fa30
mov eax, edi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp eax, 2
je 0x140024328
cmp eax, 3
jne 0x140024362
mov al, byte [rsp + 0x60]
mov byte [rsp + 0x5f], al
test bl, bl
je 0x140024370
movzx edi, byte [rsp + 0x5f]
mov dword [rsi + 0x5c], edi
jmp 0x140024328
mov ebx, r15d
test rbx, rbx
jle 0x140024392
mov rdx, qword [rsi + 0x40]
dec rbx
mov eax, ebx
movzx ecx, byte [rsp + rax + 0x60]
call fcn.1400c03d4
cmp eax, 0xffffffff
jne 0x140024373
jmp 0x140024328
movzx edi, byte [rsp + 0x5f]
jmp 0x140024328

Function at 0x140024d00
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x140024d37
movabs rcx, 0xf000000000000000
shl rax, 4
movsx r9, byte [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
inc rdx
cmp rdx, r8
jne 0x140024d11
ret
Function at 0x140024e40
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x140024e78
movabs rcx, 0xf000000000000000
shl rax, 4
movzx r9d, word [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
add rdx, 2
cmp rdx, r8
jne 0x140024e51
ret
Function at 0x1400316a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rbx, r9
mov rsi, r8
mov rdi, rdx
mov r14, rcx
call fcn.14003dcda
mov ebp, eax
test rdi, rdi
je 0x1400316d5
mov rax, qword [rdi + 0x18]
cmp rax, qword [rdi + 0x20]
je 0x1400316ea
movzx eax, word [rax]
jmp 0x1400316fa
xor r15d, r15d
mov eax, 6
test bpl, bpl
jne 0x140031784
xor edi, edi
jmp 0x140031712
mov rax, qword [rdi]
mov rax, qword [rax + 0x40]
mov rcx, rdi
call qword [0x140125008]
xor r15d, r15d
cmp ax, 0xffff
sete cl
cmove rdi, r15
mov eax, 6
cmp bpl, cl
je 0x140031784
mov rcx, qword [r14]
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
je 0x140031724
movzx ebp, word [rax]
jmp 0x140031733
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x140125008]
mov ebp, eax
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov rcx, rbx
mov dx, 4
mov r8d, ebp
call qword [0x140125008]
test al, al
je 0x14003177c
mov rax, qword [rbx]
mov rax, qword [rax + 0x68]
mov rcx, rbx
mov edx, ebp
xor r8d, r8d
call qword [0x140125008]
mov ebp, eax
mov rcx, qword [r14]
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
je 0x140031798
add rax, 2
mov qword [rcx + 0x18], rax
jmp 0x1400317a5
xor r15d, r15d
mov eax, 4
or dword [rsi], eax
mov eax, r15d
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [0x140125008]
mov r12d, dword [rsp + 0x80]
movsx r15d, bpl
mov rcx, r14
call fcn.14003dcda
mov ebp, eax
test rdi, rdi
je 0x1400317cf
mov rax, qword [rdi + 0x18]
cmp rax, qword [rdi + 0x20]
je 0x1400317d3
movzx eax, word [rax]
jmp 0x1400317e3
mov al, 1
jmp 0x1400317ec
mov rax, qword [rdi]
mov rax, qword [rax + 0x40]
mov rcx, rdi
call qword [0x140125008]
cmp ax, 0xffff
sete al
jne 0x1400317ee
xor edi, edi
add r15d, 0xffffffd0
cmp bpl, al
je 0x140031894
cmp r12d, 2
jl 0x140031894
mov rcx, qword [r14]
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
je 0x140031817
movzx ebp, word [rax]
jmp 0x140031826
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x140125008]
mov ebp, eax
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov rcx, rbx
mov dx, 4
mov r8d, ebp
call qword [0x140125008]
test al, al
je 0x140031786
mov rax, qword [rbx]
mov rax, qword [rax + 0x68]
mov rcx, rbx
mov edx, ebp
xor r8d, r8d
call qword [0x140125008]
mov ebp, eax
mov rcx, qword [r14]
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
je 0x140031873
add rax, 2
mov qword [rcx + 0x18], rax
jmp 0x140031880
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [0x140125008]
lea eax, [r15 + r15*4]
movsx ecx, bpl
lea r15d, [rcx + rax*2]
dec r12d
jmp 0x1400317b1
mov rcx, r14
call fcn.14003dcda
mov ebx, eax
test rdi, rdi
je 0x1400318b2
mov rax, qword [rdi + 0x18]
cmp rax, qword [rdi + 0x20]
je 0x1400318c4
movzx eax, word [rax]
jmp 0x1400318d4
mov eax, 2
test bl, bl
jne 0x140031784
jmp 0x140031786
mov rax, qword [rdi]
mov rax, qword [rax + 0x40]
mov rcx, rdi
call qword [0x140125008]
cmp ax, 0xffff
sete al
xor bl, al
mov eax, 2
je 0x140031784
jmp 0x140031786
Function at 0x140041100
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14010d6b8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdx
mov qword [rcx], 0
test rdx, rdx
je 0x140041171
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x140041157
call fcn.1400470c0
mov rcx, qword [rsi]
call fcn.14004e570
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140041169
mov qword [rsi], rdi
call fcn.1400470c0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x20], rax
cmp rax, rdi
je 0x14004119f
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14009fa30
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdi, [0x140041400]
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.14004d410
mov rbx, rax
lea rcx, [rsp + 0x48]
mov rdx, rdi
call fcn.14004d410
lea rcx, str.handle___::GetCurrentProcess__
mov rdx, rax
mov r8, rbx
call fcn.14004d640
test rax, rax
je 0x140041185
mov rdi, rax
lea rdx, str.Process
lea r8, str....._baseprocessprocess_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x29
call fcn.1400470a0
lea r14, [rsp + 0x40]
mov rcx, r14
mov rdx, rdi
mov r8, rbx
call fcn.14004d9b0
mov rcx, r14
call fcn.14004dad0
jmp 0x140041185

Function at 0x140041270
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x14010d6b8]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x14004129f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400412a2
mov rcx, qword [rsi]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1400412c6
mov dil, 1
test bl, bl
je 0x14004132d
cmp byte [rsi + 8], 0
je 0x14004130c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14004130f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 0
je 0x1400412dd
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400412e0
mov rcx, qword [rsi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400412f3
xor edi, edi
jmp 0x14004132d
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 0
je 0x14004131c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14004131f
mov rcx, qword [rsi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x14004132d
mov rcx, qword [rsi]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14009fa30
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret