joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180022d30
Capabilities:
Read .ini file

Disassembly:
push rbx
sub rsp, 0xa60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1800f1020]
xor rax, rsp
mov qword [rsp + CPropertyPage::Construct], rax
mov rbx, rcx
mov edx, 1
call qword [sym.imp.mfc100u.dll_Ordinal_12926]
mov dword [rbx + 0x12c], 1
mov rax, qword [rbx + 0x178]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xff
lea r9, [rsp + 0x50]
lea r8, [0x1800a3280]
lea rdx, str.Device
lea rcx, str.Section
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
nop
mov rax, qword [rsp + 0x38]
cmp dword [rax - 0x10], 0
jne 0x180022e0c
mov dword [rsp + 0x30], 0x400
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x250]
call sub.MSVCR100.dll_memset
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x250]
call qword [sym.imp.WINSPOOL.DRV_Ordinal_203]
test eax, eax
jne 0x180022df2
jmp 0x180022e49
lea r8, [rsp + 0x250]
lea rdx, [0x1800a8b00]
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc100u.dll_CMFCRibbonRecentFilesList::FillList]
mov dword [rsp + 0x30], 1
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, rbx
call sym.Hg3DUiHU.dll_private:_void___cdecl_CHgExportDrawing::SetPrinterOption_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const____ptr64__int_const____ptr64____ptr64
mov rcx, rbx
call sym.Hg3DUiHU.dll_public:_void___cdecl_CHgExportDrawing::Run_void____ptr64
mov dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, rbx
call sym.Hg3DUiHU.dll_private:_void___cdecl_CHgExportDrawing::SetPrinterOption_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const____ptr64__int_const____ptr64____ptr64
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc100u.dll_CWinApp::CWinApp]
mov rcx, qword [rsp + 0xa50]
xor rcx, rsp
call fcn.180030d20
add rsp, 0xa60
pop rbx
ret
Function at 0x1800314e3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1800f1020]
jne 0x180030d3a
rol rcx, 0x10
test cx, 0xffff
jne 0x180030d36
repz ret
ror rcx, 0x10
jmp 0x18003143c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800f34d0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1800f35c8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1800314c1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1800f34d0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1800314e3
mov rax, qword [rsp + 0x88]
mov qword [0x1800f35c8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1800f3568], rax
mov rax, qword [0x1800f35c8]
mov qword [0x1800f3440], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1800f3550], rax
mov dword [0x1800f3430], 0xc0000409
mov dword [0x1800f3434], 1
mov rax, qword [0x1800f1020]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800f1028]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800f34c8], eax
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18009c6f8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800f34c8], 0
jne 0x18003156a
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x180080ce0
Capabilities:
Get common file path

Disassembly:
mov byte [rsp + 0x18], r8b
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x250
mov rax, qword [0x1800f1020]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov dword [rsp + 0x240], 0
xor eax, eax
mov word [rsp + 0x30], ax
lea rax, [rsp + 0x32]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
movzx eax, byte [rsp + 0x270]
mov r9d, eax
mov r8d, dword [rsp + 0x268]
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x180080d7f
lea rdx, [0x1800a1f00]
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [rsp + 0x240]
or eax, 1
mov dword [rsp + 0x240], eax
mov rax, qword [rsp + 0x260]
jmp 0x180080dab
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [rsp + 0x240]
or eax, 1
mov dword [rsp + 0x240], eax
mov rax, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.180030d20
add rsp, 0x250
pop rdi
ret
Function at 0x180080dd0
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x250
mov rax, qword [0x1800f1020]
xor rax, rsp
mov qword [rsp + 0x248], rax
xor eax, eax
mov word [rsp + 0x30], ax
lea rax, [rsp + 0x32]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x260]
call fcn.1800356d0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x260], 0
je 0x180080e2c
cmp qword [rsp + 0x20], 4
jae 0x180080e33
xor al, al
jmp 0x180080ef6
mov qword [rsp + 0x240], 0
jmp 0x180080e54
mov rax, qword [rsp + 0x240]
inc rax
mov qword [rsp + 0x240], rax
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x240], rax
jae 0x180080ef4
mov rax, qword [rsp + 0x240]
add rax, rax
mov rcx, qword [rsp + 0x240]
mov rdx, qword [rsp + 0x260]
movzx eax, word [rdx + rax*2]
mov word [rsp + rcx*2 + 0x30], ax
mov rax, qword [rsp + 0x240]
movzx eax, word [rsp + rax*2 + 0x30]
cmp eax, 0x5c
je 0x180080eaf
mov rax, qword [rsp + 0x240]
movzx eax, word [rsp + rax*2 + 0x30]
cmp eax, 0x2f
jne 0x180080eef
xor eax, eax
mov rcx, qword [rsp + 0x240]
mov word [rsp + rcx*2 + 0x32], ax
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180080eef
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180080eef
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x180080eef
xor al, al
jmp 0x180080ef6
jmp 0x180080e41
mov al, 1
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.180030d20
add rsp, 0x250
pop rdi
ret
Function at 0x180081b10
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x20]
call qword [0x18009c538]
nop
lea rdx, [0x1800a2138]
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc100u.dll_COleCurrency::operator_]
lea rcx, [rsp + 0x30]
call sub.mfc100u.dll_CEnumArray::CEnumArray
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc100u.dll_CDumpContext::operator___1]
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x30]
call sub.mfc100u.dll_CArchivePropExchange::ExchangeBlobProp
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x180081c70
lea rcx, [rsp + 0x30]
call sub.mfc100u.dll_CArchivePropExchange::ExchangeProp
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x30]
call sub.mfc100u.dll_CBrowserControlSite::HideUI
test eax, eax
je 0x180081ba1
jmp 0x180081b78
lea rcx, [rsp + 0x30]
call fcn.1800824b0
test eax, eax
je 0x180081c2c
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x30]
call sub.mfc100u.dll_CRichEditCtrl::GetDefaultCharFormat
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc100u.dll_CView::CView]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc100u.dll_CWinApp::CWinApp]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x78], rax
lea r8, [0x1800a204c]
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x78]
call fcn.180024b80
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.180081b10
jmp 0x180081c6b
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call sub.mfc100u.dll_CRichEditCtrl::GetDefaultCharFormat
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.mfc100u.dll_CDumpContext::operator___1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rsp + 0x80]
call qword [sym.imp.mfc100u.dll_CWinApp::CWinApp]
jmp 0x180081b78
lea rcx, [rsp + 0x30]
call sub.mfc100u.dll_CDaoException::classCDaoException
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.mfc100u.dll_CDumpContext::operator___1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [rsp + 0x88], 1
lea rcx, [rsp + 0x30]
call sub.mfc100u.dll_CDockSite::CDockSite
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc100u.dll_CWinApp::CWinApp]
nop
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.mfc100u.dll_CWinApp::CWinApp]
mov eax, dword [rsp + 0x88]
add rsp, 0xc8
ret
Function at 0x14078e108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14078e28f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14078e139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14078e11f
add dl, dl
jne 0x14078e146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14078e1a6
xor eax, eax
add dl, dl
jne 0x14078e155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14078e25d
add dl, dl
jne 0x14078e166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14078e173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14078e180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14078e18d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14078e19a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14078e12e
mov eax, 1
add dl, dl
jne 0x14078e1b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14078e1c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14078e1ab
sub eax, ebx
mov ebx, 1
jne 0x14078e1fc
mov ecx, 1
add dl, dl
jne 0x14078e1de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14078e1eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14078e1d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14078e12e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14078e218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14078e225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14078e20d
cmp eax, 0x7d00
jae 0x14078e24b
cmp eax, 0x500
jb 0x14078e246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14078e12e
cmp eax, 0x7f
ja 0x14078e24e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14078e12e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14078e282
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14078e12e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001cd60
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14001cd6d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14001cd7d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14001cd65
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14001cd95
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14001cd82
sub eax, 3
jb 0x14001cdaf
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14001cde6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14001cdd6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14001cdd4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14001cdc3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14001cd22
jmp 0x14001cd6d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x3400
mov dl, 1
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14001ce32
cmp rsi, rcx
jae 0x14001ce3a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14001ce19
cmp al, 0x8f
ja 0x14001ce19
cmp byte [rsi - 2], 0xf
je 0x14001ce1f
sub al, 0xe8
cmp al, 1
ja 0x14001ce03
cmp rsi, rcx
jae 0x14001ce3a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14001ce09
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14001ce3a
lodsb al, byte [rsi]
jmp 0x14001ce19
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1a000]
mov eax, dword [rdi]
or eax, eax
je 0x14001ce97
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2e380]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14001ce47
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14001ce91
mov qword [rbx], rax
add rbx, 8
jmp 0x14001ce67
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14001ceef
sub rsp, 0xffffffffffffff80
jmp section.UPX0
Function at 0x140001740
Capabilities:
Parse pe header

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

Function at 0x140005ebc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005cb8
Function at 0x140008f7c
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 0x140008fac
xor eax, eax
jmp 0x14000906f
mov rbp, rbx
cmp word [rax], si
je 0x140008fd1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140008fb8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140008fb4
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.140008e9c
movsxd r14, eax
test eax, eax
jne 0x14000900f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140008fa5
mov rcx, r14
call fcn.140009e58
mov rdi, rax
test rax, rax
jne 0x140009028
xor ecx, ecx
call fcn.1400074fc
jmp 0x140009004
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.140008e9c
test eax, eax
jne 0x140009059
mov rcx, rdi
call fcn.1400074fc
jmp 0x140009063
xor ecx, ecx
call fcn.1400074fc
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 0x14000c560
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.140007f6c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000c5ea
cmp byte [rbp - 0x21], r15b
je 0x14000c5e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000c620
call fcn.14000a668
test eax, eax
jne 0x14000c60c
cmp byte [rbp - 0x21], r15b
je 0x14000c604
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000c620
cmp byte [rbp - 0x21], r15b
je 0x14000c61d
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.14000754c
test eax, eax
jne 0x14000c6c0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140007f6c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000c65f
cmp byte [rbp - 0x21], r15b
je 0x14000c694
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000c694
call fcn.14000a668
test eax, eax
jne 0x14000c680
cmp byte [rbp - 0x21], r15b
je 0x14000c679
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000c694
cmp byte [rbp - 0x21], r15b
je 0x14000c691
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.14000754c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000c6c0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000c6c3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000c6d1
mov rcx, rdi
call fcn.1400074fc
cmp byte [rbp + 0x3f], r15b
je 0x14000c6e0
mov rcx, qword [rbp + 0x27]
call fcn.1400074fc
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
Function at 0x14000f510
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000f538
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000f538
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x4163c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41654b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x0061b020]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x416425
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x416434
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x416453
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x416463
cmp rbx, 0x1000
jae 0x41642b
jmp 0x4164cd
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x416475
xor edx, edx
jmp 0x4164c4
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x0061b020]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x416459
jmp 0x416448
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x0061b020]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x004bb4d5]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x004bb82e]
mov ebx, 0x19
nop dword [rax + rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x30]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x004bd665]
mov ebx, 0x21
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.sysUnusedOS
Function at 0x416580
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4167a6
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call sym.runtime.stdcall4.abi0
xorps xmm15, xmm15
mov r14, qword [0x0061b020]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x4165f3
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x416602
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x416625
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x416635
cmp rbx, 0x1000
jae 0x4165f9
nop
jmp 0x4166b8
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x41664d
xor esi, esi
jmp 0x4166aa
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call sym.runtime.stdcall4.abi0
xorps xmm15, xmm15
mov r14, qword [0x0061b020]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x41662b
jmp 0x416616
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x0061b020]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x416740
nop dword [rax + rax]
call sym.runtime.printlock
lea rax, [0x004bb847]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call sym.runtime.printuint
lea rax, [0x004bb82e]
mov ebx, 0x19
call sym.runtime.printstring
mov eax, dword [rsp + 0x34]
call sym.runtime.printuint
nop
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x004b8b7c]
mov ebx, 0xd
call sym.runtime.throw
nop dword [rax + rax]
cmp eax, 0x5af
je 0x4166e0
call sym.runtime.printlock
lea rax, [0x004bb847]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x004bb82e]
mov ebx, 0x19
call sym.runtime.printstring
mov eax, dword [rsp + 0x34]
nop dword [rax]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x004bcea0]
mov ebx, 0x1f
nop dword [rax + rax]
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp sym.runtime.sysUsedOS