joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458700
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x4fc040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 1
call fcn.004584b0
mov esi, eax
cmp esi, 0xffffffff
je 0x45878d
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x40c]
push 0
push eax
push 0x400
lea eax, [ebp - 0x408]
push eax
push esi
call edi
test eax, eax
je 0x458786
nop dword [eax + eax]
mov eax, dword [ebp - 0x40c]
test eax, eax
je 0x458786
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.0042a160
add esp, 8
lea eax, [ebp - 0x40c]
push 0
push eax
push 0x400
lea eax, [ebp - 0x408]
push eax
push esi
call edi
test eax, eax
jne 0x458750
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00495b16
mov esp, ebp
pop ebp
ret

Function at 0x4587a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
mov ecx, 2
push edi
mov edi, edx
call fcn.004584b0
mov esi, eax
cmp esi, 0xffffffff
je 0x4587d2
push 0
lea eax, [ebp - 4]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45d090
Capabilities:
Create pipe
Create process on windows
Create reverse shell

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x24]
push edi
push 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0x24], 0xc
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x20], 0
push eax
mov ebx, edx
mov dword [ebp - 0x1c], 1
mov edi, ecx
call esi
test eax, eax
je 0x45d0f3
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call esi
test eax, eax
jne 0x45d115
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 4]
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0048fb60
push eax
push str.Unable_to_create_pipes_for_proxy_command:__s
call fcn.00490340
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call esi
test eax, eax
jne 0x45d143
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp - 0xc]
jmp 0x45d0f1
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
push 1
push dword [ebp - 0x10]
call esi
push 0
push 1
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x45d169
push 0
push 1
push eax
call esi
xor eax, eax
mov dword [ebp - 0x80], 0x44
mov word [ebp - 0x4e], ax
mov ecx, ebx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x54], pe_nt_image_headers32
mov dword [ebp - 0x40], eax
call fcn.004919e0
mov esi, eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push 0
push 0x8000020
push 1
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, esi
call fcn.00490070
push dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x30]
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x45d1fb
push eax
call esi
mov edx, dword [ebp - 0x10]
push ecx
push dword [ebp - 0x18]
mov ecx, edi
push dword [ebp - 8]
call fcn.00461220
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45d3a0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov dword [ebp - 0xc], 0xc
test dl, dl
mov dword [ebp - 4], 0
mov ecx, 0x40080003
mov eax, dword [esi]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1000
push 0x1000
push 0xff
push 8
mov eax, 0x40000003
cmovne eax, ecx
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
pop esi
setne al
mov esp, ebp
pop ebp
ret
Function at 0x45d420
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov al, dl
mov ebx, ecx
push edi
mov byte [ebp - 1], al
nop
test al, al
je 0x45d43a
mov byte [ebp - 1], 0
jmp 0x45d467
lea eax, [ebx + 0x10]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x45d467
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
je 0x45d4da
test edi, edi
je 0x45d467
cmp edi, 0x217
jne 0x45d4a3
mov eax, dword [ebx + 0x28]
mov edi, dword [ebx + 0xc]
push edi
push 0x45d400
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x10]
call eax
add esp, 0xc
test eax, eax
je 0x45d489
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor dl, dl
mov ecx, ebx
call fcn.0045d3a0
test al, al
je 0x45d49b
mov al, byte [ebp - 1]
jmp 0x45d430
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, edi
call fcn.0048fb60
push eax
push str.Error_while_listening_to_named_pipe:__s
call fcn.00490340
mov ecx, dword [ebx + 8]
mov esi, eax
call fcn.0045a190
mov ecx, dword [ebx + 0x28]
push edi
push esi
push 0
mov edx, dword [ecx]
push eax
push 1
push ecx
mov eax, dword [edx]
call eax
add esp, 0x20
mov ecx, esi
call fcn.00490070
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45d660
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 9
mov esi, ecx
mov dword [ebp - 4], edx
push str..pipe_
push esi
call fcn.004a5c70
add esp, 0xc
test eax, eax
je 0x45d696
push 0x16
push str.C:Usersomahr_source_reposputty_caccodewindows_named_pipe_client.c
push str.strncmp_pipename___.pipe___9___0
call fcn.004a3dca
add esp, 0xc
lea eax, [esi + 9]
push 0x5c
push eax
call fcn.00496d20
add esp, 8
test eax, eax
je 0x45d6bc
push 0x17
push str.C:Usersomahr_source_reposputty_caccodewindows_named_pipe_client.c
push str.strchr_pipename__9_____NULL
call fcn.004a3dca
add esp, 0xc
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45d718
call ebx
cmp eax, 0xe7
jne 0x45d763
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
je 0x45d751
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x45d6e2
call fcn.0048ced0
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x45d78a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov ecx, eax
call fcn.0048fb60
push eax
push str.Unable_to_get_user_SID:__s
call fcn.00490340
mov ecx, dword [ebp - 4]
add esp, 8
mov dword [ecx], eax
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call ebx
mov ecx, eax
call fcn.0048fb60
push eax
push esi
push str.Error_waiting_for_named_pipe__s:__s
jmp 0x45d773
call ebx
mov ecx, eax
call fcn.0048fb60
push eax
push esi
push str.Unable_to_open_named_pipe__s:__s
call fcn.00490340
mov ecx, dword [ebp - 4]
add esp, 0xc
mov dword [ecx], eax
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 1
push 6
push edi
call dword [0x500384]
test eax, eax
je 0x45d7c2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov ecx, eax
call fcn.0048fb60
push eax
push str.Unable_to_get_named_pipe_security_information:__s
jmp 0x45d73a
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x45d7ed
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
push str.Owner_of_named_pipe__s_is_not_us
jmp 0x45d73a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45dca0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push 0
mov edx, 0x102c
mov ecx, 1
call fcn.0048ffe0
add esp, 4
mov ebx, eax
push 0
push 0
push 0
mov dword [ebx + 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
mov dword [ebx], 0
call esi
cmp dword [0x4fcc10], 0xffffffff
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x1028], edi
mov word [ebx + 0x15], 0
mov byte [ebx + 0x14], 0
mov dword [ebx + 0x1c], eax
jne 0x45dd41
push 0x500094
mov dword [0x50008c], 0x50008c
mov dword [0x500090], 0x50008c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0
call esi
push 0
mov edx, 0x45dc40
mov dword [0x4fcc10], eax
mov ecx, eax
call fcn.00429ce0
add esp, 4
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebx + 4]
push eax
push 0x45d840
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x45dd65
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
mov byte [ebx + 0x17], 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45dd80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push 0
mov edx, 0x102c
mov ecx, 1
call fcn.0048ffe0
add esp, 4
mov ebx, eax
push 0
push 0
push 0
mov dword [ebx + 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
mov dword [ebx], 1
call esi
mov dword [ebx + 0x10], eax
lea ecx, [ebx + 0x30]
mov eax, dword [ebp + 8]
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], eax
call fcn.004914f0
cmp dword [0x4fcc10], 0xffffffff
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], edi
mov dword [ebx + 0x4c], ebx
mov dword [ebx + 0x1c], eax
jne 0x45de2d
push 0x500094
mov dword [0x50008c], 0x50008c
mov dword [0x500090], 0x50008c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0
call esi
push 0
mov edx, 0x45dc40
mov dword [0x4fcc10], eax
mov ecx, eax
call fcn.00429ce0
add esp, 4
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebx + 4]
push eax
push 0x45da10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x45de51
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45f780
Capabilities:
Parse credit card information

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebx + 8]
mov esi, dword [ebx + 0x14]
mov edx, dword [edi + 8]
cmp esi, edx
jae 0x45f7aa
mov ecx, dword [edi]
mov al, byte [ecx + esi]
cmp al, 0x20
je 0x45f7a3
cmp al, 9
je 0x45f7a3
cmp al, 0xa
jne 0x45f7a8
inc esi
cmp esi, edx
jb 0x45f794
cmp esi, edx
je 0x45f85e
mov ecx, dword [edi]
mov cl, byte [ecx + esi]
call fcn.0045f6e0
test al, al
jne 0x45f85e
mov ecx, dword [ebx + 0xc]
xor edx, edx
call fcn.0048fd70
mov eax, dword [ebx + 8]
cmp esi, dword [eax + 8]
jae 0x45f855
mov edx, dword [eax]
mov dl, byte [esi + edx]
cmp dl, 0x20
je 0x45f855
cmp dl, 9
je 0x45f855
cmp dl, 0xa
je 0x45f855
cmp dl, 0x28
je 0x45f855
cmp dl, 0x29
je 0x45f855
cmp dl, 0x3c
je 0x45f855
cmp dl, 0x3e
je 0x45f855
cmp dl, 0x40
je 0x45f855
cmp dl, 0x2c
je 0x45f855
cmp dl, 0x3b
je 0x45f855
cmp dl, 0x3a
je 0x45f855
cmp dl, 0x5c
je 0x45f855
cmp dl, 0x22
je 0x45f855
cmp dl, 0x2f
je 0x45f855
cmp dl, 0x5b
je 0x45f855
cmp dl, 0x5d
je 0x45f855
cmp dl, 0x3f
je 0x45f855
cmp dl, 0x3d
je 0x45f855
cmp dl, 0x7b
je 0x45f855
cmp dl, 0x7d
je 0x45f855
mov ecx, dword [ebx + 0xc]
add ecx, 0xc
call fcn.0048f460
mov eax, dword [ebx + 8]
inc esi
cmp esi, dword [eax + 8]
jb 0x45f7d8
pop edi
mov dword [ebx + 0x14], esi
mov al, 1
pop esi
pop ebx
ret
pop edi
pop esi
xor al, al
pop ebx
ret

Function at 0x460af7
Capabilities:
Read file on windows

Disassembly:
mov eax, edx
mov edx, 0xb0
push esi
mov esi, ecx
mov ecx, eax
call fcn.0048dd00
mov edx, dword [eax]
cmp byte [edx], 0
je 0x460b10
mov ecx, esi
pop esi
jmp fcn.004951a0
pop esi
ret
Function at 0x4632e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp edx, 2
push 4
sete al
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push ecx
push str.SoftwareSimonTathamPuTTY
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueA]
mov esp, ebp
pop ebp
ret
Function at 0x464360
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4fc040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, edx
push 0x3a
push ecx
mov dword [edi], 0
mov dword [eax], 0
call fcn.00496d20
push 0xfe
lea esi, [eax + 1]
xor eax, eax
push eax
mov word [ebp - 0x10c], ax
lea eax, [ebp - 0x10a]
push eax
call fcn.00497aa0
add esp, 0x14
lea eax, [ebp - 0x10c]
push 0x80
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x464422
lea eax, [ebp - 0x190]
mov dword [ebp - 0x190], 0x80
push eax
lea eax, [ebp - 0x18c]
push eax
push 0
push 8
lea eax, [ebp - 0x10c]
push eax
push str.SoftwareSimonTathamPuTTYFidoPubKeyBlobs
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x464422
mov edx, dword [ebp - 0x190]
lea eax, [ebp - 0x10c]
push edi
push eax
lea ecx, [ebp - 0x18c]
call fcn.004640e0
add esp, 8
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.00495b16
mov esp, ebp
pop ebp
ret

Function at 0x464440
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x4fc040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x2000
push 0
push 0x10001
push 2
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov esi, eax
test esi, esi
jne 0x464483
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x290]
mov dword [ebp - 0x290], 0
push eax
push 0x20019
push 0
push str.SoftwareSimonTathamPuTTYFidoPubKeyBlobs
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4645a7
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x28c], 0x80
push eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x294], pe_nt_image_headers32
push eax
xor edi, edi
lea eax, [ebp - 0x294]
push edi
push edi
push eax
lea eax, [ebp - 0x288]
push eax
push edi
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x46459b
mov ebx, dword [sym.imp.CRYPT32.dll_CertAddCertificateContextToStore]
nop word [eax + eax]
mov edx, dword [ebp - 0x28c]
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x288]
mov dword [ebp - 0x298], 0
push eax
lea ecx, [ebp - 0x88]
call fcn.004640e0
add esp, 8
cmp eax, 1
jne 0x46454e
push 0
push 4
push dword [ebp - 0x298]
push esi
call ebx
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x28c], 0x80
push eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x294], pe_nt_image_headers32
push eax
push 0
push 0
lea eax, [ebp - 0x294]
inc edi
push eax
lea eax, [ebp - 0x288]
push eax
push edi
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x464510
push dword [ebp - 0x290]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00495b16
mov esp, ebp
pop ebp
ret
Function at 0x464cc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x614
mov eax, dword [0x4fc040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x3a
push ecx
call fcn.00496d20
add esp, 8
lea ecx, [ebp - 0x40c]
inc eax
push pe_nt_image_headers32
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x464e0c
call fcn.00464c20
mov ebx, eax
test ebx, ebx
je 0x464e0c
push esi
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00497768
xor ecx, ecx
lea edi, [ebp - 0x20c]
add esp, 8
add edi, 0xfffffffe
mov word [eax + 2], cx
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x464d50
mov ecx, 6
lea eax, [ebp - 0x40c]
mov esi, str.puttyimp.exe
rep movsd dword es:[edi], dword [esi]
push ebx
push eax
lea eax, [ebp - 0x614]
push str.__delete_fido___s____s_
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [sym.imp.USER32.dll_MessageBoxW]
push 0x1040
push str.FIDO_Key_Delete
push str.PuTTY_will_now_launch_the_PuTTYImp_process_to_delete_the_selected_key._This_may_result_in_an_elevation_prompt_depending_your_current_system_settings.
push 0
call esi
push 5
push 0
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x20c]
push eax
push str.runas
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x464df6
push 0x1010
push str.FIDO_Key_Importer_Failed
push str.The_PuTTYImp_process_failed_to_launch_properly._You_may_have_not_have_the_appropriate_privileges_or_PuTTYImp_was_not_found._Please_ensure_that_PuTTYImp.exe_is_downloaded_in_same_directory_as_this_executable.
push 0
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.00495b16
mov esp, ebp
pop ebp
ret
Function at 0x464e20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4fc040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
call fcn.00464c20
mov ebx, eax
test ebx, ebx
je 0x464f0e
push esi
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00497768
xor ecx, ecx
lea edi, [ebp - 0x20c]
add esp, 8
add edi, 0xfffffffe
mov word [eax + 2], cx
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x464e80
mov ecx, 6
lea eax, [ebp - 0x414]
mov esi, str.puttyimp.exe
rep movsd dword es:[edi], dword [esi]
push ebx
push str.__import_fido__s
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [sym.imp.USER32.dll_MessageBoxW]
push 0x1040
push str.FIDO_Key_Importer
push str.PuTTY_will_now_launch_the_PuTTYImp_process_to_search_for_any_FIDO_resident_keys_to_import._This_requires_access_to_communicate_directly_with__your_key_s__and_may_result_in_an_elevation_prompt_depending_your_current_system_settings.
push 0
call esi
push 5
push 0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
push str.runas
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x464f0c
push 0x1010
push str.FIDO_Key_Importer_Failed
push str.The_PuTTYImp_process_failed_to_launch_properly._You_may_have_not_have_the_appropriate_privileges_or_PuTTYImp_was_not_found._Please_ensure_that_PuTTYImp.exe_is_downloaded_in_same_directory_as_this_executable.
push 0
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00495b16
mov esp, ebp
pop ebp
ret
Function at 0x4673f0
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
mov eax, str.SHA256
cmp edx, 2
push esi
sete bl
mov esi, str.SHA1
cmove esi, eax
mov dword [ebp - 0x14], esi
push edi
lea ebx, [ebx*8 + 0x8004]
cmp edx, 4
jne 0x467429
mov ebx, 0x800e
mov dword [ebp - 0x14], str.SHA512
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
call fcn.00467340
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x467569
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x467569
lea eax, [ebp - 8]
xor esi, esi
push eax
push esi
push 2
push edi
mov dword [ebp - 8], esi
call dword [sym.imp.CRYPT32.dll_CertGetCertificateContextProperty]
test eax, eax
je 0x46750f
mov ecx, dword [ebp - 8]
lea edx, [esi + 1]
push esi
call fcn.0048ffe0
add esp, 4
mov dword [ebp - 4], eax
lea ecx, [ebp - 8]
push ecx
push eax
push 2
push edi
call dword [sym.imp.CRYPT32.dll_CertGetCertificateContextProperty]
test eax, eax
je 0x46750f
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], esi
mov eax, dword [ecx + 0xc]
and eax, 0x20
push eax
push dword [ecx + 8]
lea eax, [ebp - 0xc]
push dword [ecx + 4]
push dword [ecx]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x46752a
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
push esi
push esi
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
neg eax
sbb esi, esi
mov eax, dword [ebp - 0x14]
neg esi
test eax, eax
je 0x4674e7
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4674fa
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x467508
push eax
call dword [sym.imp.ncrypt.dll_NCryptFreeObject]
mov ecx, ebx
call fcn.00490070
push edi
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
push 0
push dword [ebp - 0x10]
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push 0
push dword [ebx + 4]
push eax
call dword [sym.imp.ncrypt.dll_NCryptOpenStorageProvider]
test eax, eax
jne 0x4674ea
push eax
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
call dword [sym.imp.ncrypt.dll_BCryptOpenAlgorithmProvider]
neg eax
sbb esi, esi
mov eax, dword [ebp - 4]
inc esi
test eax, eax
je 0x4674ea
push 0
push eax
call dword [sym.imp.ncrypt.dll_BCryptCloseAlgorithmProvider]
jmp 0x4674ea
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4692b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
imul esi, dword [ebp + 8], 0x3e8
mov eax, 0x10624dd3
mov dword [ebp - 4], edx
mov ebx, 1
push edi
mov dword [ebp - 8], ecx
mul esi
mov esi, ebx
shr edx, 6
mov dword [ebp + 8], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp + 0x38]
mov edx, dword [ebp - 4]
mov edi, eax
push dword [ebp + 0x34]
mov ecx, dword [ebp - 8]
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call fcn.00469260
add esp, 0x30
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, dword [ebp + 8]
jae 0x46937d
nop
mov eax, esi
mov edi, esi
not eax
cmp ebx, eax
ja 0x46937d
mov ecx, dword [ebp + 0x18]
xor edx, edx
call fcn.0048fd70
add esi, ebx
mov ebx, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp + 0x38]
mov edx, dword [ebp - 4]
mov edi, eax
push dword [ebp + 0x34]
mov ecx, dword [ebp - 8]
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call fcn.00469260
add esp, 0x30
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, dword [ebp + 8]
jb 0x469320
mov eax, dword [ebp + 0xc]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret