joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e57
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp byte [edi], 0x25
jne 0x403ed4
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
call fcn.00403093
lea eax, [ebp + eax - 0x105]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x25
jne 0x403ebc
and byte [eax], 0
push dword [ebp + 0x1c]
lea eax, [ebp - 0x104]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push eax
push 0x4016ec
call esi
pop edi
pop esi
leave
ret 0x18

Function at 0x4041d7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0xc]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40422c
push esi
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
push esi
lea eax, [ebp + 8]
push esi
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x404223
cmp dword [ebp + 8], esi
jne 0x404223
cmp dword [ebp - 4], esi
jne 0x404223
push 1
pop esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 8

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x1000138f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x1000139e
pop dword [ebp - 0x28]
mov eax, 0x1000139e
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x3d6ee31e
sub dword [ebp - 0x38], 0xef1c9dd3
mov dword [ebp - 0x34], 0xeb3730db
sub dword [ebp - 0x34], 0xb903e496
mov dword [ebp - 0x30], 0x93d425af
sub dword [ebp - 0x30], 0x4787e181
mov dword [ebp - 0x2c], 0x3f549da8
add dword [ebp - 0x2c], 0xc0ab6258
lea eax, [ebp - 0x38]
push eax
mov eax, 0xc18345ec
sub eax, 0xb182c590
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x190593c8
sub dword [ebp - 0x38], 0xa4932a72
mov dword [ebp - 0x34], 0x76661e43
sub dword [ebp - 0x34], 0x34f9bcce
mov dword [ebp - 0x30], 0x87df01b6
add dword [ebp - 0x30], 0xdb906ab6
mov dword [ebp - 0x2c], 0x5b842e26
add dword [ebp - 0x2c], 0xa47bd1da
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3b6dd
push 0
call eax
mov ecx, 0x584c
xor ebx, ebx
add ebx, eax
mov edi, 0x8db3634
add edi, 0x725a5cc
add edi, dword [ebp - 0x28]
mov edx, 0xc34ca46a
add edx, 0x67497e27
sub dword [ebp - 0x20], 0x1238b16
mov esi, dword [edi]
sub dword [ebp - 0x24], ecx
xor esi, edx
mov dword [ebp - 0x1c], 0xf0ef0e19
mov dword [ebx], esi
sub dword [ebp - 0xc], 0xd35ed7f0
add ebx, 4
add edi, 0x8550912b
add edi, 0x7aaf6ed9
loop 0x100014b2
add eax, 0x85fecdfa
add eax, 0x7a028609
mov ebx, eax
add eax, 5
mov ecx, 0x2767fd86
sub ecx, 0x1767fd86
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x1000e1bc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x1000e1cb
pop dword [ebp - 0x44]
mov eax, 0x1000e1cb
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x3f471
push 0
mov eax, 0xc1c43c43
sub eax, 0xb1c2fbdf
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x6116
mov ebx, eax
mov edi, 0x455cbd11
add edi, 0xcaa4c8ef
add edi, dword [ebp - 0x44]
mov edx, 0x8034095f
add edx, 0xb1f485cf
mov esi, dword [edi]
xor esi, edx
sub dword [ebp - 0x3c], ebx
mov dword [ebx], esi
xor dword [ebp - 0x28], eax
add ebx, 0xc5a1c0b9
sub ebx, 0xc5a1c0b5
add edi, 0x55d2445a
sub edi, 0x55d24456
loop 0x1000e21f
add eax, 0x1772b
xor ebx, ebx
add ebx, eax
add eax, 0x4977f12e
add eax, 0xb6880ed7
mov ecx, 0x10000000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x4347e9
Capabilities:
Hide graphical window

Disassembly:
push esi
push 0
push 0x4340e2
push 0
push 0x6f
push dword [0x468868]
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 0x434b4d
Capabilities:
Hide graphical window

Disassembly:
cmp dword [0x466628], 0
jne 0x434b7d
push 0
push 0x433c4a
push dword [esp + 0xc]
push 0x6e
push dword [0x468868]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 1
push eax
mov dword [0x466628], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x466628]
call dword [sym.imp.USER32.dll_SetActiveWindow]
ret

Function at 0x43533f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.00409333
push dword [0x44b478]
mov esi, eax
lea eax, [ebp - 0x64]
push str._.70s_Command_Line_Error
push eax
call fcn.0043ffad
add esp, 0x14
push 0x10
lea eax, [ebp - 0x64]
push eax
push esi
push dword [0x468854]
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call fcn.0040927f
pop ecx
push 1
call fcn.00442488
int3

Function at 0x436900
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push ebp
push edi
mov edi, dword [esp + 0x18]
lea eax, [edi + 1]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
xor ebx, ebx
cmp ebp, ebx
je 0x4369a5
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
cmp esi, ebx
je 0x4369a4
push edi
push dword [esp + 0x1c]
push esi
call fcn.00440070
add esp, 0xc
push ebp
mov byte [esi + edi], bl
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [esp + 0x20], ebx
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov edi, 0x2402
jne 0x436965
push ebx
push 1
push edi
push dword [0x468854]
call esi
push dword [0x468854]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x43698c
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebp
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x436993
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [esp + 0x20], ebx
jne 0x4369a4
push ebx
push ebx
push edi
push dword [0x468854]
call esi
pop esi
pop edi
pop ebp
pop ebx
ret
Function at 0x436dd4
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x465a80]
push ebx
push edi
xor edi, edi
cmp eax, edi
je 0x436df2
push eax
call fcn.0040927f
pop ecx
mov dword [0x465a80], edi
mov ebx, dword [ebp + 0xc]
cmp ebx, edi
jne 0x436e14
mov eax, dword [0x465a7c]
cmp eax, edi
je 0x436e09
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x465a7c], edi
jmp 0x436ee3
push esi
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x436edb
mov esi, dword [sym.imp.USER32.dll_GetClipboardData]
push 0xd
call esi
cmp eax, edi
mov dword [0x465a7c], eax
je 0x436e69
call dword [sym.imp.USER32.dll_CloseClipboard]
push dword [0x465a7c]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, edi
mov dword [ebx], eax
je 0x436edb
mov ecx, eax
jmp 0x436e59
inc ecx
inc ecx
cmp word [ecx], di
jne 0x436e57
sub ecx, eax
mov eax, dword [ebp + 0x10]
sar ecx, 1
mov dword [eax], ecx
jmp 0x436ee2
push 1
call esi
cmp eax, edi
mov dword [0x465a7c], eax
je 0x436ed5
call dword [sym.imp.USER32.dll_CloseClipboard]
push dword [0x465a7c]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push edi
push eax
mov dword [ebp - 4], eax
call fcn.0043fd50
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
pop ecx
inc eax
push eax
push dword [ebp - 4]
push edi
push edi
call esi
mov ebx, eax
push 2
push ebx
call fcn.004091c4
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
push ebx
push eax
push dword [ebp - 4]
mov dword [0x465a80], eax
mov dword [ecx], eax
call fcn.0043fd50
pop ecx
inc eax
push eax
push dword [ebp - 4]
push edi
push edi
call esi
mov eax, dword [ebp + 0x10]
dec ebx
mov dword [eax], ebx
jmp 0x436ee2
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp + 0x10]
mov dword [ebx], edi
mov dword [eax], edi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x436f8d
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
cmp dword [ebp + 0xc], 1
push esi
jne 0x436fca
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x465a88]
js 0x436fb6
cmp eax, 0x32
jl 0x437091
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
call esi
mov dword [0x465a88], eax
jmp 0x43707b
cmp dword [ebp + 0xc], 3
jne 0x437039
push 0x20001
push 0
mov esi, 0x467b94
push esi
call dword [sym.imp.WINMM.dll_PlaySoundA]
test eax, eax
jne 0x43707b
push esi
lea eax, [ebp - 0x1b8]
push str.Unable_to_play_sound_file_n_s_nUsing_default_sound_instead
push eax
call fcn.0043ffad
push dword [0x44b478]
lea eax, [ebp - 0x64]
push str._.70s_Sound_Error
push eax
call fcn.0043ffad
add esp, 0x18
push 0x30
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x1b8]
push eax
push dword [0x468854]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x467b7c], 1
jmp 0x43707b
cmp dword [ebp + 0xc], 4
jne 0x43707b
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x465a8c]
js 0x437054
cmp eax, 0x32
jl 0x437091
cmp dword [0x466590], 2
jne 0x43706c
push 0x64
push 0x320
call dword [sym.imp.KERNEL32.dll_Beep]
jmp 0x437074
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
call esi
mov dword [0x465a8c], eax
mov eax, dword [0x46662c]
cmp dword [eax + 0x114], 0
jne 0x437091
push 2
call fcn.00436f05
pop ecx
pop esi
leave
ret
Function at 0x438c68
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
xor eax, eax
cmp dword [0x463048], ebx
push esi
mov dword [0x464a4c], ebx
je 0x438cb2
mov ecx, 0x463048
mov edx, dword [ecx - 8]
cmp edx, dword [0x466844]
je 0x438c9f
add ecx, 0xc
inc eax
cmp dword [ecx], ebx
jne 0x438c8a
jmp 0x438cb2
lea eax, [eax + eax*2]
mov eax, dword [eax*4 + 0x463048]
cmp eax, ebx
mov dword [0x464a4c], eax
jne 0x438ce3
push dword [0x44b478]
push str._s_Internal_Error
call fcn.004094dc
pop ecx
pop ecx
push 0x30
mov esi, eax
push esi
push str.Unsupported_protocol_number_found
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call fcn.0040927f
pop ecx
push 1
call fcn.00437492
push edi
push dword [0x46685c]
lea ecx, [ebp - 4]
push dword [0x466858]
mov esi, 0x466640
push ecx
push dword [0x466840]
push esi
push esi
push 0x464720
push ebx
call dword [eax]
push dword [0x466624]
mov dword [ebp - 8], eax
push dword [0x464720]
mov eax, dword [0x464a4c]
call dword [eax + 0x34]
add esp, 0x28
cmp dword [ebp - 8], ebx
je 0x438d70
push dword [0x44b478]
push str._s_Error
call fcn.004094dc
push dword [ebp - 8]
mov edi, eax
push esi
lea eax, [ebp - 0x408]
push str.Unable_to_open_connection_to_n_.800s_n_s
push eax
call fcn.0043ffad
add esp, 0x18
push 0x10
push edi
lea eax, [ebp - 0x408]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call fcn.0040927f
pop ecx
push ebx
call fcn.00442488
cmp byte [0x467a64], bl
mov dword [0x465584], ebx
mov dword [0x4655c0], ebx
je 0x438d8b
mov edi, 0x467a64
jmp 0x438dae
push dword [0x44b478]
lea eax, [ebp - 0x408]
push dword [ebp - 4]
push str._s____s
push eax
call fcn.0043ffad
add esp, 0x10
lea edi, [ebp - 0x408]
push dword [ebp - 4]
call fcn.0040927f
push edi
push ebx
call fcn.0043667d
push edi
push ebx
call fcn.004366d5
push dword [0x464720]
mov eax, dword [0x464a4c]
push dword [eax + 0x14]
push dword [0x46662c]
call fcn.00428b00
push ebx
push dword [0x464720]
push dword [0x464a4c]
push dword [0x46662c]
push esi
call fcn.004065a8
add esp, 0x34
mov dword [0x464a60], eax
xor esi, esi
pop edi
push ebx
push 0x40
push dword [esi + 0x464710]
call dword [sym.imp.USER32.dll_DeleteMenu]
add esi, 8
cmp esi, 0x10
jb 0x438e01
pop esi
mov dword [0x4655b0], ebx
pop ebx
leave
ret
Function at 0x43ce04
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push esi
push 0x107
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x108]
push 0x45d9ec
push eax
call fcn.0043fe80
pop ecx
pop ecx
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x43ce78
lea eax, [ebp - 0x248]
push 0x140
push eax
call dword [ebp + 8]
pop ecx
pop ecx
lea eax, [ebp - 0x248]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x43ce4e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call fcn.0043da96
pop ecx
call fcn.0043cc6a
pop esi
leave
ret

Function at 0x43d601
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x45da40
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x43d65c
push esi
push 1
push dword [ebp + 8]
call fcn.0043fd50
pop ecx
lea eax, [eax + eax*2 + 1]
push eax
call fcn.004091c4
pop ecx
mov esi, eax
pop ecx
mov ecx, dword [ebp + 8]
mov edx, esi
call fcn.0043d1b7
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push esi
call fcn.0040927f
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x43d742
Capabilities:
Encode data using xor
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [ebp + 0x14]
call fcn.0043fd50
mov edi, eax
inc edi
push 1
push edi
call fcn.004091c4
add esp, 0xc
push 1
push dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 0x20], ebx
call fcn.0043fd50
push dword [ebp + 0x10]
mov esi, eax
call fcn.0043fd50
pop ecx
lea eax, [esi + eax + 5]
pop ecx
lea eax, [eax + eax*2]
push eax
call fcn.004091c4
push dword [ebp + 0x10]
mov esi, eax
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call fcn.0043d700
add esp, 0x14
lea eax, [ebp - 8]
push eax
push str.SoftwareSimonTathamPuTTYSshHostKeys
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x43d7bf
xor eax, eax
inc eax
jmp 0x43d94b
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
push dword [ebp - 8]
call esi
test eax, eax
mov dword [ebp - 0x10], eax
je 0x43d8fe
cmp eax, 0xea
je 0x43d8fe
push 0x45446c
push dword [ebp + 0x10]
call fcn.0043fde0
test eax, eax
pop ecx
pop ecx
jne 0x43d8fe
push 0x452ef8
push dword [ebp - 4]
call fcn.00441fb0
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx + 1]
mov dword [ebp - 0x18], eax
lea eax, [edi + 0xa]
push 1
push eax
call fcn.004091c4
add esp, 0x10
lea ecx, [ebp - 0xc]
push ecx
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0xc], edi
push dword [ebp - 8]
call esi
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x43d8fe
cmp dword [ebp - 0x14], 1
jne 0x43d8fe
mov edi, dword [ebp - 0x1c]
mov esi, ebx
mov dword [ebp - 0x18], 2
mov byte [esi], 0x30
inc esi
push 0x4508b0
mov byte [esi], 0x78
push edi
inc esi
call fcn.00441fb0
pop ecx
pop ecx
mov ecx, eax
push 4
cdq
pop ebx
idiv ebx
lea edx, [ecx - 1]
mov dword [ebp - 0x1c], eax
jmp 0x43d893
cmp ecx, 1
jle 0x43d89e
dec ecx
dec edx
mov eax, edx
xor eax, 3
cmp byte [eax + edi], 0x30
je 0x43d88c
xor ebx, ebx
test ecx, ecx
jle 0x43d8b8
lea edx, [ecx + esi - 1]
mov eax, ebx
xor eax, 3
mov al, byte [eax + edi]
inc ebx
mov byte [edx], al
dec edx
cmp ebx, ecx
jl 0x43d8a8
mov eax, dword [ebp - 0x1c]
lea edi, [edi + eax*4]
add esi, ecx
cmp byte [edi], 0
je 0x43d8ca
inc edi
mov byte [esi], 0x2c
inc esi
dec dword [ebp - 0x18]
mov byte [esi], 0
jne 0x43d867
push dword [ebp + 0x14]
mov ebx, dword [ebp - 0x20]
push ebx
call fcn.0043fde0
test eax, eax
pop ecx
pop ecx
jne 0x43d8fe
push ebx
call fcn.0043fd50
pop ecx
inc eax
push eax
push ebx
push 1
push 0
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x14]
push ebx
call fcn.0043fde0
push ebx
mov esi, eax
call fcn.0040927f
push dword [ebp - 4]
call fcn.0040927f
add esp, 0x10
cmp dword [ebp - 0x10], 0xea
je 0x43d948
cmp dword [ebp - 0x10], 0
jne 0x43d7b7
cmp dword [ebp - 0x14], 1
jne 0x43d7b7
test esi, esi
jne 0x43d948
xor eax, eax
jmp 0x43d94b
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43d950
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 1
push dword [ebp + 8]
call fcn.0043fd50
push dword [ebp + 0x10]
mov esi, eax
call fcn.0043fd50
pop ecx
lea eax, [esi + eax + 5]
pop ecx
lea eax, [eax + eax*2]
push eax
call fcn.004091c4
push dword [ebp + 0x10]
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043d700
add esp, 0x14
lea eax, [ebp - 4]
push eax
push str.SoftwareSimonTathamPuTTYSshHostKeys
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x43d9c8
push dword [ebp + 0x14]
call fcn.0043fd50
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 0x43d9cb
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 8]
push eax
push str.SoftwareSimonTathamPuTTY
mov esi, 0x212
push 0x80000001
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov edi, 0x465fc8
jne 0x43da2d
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0
push str.RandSeedFile
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43da1b
cmp dword [ebp - 0x10], 1
je 0x43da22
mov byte [0x465fc8], 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43da34
mov byte [0x465fc8], 0
cmp byte [0x465fc8], 0
jne 0x43da92
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
push edi
push str.HOMEDRIVE
call ebx
mov ecx, esi
sub ecx, eax
mov dword [ebp - 4], eax
push ecx
lea eax, [eax + 0x465fc8]
push eax
push str.HOMEPATH
call ebx
test eax, eax
pop ebx
jne 0x43da79
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
call fcn.0043fd50
pop ecx
jmp 0x43da7f
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
lea eax, [eax + 0x465fc8]
push str.PUTTY.RND
push eax
call fcn.0043fe70
pop ecx
pop ecx
pop edi
pop esi
leave
ret

Function at 0x43da96
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp byte [0x465fc8], bl
jne 0x43daaf
call fcn.0043d9cb
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push 0x465fc8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x43db20
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push ebx
lea ecx, [ebp - 4]
push ecx
mov edi, 0x400
push edi
lea ecx, [ebp - 0x408]
push ecx
push eax
jmp 0x43db0f
cmp dword [ebp - 4], ebx
je 0x43db15
push dword [ebp - 4]
lea eax, [ebp - 0x408]
push eax
call dword [ebp + 8]
pop ecx
pop ecx
push ebx
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 8]
call esi
test eax, eax
jne 0x43daeb
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43db23
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp byte [0x465fc8], bl
push esi
jne 0x43db38
call fcn.0043d9cb
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push 0x465fc8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x43db72
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push edi
mov edi, 0x105
jmp 0x43dbc8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x43dbba
push dword [ebp - 4]
call fcn.0043db76
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push edi
lea eax, [ebp - 0x10c]
push eax
push 0
push ebx
call esi
test eax, eax
je 0x43db92
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
cmp byte [0x465fc8], 0
jne 0x43dbf5
call fcn.0043d9cb
push ebx
push esi
push edi
push 0x465fc8
call fcn.004425d7
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
pop ecx
lea eax, [ebp - 4]
push eax
push str.SoftwareSimonTathamPuTTY
mov ebx, 0x80000001
push ebx
call edi
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x43dc32
push dword [ebp - 4]
call fcn.0043db76
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 0x43dc98
push str.PuTTY
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x105
lea eax, [ebp - 0x110]
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 0x43dc98
lea eax, [ebp - 4]
push eax
push str.Software
push ebx
call edi
test eax, eax
jne 0x43dc98
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