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

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
xor esi, esi
push edi
push esi
push esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push ebp
push dword [esp + 0x34]
push esi
push esi
call edi
mov dword [esp + 0x10], eax
lea eax, [ebp + ebp]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [esp + 0x10]
mov ebx, eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp ebx, esi
mov dword [esp + 0x24], eax
je 0x4051b8
cmp eax, esi
je 0x4051b6
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, esi
mov dword [esp + 0x14], eax
je 0x4051cf
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, esi
mov dword [esp + 0x18], eax
je 0x4051cf
lea eax, [ebp + ebp]
push eax
push dword [esp + 0x24]
push dword [esp + 0x1c]
call fcn.00429460
add esp, 0xc
push esi
push esi
push dword [esp + 0x18]
push dword [esp + 0x24]
push ebp
push dword [esp + 0x34]
push esi
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call edi
mov ebp, dword [esp + 0x24]
push ebp
call edi
cmp dword [esp + 0x28], esi
jne 0x405161
push esi
push 1
push 0x2402
push dword [0x4449a8]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [0x4449a8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40518f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
push 0xd
call edi
push ebp
push 1
call edi
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x40519b
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call edi
push ebp
call edi
cmp dword [esp + 0x28], esi
jne 0x4051cf
push esi
push esi
push 0x2402
push dword [0x4449a8]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4051cf
cmp ebx, esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
je 0x4051c3
push ebx
call edi
cmp dword [esp + 0x24], esi
je 0x4051cf
push dword [esp + 0x24]
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4051d7
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x444f5c]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
je 0x4051f6
push eax
call fcn.00412224
pop ecx
mov dword [0x444f5c], ebx
mov edi, dword [ebp + 8]
cmp edi, ebx
jne 0x405218
mov eax, dword [0x444f58]
cmp eax, ebx
je 0x40520d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x444f58], ebx
jmp 0x4052ea
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4052e3
mov esi, dword [sym.imp.USER32.dll_GetClipboardData]
push 0xd
call esi
cmp eax, ebx
mov dword [0x444f58], eax
je 0x40526c
call dword [sym.imp.USER32.dll_CloseClipboard]
push dword [0x444f58]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
mov dword [edi], eax
je 0x4052e3
mov ecx, eax
cmp word [ecx], bx
je 0x405261
inc ecx
inc ecx
jmp 0x405258
sub ecx, eax
mov eax, dword [ebp + 0xc]
sar ecx, 1
mov dword [eax], ecx
jmp 0x4052ea
push 1
call esi
cmp eax, ebx
mov dword [0x444f58], eax
je 0x4052dd
call dword [sym.imp.USER32.dll_CloseClipboard]
push dword [0x444f58]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push ebx
push eax
mov dword [ebp - 4], eax
call fcn.00428d50
pop ecx
inc eax
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push dword [ebp - 4]
push ebx
push ebx
call esi
mov edi, eax
lea eax, [edi + edi]
push eax
call fcn.004121ab
pop ecx
mov dword [0x444f5c], eax
mov ecx, dword [ebp + 8]
push edi
mov dword [ecx], eax
push dword [0x444f5c]
push dword [ebp - 4]
call fcn.00428d50
pop ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
push ebx
call esi
mov eax, dword [ebp + 0xc]
dec edi
mov dword [eax], edi
jmp 0x4052ea
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp + 0xc]
mov dword [edi], ebx
mov dword [eax], ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4053c5
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
cmp dword [ebp + 8], 1
push esi
jne 0x4053fb
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x444f68]
js 0x4053ea
cmp eax, 0x32
jl 0x405462
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
call esi
mov dword [0x444f68], eax
jmp 0x405451
cmp dword [ebp + 8], 3
jne 0x405451
push 0x20001
mov esi, 0x453b60
push 0
push esi
call dword [sym.imp.WINMM.dll_PlaySoundA]
test eax, eax
jne 0x405451
push esi
lea eax, [ebp - 0x154]
push str.Unable_to_play_sound_file_n_s_nUsing_default_sound_instead
push eax
call fcn.00428720
add esp, 0xc
lea eax, [ebp - 0x154]
push 0x30
push str.PuTTY_Sound_Error
push eax
push dword [0x4449a8]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x453b48], 1
cmp dword [0x45528c], 0
jne 0x405462
push 2
call fcn.00405332
pop ecx
pop esi
leave
ret

Function at 0x4054b6
Capabilities:
Hide graphical window

Disassembly:
push esi
push 0
push 0x4054e9
push 0
push 0x6f
push dword [0x455284]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov esi, eax
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
pop esi
ret
Function at 0x4099b4
Capabilities:
Hide graphical window

Disassembly:
cmp dword [0x455290], 0
jne 0x4099e4
push 0
push 0x4099f1
push dword [esp + 0xc]
push 0x6e
push dword [0x455284]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 1
push eax
mov dword [0x455290], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x455290]
call dword [sym.imp.USER32.dll_SetActiveWindow]
ret
Function at 0x411b4e
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004298a0
push ebx
push esi
push edi
push 0xc
call fcn.004121ab
pop ecx
xor ebx, ebx
mov esi, eax
push 0xc
push ebx
push esi
xor edi, edi
call fcn.00428790
add esp, 0xc
mov dword [esi + 4], ebx
mov byte [ebp - 0x2004], bl
push dword [ebp + 8]
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x411c04
cmp dword [esi + 4], ebx
jne 0x411be6
push dword [ebp + 8]
call sub.WSOCK32.dll_gethostbyname
mov edi, eax
cmp edi, ebx
je 0x411bab
mov dword [esi + 4], 2
cmp dword [esi + 4], ebx
jne 0x411be6
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2742
jne 0x411bc3
mov eax, str.Network_is_down
jmp 0x411be2
cmp eax, 0x2af9
jne 0x411bd1
mov eax, str.Host_does_not_exist
jmp 0x411be2
cmp eax, 0x2afa
mov eax, str.Host_not_found
je 0x411be2
mov eax, str.gethostbyname:_unknown_error
mov dword [esi], eax
jmp 0x411c22
mov dword [esi], ebx
mov eax, dword [edi + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 4]
push eax
call fcn.00429460
add esp, 0xc
push 0x2000
push dword [edi]
jmp 0x411c13
push 0x2000
mov dword [esi + 4], 2
push dword [ebp + 8]
lea eax, [ebp - 0x2004]
push eax
call fcn.004287f0
add esp, 0xc
push dword [ebp - 4]
call sub.WSOCK32.dll_ntohl
mov dword [esi + 8], eax
lea eax, [ebp - 0x2004]
push eax
mov byte [ebp - 5], bl
call fcn.00428d50
pop ecx
inc eax
push eax
call fcn.004121ab
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
lea ecx, [ebp - 0x2004]
push ecx
push eax
call fcn.00429370
pop ecx
mov eax, esi
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411c7e
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x28
call fcn.004121ab
pop ecx
mov esi, eax
mov eax, dword [ebp + 0x18]
push 1
mov dword [esi + 0xc], eax
xor ebx, ebx
pop eax
mov dword [esi], 0x43ef90
push ebx
mov dword [esi + 0x1c], eax
push eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x20], ebx
push dword [eax + 4]
call sub.WSOCK32.dll_socket
mov edi, eax
cmp edi, 0xffffffff
mov dword [esi + 8], edi
je 0x411d7b
mov eax, dword [ebp + 0x14]
cmp eax, ebx
mov dword [esi + 0x24], eax
je 0x411cf3
lea eax, [ebp + 0x18]
push 4
push eax
push 0x100
push 0xffff
push edi
mov dword [ebp + 0x18], 1
call sub.WSOCK32.dll_setsockopt
mov ebx, dword [ebp + 0x10]
neg ebx
sbb ebx, ebx
and ebx, 0x3ff
push 0
mov word [ebp - 0x10], 2
call sub.WSOCK32.dll_htonl
push ebx
mov dword [ebp - 0xc], eax
call sub.WSOCK32.dll_htons
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push edi
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x411d44
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2740
jne 0x411d46
test bx, bx
je 0x411d46
dec ebx
test bx, bx
je 0x411d46
jmp 0x411d00
xor eax, eax
test eax, eax
jne 0x411d80
mov eax, dword [ebp + 8]
mov word [ebp - 0x10], 2
push dword [eax + 8]
call sub.WSOCK32.dll_htonl
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
call sub.WSOCK32.dll_htons
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push edi
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x411d89
call sub.WSOCK32.dll_WSAGetLastError
push eax
call fcn.00411964
pop ecx
jmp 0x411d97
push 1
push edi
call fcn.00401cca
pop ecx
test eax, eax
pop ecx
je 0x411d9c
mov dword [esi + 4], eax
jmp 0x411daa
push esi
push dword [0x446260]
call fcn.0041411a
pop ecx
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411de1
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x411e93
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x411dfe
push 1
pop edx
jmp 0x411e06
mov ecx, dword [eax + 4]
xor edx, edx
sub ecx, dword [eax + 8]
push edx
push ecx
mov ecx, dword [eax + 8]
lea eax, [ecx + eax + 0xc]
push eax
push dword [esi + 8]
call sub.WSOCK32.dll_send
mov edi, eax
push edi
call fcn.0041a55e
test edi, edi
pop ecx
jg 0x411e4f
jge 0x411e2e
call sub.WSOCK32.dll_WSAGetLastError
jmp 0x411e30
xor eax, eax
test eax, eax
jne 0x411e38
test edi, edi
jl 0x411e8f
cmp eax, 0x2733
je 0x411e8f
push eax
call fcn.00411964
pop ecx
push eax
call fcn.004052ef
pop ecx
jmp 0x411de7
mov eax, dword [esi + 0x14]
add dword [eax + 8], edi
mov eax, dword [esi + 0x20]
test eax, eax
je 0x411e61
sub eax, edi
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 8]
cmp ecx, dword [eax + 4]
jl 0x411de7
mov ecx, dword [eax]
push eax
mov dword [esi + 0x14], ecx
call fcn.00412224
cmp dword [esi + 0x14], 0
pop ecx
jne 0x411de7
and dword [esi + 0x18], 0
jmp 0x411de7
and dword [esi + 0x1c], 0
pop edi
pop esi
ret
Function at 0x411faa
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5004
call fcn.004298a0
push ebx
push esi
push edi
push 0x412172
push dword [ebp + 8]
push dword [0x446260]
call fcn.004147e1
mov esi, eax
xor edi, edi
add esp, 0xc
cmp esi, edi
je 0x412124
mov eax, dword [ebp + 0xc]
shr eax, 0x10
mov dword [ebp - 4], eax
jne 0x412130
push dword [ebp + 0xc]
call fcn.0041a55e
movzx eax, word [ebp + 0xc]
dec eax
pop ecx
je 0x4120d9
dec eax
je 0x4120c9
dec eax
dec eax
je 0x412075
sub eax, 0x1c
jne 0x412124
mov dword [ebp + 0xc], 1
push edi
lea eax, [ebp - 0x5004]
push 0x5000
push eax
push dword [esi + 8]
call sub.WSOCK32.dll_recv
mov ebx, eax
cmp ebx, edi
jl 0x41205d
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
je 0x41204b
lea edx, [ebp - 0x5004]
push ebx
push edx
push edi
push eax
call dword [ecx + 4]
jmp 0x412051
push edi
push edi
push edi
push eax
call dword [ecx]
and dword [ebp + 0xc], eax
add esp, 0x10
cmp ebx, edi
jle 0x41206d
jmp 0x41201a
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x412130
mov eax, dword [ebp + 0xc]
jmp 0x41216d
push 1
lea eax, [ebp - 0x5004]
push 0x5000
push eax
push dword [esi + 8]
call sub.WSOCK32.dll_recv
mov ebx, eax
push ebx
call fcn.0041a55e
cmp ebx, edi
pop ecx
jg 0x4120b5
jne 0x4120a1
mov eax, str.Internal_networking_trouble
jmp 0x4120ad
call sub.WSOCK32.dll_WSAGetLastError
push eax
call fcn.00411964
pop ecx
push eax
call fcn.004052ef
jmp 0x4120d6
mov esi, dword [esi + 0xc]
lea ecx, [ebp - 0x5004]
push ebx
push ecx
mov eax, dword [esi]
push 2
jmp 0x412166
push esi
mov dword [esi + 0x1c], 1
call fcn.00411de1
pop ecx
jmp 0x412124
cmp dword [esi + 0x24], edi
mov dword [ebp + 8], 1
je 0x4120f6
lea eax, [ebp + 8]
push eax
push 0x40047307
push dword [esi + 8]
call sub.WSOCK32.dll_ioctlsocket
push edi
lea eax, [ebp - 0x5004]
push 0x5000
push eax
push dword [esi + 8]
call sub.WSOCK32.dll_recv
mov ebx, eax
push ebx
call fcn.0041a55e
cmp ebx, edi
pop ecx
jge 0x412129
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x41212c
push 1
pop eax
jmp 0x41216d
mov eax, dword [ebp - 4]
cmp ebx, edi
jge 0x412146
mov ecx, dword [esi + 0xc]
push edi
push eax
push eax
mov ebx, dword [ecx]
call fcn.00411964
pop ecx
push eax
push dword [esi + 0xc]
call dword [ebx]
jmp 0x41216a
mov esi, dword [esi + 0xc]
mov eax, dword [esi]
jne 0x412155
push edi
push edi
push edi
push esi
call dword [eax]
jmp 0x41216a
lea ecx, [ebp - 0x5004]
push ebx
push ecx
xor ecx, ecx
cmp dword [ebp + 8], edi
sete cl
push ecx
push esi
call dword [eax + 4]
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41233e
Capabilities:
Set registry value

Disassembly:
cmp dword [esp + 4], 0
je 0x41235e
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret
Function at 0x41245a
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push dword [0x435838]
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4124b4
push esi
push dword [ebp + 8]
call fcn.00428d50
pop ecx
lea eax, [eax + eax*2 + 1]
push eax
call fcn.004121ab
pop ecx
mov esi, eax
push esi
push dword [ebp + 8]
call fcn.004122af
pop ecx
pop ecx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push esi
call fcn.00412224
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x4124ee
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
lea edi, [esi + esi*2]
push edi
call fcn.004121ab
mov ebx, eax
pop ecx
test ebx, ebx
je 0x41253c
mov eax, dword [esp + 0x10]
push edi
push ebx
mov ecx, dword [eax + 4]
push ecx
push dword [eax]
lea edx, [ecx + 1]
mov dword [eax + 4], edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x41253c
push esi
push dword [esp + 0x18]
push ebx
call fcn.00412542
add esp, 0xc
push ebx
call fcn.00412224
mov eax, dword [esp + 0x18]
pop ecx
jmp 0x41253e
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x412829
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0x10]
call fcn.00428d50
pop ecx
mov esi, eax
push dword [ebp + 8]
call fcn.00428d50
lea eax, [esi + eax + 5]
pop ecx
lea eax, [eax + eax*2]
push eax
call fcn.004121ab
pop ecx
mov esi, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.004127d9
add esp, 0x10
lea eax, [ebp - 4]
push eax
push str.SoftwareSimonTathamPuTTYSshHostKeys
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4128a1
push dword [ebp + 0x14]
call fcn.00428d50
pop ecx
inc eax
push eax
push dword [ebp + 0x14]
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]
pop esi
leave
ret

Function at 0x4128a4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
xor ebx, ebx
cmp byte [0x446268], bl
push esi
jne 0x4128be
call fcn.00412919
push ebx
push ebx
push 3
push ebx
push 3
push closesocket
push 0x446268
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x412915
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x404]
push 0x400
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41290e
cmp dword [ebp - 4], ebx
je 0x41290e
push dword [ebp - 4]
lea eax, [ebp - 0x404]
push eax
call dword [ebp + 8]
pop ecx
pop ecx
jmp 0x4128dc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
leave
ret

Function at 0x412919
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 8]
push edi
push eax
mov edi, 0x212
push str.SoftwareSimonTathamPuTTY
push closesocket
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov esi, 0x446268
jne 0x41297c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push esi
push eax
push 0
push str.RandSeedFile
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41296a
cmp dword [ebp - 0x10], 1
je 0x412971
and byte [0x446268], 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x412983
and byte [0x446268], 0
cmp byte [0x446268], 0
jne 0x4129df
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push edi
push esi
push str.HOMEDRIVE
call ebx
mov ecx, edi
mov dword [ebp - 4], eax
sub ecx, eax
lea eax, [eax + 0x446268]
push ecx
push eax
push str.HOMEPATH
call ebx
test eax, eax
jne 0x4129c6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call fcn.00428d50
pop ecx
jmp 0x4129cc
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
lea eax, [eax + 0x446268]
push str.PUTTY.RND
push eax
call fcn.00429370
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4129e4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp byte [0x446268], bl
push esi
jne 0x4129f8
call fcn.00412919
push ebx
push pe_nt_image_headers32
push 2
push ebx
push ebx
push 0x40000000
push 0x446268
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x412a32
lea eax, [ebp + 0xc]
push ebx
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
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
cmp byte [0x446268], 0
push ebx
push esi
push edi
jne 0x412a50
call fcn.00412919
push 0x446268
call fcn.0042b220
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
pop ecx
lea eax, [ebp - 4]
mov ebx, closesocket
push eax
push str.SoftwareSimonTathamPuTTY
push ebx
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x412a8a
push dword [ebp - 4]
call fcn.00412af5
pop ecx
push dword [ebp - 4]
call esi
lea eax, [ebp - 4]
push eax
push str.SoftwareSimonTatham
push ebx
call edi
test eax, eax
jne 0x412af0
push 0x43b438
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [ebp - 0x110]
push 0x105
push eax
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call esi
cmp dword [ebp - 8], 0
je 0x412af0
lea eax, [ebp - 4]
push eax
push str.Software
push ebx
call edi
test eax, eax
jne 0x412af0
push str.SimonTatham
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push edi
mov edi, 0x105
lea eax, [ebp - 0x108]
push edi
push eax
push 0
push ebx
call esi
test eax, eax
jne 0x412b63
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x412b48
push dword [ebp + 8]
call fcn.00412af5
pop ecx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [ebp - 0x108]
push edi
push eax
push 0
push ebx
jmp 0x412b1a
pop edi
pop esi
pop ebx
leave
ret

Function at 0x414d07
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
push esi
xor eax, eax
mov esi, edx
dec edx
test esi, esi
je 0x414d3b
push edi
lea esi, [edx + 1]
movzx edx, byte [ecx]
mov edi, eax
inc ecx
and edi, 0xff
xor edi, edx
shr eax, 8
mov edx, dword [edi*4 + 0x435840]
xor eax, edx
dec esi
jne 0x414d1d
pop edi
pop esi
ret
Function at 0x414d3d
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 8], eax
push 0x1c
lea eax, [ebp - 0xc]
push 0x435c40
push eax
call fcn.00414e29
add esp, 0xc
mov ebx, eax
lea eax, [ebp - 0xc]
push 0x1c
push 0x435cb0
push eax
call fcn.00414e29
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov esi, 0x435e20
add esp, 0xc
sub eax, esi
mov edi, 0xfffffff
mov dword [ebp + 8], eax
mov eax, dword [esi]
push 0x1c
pop ecx
mov edx, ebx
sub ecx, eax
push 0x20
mov dword [ebp - 4], ecx
push 0x435d20
shr edx, cl
mov ecx, eax
shl ebx, cl
mov ecx, dword [ebp - 4]
or edx, ebx
and edx, edi
mov ebx, edx
mov edx, dword [ebp + 0xc]
shr edx, cl
mov ecx, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
shl edx, cl
or eax, edx
and eax, edi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00414e29
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [ecx + esi], eax
push 0x20
lea eax, [ebp - 0xc]
push 0x435da0
push eax
call fcn.00414e29
mov ecx, dword [ebp + 8]
add esi, 4
add esp, 0xc
cmp esi, 0x435e60
mov dword [ecx + esi + 0x3c], eax
jl 0x414d8f
mov eax, dword [ebp + 0x10]
xor ecx, ecx
pop edi
pop esi
mov dword [eax + 0x84], ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x8c], ecx
mov dword [eax + 0x88], ecx
pop ebx
leave
ret
Function at 0x4164fe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
test byte [ebp + 0x10], 7
push ebx
push esi
push edi
je 0x416523
push 0x26d
push str.sshdes.c
push str._len__7___0
call fcn.0042a600
add esp, 0xc
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebx + 0x84]
mov eax, dword [ebx + 0x80]
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jbe 0x4165eb
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
add ecx, 7
shr ecx, 3
mov dword [ebp + 0x10], ecx
movzx edx, byte [esi + 2]
xor ecx, ecx
push ebx
mov cl, byte [esi + 1]
mov ch, byte [esi]
add esi, 4
shl ecx, 8
or ecx, edx
movzx edx, byte [esi - 1]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi + 2]
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
mov ch, byte [esi]
add esi, 4
shl ecx, 8
or ecx, edx
movzx edx, byte [esi - 1]
shl ecx, 8
or ecx, edx
xor dword [ebp + 0x14], ecx
push dword [ebp + 0x14]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00414e7a
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, eax
mov dword [ebp + 0xc], eax
shr edx, 8
mov byte [edi + 2], dl
mov byte [edi + 3], al
mov edx, eax
mov dword [ebp + 0x14], ecx
shr eax, 0x18
shr edx, 0x10
mov byte [edi], al
mov byte [edi + 1], dl
mov eax, ecx
add edi, 4
shr eax, 8
mov byte [edi + 2], al
mov eax, ecx
mov byte [edi + 3], cl
add esp, 0x10
shr eax, 0x10
shr ecx, 0x18
mov byte [edi + 1], al
mov eax, dword [ebp + 0xc]
mov byte [edi], cl
add edi, 4
dec dword [ebp + 0x10]
jne 0x41654f
mov dword [ebx + 0x80], eax
mov eax, dword [ebp + 0x14]
pop edi
mov dword [ebx + 0x84], eax
pop esi
pop ebx
leave
ret