joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402c08d0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x478
mov rax, qword [0x1404e8f18]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea r8, [0x14080ebe0]
xor edx, edx
lea rcx, str.0.0.0.0
call fcn.1402aad80
test eax, eax
jne 0x1402c0a6d
lea r8, [0x14080ebc0]
xor edx, edx
lea rcx, [0x140455ee0]
call fcn.1402aadf0
test eax, eax
jne 0x1402c0a6d
lea ecx, [rax + 0x43]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 1
je 0x1402c0a55
mov ecx, 0x202
lea rdx, [rsp + 0x2c0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1402c0a73
mov qword [rsp + 0x480], rbx
lea edx, [rax + 1]
xor r8d, r8d
mov qword [rsp + 0x470], rdi
lea ecx, [rax + 2]
mov dword [0x14080ebf4], 1
call qword [sym.imp.WS2_32.dll_socket]
xor edi, edi
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1402c09d3
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1402c09ca
mov eax, dword [0x14080ebf4]
test dword [rsp + 0x40], 0x20000
cmovne eax, edi
mov dword [0x14080ebf4], eax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor r8d, r8d
mov dword [0x14080ebf0], 1
lea edx, [r8 + 1]
lea ecx, [rdx + 0x16]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1402c0a45
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1402c0a3c
mov eax, dword [0x14080ebf0]
test dword [rsp + 0x40], 0x20000
cmovne eax, edi
mov dword [0x14080ebf0], eax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rsp + 0x480]
mov rdi, qword [rsp + 0x470]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1403358f0
add rsp, 0x478
ret
call fcn.1403463c0
int3
lea rdx, str.WSAStartup
mov ecx, eax
call fcn.1402bf470
int3

Function at 0x1402d3fd0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [0x1404e8c70]
mov edx, 1
mov eax, dword [rsp + 0x40]
cmp ecx, edx
jbe 0x1402d401b
mov rax, qword [0x14078d138]
test rax, rax
je 0x1402d4016
sub cx, dx
call rax
movzx ecx, ax
mov eax, dword [0x1404e8c70]
shl eax, 6
add eax, 0xffffffc0
add eax, ecx
jmp 0x1402d401b
mov eax, ecx
shl eax, 6
add rsp, 0x58
ret

Function at 0x1402d4a34
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
jmp qword [sym.imp.KERNEL32.dll_VirtualAlloc]
Function at 0x1402d4e78
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, [0x140455e48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x1402d4fab
lea rdx, str.GetActiveProcessorGroupCount
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetActiveProcessorCount
mov rcx, rbx
mov qword [0x14078d130], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetCurrentProcessorNumber
mov rcx, rbx
mov qword [0x14078d138], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetCurrentProcessorNumberEx
mov rcx, rbx
mov qword [0x14078d140], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetThreadGroupAffinity
mov rcx, rbx
mov qword [0x14078d148], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetThreadGroupAffinity
mov rcx, rbx
mov qword [0x14078d158], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetNumaAvailableMemoryNode
mov rcx, rbx
mov qword [0x14078d160], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetNumaAvailableMemoryNodeEx
mov rcx, rbx
mov qword [0x14078d168], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetLogicalProcessorInformationEx
mov rcx, rbx
mov qword [0x14078d170], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.K32QueryWorkingSetEx
mov rcx, rbx
mov qword [0x14078d150], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.VirtualAllocExNuma
mov rcx, rbx
mov qword [0x14078d188], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.VirtualFreeEx
mov rcx, rbx
mov qword [0x14078d178], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14078d180], rax
cmp qword [0x14078d188], 0
jne 0x1402d4fde
lea rcx, str.psapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x1402d4fde
lea rdx, str.QueryWorkingSetEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14078d188], rax
lea rcx, [0x1404597ec]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14080ec58], rax
add rsp, 0x20
pop rbx
ret
Function at 0x1402d8488
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, 0x60
mov rax, qword [0x1404e8f18]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r12, rdx
mov r13, r8
lea rdx, [0x1404165ac]
mov rbx, rcx
call fcn.140343d40
test eax, eax
lea rdi, str._dev_stdin
lea rdx, [0x1403d9fa4]
cmovne rdi, rbx
mov rcx, rdi
call fcn.140348d0c
mov rbp, rax
test rax, rax
je 0x1402d85b0
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov esi, 0x1000
call fcn.14034a400
test eax, eax
jne 0x1402d8513
mov eax, 0x8000
test word [rsp + 0x26], ax
je 0x1402d8513
mov eax, dword [rsp + 0x34]
inc eax
movsxd rsi, eax
lea rcx, [rsi + 1]
call fcn.140343e58
mov rdi, rax
test rax, rax
je 0x1402d85a8
mov r9, rbp
mov r8, rsi
mov edx, 1
mov rcx, rax
call fcn.140346c68
mov r14, rax
mov byte [rax + rdi], 0
cmp rax, rsi
jne 0x1402d8588
add rsi, rsi
mov rcx, rdi
lea rdx, [rsi + 1]
call fcn.140343a98
mov r15, rax
test rax, rax
je 0x1402d85a0
mov rbx, rsi
lea rcx, [rax + r14]
shr rbx, 1
mov r9, rbp
mov r8, rbx
mov edx, 1
mov rdi, rax
call fcn.140346c68
add r14, rax
mov byte [rdi + r14], 0
cmp rax, rbx
je 0x1402d8547
mov rcx, rbp
call fcn.1403467c4
lea rax, [r14 + 1]
mov qword [r12], rdi
mov qword [r13], rax
xor eax, eax
jmp 0x1402d85b3
mov rcx, rdi
call fcn.14033ce60
mov rcx, rbp
call fcn.1403467c4
or eax, 0xffffffff
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1403358f0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1402dbb44
Capabilities:
Encode data using xor

Disassembly:
sub rdx, rcx
mov r8d, 0x80
mov rax, qword [rdx + rcx]
xor qword [rcx], rax
lea rcx, [rcx + 8]
sub r8, 1
jne 0x1402dbb4d
ret
Function at 0x1402e49dc
Capabilities:
Hash data using sha512

Disassembly:
push rbx
sub rsp, 0x20
mov r8d, 0x40
lea rdx, [0x14045aa70]
mov rbx, rcx
call fcn.140336c00
xorps xmm0, xmm0
movups xmmword [rbx + 0x40], xmm0
and qword [rbx + 0xd0], 0
add rsp, 0x20
pop rbx
ret

Function at 0x1402e5048
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1404e8f18]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r12, qword [r9]
xor r14d, r14d
mov r13d, edx
mov rsi, r9
mov dword [rsp + 0x30], r8d
mov rbx, rcx
mov dword [rsp + 0x34], r13d
mov rbp, rcx
lea edi, [r14 + 4]
mov qword [rsp + 0x38], r12
mov ecx, dword [rsi + 0x24]
lea r8, [r14 + r13]
mov edx, dword [rsi + 0x20]
mov eax, dword [rsi + 0x1c]
add rdx, r8
imul rdx, rax
shr rdx, cl
mov rcx, rbp
imul edx, dword [rsi + 0x18]
sub r8d, edx
mov edx, r8d
mov r8d, 0x40
shl rdx, 6
add rdx, r12
call fcn.140336c00
mov r9d, 0x40
mov dword [rsp + 0x28], 0x40
lea eax, [r14 + r13]
mov qword [rsp + 0x20], rbp
xor dword [rbp], eax
mov r8, rbp
mov ecx, 0x200
lea edx, [r9 - 0x3f]
call fcn.140012168
inc r14
add rbp, 0x40
cmp r14, rdi
jb 0x1402e5090
xor r8d, r8d
cmp dword [rsp + 0x30], r8d
je 0x1402e5225
mov ebp, dword [rsi + 0x24]
lea r10, [rsp + 0x40]
mov r14d, dword [rsi + 0x20]
mov eax, r8d
mov r15d, dword [rsi + 0x1c]
xor r9d, r9d
mov r13d, dword [rsp + 0x34]
and eax, 0xf
mov r12, qword [rsp + 0x38]
lea r11, [rbx + rax*4]
lea eax, [r9 + r13]
xor eax, r8d
imul ecx, eax, 0x1000193
xor ecx, dword [r11]
mov edx, ecx
lea rax, [r14 + rcx]
mov rcx, rbp
imul rax, r15
shr rax, cl
imul eax, dword [rsi + 0x18]
sub edx, eax
mov ecx, edx
shl rcx, 6
add rcx, r12
mov qword [r10], rcx
prefetcht0 byte [rcx]
inc r9d
lea r11, [r11 + 0x40]
lea r10, [r10 + 8]
cmp r9d, edi
jb 0x1402e5132
mov rdx, qword [rsp + 0x40]
mov r10d, 0x10
mov r12d, dword [rsp + 0x30]
sub rdx, rbx
mov r9d, r10d
mov rcx, rbx
imul eax, dword [rcx], 0x1000193
xor eax, dword [rdx + rcx]
mov dword [rcx], eax
add rcx, rdi
sub r9, 1
jne 0x1402e5190
mov rdx, qword [rsp + 0x48]
lea rcx, [rbx + 0x40]
sub rdx, rbx
mov r9, r10
imul eax, dword [rcx], 0x1000193
xor eax, dword [rdx + rcx - 0x40]
mov dword [rcx], eax
add rcx, rdi
sub r9, 1
jne 0x1402e51b3
mov rdx, qword [rsp + 0x50]
lea rcx, [rbx + 0x80]
sub rdx, rbx
mov r9, r10
imul eax, dword [rcx], 0x1000193
xor eax, dword [rdx + rcx - 0x80]
mov dword [rcx], eax
add rcx, rdi
sub r9, 1
jne 0x1402e51da
mov rdx, qword [rsp + 0x58]
lea rcx, [rbx + 0xc0]
sub rdx, rbx
mov r9, r10
imul eax, dword [rcx], 0x1000193
xor eax, dword [rdx + rcx - 0xc0]
mov dword [rcx], eax
add rcx, rdi
sub r9, 1
jne 0x1402e5201
inc r8d
cmp r8d, r12d
jne 0x1402e510b
mov r9d, 0x40
mov dword [rsp + 0x28], 0x40
mov r8, rbx
mov qword [rsp + 0x20], rbx
mov ecx, 0x200
lea edx, [r9 - 0x3f]
call fcn.140012168
add rbx, 0x40
sub rdi, 1
jne 0x1402e5225
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1403358f0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1402e5278
Capabilities:
Encode data using xor
Hash data using fnv

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, 0x30
mov r10d, dword [r9 + 0x20]
mov rbx, rcx
mov ecx, dword [r9 + 0x24]
mov ebp, r8d
mov eax, dword [r9 + 0x1c]
mov r12d, 0x40
mov r15, qword [r9]
mov r8d, r12d
mov r14d, edx
mov rsi, r9
add r10, r14
imul r10, rax
shr r10, cl
mov rcx, rbx
imul r10d, dword [r9 + 0x18]
sub edx, r10d
shl rdx, 6
add rdx, r15
call fcn.140336c00
xor dword [rbx], r14d
lea edx, [r12 - 0x3f]
mov r9d, r12d
mov dword [rsp + 0x28], r12d
mov r8, rbx
mov qword [rsp + 0x20], rbx
mov ecx, 0x200
call fcn.140012168
xor r10d, r10d
test ebp, ebp
je 0x1402e5369
mov ecx, dword [rsi + 0x24]
mov edx, r10d
and edx, 0xf
mov eax, r10d
xor eax, r14d
mov edi, 0x10
imul r8d, eax, 0x1000193
mov eax, dword [rsi + 0x1c]
xor r8d, dword [rbx + rdx*4]
mov edx, dword [rsi + 0x20]
add rdx, r8
imul rdx, rax
shr rdx, cl
imul edx, dword [rsi + 0x18]
sub r8d, edx
mov r11d, r8d
mov r8, rbx
shl r11, 6
add r11, r15
sub r11, rbx
imul eax, dword [r8], 0x1000193
xor eax, dword [r11 + r8]
mov dword [r8], eax
lea r8, [r8 + 4]
sub rdi, 1
jne 0x1402e5349
inc r10d
cmp r10d, ebp
jne 0x1402e5303
mov dword [rsp + 0x28], r12d
mov r9d, r12d
mov r8, rbx
mov qword [rsp + 0x20], rbx
mov edx, 1
mov ecx, 0x200
call fcn.140012168
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x1402e53a8
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x80
mov rax, qword [0x1404e8f18]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rdx
mov rsi, rcx
test dl, 0x3f
je 0x1402e53d7
xor al, al
jmp 0x1402e54f4
mov r15d, 0x40
shr rbx, 6
mov dword [rsp + 0x28], r15d
mov ecx, 0x200
mov qword [rsp + 0x20], rsi
lea edx, [r15 - 0x3f]
lea r9d, [r15 - 0x20]
call fcn.140012168
lea edi, [r15 - 0x3f]
cmp ebx, edi
je 0x1402e543b
mov ecx, edi
lea r8d, [rdi - 1]
shl rcx, 6
mov r9d, r15d
add rcx, rsi
shl r8, 6
mov dword [rsp + 0x28], r15d
add r8, rsi
mov qword [rsp + 0x20], rcx
mov edx, 1
mov ecx, 0x200
call fcn.140012168
inc edi
cmp edi, ebx
jne 0x1402e5405
mov ebp, 3
xor edi, edi
test ebx, ebx
je 0x1402e54e8
xor edx, edx
mov r9d, edi
shl r9, 6
add r9, rsi
mov eax, dword [r9]
div ebx
lea eax, [rbx - 1]
mov r8d, edx
add eax, edi
xor edx, edx
shl r8, 6
div ebx
mov ecx, edx
lea rdx, [rsp + 0x30]
shl rcx, 6
sub r8, rdx
add r8, rsi
mov edx, 0x10
movups xmm0, xmmword [rcx + rsi]
movups xmm1, xmmword [rcx + rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rcx + rsi + 0x20]
movaps xmmword [rsp + 0x40], xmm1
movups xmm1, xmmword [rcx + rsi + 0x30]
lea rcx, [rsp + 0x30]
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x60], xmm1
mov eax, dword [r8 + rcx]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x1402e54ad
mov dword [rsp + 0x28], r15d
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r9
mov edx, 1
mov r9d, r15d
mov ecx, 0x200
call fcn.140012168
inc edi
cmp edi, ebx
jne 0x1402e544a
sub rbp, 1
jne 0x1402e5440
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1403358f0
add rsp, 0x80
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1402e888c
Capabilities:
Hash data using sha256

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, [0x140462c88]
add rcx, 0x40
mov r8d, 0x20
call fcn.140336c00
and qword [rbx + 0x60], 0
add rsp, 0x20
pop rbx
ret

Function at 0x1402efa84
Capabilities:
Hash data using sha512

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, r8
mov rdi, rcx
add rcx, 0x88
mov r8d, 0x40
call fcn.140336c00
lea rcx, [rdi + 0xc8]
mov r8d, 0x20
mov rdx, rbx
call fcn.140336c00
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov qword [rdi + 0xf0], rax
mov qword [rdi + 0xe8], rax
mov qword [rdi + 0x80], rax
add rsp, 0x20
pop rdi
ret
lea r8, [0x140462e70]
lea rdx, [0x140462e20]
jmp 0x1402ef9f8
Function at 0x140300d64
Capabilities:
Encode data using base64

Disassembly:
mov r9d, 0x48
jmp fcn.1402fddbc
Function at 0x1403348c0
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 0x140334944
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1404a1070]
cmp byte [rcx + rax], 0
je 0x140334944
dec r8
sub rdx, 1
jne 0x14033492a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140334bc4
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.14033495c
mov ebx, eax
test eax, eax
jne 0x140334bf4
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140334c50
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140334c47
test al, 0x10
je 0x140334c47
bt eax, 0xa
jae 0x140334c40
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140334c68
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140334c3c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140334c60
test edi, edi
jne 0x140334c47
and dword [rsp + 0x3c], 0
jmp 0x140334c4c
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.14034320c
int3

Function at 0x140336688
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1403366d2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1403366d2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1403366d2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1403366d2
cmp dword [rcx + 0x84], 0xe
jbe 0x1403366d2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1403366d4
xor al, al
add rsp, 0x28
ret
Function at 0x140346550
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 0x140346587
call fcn.14033cf48
mov dword [rax], 0x16
call fcn.14033cb84
xor eax, eax
jmp 0x140346615
mov rdx, r9
mov rcx, r8
call fcn.1403464ec
mov rbx, rax
test rax, rax
je 0x140346612
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140346418]
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 0x1403465ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14033cebc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1403465e6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1403465f5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140358c44
jmp 0x140346612
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14034660f
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 0x140347660
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x14034767f
call fcn.14035108c
jmp 0x140347734
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.1403438f0
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x1403476ca
cmp byte [rbp - 0x38], 0
je 0x1403476ff
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1403476ff
call fcn.1403590a0
test eax, eax
jne 0x1403476eb
cmp byte [rbp - 0x38], al
je 0x1403476e3
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1403476ff
cmp byte [rbp - 0x38], 0
je 0x1403476fc
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.1403474e4
test eax, eax
je 0x140347718
or ebx, 0xffffffff
jmp 0x140347723
mov rcx, qword [rbp - 0x20]
call fcn.14035108c
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x140347732
mov rcx, qword [rbp - 0x20]
call fcn.140358c44
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
Function at 0x140349610
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.140335c90
sub rsp, rax
mov rax, qword [0x1404e8f18]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14033d3a8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14034965f
mov rax, rbp
jmp 0x140349767
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 + 0x80e640]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140352de0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x80e640]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140349763
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 0x140349763
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140352de0
test rax, rax
js 0x140349763
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140349763
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140349755
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140349755
cmp byte [rcx], 0xd
jne 0x14034973b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14034974a
cmp byte [rcx + 1], 0xa
jne 0x14034974a
inc rcx
jmp 0x14034974a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4e9170]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14034971d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140349767
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1403358f0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14034a218
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1404e8f18]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1404a2848]
mov rbp, rcx
call fcn.1403530e8
xor edi, edi
test rax, rax
je 0x14034a2fe
mov ebx, edi
call fcn.14033cf48
mov r14d, dword [rax]
call fcn.14033cf48
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.14035e7e4
mov rsi, rax
test rax, rax
je 0x14034a28f
call fcn.14033cf48
mov dword [rax], r14d
jmp 0x14034a2b9
call fcn.14033cf48
cmp dword [rax], 0x22
jne 0x14034a2f6
call fcn.14033cf48
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14035e7e4
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14034a2f6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14034a2bd
cmp rax, 3
je 0x14034a2d8
mov rcx, rsi
call fcn.14034a174
test al, al
je 0x14034a2e9
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14034a2e9
mov dil, 1
mov rcx, rbx
call fcn.14033ce60
mov al, dil
jmp 0x14034a300
mov rcx, rbx
call fcn.14033ce60
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1403358f0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14034aca8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14034aaa4

Function at 0x1403510b8
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1403510d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14033cebc
or eax, 0xffffffff
jmp 0x1403510da
xor eax, eax
add rsp, 0x28
ret