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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004953
cmp byte [rcx + 0x71], 0
je 0x140004953
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000494f
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 0x140004914
sub eax, 1
je 0x140004918
cmp eax, 2
jne 0x14000494f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005fe0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004946
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 0x14000494f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400048fc
xor al, al
jmp 0x1400048fc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005fe0
add rsp, 0x60
pop rbx
ret

Function at 0x140006ae0
Capabilities:
Parse pe header

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

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
sub rsp, 0x238
mov rax, qword [0x14005ce40]
xor rax, rsp
mov qword [rsp + 0x220], rax

Function at 0x1400011e0
Capabilities:
Delete file
Get common file path

Disassembly:
push rbx
sub rsp, 0x430
mov rax, qword [0x14005ce40]
xor rax, rsp
mov qword [rsp + 0x420], rax
lea rcx, [rsp + 0x20]
mov edx, 0x200
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov rax, qword [str.drivers_ftdibus.sys]
xor ebx, ebx
test rax, rax
je 0x140001270
mov qword [rsp + 0x440], rdi
lea rdi, str.drivers_ftdibus.sys
nop dword [rax + rax]
lea r8, [rsp + 0x20]
lea rdx, str._s_s
lea rcx, [rsp + 0x220]
mov r9, rax
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x220]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [rdi + rbx*8 + 8]
inc rbx
test rax, rax
jne 0x140001230
mov rdi, qword [rsp + 0x440]
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.14002b650
add rsp, 0x430
pop rbx
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 0x140011cf4
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
movsxd rsi, r8d
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0xa0], 0
jne 0x140011d32
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x140011de6
call fcn.1400132bc
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x140011d51
mov ecx, 0x80004005
call fcn.140003670
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x118]
mov rdx, rsi
or rsi, 0xffffffffffffffff
mov r9, rsi
mov r8, qword [rsp + 0x40]
mov rcx, rdi
call fcn.14002d7dc
test eax, eax
je 0x140011db9
cmp eax, 0xc
je 0x140011db3
cmp eax, 0x16
je 0x140011dad
cmp eax, 0x22
je 0x140011dad
cmp eax, 0x50
je 0x140011db9
call fcn.140013698
int3
call fcn.140013698
int3
call fcn.140013650
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x140011de4
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140013270
Capabilities:
Encode data using xor

Disassembly:
lea rax, vtable.CFont.0
mov qword [rcx], rax
jmp fcn.140009be0
Function at 0x14002c8bc
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.14003409c
nop
cmp dword [0x1400622d0], 1
je 0x14002c868
mov dword [0x1400622cc], 1
mov byte [0x1400622c8], r12b
test ebx, ebx
jne 0x14002c854
mov rcx, qword [0x140064670]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14002c841
mov rcx, qword [0x140064668]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x14002c7e0
call fcn.14002f5f4
cmp qword [rdi], rax
jne 0x14002c7e0
jmp 0x14002c7c6
cmp rdi, rsi
jb 0x14002c841
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.14002f5f4
mov qword [rdi], rax
call rbx
mov rcx, qword [0x140064670]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140064668]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x14002c81f
cmp r13, rax
je 0x14002c83f
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x14002c7c6
lea rdx, [0x140042ce8]
lea rcx, [0x140042cd0]
call fcn.14002c610
lea rdx, [0x140042cf8]
lea rcx, [0x140042cf0]
call fcn.14002c610
nop
test r12d, r12d
je 0x14002c877
mov ecx, 8
call fcn.140033f9c
test r12d, r12d
jne 0x14002c8a2
mov dword [0x1400622d0], 1
lea ecx, [r12 + 8]
call fcn.140033f9c
mov ecx, r15d
call fcn.14002c5a4
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x14002c730

Function at 0x14002c8c8
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14002c730
Function at 0x14002fb47
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14005ce40]
jne 0x14002b66a
rol rcx, 0x10
test cx, 0xffff
jne 0x14002b666
repz ret
ror rcx, 0x10
jmp 0x14002faa0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400628c0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1400629b8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14002fb25
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400628c0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14002fb47
mov rax, qword [rsp + 0x88]
mov qword [0x1400629b8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140062958], rax
mov rax, qword [0x1400629b8]
mov qword [0x140062830], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140062940], rax
mov dword [0x140062820], 0xc0000409
mov dword [0x140062824], 1
mov rax, qword [0x14005ce40]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14005ce48]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400628b8], eax
mov ecx, 1
call fcn.14003764c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14004a9d0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400628b8], 0
jne 0x14002fbce
mov ecx, 1
call fcn.14003764c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140037174
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.14002f5f4
xor ebx, ebx
mov rdi, rax
cmp qword [0x140063150], rbx
jne 0x14003727a
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14003734f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003734f
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x14004ac20]
mov rcx, rsi
mov qword [0x140063150], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x14004ac08]
mov rcx, rsi
mov qword [0x140063158], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x140063160], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140063170], rax
test rax, rax
je 0x140037271
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140063168], rax
jmp 0x140037281
mov rax, qword [0x140063168]
jmp 0x140037288
mov rax, qword [0x140063168]
mov r11, qword [0x140063170]
cmp rax, rdi
je 0x1400372f0
cmp r11, rdi
je 0x1400372f0
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140063170]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x1400372f0
test rax, rax
je 0x1400372f0
call rsi
test rax, rax
je 0x1400372ea
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400372ea
test byte [rsp + 0x38], 1
jne 0x1400372f0
bts ebp, 0x15
jmp 0x14003732e
mov rcx, qword [0x140063158]
cmp rcx, rdi
je 0x14003732e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14003732e
call rax
mov rbx, rax
test rax, rax
je 0x14003732e
mov rcx, qword [0x140063160]
cmp rcx, rdi
je 0x14003732e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14003732e
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140063150]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14003734f
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140037351
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140009290
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0xf0
mov rax, qword [0x14009b080]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rsi, r8
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], dil
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x38], 0x67452301
mov dword [rsp + 0x3c], 0xefcdab89
mov dword [rsp + 0x40], 0x98badcfe
mov dword [rsp + 0x44], 0x10325476
mov eax, r8d
and eax, 0x1fffffff
mov dword [rsp + 0x30], eax
mov eax, r8d
shr eax, 0x1d
mov dword [rsp + 0x34], eax
cmp r8d, 0x40
jb 0x14000932f
and r8d, 0xffffffc0
lea rcx, [rsp + 0x30]
call fcn.140008640
mov rdx, rax
and esi, 0x3f
mov r8d, esi
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xd0]
call fcn.140009110
mov ebp, 0x57
nop dword [rax]
nop word [rax + rax]
movzx esi, byte [rsp + rdi + 0xd0]
movzx eax, sil
shr al, 4
mov r9d, Ordinal_50
cmp al, 0xa
cmovae r9d, ebp
add r9b, al
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400093aa
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x14000939f
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400093b2
mov rcx, rbx
call fcn.140003e70
and sil, 0xf
mov r9d, Ordinal_50
cmp sil, 0xa
cmovae r9d, ebp
add r9b, sil
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400093f3
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x1400093e8
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400093fb
mov rcx, rbx
call fcn.140003e70
inc rdi
cmp rdi, 0x10
jb 0x140009360
mov rax, rbx
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140079ae0
mov rbx, qword [rsp + 0x128]
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140012800
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 0x140012828
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 0x14001284e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140012850
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400128a9
test ecx, ecx
jle 0x140012889
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 0x1400128a9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400128a9
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 0x1400128d0
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 0x1400128f2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140012908
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 0x140012924
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140012926
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140012962
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 0x1400129fe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001299d
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 0x1400129de
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 0x1400129fe
cmp rbx, rax
ja 0x1400129b0
test rbx, rbx
je 0x1400129fe
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 0x140012e60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14009b080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140012e8d
xor eax, eax
jmp 0x140012ff9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140012ec7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140012ec7
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 0x140012ff9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140012fec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140012f0a
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 0x140012f35
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 0x140012ff1
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 0x140012fa4
sub eax, 1
je 0x140012fa4
cmp eax, 2
jne 0x140012fec
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 0x140012ff1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140012fd2
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 0x140012fec
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140012ff1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140079ae0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140015210
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14009b080]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400152e3
cmp byte [rcx + 0x71], 0
je 0x1400152e3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x1400152df
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 0x1400152a4
sub eax, 1
je 0x1400152a8
cmp eax, 2
jne 0x1400152df
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140079ae0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400152d6
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 0x1400152df
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001528c
xor al, al
jmp 0x14001528c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140079ae0
add rsp, 0x60
pop rbx
ret

Function at 0x140027c50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov edx, 0x1000
xor ecx, ecx
mov r8d, edx
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x140027c83
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movups xmm0, xmmword [0x14009c3e0]
mov ecx, ebx
movups xmmword [rax], xmm0
movsd xmm1, qword [0x14009c3f0]
movsd qword [rax + 0x10], xmm1
mov eax, dword [0x14009c3f8]
mov dword [rdi + 0x18], eax
movzx eax, word [0x14009c3fc]
mov word [rdi + 0x1c], ax
call rdi
xor edx, edx
mov r8d, 0x1000
mov rcx, rdi
mov ebx, eax
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14002b7a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x14009b080]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov qword [rsp + 0x38], rcx
xor esi, esi
mov ebx, edx
mov rdi, rcx
mov rcx, qword [0x14009c4d8]
mov r8d, esi
sar edx, 0x10
shl edx, 3
add rdx, qword [0x14009c2e0]
mov rax, qword [rcx]
add rax, 0x10
mov qword [rsp + 0x38], rsi
add rdx, rax
je 0x14002b814
lea r9d, [rsi + 8]
mov qword [rsp + 0x20], rsi
lea r8, [rsp + 0x38]
call fcn.140027740
mov r8, qword [rsp + 0x38]
mov rcx, qword [0x14009c4d8]
movzx eax, bx
lea rbp, [r8 + rax*2]
movzx eax, si
mov word [rsp + 0x34], ax
test rbp, rbp
je 0x14002b84c
mov r9d, 2
mov qword [rsp + 0x20], rsi
lea r8, [rsp + 0x34]
mov rdx, rbp
call fcn.140027740
movzx eax, word [rsp + 0x34]
mov rcx, qword [0x14009c4d8]
movzx ebx, ax
shr ebx, 6
test ebx, ebx
je 0x14002b9a8
lea rdx, [rbp + 2]
mov r9d, ebx
lea r8, [rsp + 0x40]
mov qword [rsp + 0x480], r14
mov qword [rsp + 0x20], rsi
call fcn.140027740
lea rcx, [rsp + 0x40]
mov edx, Ordinal_46
mov r8d, esi
test ebx, ebx
je 0x14002b8a8
nop dword [rax]
or edx, r8d
lea rcx, [rcx + 1]
mov eax, edx
inc r8d
not al
add edx, edx
xor byte [rcx - 1], al
cmp r8d, ebx
jb 0x14002b890
mov r14, qword [rsp + 0x480]
lea rax, [rsp + 0x40]
xorps xmm0, xmm0
mov byte [rsp + rbx + 0x40], sil
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov rbx, 0xffffffffffffffff
mov qword [rdi + 0x18], rsi
nop
inc rbx
cmp byte [rax + rbx], sil
jne 0x14002b8d0
movabs rbp, 0x7fffffffffffffff
cmp rbx, rbp
ja 0x14002b9dd
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
cmp rbx, 0xf
ja 0x14002b917
mov r8, rbx
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rdi], sil
jmp 0x14002b9b7
mov rax, rbx
or rax, 0xf
cmp rax, rbp
jbe 0x14002b94c
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140079b00
test rax, rax
je 0x14002b973
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14002b987
mov ecx, reloc.WLDAP32.dll_Ordinal_22
mov rbp, rax
cmp rax, rcx
cmovb rbp, rcx
lea rcx, [rbp + 1]
cmp rcx, 0x1000
jb 0x14002b97a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14002b9e3
jmp 0x14002b931
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14002b987
call fcn.140079b00
mov rsi, rax
mov r8, rbx
mov qword [rdi], rsi
lea rdx, [rsp + 0x40]
mov qword [rdi + 0x10], rbx
mov rcx, rsi
mov qword [rdi + 0x18], rbp
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
jmp 0x14002b9b7
lea rdx, [0x14008bbf0]
mov rcx, rdi
call fcn.140003800
mov rax, rdi
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140079ae0
mov rbx, qword [rsp + 0x488]
add rsp, 0x450
pop rdi
pop rsi
pop rbp
ret
call fcn.140001750
int3
call fcn.1400016b0
int3