joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469630
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x270
mov eax, dword [0x4b507c]
mov edi, dword [esp + 0x284]
lea esi, [esp + 0x25]
xor eax, esp
mov dword [esp + 0x26c], eax
push 0x107
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call fcn.0047e720
add esp, 4
lea ebx, [esp + 0x12c]
mov word [esp + eax + 0x25], 0x2a5c
mov byte [esp + eax + 0x27], 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4696aa
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, eax
push 0x140
push ebx
call edi
add esp, 8
push ebx
push esi
call ebp
test eax, eax
jne 0x469690
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, esp
mov dword [ecx], eax
push 4
push ecx
call edi
add esp, 8
lea esi, [esp + 5]
push 0x20
push esi
call fcn.00469524
add esp, 8
test al, al
je 0x4696e5
mov ebx, 0x20
push ebx
push esi
call edi
add esp, 8
push ebx
push esi
call fcn.00467374
add esp, 8
push edi
call fcn.0046bf1f
add esp, 4
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.0046f0c8
add esp, 0x270
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x469707
Capabilities:
Get memory capacity

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [0x4b507c]
xor eax, esp
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edi, [esp + 0x2c]
mov esi, 4
mov dword [edi], eax
push esi
push edi
push 9
call fcn.0043ea34
add esp, 0xc
call dword [sym.imp.USER32.dll_GetCapture]
mov dword [edi], eax
push esi
push edi
push 0xa
call fcn.0043ea34
add esp, 0xc
call dword [sym.imp.USER32.dll_GetClipboardOwner]
mov dword [edi], eax
push esi
push edi
push 0xb
call fcn.0043ea34
add esp, 0xc
push 0x1cbf
call dword [sym.imp.USER32.dll_GetQueueStatus]
lea ecx, [esp + 0x28]
mov dword [ecx], eax
push esi
push ecx
push 0xc
call fcn.0043ea34
add esp, 0xc
lea edi, [esp + 0x20]
push edi
call dword [sym.imp.USER32.dll_GetCursorPos]
mov esi, 8
push esi
push edi
push 0xd
call fcn.0043ea34
add esp, 0xc
mov edi, esp
push edi
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, 0x20
push eax
push edi
push 6
call fcn.0043ea34
add esp, 0xc
lea ebx, [esp + 0x30]
lea edi, [esp + 0x48]
lea ebp, [esp + 0x40]
add esi, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push edi
push ebp
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
mov eax, 0x20
push eax
push ebx
push 0xe
call fcn.0043ea34
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
push ebp
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov eax, 0x20
push eax
push ebx
push 0xf
call fcn.0043ea34
add esp, 0xc
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0046f0c8
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4698c8
Capabilities:
Compare security identifiers

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x4b507c]
mov esi, dword [esp + 0x20]
xor eax, esp
mov dword [esp + 8], eax
push 9
push str..pipe_
push esi
call fcn.0047e7b0
add esp, 0xc
test eax, eax
je 0x469906
push 0x18
push str..._windows_winnpc.c
push str.strncmp_pipename___.pipe___9___0
call fcn.0047b3ef
add esp, 0xc
lea eax, [esi + 9]
push 0x5c
push eax
call fcn.00472340
add esp, 8
test eax, eax
je 0x46992c
push 0x19
push str..._windows_winnpc.c
push str.strchr_pipename__9_____NULL
call fcn.0047b3ef
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor edi, edi
push edi
push 0x40000000
push 3
push edi
push edi
push 0xc0000000
mov ebp, esi
push esi
call ebx
cmp eax, 0xffffffff
jne 0x469981
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x4699cb
push 0
mov esi, ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
jne 0x469934
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00466ec1
add esp, 4
push eax
push esi
push str.Error_waiting_for_named_pipe__s:__s
jmp 0x4699e1
mov esi, eax
call fcn.0046a6a3
test eax, eax
je 0x4699ef
mov edi, eax
mov eax, esp
xor ecx, ecx
lea edx, [esp + 4]
push eax
push ecx
push ecx
push ecx
push edx
push 1
push 6
push esi
call dword [0x4b92cc]
test eax, eax
je 0x469a0d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00466ec1
add esp, 4
push eax
push str.Unable_to_get_named_pipe_security_information:__s
jmp 0x469a4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00466ec1
add esp, 4
push eax
push ebp
push str.Unable_to_open_named_pipe__s:__s
push dword [esp + 0x30]
call fcn.0040e52c
add esp, 0x10
jmp 0x469a5b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00466ec1
add esp, 4
push eax
push str.Unable_to_get_user_SID:__s
jmp 0x469a4f
push edi
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x469a39
push dword [esp]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 1
push dword [esp + 0x28]
push 0
push esi
push esi
call fcn.00465f74
add esp, 0x14
jmp 0x469a5b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
push str.Owner_of_named_pipe__s_is_not_us
push dword [esp + 0x2c]
call fcn.0040e52c
add esp, 0xc
mov ecx, dword [esp + 8]
mov esi, eax
xor ecx, esp
call fcn.0046f0c8
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x469a74
Capabilities:
Create pipe

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x4b507c]
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
xor ebx, ebx
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push 0x34
push 1
call fcn.00410b50
add esp, 0xc
mov esi, eax
mov dword [eax + 0x30], 0x497d0c
mov dword [eax + 0x28], edi
mov dword [eax + 0x2c], ebx
mov dword [eax], ebx
push ebp
call fcn.00455915
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 4], ebx
mov dword [esi + 0x24], ebx
push 9
push str..pipe_
push ebp
call fcn.0047e7b0
add esp, 0xc
test eax, eax
je 0x469aeb
push 0xdb
push str..._windows_winnps.c
push str.strncmp_pipename___.pipe___9___0
call fcn.0047b3ef
add esp, 0xc
mov eax, dword [esp + 0x24]
lea ebp, [esi + 0x2c]
lea ebx, [esi + 4]
add eax, 9
push 0x5c
push eax
call fcn.00472340
add esp, 8
test eax, eax
je 0x469b1e
push 0xdc
push str..._windows_winnps.c
push str.strchr_pipename__9_____NULL
call fcn.0047b3ef
add esp, 0xc
mov edi, esi
add edi, 0x30
push ebp
push ebx
push esi
push 0xc0000000
call fcn.0046a8f6
add esp, 0x10
test al, al
je 0x469bd5
mov eax, esp
xor ebx, ebx
mov edx, 8
mov dword [eax], 0xc
mov ecx, dword [esi]
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov ecx, 0x1000
push eax
push ebx
push ecx
push ecx
push 0xff
push edx
push 0x40080003
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
je 0x469bb1
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x20], eax
push esi
push 0x469bea
push eax
call fcn.00465773
add esp, 0xc
mov ecx, esi
xor edx, edx
mov dword [esi + 0x24], eax
call fcn.00469bf6
jmp 0x469bd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00466ec1
add esp, 4
push eax
push dword [esp + 0x28]
push str.unable_to_create_named_pipe__s:__s
call fcn.004558cb
add esp, 0xc
mov dword [ebp], eax
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0046f0c8
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x469bf6
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x4b507c]
mov esi, ecx
mov ebx, edx
mov ebp, 0x1000
add ecx, 0x10
xor eax, esp
mov dword [esp + 0x10], eax
mov dword [esp], ecx
test bl, 1
jne 0x469c44
push dword [esp]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x469c46
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x469c46
mov edi, eax
cmp eax, 0x217
je 0x469c46
jmp 0x469d09
xor ebx, ebx
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 0x28]
mov dword [esp + 4], edi
mov edx, dword [esp + 4]
mov ecx, dword [eax]
push edx
push 0x469d94
push eax
call dword [ecx + 0x10]
add esp, 0xc
test eax, eax
je 0x469c6e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 4], 0xc
lea ecx, [esp + 4]
mov eax, dword [esi]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0xc], eax
push ecx
push eax
push ebp
push ebp
push 0xff
mov eax, 8
push eax
push 0x40000003
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x469c17
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
call fcn.00466ec1
add esp, 4
push eax
push str.Error_while_listening_to_named_pipe:__s
call fcn.004558cb
add esp, 8
mov ebx, eax
push dword [esi + 8]
call fcn.00467eb5
add esp, 4
mov ecx, dword [esi + 0x28]
mov edx, dword [ecx]
push edi
push ebx
push 0
push eax
push 1
push ecx
call dword [edx]
add esp, 0x18
push ebx
call fcn.00410bcd
add esp, 4
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0046f0c8
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
cmp edi, 0x3e5
jne 0x469cb7
jmp 0x469cf6

Function at 0x46a1d6
Capabilities:
Link many functions at runtime

Disassembly:
push edi
push esi
cmp byte [0x4b92b4], 0
jne 0x46a2a1
push str.winspool.drv
call fcn.00466d24
add esp, 4
mov esi, eax
push str.spoolss.dll
call fcn.00466d24
add esp, 4
test esi, esi
je 0x46a270
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumPrintersA
push esi
call edi
mov dword [0x4b92b0], eax
push str.OpenPrinterA
push esi
call edi
mov dword [0x4b9294], eax
push str.ClosePrinter
push esi
call edi
mov dword [0x4b92a8], eax
push str.StartDocPrinterA
push esi
call edi
mov dword [0x4b9298], eax
push str.EndDocPrinter
push esi
call edi
mov dword [0x4b92a4], eax
push str.StartPagePrinter
push esi
call edi
mov dword [0x4b929c], eax
push str.EndPagePrinter
push esi
call edi
mov dword [0x4b92a0], eax
push str.WritePrinter
push esi
call edi
jmp 0x46a295
xor eax, eax
mov dword [0x4b92b0], eax
mov dword [0x4b9294], eax
mov dword [0x4b92a8], eax
mov dword [0x4b9298], eax
mov dword [0x4b92a4], eax
mov dword [0x4b929c], eax
mov dword [0x4b92a0], eax
mov dword [0x4b92ac], eax
mov byte [0x4b92b4], 1
pop esi
pop edi
ret
Function at 0x46a544
Capabilities:
Link many functions at runtime

Disassembly:
cmp byte [0x4b92b8], 1
jne 0x46a553
mov al, byte [0x4b92b9]
ret
mov byte [0x4b92b8], 1
push str.advapi32.dll
call fcn.00466d24
add esp, 4
test eax, eax
mov dword [0x4b92bc], eax
je 0x46a69b
push str.GetSecurityInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x4b92cc], eax
je 0x46a69b
mov eax, dword [0x4b92bc]
test eax, eax
je 0x46a661
push str.SetSecurityInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x4b92d0], eax
je 0x46a69b
mov eax, dword [0x4b92bc]
test eax, eax
je 0x46a66d
push str.OpenProcessToken
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x4b92d4], eax
je 0x46a69b
mov eax, dword [0x4b92bc]
test eax, eax
je 0x46a679
push str.GetTokenInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x4b92d8], eax
je 0x46a69b
mov eax, dword [0x4b92bc]
test eax, eax
je 0x46a685
push 0x4a03e6
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x4b92dc], eax
je 0x46a69b
mov eax, dword [0x4b92bc]
test eax, eax
je 0x46a691
push 0x4a0741
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x4b92e0], eax
xor eax, eax
test ecx, ecx
je 0x46a69d
mov ecx, dword [0x4b92bc]
test ecx, ecx
je 0x46a655
push str.SetEntriesInAclA
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x4b92e4], eax
setne al
jmp 0x46a69d
mov dword [0x4b92d0], 0
jmp 0x46a69b
mov dword [0x4b92d4], 0
jmp 0x46a69b
mov dword [0x4b92d8], 0
jmp 0x46a69b
mov dword [0x4b92dc], 0
jmp 0x46a69b
mov dword [0x4b92e0], 0
xor eax, eax
mov byte [0x4b92b9], al
ret
Function at 0x46b594
Capabilities:
Set registry value

Disassembly:
push ebx
push edi
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x46b5c0
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
push edi
call fcn.0047e720
add esp, 4
inc eax
push eax
push edi
push 1
push 0
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
pop edi
pop ebx
ret

Function at 0x46b6c3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x4b507c]
mov ebx, dword [esp + 0x20]
xor eax, esp
test ebx, ebx
mov dword [esp + 8], eax
je 0x46b762
mov edi, dword [esp + 0x24]
mov eax, esp
xor esi, esi
lea ecx, [esp + 4]
push eax
push esi
push ecx
push esi
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46b76f
cmp dword [esp + 4], 1
jne 0x46b76f
mov ebp, dword [esp]
xor esi, esi
inc ebp
push esi
push 1
push ebp
call fcn.00410b50
add esp, 0xc
mov ecx, edi
mov edi, eax
mov eax, esp
push eax
push edi
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46b766
cmp dword [esp + 4], 1
jne 0x46b766
mov eax, dword [esp]
cmp eax, ebp
jb 0x46b75a
push 0x92
push str..._windows_winstore.c
push str.size___allocsize
call fcn.0047b3ef
add esp, 0xc
mov eax, dword [esp]
mov esi, edi
mov byte [edi + eax], 0
jmp 0x46b76f
xor esi, esi
jmp 0x46b76f
push edi
call fcn.00410bcd
add esp, 4
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0046f0c8
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x46b784
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push edi
push esi
sub esp, 0x10
mov ecx, dword [0x4b507c]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
xor ecx, esp
test eax, eax
mov dword [esp + 0xc], ecx
mov dword [esp], 4
je 0x46b7d9
mov edi, esp
lea ecx, [esp + 4]
lea ebx, [esp + 8]
push edi
push ecx
push ebx
push 0
push dword [esp + 0x34]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [edi]
mov ecx, 4
xor edx, ecx
xor ecx, dword [ebx]
or edx, eax
or edx, ecx
jne 0x46b7d9
mov esi, dword [esp + 4]
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0046f0c8
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
ret
Function at 0x46b8f2
Capabilities:
Set registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x4b507c]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
xor eax, esp
mov dword [esp + 4], eax
push dword [ebp]
push esi
push edi
call fcn.0046b594
add esp, 0xc
xor ebx, ebx
push ebx
push str.IsBold
push esi
call fcn.0045594b
add esp, 0xc
movzx ecx, byte [ebp + 4]
mov esi, eax
test edi, edi
mov dword [esp], ecx
je 0x46b950
mov eax, 4
mov ecx, esp
push eax
push ecx
push eax
push 0
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call fcn.00410bcd
add esp, 4
push ebx
push str.CharSet
mov ebp, dword [esp + 0x28]
push ebp
call fcn.0045594b
add esp, 0xc
mov ebx, dword [esp + 0x24]
mov esi, eax
test edi, edi
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
je 0x46b991
mov eax, 4
mov ecx, esp
push eax
push ecx
push eax
push 0
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call fcn.00410bcd
add esp, 4
xor eax, eax
push eax
push 0x49e04f
push ebp
call fcn.0045594b
add esp, 0xc
mov ecx, dword [ebx + 8]
mov esi, eax
test edi, edi
mov dword [esp], ecx
je 0x46b9cc
mov eax, 4
mov ecx, esp
push eax
push ecx
push eax
push 0
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call fcn.00410bcd
add esp, 4
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0046f0c8
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x46ba4a
Capabilities:
Delete registry key

Disassembly:
push edi
push esi
sub esp, 8
mov eax, dword [0x4b507c]
xor eax, esp
mov dword [esp + 4], eax
mov eax, esp
push eax
push str.SoftwareSimonTathamPuTTYSessions
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x46baad
mov edi, dword [esp + 0x14]
call fcn.00455bd0
mov esi, eax
push eax
push edi
call fcn.00467178
add esp, 8
push dword [esi]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push esi
call fcn.00455c30
add esp, 4
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.004667fe
add esp, 4
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0046f0c8
add esp, 8
pop esi
pop edi
ret
Function at 0x46bb18
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x4b507c]
mov edi, dword [esp + 0x1c]
mov ebx, 0x105
xor eax, esp
mov dword [esp + 4], eax
mov dword [esp], ebx
push 0
push 1
push ebx
call fcn.00410b50
add esp, 0xc
mov esi, eax
push ebx
push eax
push dword [edi + 4]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0xea
jne 0x46bb90
xor ebp, ebp
inc ebp
push 0
push ebp
push ebx
push ebp
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00410bd9
add esp, 0x18
mov esi, eax
push dword [esp]
push eax
mov eax, dword [esp + 0x24]
push dword [eax + 4]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0xea
jne 0x46bb90
mov ebx, dword [esp]
jmp 0x46bb5c
mov edi, eax
test eax, eax
jne 0x46bba3
push dword [esp + 0x20]
push esi
call fcn.00467201
add esp, 8
mov eax, dword [esp + 0x1c]
test edi, edi
sete bl
inc dword [eax + 4]
push esi
call fcn.00410bcd
add esp, 4
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0046f0c8
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x46be84
Capabilities:
Set registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x4b507c]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
xor eax, esp
mov dword [esp + 4], eax
call fcn.00455bd0
mov esi, eax
push ebp
push ebx
push str._s__d:
push eax
call fcn.00455cb0
add esp, 0x10
push esi
push edi
call fcn.00467178
add esp, 8
mov eax, esp
push eax
push str.SoftwareSimonTathamPuTTYSshHostKeys
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x46bf03
mov edi, dword [esp + 0x28]
push edi
call fcn.0047e720
add esp, 4
inc eax
push eax
push edi
push 1
push 0
push dword [esi]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00455c30
add esp, 4
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0046f0c8
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x46bf1f
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x408
mov eax, dword [0x4b507c]
xor eax, esp
xor ecx, ecx
inc ecx
mov dword [esp + 0x404], eax
call fcn.0046bfb6
cmp eax, 0xffffffff
je 0x46bf9d
mov esi, eax
lea ebx, [esp + 4]
mov eax, esp
push 0
push eax
push 0x400
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46bf96
mov eax, dword [esp]
test eax, eax
je 0x46bf96
mov ebp, dword [esp + 0x41c]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
push ebx
call ebp
add esp, 8
push 0
lea eax, [esp + 4]
push eax
push 0x400
push ebx
push esi
call edi
test eax, eax
je 0x46bf96
mov eax, dword [esp]
test eax, eax
jne 0x46bf74
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.0046f0c8
add esp, 0x408
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x46c226
Capabilities:
Write file on windows

Disassembly:
push esi
sub esp, 8
mov eax, dword [0x4b507c]
mov ecx, 2
xor eax, esp
mov dword [esp + 4], eax
call fcn.0046bfb6
cmp eax, 0xffffffff
je 0x46c261
mov esi, eax
mov eax, esp
push 0
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0046f0c8
add esp, 8
pop esi
ret
Function at 0x46c558
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push edi
push esi
sub esp, 0x110
mov eax, dword [0x4b507c]
xor ecx, ecx
xor eax, esp
mov dword [esp + 0x10c], eax
call fcn.0046bfb6
call fcn.00466404
mov edi, esp
push edi
push str.SoftwareSimonTathamPuTTY
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x46c5a2
mov ecx, dword [esp]
call fcn.0046c631
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push str.SoftwareSimonTatham
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x46c5ce
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0046f0c8
add esp, 0x110
pop esi
pop edi
ret
push 0x4a597c
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [esp + 7]
push 0x105
push eax
push 0
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x46c5b7
push edi
push str.Software
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x46c5b7
push 0x4a1c2a
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46c5b7

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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x110
mov eax, dword [0x4b507c]
mov esi, ecx
lea edi, [esp + 7]
xor eax, esp
mov dword [esp + 0x10c], eax
push 0x105
push edi
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x46c6a1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov eax, esp
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x46c68e
mov ecx, dword [esp]
call fcn.0046c631
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push esi
call ebx
push 0x105
push edi
push 0
push esi
call ebp
test eax, eax
je 0x46c66e
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0046f0c8
add esp, 0x110
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x46c6ba
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
push ebx
push edi
push esi
mov edi, dword [esp + 0x14]
mov esi, ecx
test edx, edx
je 0x46c706
xor ecx, ecx
xor eax, eax
cmp edx, 2
mov edx, 0x40000000
mov ebx, 0x80000000
sete al
setne cl
cmove ebx, edx
xor ebp, ebp
mov edx, eax
xor eax, 3
lea ecx, [ecx + ecx*2]
shl edx, 7
push ebp
push edx
push eax
push ebp
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
setne al
jmp 0x46c742
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x46c73a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x46c73a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00466ec1
add esp, 4
push eax
push esi
push str.Unable_to_delete__s:__s
call fcn.00460f2d
add esp, 0xc
mov dword [edi], 0xffffffff
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret