joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002680
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x6a0
mov rax, qword [0x14000c010]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov ebx, ecx
mov r8d, ecx
mov ecx, 0x1fffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
test rax, rax
je 0x14000284e
mov qword [rsp + 0x6b8], rsi
mov ecx, 0x40
mov qword [rsp + 0x6c0], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor edx, edx
lea rcx, [rsp + 0x584]
mov r8d, 0x104
mov rsi, rax
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x480]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
xor edi, edi
mov edx, ebx
mov qword [rsp + 0x470], rdi
lea ecx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400027c7
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x438
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
jne 0x140002750
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400027c7
lea rcx, [rsp + 0x260]
mov rax, 0xffffffffffffffff
nop
cmp word [rcx + rax*2 + 2], di
lea rax, [rax + 1]
jne 0x140002760
lea rcx, [rsp + 0x258]
mov r8d, 4
lea rcx, [rcx + rax*2]
lea rdx, str..exe
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
je 0x14000279e
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
jmp 0x14000273d
lea r8, [rsp + 0x260]
mov edx, 0x104
lea rcx, [rsp + 0x480]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x48]
lea rax, [rsp + 0x470]
mov r9d, 0x40
mov r8, rsi
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x1400027fa
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000283e
mov ebx, dword [rsi + 0x3c]
mov ecx, 0x108
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea rdx, [rdi + rbx]
mov r9d, 0x108
mov rsi, rax
mov rcx, rbp
lea rax, [rsp + 0x470]
mov r8, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x14000283b
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsi + 8]
mov rsi, qword [rsp + 0x6b8]
mov rdi, qword [rsp + 0x6c0]
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.140005ec0
mov rbx, qword [rsp + 0x6c8]
add rsp, 0x6a0
pop rbp
ret
Function at 0x140004080
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000c010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400040ad
xor eax, eax
jmp 0x14000420a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x1400040d8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x1400040d8
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x14000420a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400041fd
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14000411b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140004146
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 0x140004202
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 0x1400041b5
sub eax, 1
je 0x1400041b5
cmp eax, 2
jne 0x1400041fd
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 0x140004202
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400041e3
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 0x1400041fd
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140004202
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140005ec0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140004d70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000c010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004e43
cmp byte [rcx + 0x71], 0
je 0x140004e43
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140004e3f
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 0x140004e04
sub eax, 1
je 0x140004e08
cmp eax, 2
jne 0x140004e3f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005ec0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004e36
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 0x140004e3f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140004dec
xor al, al
jmp 0x140004dec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005ec0
add rsp, 0x60
pop rbx
ret

Function at 0x140006854
Capabilities:
Parse pe header

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

Disassembly:
call fcn.14097c1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14097c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14097c06f
add dl, dl
jne 0x14097c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14097c0f6
xor eax, eax
add dl, dl
jne 0x14097c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14097c1ad
add dl, dl
jne 0x14097c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14097c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14097c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14097c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14097c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14097c07e
mov eax, 1
add dl, dl
jne 0x14097c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14097c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14097c0fb
sub eax, ebx
mov ebx, 1
jne 0x14097c14c
mov ecx, 1
add dl, dl
jne 0x14097c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14097c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14097c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14097c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14097c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14097c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14097c15d
cmp eax, 0x7d00
jae 0x14097c19b
cmp eax, 0x500
jb 0x14097c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14097c07e
cmp eax, 0x7f
ja 0x14097c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14097c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14097c1d2
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 0x14097c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400279dc
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b104
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b104
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027b2c
cmp rax, 0xffffffffffffffff
je 0x140027b2c
xor edi, edi
test rbp, rbp
jle 0x140027ad7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001da18
mov rbx, rax
test rax, rax
jne 0x140027a64
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027acd
mov edx, 0x8000
mov ecx, r14d
call fcn.140018a68
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001bde0
cmp eax, 0xffffffff
je 0x140027aad
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027a74
mov edx, r15d
mov ecx, r14d
call fcn.140018a68
jmp 0x140027acd
cmp byte [rsi + 0x38], dil
je 0x140027ac4
cmp dword [rsi + 0x34], 5
jne 0x140027ac4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027acd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400197c8
jmp 0x140027b40
jns 0x140027b40
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b104
cmp rax, 0xffffffffffffffff
jne 0x140027af8
cmp byte [rsi + 0x30], dil
je 0x140027b40
mov edi, dword [rsi + 0x2c]
jmp 0x140027b40
mov ecx, r14d
call fcn.140017594
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027b40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027b40
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027b39
mov eax, dword [rsi + 0x2c]
jmp 0x140027b3e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b104
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140028c30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140028c58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140028c58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001ae0
Capabilities:
Parse pe header

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

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

Function at 0x140007c00
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400079f0
Function at 0x14000cedc
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000cf0c
xor eax, eax
jmp 0x14000cfcf
mov rbp, rbx
cmp word [rax], si
je 0x14000cf31
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000cf18
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000cf14
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000ce2c
movsxd r14, eax
test eax, eax
jne 0x14000cf6f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000cf05
mov rcx, r14
call fcn.140008548
mov rdi, rax
test rax, rax
jne 0x14000cf88
xor ecx, ecx
call fcn.14000850c
jmp 0x14000cf64
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000ce2c
test eax, eax
jne 0x14000cfb9
mov rcx, rdi
call fcn.14000850c
jmp 0x14000cfc3
xor ecx, ecx
call fcn.14000850c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400122cc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000bf30
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140012356
cmp byte [rbp - 0x21], r15b
je 0x140012351
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001238c
call fcn.140008d1c
test eax, eax
jne 0x140012378
cmp byte [rbp - 0x21], r15b
je 0x140012370
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001238c
cmp byte [rbp - 0x21], r15b
je 0x140012389
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000b50c
test eax, eax
jne 0x14001242c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000bf30
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400123cb
cmp byte [rbp - 0x21], r15b
je 0x140012400
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140012400
call fcn.140008d1c
test eax, eax
jne 0x1400123ec
cmp byte [rbp - 0x21], r15b
je 0x1400123e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140012400
cmp byte [rbp - 0x21], r15b
je 0x1400123fd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000b50c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001242c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001242f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001243d
mov rcx, rdi
call fcn.14000850c
cmp byte [rbp + 0x3f], r15b
je 0x14001244c
mov rcx, qword [rbp + 0x27]
call fcn.14000850c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400149f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140014a18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140014a18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001e58
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, r8
mov qword [rbp - 0x10], rdx
mov r13, rcx
lea r15, [rbp - 1]
mov rcx, r15
call fcn.140001020
lea r14, [rbp - 0x28]
mov edx, 0x100
mov rcx, r14
mov r8, r15
call fcn.140002060
xor r15d, r15d
mov rcx, r14
mov rdx, r15
call fcn.140002086
mov byte [rax], r15b
inc r15
cmp r15, 0x100
jne 0x140001ea2
xor r14d, r14d
lea r15, [rbp - 0x28]
xor esi, esi
mov rcx, r15
mov rdx, r14
call fcn.140002086
movzx edi, byte [rax]
add edi, esi
mov rcx, rbx
call fcn.1400020a4
mov rcx, rax
mov rax, r14
xor edx, edx
div rcx
mov rcx, rbx
call fcn.14000208e
movsx eax, byte [rax]
mov esi, edi
add esi, eax
lea eax, [rax + rdi + 0xff]
cmovns eax, esi
and eax, 0xffffff00
sub esi, eax
movsxd rdx, esi
mov rcx, r15
call fcn.140002086
mov r12, rax
mov rcx, r15
mov rdx, r14
call fcn.140002086
mov rcx, rax
mov rdx, r12
call fcn.1400020a9
inc r14
cmp r14, 0x100
jne 0x140001ec5
mov rcx, r13
mov rsi, qword [rbp - 0x10]
mov rdx, rsi
call fcn.1400020b4
mov rcx, rsi
call fcn.1400020a4
test rax, rax
je 0x14000200e
xor ebx, ebx
xor esi, esi
xor edi, edi
lea eax, [rsi + 1]
lea ecx, [rsi + 0x100]
test eax, eax
cmovns ecx, eax
and ecx, 0xffffff00
neg ecx
add esi, ecx
inc esi
movsxd r15, esi
lea r14, [rbp - 0x28]
mov rcx, r14
mov rdx, r15
call fcn.140002086
add dil, byte [rax]
movzx r12d, dil
mov rcx, r14
mov rdx, r12
call fcn.140002086
mov r14, r13
mov r13, rax
lea rcx, [rbp - 0x28]
mov rdx, r15
call fcn.140002086
mov rcx, rax
mov rdx, r13
mov r13, r14
call fcn.1400020a9
lea r14, [rbp - 0x28]
mov rcx, r14
mov rdx, r15
call fcn.140002086
mov r15b, byte [rax]
mov rcx, r14
mov rdx, r12
call fcn.140002086
add r15b, byte [rax]
movzx edx, r15b
mov rcx, r14
call fcn.140002086
mov r15b, byte [rax]
mov rcx, r13
mov rdx, rbx
call fcn.14000208e
xor byte [rax], r15b
inc rbx
mov rcx, qword [rbp - 0x10]
call fcn.1400020a4
cmp rax, rbx
ja 0x140001f5e
lea rcx, [rbp - 0x28]
call fcn.140002140
mov rax, r13
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x140002145
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov esi, r8d
mov ebp, edx
mov rdi, rcx
movsxd r14, edx
mov rcx, r14
call fcn.140009fe4
mov rbx, rax
mov ecx, esi
call fcn.1401c0174
test r14d, r14d
jle 0x140002194
mov r14d, ebp
xor r15d, r15d
mov bpl, byte [rdi + r15]
xor bpl, sil
call fcn.1401c018c
xor al, bpl
mov byte [rbx + r15], al
inc r15
cmp r14, r15
jne 0x140002179
mov rax, rbx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400023ad
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov ebx, r9d
mov r14, r8
mov edi, edx
mov rsi, rcx
mov rax, qword [0x140270700]
xor rax, rsp
mov qword [rsp + 0x228], rax
xor r15d, r15d
lea rcx, [rsp + 0x120]
mov r8d, 0x100
xor edx, edx
call fcn.1401d6bf0
lea rcx, [rsp + 0x20]
mov r8d, 0x100
xor edx, edx
call fcn.1401d6bf0
mov byte [rsp + r15 + 0x20], r15b
mov eax, r15d
xor edx, edx
div ebx
mov al, byte [r14 + rdx]
mov byte [rsp + r15 + 0x120], al
inc r15
cmp r15, 0x100
jne 0x140002402
xor eax, eax
xor ecx, ecx
mov dl, byte [rsp + rax + 0x20]
add cl, dl
add cl, byte [rsp + rax + 0x120]
movzx r8d, cl
mov r9b, byte [rsp + r8 + 0x20]
mov byte [rsp + rax + 0x20], r9b
mov byte [rsp + r8 + 0x20], dl
inc rax
cmp rax, 0x100
jne 0x14000242a
test edi, edi
je 0x1400024bc
mov eax, edi
xor ecx, ecx
xor edx, edx
xor r8d, r8d
lea r9d, [r8 + 1]
lea r10d, [r8 + 0x100]
test r9d, r9d
cmovns r10d, r9d
and r10d, 0xffffff00
neg r10d
add r8d, r10d
inc r8d
movsxd r9, r8d
mov r10b, byte [rsp + r9 + 0x20]
add dl, r10b
movzx r11d, dl
mov bl, byte [rsp + r11 + 0x20]
mov byte [rsp + r9 + 0x20], bl
mov byte [rsp + r11 + 0x20], r10b
add r10b, byte [rsp + r9 + 0x20]
movzx r9d, r10b
mov r9b, byte [rsp + r9 + 0x20]
xor byte [rsi + rcx], r9b
inc rcx
cmp rax, rcx
jne 0x140002462
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.14000a140
nop
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1400024dc
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2c0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x238], 0xfffffffffffffffe
lea rcx, [0x1401e62c8]
xor esi, esi
lea r9, [rbp + 0x230]
xor edx, edx
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x1400025c5
mov rdx, qword [rbp + 0x230]
lea rsi, [rbp + 0x210]
mov rcx, rsi
call fcn.140002604
mov rcx, qword [rbp + 0x230]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea r8, [0x14023dd90]
lea rcx, [rbp + 0x1f0]
mov rdx, rsi
call fcn.140002674
lea rdi, [rbp + 0x1f0]
mov rcx, rdi
call fcn.1400026f0
lea rdx, [rbp - 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
mov rcx, rdi
call fcn.1400026f6
cmp rsi, 0xffffffffffffffff
je 0x1400025b7
mov ebx, 0xffffffff
lea rdi, [rbp - 0x60]
mov r14, qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov rcx, rsi
mov rdx, rdi
call r14
inc ebx
test eax, eax
jne 0x140002594
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
cmp ebx, 9
setae sil
jmp 0x1400025b9
xor esi, esi
lea rcx, [rbp + 0x210]
call fcn.1400026f6
mov eax, esi
add rsp, 0x2c0
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret