joyce8/EMBER2024-capa huggingface dataset:
Function at 0x555fd0
Capabilities:
Terminate process

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x2c0
mov rbp, rsp
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x68], 0
nop
mov ecx, 2
xor edx, edx
call fcn.00541370
mov rbx, rax
mov dword [rbp + 0x88], 0x238
mov rcx, rbx
lea rdx, [rbp + 0x88]
call fcn.005413a0
jmp 0x5561c5
mov rax, qword [0x00588040]
mov rax, qword [rax + 0x38]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x28]
xor ecx, ecx
mov edi, eax
sub edi, 1
mov esi, ecx
cmp esi, edi
jg 0x5561b5
sub edi, ecx
add edi, 1
mov rax, qword [0x00588040]
mov rax, qword [rax + 0x38]
mov rcx, rax
lea rdx, [rbp + 0x70]
mov r8d, esi
mov r13, qword [rax]
call qword [r13 + 0x18]
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x70]
call fcn.004128b0
lea rcx, [rbp + 0x78]
mov rdx, qword [rbp + 0x68]
call fcn.00430cc0
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0xb4]
mov r8d, 0x104
call fcn.00412150
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x58]
call fcn.00430cc0
mov rcx, qword [rbp + 0x78]
mov rdx, qword [rbp + 0x60]
call fcn.00412680
test eax, eax
je 0x55618a
mov rax, qword [0x00588040]
mov rax, qword [rax + 0x38]
mov rcx, rax
lea rdx, [rbp + 0x48]
mov r8d, esi
mov r13, qword [rax]
call qword [r13 + 0x18]
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
call fcn.004128b0
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
call fcn.00430cc0
lea rcx, [rbp + 0x28]
lea rdx, [rbp + 0xb4]
mov r8d, 0x104
call fcn.00412810
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
call fcn.00432080
lea rcx, [rbp + 0x20]
mov rdx, qword [rbp + 0x30]
call fcn.004128b0
lea rcx, [rbp + 0x38]
mov rdx, qword [rbp + 0x20]
call fcn.00430cc0
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x38]
call fcn.00412680
test eax, eax
jne 0x5561a7
mov ecx, 1
xor edx, edx
mov r8d, dword [rbp + 0x90]
call sub.kernel32.dll_OpenProcess
mov rcx, rax
xor edx, edx
call sub.kernel32.dll_TerminateProcess
add esi, 1
sub edi, 1
test edi, edi
jne 0x556098
nop
mov rcx, rbx
lea rdx, [rbp + 0x88]
call fcn.005413d0
test eax, eax
jne 0x55606e
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
nop
lea rcx, [rbp + 0x20]
call fcn.00410bd0
lea rcx, [rbp + 0x28]
mov edx, 2
call fcn.00410c10
lea rcx, [rbp + 0x38]
mov edx, 2
call fcn.00410cb0
lea rcx, [rbp + 0x48]
call fcn.00410b30
lea rcx, [rbp + 0x50]
mov edx, 4
call fcn.00410cb0
lea rcx, [rbp + 0x70]
call fcn.00410b30
lea rcx, [rbp + 0x78]
call fcn.00410bd0
lea rsp, [rbp + 0x2c0]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x556900
Capabilities:
Create process on windows

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x40], 0
nop
xor esi, esi
mov rax, qword [0x00588040]
cmp byte [rax + 0x10c], 0
je 0x556953
lea rcx, [0x00556ac8]
xor edx, edx
call fcn.00541b60
mov esi, 5
mov rax, qword [0x00588040]
mov rax, qword [rax + 0x60]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x28]
xor ecx, ecx
mov edi, eax
sub edi, 1
mov ebx, ecx
cmp ebx, edi
jg 0x556a56
sub edi, ecx
add edi, 1
mov rax, qword [0x00588040]
cmp byte [rax + 0x10c], 0
je 0x5569d9
mov rax, qword [0x00588040]
mov rax, qword [rax + 0x60]
mov rcx, rax
lea rdx, [rbp + 0x40]
mov r8d, ebx
mov r13, qword [rax]
call qword [r13 + 0x18]
lea rcx, [rbp + 0x48]
mov edx, 3
lea r8, [0x00556b08]
mov r9, qword [rbp + 0x40]
lea rax, [0x00556b40]
mov qword [rsp + 0x20], rax
call fcn.00412ca0
mov rcx, qword [rbp + 0x48]
xor edx, edx
call fcn.00541b60
mov rax, qword [0x00588040]
mov rax, qword [rax + 0x60]
mov rcx, rax
lea rdx, [rbp + 0x30]
mov r8d, ebx
mov r13, qword [rax]
call qword [r13 + 0x18]
lea rcx, [rbp + 0x38]
mov edx, 3
lea r8, [0x00556b64]
mov r9, qword [rbp + 0x30]
lea rax, [0x00556b40]
mov qword [rsp + 0x20], rax
call fcn.00412ca0
mov rcx, qword [rbp + 0x38]
call fcn.00412750
xor ecx, ecx
lea rdx, [0x00556b44]
lea r8, [0x00556b4e]
mov r9, rax
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], esi
call sub.shell32.dll_ShellExecuteW
add ebx, 1
sub edi, 1
test edi, edi
jne 0x55697d
nop
mov rax, qword [0x00588040]
cmp byte [rax + 0x10c], 0
je 0x556a75
lea rcx, [0x00556b7c]
xor edx, edx
call fcn.00541b60
mov ecx, 0x4e20
call sub.kernel32.dll_Sleep
nop
lea rcx, [rbp + 0x30]
mov edx, 4
call fcn.00410c10
lea rsp, [rbp + 0x50]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x140001430
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push r15
sub rsp, 0x10
cmp dword [0x1400058c0], 0
jne 0x140001633
mov rax, qword gs:[0x60]
xor r15d, r15d
mov edx, r15d
mov rcx, qword [rax + 0x18]
mov r8, qword [rcx + 0x10]
mov rax, qword [r8 + 0x30]
test rax, rax
je 0x14000163f
nop word [rax + rax]
mov r10, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + r10 + 0x88]
test ecx, ecx
je 0x1400014ad
lea rdx, [r10 + rcx]
mov ecx, dword [r10 + rcx + 0xc]
mov eax, dword [rcx + r10]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x1400014ad
mov eax, dword [rcx + r10 + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x1400014b9
mov r8, qword [r8]
mov rax, qword [r8 + 0x30]
test rax, rax
jne 0x140001470
test rdx, rdx
je 0x14000163f
mov qword [rsp + 0x20], rbx
mov r11d, r15d
mov ebx, dword [rdx + 0x18]
mov qword [rsp + 0x28], rbp
mov ebp, dword [rdx + 0x24]
mov qword [rsp + 0x30], rsi
mov esi, dword [rdx + 0x1c]
mov qword [rsp + 0x38], rdi
add rsi, r10
mov edi, dword [rdx + 0x20]
mov qword [rsp + 8], r12
add rdi, r10
mov qword [rsp], r14
add rbp, r10
mov r12d, 0x775a
lea r14, [0x1400058c0]
nop dword [rax]
nop dword [rax + rax]
lea eax, [rbx - 1]
mov r9d, dword [rdi + rax*4]
add r9, r10
cmp word [r9], r12w
jne 0x140001576
mov edx, r15d
mov r8d, 0x1cba6880
mov rax, r9
nop dword [rax]
movzx eax, word [rax]
mov ecx, r8d
ror ecx, 8
inc edx
add ecx, eax
mov eax, edx
add rax, r9
xor r8d, ecx
cmp byte [rax], r15b
jne 0x140001530
mov edx, r11d
lea eax, [rbx - 1]
add rdx, rdx
inc r11d
mov dword [r14 + rdx*8 + 8], r8d
movzx eax, word [rbp + rax*2]
mov eax, dword [rsi + rax*4]
mov dword [r14 + rdx*8 + 0xc], eax
mov qword [r14 + rdx*8 + 0x10], r15
cmp r11d, 0x258
je 0x14000157b
add ebx, 0xffffffff
jne 0x140001510
mov r12, qword [rsp + 8]
lea eax, [r11 - 1]
mov rbp, qword [rsp + 0x28]
mov r8d, r15d
mov dword [0x1400058c0], r11d
test eax, eax
je 0x140001620
nop dword [rax + rax]
mov ecx, r11d
mov eax, r15d
sub ecx, r8d
cmp ecx, 1
je 0x140001614
nop
lea ebx, [rax + 1]
mov r10d, eax
add r10, r10
mov r9d, ebx
add r9, r9
mov esi, dword [r14 + r10*8 + 0xc]
mov edi, dword [r14 + r9*8 + 0xc]
cmp esi, edi
jbe 0x140001606
mov eax, dword [r14 + r9*8 + 8]
mov edx, dword [r14 + r10*8 + 8]
mov rcx, qword [r14 + r10*8 + 0x10]
mov dword [r14 + r10*8 + 8], eax
mov rax, qword [r14 + r9*8 + 0x10]
mov qword [r14 + r10*8 + 0x10], rax
mov dword [r14 + r10*8 + 0xc], edi
mov dword [r14 + r9*8 + 8], edx
mov dword [r14 + r9*8 + 0xc], esi
mov qword [r14 + r9*8 + 0x10], rcx
mov r11d, dword [0x1400058c0]
mov ecx, r11d
mov eax, ebx
sub ecx, r8d
dec ecx
cmp ebx, ecx
jb 0x1400015b0
inc r8d
lea eax, [r11 - 1]
cmp r8d, eax
jb 0x1400015a0
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x20]
mov r14, qword [rsp]
mov eax, 1
add rsp, 0x10
pop r15
ret
xor eax, eax
add rsp, 0x10
pop r15
ret
Function at 0x140001b30
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x791111f
call fcn.140001650
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140001b70
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x5973f25
call fcn.140001650
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140001d30
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x871e828e
call fcn.140001650
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140001d70
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0xba0476f
call fcn.140001650
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140002780
Capabilities:
Parse pe header

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

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x140001fa0
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.1400043a0
sub rsp, rax
mov eax, dword [0x140022100]
mov rsi, rcx
test eax, eax
je 0x140002040
xor ebx, ebx
lea rdi, [0x140020100]
test eax, eax
jg 0x140001fdc
jmp 0x140001ff0
add rbx, 1
cmp dword [0x140022100], ebx
jle 0x140001ff0
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140001fd0
jmp 0x140002027
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x140002005
cmp word [rsi + 2], 0x3a
je 0x140002027
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140002090
movsxd rbx, dword [0x140022100]
cmp ebx, 0x3ff
jle 0x1400020a8
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, str.HOME
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.140001720
test al, al
je 0x1400020ca
movsxd rbx, dword [0x140022100]
mov rcx, rdi
lea rdi, [0x140020100]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x140022100]
add eax, 1
mov dword [0x140022100], eax
jmp 0x140001fc1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140002014
xor eax, eax
jmp 0x14000202c
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x140022100], 1
mov rdx, rax
lea rax, [0x140020100]
mov qword [rax + rbx*8], rdx
jmp 0x140002027
mov rcx, rbx
call fcn.140001f00
nop
nop word cs:[rax + rax]
nop

Function at 0x140002280
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x1400190a0]
test rcx, rcx
je 0x1400022bb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400022e0
mov rcx, qword [0x1400190a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14001e0e0], 0
jne 0x1400022f8
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x1400190a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1400022ae
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x14000c1a0]
mov qword [rsp + 0x20], 0
lea rdi, [0x14001e100]
movq xmm0, rsi
mov rcx, r12
mov dword [rsp + 0x28], 3
movq xmm6, rdi
mov word [rsp + 0x40], dx
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400023c4
test al, 0x10
je 0x1400022c4
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x1400022c4
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140002370
jmp 0x1400022c4
Function at 0x14001125d
Capabilities:
Terminate process

Disassembly:
jmp 0x140013c80
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]
nop
add rsp, 0x28
ret

Function at 0x1400112fd
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014fd0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014ff0
xor al, al
jmp 0x140015071
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015003
xor al, al
jmp 0x140015071
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 0x14001502d
xor al, al
jmp 0x140015071
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015041
xor al, al
jmp 0x140015071
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015053
xor al, al
jmp 0x140015071
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001506f
xor al, al
jmp 0x140015071
mov al, 1
add rsp, 0x38
ret
Function at 0x140012eb0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011438
movzx eax, al
test eax, eax
jne 0x140012ed0
mov ecx, 7
call fcn.1400113ac
nop
mov byte [rsp + 0x20], 0
call fcn.1400113c0
mov byte [rsp + 0x21], al
cmp dword [0x14001e868], 1
jne 0x140012ef4
mov ecx, 7
call fcn.1400113ac
nop
jmp 0x140012f4c
cmp dword [0x14001e868], 0
jne 0x140012f47
mov dword [0x14001e868], 1
lea rdx, [0x14001b660]
lea rcx, [0x14001b330]
call fcn.1400111fe
test eax, eax
je 0x140012f28
mov eax, 0xff
jmp 0x140013051
lea rdx, [0x14001b220]
lea rcx, [section..rdata]
call fcn.1400113b6
mov dword [0x14001e868], 2
jmp 0x140012f4c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011398
call fcn.140011325
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012fa9
mov rcx, qword [rsp + 0x30]
call fcn.1400111ae
movzx eax, al
test eax, eax
je 0x140012fa9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140025020]
nop
call fcn.14001135c
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140012fdd
mov rcx, qword [rsp + 0x38]
call fcn.1400111ae
movzx eax, al
test eax, eax
je 0x140012fdd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400113f7
nop
call fcn.140013100
mov dword [rsp + 0x28], eax
call fcn.1400112fd
movzx eax, al
test eax, eax
jne 0x140012ffc
mov ecx, dword [rsp + 0x28]
call fcn.140011069
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001300b
call fcn.140011401
nop
xor edx, edx
mov cl, 1
call fcn.14001119a
mov eax, dword [rsp + 0x28]
jmp 0x140013051
add rsp, 0x68
ret
Function at 0x140003a90
Capabilities:
Encode data using xor
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xb0
mov rax, qword [0x1400cd180]
xor rax, rsp
mov qword [rsp + 0x90], rax
xor ebx, ebx
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x38], ebx
lea r9, [rsp + 0x70]
mov qword [rsp + 0x30], rbx
mov rdi, rcx
mov qword [rsp + 0x28], rbx
lea rcx, [0x1400abf50]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x140003ca1
lea rdx, [rsp + 0x78]
call fcn.140003d40
mov r9, rax
cmp byte [rax + 0x12], bl
je 0x140003d15
cmp dword [0x1400cd1d0], 2
jl 0x140003c68
movdqa xmm0, xmmword [str.000000000000000022222222222222224444444444444444]
mov rcx, rax
movdqa xmm5, xmmword [0x1400b46c0]
movdqa xmm4, xmmword [0x1400b4930]
movdqa xmmword [rsp + 0x50], xmm0
mov edx, dword [rsp + 0x50]
movaps xmmword [rsp + 0xa0], xmm6
movdqa xmm6, xmmword [0x1400b4720]
nop dword [rax]
nop word [rax + rax]
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ebx, 8
pmuldq xmm1, xmm4
mov eax, ebx
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400b4780]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 8], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400b4780]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
cmp ebx, 0x10
jl 0x140003b50
movaps xmm6, xmmword [rsp + 0xa0]
cmp eax, 0x13
jge 0x140003d15
movsxd r8, ebx
add r8, r9
nop
mov eax, 0xa0a0a0a1
lea r8, [r8 + 1]
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
movzx eax, bl
inc ebx
sub al, cl
add al, 0x30
xor byte [r8 - 1], al
cmp ebx, 0x13
jge 0x140003d15
jmp 0x140003c70
mov ecx, dword [rsp + 0x70]
lea r10, [rsp + 0x8d]
nop dword [rax]
dec r10
mov eax, 0xcccccccd
mul ecx
shr edx, 3
movzx eax, dl
shl al, 2
lea r8d, [rax + rdx]
add r8b, r8b
sub cl, r8b
add cl, 0x30
mov byte [r10], cl
mov ecx, edx
test edx, edx
jne 0x140003cb0
lea r9, [rsp + 0x40]
mov rdx, r10
lea r8, [rsp + 0x8d]
mov rcx, rdi
call fcn.1400024f0
mov rax, rdi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14009ecd0
mov rbx, qword [rsp + 0xc8]
add rsp, 0xb0
pop rdi
ret
mov rdx, r9
lea rcx, [rsp + 0x50]
call fcn.140002ba0
lea rdx, [0x1400c9548]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140004060
Capabilities:
Create process on windows
Query environment variable
Self delete

Disassembly:
sub rsp, 0x468
mov rax, qword [0x1400cd180]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000415d
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x14000415d
lea rdx, [0x1400abf80]
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.____NUL
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, str.ComSpec
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14000415d
mov qword [rsp + 0x460], rbx
lea r9, [rsp + 0x240]
xor ebx, ebx
lea r8, [rsp + 0x30]
mov dword [rsp + 0x28], ebx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
setg bl
mov eax, ebx
mov rbx, qword [rsp + 0x460]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14009ecd0
add rsp, 0x468
ret
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14009ecd0
add rsp, 0x468
ret
Function at 0x140007470
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140007491
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400074be
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400074c0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140007519
test ecx, ecx
jle 0x1400074f9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140007519
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140007519
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
or eax, 0xf120d11
adc cl, byte [rdi]
adc ecx, dword [rsi]
adc al, 0x10
or byte [rax], cl
or byte [rax], cl
or ecx, dword [rbx]
or ecx, dword [0x147240593]
Function at 0x140007540
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140007562
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140007571
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140007594
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140007596
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400075d2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000766e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000760d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000764e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000766e
cmp rbx, rax
ja 0x140007620
test rbx, rbx
je 0x14000766e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
invalid