joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400034c0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub rsp, 0x458
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x440], rax
cmp dword [0x14002bc70], 0xa
jb 0x1400036f6
xor edx, edx
mov qword [rsp + 0x450], rdi
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400036b8
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400036af
mov qword [rsp + 0x460], rbx
nop dword [rax]
xor edx, edx
lea rcx, [rsp + 0x260]
mov r8d, 0x104
call fcn.140006520
mov r8d, 0x103
lea rdx, [rsp + 0x4c]
lea rcx, [rsp + 0x260]
call fcn.14000c7dc
lea rdx, str.msmpeng.exe
lea rcx, [rsp + 0x260]
call fcn.14000c950
test eax, eax
je 0x1400035a9
lea rdx, str.nissrv.exe
lea rcx, [rsp + 0x260]
call fcn.14000c950
test eax, eax
je 0x1400035a9
lea rdx, str.mpcmdrun.exe
lea rcx, [rsp + 0x260]
call fcn.14000c950
test eax, eax
jne 0x140003691
mov ecx, dword [rsp + 0x28]
call fcn.1400032d0
test eax, eax
jne 0x1400035ca
lea rdx, [rsp + 0x260]
lea rcx, str._ss_PPL_Remove_Faild._n
call fcn.140001010
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x1001
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x140003646
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x260]
lea rcx, str.Failed_to_open__s__error__lu__Try_to_use_taskkill__please_manually_check_whether_the_kill_is_successful__n
call fcn.140001010
xor edx, edx
lea rcx, [rsp + 0x370]
mov r8d, 0xc8
call fcn.140006520
lea r9, [rsp + 0x260]
mov edx, 0xc8
lea r8, str.taskkill__f__im__s
lea rcx, [rsp + 0x370]
call fcn.140002c80
lea rcx, [rsp + 0x370]
call fcn.1400039f0
jmp 0x140003691
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x14000366b
lea rdx, [rsp + 0x260]
lea rcx, str._Success__Killed__s._n
call fcn.140001010
jmp 0x140003688
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x260]
lea rcx, str.Failed_to_terminate__s__error__lu_n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140003530
mov rbx, qword [rsp + 0x460]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.C:ProgramDataMicrosoftWindows_DefenderPlatform
call fcn.140003710
lea rcx, str.C:Program_Files__x86_Windows_Defender
call fcn.140003710
lea rcx, str.C:Program_FilesWindows_Defender
call fcn.140003710
mov edx, dword [0x14002bc7c]
lea rcx, str._INFO__A_total_of___d_Defender_file__was_renamed__msmpeng.exe__nissrv.exe__and_mpcmdrun.exe_were_all_renamed._n
call fcn.140001010
mov rdi, qword [rsp + 0x450]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140005430
add rsp, 0x458
ret
Function at 0x1400039f0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rbx, rcx
mov dword [rbp - 0x49], 0x18
xor edi, edi
mov dword [rbp - 0x39], 1
lea rcx, [rbp + 0x77]
mov qword [rbp - 0x41], rdi
xor r9d, r9d
lea r8, [rbp - 0x49]
lea rdx, [rbp + 0x6f]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140003a50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_create_pipe._Error__d_n
call fcn.140001010
jmp 0x140003b4d
mov rcx, qword [rbp + 0x77]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x140003a7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_set_handle_information._Error__d_n
call fcn.140001010
jmp 0x140003b4d
xorps xmm0, xmm0
xor eax, eax
mov qword [rbp + 0x47], rax
xor r9d, r9d
movups xmmword [rbp - 0x19], xmm0
xor r8d, r8d
mov rdx, rbx
movaps xmmword [rbp + 0x17], xmm0
xor ecx, ecx
movups xmmword [rbp + 0x27], xmm0
mov dword [rbp - 0x19], 0x68
movups xmmword [rbp + 0x37], xmm0
mov word [rbp + 0x27], di
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
psrldq xmm0, 0xc
movd eax, xmm0
or eax, 0x101
mov dword [rbp + 0x23], eax
mov rax, qword [rbp + 0x6f]
mov qword [rbp + 0x3f], rax
lea rax, [rbp - 0x31]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140003b16
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
lea rcx, str.Failed_to_run:__s._Error__d_n
mov r8d, eax
call fcn.140001010
jmp 0x140003b4d
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x31]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140005e24
Capabilities:
Parse pe header

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

Function at 0x140009610
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 0x14000947b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000947b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000947b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000947b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000947b
cmp dword [rcx + 0x84], 0xe
jbe 0x14000947b
cmp dword [rcx + 0xf8], 0
je 0x14000947b
mov ecx, ebx
call fcn.14000952c
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.140009308
nop
cmp dword [rbp + 0x20], 0
je 0x1400094c9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400094d4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000940c
Function at 0x140012f44
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 0x140012f74
xor eax, eax
jmp 0x140013037
mov rbp, rbx
cmp word [rax], si
je 0x140012f99
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140012f80
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140012f7c
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.140011310
movsxd r14, eax
test eax, eax
jne 0x140012fd7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140012f6d
mov rcx, r14
call fcn.14000f508
mov rdi, rax
test rax, rax
jne 0x140012ff0
xor ecx, ecx
call fcn.14000e890
jmp 0x140012fcc
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.140011310
test eax, eax
jne 0x140013021
mov rcx, rdi
call fcn.14000e890
jmp 0x14001302b
xor ecx, ecx
call fcn.14000e890
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 0x14001723c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140017252
mov al, 1
jmp 0x1400172b2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140017263
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400172b0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140013748
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400172b0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400172b0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400172b0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400172b2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140018390
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.14000c878
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001841a
cmp byte [rbp - 0x21], r15b
je 0x140018415
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140018450
call fcn.14000eae0
test eax, eax
jne 0x14001843c
cmp byte [rbp - 0x21], r15b
je 0x140018434
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140018450
cmp byte [rbp - 0x21], r15b
je 0x14001844d
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.140011690
test eax, eax
jne 0x1400184f0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000c878
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001848f
cmp byte [rbp - 0x21], r15b
je 0x1400184c4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400184c4
call fcn.14000eae0
test eax, eax
jne 0x1400184b0
cmp byte [rbp - 0x21], r15b
je 0x1400184a9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400184c4
cmp byte [rbp - 0x21], r15b
je 0x1400184c1
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.140011690
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400184f0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400184f3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140018501
mov rcx, rdi
call fcn.14000e890
cmp byte [rbp + 0x3f], r15b
je 0x140018510
mov rcx, qword [rbp + 0x27]
call fcn.14000e890
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 0x14001aa80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001aaa8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001aaa8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180004314
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180004398
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180015350]
cmp byte [rcx + rax], 0
je 0x180004398
dec r8
sub rdx, 1
jne 0x18000437e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x180004990
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1800043b0
mov ebx, eax
test eax, eax
jne 0x1800049c0
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x180004a1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180004a13
test al, 0x10
je 0x180004a13
bt eax, 0xa
jae 0x180004a0c
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.180004a34
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x180004a08
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x180004a2c
test edi, edi
jne 0x180004a13
and dword [rsp + 0x3c], 0
jmp 0x180004a18
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.18000b394
int3
Function at 0x18000f048
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 0x18000f078
xor eax, eax
jmp 0x18000f13b
mov rbp, rbx
cmp word [rax], si
je 0x18000f09d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000f084
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000f080
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.18000ef68
movsxd r14, eax
test eax, eax
jne 0x18000f0db
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000f071
mov rcx, r14
call fcn.18000d408
mov rdi, rax
test rax, rax
jne 0x18000f0f4
xor ecx, ecx
call fcn.18000ccfc
jmp 0x18000f0d0
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.18000ef68
test eax, eax
jne 0x18000f125
mov rcx, rdi
call fcn.18000ccfc
jmp 0x18000f12f
xor ecx, ecx
call fcn.18000ccfc
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 0x1800140c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800140e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800140e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400013d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov r15, rdx
xor esi, esi
cmp ecx, 3
jne 0x1400014e1
mov eax, esi
mov r8, qword [rdx + 8]
lea rdx, str._exe
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
inc rax
cmp cl, byte [rdx + rax - 1]
jne 0x1400014e1
cmp rax, 5
jne 0x140001400
lea rdx, [rsp + 0x38]
mov rcx, qword [r15 + 0x10]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
movsxd r14, dword [rsp + 0x4c]
mov dword [rsp + 0xa0], r14d
lea rdx, [0x140025a4c]
mov rcx, qword [r15 + 0x10]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
mov rcx, r14
call fcn.14001e15c
mov rsi, rax
mov r9, rdi
mov r8, r14
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rdx, [0x140025a28]
lea rcx, [0x140025a50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
lea r8, [rsp + 0xa0]
mov edx, r14d
mov rcx, rsi
call fcn.140002ef0
movsxd r8, dword [rsp + 0xa0]
mov r9, rbx
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea r8, [0x140025a50]
mov rdx, qword [r15 + 0x10]
lea rcx, str._s____s
call fcn.140001360
xor eax, eax
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov r14, 0xffffffffffffffff
mov r9d, r14d
lea r8, [0x140025a50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
mov eax, 2
mul rbx
cmovo rax, r14
mov rcx, rax
call fcn.14001e15c
mov rdi, rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, [0x140025a50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xb0], rsi
lea rdx, [rsp + 0xb0]
mov rcx, rdi
call fcn.14001c080
mov dword [rsp + 0xa0], esi
lea r8, [rsp + 0xa0]
mov edx, dword [rsp + 0xb0]
mov rcx, rax
call fcn.140003240
mov qword [rsp + 0x30], rax
movsxd rdx, dword [rsp + 0xa0]
mov qword [rsp + 0xb0], rdx
xor r9d, r9d
lea r8, [rsp + 0xb8]
mov rcx, rax
call fcn.14001c2b0
mov rbx, rax
test rax, rax
jne 0x1400015b9
mov eax, r14d
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rcx, rbx
call fcn.14001c250
xor r8d, r8d
mov rdx, rbx
mov rcx, rbx
call fcn.14001cb50
mov r8d, 1
mov rdx, qword [rsp + 0xb8]
mov rcx, rbx
call fcn.14001c9e0
mov rcx, rbx
call fcn.14001bad0
test eax, eax
jne 0x140001602
mov eax, 0xfffffffe
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov eax, eax
add rax, rbx
call rax
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400165f0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r9, r9
je 0x140016786
cmp r9, 4
jb 0x14001662a
mov r10, r9
shr r10, 2
imul rax, r10, 0xfffffffffffffffc
add r9, rax
mov eax, dword [rdx]
add rdx, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub r10, 1
jne 0x140016611
xor r11d, r11d
test r9, r9
je 0x140016786
cmp r9, 8
jb 0x14001675d
lea r10, [rcx - 1]
lea rax, [r8 - 1]
add r10, r9
add rax, r9
cmp rcx, rax
ja 0x14001665c
cmp r10, r8
jae 0x14001675d
lea rax, [rdx - 1]
add rax, r9
cmp rcx, rax
ja 0x140016671
cmp r10, rdx
jae 0x14001675d
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x140016717
mov r10, r9
mov qword [rsp + 0x18], rsi
and r10d, 0x3f
mov rbx, r9
sub rbx, r10
mov rdi, rdx
lea rax, [r8 + 0x10]
sub rdi, r8
mov rsi, rcx
sub rsi, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rdi + rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rax - 0x10]
movdqu xmm2, xmmword [rdi + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rsi + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x30]
movdqu xmm1, xmmword [rax - 0x30]
movdqu xmmword [rsi + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x20]
movdqu xmm2, xmmword [rax - 0x20]
movdqu xmmword [rsi + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rsi + rax - 0x20], xmm2
cmp r11, rbx
jb 0x1400166b0
mov rsi, qword [rsp + 0x18]
cmp r10, 8
jb 0x14001674f
mov r10, r9
and r10, 0xfffffffffffffff8
mov rbx, rdx
lea rax, [r11 + r8]
sub rbx, r8
mov rdi, rcx
sub rdi, r8
nop
movq xmm1, qword [rax + rbx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rdi + rax - 8], xmm1
cmp r11, r10
jb 0x140016730
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x140016786
sub rdx, r8
lea r10, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [r10 + rdx]
xor al, byte [r10]
mov byte [rcx + r10], al
lea r10, [r10 + 1]
sub r9, 1
jne 0x140016770
add rsp, 8
ret

Function at 0x14001ba20
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
movzx ebp, r8b
mov rbx, rcx
cmp edx, 0x10
jae 0x14001baad
test rcx, rcx
je 0x14001baad
mov edx, 0x40
call fcn.14001ced0
test al, al
jne 0x14001baad
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x14001baad
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x14001baad
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.14001ced0
test al, al
jne 0x14001baad
cmp dword [rdi], 0x4550
jne 0x14001baad
mov rcx, rbx
call fcn.14001bfb0
movzx ecx, al
lea rax, [rsi + 0xf]
lea rax, [rax + rcx*2]
lea rax, [rdi + rax*8]
test bpl, bpl
jne 0x14001baaf
xor ecx, ecx
cmp dword [rax], ecx
cmove rax, rcx
jmp 0x14001baaf
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001bad0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14001bb38
mov edx, 0x40
call fcn.14001ced0
test al, al
jne 0x14001bb38
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x14001bb38
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x14001bb38
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.14001ced0
test al, al
jne 0x14001bb38
cmp dword [rdi], 0x4550
jne 0x14001bb38
mov rcx, rbx
call fcn.14001bfb0
mov eax, dword [rdi + 0x28]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x14001bb50
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov ebp, 0x5a4d
test rcx, rcx
je 0x14001bbcb
mov edx, 0x40
call fcn.14001ced0
test al, al
jne 0x14001bbcb
cmp word [rbx], bp
jne 0x14001bbcb
movsxd rax, dword [rbx + 0x3c]
lea rdi, [rbx + 0x3c]
cmp eax, 0x400
jg 0x14001bbcb
lea rsi, [rbx + rax]
mov edx, 0xf8
mov rcx, rsi
call fcn.14001ced0
test al, al
jne 0x14001bbcb
cmp dword [rsi], 0x4550
jne 0x14001bbcb
mov edx, 0xf8
mov rcx, rsi
call fcn.14001ced0
test al, al
je 0x14001bbc5
xor esi, esi
jmp 0x14001bbd6
movzx esi, word [rsi + 0x18]
jmp 0x14001bbd6
xor esi, esi
lea rdi, [rbx + 0x3c]
test rbx, rbx
je 0x14001bc28
mov edx, 0x40
mov rcx, rbx
call fcn.14001ced0
test al, al
jne 0x14001bc28
cmp word [rbx], bp
jne 0x14001bc28
movsxd rax, dword [rdi]
cmp eax, 0x400
jg 0x14001bc28
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.14001ced0
test al, al
jne 0x14001bc28
cmp dword [rdi], 0x4550
jne 0x14001bc28
mov eax, 0x20b
cmp si, ax
jne 0x14001bc23
mov rax, qword [rdi + 0x30]
jmp 0x14001bc2a
mov eax, dword [rdi + 0x34]
jmp 0x14001bc2a
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14001bc40
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14001bcc7
mov edx, 0x40
call fcn.14001ced0
test al, al
jne 0x14001bcc7
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x14001bcc7
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x14001bcc7
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.14001ced0
test al, al
jne 0x14001bcc7
cmp dword [rdi], 0x4550
jne 0x14001bcc7
mov rcx, rbx
call fcn.14001bfb0
mov rcx, rbx
test al, al
je 0x14001bcb4
call fcn.14001bd60
mov eax, dword [rax + 0x50]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.14001bce0
mov eax, dword [rax + 0x50]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret