joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1080980
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10809ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10809ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4a5222
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4a5261
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4a5261
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a5261
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4a5261
cmp dword [ecx + 0x74], 0xe
jbe 0x4a5261
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4aac83
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4aad20
push ebx
push esi
call fcn.004aac4c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004aabe0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4aaccd
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4aad1f
push edi
push eax
call fcn.004ab8a0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4aaced
call fcn.004a9741
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4aad1e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004aabe0
add esp, 0x20
test eax, eax
jne 0x4aad0c
push edi
call fcn.004a9741
jmp 0x4aad14
push ebx
call fcn.004a9741
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4ac01d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4cfab0
push 0x4cfaa8
push str.FlsAlloc
push 0x1f
call fcn.004abedc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ac051
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b2130]
call esi
jmp 0x4ac057
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4ac09b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4cfac0
push 0x4cfab8
push str.FlsGetValue
push 0x21
call fcn.004abedc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ac0d2
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b2130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4ac0da
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4cfac8
push 0x4cfac0
push str.FlsSetValue
push 0x22
call fcn.004abedc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ac114
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4b2130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4b1570
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4b159d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b159d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401100
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x40112e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov eax, 2
pop esi
ret
mov eax, dword [esp + 0x10]
sub eax, esi
pop esi
neg eax
sbb eax, eax
and eax, 3
ret

Function at 0x402160
Capabilities:
Get disk size

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x124
push ebp
or ebp, 0xffffffff
test eax, eax
push edi
je 0x402179
mov dword [eax], 1
mov edi, dword [esp + 0x130]
test edi, edi
je 0x4022ee
cmp byte [edi], 0
je 0x4022ee
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
push esi
lea edx, [esp + 0x2c]
mov eax, ecx
mov esi, edi
mov edi, edx
mov bl, 0x5c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [esp + 0x2d], 0x3a
jne 0x4021c8
cmp byte [esp + 0x2e], bl
jne 0x4021c8
mov byte [esp + 0x2f], 0
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x402264
push str.GetDiskFreeSpaceExA
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40224d
cmp byte [esp + 0x2c], bl
jne 0x402207
cmp byte [esp + 0x2d], bl
jne 0x402207
lea ecx, [esp + 0x2c]
push ecx
call fcn.00402040
jmp 0x402211
lea edx, [esp + 0x2c]
push edx
call fcn.00402090
add esp, 4
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
push eax
push ecx
lea eax, [esp + 0x34]
push edx
push eax
call edi
test eax, eax
je 0x40224d
mov ebp, dword [esp + 0x18]
cmp ebp, 0x400
jb 0x402241
mov ebp, 0xfffffffe
jmp 0x40224d
mov ecx, dword [esp + 0x14]
shl ebp, 0x16
shr ecx, 0xa
add ebp, ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
cmp ebp, 0xffffffff
je 0x402264
mov eax, dword [esp + 0x13c]
test eax, eax
je 0x4022e1
mov al, byte [esp + 0x2c]
mov dword [esp + 0x10], 0
cmp al, bl
mov al, byte [esp + 0x2d]
jne 0x40227c
cmp al, bl
je 0x402289
cmp al, 0x3a
jne 0x402289
mov byte [esp + 0x2e], bl
mov byte [esp + 0x2f], 0
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x38]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceA]
test eax, eax
je 0x4022e1
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
cmp ebp, 0xffffffff
jne 0x4022c9
mov ebp, eax
imul ebp, ecx
shr ebp, 8
imul ebp, dword [esp + 0x10]
shr ebp, 2
mov edx, dword [esp + 0x13c]
test edx, edx
je 0x4022e1
imul eax, ecx
add eax, 0x3ff
shr eax, 0xa
mov dword [edx], eax
pop esi
pop ebx
mov eax, ebp
pop edi
pop ebp
add esp, 0x124
ret
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x124
ret
Function at 0x402640
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
push edi
push 5
push 0
push 0
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x40271a
mov ecx, dword [esp + 0x218]
lea eax, [esp + 8]
push eax
push ecx
push 0x80000000
call fcn.00402730
add esp, 0xc
test eax, eax
jne 0x40271a
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea edx, [esp + 8]
push str._shellopencommand
push edx
call edi
lea eax, [esp + 8]
lea ecx, [esp + 8]
push eax
push ecx
push 0x80000000
call fcn.00402730
add esp, 0xc
test eax, eax
jne 0x40271a
push esi
lea edx, [esp + 0xc]
push str.__1_
push edx
call fcn.00419020
mov esi, eax
add esp, 8
test esi, esi
jne 0x4026fd
lea eax, [esp + 0xc]
push 0x4222fc
push eax
call fcn.00419020
mov esi, eax
add esp, 8
test esi, esi
jne 0x4026fd
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [esp + eax + 0xb]
jmp 0x402700
mov byte [esi], 0
push 0x4222f8
push esi
call edi
push ebx
push esi
call edi
lea edx, [esp + 0xc]
push 5
push edx
call dword [sym.imp.KERNEL32.DLL_WinExec]
pop esi
pop edi
pop ebx
add esp, 0x208
ret

Function at 0x402730
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x402779
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
mov dword [esp + 8], 0x104
push eax
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret

Function at 0x402780
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x218]
push 0x208
push eax
push edi
call fcn.00402850
add esp, 0xc
push edi
call dword [sym.imp.GDI32.dll_AddFontResourceA]
mov al, byte [esp + 0xc]
test al, al
je 0x40282a
push 0x5c
push edi
call fcn.00418b20
mov esi, eax
add esp, 8
test esi, esi
je 0x4027c5
inc esi
jmp 0x4027c7
mov esi, edi
lea ecx, [esp + 0xc]
push str.__TrueType_
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov ecx, dword [0x4275f4]
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionFonts
test ecx, ecx
je 0x4027eb
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
lea edx, [esp + 8]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40282a
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0xc]
push esi
push 1
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
add esp, 0x20c
ret
Function at 0x402a70
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x214]
push 0x208
push eax
push esi
call fcn.00402850
add esp, 0xc
push esi
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
mov al, byte [esp + 8]
test al, al
je 0x402aff
push 0x5c
push esi
call fcn.00418b20
add esp, 8
lea ecx, [esp + 8]
push str.__TrueType_
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov ecx, dword [0x4275f4]
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionFonts
test ecx, ecx
je 0x402acf
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
lea edx, [esp + 4]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402aff
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
add esp, 0x20c
ret

Function at 0x402ba0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push ebx
push ebp
push edi
push 0x208
call fcn.00418c70
mov ebp, eax
xor ebx, ebx
add esp, 4
cmp ebp, ebx
jne 0x402bc4
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
mov eax, dword [esp + 0x68]
push esi
cmp eax, ebx
je 0x402be8
cmp byte [eax], bl
je 0x402be8
push eax
mov eax, dword [esp + 0x6c]
push eax
push str._s__s
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x402c09
mov edi, dword [esp + 0x68]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10]
mov edi, dword [esp + 0x70]
lea ecx, [esp + 0x20]
push eax
push ecx
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
push ebp
push ebx
mov dword [edi], ebx
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x74], ebx
mov word [esp + 0x7a], bx
mov dword [esp + 0x7c], ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
push ebp
mov esi, eax
call fcn.00418dd3
add esp, 4
cmp esi, ebx
pop esi
jne 0x402c63
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
mov edx, dword [esp + 0xc]
mov eax, 1
mov dword [edi], edx
pop edi
pop ebp
pop ebx
add esp, 0x54
ret
Function at 0x405030
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, 1
push esi
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
push esi
call fcn.00402040
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
add ecx, esi
push ebp
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push esi
call fcn.00401040
add esp, 0x14
cmp eax, 0xffffffff
je 0x40508b
push eax
call fcn.004012c0
add esp, 4
or eax, 0xffffffff
jmp 0x405099
push esi
call fcn.00401090
add esp, 4
cmp eax, 0xffffffff
jne 0x4050a2
inc ebx
cmp ebx, 0x3e7
jl 0x405041
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4051d0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
xor bl, bl
test edi, edi
jbe 0x4051fa
mov eax, dword [esi]
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov al, byte [ecx]
xor al, dl
xor al, 0x6a
inc word [ecx]
add bl, al
dec edi
jne 0x4051e5
mov edi, dword [esi]
mov dl, byte [edi]
inc edi
mov dword [esi], edi
mov al, byte [ecx]
xor al, dl
pop edi
xor al, 0x6a
inc word [ecx]
xor ecx, ecx
cmp bl, al
sete cl
pop esi
mov eax, ecx
pop ebx
ret

Function at 0x405220
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1a]
and eax, 0xffff
and edx, 0xffff
xor esi, esi
mov byte [esp + 0x13], 0
lea eax, [eax + eax*4]
mov ebp, 8
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x1e]
and ecx, 0xffff
xor edi, edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x30]
mov bl, byte [ecx]
mov al, dl
xor al, bl
lea esi, [esi + esi*4]
xor al, 0x6a
inc ecx
mov byte [esp + 0x2c], al
inc edx
mov ebx, dword [esp + 0x2c]
and ebx, 0xff
lea esi, [ebx + esi*2 - 0x41]
mov bl, byte [esp + 0x13]
add bl, al
dec ebp
mov byte [esp + 0x13], bl
jne 0x40527b
mov ebp, 8
mov bl, byte [ecx]
mov al, dl
xor al, bl
lea edi, [edi + edi*4]
xor al, 0x6a
inc ecx
mov byte [esp + 0x2c], al
inc edx
mov ebx, dword [esp + 0x2c]
and ebx, 0xff
lea edi, [ebx + edi*2 - 0x41]
mov bl, byte [esp + 0x13]
add bl, al
dec ebp
mov byte [esp + 0x13], bl
jne 0x4052ac
mov al, byte [ecx]
mov cl, bl
xor al, dl
xor al, 0x6a
cmp cl, al
jne 0x4052fd
mov eax, dword [esp + 0x14]
cmp eax, esi
jb 0x4052fd
cmp eax, edi
jae 0x4052fd
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x408860
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, dword [0x427228]
push esi
push edi
cmp byte [eax], 0
jne 0x408a13
mov edi, dword [0x427590]
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [0x4271bc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x4271bc]
push eax
call fcn.00418b20
add esp, 8
test eax, eax
je 0x4088ae
inc eax
jmp 0x4088b3
mov eax, dword [0x4271bc]
mov byte [eax], 0x72
inc eax
push ebx
push 0
mov byte [eax], 0x65
inc eax
mov byte [eax], 0x67
inc eax
mov byte [eax], 0x69
inc eax
mov byte [eax], 0x6e
inc eax
mov byte [eax], 0x66
inc eax
mov byte [eax], 0x6f
inc eax
mov byte [eax], 0x2e
inc eax
mov byte [eax], 0x74
inc eax
mov byte [eax], 0x78
inc eax
mov byte [eax], 0x74
mov byte [eax + 1], 0
mov ecx, dword [0x4271bc]
push ecx
call fcn.00401040
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
je 0x408970
push ebx
call fcn.004011c0
mov esi, eax
add esp, 4
test esi, esi
jbe 0x408967
cmp esi, 0x186a0
jae 0x408967
lea edx, [esi + 1]
push edx
call fcn.00418c70
mov edi, eax
add esp, 4
test edi, edi
je 0x408967
push esi
push edi
push ebx
call fcn.004010c0
mov byte [edi + esi], 0
mov eax, dword [0x427550]
add esp, 0xc
mov eax, dword [eax + 8]
test eax, eax
jne 0x40894b
push esi
push edi
call fcn.00408630
add esp, 8
jmp 0x40895e
xor ecx, ecx
cmp eax, 4
sete cl
push ecx
push esi
push edi
call fcn.004094b0
add esp, 0xc
push edi
call fcn.00418dd3
add esp, 4
push ebx
call fcn.004012c0
add esp, 4
mov edx, dword [0x427228]
pop ebx
cmp byte [edx], 0
jne 0x408a13
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x408a13
mov eax, dword [0x42762c]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x408a13
push ebp
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebp, eax
test ebp, ebp
je 0x408a0c
push ebp
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov edx, eax
test edx, edx
je 0x408a05
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x427550]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x4089f2
push esi
push edx
call fcn.00408630
add esp, 8
push ebp
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebp
pop edi
pop esi
ret
xor ecx, ecx
cmp eax, 4
sete cl
push ecx
push esi
push edx
call fcn.004094b0
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebp
pop edi
pop esi
ret
Function at 0x408cb0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, dword [0x427228]
push esi
cmp byte [eax], 0
jne 0x408d8f
push edi
mov edi, dword [0x427590]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, dword [0x4271bc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x4271bc]
push eax
call fcn.00418b20
mov edx, eax
add esp, 8
test edx, edx
je 0x408d00
inc edx
jmp 0x408d06
mov edx, dword [0x4271bc]
mov edi, str.reginfo.txt
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x4271bc]
push ecx
call fcn.00408c00
mov edx, dword [0x427228]
add esp, 4
mov al, byte [edx]
pop edi
test al, al
jne 0x408d8f
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x408d8f
mov eax, dword [0x42762c]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x408d8f
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x408d89
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
test eax, eax
je 0x408d82
push eax
call fcn.00408b70
add esp, 4
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
ret
Function at 0x40ac10
Capabilities:
Check for time delay via gettickcount
Get installed programs
Query or enumerate registry value

Disassembly:
sub esp, 0x190
mov eax, 0x427510
test eax, eax
push ebx
je 0x40add2
mov eax, dword [0x427640]
xor ebx, ebx
test eax, eax
jle 0x40add2
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetTickCount]
push esi
push edi
cmp ebx, dword [0x427644]
je 0x40adc1
mov eax, dword [ebx*4 + 0x427510]
test eax, eax
je 0x40adc1
cmp dword [eax], 0
je 0x40adc1
test byte [eax + 6], 2
je 0x40adc1
mov ecx, dword [ebx*4 + 0x4274d0]
mov edx, dword [ecx + 0xc]
test edx, edx
je 0x40adc1
cmp byte [edx], 0
je 0x40adc1
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
lea esi, [esp + 0x38]
not ecx
sub edi, ecx
mov eax, esi
mov esi, edi
mov edx, ecx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x38]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40adc1
mov ecx, 0x5a
lea edi, [esp + 0x38]
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push 0
push str.UninstallString
push eax
mov dword [esp + 0x28], 0x168
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40ad46
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40adc1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x38]
push 0
push eax
call fcn.00401040
add esp, 8
cmp eax, 0xffffffff
je 0x40adc1
push eax
call fcn.004012c0
push 1
lea ecx, [esp + 0x40]
push 0x4223f0
push ecx
call fcn.00402b30
add esp, 0x10
test eax, eax
je 0x40adc1
call ebp
mov esi, eax
call ebp
sub eax, esi
cmp eax, 0xbb8
jae 0x40adc1
push 0
push 0
push 0
lea edx, [esp + 0x28]
push 0
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
lea eax, [esp + 0x38]
push eax
call fcn.004190a0
add esp, 4
test eax, eax
je 0x40adc1
call ebp
sub eax, esi
cmp eax, 0xbb8
jb 0x40ad92
mov eax, dword [0x427640]
inc ebx
cmp ebx, eax
jl 0x40ac3c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
Function at 0x40b7f0
Capabilities:
Get common file path

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push esi
xor esi, esi
push eax
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40b856
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40b856
mov edx, dword [esp + 0xc]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x40b826
mov esi, 1
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x40b856
mov eax, dword [esp + 4]
test eax, eax
je 0x40b856
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40b850
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop esi
pop ecx
ret