joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a6f0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
jmp 0x14001a6f0
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [0x1400673b8]
test rcx, rcx
je 0x14001a882
sub edx, 1
mov qword [rsp + 0x48], rdi
je 0x14001a888
sub edx, 1
je 0x14001a7fd
sub edx, 1
je 0x14001a7dc
sub edx, 1
je 0x14001a77b
cmp edx, 2
jne 0x14001a87d
mov edx, 6
mov rcx, rbx
call qword [sym.imp.USER32.dll_KillTimer]
mov rcx, qword [0x1400673b8]
call fcn.140001154
test eax, eax
jne 0x14001a87d
mov rcx, qword [0x1400673c0]
call fcn.14000119a
mov rcx, qword [0x1400673c0]
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
jmp fcn.1400013c0
mov edx, 4
mov rcx, rbx
call qword [sym.imp.USER32.dll_KillTimer]
mov rcx, qword [0x1400673b8]
call fcn.14000107d
mov rcx, qword [0x1400673b8]
mov r8d, dword [rax + 0x1c]
mov edx, dword [rax + 0x24]
call fcn.1400014bf
mov rcx, qword [0x1400673c0]
call fcn.14000133e
mov rcx, qword [0x1400673c0]
xor edi, edi
cmp dword [rcx + 0x86088], edi
sete dil
mov dword [rcx + 0x86088], edi
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
jmp fcn.140001497
mov edx, 3
mov rcx, rbx
call qword [sym.imp.USER32.dll_KillTimer]
xor edi, edi
mov dword [0x1400673a0], edi
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
mov qword [rsp + 0x40], rsi
call fcn.14000107d
mov edx, 2
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
lea rdx, [rsp + 0x20]
xor edi, edi
mov rcx, rbx
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x20], edi
call qword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [rsi], edi
je 0x14001a878
cmp dword [rsi + 8], edi
je 0x14001a878
xor eax, eax
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x54], eax
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x14001a878
mov rcx, qword [0x1400673b8]
call fcn.140001221
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
call fcn.14000107d
cmp dword [rax], 0
je 0x14001a87d
cmp dword [rax + 8], 0
jne 0x14001a87d
xor eax, eax
lea rcx, [rsp + 0x50]
xor edi, edi
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x54], eax
call qword [sym.imp.USER32.dll_GetCursorPos]
xor eax, eax
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x2c], eax
call qword [sym.imp.USER32.dll_GetWindowRect]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x20]
mov rdi, rax
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x14001a87d
cmp rdi, rbx
je 0x14001a87d
test rdi, rdi
je 0x14001a87d
lea edx, [rax + 4]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindow]
cmp rax, rbx
je 0x14001a87d
mov edx, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_KillTimer]
mov rcx, qword [0x1400673b8]
call fcn.140001429
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
Function at 0x14001c7f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x270
mov rax, qword [0x140065210]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov rsi, rcx
call fcn.14001e4d0
mov rbx, rax
test rax, rax
jne 0x14001c8de
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [rsp + 0x20], ebx
je 0x14001c8db
mov rcx, qword [str._ProgramW6432_]
mov rax, qword [0x140058fe8]
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov rax, qword [0x140058ff0]
mov qword [rdx + 0x10], rax
mov eax, dword [0x140058ff8]
lea rcx, [rsp + 0x28]
mov dword [rdx + 0x18], eax
movzx eax, word [0x140058ffc]
mov r8d, 0x104
mov word [rdx + 0x1c], ax
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14001c8db
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x288], rdi
xor eax, eax
lea rdi, [rsp + 0x50]
lea rdx, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rsi
call fcn.1400203e0
mov rdi, qword [rsp + 0x288]
test eax, eax
jne 0x14001c8db
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x14001c8de
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14001e890
mov rbx, qword [rsp + 0x290]
add rsp, 0x270
pop rsi
ret

Function at 0x14001cbc0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140065210]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, dword [0x140067404]
test eax, eax
jne 0x14001ccf5
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x30], 2
jne 0x14001ccef
mov ecx, dword [rsp + 0x24]
cmp ecx, 5
jne 0x14001cc37
xor eax, eax
cmp dword [rsp + 0x28], eax
seta al
inc eax
mov dword [0x140067404], eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14001e890
add rsp, 0x158
ret
cmp ecx, 6
jne 0x14001ccc0
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x14001cc6d
mov dword [0x140067404], 4
lea eax, [rcx - 2]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14001e890
add rsp, 0x158
ret
cmp eax, 1
jne 0x14001cc99
mov dword [0x140067404], 8
mov eax, 8
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14001e890
add rsp, 0x158
ret
jbe 0x14001ccef
mov edx, 0x80
mov dword [0x140067404], edx
mov eax, edx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14001e890
add rsp, 0x158
ret
mov eax, dword [0x140067404]
mov edx, 0x80
cmp ecx, 6
cmova eax, edx
mov dword [0x140067404], eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14001e890
add rsp, 0x158
ret
mov eax, dword [0x140067404]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14001e890
add rsp, 0x158
ret
Function at 0x14001dae0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x80
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov rax, qword [0x140065210]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, rcx
mov dword [rsp + 0x34], edx
xor bl, bl
xor edi, edi
mov dword [rsp + 0x40], edi
cmp dword [0x140067408], edi
jne 0x14001db4e
mov dword [0x140067408], 0x20019
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [rsp + 0x40], edi
je 0x14001db4e
bts dword [0x140067408], 8
test rsi, rsi
je 0x14001dcff
cmp dword [rsp + 0x34], edi
je 0x14001dcfb
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
mov r8d, 0x34
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea rcx, [rsp + 0x50]
call fcn.14001d860
nop
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdx, qword [str.NVIDIA_nView_Desktop_Manager]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x50]
call fcn.14001d6e0
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x140067408]
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, 1
test eax, eax
jne 0x14001dc2b
mov dword [rsp + 0x30], ebp
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.InstallLocation
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, bl
test eax, eax
cmove ebx, ebp
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, 0x34
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea rcx, [rsp + 0x50]
call fcn.14001d860
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdx, qword [str.B2FE1952_0186_46C3_BAEC_A80AA35AC5B8_Display.NView]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x50]
call fcn.14001d6e0
test bl, bl
jne 0x14001dce1
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x140067408]
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001dce1
mov dword [rsp + 0x30], ebp
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.InstallLocation
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, bl
test eax, eax
cmove ebx, ebp
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rsp + 0x70], 8
jb 0x14001dcf7
mov rcx, qword [rsp + 0x58]
call fcn.14001ee00
mov al, bl
jmp 0x14001dd01
mov al, bl
jmp 0x14001dd01
mov al, bl
jmp 0x14001dd01
mov al, bl
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001e890
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001ddd0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
xor ebx, ebx
mov rsi, rcx
mov rbp, rbx
test rcx, rcx
je 0x14001deaa
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
or rcx, 0xffffffffffffffff
mov rdi, rsi
mov r12d, eax
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea rdx, [rcx - 1]
lea ecx, [r12 + 1]
add rdx, rcx
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x14001dead
mov edx, r12d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
cmp word [rbp + rcx*2], 0x5c
je 0x14001de59
mov edx, 0x5c
inc eax
mov word [rbp + rcx*2], dx
or rcx, 0xffffffffffffffff
movsxd r8, eax
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x14001deaa
mov rdx, rsi
lea r8, [rbp + r8*2]
nop dword [rax]
movzx eax, word [rdx]
or rcx, 0xffffffffffffffff
inc ebx
mov word [r8], ax
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
mov eax, ebx
add rdx, 2
not rcx
add r8, 2
dec rcx
cmp rax, rcx
jb 0x14001de80
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x1400227f7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140065210]
jne 0x14001e8aa
rol rcx, 0x10
test cx, 0xffff
jne 0x14001e8a6
repz ret
ror rcx, 0x10
jmp 0x140022750
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140067500]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1400675f8]
mov qword [rsp + 0x58], r11
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 0x1400227d5
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, [0x140067500]
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 0x1400227f7
mov rax, qword [rsp + 0x88]
mov qword [0x1400675f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140067598], rax
mov rax, qword [0x1400675f8]
mov qword [0x140067470], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140067580], rax
mov dword [0x140067460], 0xc0000409
mov dword [0x140067464], 1
mov rax, qword [0x140065210]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140065218]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400674f8], eax
mov ecx, 1
call fcn.14002bf14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400592c0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400674f8], 0
jne 0x14002287e
mov ecx, 1
call fcn.14002bf14
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 0x140026bd4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140026a3c

Function at 0x14003392c
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.140022bfc
xor ebx, ebx
mov rdi, rax
cmp qword [0x1400681e0], rbx
jne 0x140033a32
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140033b07
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140033b07
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400681e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400681e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x1400681f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140068200], rax
test rax, rax
je 0x140033a29
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1400681f8], rax
jmp 0x140033a39
mov rax, qword [0x1400681f8]
jmp 0x140033a40
mov rax, qword [0x1400681f8]
mov r11, qword [0x140068200]
cmp rax, rdi
je 0x140033aa8
cmp r11, rdi
je 0x140033aa8
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140068200]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x140033aa8
test rax, rax
je 0x140033aa8
call rsi
test rax, rax
je 0x140033aa2
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140033aa2
test byte [rsp + 0x38], 1
jne 0x140033aa8
bts ebp, 0x15
jmp 0x140033ae6
mov rcx, qword [0x1400681e8]
cmp rcx, rdi
je 0x140033ae6
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140033ae6
call rax
mov rbx, rax
test rax, rax
je 0x140033ae6
mov rcx, qword [0x1400681f0]
cmp rcx, rdi
je 0x140033ae6
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140033ae6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400681e0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140033b07
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140033b09
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x401990
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
call sub.msvcrt.dll_getenv
test rax, rax
je 0x4019b2
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.00401840
add rsp, 0x20
pop rbx
ret
Function at 0x402430
Capabilities:
Query environment variable

Disassembly:
mov r9d, 1
jmp fcn.00401f10
Function at 0x4045e0
Capabilities:
Delete file

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov edx, dword [rcx + 0x18]
test edx, edx
mov rbx, rcx
jle 0x4045fa
mov rax, qword [rcx + 0x80]
call qword [rax + 0x18]
mov edx, dword [rbx + 0x2c]
test edx, edx
jle 0x40460e
mov rax, qword [rbx + 0x80]
mov rcx, rbx
call qword [rax + 0x18]
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x40461c
call sub.msvcrt.dll_fclose
mov rcx, qword [rbx + 0x68]
test rcx, rcx
je 0x40462a
call sub.msvcrt.dll_fclose
cmp qword [rbx + 0x40], 0
je 0x4046c0
mov edx, dword [rbx + 0x28]
test edx, edx
jne 0x4046b0
mov rcx, qword [rbx + 0x38]
call sub.msvcrt.dll_free
mov rcx, qword [rbx + 0x40]
call sub.msvcrt.dll_free
mov rcx, qword [rbx + 0x48]
call sub.msvcrt.dll_free
mov eax, dword [rbx + 0x70]
test eax, eax
jle 0x40468c
xor esi, esi
mov rax, qword [rbx + 0x78]
mov rcx, qword [rax + rsi*8]
call sub.msvcrt.dll_remove
mov rax, qword [rbx + 0x78]
mov rcx, qword [rax + rsi*8]
add rsi, 1
call sub.msvcrt.dll_free
cmp dword [rbx + 0x70], esi
jg 0x404660
mov rcx, qword [rbx + 0x78]
call sub.msvcrt.dll_free
mov rax, qword [rbx + 0x80]
mov rax, qword [rax + 0x40]
test rax, rax
je 0x4046a1
mov rcx, rbx
call rax
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp sub.msvcrt.dll_free
mov rcx, qword [rbx + 0x20]
call sub.msvcrt.dll_free
jmp 0x40463c
and dword [rbx], 0xfffffffe
lea r9, [rsp + 0x24]
mov edx, 1
mov rcx, rbx
lea r8, [rsp + 0x28]
call fcn.004038e0
jmp 0x404635

Function at 0x404940
Capabilities:
Get common file path

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [0x00411110]
test rax, rax
je 0x404960
add rsp, 0x28
pop rbx
pop rsi
ret
xor edx, edx
xor ecx, ecx
mov rsi, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rsi
test eax, eax
mov ebx, eax
jne 0x404990
mov rax, qword [0x00411110]
test rax, rax
je 0x4049c0
add rsp, 0x28
pop rbx
pop rsi
ret
mov ecx, eax
call fcn.00403690
mov ecx, ebx
mov qword [0x00411110], rax
mov rdx, rax
call rsi
test eax, eax
jne 0x404973
mov rcx, qword [0x00411110]
call sub.msvcrt.dll_free
mov qword [0x00411110], 0
lea rcx, [0x0040dae0]
call fcn.00403760
mov qword [0x00411110], rax
jmp 0x404952
Function at 0x404ff0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00411704]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x405178
mov rax, qword [0x00411708]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40503c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4050c5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x405020
mov rcx, rbx
call fcn.00405c90
test rax, rax
mov r12, rax
je 0x4051ad
mov rax, qword [0x00411708]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00405dc0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00411708]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x405190
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4050be
sub eax, 0x40
and eax, 0xffffffbf
jne 0x405120
add dword [0x00411704], 1
cmp edi, 8
jae 0x4050f3
test dil, 4
jne 0x405164
test edi, edi
je 0x4050e8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40517f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x4050e8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40510c
jmp 0x4050e8
add rsi, qword [0x00411708]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4050be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0040b590
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4050e8
xor esi, esi
jmp 0x405047
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4050e8
mov rax, qword [0x00411708]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.0040b590
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.0040b590
nop
nop dword [rax]

Function at 0x405900
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004119e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004119c0]
test rbx, rbx
je 0x405954
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40594b
test rsi, rsi
je 0x40594b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x405930
lea rcx, [0x004119e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x405c90
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0040e1e0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x405cfd
mov rcx, r8
call fcn.00405b70
test eax, eax
je 0x405cfd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x405cfd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x405cf4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x405cff
add rax, 0x28
cmp rax, r9
jne 0x405ce0
xor eax, eax
add rsp, 0x28
ret
Function at 0x40b590
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp fcn.00401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.0040adf0
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.0040adf0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14001c110]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14001c120]
mov dword [rax], 1
mov rax, qword [0x14001c130]
mov dword [rax], 1
mov rax, qword [0x14001c100]
mov dword [rax], 1
mov rax, qword [0x14001bfa0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14001c0f0]
mov dword [0x14001f020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14001c0b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14001c090]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14001bf30]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x1400019f0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]