joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f868
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
xor ebp, ebp
mov rcx, qword [0x1400710e8]
mov rax, qword [rcx + 8]
jmp 0x14001f8a0
cmp qword [rax + 0x20], rbx
jae 0x14001f89a
mov rax, qword [rax + 0x10]
jmp 0x14001f8a0
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], bpl
je 0x14001f88e
cmp byte [rcx + 0x19], bpl
jne 0x14001f8d9
cmp rbx, qword [rcx + 0x20]
jb 0x14001f8d9
lea r8, [rsp + 0x40]
mov qword [rsp + 0x40], rbx
lea rdx, [rsp + 0x20]
lea rcx, [0x1400710e8]
call fcn.14001f630
mov rax, qword [rax]
mov rax, qword [rax + 0x28]
jmp 0x14001f9a5
lea rdi, [rbx + 8]
mov r8d, ebp
movzx eax, word [rdi]
cmp word [rbx], ax
je 0x14001f911
mov r9, rdi
inc r8d
lea r9, [r9 + 2]
mov ecx, r8d
and ecx, 0x80000003
jge 0x14001f904
dec ecx
or ecx, 0xfffffffc
inc ecx
movsxd rdx, ecx
movzx ecx, word [r9]
cmp word [rbx + rdx*2], cx
jne 0x14001f8eb
movsxd rcx, r8d
mov eax, 2
inc rcx
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14002dde0
movzx ecx, word [rbx]
mov rsi, rax
movzx eax, word [rdi]
mov edx, ebp
cmp cx, ax
je 0x14001f979
mov r9, rbp
mov r8, rbp
xor cx, ax
inc edx
inc r9
mov word [r8 + rsi], cx
mov eax, edx
lea r8, [r9 + r9]
and eax, 0x80000003
jge 0x14001f969
dec eax
or eax, 0xfffffffc
inc eax
cdqe
movzx ecx, word [rbx + rax*2]
movzx eax, word [r8 + rdi]
cmp cx, ax
jne 0x14001f948
movsxd rax, edx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x40], rbx
lea rcx, [0x1400710e8]
mov word [rsi + rax*2], bp
call fcn.14001f630
mov rcx, qword [rax]
mov rax, rsi
mov qword [rcx + 0x28], rsi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140020dc4
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14006f100]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rdx
mov rdi, rcx
mov qword [r11 - 0x48], rcx
mov qword [r11 - 0x40], rdx
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
mov rsi, qword [rax + 0x10]
jmp 0x140020e2c
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140020e1c
mov rdx, qword [rdi]
mov rcx, qword [rsi + 0x60]
call fcn.14003ce64
test eax, eax
je 0x140020e35
mov rsi, qword [rsi]
cmp qword [rsi + 0x30], 0
jne 0x140020e0f
jmp 0x140020e3e
mov r8, qword [rsi + 0x30]
test r8, r8
jne 0x140020eab
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140020e4b
mov rcx, qword [rdi]
call fcn.140022f70
mov r8, rax
test rax, rax
jne 0x140020eab
mov rcx, rdi
call fcn.140002260
nop
mov rdx, qword [rbx + 0x18]
mov esi, 0xf
cmp rdx, rsi
jbe 0x140020e9f
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140020e9a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140020ff0
mov rcx, r8
call fcn.14002dc14
and qword [rbx + 0x10], 0
xor eax, eax
jmp 0x140020f79
movsxd rax, dword [r8 + 0x3c]
mov ecx, dword [rax + r8 + 0x88]
add rcx, r8
mov ebp, dword [rcx + 0x20]
add rbp, r8
mov r14d, dword [rcx + 0x24]
add r14, r8
mov r15d, dword [rcx + 0x1c]
add r15, r8
xor edx, edx
mov r12d, dword [rcx + 0x18]
lea esi, [rdx + 0xf]
test r12d, r12d
je 0x140020f18
mov eax, dword [rbp + rdx*4]
add rax, r8
mov rcx, rbx
cmp qword [rbx + 0x18], rsi
jbe 0x140020eef
mov rcx, qword [rbx]
sub rcx, rax
movzx r9d, byte [rax]
movzx r10d, byte [rax + rcx]
sub r9d, r10d
jne 0x140020f08
inc rax
test r10d, r10d
jne 0x140020ef2
test r9d, r9d
je 0x140020fa6
inc edx
cmp edx, r12d
jb 0x140020edc
mov rdx, rbx
cmp qword [rbx + 0x18], rsi
jbe 0x140020f24
mov rdx, qword [rbx]
mov rcx, r8
call fcn.140022afc
mov rbp, rax
mov rcx, rdi
call fcn.140002260
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, rsi
jbe 0x140020f71
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140020f6c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140020ff0
mov rcx, r8
call fcn.14002dc14
mov rax, rbp
and qword [rbx + 0x10], 0
mov byte [rbx], 0
mov qword [rbx + 0x18], rsi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14002dcb0
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
movzx eax, word [r14 + rdx*2]
mov ebp, dword [r15 + rax*4]
add rbp, r8
mov rcx, rdi
call fcn.140002260
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, rsi
jbe 0x140020f71
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140020f6c
add rdx, 0x27
mov rax, qword [rcx - 8]
sub rcx, rax
add rcx, 0xfffffffffffffff8
cmp rcx, 0x1f
ja 0x140020ff0
mov rcx, rax
jmp 0x140020f6c
call fcn.140034e14
int3
Function at 0x1400251ec
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14006f100]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx]
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
and eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14002dcb0
add rsp, 0x48
ret

Function at 0x140025248
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14006f100]
xor rax, rsp
mov qword [rsp + 0x38], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rdi, rcx
mov ebx, r8d
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140025292
cmp dword [rsp + 0x30], ebx
jne 0x140025292
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, 1
jmp 0x140025294
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14002dcb0
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1400278cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
lea r8, [0x140058a28]
mov rcx, qword [0x140071100]
mov edx, 0x68
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x14002797f
mov rcx, qword [0x140071100]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14002797f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14002797f
mov rcx, qword [0x140071100]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
mov dword [rsi], ecx
shr rcx, 1
call fcn.14002dde0
mov ecx, dword [rsi]
test ecx, ecx
je 0x140027979
lea ecx, [rbx + 1]
mov r9d, ebx
mov r8b, byte [rcx + r14]
add ebx, 2
sub r8b, 0x41
mov cl, byte [r14 + r9]
dec cl
shr r9, 1
shl cl, 4
or r8b, cl
mov byte [r9 + rax], r8b
mov ecx, dword [rsi]
cmp ebx, ecx
jb 0x14002794f
shr ecx, 1
mov dword [rsi], ecx
jmp 0x140027981
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140027c8c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14006f100]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rdx
mov r14, rcx
mov qword [rbp - 0x30], rdx
and qword [rbp - 0x20], 0
and dword [rbp - 0x28], 0
lea r8, [rbp - 0x28]
lea rdx, [rbp - 0x20]
mov rcx, qword [rdi]
call fcn.14000d5f0
test al, al
je 0x140027d76
mov r8d, dword [rbp - 0x28]
test r8d, r8d
je 0x140027cfa
mov rax, qword [rbp - 0x20]
mov ecx, r8d
xor byte [rax], 0x55
inc rax
sub rcx, 1
jne 0x140027cea
mov r8d, dword [rbp - 0x28]
lea rax, [rbp - 0x18]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov r9b, byte [r14 + 0x10]
mov rdx, qword [rbp - 0x20]
mov ecx, dword [r14 + 0x30]
call fcn.1400252ac
mov rsi, rax
mov eax, dword [rbp - 0x28]
test eax, eax
je 0x140027d36
mov rcx, qword [rbp - 0x20]
mov edx, eax
xor byte [rcx], 0x55
inc rcx
sub rdx, 1
jne 0x140027d2a
mov rbx, qword [rbp - 0x20]
mov rcx, rbx
call fcn.14002dc14
test rbx, rbx
je 0x140027d4f
mov qword [rbp - 0x20], 0x8123
test rsi, rsi
je 0x140027d76
and qword [rsp + 0x20], 0
mov r9b, byte [r14 + 0x11]
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp - 0x18]
call fcn.140025708
mov qword [r14 + 0x28], rax
test rax, rax
jne 0x140027dad
mov rdi, qword [rdi + 8]
test rdi, rdi
je 0x140027da9
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x140027da9
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
add eax, ebx
jne 0x140027da9
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
xor al, al
jmp 0x140027de2
mov rdi, qword [rdi + 8]
test rdi, rdi
je 0x140027de0
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x140027de0
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx]
mov edx, ebx
lock xadd dword [rdi + 0xc], edx
add edx, ebx
jne 0x140027de0
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 8]
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14002dcb0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x14002856c
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14006f100]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rcx
lea r8, [rsp + 0x20]
mov rcx, qword [rcx + 0x18]
lea rdx, [rsp + 0x28]
call fcn.14000d5f0
test al, al
je 0x1400285e6
mov edx, dword [rsp + 0x20]
test edx, edx
je 0x1400285ba
mov rax, qword [rsp + 0x28]
mov ecx, edx
xor byte [rax], 0x55
inc rax
sub rcx, 1
jne 0x1400285aa
mov edx, dword [rsp + 0x20]
mov r8b, byte [rbx + 0x10]
xor r9d, r9d
mov rcx, qword [rsp + 0x28]
call fcn.140025698
mov edx, dword [rsp + 0x20]
test edx, edx
je 0x1400285e4
mov rcx, qword [rsp + 0x28]
xor byte [rcx], 0x55
inc rcx
sub rdx, 1
jne 0x1400285d8
call rax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14002dcb0
add rsp, 0x40
pop rbx
ret
Function at 0x14002b034
Capabilities:
Get disk size
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14006f100]
xor rax, rsp
mov qword [rbp - 8], rax
mov edi, 0x10
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x28]
mov dword [rbp - 0x40], edi
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea r9, [rbp - 0x40]
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x38]
lea rcx, [0x140056e38]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
lea rdx, [rbp - 0x40]
mov dword [rbp - 0x40], edi
lea rcx, [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea rcx, [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rbp - 0x40]
mov dword [rbp - 0x40], edi
lea rcx, [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea rdx, [rbp - 0x40]
mov dword [rbp - 0x40], edi
lea rcx, [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
and qword [rsp + 0x30], 0
lea ebx, [rdi - 0xf]
mov r8d, ebx
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
lea rcx, str.97.txt
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14002b103
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 8
lea rcx, [rbp - 0x38]
call qword [sym.imp.WINMM.dll_timeGetDevCaps]
test eax, eax
jne 0x14002b126
mov ecx, ebx
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
mov ecx, ebx
call qword [sym.imp.WINMM.dll_timeEndPeriod]
lea rdx, [rbp - 0x40]
mov dword [rbp - 0x40], edi
lea rcx, [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x400
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14002b17c
lea rax, [rbp - 0x38]
mov rcx, rbx
lea r9, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.14002a1ec
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14002dcb0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14002d578
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 0x14002d5a6
xor eax, eax
jmp 0x14002d68c
cmp qword [rcx + 0x68], 0
je 0x14002d5b7
call fcn.14001e088
jmp 0x14002d68c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14002d5ce
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14002d5d0
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14002d602
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140052a70
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 0x14002d686
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14002d639
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 0x14002d662
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14003eac8
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14002d686
cmp rsi, rbx
ja 0x14002d640
test rsi, rsi
je 0x14002d686
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14003eac8
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 0x14002e884
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002e8ce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002e8ce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002e8ce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002e8ce
cmp dword [rcx + 0x84], 0xe
jbe 0x14002e8ce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002e8d0
xor al, al
add rsp, 0x28
ret
Function at 0x14003474c
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 0x140034787
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003e06c
call fcn.14003e0f8
mov eax, dword [rax]
jmp 0x1400347fe
cmp rdi, qword [rbx + 0x18]
ja 0x140034793
mov qword [rbx + 0x20], rdi
jmp 0x1400347fc
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x1400347aa
mov rcx, qword [rbx + 0x10]
call fcn.14004292c
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.140042968
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 0x1400347fe
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x140034771
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 0x14003b400
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 0x14003b437
call fcn.14003e0f8
mov dword [rax], 0x16
call fcn.140034df4
xor eax, eax
jmp 0x14003b4c5
mov rdx, r9
mov rcx, r8
call fcn.14003b39c
mov rbx, rax
test rax, rax
je 0x14003b4c2
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14003b2c8]
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 0x14003b4af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003e06c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14003b496
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14003b4a5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14004292c
jmp 0x14003b4c2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14003b4bf
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 0x140040180
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003ff7c
Function at 0x140043e08
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14006f100]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140043e52
call fcn.14003e0d8
mov dword [rax], 0xf
call fcn.14003e0f8
mov dword [rax], 0xd
call fcn.140034df4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14002dcb0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140043e5d
lea eax, [rbx + 1]
jmp 0x140043e3f
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 0x140043e3d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140043e3f
Function at 0x1400464ec
Capabilities:
Get file size

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

Function at 0x140048e44
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.14002dd90
sub rsp, rax
mov rax, qword [0x14006f100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140045068
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140048e93
mov rax, rbp
jmp 0x140048f9b
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 + 0x726a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140049d24
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x726a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140048f97
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 0x140048f97
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140049d24
test rax, rax
js 0x140048f97
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140048f97
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140048f89
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140048f89
cmp byte [rcx], 0xd
jne 0x140048f6f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140048f7e
cmp byte [rcx + 1], 0xa
jne 0x140048f7e
inc rcx
jmp 0x140048f7e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x6f540]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140048f51
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140048f9b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002dcb0
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 0x1400490c4
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, [0x1400726a0]
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 0x14004911b
cmp word [rdx], r13w
jne 0x14004911b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140049120
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140049245
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140049266
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140049159
mov rdx, r9
mov word [rbx], cx
jmp 0x140049180
cmp r9, r8
jae 0x140049190
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 0x14004913a
jmp 0x140049245
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 0x14004923a
cmp dword [rsp + 0x80], esi
je 0x14004923a
lea r8, [0x1400726a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140049212
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400491e2
mov word [rbx], r13w
jmp 0x140049242
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 0x1400491ef
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140049242
cmp word [rsp + 0x70], r13w
jne 0x14004921f
cmp rbx, r14
je 0x1400491dc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140049d2c
cmp word [rsp + 0x70], r13w
je 0x140049245
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, [0x1400726a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14004923f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140049245