joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001ab00
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.mfc120u.dll_Ordinal_10044]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call qword [sym.imp.mfc120u.dll_Ordinal_4682]
mov qword [rbx + 0x158], rax
call qword [sym.imp.mfc120u.dll_Ordinal_2180]
test rax, rax
je 0x14001ab49
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xf8]
mov rcx, rax
jmp 0x14001ab4b
xor ecx, ecx
mov rax, qword [rcx]
call qword [rax + 0x2e0]
mov rcx, qword [rbx + 0x218]
lea rdx, [rbx + 0x1c8]
mov qword [rbx + 0x1c0], rax
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rbx + 0x1c8]
mov rcx, rbx
call qword [sym.imp.mfc120u.dll_Ordinal_12576]
lea rcx, [rbx + 0x2b0]
call fcn.1400094a0
lea rcx, [rbx + 0x3a0]
mov r8, rbx
mov edx, 0x3e9
call qword [sym.imp.mfc120u.dll_Ordinal_13814]
mov rcx, qword [rbx + 0x1c0]
mov rax, qword [rcx + 0x2d0]
mov qword [rbx + 0x478], rax
cmp qword [rcx + 0x2c8], 0
jne 0x14001ac84
mov rcx, rbx
call fcn.14001b250
test eax, eax
jne 0x14001abeb
lea edx, [rax + 2]
mov rcx, rbx
call qword [sym.imp.mfc120u.dll_Ordinal_4300]
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx + 0x158]
mov rdi, qword [rbx + 0x1c0]
call qword [sym.imp.mfc120u.dll_Ordinal_4784]
cmp eax, dword [rdi + 0x29c]
jne 0x14001ac84
mov rcx, rdi
call fcn.140008980
mov rax, qword [rbx + 0x1c0]
mov rcx, qword [rax + 0x2c8]
mov rdx, qword [rax + 0x2d0]
mov eax, dword [rcx + 0x64]
mov dword [rdx + 0x64], eax
mov rax, qword [rbx + 0x1c0]
mov rcx, qword [rax + 0x2c8]
mov rdx, qword [rax + 0x2d0]
mov eax, dword [rcx + 0x68]
mov dword [rdx + 0x68], eax
mov rax, qword [rbx + 0x1c0]
mov rcx, qword [rax + 0x2c8]
mov rdx, qword [rax + 0x2d0]
add rcx, 0x24
add rdx, 0x24
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rcx]
lea rdx, [rdx + 2]
lea rcx, [rcx + 2]
mov word [rdx - 2], ax
test ax, ax
jne 0x14001ac70
mov rax, qword [rbx + 0x1c0]
mov rcx, qword [rax + 0x2c8]
mov rax, qword [rcx]
call qword [rax + 0x58]
lea rcx, [rbx + 0x390]
mov rdx, rax
call qword [sym.imp.mfc120u.dll_Ordinal_1496]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.mfc120u.dll_Ordinal_13987]
mov rcx, rbx
call fcn.14001afd0
mov rcx, qword [rbx + 0x2f0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rbx + 0x398]
mov dword [rbx + 0x480], eax
mov rax, qword [rbx + 0x1c0]
mov rdx, qword [rax + 0x2c8]
mov rdx, qword [rdx + 0x90]
call qword [sym.imp.mfc120u.dll_Ordinal_1499]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.mfc120u.dll_Ordinal_13987]
mov rax, qword [rbx + 0x1c0]
cmp dword [rax + 0x298], 0xd
jne 0x14001ad1e
mov rcx, rbx
call fcn.14001b670
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140028880
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
mov r8b, 1
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.CrlUtils.dll_public:_void___cdecl_CrlUtils::CommandLine::SetCommandLine_wchar_t_const____ptr64__bool____ptr64]
mov rcx, rbx
call fcn.1400289b0
mov rcx, rbx
call fcn.140028ae0
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + 0xb0]
test al, al
je 0x1400288d1
mov rcx, rbx
call fcn.140028ba0
mov al, 1
jmp 0x1400288d7
add rsp, 0x30
pop rbx
ret

Function at 0x140029640
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
xor ebx, ebx
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x40], rbx
mov eax, dword [0x14004fc38]
test eax, eax
je 0x140029681
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14004fc38]
test eax, eax
jne 0x14002968a
call fcn.140029480
test eax, eax
je 0x1400296a0
lea rdx, [rsp + 0x40]
mov rcx, qword [0x14004d888]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x1400296a4
xor eax, eax
jmp 0x1400296ea
lea rcx, str.crlutl.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
mov qword [rsp + 0x20], rax
mov esi, ebx
test rax, rax
sete sil
test esi, esi
je 0x1400296ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test esi, esi
je 0x1400296e7
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140029890
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x20], 0
mov rbx, rcx
jne 0x140029956
add rcx, 0x38
call fcn.140029960
cmp qword [rbx + 0x68], 0
jne 0x1400298f0
mov rax, qword [rbx + 0x48]
cmp dword [rax - 0x10], 0
jne 0x1400298c2
xor eax, eax
jmp 0x1400298e7
mov rcx, qword [rbx + 8]
lea rdx, str.GetUILang
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400298e7
call rax
mov rdx, qword [rbx + 0x48]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x78]
mov qword [rbx + 0x68], rax
test rax, rax
je 0x140029956
lea rcx, [rbx + 0x60]
call qword [sym.imp.mfc120u.dll_Ordinal_4138]
movzx eax, byte [rbx + 0xb0]
xor r9d, r9d
lea edx, [r9 + 1]
xor r8d, r8d
xor ecx, ecx
mov byte [rbx + 0x10], al
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea r8, [0x140029a40]
mov qword [rbx + 0x28], rax
lea rax, [rbx + 0x30]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rbx + 0x28]
or edx, 0xffffffff
mov qword [rbx + 0x20], rax
add rsp, 0x30
pop rbx
jmp qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x30
pop rbx
ret
popfq
xchg esp, eax
scasd eax, dword [rdi]
xchg ecx, eax
enter 0x742c, 0x5e
sbb al, 0x80
jo 0x14007c898
push 0xffffffffffffffba
movabs dword [0x3b9cd7c5133fdbc0], eax
test dword [0x19a702422], esi
jmp 0x14007c8b6
sub eax, 0xec8a3f2a
test ebx, 0x14244a9e
cmp esi, 0xffffffae
adc dword [rax + 0x653566c5], ecx
ror dword [rdi], cl
invalid
rol dword es:[rdx], 1
cwde
and esi, 0x7c
verr word [rsi + 0x59400462]
sbb al, byte [rax]
fsubr dword [rbx]
sub esi, dword [rsi + 0x61]
push rcx
sub al, 0x5b
mov ch, 4
retf 0x4b2b
invalid
Function at 0x14002b7c0
Capabilities:
Get file size
Print debug messages
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebp, ebp
xor r9d, r9d
mov edx, 0x80000000
mov qword [rsp + 0x30], rbp
lea r8d, [rbp + 1]
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea rcx, [rax - 1]
mov rbx, rax
cmp rcx, 0xfffffffffffffffd
ja 0x14002b938
lea r9, [rsp + 0x40]
lea r8d, [rbp + 0xe]
lea rdx, [rsp + 0x48]
mov rcx, rax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14002b844
lea rcx, str.Error_reading_welcome_bitmap_file__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x14002b8c0
mov eax, dword [rsp + 0x4a]
test eax, eax
jne 0x14002b85b
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x4a], eax
cmp dword [rsp + 0x40], 0xe
jne 0x14002b927
mov ecx, 0x4d42
cmp word [rsp + 0x48], cx
jne 0x14002b927
mov qword [rsp + 0x78], rsi
lea esi, [rax - 0xe]
mov edx, 1
mov ecx, esi
mov qword [rsp + 0x80], rdi
call qword [sym.imp.MSVCR120.dll_calloc]
mov rdi, rax
test rax, rax
jne 0x14002b8db
lea rcx, str.Out_of_memory_loading_welcome_bitmap_file__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002cc50
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rbp
ret
lea r9, [rsp + 0x40]
mov r8d, esi
mov rdx, rax
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14002b919
lea rcx, str.Error_reading_welcome_bitmap_file__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.MSVCR120.dll_free]
jmp 0x14002b8b1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
jmp 0x14002b8b3
lea rcx, str.Invalid_welcome_bitmap_file_format__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x14002b8c0
lea rcx, str.Welcome_bitmap_file_does_not_exist__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x14002b8c0
Function at 0x14002b950
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x40
mov rdi, r8
mov rsi, rcx
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x68], rbx
mov eax, dword [0x14004fc38]
test eax, eax
je 0x14002b997
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14004fc38]
test eax, eax
jne 0x14002b9a0
call fcn.140029480
test eax, eax
je 0x14002b9b6
lea rdx, [rsp + 0x68]
mov rcx, qword [0x14004d888]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x14002b9ba
xor eax, eax
jmp 0x14002ba10
mov qword [rsp + 0x20], rbx
lea r9, [0x14002a1f0]
mov r8, rdi
mov edx, 0x6d47
mov rcx, rsi
call qword [sym.imp.USER32.dll_CreateDialogParamW]
mov rsi, rax
mov qword [rsp + 0x30], rax
mov edi, ebx
test rax, rax
sete dil
test edi, edi
je 0x14002b9f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x14002ba0d
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140011208
Capabilities:
Terminate process

Disassembly:
jmp 0x1400131c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001128a
Capabilities:
Convert ip address from string
Initialize winsock library
Resolve dns

Disassembly:
jmp 0x140011970
push rbp
push rdi
sub rsp, 0x478
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xb6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001e008]
xor rax, rbp
mov qword [rbp + 0x448], rax
lea rcx, [0x1400240a8]
call fcn.140011389
lea rdx, [rbp + 0xa0]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400119d8
lea rcx, str.WSAStartup_failed._n
call fcn.1400111a9
mov eax, 1
jmp 0x140011afe
lea rcx, str.Enter_an_IP_address_or_hostname:
call fcn.1400111a9
lea rdx, [rbp + 0x10]
lea rcx, [0x14001aec0]
call fcn.14001109b
lea r8, [rbp + 0x274]
lea rdx, [rbp + 0x10]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x140011a61
mov r8d, 2
mov edx, 4
lea rcx, [rbp + 0x274]
call qword [sym.imp.WS2_32.dll_gethostbyaddr]
mov qword [rbp + 0x258], rax
cmp qword [rbp + 0x258], 0
jne 0x140011a46
lea rcx, str.Error:_Unable_to_resolve_hostname_from_IP_address._n
call fcn.1400111a9
jmp 0x140011a5c
mov rax, qword [rbp + 0x258]
mov rdx, qword [rax]
lea rcx, str.Hostname:__s_n
call fcn.1400111a9
jmp 0x140011af6
lea rcx, [rbp + 0x10]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rbp + 0x258], rax
cmp qword [rbp + 0x258], 0
jne 0x140011a8a
lea rcx, str.Error:_Unable_to_resolve_IP_address_from_hostname._n
call fcn.1400111a9
jmp 0x140011af6
mov rax, qword [rbp + 0x258]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x298], rax
mov dword [rbp + 0x2b4], 0
jmp 0x140011ab6
mov eax, dword [rbp + 0x2b4]
inc eax
mov dword [rbp + 0x2b4], eax
movsxd rax, dword [rbp + 0x2b4]
mov rcx, qword [rbp + 0x298]
cmp qword [rcx + rax*8], 0
je 0x140011af6
movsxd rax, dword [rbp + 0x2b4]
mov rcx, qword [rbp + 0x298]
mov rax, qword [rcx + rax*8]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
lea rcx, str.IP_Address:__s_n
call fcn.1400111a9
jmp 0x140011aa8
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ad90]
call fcn.140011325
mov rax, rdi
mov rcx, qword [rbp + 0x448]
xor rcx, rbp
call fcn.1400111c2
lea rsp, [rbp + 0x458]
pop rdi
pop rbp
ret
Function at 0x140011294
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014500
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014520
xor al, al
jmp 0x1400145a1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014533
xor al, al
jmp 0x1400145a1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001455d
xor al, al
jmp 0x1400145a1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014571
xor al, al
jmp 0x1400145a1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014583
xor al, al
jmp 0x1400145a1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001459f
xor al, al
jmp 0x1400145a1
mov al, 1
add rsp, 0x38
ret
Function at 0x14000188e
Capabilities:
Query environment variable

Disassembly:
push rbp
sub rsp, 0x120
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xb0], rcx
mov qword [rbp + 0xb8], rdx
mov qword [rbp + 0xc0], r8
mov dword [rbp + 0xc8], r9d
lea rax, str.temp
mov rcx, rax
call sub.msvcrt.dll_getenv
mov rdx, rax
lea rax, [rbp - 0x60]
mov r8, rdx
lea rdx, str._sCleanUp3.dll
mov rcx, rax
call fcn.140001450
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.140001493
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, str.temp
mov rcx, rax
call sub.msvcrt.dll_getenv
mov rdx, rax
lea rax, [rbp - 0x60]
mov r8, rdx
lea rdx, str._sMobaXterm_installer_24.0.msi
mov rcx, rax
call fcn.140001450
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.1400016ed
mov eax, 0
add rsp, 0x120
pop rbp
ret
push rdi
push rsi
push rbx
sub rsp, 0x90
xor esi, esi
call fcn.1400019f0
call fcn.140007900
mov rbx, qword [rax]
test rbx, rbx
jne 0x14000806b
jmp 0x1400080e1
test cl, cl
je 0x140008098
and esi, 1
je 0x140008080
mov esi, 1
call sub.msvcrt.dll__ismbblead
test eax, eax
je 0x140008067
cmp byte [rbx + 1], 1
sbb rbx, 0xffffffffffffffff
add rbx, 1
movsx ecx, byte [rbx]
cmp cl, 0x20
jle 0x140008048
mov eax, esi
xor eax, 1
cmp cl, 0x22
cmove esi, eax
jmp 0x140008056
test cl, cl
je 0x140008098
nop dword [rax]
movzx eax, byte [rbx + 1]
add rbx, 1
test al, al
je 0x140008098
cmp al, 0x20
jle 0x140008088
lea rdx, [rsp + 0x20]
xor eax, eax
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov r9d, 0xa
test byte [rsp + 0x5c], 1
je 0x1400080c6
movzx r9d, word [rsp + 0x60]
mov rcx, qword [0x14000a770]
mov r8, rbx
xor edx, edx
add rsp, 0x90
pop rbx
pop rsi
pop rdi
jmp 0x14000188e
lea rbx, [0x14000a060]
jmp 0x140008098

Function at 0x140001c00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140007930
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140007930
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x1400026e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a770]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002700
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002708
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002700
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000275d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002754
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002700
add rax, 0x28
cmp rax, r9
jne 0x140002740
xor eax, eax
ret

Function at 0x140002760
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a770]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000277f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002788
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000277f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002820
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a770]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000283f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002848
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140008020
Capabilities:
Query environment variable

Disassembly:
push rbp
sub rsp, 0x120
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xb0], rcx
mov qword [rbp + 0xb8], rdx
mov qword [rbp + 0xc0], r8
mov dword [rbp + 0xc8], r9d
lea rax, str.temp
mov rcx, rax
call sub.msvcrt.dll_getenv
mov rdx, rax
lea rax, [rbp - 0x60]
mov r8, rdx
lea rdx, str._sCleanUp3.dll
mov rcx, rax
call fcn.140001450
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.140001493
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, str.temp
mov rcx, rax
call sub.msvcrt.dll_getenv
mov rdx, rax
lea rax, [rbp - 0x60]
mov r8, rdx
lea rdx, str._sMobaXterm_installer_24.0.msi
mov rcx, rax
call fcn.140001450
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.1400016ed
mov eax, 0
add rsp, 0x120
pop rbp
ret
push rdi
push rsi
push rbx
sub rsp, 0x90
xor esi, esi
call fcn.1400019f0
call fcn.140007900
mov rbx, qword [rax]
test rbx, rbx
jne 0x14000806b
jmp 0x1400080e1
test cl, cl
je 0x140008098
and esi, 1
je 0x140008080
mov esi, 1
call sub.msvcrt.dll__ismbblead
test eax, eax
je 0x140008067
cmp byte [rbx + 1], 1
sbb rbx, 0xffffffffffffffff
add rbx, 1
movsx ecx, byte [rbx]
cmp cl, 0x20
jle 0x140008048
mov eax, esi
xor eax, 1
cmp cl, 0x22
cmove esi, eax
jmp 0x140008056
test cl, cl
je 0x140008098
nop dword [rax]
movzx eax, byte [rbx + 1]
add rbx, 1
test al, al
je 0x140008098
cmp al, 0x20
jle 0x140008088
lea rdx, [rsp + 0x20]
xor eax, eax
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov r9d, 0xa
test byte [rsp + 0x5c], 1
je 0x1400080c6
movzx r9d, word [rsp + 0x60]
mov rcx, qword [0x14000a770]
mov r8, rbx
xor edx, edx
add rsp, 0x90
pop rbx
pop rsi
pop rdi
jmp 0x14000188e
lea rbx, [0x14000a060]
jmp 0x140008098
Function at 0x140004db0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140020040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, qword [rcx + 0x10]
mov rbx, rcx
cmp rax, 0xffffffffffffffff
je 0x140004dd8
mov rax, qword [rcx]
call qword [rax + 0x18]
mov qword [rsp + 0x30], 0
lea rcx, [rbx + 0x18]
mov dword [rsp + 0x28], 0x40000080
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbx + 0x10], rax
mov rax, qword [rbx + 0x10]
cmp rax, 0xffffffffffffffff
je 0x140004e66
lea rax, [rsp + 0x40]
mov byte [rbx + 0xb4], 1
mov qword [rsp + 0x28], rax
lea r8, [0x140004f30]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0xa0], rax
mov rax, qword [rbx + 0xa0]
test rax, rax
jne 0x140004e7b
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], 0xffffffffffffffff
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140014550
add rsp, 0x50
pop rbx
ret
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140014550
add rsp, 0x50
pop rbx
ret

Function at 0x140004e90
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x10]
mov rbx, rcx
cmp rax, 0xffffffffffffffff
je 0x140004f29
mov byte [rcx + 0xb4], 0
xor edx, edx
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetCommMask]
mov rcx, qword [rbx + 0xd8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0xa0]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140004eec
mov rcx, qword [rbx + 0xa0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0xd8]
mov qword [rbx + 0xa0], 0
mov qword [rbx + 0x10], 0xffffffffffffffff
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_ResetEvent]
add rsp, 0x20
pop rbx
ret
Function at 0x140005070
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rax, vtable._thread_com.0
mov esi, edx
mov qword [rcx], rax
mov rbx, rcx
mov rax, qword [rcx + 0x10]
cmp rax, 0xffffffffffffffff
je 0x140005114
mov byte [rcx + 0xb4], 0
xor edx, edx
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetCommMask]
mov rcx, qword [rbx + 0xd8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0xa0]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400050dd
mov rcx, qword [rbx + 0xa0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0xd8]
mov qword [rbx + 0xa0], 0
mov qword [rbx + 0x10], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0xd8]
cmp rcx, 0xffffffffffffffff
je 0x140005127
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.140004cb0
test sil, 1
je 0x140005142
mov edx, 0xe0
mov rcx, rbx
call fcn.140014570
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret