joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400182c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x58], rbx
mov rax, qword [0x14005b040]
xor rax, rbp
mov qword [rbp + 8], rax
mov rdi, qword [rcx]
mov r15, r8
mov r14, rdx
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax + 0xc], 0
jne 0x1400182f3
add eax, 0x5c
movsxd rsi, eax
lea rax, [rsi + 0xf]
cmp rax, rsi
ja 0x140018316
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400455d0
sub rsp, rax
lea r8, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_
mov rdx, rsi
lea rbx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400270dc
lea r8, [rdi + 0xc]
mov rdx, rsi
mov rcx, rbx
call fcn.14002dcb0
lea r8, str.Connection
mov rdx, rsi
mov rcx, rbx
call fcn.14002dcb0
lea rax, [rbp]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test eax, eax
jne 0x1400183af
mov rcx, qword [rbp]
lea rdx, str.Name
mov qword [rsp + 0x28], r15
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rbp]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test ebx, ebx
sete al
mov rcx, qword [rbp + 8]
xor rcx, rbp
call fcn.140020e70
mov rbx, qword [rbp + 0x58]
lea rsp, [rbp + 0x10]
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400189a0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov qword [rcx + 0x588], rdi
xor r8d, r8d
mov qword [rcx + 0x590], rdi
xor edx, edx
mov dword [rcx + 0x5a0], edi
mov byte [rcx + 0x230], dil
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
lea rcx, str.dhcpini.dll
mov qword [rbx + 0x5a8], rdi
mov qword [rbx + 0x598], rax
mov qword [rbx + 0x5b0], rdi
mov qword [rbx + 0x5b8], rdi
mov qword [rbx + 0x5c0], rdi
mov qword [rbx + 0x5c8], rdi
mov qword [rbx + 0x5d0], rdi
mov dword [rbx + 0x580], edi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbx + 0x5d8], rax
test rax, rax
je 0x140018ace
lea rdx, str.ProfileInit
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x5d8]
lea rdx, str.ProfileExit
mov qword [rbx + 0x5c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x5d8]
lea rdx, str.ProfileGetPrivateProfileString
mov qword [rbx + 0x5d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x5d8]
lea rdx, str.ProfileGetPrivateProfileInt
mov qword [rbx + 0x5a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x5d8]
lea rdx, str.ProfileWritePrivateProfileString
mov qword [rbx + 0x5b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x5d8]
lea rdx, str.ProfileWritePrivateProfileSection
mov qword [rbx + 0x5b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov qword [rbx + 0x5c0], rax
jmp 0x140018ad5
mov rcx, qword [rbx + 0x5c0]
cmp qword [rbx + 0x5a8], rdi
jne 0x140018aec
mov rax, qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov qword [rbx + 0x5a8], rax
cmp qword [rbx + 0x5b0], rdi
jne 0x140018b03
mov rax, qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov qword [rbx + 0x5b0], rax
cmp qword [rbx + 0x5b8], rdi
jne 0x140018b1a
mov rax, qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov qword [rbx + 0x5b8], rax
test rcx, rcx
jne 0x140018b2d
mov rax, qword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
mov qword [rbx + 0x5c0], rax
mov rax, qword [rbx + 0x5c8]
test rax, rax
je 0x140018b3b
call rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140019c40
Capabilities:
Copy file
Get file size
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push r14
sub rsp, 0x2a8
mov rax, qword [0x14005b040]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor r14d, r14d
mov rbx, rcx
cmp dword [rcx + 0x57c], r14d
je 0x140019e5d
mov qword [r11 - 0x18], rbp
lea r8, [r11 + 0x18]
mov qword [r11 - 0x20], rsi
lea rcx, [r11 - 0x238]
mov qword [r11 - 0x28], rdi
call qword [sym.imp.USER32.dll_wvsprintfA]
mov qword [rsp + 0x30], r14
lea rcx, [rbx + 0x348]
mov dword [rsp + 0x28], r14d
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], 4
mov r8d, 3
mov dword [rsp + 0x40], r14d
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140019d49
nop dword [rax + rax]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [rbx + 0x578]
jb 0x140019d49
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x460]
xor r8d, r8d
lea rcx, [rbx + 0x348]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov qword [rsp + 0x30], r14
lea rcx, [rbx + 0x348]
mov dword [rsp + 0x28], r14d
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140019ce0
mov rsi, qword [rsp + 0x298]
cmp rdi, 0xffffffffffffffff
je 0x140019e30
mov r9d, 2
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x52]
movzx edx, word [rsp + 0x50]
movzx eax, word [rsp + 0x54]
movzx r10d, word [rsp + 0x48]
movzx r9d, word [rsp + 0x4e]
movzx r8d, word [rsp + 0x4a]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x28], edx
lea rdx, str.__02d__02d__d__02d:_02d:_02d_
mov dword [rsp + 0x20], r10d
call qword [sym.imp.USER32.dll_wsprintfA]
mov rbx, 0xffffffffffffffff
lea rax, [rsp + 0x58]
mov r8, rbx
nop
inc r8
cmp byte [rax + r8], r14b
jne 0x140019dd0
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rax, [rsp + 0x80]
nop dword [rax]
inc rbx
cmp byte [rax + rbx], r14b
jne 0x140019e00
mov r8, rbx
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x44]
mov rcx, rdi
lea rdx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x290]
mov eax, ebp
mov rbp, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140020e70
add rsp, 0x2a8
pop r14
pop rbx
ret
mov eax, r14d
jmp 0x140019e42
Function at 0x14001a080
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
sub rsp, 0x38
mov rax, qword [0x14005b040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rdi, rcx
mov qword [rsp + 0x30], r14
mov rax, r8
lea rcx, vtable.CMyProfileCache.0
lea r8, [0x1400537cc]
mov qword [rdi], rcx
lea rcx, [rsp + 0x20]
mov qword [rdi + 0x20], rdx
mov rdx, rax
call fcn.140032d44
xor ebp, ebp
mov r14, 0xffffffffffffffff
test eax, eax
jne 0x14001a161
mov rcx, qword [rsp + 0x20]
xor edx, edx
mov qword [rsp + 0x58], rbx
mov r8d, 2
mov qword [rsp + 0x68], rsi
call fcn.14003220c
mov rcx, qword [rsp + 0x20]
call fcn.140031ca8
mov rcx, qword [rsp + 0x20]
xor r8d, r8d
xor edx, edx
movsxd rbx, eax
call fcn.14003220c
mov eax, ebx
add eax, 1
movsxd rcx, eax
cmovo rcx, r14
call fcn.14002c94c
mov r9, qword [rsp + 0x20]
mov rcx, rax
mov qword [rdi + 8], rax
mov r8, rbx
lea eax, [rbx + 1]
mov edx, 1
mov dword [rdi + 0x18], eax
mov rsi, rbx
call fcn.14003317c
cmp ebx, eax
mov rbx, qword [rsp + 0x58]
jne 0x14001a150
mov rax, qword [rdi + 8]
mov byte [rsi + rax], bpl
mov rcx, qword [rsp + 0x20]
call fcn.140031e60
mov rsi, qword [rsp + 0x68]
jmp 0x14001a168
mov dword [rdi + 0x18], ebp
mov qword [rdi + 8], rbp
lea rcx, [rdi + 0x2c]
mov eax, 0x143e1
nop dword [rax]
nop word [rax + rax]
mov dword [rcx - 4], r14d
mov dword [rcx], ebp
lea rcx, [rcx + 8]
sub rax, 1
jne 0x14001a180
mov r14, qword [rsp + 0x30]
mov rcx, rdi
call fcn.14001aeb0
mov ecx, dword [rdi + 0x18]
mov rax, rdi
cmp ecx, 1
mov dword [rdi + 0x10], ebp
lea edx, [rcx - 1]
cmovl edx, ebp
mov dword [rdi + 0x14], edx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140020e70
add rsp, 0x38
pop rdi
pop rbp
ret
Function at 0x14001bcd0
Capabilities:
Access the windows event log

Disassembly:
mov r11, rsp
sub rsp, 0x188
mov rax, qword [0x14005b040]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp dword [0x14005d880], 0
jne 0x14001be4c
mov qword [r11 - 8], rbx
mov qword [r11 - 0x10], rsi
xor esi, esi
mov dword [0x14005dfac], ecx
mov dword [0x14005dfb4], edx
mov dword [0x14005dfc0], r8d
cmp ecx, 2
jne 0x14001bd23
mov dword [0x14005dfb0], esi
jmp 0x14001bd37
mov dword [0x14005dfb0], 1
cmp ecx, 4
je 0x14001bd4d
cmp ecx, 1
je 0x14001bd4d
mov eax, dword [reloc.WS2_32.dll_accept]
mov dword [0x14005dfbc], eax
inc eax
mov dword [reloc.WS2_32.dll_accept], eax
jmp 0x14001bd53
mov dword [0x14005dfbc], esi
mov rcx, qword [0x14005df90]
lea rdx, [0x14005dfa8]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov ebx, eax
test eax, eax
jne 0x14001be24
cmp dword [0x14005d880], esi
jne 0x14001be24
mov qword [rsp + 0x170], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.DHCPServer
xor ecx, ecx
mov dword [0x14005dfa0], eax
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov r9d, dword [0x14005dfa0]
lea r8, str.DHCPServer
lea rdx, str._s_error:__d
mov rdi, rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rax, [0x1400539a0]
mov qword [rsp + 0x58], rax
test rdi, rdi
je 0x14001be1a
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], esi
mov edx, 1
mov word [rsp + 0x28], 2
xor r9d, r9d
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rdi, qword [rsp + 0x170]
mov eax, ebx
mov rbx, qword [rsp + 0x180]
mov rsi, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140020e70
add rsp, 0x188
ret
mov eax, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140020e70
add rsp, 0x188
ret

Function at 0x14001c0c0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
add rsp, 0x38
ret

Function at 0x14001c0e0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rsp, 0x38
ret
Function at 0x14001c410
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14005b040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov esi, 2
mov word [rdx], si
mov rdi, rdx
mov eax, dword [rcx + 0x1c]
mov dword [rdx + 4], eax
movzx ecx, word [rcx + 4]
call qword [sym.imp.WS2_32.dll_htons]
xor r8d, r8d
mov edx, esi
mov ecx, esi
mov word [rdi + 2], ax
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x28], rax
cmp rax, 0xffffffffffffffff
je 0x14001c4ba
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 4
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x28]
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x14001c4d9
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 0x28], 0xffffffffffffffff
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140020e70
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov ecx, dword [rbx + 0x18]
mov eax, 1
mov dword [rdi + 4], ecx
movzx ecx, word [rbx + 0x20]
mov word [rdi + 2], cx
jmp 0x14001c4bc

Function at 0x14001c4f0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14005b040]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov esi, r8d
mov dword [rsp + 0x38], r9d
mov rdi, rdx
mov qword [rsp + 0x58], rcx
mov rbx, rcx
mov dword [rsp + 0x3c], 0
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x50], 1
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jne 0x14001c580
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8d, esi
lea rax, [rsp + 0x40]
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140020e70
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001e5a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rbx, rcx
xor esi, esi
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x14001e64d
movsxd rax, dword [rbx + 0x38]
mov r8d, dword [rbx + 0x3c]
cmp eax, r8d
jge 0x14001e64d
lea rdx, [rcx + rax]
sub r8d, eax
mov rcx, qword [rbx + 8]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test eax, eax
jg 0x14001e5fb
mov dword [rbx + 0x40], 1
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
add dword [rbx + 0x38], eax
mov rcx, rbx
mov rax, qword [rbx]
mov qword [rsp + 0x30], rdi
call qword [rax + 0x58]
movsxd rdi, eax
test eax, eax
jle 0x14001e648
mov eax, dword [rbx + 0x38]
cmp eax, edi
jle 0x14001e641
mov rcx, qword [rbx + 0x30]
sub eax, edi
movsxd r8, eax
lea rdx, [rcx + rdi]
call fcn.140045d50
sub dword [rbx + 0x38], edi
mov eax, esi
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov dword [rbx + 0x38], 0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov eax, esi
add rsp, 0x20
pop rsi
ret

Function at 0x14001e660
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx + 0x20]
mov rbx, rcx
test rdx, rdx
je 0x14001e6d1
mov r8d, dword [rcx + 0x28]
test r8d, r8d
jle 0x14001e6d1
mov rcx, qword [rcx + 8]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
test eax, eax
jle 0x14001e6bd
mov eax, dword [rbx + 0x28]
cmp eax, edi
jle 0x14001e6ad
mov rcx, qword [rbx + 0x20]
sub eax, edi
movsxd r8, eax
lea rdx, [rcx + rdi]
call fcn.140045d50
sub dword [rbx + 0x28], edi
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov eax, edi
mov dword [rbx + 0x40], 1
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14001e790
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14005b040]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx edi, dx
mov esi, 2
mov ecx, esi
xor r8d, r8d
mov edx, 1
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001e843
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 4
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8d, reloc.WS2_32.dll_recv
mov word [rsp + 0x3a], di
lea rdx, [rsp + 0x38]
mov word [rsp + 0x38], si
mov rcx, rbx
mov dword [rsp + 0x3c], 0
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14001e83a
mov edx, 0x7fffffff
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x14001e83a
mov rax, rbx
jmp 0x14001e84a
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140020e70
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140021c58
Capabilities:
Parse pe header

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

Function at 0x14002eae4
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x14005b040]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x1400495f0]
mov rbp, rcx
call fcn.14003779c
xor edi, edi
test rax, rax
je 0x14002ebca
mov ebx, edi
call fcn.140035334
mov r14d, dword [rax]
call fcn.140035334
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.140032bd4
mov rsi, rax
test rax, rax
je 0x14002eb5b
call fcn.140035334
mov dword [rax], r14d
jmp 0x14002eb85
call fcn.140035334
cmp dword [rax], 0x22
jne 0x14002ebc2
call fcn.140035334
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140032bd4
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14002ebc2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14002eb89
cmp rax, 3
je 0x14002eba4
mov rcx, rsi
call fcn.14002ea40
test al, al
je 0x14002ebb5
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14002ebb5
mov dil, 1
mov rcx, rbx
call fcn.1400272e4
mov al, dil
jmp 0x14002ebcc
mov rcx, rbx
call fcn.1400272e4
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140020e70
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140031ac4
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.1400455d0
sub rsp, rax
mov rax, qword [0x14005b040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400364cc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140031b13
mov rax, rbp
jmp 0x140031c1b
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 + 0x5cee0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14003b590
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x5cee0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140031c17
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 0x140031c17
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14003b590
test rax, rax
js 0x140031c17
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140031c17
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140031c09
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140031c09
cmp byte [rcx], 0xd
jne 0x140031bef
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140031bfe
cmp byte [rcx + 1], 0xa
jne 0x140031bfe
inc rcx
jmp 0x140031bfe
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x5b570]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140031bd1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140031c1b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140020e70
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 0x140033970
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 0x1400339df
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400339df
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400339df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400339df
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400339df
cmp dword [rcx + 0x84], 0xe
jbe 0x1400339df
cmp dword [rcx + 0xf8], 0
je 0x1400339df
mov ecx, ebx
call fcn.140033a9c
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.14003386c
nop
cmp dword [rbp + 0x20], 0
je 0x140033a2d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140033a38
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140033970
Function at 0x140033b80
Capabilities:
Parse pe header

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

Function at 0x14003b63c
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14005cee0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14003b69a
cmp word [rdx], r12w
jne 0x14003b69a
or byte [rax + r8*8 + 0x38], cl
jmp 0x14003b6a0
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14003b7fb
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14003b7d6
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14003b6d9
mov rcx, r9
jmp 0x14003b6fc
cmp r9, rdx
jae 0x14003b713
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14003b6bd
jmp 0x14003b7fb
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003b7d0
cmp dword [rsp + 0x80], edi
je 0x14003b7d0
mov rdx, r14
lea r11, [0x14005cee0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14003b7a9
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14003b77c
mov word [rbx], r12w
jmp 0x14003b7f7
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14003b785
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14003b7f7
cmp word [rsp + 0x70], r12w
jne 0x14003b7b6
cmp rbx, rsi
je 0x14003b776
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14003b598
cmp word [rsp + 0x70], r12w
je 0x14003b7fb
mov word [rbx], r13w
jmp 0x14003b7f7
lea r11, [0x14005cee0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14003b7f3
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14003b7fb
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret