joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003da70
Capabilities:
Get common file path
Query environment variable

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
mov ebp, ecx
mov rax, qword [0x14012a050]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x20], 0
lea r9, str.SoftwareSimonTathamPuTTY
xor ecx, ecx
xor edx, edx
mov r8, 0xffffffff80000001
call fcn.140046460
test rax, rax
je 0x14003daf7
mov rbx, rax
lea rdx, str.RandSeedFile
mov rcx, rax
call fcn.140046750
mov rsi, rax
mov rcx, rbx
call sub.ADVAPI32.dll_RegCloseKey
test rsi, rsi
je 0x14003daf7
lea r8, [rsp + 0x28]
mov rcx, rsi
mov edx, ebp
call fcn.14003e210
mov ebx, eax
mov rcx, rsi
call fcn.140043590
test bl, bl
jne 0x14003dce9
cmp byte [0x14012d5d8], 0
je 0x14003db11
mov rsi, qword [0x14012d5e8]
test rsi, rsi
jne 0x14003db57
jmp 0x14003dc09
lea rcx, str.shell32.dll
call fcn.1400462c0
mov qword [0x14012d5e0], rax
test rax, rax
je 0x14003db3e
lea rdx, str.SHGetFolderPathA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
jmp 0x14003db40
xor esi, esi
mov qword [0x14012d5e8], rsi
mov byte [0x14012d5d8], 1
test rsi, rsi
je 0x14003dc09
lea rdi, [rsp + 0x140]
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x1c
xor r8d, r8d
xor r9d, r9d
call rsi
test eax, eax
js 0x14003dbb2
lea rdx, str.PUTTY.RND
lea rcx, [rsp + 0x140]
xor r8d, r8d
call fcn.140042610
mov rsi, rax
lea r8, [rsp + 0x28]
mov rcx, rax
mov edx, ebp
call fcn.14003e210
mov ebx, eax
mov rcx, rsi
call fcn.140043590
test bl, bl
jne 0x14003dce9
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x1a
xor r8d, r8d
xor r9d, r9d
call qword [0x14012d5e8]
test eax, eax
js 0x14003dc09
lea rdx, str.PUTTY.RND
lea rcx, [rsp + 0x140]
xor r8d, r8d
call fcn.140042610
mov rsi, rax
lea r8, [rsp + 0x28]
mov rcx, rax
mov edx, ebp
call fcn.14003e210
mov ebx, eax
mov rcx, rsi
call fcn.140043590
test bl, bl
jne 0x14003dce9
lea rcx, str.HOMEDRIVE
mov rdi, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea rdx, [rsp + 0x140]
mov r8d, 0x104
call rdi
mov esi, eax
lea rcx, str.HOMEPATH
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call rdi
test esi, esi
jne 0x14003dc49
mov byte [rsp + 0x140], 0
cmp esi, 0x103
ja 0x14003dc98
cmp eax, 0x103
ja 0x14003dc98
test eax, eax
je 0x14003dc98
lea r8, str.PUTTY.RND
lea rcx, [rsp + 0x140]
lea rdx, [rsp + 0x30]
xor r9d, r9d
call fcn.140042610
mov rsi, rax
lea r8, [rsp + 0x28]
mov rcx, rax
mov edx, ebp
call fcn.14003e210
mov ebx, eax
mov rcx, rsi
call fcn.140043590
test bl, bl
jne 0x14003dce9
lea rcx, [rsp + 0x140]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp eax, 0x104
jae 0x14003dcf0
lea rdx, str.PUTTY.RND
lea rcx, [rsp + 0x140]
xor r8d, r8d
call fcn.140042610
mov rsi, rax
lea r8, [rsp + 0x28]
mov rcx, rax
mov edx, ebp
call fcn.14003e210
mov ebx, eax
mov rcx, rsi
call fcn.140043590
test bl, bl
je 0x14003dcf0
mov rsi, qword [rsp + 0x28]
jmp 0x14003dcf7
mov rsi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400ba340
mov rax, rsi
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x14003dd20
Capabilities:
Write file on windows

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

Function at 0x14003e090
Capabilities:
Delete registry key

Disassembly:
push rsi
push rdi
sub rsp, 0x28
xor ecx, ecx
call fcn.14003da70
call fcn.14002aa80
mov qword [rsp + 0x20], 0
lea r9, str.SoftwareSimonTathamPuTTY
xor ecx, ecx
mov dl, 1
mov r8, 0xffffffff80000001
call fcn.140046460
test rax, rax
je 0x14003e0da
mov rsi, rax
mov rcx, rax
call fcn.14003e190
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.140046460
test rax, rax
je 0x14003e17e
mov rsi, rax
lea rdx, [0x14010dad3]
mov rcx, rax
call sub.ADVAPI32.dll_RegDeleteKeyA
mov rcx, rsi
xor edx, edx
call fcn.1400465c0
mov rdi, rax
mov rcx, rsi
call sub.ADVAPI32.dll_RegCloseKey
test rdi, rdi
je 0x14003e139
mov rcx, rdi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140043590
mov qword [rsp + 0x20], 0
lea r9, str.Software
xor ecx, ecx
mov dl, 1
mov r8, 0xffffffff80000001
call fcn.140046460
test rax, rax
je 0x14003e17e
mov rsi, rax
lea rdx, [0x140108da8]
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 0x14003e190
Capabilities:
Delete registry key

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
xor edx, edx
call fcn.1400465c0
test rax, rax
je 0x14003e207
mov rdi, rax
jmp 0x14003e1d5
mov rcx, rsi
mov rdx, rdi
call sub.ADVAPI32.dll_RegDeleteKeyA
mov rcx, rdi
call fcn.140043590
mov rcx, rsi
xor edx, edx
call fcn.1400465c0
mov rdi, rax
test rax, rax
je 0x14003e207
mov qword [rsp + 0x20], 0
xor ecx, ecx
mov dl, 1
mov r8, rsi
mov r9, rdi
call fcn.140046460
test rax, rax
je 0x14003e1b0
mov rbx, rax
mov rcx, rax
call fcn.14003e190
mov rcx, rbx
call sub.ADVAPI32.dll_RegCloseKey
jmp 0x14003e1b0
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400465c0
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 [0x14012a050]
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.1400434f0
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 0x140046653
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.1400435a0
mov rsi, rax
mov rdi, qword [rsp + 0x38]
jmp 0x140046610
test eax, eax
je 0x140046661
mov rcx, rsi
call fcn.140043590
xor esi, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400ba340
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140046680
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14012a050]
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.1400ba340
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x1400466f0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14012a050]
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.1400ba340
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x140046750
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 [0x14012a050]
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 0x14004681c
cmp dword [rsp + 0x34], 1
jne 0x14004681c
mov edi, dword [rsp + 0x30]
add edi, 1
mov edx, 1
mov rcx, rdi
xor r8d, r8d
call fcn.1400434f0
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 0x140046812
cmp dword [rsp + 0x34], 1
jne 0x140046812
mov eax, dword [rsp + 0x30]
cmp eax, edi
jb 0x14004680a
lea rcx, str.size___allocsize
lea rdx, str._home_simon_mem_.build_workdirs_bob_u160jzna_putty_windows_utils_registry.c
mov r8d, 0x6c
call fcn.1400cb1fc
mov eax, dword [rsp + 0x30]
mov eax, eax
mov byte [rsi + rax], 0
jmp 0x14004681c
mov rcx, rsi
call fcn.140043590
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400ba340
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140046840
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.1400cffd0
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 0x140046890
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 [0x14012a050]
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 0x140046958
cmp dword [rsp + 0x3c], 7
jne 0x140046958
call fcn.140043bc0
mov rsi, rax
mov edx, dword [rsp + 0x38]
add rdx, 2
mov rcx, rax
call fcn.140043aa0
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 0x14004694e
cmp dword [rsp + 0x3c], 7
jne 0x14004694e
mov edx, dword [rsp + 0x38]
mov rcx, rsi
call fcn.140043b00
nop dword [rax]
mov rcx, rsi
xor edx, edx
call fcn.140043b90
test al, al
jne 0x140046930
mov rcx, rsi
add rcx, 0x18
xor edx, edx
call fcn.140042ba0
jmp 0x140046958
mov rcx, rsi
call fcn.140043cc0
xor esi, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400ba340
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140046dd0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp byte [0x14012ddb0], 1
jne 0x140046de8
mov al, byte [0x14012ddb1]
jmp 0x140046f6e
mov byte [0x14012ddb0], 1
lea rcx, str.advapi32.dll
call fcn.1400462c0
mov qword [0x14012ddb8], rax
test rax, rax
je 0x140046f66
lea rdx, str.GetSecurityInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012ddc0], rax
test rax, rax
je 0x140046f66
mov rcx, qword [0x14012ddb8]
test rcx, rcx
je 0x140046f1f
lea rdx, str.SetSecurityInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012ddc8], rax
test rax, rax
je 0x140046f66
mov rcx, qword [0x14012ddb8]
test rcx, rcx
je 0x140046f2e
lea rdx, str.OpenProcessToken
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012ddd0], rax
test rax, rax
je 0x140046f66
mov rcx, qword [0x14012ddb8]
test rcx, rcx
je 0x140046f3d
lea rdx, str.GetTokenInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012ddd8], rax
test rax, rax
je 0x140046f66
mov rcx, qword [0x14012ddb8]
test rcx, rcx
je 0x140046f4c
lea rdx, [0x140107046]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012dde0], rax
test rax, rax
je 0x140046f66
mov rcx, qword [0x14012ddb8]
test rcx, rcx
je 0x140046f5b
lea rdx, [0x140107376]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012dde8], rax
test rax, rax
je 0x140046f66
mov rcx, qword [0x14012ddb8]
test rcx, rcx
je 0x140046f73
lea rdx, str.SetEntriesInAclA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x140046f75
mov qword [0x14012ddc8], 0
xor eax, eax
jmp 0x140046f68
mov qword [0x14012ddd0], 0
xor eax, eax
jmp 0x140046f68
mov qword [0x14012ddd8], 0
xor eax, eax
jmp 0x140046f68
mov qword [0x14012dde0], 0
xor eax, eax
jmp 0x140046f68
mov qword [0x14012dde8], 0
xor eax, eax
mov byte [0x14012ddb1], al
add rsp, 0x28
ret
xor eax, eax
mov qword [0x14012ddf0], rax
test rax, rax
setne al
jmp 0x140046f68
Function at 0x14004ac60
Capabilities:
Link many functions at runtime

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp byte [0x14012dec8], 0
jne 0x14004ad8e
lea rcx, str.winspool.drv
call fcn.1400462c0
mov rsi, rax
lea rcx, str.spoolss.dll
call fcn.1400462c0
test rsi, rsi
je 0x14004ad31
lea rdx, str.EnumPrintersA
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
call rdi
mov qword [0x14012dec0], rax
lea rdx, str.OpenPrinterA
mov rcx, rsi
call rdi
mov qword [0x14012de88], rax
lea rdx, str.ClosePrinter
mov rcx, rsi
call rdi
mov qword [0x14012deb0], rax
lea rdx, str.StartDocPrinterA
mov rcx, rsi
call rdi
mov qword [0x14012de90], rax
lea rdx, str.EndDocPrinter
mov rcx, rsi
call rdi
mov qword [0x14012dea8], rax
lea rdx, str.StartPagePrinter
mov rcx, rsi
call rdi
mov qword [0x14012de98], rax
lea rdx, str.EndPagePrinter
mov rcx, rsi
call rdi
mov qword [0x14012dea0], rax
lea rdx, str.WritePrinter
mov rcx, rsi
call rdi
jmp 0x14004ad80
mov qword [0x14012dec0], 0
mov qword [0x14012de88], 0
mov qword [0x14012deb0], 0
mov qword [0x14012de90], 0
mov qword [0x14012dea8], 0
mov qword [0x14012de98], 0
mov qword [0x14012dea0], 0
xor eax, eax
mov qword [0x14012deb8], rax
mov byte [0x14012dec8], 1
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x140056830
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 [0x14012a050]
xor rax, rsp
mov qword [rsp + 0x130], rax
test r8b, r8b
je 0x140056879
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
add eax, 0xffffffff
cmp eax, 0x103
setb bpl
jmp 0x14005687b
xor ebp, ebp
mov dword [rdi], 0x88
xor eax, eax
test rsi, rsi
je 0x14005688f
cmp byte [rsi], 0
cmovne rax, rsi
mov qword [rdi + 0x50], rax
mov rcx, rdi
test bl, bl
je 0x1400568a2
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x1400568a8
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
mov edi, eax
test rsi, rsi
je 0x1400568cc
mov ecx, 0x104
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
add eax, 0xfffffefc
cmp eax, 0xfffffefc
ja 0x1400568cc
mov byte [rsi], 0
test bpl, bpl
je 0x1400568dc
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.1400ba340
mov eax, ebx
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
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, [0x14010d855]
call fcn.1400cdab8
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.1400cdc40
mov rbx, rax
mov rcx, rsi
call fcn.1400cd470
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.1400cd888
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.1400cd2b8
mov eax, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x140079120
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 [0x14012a050]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ecx, 1
mov edx, 0x1050
xor r8d, r8d
call fcn.1400434f0
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 [0x14012a0a0], 0xffffffffffffffff
jne 0x1400791ec
lea rax, [0x14012df70]
mov qword [0x14012df70], rax
mov qword [0x14012df78], rax
lea rcx, [0x14012df80]
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 [0x14012a0a0], rax
lea rdx, [0x140079aa0]
mov rcx, rax
xor r8d, r8d
call fcn.14002cde0
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x140079250]
xor ecx, ecx
xor edx, edx
mov r9, r14
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140079220
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.1400ba340
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140079480
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 [0x14012a050]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ecx, 1
mov edx, 0x1050
xor r8d, r8d
call fcn.1400434f0
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.14004a3f0
mov dword [rsi + 0x80], 0
mov qword [rsi + 0x88], rdi
mov qword [rsi + 0x90], rsi
mov dword [rsi + 0x38], r15d
cmp qword [0x14012a0a0], 0xffffffffffffffff
jne 0x140079563
lea rax, [0x14012df70]
mov qword [0x14012df70], rax
mov qword [0x14012df78], rax
lea rcx, [0x14012df80]
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 [0x14012a0a0], rax
lea rdx, [0x140079aa0]
mov rcx, rax
xor r8d, r8d
call fcn.14002cde0
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x1400795c0]
xor ecx, ecx
xor edx, edx
mov r9, r14
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140079597
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400ba340
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14007a3e0
Capabilities:
Get session user name

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14012a050]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp byte [0x14012dfb0], 0
je 0x14007a40f
mov rsi, qword [0x14012dfa8]
test rsi, rsi
jne 0x14007a459
jmp 0x14007a4ba
lea rcx, str.secur32.dll
call fcn.1400462c0
mov rsi, rax
lea rcx, str.sspicli.dll
call fcn.1400462c0
test rsi, rsi
je 0x14007a444
lea rdx, str.GetUserNameExA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
jmp 0x14007a446
xor esi, esi
mov qword [0x14012dfa8], rsi
mov byte [0x14012dfb0], 1
test rsi, rsi
je 0x14007a4ba
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.1400434f0
mov rsi, rax
mov ecx, 8
mov rdx, rax
mov r8, rdi
call qword [0x14012dfa8]
test al, al
je 0x14007a4b2
mov rcx, rsi
mov edx, 0x40
call fcn.1400bbfe8
test rax, rax
je 0x14007a512
mov byte [rax], 0
jmp 0x14007a512
mov rcx, rsi
call fcn.140043590
mov dword [rsp + 0x2c], 0
lea rdx, [rsp + 0x2c]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x14007a4d9
mov ecx, dword [rsp + 0x2c]
jmp 0x14007a4e6
mov dword [rsp + 0x2c], 0x100
mov ecx, 0x100
mov edx, 1
xor r8d, r8d
call fcn.1400434f0
mov rsi, rax
lea rdx, [rsp + 0x2c]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x14007a512
mov rcx, rsi
call fcn.140043590
xor esi, esi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400ba340
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x14007a930
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x38
cmp qword [0x14012dfb8], 0
jne 0x14007a9b1
mov edx, dword [0x14012dfc0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r9d, eax
cmp qword [0x14012dfc0], r9
ja 0x14007a9b1
lea rsi, [0x14012dfc0]
mov rdi, qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
nop dword [rax + rax]
mov rcx, qword [0x14012dfb8]
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], 1
mov r8d, 1
mov rdx, rsi
call fcn.1400435a0
mov qword [0x14012dfb8], rax
mov edx, dword [0x14012dfc0]
mov rcx, rax
call rdi
mov r9d, eax
cmp qword [0x14012dfc0], r9
jbe 0x14007a970
mov rax, qword [0x14012dfb8]
add rsp, 0x38
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_u160jzna_putty_crypto_mpint.c
mov r8d, 0xa6
call fcn.1400cb1fc
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