joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140039a90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov esi, edx
mov rdi, rcx
mov rax, qword [0x14012c040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 2
call fcn.1400397e0
cmp rax, 0xffffffffffffffff
je 0x140039ae4
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.1400b9230
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x140039e00
Capabilities:
Delete registry key

Disassembly:
push rsi
push rdi
sub rsp, 0x28
xor ecx, ecx
call fcn.1400397e0
call fcn.14002a160
mov qword [rsp + 0x20], 0
lea r9, str.SoftwareSimonTathamPuTTY
xor ecx, ecx
mov dl, 1
mov r8, 0xffffffff80000001
call fcn.140042ce0
test rax, rax
je 0x140039e4a
mov rsi, rax
mov rcx, rax
call fcn.140039f00
mov rcx, rsi
call sub.ADVAPI32.dll_RegCloseKey
mov qword [rsp + 0x20], 0
lea r9, str.SoftwareSimonTatham
xor ecx, ecx
mov dl, 1
mov r8, 0xffffffff80000001
call fcn.140042ce0
test rax, rax
je 0x140039eee
mov rsi, rax
lea rdx, [0x14010f302]
mov rcx, rax
call sub.ADVAPI32.dll_RegDeleteKeyA
mov rcx, rsi
xor edx, edx
call fcn.140042e40
mov rdi, rax
mov rcx, rsi
call sub.ADVAPI32.dll_RegCloseKey
test rdi, rdi
je 0x140039ea9
mov rcx, rdi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14003f720
mov qword [rsp + 0x20], 0
lea r9, str.Software
xor ecx, ecx
mov dl, 1
mov r8, 0xffffffff80000001
call fcn.140042ce0
test rax, rax
je 0x140039eee
mov rsi, rax
lea rdx, [0x14010a43b]
mov rcx, rax
call sub.ADVAPI32.dll_RegDeleteKeyA
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp sub.ADVAPI32.dll_RegCloseKey
nop
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x140039f00
Capabilities:
Delete registry key

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
xor edx, edx
call fcn.140042e40
test rax, rax
je 0x140039f77
mov rdi, rax
jmp 0x140039f45
mov rcx, rsi
mov rdx, rdi
call sub.ADVAPI32.dll_RegDeleteKeyA
mov rcx, rdi
call fcn.14003f720
mov rcx, rsi
xor edx, edx
call fcn.140042e40
mov rdi, rax
test rax, rax
je 0x140039f77
mov qword [rsp + 0x20], 0
xor ecx, ecx
mov dl, 1
mov r8, rsi
mov r9, rdi
call fcn.140042ce0
test rax, rax
je 0x140039f20
mov rbx, rax
mov rcx, rax
call fcn.140039f00
mov rcx, rbx
call sub.ADVAPI32.dll_RegCloseKey
jmp 0x140039f20
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x140039f80
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 0x140039fdf
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 0x14003a01f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14003a016
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14003a016
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140044050
lea rcx, str.Unable_to_delete__s:__s
mov rdx, rdi
mov r8, rax
call fcn.140007460
mov qword [rsi], 0xffffffffffffffff
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x1400423f0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x14012c040]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor esi, esi
mov edi, 1
mov ecx, 1
mov edx, 0x38
xor r8d, r8d
call fcn.14003f680
mov r13, rax
lea r14, [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [r13], rax
lea rcx, [r13 + 0x18]
lea r9, [r13 + 0x10]
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x34]
mov rcx, rax
mov dl, 1
call fcn.140078580
movsxd rax, dword [rsp + 0x34]
lea r15, [r13 + 0x30]
mov qword [r13 + 8], rax
xorps xmm6, xmm6
movups xmmword [r13 + 0x20], xmm6
mov qword [r13 + 0x30], 0
mov r9d, 0
cmp rax, 2
jb 0x14004254e
lea r12, [0x140118b47]
nop
mov rax, qword [r13 + 0x10]
mov rbx, qword [rax + rdi*8]
mov ecx, 1
mov edx, 0x28
xor r8d, r8d
call fcn.14003f680
mov rsi, rax
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xffffffffffffffff
lea rbp, [rax + 0x20]
mov qword [rax + 0x20], r14
mov rcx, qword [r13 + 0x20]
mov r9, qword [r13 + 0x28]
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], 1
mov r8d, 8
mov rdx, r15
call fcn.14003f730
mov qword [r13 + 0x20], rax
mov rcx, qword [r13 + 0x28]
lea rdx, [rcx + 1]
mov qword [r13 + 0x28], rdx
mov qword [rax + rcx*8], rbp
mov rcx, rbx
call fcn.140078c50
mov qword [rsi], rax
mov ecx, 0xfde9
mov rdx, rbx
mov r8, r12
call fcn.14003ebc0
mov qword [rsi + 8], rax
xor ecx, ecx
mov rdx, rbx
mov r8, r12
call fcn.14003ebc0
mov qword [rsi + 0x10], rax
lea rax, [rdi - 1]
mov qword [rsi + 0x18], rax
add rdi, 1
cmp rdi, qword [r13 + 8]
jb 0x140042490
mov rsi, qword [r13 + 0x20]
mov r9, qword [r13 + 0x28]
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], 1
mov r8d, 8
mov rcx, rsi
mov rdx, r15
call fcn.14003f730
mov qword [r13 + 0x20], rax
mov rcx, qword [r13 + 0x28]
lea rdx, [rcx + 1]
mov qword [r13 + 0x28], rdx
mov qword [rax + rcx*8], 0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400b9230
mov rax, r14
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400428b0
Capabilities:
Hide graphical window

Disassembly:
push rsi
sub rsp, 0xc0
movaps xmmword [rsp + 0xb0], xmm6
mov rax, qword [0x14012c040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
xorps xmm6, xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
lea rax, [0x1400429b0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14012cef8]
mov qword [rsp + 0x78], rax
lea rsi, str.PuTTYTimerWindow
mov qword [rsp + 0xa0], rsi
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_RegisterClassA]
mov rax, qword [0x14012cef8]
mov qword [rsp + 0x50], rax
movups xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x38], 0x64
mov dword [rsp + 0x30], 0x64
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
lea r8, str.PuTTY:_hidden_timing_window
xor ecx, ecx
mov rdx, rsi
mov r9d, 0xcf0000
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [0x14012e9e8], rax
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400b9230
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc0
pop rsi
ret

Function at 0x140042e40
Capabilities:
Query or enumerate registry key

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov ebp, edx
mov rbx, rcx
mov rax, qword [0x14012c040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0x105
mov edi, 0x105
mov ecx, 0x105
mov edx, 1
xor r8d, r8d
call fcn.14003f680
mov rsi, rax
mov r15, qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea r14, [rsp + 0x38]
nop
mov rcx, rbx
mov edx, ebp
mov r8, rsi
mov r9d, edi
call r15
cmp eax, 0xea
jne 0x140042ed3
mov r9, qword [rsp + 0x38]
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], 1
mov r8d, 1
mov rcx, rsi
mov rdx, r14
call fcn.14003f730
mov rsi, rax
mov rdi, qword [rsp + 0x38]
jmp 0x140042e90
test eax, eax
je 0x140042ee1
mov rcx, rsi
call fcn.14003f720
xor esi, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400b9230
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140042f00
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14012c040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x34]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rsp + 0x30]
xor ecx, 4
or ecx, eax
mov eax, dword [rsp + 0x34]
xor eax, 4
or eax, ecx
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400b9230
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x140042f70
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14012c040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x34], r8d
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400b9230
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x140042fd0
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x14012c040]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r15, [rsp + 0x30]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], 0
xor esi, esi
lea r9, [rsp + 0x34]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14004309c
cmp dword [rsp + 0x34], 1
jne 0x14004309c
mov edi, dword [rsp + 0x30]
add edi, 1
mov edx, 1
mov rcx, rdi
xor r8d, r8d
call fcn.14003f680
mov rsi, rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140043092
cmp dword [rsp + 0x34], 1
jne 0x140043092
mov eax, dword [rsp + 0x30]
cmp eax, edi
jb 0x14004308a
lea rcx, str.size___allocsize
lea rdx, str._home_simon_mem_.build_workdirs_bob_qvbm9mtj_putty_windows_utils_registry.c
mov r8d, 0x6c
call fcn.1400ca0ec
mov eax, dword [rsp + 0x30]
mov eax, eax
mov byte [rsi + rax], 0
jmp 0x14004309c
mov rcx, rsi
call fcn.14003f720
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400b9230
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1400430c0
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rcx, r8
call fcn.1400cefa0
add eax, 1
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete al
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x140043110
Capabilities:
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14012c040]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea r14, [rsp + 0x38]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], 0
xor esi, esi
lea r9, [rsp + 0x3c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400431d8
cmp dword [rsp + 0x3c], 7
jne 0x1400431d8
call fcn.14003fd50
mov rsi, rax
mov edx, dword [rsp + 0x38]
add rdx, 2
mov rcx, rax
call fcn.14003fc30
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400431ce
cmp dword [rsp + 0x3c], 7
jne 0x1400431ce
mov edx, dword [rsp + 0x38]
mov rcx, rsi
call fcn.14003fc90
nop dword [rax]
mov rcx, rsi
xor edx, edx
call fcn.14003fd20
test al, al
jne 0x1400431b0
mov rcx, rsi
add rcx, 0x18
xor edx, edx
call fcn.14003ecc0
jmp 0x1400431d8
mov rcx, rsi
call fcn.14003fe50
xor esi, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400b9230
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140043200
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov eax, dword [r8 + 0x10]
add eax, 1
mov r8, qword [r8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9d, 7
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete al
add rsp, 0x38
ret
Function at 0x140043660
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp byte [0x14012ea10], 1
jne 0x140043678
mov al, byte [0x14012ea11]
jmp 0x1400437fe
mov byte [0x14012ea10], 1
lea rcx, str.advapi32.dll
call fcn.140042b00
mov qword [0x14012ea18], rax
test rax, rax
je 0x1400437f6
lea rdx, str.GetSecurityInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012ea20], rax
test rax, rax
je 0x1400437f6
mov rcx, qword [0x14012ea18]
test rcx, rcx
je 0x1400437af
lea rdx, str.SetSecurityInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012ea28], rax
test rax, rax
je 0x1400437f6
mov rcx, qword [0x14012ea18]
test rcx, rcx
je 0x1400437be
lea rdx, str.OpenProcessToken
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012ea30], rax
test rax, rax
je 0x1400437f6
mov rcx, qword [0x14012ea18]
test rcx, rcx
je 0x1400437cd
lea rdx, str.GetTokenInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012ea38], rax
test rax, rax
je 0x1400437f6
mov rcx, qword [0x14012ea18]
test rcx, rcx
je 0x1400437dc
lea rdx, [0x1401086f4]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012ea40], rax
test rax, rax
je 0x1400437f6
mov rcx, qword [0x14012ea18]
test rcx, rcx
je 0x1400437eb
lea rdx, [0x140108a04]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012ea48], rax
test rax, rax
je 0x1400437f6
mov rcx, qword [0x14012ea18]
test rcx, rcx
je 0x140043803
lea rdx, str.SetEntriesInAclA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x140043805
mov qword [0x14012ea28], 0
xor eax, eax
jmp 0x1400437f8
mov qword [0x14012ea30], 0
xor eax, eax
jmp 0x1400437f8
mov qword [0x14012ea38], 0
xor eax, eax
jmp 0x1400437f8
mov qword [0x14012ea40], 0
xor eax, eax
jmp 0x1400437f8
mov qword [0x14012ea48], 0
xor eax, eax
mov byte [0x14012ea11], al
add rsp, 0x28
ret
xor eax, eax
mov qword [0x14012ea50], rax
test rax, rax
setne al
jmp 0x1400437f8
Function at 0x1400472c0
Capabilities:
Link many functions at runtime

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp byte [0x14012eb28], 0
jne 0x1400473ee
lea rcx, str.winspool.drv
call fcn.140042b00
mov rsi, rax
lea rcx, str.spoolss.dll
call fcn.140042b00
test rsi, rsi
je 0x140047391
lea rdx, str.EnumPrintersA
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
call rdi
mov qword [0x14012eb20], rax
lea rdx, str.OpenPrinterA
mov rcx, rsi
call rdi
mov qword [0x14012eae8], rax
lea rdx, str.ClosePrinter
mov rcx, rsi
call rdi
mov qword [0x14012eb10], rax
lea rdx, str.StartDocPrinterA
mov rcx, rsi
call rdi
mov qword [0x14012eaf0], rax
lea rdx, str.EndDocPrinter
mov rcx, rsi
call rdi
mov qword [0x14012eb08], rax
lea rdx, str.StartPagePrinter
mov rcx, rsi
call rdi
mov qword [0x14012eaf8], rax
lea rdx, str.EndPagePrinter
mov rcx, rsi
call rdi
mov qword [0x14012eb00], rax
lea rdx, str.WritePrinter
mov rcx, rsi
call rdi
jmp 0x1400473e0
mov qword [0x14012eb20], 0
mov qword [0x14012eae8], 0
mov qword [0x14012eb10], 0
mov qword [0x14012eaf0], 0
mov qword [0x14012eb08], 0
mov qword [0x14012eaf8], 0
mov qword [0x14012eb00], 0
xor eax, eax
mov qword [0x14012eb18], rax
mov byte [0x14012eb28], 1
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x140054030
Capabilities:
Get common file path
Set current directory

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x238
mov ebx, r9d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14012c040]
xor rax, rsp
mov qword [rsp + 0x230], rax
test r8b, r8b
je 0x140054079
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xffffffff
cmp eax, 0x103
setb bpl
jmp 0x14005407b
xor ebp, ebp
mov dword [rdi], 0x98
test rsi, rsi
je 0x14005409d
lea rcx, [rsi + 0x104]
xor eax, eax
cmp word [rsi + 0x104], 0
cmovne rax, rcx
jmp 0x14005409f
xor eax, eax
mov qword [rdi + 0x50], rax
mov rcx, rdi
test bl, bl
je 0x1400540b2
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
jmp 0x1400540b8
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
mov edi, eax
test rsi, rsi
je 0x1400540e5
add rsi, 0x104
mov ecx, 0x104
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefc
cmp eax, 0xfffffefc
ja 0x1400540e5
mov word [rsi], 0
test bpl, bpl
je 0x1400540f5
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test edi, edi
setne bl
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400b9230
mov eax, ebx
add rsp, 0x238
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x1400720e0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rax, rdx
mov rsi, rcx
lea rdx, [0x14010f084]
mov rcx, rax
xor r8d, r8d
call fcn.140054490
test rax, rax
je 0x14007215d
mov rdi, rax
mov qword [rsi + 8], 0
mov r8, qword [rsi + 0x10]
test r8, r8
je 0x140072176
xor ecx, ecx
nop word [rax + rax]
sub r8, rcx
add rcx, qword [rsi]
mov edx, 1
mov r9, rdi
call fcn.1400ccc08
mov rbx, rax
mov rcx, rdi
call fcn.1400cc500
test eax, eax
jne 0x140072164
mov rcx, qword [rsi + 8]
test rbx, rbx
je 0x14007216b
add rcx, rbx
mov qword [rsi + 8], rcx
mov r8, qword [rsi + 0x10]
cmp r8, rcx
ja 0x140072120
jmp 0x14007216f
mov ebx, 2
jmp 0x1400721b4
mov ebx, 2
jmp 0x1400721ac
mov r8, qword [rsi + 0x10]
xor ebx, ebx
cmp rcx, r8
jne 0x14007218a
mov rcx, rdi
call fcn.1400cc918
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
mov rcx, qword [rsi + 8]
mov rax, qword [rsi]
lea rdx, [rsi + 0x18]
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x28], rcx
mov qword [rsi + 0x20], 0
mov dword [rsi + 0x30], 0
mov qword [rsi + 0x38], rdx
mov rcx, rdi
call fcn.1400cc348
mov eax, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x140076c70
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 [0x14012c040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ecx, 1
mov edx, 0x1050
xor r8d, r8d
call fcn.14003f680
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 [0x14012c090], 0xffffffffffffffff
jne 0x140076d3c
lea rax, [0x14012ebd0]
mov qword [0x14012ebd0], rax
mov qword [0x14012ebd8], rax
lea rcx, [0x14012ebe0]
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 [0x14012c090], rax
lea rdx, [0x1400775f0]
mov rcx, rax
xor r8d, r8d
call fcn.14002c430
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x140076da0]
xor ecx, ecx
xor edx, edx
mov r9, r14
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140076d70
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.1400b9230
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140076fd0
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 [0x14012c040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ecx, 1
mov edx, 0x1050
xor r8d, r8d
call fcn.14003f680
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.140046a50
mov dword [rsi + 0x80], 0
mov qword [rsi + 0x88], rdi
mov qword [rsi + 0x90], rsi
mov dword [rsi + 0x38], r15d
cmp qword [0x14012c090], 0xffffffffffffffff
jne 0x1400770b3
lea rax, [0x14012ebd0]
mov qword [0x14012ebd0], rax
mov qword [0x14012ebd8], rax
lea rcx, [0x14012ebe0]
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 [0x14012c090], rax
lea rdx, [0x1400775f0]
mov rcx, rax
xor r8d, r8d
call fcn.14002c430
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x140077110]
xor ecx, ecx
xor edx, edx
mov r9, r14
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400770e7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400b9230
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140077f30
Capabilities:
Get session user name

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14012c040]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp byte [0x14012ec10], 0
je 0x140077f5f
mov rsi, qword [0x14012ec08]
test rsi, rsi
jne 0x140077fa9
jmp 0x14007800a
lea rcx, str.secur32.dll
call fcn.140042b00
mov rsi, rax
lea rcx, str.sspicli.dll
call fcn.140042b00
test rsi, rsi
je 0x140077f94
lea rdx, str.GetUserNameExA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
jmp 0x140077f96
xor esi, esi
mov qword [0x14012ec08], rsi
mov byte [0x14012ec10], 1
test rsi, rsi
je 0x14007800a
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.14003f680
mov rsi, rax
mov ecx, 8
mov rdx, rax
mov r8, rdi
call qword [0x14012ec08]
test al, al
je 0x140078002
mov rcx, rsi
mov edx, 0x40
call fcn.1400baed8
test rax, rax
je 0x140078062
mov byte [rax], 0
jmp 0x140078062
mov rcx, rsi
call fcn.14003f720
mov dword [rsp + 0x2c], 0
lea rdx, [rsp + 0x2c]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x140078029
mov ecx, dword [rsp + 0x2c]
jmp 0x140078036
mov dword [rsp + 0x2c], 0x100
mov ecx, 0x100
mov edx, 1
xor r8d, r8d
call fcn.14003f680
mov rsi, rax
lea rdx, [rsp + 0x2c]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x140078062
mov rcx, rsi
call fcn.14003f720
xor esi, esi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400b9230
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x140078ca0
Capabilities:
Get common file path

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

Function at 0x14007b130
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 0x14007b161
lea rcx, str.x0__nw__x1__nw
lea rdx, str._home_simon_mem_.build_workdirs_bob_qvbm9mtj_putty_crypto_mpint.c
mov r8d, 0xa6
call fcn.1400ca0ec
and ebx, 1
neg rbx
mov qword [rsp + 0x28], rbx
cmp qword [rdi], 0
je 0x14007b1b1
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 0x14007b180
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret