joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10000faf4
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
xor ebx, ebx
mov r12, r8
mov edi, edx
and qword [rsp + 0x68], rbx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea edx, [rbx + 8]
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
jne 0x10000fb3f
xor edi, edi
lea ebx, [rax + 8]
jmp 0x10000fbe8
test edi, edi
jne 0x10000fb67
lea rcx, [rsp + 0x68]
call fcn.10000fc20
mov edi, eax
test eax, eax
jne 0x10000fb5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x10000fbd4
mov r9, qword [rsp + 0x68]
mov rcx, rsi
jmp 0x10000fb71
lea r9, [0x100004860]
mov rcx, rax
mov qword [rsp + 0x28], r9
mov r8, r12
mov edx, 0x200
mov qword [rsp + 0x20], r9
call fcn.100020d88
mov rdx, rsi
mov rcx, rbp
call fcn.10000fde4
mov edi, eax
test eax, eax
jne 0x10000fbd4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 2
je 0x10000fbd4
cmp eax, 5
je 0x10000fbb5
cmp eax, 0x20
je 0x10000fbb5
cmp eax, 0x21
jne 0x10000fbbd
mov rcx, rbp
call fcn.10000ae6c
lea rdx, [0x1000048e0]
mov r9d, ebx
mov r8, rbp
mov ecx, 4
call fcn.100010054
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x10000fbf8
call qword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
jne 0x10000fc04
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov eax, edi
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret

Function at 0x100010704
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor r9d, r9d
mov ebp, r8d
mov rbx, rcx
test rcx, rcx
je 0x100010792
test edx, edx
je 0x100010792
lea rsi, [rcx + 0x10040]
mov edi, edx
lea rax, [rcx + 0x40]
add rdi, rcx
cmp rsi, rdi
cmova rsi, rdi
cmp rax, rsi
jae 0x100010792
movsxd rcx, dword [rbx + 0x3c]
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x100010786
lea rax, [rcx + rbx + 0xf8]
cmp rax, rdi
jae 0x100010786
cmp dword [rcx + rbx], 0x4550
jne 0x100010786
mov eax, 0x14c
cmp word [rcx + rbx + 4], ax
jne 0x100010786
mov rcx, rbx
call fcn.1000107b0
mov r9, rax
test rax, rax
jne 0x100010792
add rbx, rbp
lea rcx, [rbx + 0x40]
cmp rcx, rsi
jb 0x100010746
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, r9
add rsp, 0x20
pop rdi
ret
Function at 0x1000107b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x50
mov rbx, rcx
and qword [rax + 0x20], 0
and qword [rax - 0x30], 0
and dword [rax + 0x10], 0
and qword [rax + 0x18], 0
or rbx, 1
mov qword [rsp + 0x60], rbx
mov qword [rax - 0x28], 0x10
mov qword [rax - 0x20], 1
and qword [rax - 0x18], 0
lea r9, [rax - 0x30]
mov r8d, 3
lea rdx, [rax - 0x28]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_LdrFindResource_U]
mov dword [rsp + 0x20], eax
jmp 0x100010817
test eax, eax
js 0x10001087c
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_LdrAccessResource]
mov dword [rsp + 0x20], eax
jmp 0x100010842
test eax, eax
js 0x10001087c
cmp dword [rsp + 0x68], 0x5c
jb 0x10001087a
mov rcx, qword [rsp + 0x70]
add rcx, 6
lea rdx, [0x100004c90]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x10001087a
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx + 0x30]
mov dword [rsp + 0x7c], eax
mov eax, dword [rcx + 0x34]
mov dword [rsp + 0x78], eax
jmp 0x10001087c
mov rax, qword [rsp + 0x78]
add rsp, 0x50
pop rbx
ret

Function at 0x100010890
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x40
and qword [rax - 0x30], 0
lea rdx, [rax + 0x20]
xor edi, edi
and qword [rax - 0x38], rdi
mov r12, rcx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
test eax, eax
jne 0x1000108c4
xor ebx, ebx
jmp 0x1000109fa
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x1000109c6
mov r9, rax
mov r8d, ebp
xor edx, edx
mov rcx, r12
call sub.VERSION.dll_GetFileVersionInfoW
mov ebx, eax
test eax, eax
je 0x1000109c8
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x30]
lea rdx, [0x100004cb0]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1000109c6
cmp qword [rsp + 0x30], rdi
je 0x1000109c6
cmp dword [rsp + 0x78], edi
je 0x1000109c6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1000109c6
mov rax, qword [rsp + 0x30]
lea r8, [0x100004cf0]
mov edx, 0x104
movzx ecx, word [rax + 2]
movzx r9d, word [rax]
mov dword [rsp + 0x20], ecx
mov rcx, rdi
call fcn.100020d88
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x38]
mov rdx, rdi
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1000109c6
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1000109c6
cmp dword [rsp + 0x80], 0
je 0x1000109c6
lea rdx, [0x100004d40]
xor ebx, ebx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x1000109c8
lea ebx, [rax + 1]
jmp 0x1000109c8
xor ebx, ebx
test rsi, rsi
je 0x1000109e1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rdi, rdi
je 0x1000109fa
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x100010b18
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
xor ebx, ebx
mov r14d, r8d
mov r13d, edx
mov rsi, rcx
test rcx, rcx
je 0x100010be0
test edx, edx
je 0x100010be0
lea rbp, [rcx + r13]
lea r12, [rcx + 0x10040]
lea rax, [rcx + 0x40]
cmp r12, rbp
mov rdi, rcx
cmova r12, rbp
cmp rax, r12
jae 0x100010be0
movsxd rcx, dword [rdi + 0x3c]
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x100010bd4
lea rax, [rcx + rdi + 0xf8]
cmp rax, rbp
jae 0x100010bd4
cmp dword [rcx + rdi], 0x4550
jne 0x100010bd4
mov eax, 0x14c
cmp word [rcx + rdi + 4], ax
jne 0x100010bd4
or dword [rsp + 0x68], 0xffffffff
mov edx, esi
lea r9, [rsp + 0x68]
sub edx, edi
lea r8, [rsp + 0x50]
xor ebx, ebx
and dword [rsp + 0x50], ebx
add edx, r13d
mov rcx, rdi
call qword [sym.imp.imagehlp.dll_CheckSumMappedFile]
test rax, rax
je 0x100010bd0
mov eax, dword [rsp + 0x50]
lea ecx, [rbx + 1]
cmp dword [rsp + 0x68], eax
cmove ebx, ecx
test ebx, ebx
jne 0x100010be0
add rdi, r14
lea rcx, [rdi + 0x40]
cmp rcx, r12
jb 0x100010b68
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x100010e54
Capabilities:
Copy file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov edi, dword [rsp + 0xa8]
xor ebx, ebx
mov rbp, rdx
mov r14, rcx
test edi, 0xfffffff8
je 0x100010e97
lea ecx, [rbx + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10001107b
mov eax, 1
mov r15d, ebx
test al, dil
cmovne r15d, eax
xor edx, edx
call fcn.1000117a8
mov qword [rsp + 0x48], rax
test rax, rax
je 0x100011079
xor edx, edx
mov rcx, rbp
call fcn.1000117a8
mov r12, rax
test rax, rax
je 0x10001104a
xor r13d, r13d
xor esi, esi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, r14
mov dword [rsp + 0x28], r15d
and qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
mov ebx, eax
test eax, eax
jne 0x100010fbb
mov ecx, edi
and ecx, 2
test cl, cl
je 0x100010fb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
and dword [rsp + 0xa8], esi
and dword [rsp + 0x40], esi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xa8]
mov ecx, eax
xor r9d, r9d
mov dword [rsp + 0x44], eax
inc r13d
call fcn.1000110a0
test eax, eax
je 0x100010f59
cmp r13d, dword [rsp + 0xa8]
jae 0x100010fb3
lea rax, [rsp + 0xa8]
test rax, rax
je 0x100010f72
mov esi, dword [rsp + 0x40]
jmp 0x100010f72
cmp r13d, 2
jae 0x100010fb3
lea rax, [rsp + 0xa8]
mov ecx, 0xbb8
test rax, rax
cmovne esi, ecx
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x30], esi
lea r8, [0x100004d60]
mov dword [rsp + 0x28], eax
lea rcx, [0x100029a58]
mov r9, r14
mov edx, 0x4000000
mov qword [rsp + 0x20], rbp
call fcn.100010d68
test esi, esi
je 0x100010ed4
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100010ed4
test ebx, ebx
je 0x10001104a
and edi, 4
test dil, dil
je 0x10001104a
mov edx, 0x80
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
test eax, eax
jne 0x10001104a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r13d, [rbx + 0x1f]
mov esi, 0x2000000
mov edi, eax
test eax, eax
lea r8, [0x100004e00]
cmove edi, r13d
lea rcx, [0x100029a58]
mov r9, rbp
mov edx, esi
mov dword [rsp + 0x20], edi
call fcn.100010d68
mov rcx, rbp
call fcn.1000114a8
test eax, eax
jne 0x100011042
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100004ea0]
lea rcx, [0x100029a58]
test eax, eax
mov r9, rbp
mov edx, esi
cmove eax, r13d
mov dword [rsp + 0x20], eax
call fcn.100010d68
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r12, r12
je 0x100011079
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1000114a8
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x50
xor ebx, ebx
xor edx, edx
mov r12, rcx
mov edi, ebx
call fcn.1000117a8
mov rsi, rax
cmp rax, rbx
je 0x1000115ac
mov edx, 0x2000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, ebx
je 0x100011571
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 7]
xor r9d, r9d
mov edx, 0x10000
mov rcx, rsi
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x100011562
lea r12d, [rbx + 1]
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x40]
mov rcx, rax
mov r9d, r12d
mov dword [rsp + 0x20], 0xd
mov byte [rsp + 0x78], r12b
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
cmp eax, ebx
jge 0x100011554
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edi, eax
jmp 0x100011557
mov ebx, r12d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100011598
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100004f00]
jmp 0x10001157e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100004f60]
lea rcx, [0x100029a58]
mov r9, r12
mov edx, 0x3000000
mov edi, eax
mov dword [rsp + 0x20], eax
call fcn.100010d68
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret

Function at 0x1000115d4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, ebx
cmp rcx, rbx
je 0x100011654
cmp bx, word [rcx]
je 0x100011654
xor edx, edx
call fcn.1000117a8
mov rsi, rax
cmp rax, rbx
je 0x100011650
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100011617
test al, 0x10
je 0x100011617
lea edi, [rbx + 1]
jmp 0x100011634
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x10b
cmp eax, ebx
cmove eax, ecx
mov ecx, 3
cmp eax, 2
cmove eax, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
jmp 0x100011661
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x100011678
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
mov edi, ebx
cmp rcx, rbx
je 0x100011782
cmp bx, word [rcx]
je 0x100011782
xor edx, edx
call fcn.1000117a8
mov rsi, rax
cmp rax, rbx
je 0x10001178d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10001176e
bt eax, 0xb
jae 0x100011767
mov edx, 0x80
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, ebx
je 0x10001176e
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 7]
xor r9d, r9d
mov edx, 0xc0010000
mov rcx, rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x10001176e
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x58]
lea r9d, [rbx + 2]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x50]
mov edx, 0x9c040
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov word [rsp + 0x50], bx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, ebx
je 0x100011754
mov ebx, 1
jmp 0x10001175c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100011776
mov ebx, 1
jmp 0x100011776
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
jmp 0x10001178f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x100011a18
Capabilities:
Create directory

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x100029100]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov r12, rcx
lea r14d, [rbx + 1]
mov qword [r11 - 0x40], rbx
mov esi, ebx
cmp rcx, rbx
je 0x100011bf6
cmp bx, word [rcx]
je 0x100011bf6
lea rdx, [r11 - 0x40]
call fcn.1000117a8
mov rbp, rax
cmp rax, rbx
je 0x100011be2
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x30], ebx
call fcn.100011d3c
cmp eax, ebx
lea r13d, [rbx + 0x5c]
jl 0x100011b56
cmp dword [rsp + 0x30], r14d
jne 0x100011b21
mov r13, qword [rsp + 0x40]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r13
repne scasw ax, word [rdi]
mov rax, qword [rsp + 0x38]
not rcx
lea rdi, [rax + rcx*2 - 2]
cmp r13, rbx
je 0x100011ad9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r13
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r13d, 0x5c
cmp r14d, 1
jne 0x100011ba5
mov edx, r13d
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcschr]
mov rdi, rax
cmp rax, rbx
je 0x100011b6c
mov rcx, rbp
mov word [rax], bx
call fcn.1000115d4
cmp eax, ebx
jne 0x100011b17
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [rdi], r13w
add rdi, 2
jmp 0x100011ae9
mov rdi, qword [rsp + 0x38]
cmp word [rdi], 0x61
jb 0x100011b32
cmp word [rdi], 0x7a
jbe 0x100011b3e
cmp word [rdi], 0x41
jb 0x100011adf
cmp word [rdi], 0x5a
ja 0x100011adf
mov eax, 0x3a
cmp ax, word [rdi + 2]
jne 0x100011adf
cmp r13w, word [rdi + 4]
jne 0x100011adf
add rdi, 8
jmp 0x100011adf
movzx ecx, ax
mov r14d, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x38]
jmp 0x100011adf
cmp r14d, 1
jne 0x100011ba5
mov rcx, rbp
call fcn.1000115d4
cmp eax, r14d
je 0x100011b9e
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, r14d
je 0x100011b9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100005000]
jmp 0x100011bb2
mov ebx, 1
jmp 0x100011bcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100005060]
lea rcx, [0x100029a58]
mov r9, r12
mov edx, 0x3000000
mov esi, eax
mov dword [rsp + 0x20], eax
call fcn.100010d68
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100011bea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
jmp 0x100011c03
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.100020910
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1000120c4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
mov ebp, edx
xor edx, edx
mov r12, rcx
mov rsi, r8
lea r9, [rsp + 0x58]
lea ecx, [rdx + 0x62]
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp eax, 0xc0000023
je 0x10001210c
test eax, eax
js 0x10001219a
mov ebx, 0xc0000001
jmp 0x10001219a
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x100012139
mov ebx, 0xc000009a
jmp 0x100012179
mov r8d, dword [rsp + 0x58]
lea r9, [rsp + 0x58]
mov rdx, rax
mov ecx, 0x62
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
test eax, eax
js 0x100012179
movzx eax, word [rdi]
add eax, 2
mov dword [rsi], eax
cmp eax, ebp
jbe 0x10001216a
mov ebx, 0xc0000023
jmp 0x100012179
mov rdx, qword [rdi + 8]
mov r8d, eax
mov rcx, r12
call sub.msvcrt.dll_memcpy
test rdi, rdi
je 0x10001219a
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test ebx, ebx
jns 0x1000121b5
lea rcx, [fcn.1000121d0]
mov r9, rsi
mov r8d, ebp
mov rdx, r12
call fcn.10001220c
mov ebx, eax
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret

Function at 0x100012940
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x100029100]
xor rax, rsp
mov qword [rsp + 0x58], rax
sub edx, 1
mov rdi, r8
je 0x1000129d7
cmp edx, 1
je 0x100012970
mov ebx, 0xc000000d
jmp 0x1000129fd
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
lea rdx, [0x100005108]
call fcn.100012618
mov ebx, eax
test eax, eax
js 0x1000129c6
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x40]
xor r8d, r8d
mov edx, 0x23000003
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], 0x10
call fcn.100013c80
mov ebx, eax
test eax, eax
js 0x1000129c6
movdqu xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rdi], xmm0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1000129fd
call fcn.1000196b0
jmp 0x1000129fd
xor r9d, r9d
lea rdx, [rsp + 0x40]
lea r8d, [r9 + 0x14]
lea ecx, [r9 + 0x5a]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
test eax, eax
js 0x1000129fd
movdqu xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rdi], xmm0
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.100020910
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x100012f88
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
mov rbx, rcx
xor r12d, r12d
xor ecx, ecx
mov qword [rsp + 0x40], r12
mov rbp, rdx
call fcn.100013714
mov rax, qword gs:[0x30]
movzx edi, word [rbx]
xor edx, edx
mov rcx, qword [rax + 0x60]
add edi, 0xe
mov rcx, qword [rcx + 0x30]
mov r8d, edi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
cmp rax, r12
jne 0x100012fe3
mov ebx, 0xc0000017
jmp 0x100013073
mov dword [rax], 1
mov dword [rax + 4], edi
mov dword [rax + 8], 3
movzx r8d, word [rbx]
mov rdx, qword [rbx + 8]
lea rcx, [rax + 0xc]
call sub.msvcrt.dll_memcpy
movzx r11d, word [rbx]
lea r8, [rsp + 0x40]
shr r11, 1
xor edx, edx
mov rcx, rsi
mov word [rsi + r11*2 + 0xc], r12w
call fcn.1000132d0
cmp eax, r12d
mov ebx, eax
jl 0x100013057
mov rdi, qword [rsp + 0x40]
lea r8, [0x100025aa0]
lea rdx, [0x100026010]
mov rcx, rdi
call fcn.10001a250
xor edx, edx
mov rcx, rdi
call fcn.1000139b0
cmp eax, r12d
mov ebx, eax
jl 0x100013057
mov qword [rbp], rdi
mov rax, qword gs:[0x30]
mov r8, rsi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
Function at 0x1000171bc
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor r10d, r10d
xor r13d, r13d
xor r12d, r12d
cmp dword [rcx], 2
mov r14, r9
mov r15, r8
mov qword [rsp + 0x38], r10
mov rax, rdx
jne 0x1000171fd
lea rbp, [rcx + 0x10]
xor esi, esi
lea rbx, [rbp + 0x10]
jmp 0x100017210
cmp dword [rcx], 6
jne 0x1000173ab
lea rsi, [rcx + 0x10]
xor ebp, ebp
lea rbx, [rsi + 0x10]
cmp dword [rbx], r10d
je 0x10001734c
cmp dword [rbx], 6
jne 0x1000173ab
cmp dword [rcx + 8], 0x5c
mov r13d, 0x38
jb 0x1000173ab
mov eax, dword [rcx + 0x40]
add eax, r13d
cmp dword [rcx + 8], eax
jb 0x1000173ab
cmp dword [rcx + 0x38], r10d
jne 0x1000173ab
cmp dword [rcx + 0x48], 5
jne 0x1000173ab
lea rax, [rsp + 0x90]
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
add rcx, r13
mov qword [rsp + 0x20], rax
call fcn.1000148a8
mov r10, qword [rsp + 0x38]
mov edi, eax
test eax, eax
js 0x100017386
cmp dword [rsp + 0x90], 0x2e
jb 0x10001729e
cmp dword [r10], 3
jne 0x10001729e
mov eax, dword [r10 + 0x14]
cmp dword [rax + r10], 2
je 0x1000172a8
mov edi, 0xc000000d
jmp 0x100017386
lea rdx, [rax + r10 + 0x14]
xor eax, eax
or r8, 0xffffffffffffffff
mov rdi, rdx
mov qword [rsp + 0x48], rdx
mov rcx, r8
repne scasw ax, word [rdi]
lea rdi, [r10 + 0x18]
not rcx
lea rdx, [rcx - 1]
mov rcx, r8
repne scasw ax, word [rdi]
add edx, edx
not rcx
mov qword [rsp + 0x40], rdx
lea eax, [rcx + rcx]
mov rcx, qword gs:[0x30]
mov rcx, qword [rcx + 0x60]
lea r8d, [rdx + rax]
xor edx, edx
mov rcx, qword [rcx + 0x30]
mov dword [rsp + 0x30], eax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r12, rax
test rax, rax
jne 0x100017314
mov r10, qword [rsp + 0x38]
mov edi, 0xc0000017
jmp 0x100017386
mov edi, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rdx, qword [rsp + 0x38]
mov r8d, dword [rsp + 0x30]
lea rcx, [rdi + r12]
add rdx, 0x18
call sub.msvcrt.dll_memcpy
mov r10, qword [rsp + 0x38]
mov rax, qword [rsp + 0x98]
xor edi, edi
test rax, rax
je 0x100017356
mov qword [rax], rsi
test r15, r15
je 0x10001735e
mov qword [r15], rbp
test r14, r14
je 0x100017366
mov qword [r14], rbx
mov rax, qword [rsp + 0xb8]
test rax, rax
je 0x100017376
mov dword [rax], r13d
mov rax, qword [rsp + 0xb0]
test rax, rax
je 0x100017386
mov qword [rax], r12
test r10, r10
je 0x1000173b0
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x38]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x1000173b0
mov edi, 0xc000000d
mov eax, edi
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret