joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003b930
Capabilities:
Set registry value

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov r14, r9
mov rbx, r8
mov ebp, edx
mov rdi, rcx
mov rax, qword [0x140102058]
xor rax, rsp
mov qword [rsp + 0x38], rax
call fcn.140041ca0
mov rsi, rax
lea rcx, [rax + 0x18]
lea rdx, str._s__d:
mov r8, rbx
mov r9d, ebp
call fcn.1400411b0
mov rcx, rdi
mov rdx, rsi
call fcn.14006f4b0
lea rdx, str.SoftwareSimonTathamPuTTYSshHostKeys
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x14003b9d0
mov rcx, r14
call fcn.1400b6330
add eax, 1
mov rdx, qword [rsi]
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call fcn.140041da0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400a5f20
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x14003ba00
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x440
mov rsi, rcx
mov rax, qword [0x140102058]
xor rax, rsp
mov qword [rsp + 0x438], rax
mov ecx, 1
call fcn.14003bae0
cmp rax, 0xffffffffffffffff
je 0x14003bab5
mov rdi, rax
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
lea r9, [rsp + 0x2c]
mov rcx, rax
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003baac
mov edx, dword [rsp + 0x2c]
test edx, edx
je 0x14003baac
lea rbx, [rsp + 0x30]
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax]
mov rcx, rbx
call rsi
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x400
mov r9, r14
call r15
test eax, eax
je 0x14003baac
mov edx, dword [rsp + 0x2c]
test edx, edx
jne 0x14003ba80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x438]
xor rcx, rsp
call fcn.1400a5f20
nop
add rsp, 0x440
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14003bdc0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov esi, edx
mov rdi, rcx
mov rax, qword [0x140102058]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 2
call fcn.14003bae0
cmp rax, 0xffffffffffffffff
je 0x14003be14
mov rbx, rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov rcx, rax
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400a5f20
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x14003be30
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov rdx, rcx
xor r8d, r8d
jmp fcn.14003be40
Function at 0x14003c170
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov rdx, rcx
xor ecx, ecx
xor r8d, r8d
jmp fcn.14003be40

Function at 0x14003c1f0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rsi
sub rsp, 0x140
mov rax, qword [0x140102058]
xor rax, rsp
mov qword [rsp + 0x138], rax
xor ecx, ecx
call fcn.14003bae0
call fcn.140029d00
lea rdx, str.SoftwareSimonTathamPuTTY
lea r8, [rsp + 0x28]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x14003c248
mov rcx, qword [rsp + 0x28]
call fcn.14003c300
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.SoftwareSimonTatham
lea r8, [rsp + 0x28]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x14003c27f
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.1400a5f20
nop
add rsp, 0x140
pop rsi
ret
mov rcx, qword [rsp + 0x28]
lea rdx, [0x1400ea522]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, qword [rsp + 0x28]
lea r8, [rsp + 0x30]
xor edx, edx
mov r9d, 0x105
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x14003c265
lea rdx, str.Software
lea r8, [rsp + 0x28]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x14003c265
mov rcx, qword [rsp + 0x28]
lea rdx, [0x1400e5f2e]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14003c265

Function at 0x14003c300
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x140
mov rsi, rcx
mov rax, qword [0x140102058]
xor rax, rsp
mov qword [rsp + 0x138], rax
lea r8, [rsp + 0x30]
xor edx, edx
mov r9d, 0x105
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x14003c362
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.1400a5f20
nop
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdi, [rsp + 0x30]
lea r14, [rsp + 0x28]
mov r12, qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov r15, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r13, qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rbx, qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x14003c3ad
mov rcx, rsi
mov rdx, rdi
call r13
mov rcx, rsi
xor edx, edx
mov r8, rdi
mov r9d, 0x105
call rbx
test eax, eax
jne 0x14003c33e
mov rcx, rsi
mov rdx, rdi
mov r8, r14
call r12
test eax, eax
jne 0x14003c390
mov rcx, qword [rsp + 0x28]
call fcn.14003c300
mov rcx, qword [rsp + 0x28]
call r15
jmp 0x14003c390
Function at 0x14003c3e0
Capabilities:
Check if file exists
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, r8
mov rdi, rcx
test edx, edx
je 0x14003c43f
xor eax, eax
xor ecx, ecx
cmp edx, 2
setne al
sete cl
lea r8d, [rax + rax*2]
mov eax, 0x40000000
mov edx, 0x80000000
cmove edx, eax
mov eax, ecx
shl eax, 7
xor ecx, 3
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov qword [rsp + 0x30], 0
mov rcx, rdi
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
setne al
jmp 0x14003c47f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14003c476
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14003c476
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140045070
lea rcx, str.Unable_to_delete__s:__s
mov rdx, rdi
mov r8, rax
call fcn.140007150
mov qword [rsi], 0xffffffffffffffff
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x140040600
Capabilities:
Check for software breakpoints

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [rdx + 0x20]
call fcn.140041330
mov ebp, eax
mov rax, qword [rsi + 0x20]
cmp dword [rax + 0x18], 0
je 0x14004063e
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r12, [0x1400d0ea0]
lea r13, [0x1400d0b60]
lea r15, str._home_simon_mem_.build_workdirs_bob_aew3xwii_putty_utils_conf.c
lea r14, [0x1400407b4]
jmp 0x140040675
mov rcx, qword [rsi + 0x20]
call fcn.140041330
mov ebp, eax
mov rax, qword [rsi + 0x20]
cmp dword [rax + 0x18], 0
jne 0x14004062b
cmp ebp, 0xffffffff
je 0x14004079e
cmp ebp, 0xcc
ja 0x14004062b
mov ecx, 1
mov edx, 0x18
xor r8d, r8d
call fcn.1400416b0
mov rbx, rax
mov dword [rax], ebp
mov eax, ebp
mov eax, dword [r12 + rax*4]
cmp eax, 3
je 0x1400406c0
cmp eax, 2
jne 0x1400406d5
mov rcx, qword [rsi + 0x20]
call fcn.140041330
mov dword [rbx + 8], eax
jmp 0x1400406d5
mov rcx, qword [rsi + 0x20]
call fcn.1400413e0
mov rcx, rax
call fcn.1400477e0
mov qword [rbx + 8], rax
movsxd rax, dword [rbx]
mov eax, dword [r13 + rax*4]
add eax, 0xffffffff
cmp eax, 4
ja case.default.0x1400406ec
movsxd rax, dword [r14 + rax*4]
add rax, r14
jmp rax
mov rcx, qword [rsi + 0x20]
call fcn.1400412b0
mov byte [rbx + 0x10], al
jmp case.default.0x1400406ec
mov rcx, qword [rsi + 0x20]
call fcn.140041330
mov dword [rbx + 0x10], eax
jmp case.default.0x1400406ec
mov rcx, qword [rsi + 0x20]
call fcn.1400413e0
mov rcx, rax
call fcn.1400477e0
jmp 0x14004072f
mov rcx, rsi
call fcn.140054130
jmp 0x14004072f
mov rcx, rsi
call fcn.140053e60
mov qword [rbx + 0x10], rax
mov rax, qword [rsi + 0x20]
cmp dword [rax + 0x18], 0
jne 0x1400407a5
mov rcx, qword [rdi]
mov rdx, rbx
call fcn.140042550
test rax, rax
je 0x140040660
mov rbp, rax
cmp rax, rbx
je 0x140040660
mov rcx, qword [rdi]
mov rdx, rbp
call fcn.140043b80
mov rcx, rbp
call fcn.140040260
mov rcx, qword [rdi]
mov rdx, rbx
call fcn.140042550
cmp rax, rbx
je 0x140040660
lea rcx, str.oldentry__entry
mov rdx, r15
mov r8d, 0xec
call fcn.1400b215c
jmp 0x140040660
mov al, 1
jmp 0x14004062d
mov rcx, rbx
call fcn.140040260
jmp 0x14004062b
Function at 0x140043e70
Capabilities:
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov r14, r8
mov rsi, rdx
mov rax, qword [0x140102058]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rcx
test rdx, rdx
je 0x140043eb8
lea r8, [rsp + 0x48]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x140043eb3
xor ebx, ebx
xor edi, edi
jmp 0x140043f66
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor edi, edi
lea r9, [rsp + 0x44]
mov rdx, r14
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140043f54
cmp dword [rsp + 0x44], 1
mov ebx, 0
jne 0x140043f56
mov ecx, dword [rsp + 0x40]
add ecx, 1
xor edi, edi
mov edx, 1
xor r8d, r8d
call fcn.1400416b0
mov rbx, rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x3c], eax
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x44]
mov rdx, r14
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140043f56
cmp dword [rsp + 0x44], 1
jne 0x140043f56
mov eax, dword [rsp + 0x3c]
cmp eax, dword [rsp + 0x40]
jbe 0x140043f4d
xor edi, edi
jmp 0x140043f56
mov byte [rbx + rax], 0
mov rdi, rbx
xor ebx, ebx
test rsi, rsi
je 0x140043f66
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.140041750
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400a5f20
mov rax, rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140044360
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp byte [0x140105dc0], 1
jne 0x140044378
mov al, byte [0x140105dc1]
jmp 0x1400444fe
mov byte [0x140105dc0], 1
lea rcx, str.advapi32.dll
call fcn.140043cd0
mov qword [0x140105dc8], rax
test rax, rax
je 0x1400444f6
lea rdx, str.GetSecurityInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140105dd0], rax
test rax, rax
je 0x1400444f6
mov rcx, qword [0x140105dc8]
test rcx, rcx
je 0x1400444af
lea rdx, str.SetSecurityInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140105dd8], rax
test rax, rax
je 0x1400444f6
mov rcx, qword [0x140105dc8]
test rcx, rcx
je 0x1400444be
lea rdx, str.OpenProcessToken
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140105de0], rax
test rax, rax
je 0x1400444f6
mov rcx, qword [0x140105dc8]
test rcx, rcx
je 0x1400444cd
lea rdx, str.GetTokenInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140105de8], rax
test rax, rax
je 0x1400444f6
mov rcx, qword [0x140105dc8]
test rcx, rcx
je 0x1400444dc
lea rdx, [0x1400e4779]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140105df0], rax
test rax, rax
je 0x1400444f6
mov rcx, qword [0x140105dc8]
test rcx, rcx
je 0x1400444eb
lea rdx, [0x1400e4a95]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140105df8], rax
test rax, rax
je 0x1400444f6
mov rcx, qword [0x140105dc8]
test rcx, rcx
je 0x140044503
lea rdx, str.SetEntriesInAclA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x140044505
mov qword [0x140105dd8], 0
xor eax, eax
jmp 0x1400444f8
mov qword [0x140105de0], 0
xor eax, eax
jmp 0x1400444f8
mov qword [0x140105de8], 0
xor eax, eax
jmp 0x1400444f8
mov qword [0x140105df0], 0
xor eax, eax
jmp 0x1400444f8
mov qword [0x140105df8], 0
xor eax, eax
mov byte [0x140105dc1], al
add rsp, 0x28
ret
xor eax, eax
mov qword [0x140105e00], rax
test rax, rax
setne al
jmp 0x1400444f8
Function at 0x1400480a0
Capabilities:
Link many functions at runtime

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp byte [0x140105ed8], 0
jne 0x1400481ce
lea rcx, str.winspool.drv
call fcn.140043cd0
mov rsi, rax
lea rcx, str.spoolss.dll
call fcn.140043cd0
test rsi, rsi
je 0x140048171
lea rdx, str.EnumPrintersA
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
call rdi
mov qword [0x140105ed0], rax
lea rdx, str.OpenPrinterA
mov rcx, rsi
call rdi
mov qword [0x140105e98], rax
lea rdx, str.ClosePrinter
mov rcx, rsi
call rdi
mov qword [0x140105ec0], rax
lea rdx, str.StartDocPrinterA
mov rcx, rsi
call rdi
mov qword [0x140105ea0], rax
lea rdx, str.EndDocPrinter
mov rcx, rsi
call rdi
mov qword [0x140105eb8], rax
lea rdx, str.StartPagePrinter
mov rcx, rsi
call rdi
mov qword [0x140105ea8], rax
lea rdx, str.EndPagePrinter
mov rcx, rsi
call rdi
mov qword [0x140105eb0], rax
lea rdx, str.WritePrinter
mov rcx, rsi
call rdi
jmp 0x1400481c0
mov qword [0x140105ed0], 0
mov qword [0x140105e98], 0
mov qword [0x140105ec0], 0
mov qword [0x140105ea0], 0
mov qword [0x140105eb8], 0
mov qword [0x140105ea8], 0
mov qword [0x140105eb0], 0
xor eax, eax
mov qword [0x140105ec8], rax
mov byte [0x140105ed8], 1
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x140053ee0
Capabilities:
Get common file path
Set current directory

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x138
mov ebx, r9d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140102058]
xor rax, rsp
mov qword [rsp + 0x130], rax
test r8b, r8b
je 0x140053f29
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
add eax, 0xffffffff
cmp eax, 0x103
setb bpl
jmp 0x140053f2b
xor ebp, ebp
mov dword [rdi], 0x88
xor eax, eax
test rsi, rsi
je 0x140053f3f
cmp byte [rsi], 0
cmovne rax, rsi
mov qword [rdi + 0x50], rax
mov rcx, rdi
test bl, bl
je 0x140053f52
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x140053f58
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
mov edi, eax
test rsi, rsi
je 0x140053f7a
mov ecx, 0x104
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
add eax, 0xffffffff
cmp eax, 0x103
jb 0x140053f7a
mov byte [rsi], 0
test bpl, bpl
je 0x140053f8a
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test edi, edi
setne bl
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400a5f20
mov eax, ebx
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x14006dfe0
Capabilities:
Create thread

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r15d, r9d
mov rdi, r8
mov rbx, rdx
mov rbp, rcx
mov rax, qword [0x140102058]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ecx, 1
mov edx, 0x1050
xor r8d, r8d
call fcn.1400416b0
mov rsi, rax
mov dword [rax], 0
lea r14, [rax + 8]
mov qword [rax + 8], rbp
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsi + 0x20], rax
mov qword [rsi + 0x1048], rbx
mov byte [rsi + 0x2a], 0
mov word [rsi + 0x28], 0
mov qword [rsi + 0x30], rdi
mov dword [rsi + 0x38], r15d
cmp qword [0x1401020a0], 0xffffffffffffffff
jne 0x14006e0ac
lea rax, [0x140105f70]
mov qword [0x140105f70], rax
mov qword [0x140105f78], rax
lea rcx, [0x140105f80]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x1401020a0], rax
lea rdx, [0x14006e960]
mov rcx, rax
xor r8d, r8d
call fcn.14002c050
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x14006e110]
xor ecx, ecx
xor edx, edx
mov r9, r14
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14006e0e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rsi + 0x2b], 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400a5f20
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14006e340
Capabilities:
Create thread

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r15d, r9d
mov rbx, r8
mov rdi, rdx
mov rbp, rcx
mov rax, qword [0x140102058]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ecx, 1
mov edx, 0x1050
xor r8d, r8d
call fcn.1400416b0
mov rsi, rax
mov dword [rax], 1
lea r14, [rax + 8]
mov qword [rax + 8], rbp
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsi + 0x20], rax
mov dword [rsi + 0x28], 0
mov qword [rsi + 0x30], rbx
lea rcx, [rsi + 0x58]
call fcn.140047830
mov dword [rsi + 0x80], 0
mov qword [rsi + 0x88], rdi
mov qword [rsi + 0x90], rsi
mov dword [rsi + 0x38], r15d
cmp qword [0x1401020a0], 0xffffffffffffffff
jne 0x14006e423
lea rax, [0x140105f70]
mov qword [0x140105f70], rax
mov qword [0x140105f78], rax
lea rcx, [0x140105f80]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x1401020a0], rax
lea rdx, [0x14006e960]
mov rcx, rax
xor r8d, r8d
call fcn.14002c050
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x14006e480]
xor ecx, ecx
xor edx, edx
mov r9, r14
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14006e457
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400a5f20
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14006f2b0
Capabilities:
Get session user name

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140102058]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp byte [0x140105fb0], 0
je 0x14006f2df
mov rsi, qword [0x140105fa8]
test rsi, rsi
jne 0x14006f329
jmp 0x14006f38a
lea rcx, str.secur32.dll
call fcn.140043cd0
mov rsi, rax
lea rcx, str.sspicli.dll
call fcn.140043cd0
test rsi, rsi
je 0x14006f314
lea rdx, str.GetUserNameExA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
jmp 0x14006f316
xor esi, esi
mov qword [0x140105fa8], rsi
mov byte [0x140105fb0], 1
test rsi, rsi
je 0x14006f38a
mov dword [rsp + 0x2c], 0
lea rdi, [rsp + 0x2c]
mov ecx, 8
xor edx, edx
mov r8, rdi
call rsi
mov ecx, dword [rsp + 0x2c]
mov edx, 1
xor r8d, r8d
call fcn.1400416b0
mov rsi, rax
mov ecx, 8
mov rdx, rax
mov r8, rdi
call qword [0x140105fa8]
test al, al
je 0x14006f382
mov rcx, rsi
mov edx, 0x40
call fcn.1400a78f0
test rax, rax
je 0x14006f3e2
mov byte [rax], 0
jmp 0x14006f3e2
mov rcx, rsi
call fcn.140041750
mov dword [rsp + 0x2c], 0
lea rdx, [rsp + 0x2c]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x14006f3a9
mov ecx, dword [rsp + 0x2c]
jmp 0x14006f3b6
mov dword [rsp + 0x2c], 0x100
mov ecx, 0x100
mov edx, 1
xor r8d, r8d
call fcn.1400416b0
mov rsi, rax
lea rdx, [rsp + 0x2c]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x14006f3e2
mov rcx, rsi
call fcn.140041750
xor esi, esi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400a5f20
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x14006f630
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x38
cmp qword [0x140105fb8], 0
jne 0x14006f6b1
mov edx, dword [0x140105fc0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r9d, eax
cmp qword [0x140105fc0], r9
ja 0x14006f6b1
lea rsi, [0x140105fc0]
mov rdi, qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
nop dword [rax + rax]
mov rcx, qword [0x140105fb8]
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], 1
mov r8d, 1
mov rdx, rsi
call fcn.140041760
mov qword [0x140105fb8], rax
mov edx, dword [0x140105fc0]
mov rcx, rax
call rdi
mov r9d, eax
cmp qword [0x140105fc0], r9
jbe 0x14006f670
mov rax, qword [0x140105fb8]
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x140071350
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 0x140071381
lea rcx, str.x0__nw__x1__nw
lea rdx, str._home_simon_mem_.build_workdirs_bob_aew3xwii_putty_crypto_mpint.c
mov r8d, 0x9e
call fcn.1400b215c
and ebx, 1
neg rbx
mov qword [rsp + 0x28], rbx
cmp qword [rdi], 0
je 0x1400713d1
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 0x1400713a0
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400797f0
Capabilities:
Create pipe
Create process on windows
Create reverse shell

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x130
movaps xmmword [rsp + 0x120], xmm6
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140102058]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov dword [rsp + 0xd0], 0x18
mov qword [rsp + 0xd8], 0
mov dword [rsp + 0xe0], 1
lea rcx, [rsp + 0x100]
lea rdx, [rsp + 0xf8]
lea r8, [rsp + 0xd0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x140079a66
lea rcx, [rsp + 0x108]
lea rdx, [rsp + 0x110]
lea r8, [rsp + 0xd0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x140079a1c
lea rcx, [rsp + 0xf0]
lea rdx, [rsp + 0xe8]
lea r8, [rsp + 0xd0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x140079a37
mov rcx, qword [rsp + 0x110]
mov rbx, qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov edx, 1
xor r8d, r8d
call rbx
mov rcx, qword [rsp + 0x100]
mov edx, 1
xor r8d, r8d
call rbx
mov rcx, qword [rsp + 0xf0]
test rcx, rcx
je 0x1400798fd
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [rsp + 0x68], 0x68
xorps xmm6, xmm6
movups xmmword [rsp + 0x70], xmm6
mov qword [rsp + 0x80], 0
mov dword [rsp + 0xa4], 0x100
mov word [rsp + 0xaa], 0
mov qword [rsp + 0xb0], 0
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xc8], rax
mov rcx, rdi
call fcn.1400477e0
mov rdi, rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 0x8000020
mov dword [rsp + 0x20], 1
xor ecx, ecx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, rdi
call fcn.140041750
mov rcx, qword [rsp + 0x50]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rdi
mov rcx, qword [rsp + 0x58]
call rdi
mov rcx, qword [rsp + 0x108]
call rdi
mov rcx, qword [rsp + 0xf8]
call rdi
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x1400799f3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9, qword [rsp + 0xf0]
mov r8, qword [rsp + 0x100]
mov rdx, qword [rsp + 0x110]
mov byte [rsp + 0x20], 0
mov rcx, rsi
call fcn.140097ea0
xor esi, esi
jmp 0x140079a85
mov rcx, qword [rsp + 0x100]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rsp + 0xf8]
jmp 0x140079a64
mov rcx, qword [rsp + 0x100]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rsp + 0xf8]
call rsi
mov rcx, qword [rsp + 0x110]
call rsi
mov rcx, qword [rsp + 0x108]
call rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140045070
lea rcx, str.Unable_to_create_pipes_for_proxy_command:__s
mov rdx, rax
call fcn.140040ac0
mov rsi, rax
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.1400a5f20
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x120]
add rsp, 0x130
pop rbx
pop rdi
pop rsi
ret