joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14013e264
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x1402ed930]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402e6268]
test eax, eax
je 0x14013e2af
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402e6268]
test eax, eax
jne 0x14013e2b8
call fcn.1400139bc
test eax, eax
je 0x14013e2d4
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402de008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14013e2dc
xor eax, eax
jmp 0x14013e341
test rbx, rbx
jne 0x14013e2fc
lea rcx, str.PrintDlgA
call fcn.14002bc0c
mov rbx, rax
test rax, rax
je 0x14013e30f
mov qword [0x1402ed930], rax
mov rcx, rbx
call fcn.1401f0c7c
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x14013e324
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14013e326
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14013e33f
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140140840
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rdx]
cmp dword [rcx - 0x10], 0
je 0x140140872
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140140872
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.140161dec
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140140884
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1401408af
mov r8, rdx
mov rdx, qword [rdi]
call fcn.1400353a8
jmp 0x140140927
cmp byte [0x1402ed940], 0
jne 0x1401408f6
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1401408e6
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x1402ed938], rax
jmp 0x1401408ed
mov rbx, qword [0x1402ed938]
mov byte [0x1402ed940], 1
jmp 0x1401408fd
mov rbx, qword [0x1402ed938]
test rbx, rbx
je 0x14014091b
mov rcx, rbx
call fcn.1401f0c7c
mov r8d, dword [rdi + 8]
xor r9d, r9d
mov rcx, qword [rdi]
mov rdx, rsi
call rbx
jmp 0x140140927
mov rcx, qword [rdi]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140147ad8
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x140147ca8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
mov qword [r11 - 0x10], rax
lea r9, [r11 + 0x20]
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor edx, edx
test eax, eax
jne 0x140147cea
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret

Function at 0x140148154
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x140148226
test rbx, rbx
je 0x14014822c
test r9, r9
je 0x140148232
and qword [r8], 0
xor r8d, r8d
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rax - 0x10], r9
lea r9, [rax + 0x10]
and qword [rax - 0x18], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14014820f
cmp dword [rsp + 0x48], 3
jne 0x14014820f
test eax, eax
jne 0x14014820f
cmp dword [rdi], eax
je 0x14014820f
mov ecx, dword [rdi]
call fcn.140009998
mov qword [rbx], rax
lea r9, [rsp + 0x48]
mov rcx, qword [rbp + 8]
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140148203
cmp dword [rsp + 0x48], 3
jne 0x140148203
test eax, eax
jne 0x140148203
mov eax, 1
jmp 0x140148211
mov rcx, qword [rbx]
call fcn.1400099a0
and qword [rbx], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.14001a7c0
int3
call fcn.14001a7c0
int3
call fcn.14001a7c0
int3

Function at 0x140148658
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x140148669
xor eax, eax
jmp 0x140148697
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1401486a0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x1401486b1
xor eax, eax
jmp 0x1401486d5
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov r9d, 3
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x14014d194
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rdx
mov rbx, rcx
je 0x14014d1eb
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14014d1fc
lea rdx, str.DeleteFileTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x14014d1fc
mov rcx, rax
call fcn.1401f0c7c
mov rdx, qword [rbx]
mov rcx, rdi
call rsi
jmp 0x14014d1fe
cmp dword [rcx + 8], 0
je 0x14014d1fc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x14014d1fe
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14014d560
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x14014d5d5
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14014d5e9
lea rdx, str.MoveFileTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x14014d5e9
mov rcx, rax
call fcn.1401f0c7c
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, rbp
mov dword [rsp + 0x20], 2
mov rdx, rsi
call rdi
jmp 0x14014d5eb
cmp dword [rcx + 8], 0
je 0x14014d5e9
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x14014d5eb
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14014d8f0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
test rdx, rdx
je 0x14014d90e
mov rdx, rcx
mov rcx, rax
call fcn.14014d194
jmp 0x14014d914
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14014d928
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.14014c47c
add rsp, 0x20
pop rbx
ret

Function at 0x14014d930
Capabilities:
Move file

Disassembly:
push rbx
sub rsp, 0x20
mov rax, r8
mov rbx, rcx
test r8, r8
je 0x14014d951
mov r8, rdx
mov rdx, rcx
mov rcx, rax
call fcn.14014d560
jmp 0x14014d957
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x14014d96b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.14014c47c
add rsp, 0x20
pop rbx
ret
Function at 0x14014de44
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movzx r14d, r8w
mov r15, rdx
mov r12, rcx
or r13d, 0xffffffff
movzx esi, r13w
mov word [rax - 0x38], r13w
mov rbx, qword [0x1402eda68]
and qword [rax + 0x20], 0
xor edi, edi
mov eax, dword [0x1402e6268]
test eax, eax
je 0x14014dea2
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402e6268]
test eax, eax
jne 0x14014deab
call fcn.1400139bc
test eax, eax
je 0x14014dec7
lea rdx, [rsp + 0x78]
mov rcx, qword [0x1402de008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne edi, ecx
test edi, edi
jne 0x14014ded1
movzx eax, r13w
jmp 0x14014df42
test rbx, rbx
jne 0x14014def1
lea rcx, str.GetFileTitleA
call fcn.14002bc0c
mov rbx, rax
test rax, rax
je 0x14014df0d
mov qword [0x1402eda68], rax
mov rcx, rbx
call fcn.1401f0c7c
movzx r8d, r14w
mov rdx, r15
mov rcx, r12
call rbx
movzx esi, ax
mov word [rsp + 0x20], ax
xor ebx, ebx
cmp si, r13w
sete bl
test ebx, ebx
je 0x14014df24
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14014df26
xor edi, edi
mov rdx, qword [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14014df3f
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, si
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140166ba4
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x1402edb50]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402e6268]
test eax, eax
je 0x140166bef
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402e6268]
test eax, eax
jne 0x140166bf8
call fcn.1400139bc
test eax, eax
je 0x140166c14
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402de008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140166c1c
xor eax, eax
jmp 0x140166c81
test rbx, rbx
jne 0x140166c3c
lea rcx, str.GetOpenFileNameA
call fcn.14002bc0c
mov rbx, rax
test rax, rax
je 0x140166c4f
mov qword [0x1402edb50], rax
mov rcx, rbx
call fcn.1401f0c7c
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x140166c64
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140166c66
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x140166c7f
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140166c98
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x1402edb58]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402e6268]
test eax, eax
je 0x140166ce3
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402e6268]
test eax, eax
jne 0x140166cec
call fcn.1400139bc
test eax, eax
je 0x140166d08
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402de008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140166d10
xor eax, eax
jmp 0x140166d75
test rbx, rbx
jne 0x140166d30
lea rcx, str.GetSaveFileNameA
call fcn.14002bc0c
mov rbx, rax
test rax, rax
je 0x140166d43
mov qword [0x1402edb58], rax
mov rcx, rbx
call fcn.1401f0c7c
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x140166d58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140166d5a
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x140166d73
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1401bebf0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x1402ef028]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402e6268]
test eax, eax
je 0x1401bec3b
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402e6268]
test eax, eax
jne 0x1401bec44
call fcn.1400139bc
test eax, eax
je 0x1401bec60
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402de008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1401bec68
xor eax, eax
jmp 0x1401beccd
test rbx, rbx
jne 0x1401bec88
lea rcx, str.ChooseFontA
call fcn.14002bc0c
mov rbx, rax
test rax, rax
je 0x1401bec9b
mov qword [0x1402ef028], rax
mov rcx, rbx
call fcn.1401f0c7c
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x1401becb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1401becb2
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1401beccb
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x1401db234
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x1402ef9a8]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402e6268]
test eax, eax
je 0x1401db27f
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402e6268]
test eax, eax
jne 0x1401db288
call fcn.1400139bc
test eax, eax
je 0x1401db2a4
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402de008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1401db2ac
xor eax, eax
jmp 0x1401db311
test rbx, rbx
jne 0x1401db2cc
lea rcx, str.ChooseColorA
call fcn.14002bc0c
mov rbx, rax
test rax, rax
je 0x1401db2df
mov qword [0x1402ef9a8], rax
mov rcx, rbx
call fcn.1401f0c7c
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x1401db2f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1401db2f6
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1401db30f
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1402091e8
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 0x140209257
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140209257
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140209257
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140209257
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140209257
cmp dword [rcx + 0x84], 0xe
jbe 0x140209257
cmp dword [rcx + 0xf8], 0
je 0x140209257
mov ecx, ebx
call fcn.140209308
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.1402090e4
nop
cmp dword [rbp + 0x20], 0
je 0x1402092a5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1402092b0
int3
xor r8d, r8d
xor edx, edx
jmp 0x1402091e8

Function at 0x1402093ec
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 0x140209257
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140209257
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140209257
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140209257
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140209257
cmp dword [rcx + 0x84], 0xe
jbe 0x140209257
cmp dword [rcx + 0xf8], 0
je 0x140209257
mov ecx, ebx
call fcn.140209308
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.1402090e4
nop
cmp dword [rbp + 0x20], 0
je 0x1402092a5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1402092b0
int3
xor r8d, r8d
xor edx, edx
jmp 0x1402091e8
Function at 0x140211c08
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140211c1e
mov al, 1
jmp 0x140211c7e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140211c2f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140211c7c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140208710
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140211c7c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140211c7c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140211c7c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140211c7e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14021375c
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.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14021378c
xor eax, eax
jmp 0x14021384f
mov rbp, rbx
cmp word [rax], si
je 0x1402137b1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140213798
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140213794
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14020fcd0
movsxd r14, eax
test eax, eax
jne 0x1402137ef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140213785
mov rcx, r14
call fcn.14020a73c
mov rdi, rax
test rax, rax
jne 0x140213808
xor ecx, ecx
call fcn.14020a700
jmp 0x1402137e4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14020fcd0
test eax, eax
jne 0x140213839
mov rcx, rdi
call fcn.14020a700
jmp 0x140213843
xor ecx, ecx
call fcn.14020a700
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
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

Function at 0x14021386c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1402138f3
mov rsi, rbx
cmp word [rax], bp
je 0x1402138b2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14021389c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140213898
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14020a73c
mov rdi, rax
test rax, rax
je 0x1402138e0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401f2fc0
mov rbp, rdi
xor ecx, ecx
call fcn.14020a700
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140217600
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1401fd3dc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14021768a
cmp byte [rbp - 0x21], r15b
je 0x140217685
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1402176c0
call fcn.14020c7f0
test eax, eax
jne 0x1402176ac
cmp byte [rbp - 0x21], r15b
je 0x1402176a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1402176c0
cmp byte [rbp - 0x21], r15b
je 0x1402176bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140211f30
test eax, eax
jne 0x140217760
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1401fd3dc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1402176ff
cmp byte [rbp - 0x21], r15b
je 0x140217734
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140217734
call fcn.14020c7f0
test eax, eax
jne 0x140217720
cmp byte [rbp - 0x21], r15b
je 0x140217719
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140217734
cmp byte [rbp - 0x21], r15b
je 0x140217731
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140211f30
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140217760
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140217763
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140217771
mov rcx, rdi
call fcn.14020a700
cmp byte [rbp + 0x3f], r15b
je 0x140217780
mov rcx, qword [rbp + 0x27]
call fcn.14020a700
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret