joyce8/EMBER2024-capa huggingface dataset:
Function at 0x110107fa0
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x110190928]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor ebp, ebp
lea rbx, [rsp + 0x40]
or edi, 0xffffffff
test rcx, rcx
jne 0x110108003
call sym.msvcrt.dll___doserrno
and dword [rax], ebp
call sym.msvcrt.dll__errno
and qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], 0x16
call sym.msvcrt.dll__invalid_parameter
jmp 0x1101080aa
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetCurrentDirectoryA]
test eax, eax
je 0x110108091
lea rdx, [rsp + 0x40]
mov ecx, 0x105
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryA]
cmp eax, 0x104
jle 0x110108050
lea esi, [rax + 1]
mov edx, 1
movsxd rcx, esi
call fcn.110119e8c
mov rbx, rax
test rax, rax
je 0x110108091
mov rdx, rax
mov ecx, esi
mov ebp, 1
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryA]
test eax, eax
je 0x110108091
mov al, byte [rbx]
cmp al, 0x5c
je 0x11010805e
cmp al, 0x2f
jne 0x110108063
cmp al, byte [rbx + 1]
je 0x11010808d
mov byte [rsp + 0x30], 0x3d
movzx ecx, byte [rbx]
call sym.msvcrt.dll__mbctoupper
mov rdx, rbx
mov byte [rsp + 0x31], al
lea rcx, [rsp + 0x30]
mov word [rsp + 0x32], 0x3a
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentVariableA]
test eax, eax
je 0x110108091
xor edi, edi
jmp 0x11010809e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.110107d08
test ebp, ebp
je 0x1101080aa
mov rcx, rbx
call sym.msvcrt.dll_free
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1101303f0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1101080e0
Capabilities:
Set current directory

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, ecx
lea eax, [rcx - 1]
cmp eax, 0x19
jbe 0x110108125
call sym.msvcrt.dll___doserrno
mov dword [rax], 0xf
call sym.msvcrt.dll__errno
mov dword [rax], 0xd
xor ebx, ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call sym.msvcrt.dll__invalid_parameter
or eax, 0xffffffff
add rsp, 0x30
pop rbx
ret
mov ecx, 7
call sym.msvcrt.dll__lock
nop
add bl, 0x40
mov byte [rsp + 0x40], bl
mov word [rsp + 0x41], 0x3a
xor ebx, ebx
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x11010815f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.110107d08
or ebx, 0xffffffff
mov ecx, 7
call sym.msvcrt.dll__unlock
mov eax, ebx
jmp 0x11010811f
Function at 0x110108180
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x110190928]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea rdx, [rsp + 0x20]
mov ecx, 0x105
lea rdi, [rsp + 0x20]
xor esi, esi
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryA]
cmp eax, 0x104
jle 0x110108233
lea ebx, [rax + 1]
movsxd rcx, ebx
lea edx, [rsi + 1]
call fcn.110119e8c
mov rdi, rax
test rax, rax
jne 0x110108223
call sym.msvcrt.dll__errno
mov dword [rax], 0xc
call sym.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 0xc
test esi, esi
je 0x1101081fc
mov rcx, rdi
call sym.msvcrt.dll_free
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1101303f0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov rdx, rax
mov ecx, ebx
mov esi, 1
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryA]
xor ebx, ebx
test eax, eax
je 0x1101081e3
cmp byte [rdi + 1], 0x3a
jne 0x1101081f0
movzx ecx, byte [rdi]
call sym.msvcrt.dll_toupper
lea ebx, [rax - 0x40]
jmp 0x1101081f0

Function at 0x110108260
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov edi, edx
mov rbx, rcx
test rcx, rcx
jne 0x11010829f
call sym.msvcrt.dll___doserrno
and dword [rax], ebx
call sym.msvcrt.dll__errno
and qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], 0x16
call sym.msvcrt.dll__invalid_parameter
or eax, 0xffffffff
jmp 0x1101082d7
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesA]
mov edx, eax
cmp eax, 0xffffffff
jne 0x1101082bb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.110107d08
jmp 0x11010829a
or eax, 1
and edx, 0xfffffffe
and dil, 0x80
mov rcx, rbx
cmove edx, eax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesA]
test eax, eax
je 0x1101082ac
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1101084d8
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x110190928]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov ebx, r8d
mov rdi, rdx
mov esi, ecx
test ecx, ecx
je 0x11010856e
call fcn.1101085e8
test eax, eax
jne 0x11010853d
call sym.msvcrt.dll___doserrno
mov dword [rax], 0xf
call sym.msvcrt.dll__errno
mov dword [rax], 0xd
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1101303f0
add rsp, 0x150
pop rdi
pop rsi
pop rbx
ret
add sil, 0x40
mov word [rsp + 0x21], 0x2e3a
lea r9, [rsp + 0x28]
mov byte [rsp + 0x20], sil
lea r8, [rsp + 0x30]
mov byte [rsp + 0x23], 0
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFullPathNameA]
jmp 0x11010857e
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryA]
test eax, eax
je 0x110108520
inc eax
cmp eax, 0x104
ja 0x110108520
test rdi, rdi
jne 0x1101085b4
cmp eax, ebx
cmovg ebx, eax
mov ecx, ebx
call sym.msvcrt.dll_malloc
mov rdi, rax
test rax, rax
jne 0x1101085c8
call sym.msvcrt.dll__errno
mov dword [rax], 0xc
jmp 0x110108520
cmp eax, ebx
jle 0x1101085c8
call sym.msvcrt.dll__errno
mov dword [rax], 0x22
jmp 0x110108520
movsxd rdx, ebx
lea r8, [rsp + 0x30]
mov rcx, rdi
call sym.msvcrt.dll_strcpy_s
mov rax, rdi
jmp 0x110108522

Function at 0x1101085e8
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
test ecx, ecx
jne 0x1101085f9
lea eax, [rbx + 1]
jmp 0x11010861e
add cl, 0x40
mov word [rsp + 0x31], 0x5c3a
mov byte [rsp + 0x30], cl
lea rcx, [rsp + 0x30]
mov byte [rsp + 0x33], bl
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeA]
cmp eax, 2
setae bl
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x110108640
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryA]
test eax, eax
jne 0x110108658
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
jmp 0x11010865a
xor eax, eax
test eax, eax
je 0x11010866a
mov ecx, eax
call fcn.110107d08
or eax, 0xffffffff
jmp 0x11010866c
xor eax, eax
add rsp, 0x28
ret

Function at 0x110108680
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryA]
test eax, eax
jne 0x110108696
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
jmp 0x110108698
xor eax, eax
test eax, eax
je 0x1101086a8
mov ecx, eax
call fcn.110107d08
or eax, 0xffffffff
jmp 0x1101086aa
xor eax, eax
add rsp, 0x28
ret
Function at 0x110108c80
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileA]
test eax, eax
jne 0x110108c96
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
jmp 0x110108c98
xor eax, eax
test eax, eax
je 0x110108ca8
mov ecx, eax
call fcn.110107d08
or eax, 0xffffffff
jmp 0x110108caa
xor eax, eax
add rsp, 0x28
ret

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

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
test rcx, rcx
jne 0x110108d1a
call sym.msvcrt.dll___doserrno
and dword [rax], 0
call sym.msvcrt.dll__errno
and qword [rsp + 0x20], 0
mov ebx, 0x16
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], ebx
call sym.msvcrt.dll__invalid_parameter
mov eax, ebx
jmp 0x110108d6a
test ebx, 0xfffffff0
jne 0x110108ced
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x110108d43
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.110107d08
call sym.msvcrt.dll__errno
mov eax, dword [rax]
jmp 0x110108d6a
test al, 0x10
jne 0x110108d68
test al, 1
je 0x110108d68
test bl, 2
je 0x110108d68
call sym.msvcrt.dll___doserrno
mov dword [rax], 5
call sym.msvcrt.dll__errno
mov dword [rax], 0xd
jmp 0x110108d3a
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x110108d80
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x110190928]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor r14d, r14d
lea rbx, [rsp + 0x40]
or edi, 0xffffffff
mov ebp, r14d
test rcx, rcx
jne 0x110108de6
call sym.msvcrt.dll___doserrno
mov dword [rax], r14d
call sym.msvcrt.dll__errno
xor r9d, r9d
mov qword [rsp + 0x20], r14
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], 0x16
call sym.msvcrt.dll__invalid_parameter
jmp 0x110108e9b
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetCurrentDirectoryW]
test eax, eax
je 0x110108e82
lea rdx, [rsp + 0x40]
mov ecx, 0x105
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryW]
cmp eax, 0x104
jle 0x110108e33
lea esi, [rax + 1]
mov edx, 2
movsxd rcx, esi
call fcn.110119e8c
mov rbx, rax
test rax, rax
je 0x110108e82
mov rdx, rax
mov ecx, esi
mov ebp, 1
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryW]
test eax, eax
je 0x110108e82
movzx eax, word [rbx]
cmp ax, 0x5c
je 0x110108e46
cmp ax, 0x2f
jne 0x110108e4c
cmp ax, word [rbx + 2]
je 0x110108e7d
mov eax, 0x3d
mov word [rsp + 0x30], ax
movzx ecx, word [rbx]
call sym.msvcrt.dll_towupper
mov rdx, rbx
mov word [rsp + 0x32], ax
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x34], 0x3a
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentVariableW]
test eax, eax
je 0x110108e82
mov edi, r14d
jmp 0x110108e8f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.110107d08
test ebp, ebp
je 0x110108e9b
mov rcx, rbx
call sym.msvcrt.dll_free
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1101303f0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x110108ed0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov edi, edx
mov rbx, rcx
test rcx, rcx
jne 0x110108f0f
call sym.msvcrt.dll___doserrno
and dword [rax], ebx
call sym.msvcrt.dll__errno
and qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], 0x16
call sym.msvcrt.dll__invalid_parameter
or eax, 0xffffffff
jmp 0x110108f47
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
mov edx, eax
cmp eax, 0xffffffff
jne 0x110108f2b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.110107d08
jmp 0x110108f0a
or eax, 1
and edx, 0xfffffffe
and dil, 0x80
mov rcx, rbx
cmove edx, eax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
test eax, eax
je 0x110108f1c
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x110109168
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x110190928]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor ebp, ebp
mov ebx, r8d
mov rdi, rdx
mov esi, ecx
test ecx, ecx
je 0x11010920d
call fcn.1101085e8
test eax, eax
jne 0x1101091db
call sym.msvcrt.dll___doserrno
mov dword [rax], 0xf
call sym.msvcrt.dll__errno
mov dword [rax], 0xd
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1101303f0
mov rbx, qword [rsp + 0x288]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret
add si, 0x40
mov dword [rsp + 0x2a], 0x2e003a
lea r9, [rsp + 0x20]
mov word [rsp + 0x28], si
lea r8, [rsp + 0x30]
mov word [rsp + 0x2e], bp
mov edx, 0x104
lea rcx, [rsp + 0x28]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFullPathNameW]
jmp 0x11010921d
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1101091b6
inc eax
cmp eax, 0x104
ja 0x1101091b6
test rdi, rdi
jne 0x110109262
cmp eax, ebx
mov ecx, 0xffffffff
cmovg ebx, eax
mov eax, ebx
add rax, rax
cmp rax, rcx
ja 0x110109252
mov ecx, eax
call sym.msvcrt.dll_malloc
mov rdi, rax
test rax, rax
jne 0x110109276
call sym.msvcrt.dll__errno
mov dword [rax], 0xc
jmp 0x1101091b6
cmp eax, ebx
jle 0x110109276
call sym.msvcrt.dll__errno
mov dword [rax], 0x22
jmp 0x1101091b6
movsxd rdx, ebx
lea r8, [rsp + 0x30]
mov rcx, rdi
call sym.msvcrt.dll_wcscpy_s
mov rax, rdi
jmp 0x1101091b8

Function at 0x1101092a0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x1101092b8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
jmp 0x1101092ba
xor eax, eax
test eax, eax
je 0x1101092ca
mov ecx, eax
call fcn.110107d08
or eax, 0xffffffff
jmp 0x1101092cc
xor eax, eax
add rsp, 0x28
ret

Function at 0x1101092e0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x1101092f6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
jmp 0x1101092f8
xor eax, eax
test eax, eax
je 0x110109308
mov ecx, eax
call fcn.110107d08
or eax, 0xffffffff
jmp 0x11010930a
xor eax, eax
add rsp, 0x28
ret

Function at 0x1101094b0
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
test eax, eax
jne 0x1101094c6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
jmp 0x1101094c8
xor eax, eax
test eax, eax
je 0x1101094d8
mov ecx, eax
call fcn.110107d08
or eax, 0xffffffff
jmp 0x1101094da
xor eax, eax
add rsp, 0x28
ret
Function at 0x110119af0
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x90
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0xa0], rdi
mov rax, qword [0x110190928]
xor rax, rbp
mov qword [rbp + 0x68], rax
and dword [rbp], 0
mov eax, dword [rsp]
sub rsp, 0x10
lea r14, [rsp + 0x20]
mov eax, dword [r14]
mov r8d, 0x30
lea rdx, [rbp + 8]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualQuery]
test rax, rax
je 0x110119bf5
mov r15, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemInfo]
mov edi, dword [rbp + 0x3c]
lea rcx, [rbp]
xor ebx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetThreadStackGuarantee]
cmp eax, 1
jne 0x110119b7e
mov eax, dword [rbp]
test eax, eax
cmovne ebx, eax
lea ecx, [rdi - 1]
add ecx, ebx
lea edx, [rdi - 1]
cmp ecx, ebx
jb 0x110119bf5
mov eax, edx
not eax
and ecx, eax
je 0x110119b9b
lea eax, [rcx + rdi]
cmp eax, ecx
jb 0x110119bf5
mov ecx, eax
lea eax, [rdi + rdi*2]
mov ebx, edx
cmp ecx, eax
not rbx
cmovae eax, ecx
and rbx, r14
mov esi, eax
lea rax, [r15 + rdi]
sub rbx, rsi
cmp rbx, rax
jb 0x110119bf5
mov r9d, 4
mov r8d, 0x1000
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualAlloc]
test rax, rax
je 0x110119bf5
lea r9, [rbp + 4]
mov r8d, 0x104
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualProtect]
test eax, eax
je 0x110119bf5
mov eax, 1
jmp 0x110119bf7
xor eax, eax
mov rcx, qword [rbp + 0x68]
xor rcx, rbp
call fcn.1101303f0
mov rbx, qword [rbp + 0x90]
mov rsi, qword [rbp + 0x98]
mov rdi, qword [rbp + 0xa0]
lea rsp, [rbp + 0x70]
pop r15
pop r14
pop rbp
ret
Function at 0x11011a98c
Capabilities:
Clear file content

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 r13
push r14
push r15
sub rsp, 0x20
mov rbp, rdx
xor edi, edi
xor edx, edx
mov esi, ecx
lea r8d, [rdi + 1]
call fcn.11011d3e8
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x11011aa14
xor edx, edx
lea r8d, [rdi + 2]
mov ecx, esi
call fcn.11011d3e8
cmp rax, 0xffffffffffffffff
je 0x11011aa14
mov rbx, rbp
sub rbx, rax
test rbx, rbx
jle 0x11011aaa7
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r13d, 0x1000
lea edx, [rdi + 8]
mov rcx, rax
mov r8d, r13d
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov rbp, rax
test rax, rax
jne 0x11011aa3a
call sym.msvcrt.dll__errno
mov dword [rax], 0xc
call sym.msvcrt.dll__errno
mov eax, dword [rax]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
ret
mov edx, 0x8000
mov ecx, esi
call fcn.11011c540
mov r14d, eax
mov r8d, ebx
cmp rbx, r13
mov rdx, rbp
mov ecx, esi
cmovge r8d, r13d
call fcn.11011fbd4
cmp eax, 0xffffffff
je 0x11011aa6e
cdqe
sub rbx, rax
test rbx, rbx
jle 0x11011aa87
jmp 0x11011aa49
call sym.msvcrt.dll___doserrno
cmp dword [rax], 5
jne 0x11011aa83
call sym.msvcrt.dll__errno
mov dword [rax], 0xd
or rdi, 0xffffffffffffffff
mov edx, r14d
mov ecx, esi
call fcn.11011c540
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
jmp 0x11011aafc
jns 0x11011ab06
xor r8d, r8d
mov rdx, rbp
mov ecx, esi
call fcn.11011d3e8
cmp rax, 0xffffffffffffffff
je 0x11011aa14
mov ecx, esi
call sym.msvcrt.dll__get_osfhandle
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetEndOfFile]
mov ecx, eax
neg ecx
sbb rdi, rdi
neg rdi
dec rdi
test eax, eax
jne 0x11011aafc
call sym.msvcrt.dll__errno
mov dword [rax], 0xd
call sym.msvcrt.dll___doserrno
mov rbx, rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbx], eax
cmp rdi, 0xffffffffffffffff
je 0x11011aa14
xor r8d, r8d
mov rdx, r15
mov ecx, esi
call fcn.11011d3e8
cmp rax, 0xffffffffffffffff
je 0x11011aa14
xor eax, eax
jmp 0x11011aa1b
Function at 0x11012a250
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov esi, edx
mov rbx, r9
mov rdx, rcx
mov edi, r8d
lea rcx, [rsp + 0x20]
call fcn.110101038
mov r9d, dword [rsp + 0x70]
mov r8, rbx
mov edx, edi
mov ecx, esi
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
cmp byte [rsp + 0x38], 0
je 0x11012a299
mov rcx, qword [rsp + 0x30]
and dword [rcx + 0xc8], 0xfffffffd
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x11012bbfc
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x540
mov rax, qword [0x110190928]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x11012bc79
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x11012bc99
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.1101303f0
add rsp, 0x540
pop rbx
ret
Function at 0x1101300e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov r14, rcx
mov rcx, qword [0x1101946f0]
call fcn.11013a810
mov rdi, rax
test r14, r14
jne 0x110130134
call sym.msvcrt.dll__errno
and qword [rsp + 0x20], 0
mov ebx, 0x16
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], ebx
call sym.msvcrt.dll__invalid_parameter
mov eax, ebx
jmp 0x1101301fd
and dword [r14], 0
test rax, rax
jne 0x1101301d2
xor r8d, r8d
lea rcx, str.CRYPTBASE.DLL
xor edx, edx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov rsi, rax
test rax, rax
je 0x11013010c
lea rdx, str.SystemFunction036
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov rdi, rax
test rax, rax
jne 0x1101301ad
call sym.msvcrt.dll__errno
mov rbx, rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.110107e30
and qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov dword [rbx], eax
xor edx, edx
xor ecx, ecx
call sym.msvcrt.dll__invalid_parameter
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.110107e30
jmp 0x1101301fd
mov rcx, rax
call sub.api_ms_win_core_util_l1_1_0.dll_EncodePointer
mov rbx, rax
call fcn.11013a830
xchg qword [0x1101946f0], rbx
cmp rbx, rax
je 0x1101301d2
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
mov edx, 4
mov rcx, r14
mov rax, rdi
call qword [0x110177470]
test eax, eax
jne 0x1101301fb
call sym.msvcrt.dll__errno
mov dword [rax], 0xc
call sym.msvcrt.dll__errno
mov eax, dword [rax]
jmp 0x1101301fd
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

Function at 0x11013061c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x110130668
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x110130660
cmp dword [rcx + 0x3c], edx
jl 0x110130660
cmp dword [rcx + 0x3c], 0x10000000
jae 0x110130660
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x110130668
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1101308e4
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentStringsW]
xor r14d, r14d
mov rdi, rax
test rax, rax
je 0x1101309bf
mov rbx, rax
cmp word [rax], r14w
je 0x110130933
add rbx, 2
movzx eax, word [rbx]
test ax, ax
jne 0x11013091b
add rbx, 2
movzx eax, word [rbx]
test ax, ax
jne 0x11013091b
mov qword [rsp + 0x38], r14
sub rbx, rdi
mov qword [rsp + 0x30], r14
mov r8, rdi
sar rbx, 1
xor edx, edx
mov dword [rsp + 0x28], r14d
xor ecx, ecx
mov qword [rsp + 0x20], r14
lea r9d, [rbx + 1]
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
movsxd rbp, eax
test eax, eax
je 0x1101309b6
mov rcx, rbp
call fcn.110119f14
mov rsi, rax
test rax, rax
je 0x1101309b6
mov qword [rsp + 0x38], r14
lea r9d, [rbx + 1]
mov qword [rsp + 0x30], r14
mov r8, rdi
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
test eax, eax
jne 0x1101309a8
mov rcx, rsi
call sym.msvcrt.dll_free
mov rsi, r14
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_FreeEnvironmentStringsW]
mov rax, rsi
jmp 0x1101309c1
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_FreeEnvironmentStringsW]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret