joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416190
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8d, DllRegisterServer
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x4161ee
cmp dword [0x00442950], 2
je 0x4161d0
call fcn.004191f0
mov ecx, 0x12
call fcn.00418fb0
mov ecx, 0xff
call fcn.00418bb0
mov eax, 0xff
jmp 0x4163f6
mov dword [rax], DllRegisterServer
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x41621f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xff
jmp 0x4163f6
mov r13d, dword [rbx + 0x10]
mov esi, dword [rbx + 4]
mov r12d, dword [rbx + 8]
mov edi, dword [rbx + 0xc]
and edi, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r13d, 2
je 0x416251
bts edi, 0xf
mov eax, esi
shl eax, 8
add eax, r12d
mov dword [0x00442984], r13d
mov dword [0x0044298c], eax
mov dword [0x00442990], esi
mov dword [0x00442994], r12d
mov dword [0x00442988], edi
cmp word [0x00400000], 0x5a4d
jne 0x4162d7
movsxd rax, dword [0x0040003c]
lea rcx, [0x00400000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x4162a5
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x4162dd
cmp word [rax + 0x18], 0x20b
je 0x4162b5
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x4162dd
cmp dword [rax + 0x84], 0xe
ja 0x4162c6
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x4162dd
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x50], ebx
jmp 0x4162dd
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov ecx, 1
call fcn.0041a8c0
test eax, eax
jne 0x41630d
cmp dword [0x00442950], 2
je 0x4162f9
call fcn.004191f0
mov ecx, 0x1c
call fcn.00418fb0
mov ecx, 0xff
call fcn.00418bb0
call fcn.0041a7a0
test eax, eax
jne 0x416338
cmp dword [0x00442950], 2
je 0x416324
call fcn.004191f0
mov ecx, 0x10
call fcn.00418fb0
mov ecx, 0xff
call fcn.00418bb0
call fcn.0041a060
nop
call fcn.00419d20
test eax, eax
jns 0x416351
mov ecx, 0x1b
call fcn.00418b80
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x00444b30], rax
call fcn.00419b50
mov qword [0x00442940], rax
call fcn.00419a40
test eax, eax
jns 0x41637d
mov ecx, 8
call fcn.00418b80
call fcn.004196b0
test eax, eax
jns 0x416390
mov ecx, 9
call fcn.00418b80
mov ecx, 1
call fcn.00418cf0
test eax, eax
je 0x4163a5
mov ecx, eax
call fcn.00418b80
mov r8, qword [0x004429b0]
mov qword [0x004429b8], r8
mov rdx, qword [0x004429a0]
mov ecx, dword [0x00442998]
call fcn.0040e8e0
mov edi, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x4163d6
mov ecx, eax
call fcn.00418f00
call fcn.00418f20
jmp 0x4163f4
mov eax, edi
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
sub rsp, 0x28
call fcn.0041a920
add rsp, 0x28
jmp 0x416190
Function at 0x418fb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x418fee
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x418fd0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x4191d5
mov ecx, 3
call fcn.00422980
cmp eax, 1
je 0x41918c
mov ecx, 3
call fcn.00422980
test eax, eax
jne 0x419025
cmp dword [0x004413a8], 1
je 0x41918c
cmp edi, 0xfc
je 0x4191d5
mov qword [rsp + 0x50], rbp
lea rbp, [0x004429f0]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.0041cf10
test eax, eax
je 0x419069
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.0041a9f0
lea rdx, [0x00442a09]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x00442b0d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4190b9
lea r8, str._program_name_unknown_
lea rcx, [0x00442a09]
mov edx, 0x2fb
call fcn.0041cf10
test eax, eax
je 0x4190b9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.0041a9f0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x00442a09]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x419108
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x00442d04]
lea r9d, [rax + 3]
lea r8, [0x00438774]
sub rdx, rcx
call fcn.00422860
test eax, eax
je 0x419108
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.0041a9f0
lea r8, [0x00438770]
mov edx, 0x314
mov rcx, rbp
call fcn.004227a0
test eax, eax
je 0x419134
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.0041a9f0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.004227a0
test eax, eax
je 0x419164
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.0041a9f0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.00422540
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x4191d5
cmp rax, 0xffffffffffffffff
je 0x4191d5
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x4191f0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.00422980
cmp eax, 1
je 0x419222
mov ecx, 3
call fcn.00422980
test eax, eax
jne 0x4192d6
cmp dword [0x004413a8], 1
jne 0x4192d6
mov qword [rsp + 0x48], rbx
lea rbx, reloc.OLEAUT32.dll_SysReAllocString
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x41924e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x419238
jmp 0x4192c2
cmp edi, 0x17
jae 0x4192c2
mov ecx, 3
call fcn.00422980
cmp eax, 1
je 0x419279
mov ecx, 3
call fcn.00422980
test eax, eax
jne 0x4192c2
cmp dword [0x004413a8], 1
jne 0x4192c2
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x4192c2
cmp rax, 0xffffffffffffffff
je 0x4192c2
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.00418fb0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x419b50
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x00442e18]
test eax, eax
jne 0x419ba3
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x419b83
mov dword [0x00442e18], 1
jmp 0x419bbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x419b9d
mov dword [0x00442e18], 2
jmp 0x419c99
mov eax, dword [0x00442e18]
cmp eax, 1
jne 0x419c90
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x419ce3
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x419be5
add rbx, 2
cmp word [rbx], 0
jne 0x419bd1
add rbx, 2
cmp word [rbx], 0
jne 0x419bd1
xor r12d, r12d
sub rbx, rdi
mov r8, rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
sar rbx, 1
lea r9d, [rbx + 1]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
movsxd rbp, eax
je 0x419c83
mov rcx, rbp
call fcn.00421b70
test rax, rax
mov rsi, rax
je 0x419c83
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rbx + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x419c5d
mov rcx, rsi
call fcn.00417630
mov rsi, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x419c69
cmp eax, 2
je 0x419c99
test eax, eax
jne 0x419ce3
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x419ce3
cmp byte [rax], 0
je 0x419cc2
nop
add rax, 1
cmp byte [rax], 0
jne 0x419cb0
add rax, 1
cmp byte [rax], 0
jne 0x419cb0
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.00421b70
test rax, rax
mov rdi, rax
jne 0x419cf5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.00417fd0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x41aa90
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x00442e28]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.0041a2a0
test rax, rax
je 0x41aae4
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x41ab79
mov ecx, 2
call fcn.00422b20
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.00417540
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x41ab65
test ebx, ebx
jne 0x41ab65
lea ecx, [rax + 2]
call fcn.00422b20
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x41ec07
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x004413e8]
jne 0x41752a
rol rcx, 0x10
test cx, 0xffff
jne 0x417526
repz ret
ror rcx, 0x10
jmp 0x41eb60
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x00442ef0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x00442fe8]
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 0x41ebe5
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, [0x00442ef0]
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 0x41ec07
mov rax, qword [rsp + 0x88]
mov qword [0x00442fe8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x00442f88], rax
mov rax, qword [0x00442fe8]
mov qword [0x00442e60], rax
mov rax, qword [rsp + 0x90]
mov qword [0x00442f70], rax
mov dword [0x00442e50], 0xc0000409
mov dword [0x00442e54], 1
mov rax, qword [0x004413e8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x004413f0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x00442ee8], eax
mov ecx, 1
call fcn.00422b20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x00438818]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x00442ee8], 0
jne 0x41ec8e
mov ecx, 1
call fcn.00422b20
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 0x422540
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.0041a1b0
xor ebx, ebx
cmp qword [0x004436a8], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x42266c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x42277f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x42277f
mov rcx, rax
call fcn.0041a0e0
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x004436a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0041a0e0
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x004436b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0041a0e0
lea rcx, [rsp + 0x98]
mov qword [0x004436b8], rax
call fcn.00418c50
test eax, eax
je 0x42261f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.0041a9f0
cmp dword [rsp + 0x98], 2
jne 0x42266c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0041a0e0
test rax, rax
mov qword [0x004436c8], rax
je 0x42266c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0041a0e0
mov qword [0x004436c0], rax
mov rcx, qword [0x004436c0]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x422718
cmp qword [0x004436c8], rbp
je 0x422718
call fcn.0041a2a0
mov rcx, qword [0x004436c8]
mov rsi, rax
call fcn.0041a2a0
test rsi, rsi
mov r12, rax
je 0x422718
test rax, rax
je 0x422718
call rsi
test rax, rax
je 0x4226e3
lea rcx, [rsp + 0x34]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x4226e3
test byte [rsp + 0x40], 1
jne 0x422718
lea rcx, [rsp + 0x30]
call fcn.00418ca0
test eax, eax
je 0x422705
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.0041a9f0
cmp dword [rsp + 0x30], 4
jb 0x422712
bts edi, 0x15
jmp 0x422756
bts edi, 0x12
jmp 0x422756
mov rcx, qword [0x004436b0]
cmp rcx, rbp
je 0x422756
call fcn.0041a2a0
test rax, rax
je 0x422756
call rax
test rax, rax
mov rbx, rax
je 0x422756
mov rcx, qword [0x004436b8]
cmp rcx, rbp
je 0x422756
call fcn.0041a2a0
test rax, rax
je 0x422756
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x004436a8]
call fcn.0041a2a0
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x42277f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x422781
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x424760
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x004413e8]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4247a7
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.00417510
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.00425de0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.00417510
add rsp, 0x38
ret

Function at 0x426ecc
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x004413e8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.00417540
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x00400000]
mov esi, DllRegisterServer
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.00417540
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x426f5f
cmp dword [rsp + 0x24], 5
jb 0x426f79
jmp 0x426f75
cmp dword [rsp + 0x30], esi
jne 0x426f79
cmp dword [rsp + 0x24], 4
ja 0x426f75
jne 0x426f79
cmp dword [rsp + 0x28], 0
jbe 0x426f79
mov byte [rbx + 0x18], sil
lea rax, [0x00439eb0]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.00426d0c
movzx ecx, byte [0x00442920]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x00442920], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.00417510
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400010e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
sub rsp, 0x110
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x88], 0xfffffffffffffffe
mov qword [rbp - 0x28], rdx
mov rax, rcx
mov rcx, qword [rbp - 0x28]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov byte [rbp + 0x37], 0
mov byte [rbp + 0x37], 1
call fcn.140001650
mov qword [rbp - 0x10], rax
jmp 0x140001121
mov rdx, qword [rbp - 0x10]
mov qword [rbp + 0x38], rdx
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x80], 0
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x78], rax
mov rcx, qword [rbp + 0x78]
mov r8d, 0x3000
mov r9d, 0x40
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rbp - 0x30], rax
jmp 0x14000116a
mov rcx, qword [rbp - 0x30]
mov qword [rbp + 0x40], rcx
call fcn.140001680
mov byte [rbp - 0x31], al
jmp 0x14000117c
mov al, byte [rbp - 0x31]
test al, 1
jne 0x140001194
jmp 0x140001185
mov rcx, qword [rbp - 0x28]
call fcn.140001660
mov qword [rbp - 0x40], rax
jmp 0x1400011b9
mov rax, qword [rbp - 0x28]
mov byte [rbp + 0x37], 0
mov rcx, qword [rax + 0x10]
mov qword [rbp + 0x10], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rbp], xmm0
mov rcx, rbp
call fcn.1400017f0
mov qword [rbp - 0x48], rax
jmp 0x1400011d8
mov r8, qword [rbp - 0x10]
mov rdx, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x30]
mov qword [rbp + 0x50], rdx
mov qword [rbp + 0x58], rcx
mov qword [rbp + 0x60], r8
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140001194
mov rcx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x48]
mov qword [rbp - 8], rax
mov qword [rbp + 0x20], 0
call fcn.140001680
mov byte [rbp - 0x49], al
jmp 0x1400011f6
mov cl, byte [rbp - 0x49]
and cl, 1
call fcn.140001400
mov byte [rbp - 0x4a], al
jmp 0x140001206
mov al, byte [rbp - 0x4a]
mov byte [rbp + 0x4f], al
mov al, byte [rbp + 0x4f]
mov byte [rbp + 0x36], al
mov cl, byte [rbp + 0x36]
call fcn.1400016d0
mov qword [rbp - 0x58], rax
jmp 0x140001220
mov rax, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x30]
mov r9, qword [rbp - 8]
mov qword [rcx], r9
mov qword [rcx + 0x10], r8
mov r9, qword [rbp + 0x20]
mov r8, qword [rbp + 0x28]
mov qword [rcx + 0x18], r9
mov qword [rcx + 0x20], r8
mov qword [rcx + 8], rdx
add rsp, 0x110
pop rbp
ret
Function at 0x14000a360
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x14000a400
jmp 0x14000a3ef
jae 0x14000a4c0
cmp r8, 0x201
jae 0x14000a400
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14000a458
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14000a42f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001e8d0
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x14000a481
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000a528
mov r8d, r14d
cmp r15, r8
jne 0x14000a3e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000a555
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000a3ef
jmp 0x14000a400
cmp rsi, r8
jb 0x14000a56f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14000b6d0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x14000a511
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140002da0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x14000a4f9
jmp 0x14000a511
lea rcx, str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001f110
jmp 0x14000a584
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001f560
ud2
Function at 0x14000f940
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140022490]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000f984
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000f9ea
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000fa21
test eax, eax
js 0x14000f9fb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000fa14
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14000b4a0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140008650
mov ecx, 7
int 0x29
ud2