joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45eb00
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
lea eax, [ebx + 1]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x45eba7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x45eba6
push ebx
push dword [ebp + 0xc]
push edi
call fcn.0046c040
add esp, 0xc
mov byte [edi + ebx], 0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, dword [ebp + 0x14]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
test ebx, ebx
jne 0x45eb65
push 0
push 1
push 0x8002
push dword [0x4ead98]
call edi
push dword [0x4ead98]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x45eb8c
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x45eb93
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
jne 0x45eba6
push ebx
push ebx
push 0x8002
push dword [0x4ead98]
call edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x460580
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0x1034
push 1
call fcn.0040e450
mov ecx, dword [ebp + 8]
add esp, 8
mov edi, eax
lea ebx, [edi + 4]
mov dword [ebx], ecx
push 0
push 0
push 0
push 0
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x1030], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
mov eax, dword [0x4e89a0]
mov dword [edi + 0x18], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
test eax, eax
jne 0x46060c
push 0x4602d0
call fcn.0044f770
add esp, 4
mov dword [0x4e89a0], eax
push edi
push eax
call fcn.0044e920
add esp, 8
lea eax, [ebp - 4]
push eax
push 0
push ebx
push 0x460640
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x1c], 1
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4607d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0x1034
push 1
call fcn.0040e450
mov ecx, dword [ebp + 8]
add esp, 8
mov edi, eax
lea ebx, [edi + 4]
mov dword [ebx], ecx
push 0
push 0
push 0
push 0
mov dword [edi], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x38]
push eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.0040da80
mov eax, dword [ebp + 0xc]
add esp, 4
mov dword [edi + 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
mov eax, dword [0x4e89a0]
mov dword [edi + 0x44], 0
test eax, eax
jne 0x460873
push 0x4602d0
call fcn.0044f770
add esp, 4
mov dword [0x4e89a0], eax
push edi
push eax
call fcn.0044e920
add esp, 8
lea eax, [ebp - 4]
push eax
push 0
push ebx
push 0x4608a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461ee0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4e91cc], 0
push esi
push edi
jne 0x461f3c
push str.secur32.dll
call fcn.00462020
push str.sspicli.dll
mov esi, eax
call fcn.00462020
add esp, 8
test esi, esi
je 0x461f29
push str.GetUserNameExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4e91c8], eax
mov dword [0x4e91cc], 1
jmp 0x461f41
xor eax, eax
mov dword [0x4e91cc], 1
mov dword [0x4e91c8], eax
jmp 0x461f41
mov eax, dword [0x4e91c8]
test eax, eax
je 0x461f9a
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push 0
push 8
call eax
push 1
push dword [ebp - 4]
call fcn.0040e450
add esp, 8
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
push 8
call dword [0x4e91c8]
movzx esi, al
test al, al
je 0x461f8d
push 0x40
push edi
call fcn.0046bf10
add esp, 8
test eax, eax
je 0x461f96
mov byte [eax], 0
jmp 0x461f96
push edi
call fcn.0040e430
add esp, 4
test esi, esi
jne 0x461fe2
mov esi, dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 4]
push eax
push 0
mov dword [ebp - 4], 0
call esi
mov ecx, dword [ebp - 4]
test eax, eax
mov edx, pe_nt_image_headers32
cmove ecx, edx
push 1
push ecx
mov dword [ebp - 4], ecx
call fcn.0040e450
add esp, 8
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
call esi
mov esi, eax
test esi, esi
jne 0x461fe2
push edi
call fcn.0040e430
add esp, 4
xor eax, eax
test esi, esi
cmovne eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x462020
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x4e91d8]
push esi
push edi
test ecx, ecx
jne 0x462066
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor esi, esi
lea eax, [esi + esi*2]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push 1
add esi, 0x200
push esi
push ecx
call fcn.0040e500
add esp, 0xc
mov dword [0x4e91d8], eax
push esi
push eax
call edi
mov ecx, dword [0x4e91d8]
cmp eax, esi
jge 0x462037
push 0
push dword [ebp + 8]
push 0x4d57cc
push ecx
call fcn.0040dce0
add esp, 0x10
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov edi, eax
call fcn.0040e430
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x4648b0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x4e60ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x12c]
push edi
push 0x107
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x12c]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4648e1
mov ax, word [0x4d616c]
mov word [ecx], ax
mov al, byte [0x4d616e]
mov byte [ecx + 2], al
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x464947
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop
lea eax, [ebp - 0x26c]
push 0x140
push eax
call esi
add esp, 8
lea eax, [ebp - 0x26c]
push eax
push edi
call ebx
test eax, eax
jne 0x464920
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x274]
push 4
push eax
call esi
add esp, 8
cmp dword [0x4e98cc], 0
jne 0x4649e4
push str.advapi32.dll
call fcn.00462020
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
mov dword [0x4e98cc], eax
test eax, eax
je 0x464997
push str.CryptAcquireContextA
push eax
call edi
mov ecx, eax
mov eax, dword [0x4e98cc]
jmp 0x464999
xor ecx, ecx
mov dword [0x4e98c0], ecx
test eax, eax
je 0x4649b4
push str.CryptGenRandom
push eax
call edi
mov ecx, eax
mov eax, dword [0x4e98cc]
jmp 0x4649b6
xor ecx, ecx
mov dword [0x4e98c4], ecx
test eax, eax
je 0x4649d8
push str.CryptReleaseContext
push eax
call edi
cmp dword [0x4e98cc], 0
mov dword [0x4e98c8], eax
je 0x464a47
jmp 0x4649e9
mov dword [0x4e98c8], 0
jmp 0x464a47
mov eax, dword [0x4e98c8]
mov ecx, dword [0x4e98c0]
test ecx, ecx
je 0x464a47
cmp dword [0x4e98c4], 0
je 0x464a47
test eax, eax
je 0x464a47
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x270]
push eax
call ecx
test eax, eax
je 0x464a47
lea eax, [ebp - 0x24]
push eax
push 0x20
push dword [ebp - 0x270]
call dword [0x4e98c4]
test eax, eax
je 0x464a39
lea eax, [ebp - 0x24]
push 0x20
push eax
call esi
add esp, 8
push 0
push dword [ebp - 0x270]
call dword [0x4e98c8]
push esi
call fcn.00467300
add esp, 4
call fcn.00464c30
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0046aced
mov esp, ebp
pop ebp
ret
Function at 0x464ad0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4e60ec]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 4
push eax
call fcn.0043a040
add esp, 8
call dword [sym.imp.USER32.dll_GetCapture]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 4
push eax
call fcn.0043a040
add esp, 8
call dword [sym.imp.USER32.dll_GetClipboardOwner]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 4
push eax
call fcn.0043a040
add esp, 8
push 0x1cbf
call dword [sym.imp.USER32.dll_GetQueueStatus]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push 4
push eax
call fcn.0043a040
add esp, 8
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x54]
push 8
push eax
call fcn.0043a040
add esp, 8
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.0043a040
add esp, 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.0043a040
add esp, 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.0043a040
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.0046aced
mov esp, ebp
pop ebp
ret
Function at 0x464f60
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [ebp + 8]
push edi
nop
cmp dword [ebp + 0xc], 0
je 0x464f7f
mov dword [ebp + 0xc], 0
jmp 0x464fb2
lea eax, [esi + 0x14]
push eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x464fb2
call ebx
mov ebx, eax
cmp ebx, 0x3e5
je 0x465027
test ebx, ebx
je 0x464fac
cmp ebx, 0x217
jne 0x464fe7
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x10]
push edi
push 0x464f40
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x10]
call eax
add esp, 0xc
test eax, eax
je 0x464fd4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push esi
call fcn.00464ed0
add esp, 8
test eax, eax
jne 0x464f70
call ebx
mov ebx, eax
push ebx
call fcn.004620e0
push eax
push str.Error_while_listening_to_named_pipe:__s
call fcn.0040dda0
mov ecx, dword [esi + 0x2c]
add esp, 0xc
mov edi, eax
mov esi, dword [ecx]
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0
push dword [ebx + 0xc]
call fcn.004634d0
add esp, 4
push eax
mov eax, dword [esi]
push 1
push dword [ebx + 0x2c]
call eax
push edi
call fcn.0040e430
add esp, 0x1c
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x465320
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x4e98f0], 0
jne 0x465412
push esi
push edi
push str.winspool.drv
call fcn.00462020
push str.spoolss.dll
mov esi, eax
call fcn.00462020
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 8
test esi, esi
je 0x46535c
push str.EnumPrintersA
push esi
call edi
jmp 0x46535e
xor eax, eax
mov dword [0x4e98d0], eax
test esi, esi
je 0x465371
push str.OpenPrinterA
push esi
call edi
jmp 0x465373
xor eax, eax
mov dword [0x4e98d4], eax
test esi, esi
je 0x465386
push str.ClosePrinter
push esi
call edi
jmp 0x465388
xor eax, eax
mov dword [0x4e98d8], eax
test esi, esi
je 0x46539b
push str.StartDocPrinterA
push esi
call edi
jmp 0x46539d
xor eax, eax
mov dword [0x4e98dc], eax
test esi, esi
je 0x4653b0
push str.EndDocPrinter
push esi
call edi
jmp 0x4653b2
xor eax, eax
mov dword [0x4e98e0], eax
test esi, esi
je 0x4653c5
push str.StartPagePrinter
push esi
call edi
jmp 0x4653c7
xor eax, eax
mov dword [0x4e98e4], eax
test esi, esi
je 0x4653da
push str.EndPagePrinter
push esi
call edi
jmp 0x4653dc
xor eax, eax
mov dword [0x4e98e8], eax
test esi, esi
je 0x4653ff
push str.WritePrinter
push esi
call edi
pop edi
mov dword [0x4e98ec], eax
mov dword [0x4e98f0], 1
pop esi
ret
xor eax, eax
mov dword [0x4e98f0], 1
pop edi
mov dword [0x4e98ec], eax
pop esi
ret
Function at 0x465b50
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x4e9900], 0
jne 0x465c7d
push esi
push str.advapi32.dll
mov dword [0x4e9900], 1
call fcn.00462020
add esp, 4
mov dword [0x4e9908], eax
test eax, eax
je 0x465c74
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetSecurityInfo
push eax
call esi
mov dword [0x4eacac], eax
test eax, eax
je 0x465c74
mov eax, dword [0x4e9908]
test eax, eax
je 0x465bb7
push str.SetSecurityInfo
push eax
call esi
mov ecx, eax
mov eax, dword [0x4e9908]
jmp 0x465bb9
xor ecx, ecx
mov dword [0x4eaca8], ecx
test ecx, ecx
je 0x465c74
test eax, eax
je 0x465bdc
push str.OpenProcessToken
push eax
call esi
mov ecx, eax
mov eax, dword [0x4e9908]
jmp 0x465bde
xor ecx, ecx
mov dword [0x4eacbc], ecx
test ecx, ecx
je 0x465c74
test eax, eax
je 0x465c01
push str.GetTokenInformation
push eax
call esi
mov ecx, eax
mov eax, dword [0x4e9908]
jmp 0x465c03
xor ecx, ecx
mov dword [0x4eacb8], ecx
test ecx, ecx
je 0x465c74
test eax, eax
je 0x465c22
push 0x4d6464
push eax
call esi
mov ecx, eax
mov eax, dword [0x4e9908]
jmp 0x465c24
xor ecx, ecx
mov dword [0x4eacb4], ecx
test ecx, ecx
je 0x465c74
test eax, eax
je 0x465c43
push 0x4d6484
push eax
call esi
mov ecx, eax
mov eax, dword [0x4e9908]
jmp 0x465c45
xor ecx, ecx
mov dword [0x4eacb0], ecx
test ecx, ecx
je 0x465c74
test eax, eax
je 0x465c5d
push str.SetEntriesInAclA
push eax
call esi
jmp 0x465c5f
xor eax, eax
mov dword [0x4eaca4], eax
test eax, eax
je 0x465c74
mov eax, 1
mov dword [0x4e9904], eax
pop esi
ret
xor eax, eax
mov dword [0x4e9904], eax
pop esi
ret
mov eax, dword [0x4e9904]
ret
Function at 0x466d80
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4e60ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0
call fcn.00466a50
add esp, 4
call fcn.00461330
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x110]
push eax
push str.SoftwareSimonTathamPuTTY
push 0x80000001
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x466ddd
push dword [ebp - 0x110]
call fcn.004675a0
add esp, 4
push dword [ebp - 0x110]
call ebx
lea eax, [ebp - 0x110]
push eax
push str.SoftwareSimonTatham
push 0x80000001
call edi
test eax, eax
jne 0x466e5f
push esi
push str.PuTTY
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x105
lea eax, [ebp - 0x10c]
push eax
push 0
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push dword [ebp - 0x110]
mov esi, eax
call ebx
test esi, esi
pop esi
je 0x466e5f
lea eax, [ebp - 0x110]
push eax
push str.Software
push 0x80000001
call edi
test eax, eax
jne 0x466e5f
push str.SimonTatham
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 0x110]
call ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0046aced
mov esp, ebp
pop ebp
ret

Function at 0x466e90
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push str.SoftwareSimonTathamPuTTYSessions
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x466efe
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x466eb6
sub eax, edx
push 1
lea eax, [eax + eax*2]
inc eax
push eax
call fcn.0040e450
mov esi, eax
push esi
push edi
call fcn.004670e0
add esp, 0x10
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push esi
call fcn.0040e430
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.004615b0
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x466f30
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
lea edi, [eax + eax*2]
push 1
push edi
call fcn.0040e450
mov esi, dword [ebp + 8]
add esp, 8
mov ebx, eax
mov edx, dword [esi + 4]
push edi
push ebx
push edx
push dword [esi]
lea ecx, [edx + 1]
mov dword [esi + 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x466f81
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push esi
push ebx
call fcn.00467a40
push ebx
call fcn.0040e430
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
push ebx
call fcn.0040e430
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4670e0
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dl, byte [edi]
test dl, dl
je 0x467165
push esi
mov esi, dword [ebp + 0xc]
mov al, dl
cmp al, 0x20
je 0x467129
cmp al, 0x5c
je 0x467129
cmp al, 0x2a
je 0x467129
cmp al, 0x3f
je 0x467129
cmp al, 0x25
je 0x467129
lea ecx, [eax - 0x20]
cmp cl, 0x5e
ja 0x467129
cmp al, 0x2e
jne 0x46711a
test ebx, ebx
je 0x467129
cmp al, 0x2e
movzx edx, dl
movzx ecx, al
cmovne edx, ecx
mov byte [esi], dl
jmp 0x46714e
mov byte [esi], 0x25
movzx eax, byte [edi]
shr eax, 4
movzx eax, byte [eax + str.0123456789ABCDEFUnable_to_create_registry_key_nHKEY_CURRENT_USER_s]
mov byte [esi + 1], al
add esi, 2
movzx eax, byte [edi]
and eax, 0xf
movzx eax, byte [eax + str.0123456789ABCDEFUnable_to_create_registry_key_nHKEY_CURRENT_USER_s]
mov byte [esi], al
mov dl, byte [edi + 1]
inc edi
inc esi
mov ebx, 1
mov al, dl
test dl, dl
jne 0x4670f6
mov byte [esi], dl
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0xc]
pop edi
mov byte [eax], bl
pop ebx
pop ebp
ret

Function at 0x467300
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x4e60ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 1
call fcn.00466a50
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x46738b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x408]
push 0
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call edi
test eax, eax
je 0x467383
nop dword [eax]
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x467383
push eax
lea eax, [ebp - 0x404]
push eax
call ebx
add esp, 8
lea eax, [ebp - 0x408]
push 0
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call edi
test eax, eax
jne 0x467350
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0046aced
mov esp, ebp
pop ebp
ret

Function at 0x467510
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x46758d
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46758d
cmp dword [ebp + 8], 1
jne 0x46758d
mov eax, dword [ebp - 4]
push esi
inc eax
push 1
push eax
call fcn.0040e450
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46757c
cmp dword [ebp + 8], 1
jne 0x46757c
mov eax, dword [ebp - 4]
mov byte [esi + eax], 0
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push esi
call fcn.0040e430
add esp, 4
xor eax, eax
pop esi
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4675a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4e60ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0x105
push eax
push 0
push esi
call edi
test eax, eax
jne 0x467633
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop word [eax + eax]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x46760f
push dword [ebp - 0x110]
call fcn.004675a0
add esp, 4
push dword [ebp - 0x110]
call ebx
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x105
lea eax, [ebp - 0x10c]
push eax
push 0
push esi
call edi
test eax, eax
je 0x4675e0
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0046aced
mov esp, ebp
pop ebp
ret

Function at 0x467670
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x467680
sub ecx, edx
mov edx, dword [ebp + 0x10]
lea esi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x467690
sub edx, esi
lea eax, [ecx + 5]
add eax, edx
push 1
lea eax, [eax + eax*2]
push eax
call fcn.0040e450
push dword [ebp + 0x10]
mov esi, eax
push dword [ebp + 0xc]
push edi
push esi
call fcn.00467060
add esp, 0x18
lea eax, [ebp - 4]
push eax
push str.SoftwareSimonTathamPuTTYSshHostKeys
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x467705
mov edx, dword [ebp + 0x14]
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4676e0
sub ecx, edi
lea eax, [ecx + 1]
push eax
push edx
push 1
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0040e430
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4679a0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4679ec
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4679df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4679df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004620e0
push eax
push dword [ebp + 8]
push str.Unable_to_delete__s:__s
call fcn.0045d4f0
add esp, 0x10
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xffffffff
xor eax, eax
pop ebp
ret
xor eax, eax
mov edx, 0x80
push 0
cmp ecx, 2
cmove eax, edx
push eax
xor eax, eax
cmp ecx, 2
setne al
xor edx, edx
add eax, 2
cmp ecx, 2
push eax
push 0
mov eax, 3
cmove eax, edx
mov edx, 0x40000000
push eax
mov eax, 0x80000000
cmove eax, edx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp + 0x10]
mov edx, eax
xor eax, eax
cmp edx, 0xffffffff
setne al
mov dword [ecx], edx
pop ebp
ret
Function at 0x467d90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
call fcn.00466a50
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x467dc0
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a08d2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a04b9

Function at 0x4a08dd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a0643

Function at 0x4aa88b
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004aa75f

Function at 0x4ad199
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004acb5b