joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013d94
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x140039018]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edi, edi
mov rbx, rdx
test rcx, rcx
jne 0x140013c09
call fcn.14001137c
mov dword [rax], 0x16
call fcn.1400167c8
or eax, 0xffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000bbf0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x290
pop rdi
ret
cmp rcx, 0xffffffffffffffff
je 0x140013bd5
test rbx, rbx
je 0x140013bd5
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140013c64
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x140013c3d
cmp eax, 3
jbe 0x140013c57
cmp eax, 8
je 0x140013c4a
cmp eax, 0x12
je 0x140013c57
call fcn.14001137c
mov dword [rax], 0x16
jmp 0x140013be5
call fcn.14001137c
mov dword [rax], 0xc
jmp 0x140013be5
call fcn.14001137c
mov dword [rax], 2
jmp 0x140013be5
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, edi
mov dword [rbx], eax
call fcn.140013cd4
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.140013cd4
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.140013cd4
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.14001c364
test eax, eax
je 0x140013be8
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400167e8
int3
jmp 0x140013bac

Function at 0x1400142c0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400142e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001130c
or eax, 0xffffffff
jmp 0x1400142e2
xor eax, eax
add rsp, 0x28
ret

Function at 0x140015bb4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400159e0
Function at 0x140002180
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x14000227b
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x140002283
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400022ba
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x140002290
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400022e5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x14000230b
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x1400022f0
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a420
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002d008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a465
xor al, al
jmp 0x14000a4b2
cmp word [rbx], 0
je 0x14000a47d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a470
cmp word [rsp + 0x30], 0
je 0x14000a4ab
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a4d3
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a490
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b700
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000f324
int3
Function at 0x14000ac70
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001f4d0
sub rsp, rax
mov rax, qword [0x14002d008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x140031590]
lea rsi, [0x1400335d0]
mov rdi, rcx
test r11d, r11d
jne 0x14000ace9
mov r8d, 0x1000
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
call fcn.14000a4e0
test al, al
je 0x14000adcf
lea rcx, [rsp + 0x20]
call fcn.140013a20
movsxd r11, dword [0x140031590]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x140031590], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000ad24
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ad14
add rax, 2
test ecx, ecx
jne 0x14000ad00
test edx, edx
je 0x14000ad47
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000acf4
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000ad30
cmp rax, 2
jne 0x14000ad4b
cmp word [rdi + 2], 0x3a
jne 0x14000ad4b
mov al, 1
jmp 0x14000adae
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000ad78
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000ad78
mov bl, 1
jmp 0x14000ad7c
test bl, bl
je 0x14000ada3
cmp dword [0x140031590], 0x400
jge 0x14000ada3
mov rcx, rdi
call fcn.140013a20
movsxd rdx, dword [0x140031590]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x140031590], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b700
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str._HOME_
call fcn.14000ab10
int3
Function at 0x14000aef0
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x140031598]
test rcx, rcx
je 0x14000af2b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000af1e
mov rcx, qword [0x140031598]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140031598]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400355e8], 0
je 0x14000b01e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x1400288b8]
mov qword [rsp + 0x80], rsi
lea rsi, [0x1400315d0]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000afff
test al, 0x10
je 0x14000afff
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000afa5
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000f318
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000f183
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f183
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f183
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f183
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f183
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f183
cmp dword [rcx + 0xf8], 0
je 0x14000f183
mov ecx, ebx
call fcn.14000f234
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f010
nop
cmp dword [rbp + 0x20], 0
je 0x14000f1d1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f1dc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f114
Function at 0x140018904
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001898b
mov rsi, rbx
cmp word [rax], bp
je 0x14001894a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140018934
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140018930
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016134
mov rdi, rax
test rax, rax
je 0x140018978
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d390
mov rbp, rdi
xor ecx, ecx
call fcn.140015158
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001af54
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001af6a
mov al, 1
jmp 0x14001afca
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001af7b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001afc8
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400190a8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001afc8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001afc8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001afc8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001afca
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400a02a3
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400c6160
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14024211d]
call fcn.1400a1a40
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x1400c61b7
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x1400c62c3
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x1400c625c
cmp qword [rbp + 0x28], 0
jle 0x1400c625c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x1400c61fc
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.1400a18b0
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x1400c62b2
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x1400c62b2
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1400a0e65
Capabilities:
Terminate process

Disassembly:
jmp 0x1401d8370
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400a1234
Capabilities:
Parse pe header

Disassembly:
jmp 0x1401daae0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1401dab00
xor al, al
jmp 0x1401dab81
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1401dab13
xor al, al
jmp 0x1401dab81
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1401dab3d
xor al, al
jmp 0x1401dab81
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1401dab51
xor al, al
jmp 0x1401dab81
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1401dab63
xor al, al
jmp 0x1401dab81
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1401dab7f
xor al, al
jmp 0x1401dab81
mov al, 1
add rsp, 0x38
ret
Function at 0x1400a19eb
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400bf050
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x14022f6c0]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x14024211d]
call fcn.1400a1a40
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x1400bf0b6
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400bf0bd
mov al, 1
jmp 0x1400bf20d
call fcn.1400a0749
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.1400a0749
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.1400a14aa
movzx eax, al
test eax, eax
je 0x1400bf10e
xor al, al
jmp 0x1400bf20d
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x1400bf173
cmp dword [rbp + 0x154], 1
je 0x1400bf17e
cmp dword [rbp + 0x154], 3
je 0x1400bf1fc
jmp 0x1400bf20b
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x1400bf1ce
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x1400bf1ce
xor al, al
jmp 0x1400bf20d
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400bf1e9
mov dword [rbp + 0x154], 1
jmp 0x1400bf1f3
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x1400bf20d
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400bf20d
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1400a15c2
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.1400a0ca3
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x1400cb500
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x5a8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x102
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x5c8]
mov rax, qword [0x14022f6c0]
xor rax, rbp
mov qword [rbp + 0x570], rax
lea rcx, [0x1402423b5]
call fcn.1400a1a40
mov qword [rbp + 8], 0xffffffffffffffff
mov rcx, qword [rbp + 0x5a8]
call fcn.1400a08cf
lea rdx, [rbp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x1400cb5aa
mov rcx, qword [rbp + 0x5a0]
call fcn.1400a1658
nop
mov rcx, qword [rbp + 0x5a8]
call fcn.1400a1658
nop
mov rcx, qword [rbp + 0x5b0]
call fcn.1400a1658
jmp 0x1400cb713
mov eax, dword [rbp + 0x30]
and eax, 0x10
test eax, eax
je 0x1400cb6cc
lea rdx, [rbp + 0x5c]
lea rcx, [rbp + 0x298]
call fcn.1400a08bb
nop
lea rdx, [0x1401f2198]
lea rcx, [rbp + 0x298]
call fcn.1400a08e3
movzx eax, al
test eax, eax
jne 0x1400cb5fd
lea rdx, [0x1401f219c]
lea rcx, [rbp + 0x298]
call fcn.1400a08e3
movzx eax, al
test eax, eax
je 0x1400cb60e
lea rcx, [rbp + 0x298]
call fcn.1400a1658
jmp 0x1400cb6cc
lea rax, [rbp + 0x458]
mov qword [rbp + 0x498], rax
lea rax, [rbp + 0x4b8]
mov qword [rbp + 0x4f8], rax
mov rdx, qword [rbp + 0x5b0]
mov rcx, qword [rbp + 0x498]
call fcn.1400a004b
mov qword [rbp + 0x548], rax
mov rax, qword [rbp + 0x548]
mov qword [rbp + 0x550], rax
lea r8, [0x1401ef050]
mov rdx, qword [rbp + 0x5a0]
lea rcx, [rbp + 0x518]
call fcn.1400a16e9
mov qword [rbp + 0x558], rax
mov rax, qword [rbp + 0x558]
mov qword [rbp + 0x560], rax
lea r8, [rbp + 0x5c]
mov rdx, qword [rbp + 0x560]
mov rcx, qword [rbp + 0x4f8]
call fcn.1400a0f64
mov qword [rbp + 0x568], rax
mov rdx, qword [rbp + 0x550]
mov rcx, qword [rbp + 0x568]
call fcn.1400cb7d0
nop
lea rcx, [rbp + 0x518]
call fcn.1400a1658
nop
lea rcx, [rbp + 0x298]
call fcn.1400a1658
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400cb5aa
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rcx, qword [rbp + 0x5a0]
call fcn.1400a1658
nop
mov rcx, qword [rbp + 0x5a8]
call fcn.1400a1658
nop
mov rcx, qword [rbp + 0x5b0]
call fcn.1400a1658
lea rcx, [rbp - 0x20]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1400a15c2
mov rcx, qword [rbp + 0x570]
xor rcx, rbp
call fcn.1400a0ca3
lea rsp, [rbp + 0x588]
pop rdi
pop rbp
ret
Function at 0x14011ba90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push rdi
sub rsp, 0x1c8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1e8]
mov rax, qword [0x14022f6c0]
xor rax, rbp
mov qword [rbp + 0x198], rax
lea rcx, [0x140242c60]
call fcn.1400a1a40
mov dword [rbp + 0x24], 0
lea rax, [rbp + 0x1d0]
mov qword [rbp + 8], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x1c8]
movsx eax, byte [rcx + rax]
sub eax, 0x30
mov byte [rbp + 0x64], al
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rbp + 0x1c8]
movsx eax, byte [rcx + rax]
sub eax, 0x30
mov byte [rbp + 0x84], al
mov dword [rbp + 0xa4], 0
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rbp + 0x1c8]
movsx eax, byte [rcx + rax]
sub eax, 0x61
cdqe
lea rcx, [0x1401f5838]
movzx eax, word [rcx + rax*2]
mov word [rbp + 0xc4], ax
mov eax, 1
imul rax, rax, 3
mov rcx, qword [rbp + 0x1c8]
movzx eax, byte [rcx + rax]
mov byte [rbp + 0x44], al
mov dword [rbp + 0xa4], 0
movzx eax, byte [rbp + 0x64]
mov byte [rbp + 0x194], al
movzx eax, byte [rbp + 0x64]
dec al
mov byte [rbp + 0x64], al
movsx eax, byte [rbp + 0x194]
test eax, eax
je 0x14011bbf4
mov rax, qword [rbp + 0x1c0]
movzx eax, byte [rax]
lea rcx, [0x1401f5650]
movzx eax, byte [rcx + rax]
and eax, 4
test eax, eax
jne 0x14011bbc6
jmp 0x14011bc81
imul eax, dword [rbp + 0xa4], 0xa
mov rcx, qword [rbp + 0x1c0]
movsx ecx, byte [rcx]
lea eax, [rax + rcx - 0x30]
mov dword [rbp + 0xa4], eax
mov rax, qword [rbp + 0x1c0]
inc rax
mov qword [rbp + 0x1c0], rax
jmp 0x14011bb87
movsx eax, byte [rbp + 0x84]
cmp dword [rbp + 0xa4], eax
jl 0x14011bc2c
movzx eax, word [rbp + 0xc4]
cmp dword [rbp + 0xa4], eax
jg 0x14011bc2c
movsx eax, byte [rbp + 0x44]
test eax, eax
je 0x14011bc2e
movsx eax, byte [rbp + 0x44]
mov rcx, qword [rbp + 0x1c0]
movsx ecx, byte [rcx]
cmp eax, ecx
je 0x14011bc2e
jmp 0x14011bc81
mov rax, qword [rbp + 8]
add rax, 8
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov rax, qword [rax - 8]
mov ecx, dword [rbp + 0xa4]
mov dword [rax], ecx
mov rax, qword [rbp + 0x1c0]
inc rax
mov qword [rbp + 0x1c0], rax
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
mov rax, qword [rbp + 0x1c8]
add rax, 4
mov qword [rbp + 0x1c8], rax
movsx eax, byte [rbp + 0x44]
test eax, eax
jne 0x14011bafa
mov qword [rbp + 8], 0
mov eax, dword [rbp + 0x24]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x140204340]
call fcn.1400a15c2
mov eax, edi
mov rcx, qword [rbp + 0x198]
xor rcx, rbp
call fcn.1400a0ca3
lea rsp, [rbp + 0x1a8]
pop rdi
pop rbp
ret
Function at 0x140185e50
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rcx, [0x140242c60]
call fcn.1400a1a40
mov rax, qword [rbp + 0x100]
mov qword [rax], 0
mov ecx, 0x28
call fcn.14016bb50
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140185ea6
mov eax, 7
jmp 0x140185f77
cmp dword [0x14022d024], 0
je 0x140185ebd
mov ecx, reloc.OLEAUT32.dll_SetErrorInfo
call fcn.14015c730
test eax, eax
je 0x140185ed0
mov r8d, 0x28
xor edx, edx
mov rcx, qword [rbp + 8]
call fcn.1400a13b5
jmp 0x140185f3a
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x108]
mov qword [rax + 0x10], rcx
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x110]
mov qword [rax + 0x18], rcx
mov rax, qword [rbp + 8]
add rax, 8
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rbp + 8]
lea r8, [0x1401860d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 8]
mov qword [rcx], rax
mov rax, qword [rbp + 8]
cmp qword [rax], 0
jne 0x140185f3a
mov r8d, 0x28
xor edx, edx
mov rcx, qword [rbp + 8]
call fcn.1400a13b5
mov rax, qword [rbp + 8]
cmp qword [rax + 0x10], 0
jne 0x140185f67
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, qword [rbp + 8]
mov dword [rcx + 8], eax
mov rcx, qword [rbp + 0x110]
call qword [rbp + pe_nt_image_headers64]
mov rcx, qword [rbp + 8]
mov qword [rcx + 0x20], rax
mov rax, qword [rbp + 0x100]
mov rcx, qword [rbp + 8]
mov qword [rax], rcx
xor eax, eax
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret