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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x270
mov eax, dword [0x4b6074]
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.0047e5a0
add esp, 4
lea ebx, [esp + 0x12c]
mov byte [esp + eax + 0x27], 0
mov word [esp + eax + 0x25], 0x2a5c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4694df
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 0x4694c5
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.00469358
add esp, 8
test al, al
je 0x46951a
mov ebx, 0x20
push ebx
push esi
call edi
add esp, 8
push ebx
push esi
call fcn.00467158
add esp, 8
push edi
call fcn.0046bdcb
add esp, 4
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.0046ef41
add esp, 0x270
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x46958c
Capabilities:
Get memory capacity

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [0x4b6074]
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.0043f204
add esp, 0xc
call dword [sym.imp.USER32.dll_GetCapture]
mov dword [edi], eax
push esi
push edi
push 0xa
call fcn.0043f204
add esp, 0xc
call dword [sym.imp.USER32.dll_GetClipboardOwner]
mov dword [edi], eax
push esi
push edi
push 0xb
call fcn.0043f204
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.0043f204
add esp, 0xc
lea esi, [esp + 0x20]
push esi
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, 8
push eax
push esi
push 0xd
call fcn.0043f204
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.0043f204
add esp, 0xc
lea ebx, [esp + 0x48]
lea ebp, [esp + 0x40]
lea esi, [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea edi, [esp + 0x30]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
mov eax, 0x20
push eax
push edi
push 0xe
call fcn.0043f204
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov eax, 0x20
push eax
push edi
push 0xf
call fcn.0043f204
add esp, 0xc
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0046ef41
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x469750
Capabilities:
Compare security identifiers

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x4b6074]
mov esi, dword [esp + 0x20]
xor eax, esp
mov dword [esp + 8], eax
push 9
push str..pipe_
push esi
call fcn.0047e630
add esp, 0xc
test eax, eax
je 0x46978e
push 0x18
push str..._windows_winnpc.c
push str.strncmp_pipename___.pipe___9___0
call fcn.0047b26f
add esp, 0xc
lea eax, [esi + 9]
push 0x5c
push eax
call fcn.004721c0
add esp, 8
test eax, eax
je 0x4697b4
push 0x19
push str..._windows_winnpc.c
push str.strchr_pipename__9_____NULL
call fcn.0047b26f
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 0x469809
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x469853
push 0
mov esi, ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
jne 0x4697bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00466ca6
add esp, 4
push eax
push esi
push str.Error_waiting_for_named_pipe__s:__s
jmp 0x469869
mov esi, eax
call fcn.0046a527
test eax, eax
je 0x469877
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 [0x4ba2cc]
test eax, eax
je 0x469895
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00466ca6
add esp, 4
push eax
push str.Unable_to_get_named_pipe_security_information:__s
jmp 0x4698d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00466ca6
add esp, 4
push eax
push ebp
push str.Unable_to_open_named_pipe__s:__s
push dword [esp + 0x30]
call fcn.0040e468
add esp, 0x10
jmp 0x4698e3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00466ca6
add esp, 4
push eax
push str.Unable_to_get_user_SID:__s
jmp 0x4698d7
push edi
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4698c1
push dword [esp]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 1
push dword [esp + 0x28]
push 0
push esi
push esi
call fcn.00465d74
add esp, 0x14
jmp 0x4698e3
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.0040e468
add esp, 0xc
mov ecx, dword [esp + 8]
mov esi, eax
xor ecx, esp
call fcn.0046ef41
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4698fc
Capabilities:
Create pipe

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x4b6074]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
xor eax, esp
mov dword [esp + 0xc], eax
push 0x34
push 1
call fcn.00410d70
add esp, 8
mov esi, eax
mov dword [eax + 0x30], 0x497d3c
mov dword [eax + 0x28], edi
xor edi, edi
mov dword [eax + 0x2c], edi
mov dword [eax], edi
push ebx
call fcn.0045562a
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 4], edi
mov dword [esi + 0x24], edi
push 9
push str..pipe_
push ebx
call fcn.0047e630
add esp, 0xc
test eax, eax
je 0x469972
push 0xdc
push str..._windows_winnps.c
push str.strncmp_pipename___.pipe___9___0
call fcn.0047b26f
add esp, 0xc
mov eax, dword [esp + 0x24]
lea ebp, [esi + 0x2c]
lea ebx, [esi + 4]
lea eax, [eax + 9]
push 0x5c
push eax
call fcn.004721c0
add esp, 8
test eax, eax
je 0x4699a5
push 0xdd
push str..._windows_winnps.c
push str.strchr_pipename__9_____NULL
call fcn.0047b26f
add esp, 0xc
mov edi, esi
add edi, 0x30
push ebp
push ebx
push esi
push 0xc0000000
call fcn.0046a797
add esp, 0x10
test al, al
je 0x469a5c
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 0x469a38
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 0x469a71
push eax
call fcn.00465513
add esp, 0xc
xor edx, edx
mov ecx, esi
mov dword [esi + 0x24], eax
call fcn.00469a7d
jmp 0x469a5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00466ca6
add esp, 4
push eax
push dword [esp + 0x28]
push str.unable_to_create_named_pipe__s:__s
call fcn.004555e0
add esp, 0xc
mov dword [ebp], eax
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0046ef41
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x469a7d
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x4b6074]
mov esi, ecx
mov ebx, edx
mov ebp, 0x1000
lea ecx, [ecx + 0x10]
xor eax, esp
mov dword [esp + 0x10], eax
mov dword [esp], ecx
test bl, 1
jne 0x469acb
push dword [esp]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x469acd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x469acd
mov edi, eax
cmp eax, 0x217
je 0x469acd
jmp 0x469b90
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 0x469c1b
push eax
call dword [ecx + 0x10]
add esp, 0xc
test eax, eax
je 0x469af5
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 0x469a9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
call fcn.00466ca6
add esp, 4
push eax
push str.Error_while_listening_to_named_pipe:__s
call fcn.004555e0
add esp, 8
mov ebx, eax
push dword [esi + 8]
call fcn.00467ccf
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.00410de6
add esp, 4
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0046ef41
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
cmp edi, 0x3e5
jne 0x469b3e
jmp 0x469b7d

Function at 0x46a059
Capabilities:
Link many functions at runtime

Disassembly:
cmp byte [0x4ba2b4], 0
jne 0x46a126
push edi
push esi
push str.winspool.drv
call fcn.00466b09
add esp, 4
mov esi, eax
push str.spoolss.dll
call fcn.00466b09
add esp, 4
test esi, esi
je 0x46a0f3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumPrintersA
push esi
call edi
mov dword [0x4ba2b0], eax
push str.OpenPrinterA
push esi
call edi
mov dword [0x4ba294], eax
push str.ClosePrinter
push esi
call edi
mov dword [0x4ba2a8], eax
push str.StartDocPrinterA
push esi
call edi
mov dword [0x4ba298], eax
push str.EndDocPrinter
push esi
call edi
mov dword [0x4ba2a4], eax
push str.StartPagePrinter
push esi
call edi
mov dword [0x4ba29c], eax
push str.EndPagePrinter
push esi
call edi
mov dword [0x4ba2a0], eax
push str.WritePrinter
push esi
call edi
jmp 0x46a118
xor eax, eax
mov dword [0x4ba2b0], eax
mov dword [0x4ba294], eax
mov dword [0x4ba2a8], eax
mov dword [0x4ba298], eax
mov dword [0x4ba2a4], eax
mov dword [0x4ba29c], eax
mov dword [0x4ba2a0], eax
mov dword [0x4ba2ac], eax
mov byte [0x4ba2b4], 1
pop esi
pop edi
ret
Function at 0x46a3c8
Capabilities:
Link many functions at runtime

Disassembly:
cmp byte [0x4ba2b8], 1
jne 0x46a3d7
mov al, byte [0x4ba2b9]
ret
mov byte [0x4ba2b8], 1
push str.advapi32.dll
call fcn.00466b09
add esp, 4
test eax, eax
mov dword [0x4ba2bc], eax
je 0x46a51f
push str.GetSecurityInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x4ba2cc], eax
je 0x46a51f
mov eax, dword [0x4ba2bc]
test eax, eax
je 0x46a4e5
push str.SetSecurityInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x4ba2d0], eax
je 0x46a51f
mov eax, dword [0x4ba2bc]
test eax, eax
je 0x46a4f1
push str.OpenProcessToken
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x4ba2d4], eax
je 0x46a51f
mov eax, dword [0x4ba2bc]
test eax, eax
je 0x46a4fd
push str.GetTokenInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x4ba2d8], eax
je 0x46a51f
mov eax, dword [0x4ba2bc]
test eax, eax
je 0x46a509
push 0x4a06c7
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x4ba2dc], eax
je 0x46a51f
mov eax, dword [0x4ba2bc]
test eax, eax
je 0x46a515
push 0x4a0a6c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x4ba2e0], eax
xor eax, eax
test ecx, ecx
je 0x46a521
mov ecx, dword [0x4ba2bc]
test ecx, ecx
je 0x46a4d9
push str.SetEntriesInAclA
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x4ba2e4], eax
setne al
jmp 0x46a521
mov dword [0x4ba2d0], 0
jmp 0x46a51f
mov dword [0x4ba2d4], 0
jmp 0x46a51f
mov dword [0x4ba2d8], 0
jmp 0x46a51f
mov dword [0x4ba2dc], 0
jmp 0x46a51f
mov dword [0x4ba2e0], 0
xor eax, eax
mov byte [0x4ba2b9], al
ret
Function at 0x46b43e
Capabilities:
Set registry value

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

Function at 0x46b56d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x4b6074]
mov ebx, dword [esp + 0x20]
xor eax, esp
test ebx, ebx
mov dword [esp + 8], eax
je 0x46b60c
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 0x46b619
cmp dword [esp + 4], 1
jne 0x46b619
mov ebp, dword [esp]
inc ebp
xor eax, eax
inc eax
push eax
push ebp
call fcn.00410d70
add esp, 8
mov ecx, edi
mov edi, eax
mov eax, esp
push eax
push edi
lea eax, [esp + 0xc]
push eax
push 0
push ecx
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46b610
cmp dword [esp + 4], 1
jne 0x46b610
mov eax, dword [esp]
cmp eax, ebp
jb 0x46b604
push 0x92
push str..._windows_winstore.c
push str.size___allocsize
call fcn.0047b26f
add esp, 0xc
mov eax, dword [esp]
mov esi, edi
mov byte [edi + eax], 0
jmp 0x46b619
xor esi, esi
jmp 0x46b619
push edi
call fcn.00410de6
add esp, 4
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0046ef41
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x46b62e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push edi
push esi
sub esp, 0x10
mov ecx, dword [0x4b6074]
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 0x46b682
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 ecx, dword [edi]
mov edx, dword [ebx]
xor ecx, 4
xor edx, 4
or ecx, eax
or ecx, edx
jne 0x46b682
mov esi, dword [esp + 4]
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0046ef41
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
ret
Function at 0x46b791
Capabilities:
Set registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x4b6074]
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.0046b43e
add esp, 0xc
xor ebx, ebx
push ebx
push str.IsBold
push esi
call fcn.00455660
add esp, 0xc
movzx ecx, byte [ebp + 4]
mov esi, eax
test edi, edi
mov dword [esp], ecx
je 0x46b7ef
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.00410de6
add esp, 4
push ebx
push str.CharSet
mov ebp, dword [esp + 0x28]
push ebp
call fcn.00455660
add esp, 0xc
mov ebx, dword [esp + 0x24]
mov esi, eax
test edi, edi
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
je 0x46b830
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.00410de6
add esp, 4
xor eax, eax
push eax
push 0x49e1ef
push ebp
call fcn.00455660
add esp, 0xc
mov ecx, dword [ebx + 8]
mov esi, eax
test edi, edi
mov dword [esp], ecx
je 0x46b86b
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.00410de6
add esp, 4
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0046ef41
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x46b8e9
Capabilities:
Delete registry key

Disassembly:
push edi
push esi
sub esp, 8
mov eax, dword [0x4b6074]
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 0x46b94c
mov edi, dword [esp + 0x14]
call fcn.0045587e
mov esi, eax
push eax
push edi
call fcn.00466f5b
add esp, 8
push dword [esi]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push esi
call fcn.004558de
add esp, 4
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.004665ec
add esp, 4
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0046ef41
add esp, 8
pop esi
pop edi
ret
Function at 0x46b9b5
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x4b6074]
mov ebx, dword [esp + 0x1c]
mov ebp, 0x100
xor eax, esp
mov dword [esp + 4], eax
mov dword [esp], ebp
push 1
push ebp
call fcn.00410d70
add esp, 8
mov ecx, dword [ebx + 4]
mov esi, eax
mov eax, dword [ebx]
lea edx, [ecx + 1]
mov dword [ebx + 4], edx
push ebp
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0xea
je 0x46ba01
jmp 0x46ba38
mov ebp, dword [esp]
push 0
xor eax, eax
inc eax
push eax
push ebp
push eax
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00410df3
add esp, 0x18
mov edx, dword [ebx + 4]
mov esi, eax
mov eax, dword [esp]
mov ecx, dword [ebx]
lea edi, [edx + 1]
mov dword [ebx + 4], edi
push eax
push esi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0xea
je 0x46b9fe
mov edi, eax
test eax, eax
jne 0x46ba4b
push dword [esp + 0x20]
push esi
call fcn.00466fea
add esp, 8
test edi, edi
sete bl
push esi
call fcn.00410de6
add esp, 4
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0046ef41
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x46bd2e
Capabilities:
Set registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x4b6074]
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.0045587e
mov esi, eax
push ebp
push ebx
push str._s__d:
push eax
call fcn.0045595e
add esp, 0x10
push esi
push edi
call fcn.00466f5b
add esp, 8
mov eax, esp
push eax
push str.SoftwareSimonTathamPuTTYSshHostKeys
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x46bdaf
mov edi, dword [esp + 0x28]
push edi
call fcn.0047e5a0
add esp, 4
inc eax
xor ecx, ecx
inc ecx
push eax
push edi
push ecx
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.004558de
add esp, 4
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0046ef41
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x46bdcb
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x408
mov eax, dword [0x4b6074]
xor eax, esp
xor ecx, ecx
inc ecx
mov dword [esp + 0x404], eax
call fcn.0046be62
cmp eax, 0xffffffff
je 0x46be49
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 0x46be42
mov eax, dword [esp]
test eax, eax
je 0x46be42
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 0x46be42
mov eax, dword [esp]
test eax, eax
jne 0x46be20
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.0046ef41
add esp, 0x408
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x46c0b6
Capabilities:
Write file on windows

Disassembly:
push esi
sub esp, 8
mov eax, dword [0x4b6074]
mov ecx, 2
xor eax, esp
mov dword [esp + 4], eax
call fcn.0046be62
cmp eax, 0xffffffff
je 0x46c0f1
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.0046ef41
add esp, 8
pop esi
ret
Function at 0x46c3da
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push edi
push esi
sub esp, 0x110
mov eax, dword [0x4b6074]
xor ecx, ecx
xor eax, esp
mov dword [esp + 0x10c], eax
call fcn.0046be62
call fcn.004661fc
mov edi, esp
push edi
push str.SoftwareSimonTathamPuTTY
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x46c424
mov ecx, dword [esp]
call fcn.0046c4b3
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 0x46c450
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0046ef41
add esp, 0x110
pop esi
pop edi
ret
push 0x4a6215
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 0x46c439
push edi
push str.Software
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x46c439
push 0x4a2063
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46c439

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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x110
mov eax, dword [0x4b6074]
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 0x46c523
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 0x46c510
mov ecx, dword [esp]
call fcn.0046c4b3
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 0x46c4f0
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0046ef41
add esp, 0x110
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x46c53c
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 0x46c588
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 0x46c5c4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x46c5bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x46c5bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00466ca6
add esp, 4
push eax
push esi
push str.Unable_to_delete__s:__s
call fcn.00460c1c
add esp, 0xc
mov dword [edi], 0xffffffff
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret