joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48bc00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
push ebx
mov ebx, dword [esp + 0x70]
mov edx, ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x48bc12
sub edx, ecx
cmp edx, 0x104
ja 0x48bdc2
mov esi, dword [esp + 0x78]
xor edx, edx
mov cl, byte [ebx]
mov ebp, 0x800
test cl, cl
mov byte [esp + 0x7c], cl
movzx eax, word [esi + 0x1e]
cmovne ebp, edx
mov edx, dword [edi + 0x20]
and eax, 0xfffff6fb
or ebp, eax
test edx, edx
jne 0x48bc64
push ebx
push esi
mov word [esi + 0x1e], bp
call fcn.0048bdd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
xor ecx, ecx
mov dword [esp + 0x10], 0x30
mov dword [esp + 0x14], ecx
cmp byte [esp + 0x7c], cl
je 0x48bc92
movzx eax, word [esi + 0x1e]
test eax, 0x800
je 0x48bcd4
movzx eax, word [esi + 0x1c]
mov ecx, 1
mov dword [esp + 0x1c], eax
jmp 0x48bcd4
cmp dword [edi + 0xc], esi
jne 0x48bcd4
cmp edi, dword [0x4edebc]
jne 0x48bcbe
cmp byte [edi + 0x10], cl
je 0x48bcb6
cmp byte [0x4ec078], cl
je 0x48bcb6
mov eax, 0xff14
push 0
push eax
jmp 0x48bcc2
or eax, 0xffffffff
push 0
push eax
jmp 0x48bcc2
push 0
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
mov ecx, dword [esp + 0x14]
mov dword [edi + 0xc], 0
push 9
push dword [esi]
or ecx, 0x10
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], ebx
call fcn.004b87b6
push 9
push ebx
mov ebp, eax
call fcn.004b87b6
add esp, 0x10
mov ecx, eax
test ebp, ebp
je 0x48bd11
test ecx, ecx
je 0x48bd11
push ecx
push ebp
call fcn.004b626e
add esp, 8
mov ebp, eax
jmp 0x48bd1e
xor eax, eax
cmp ebp, ecx
setne al
mov dword [esp + 0x7c], eax
mov ebp, eax
lea eax, [esp + 0x10]
push eax
push 0
push dword [esi + 0x14]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
cmp dword [edi + 0x24], 2
mov dword [esp + 0x7c], eax
jne 0x48bd50
cmp dword [0x4eb734], 0
je 0x48bd50
mov ecx, dword [edi + 0x20]
call fcn.00479650
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x48bdc2
push ebx
push esi
call fcn.0048bdd0
test eax, eax
je 0x48bdc2
mov ax, word [esp + 0x18]
mov word [esi + 0x1e], ax
test ebp, ebp
je 0x48bd73
mov ecx, edi
call fcn.0048c550
cmp byte [ebx], 0
je 0x48bdb3
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x48bdb3
or eax, 0xffffffff
mov dword [esp + 0x40], 0x30
cmp byte [0x4ee003], 0
mov dword [esp + 0x44], 0x80
cmovne eax, ecx
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x40]
push eax
push 0
push dword [esi + 0x14]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x64
ret 8
Function at 0x4900e0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cefcd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, ecx
mov dword [ebp - 0x14], 0
push esi
xor edx, edx
mov dword [ebp - 0x24], ebx
lea esi, [ebp - 0x24]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 8]
push edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
mov dword [ebx + 4], esi
mov dword [ebp - 4], edx
test eax, eax
jle 0x490208
nop dword [eax]
cmp edx, dword [ebp + 0x10]
jl 0x490182
cmp dword [0x4eb738], 0
mov ecx, 0x3a
mov eax, dword [0x4e88cc]
mov esi, 0x4eb628
mov edi, eax
xorps xmm0, xmm0
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x2c], 0
movlpd qword [0x4ede68], xmm0
je 0x49017f
mov eax, dword [0x4ea23c]
mov ecx, 0x4d5231
test eax, eax
je 0x490178
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx]
add edx, edx
push 0
mov ecx, dword [eax + edx*8]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
mov edx, ecx
push dword [ebp + 8]
push str.call
call fcn.0048cb70
add esp, 0x14
test eax, eax
je 0x4901ea
cmp dword [ebp - 0x14], 0
jne 0x4901c9
mov edx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [ebp - 0x18]
jl 0x490130
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
jmp 0x49020b
mov ecx, dword [ebp - 0x24]
mov eax, 3
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 0xc]
mov eax, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4954b0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1010c
call fcn.004cd3a0
push esi
mov esi, dword [esp + 0x10120]
test esi, esi
je 0x4954cb
cmp byte [esi], 0
jne 0x4954d0
mov esi, str.ERROR
lea eax, [esp + 8]
mov byte [esp + 0x110], 0
push eax
lea eax, [esp + 0x10]
mov byte [esp + 0xb], 0
push eax
push 0x104
push dword [esp + 0x10120]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [esp + 0x1011c]
mov ecx, dword [esp + 0x10118]
cmp byte [eax], 0
mov dl, byte [ecx]
je 0x495557
push edi
lea edi, [esp + 0x10]
test dl, dl
push edi
push 0xffff
lea edi, [esp + 0x11c]
push edi
push esi
push eax
lea eax, [esp + 0x1f]
cmovne eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
mov ecx, dword [0x4eceb0]
lea eax, [esp + 0x110]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004a2730
pop esi
add esp, 0x1010c
ret 0x10
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x114]
push 0xffff
push eax
test dl, dl
je 0x495576
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
jmp 0x49557c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
test eax, eax
je 0x495534
lea eax, [esp + 0x110]
cmp byte [eax], 0
jne 0x495595
cmp byte [eax + 1], 0
je 0x495534
mov byte [eax], 0xa
inc eax
jmp 0x495587
Function at 0x495e30
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
push ebx
push ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x10]
push esi
push edi
push eax
push 0
push 0
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0xff
push eax
lea eax, [esp + 0x34]
mov edi, ecx
push eax
push 0
push edi
call ebx
cmp eax, 0x103
je 0x495ef6
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
nop dword [eax + eax]
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x4e88cc]
mov eax, dword [eax + 0xb0]
or eax, 0x20019
push eax
push 0
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x495f00
mov ecx, dword [esp + 0x14]
call fcn.00495e30
push dword [esp + 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x495f00
lea eax, [esp + 0x20]
push eax
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x495f00
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0xff
push eax
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push esi
push edi
call ebx
cmp eax, 0x103
jne 0x495e80
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x495f10
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 8], ecx
push esi
push edi
test ebp, ebp
je 0x496004
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
test edi, edi
je 0x495f36
cmp byte [edi], 0
jne 0x495f3e
test ebx, ebx
je 0x496004
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x4e88cc]
mov eax, dword [eax + 0xb0]
or eax, 0x2001f
push eax
push 0
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x496009
test ebx, ebx
jne 0x495feb
mov ecx, dword [esp + 0x18]
call fcn.00495e30
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x496009
mov eax, dword [0x50f554]
test al, 1
jne 0x495fbb
push str.RegDeleteKeyExA
or eax, 1
push str.advapi32
mov dword [0x50f554], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x50f558], ecx
jmp 0x495fc1
mov ecx, dword [0x50f558]
mov eax, dword [0x4e88cc]
mov eax, dword [eax + 0xb0]
test eax, eax
je 0x495fdf
test ecx, ecx
je 0x495fdf
push 0
push eax
push edi
push ebp
call ecx
mov esi, eax
jmp 0x496009
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
jmp 0x496009
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x496009
mov esi, 0x57
mov ecx, dword [esp + 0x10]
test esi, esi
push esi
setne al
movzx eax, al
push eax
call fcn.0043e7b0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x49ee60
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x148
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x49ef0f
cmp byte [edi], 0
je 0x49ef0f
push 4
push 0x4e0f6c
push edi
call fcn.004bdf03
add esp, 0xc
test eax, eax
je 0x49ee98
mov eax, edi
mov esi, eax
jmp 0x49eea1
lea eax, [edi + 4]
mov esi, eax
test eax, eax
je 0x49eec4
mov dl, byte [eax]
test dl, dl
je 0x49eec4
mov ecx, 0x4df280
mov al, 0x3f
nop
cmp dl, al
je 0x49eee1
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x49eeb0
mov dl, byte [esi + 1]
inc esi
test dl, dl
jne 0x49eea7
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test ebx, ebx
je 0x49eed1
mov dword [ebx], eax
cmp eax, 0xffffffff
setne al
pop edi
pop esi
pop ebx
add esp, 0x148
ret
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x49ef0f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x49ef03
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
mov al, 1
pop edi
pop esi
pop ebx
add esp, 0x148
ret
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x148
ret

Function at 0x49f430
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push edi
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x1c]
or eax, 1
push eax
push 0
push str.SOFTWAREAutoHotkey
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x49f4d2
push esi
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x104
push eax
push edi
push 0
push 0
push str.InstallDir
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x49f4d2
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x49f4d2
dec ecx
mov dword [esp + 0x18], ecx
cmp byte [ecx + edi], 0
jne 0x49f4ba
mov eax, ecx
test ecx, ecx
je 0x49f4d7
cmp byte [ecx + edi - 1], 0
jne 0x49f4d7
add ecx, 0xffffffff
mov eax, ecx
mov dword [esp + 0x18], ecx
jne 0x49f4a5
pop edi
pop ecx
ret
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, 0x104
jae 0x49f4d2
mov byte [ecx + edi], 0
mov eax, dword [esp + 0x18]
pop edi
pop ecx
ret
mov byte [edi], 0
xor eax, eax
pop edi
pop ecx
ret
Function at 0x49fd30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov ebp, ecx
xor ebx, ebx
mov dword [esp + 0xc], ebp
push edi
mov edi, edx
mov dword [esp + 0x24], edi
test ebp, ebp
je 0x49fd5b
push 2
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
mov dword [esp + 0x1c], eax
jmp 0x49fd65
mov esi, dword [0x4eb7a0]
mov dword [esp + 0x1c], esi
test esi, esi
je 0x49fef6
test edi, edi
jns 0x49fd7a
mov eax, edi
neg eax
movzx eax, ax
jmp 0x49fdab
test edi, edi
mov dword [esp + 0x2c], ebx
mov eax, 1
mov dword [esp + 0x30], 0x4ee0ed
cmovne eax, edi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push 0x49fd00
push 0xe
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov eax, dword [esp + 0x30]
cmp eax, 0x4ee0ed
je 0x49fecf
push 0xe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x49fecf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x49fecf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x49fecf
cmp dword [esp + 0x38], 0xffffffff
mov ebx, dword [esp + 0x3c]
cmovne ebx, dword [esp + 0x38]
test ebx, ebx
jne 0x49fe0d
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [esp + 0x18]
mov ebx, eax
lea eax, [ecx + 6]
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], eax
xor ebp, ebp
movzx eax, word [ecx + 4]
mov dword [esp + 0x18], eax
test eax, eax
je 0x49fec9
mov edi, dword [esp + 0x20]
mov esi, 0x100
movzx edx, byte [edi]
test edx, edx
cmove edx, esi
xor ecx, ecx
cmp edx, ebp
jle 0x49fe4c
cmp ebp, ebx
setl cl
jmp 0x49fe51
cmp edx, ebx
setge cl
test ecx, ecx
mov eax, edi
cmove eax, dword [esp + 0x14]
add edi, 0xe
test ecx, ecx
mov dword [esp + 0x14], eax
cmove edx, ebp
sub dword [esp + 0x18], 1
mov ebp, edx
jne 0x49fe37
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
test eax, eax
je 0x49fec9
movzx eax, word [eax + 0xc]
push 3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x49fec9
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x49fec9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x49fec9
push 0
push 0
push 0
push 0x30000
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov ebx, eax
jmp 0x49fecb
xor ebx, ebx
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x49fee7
test ebx, ebx
je 0x49fee7
mov dword [eax], esi
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x24
ret
test ebp, ebp
je 0x49fef2
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
jne 0x49fedd
test edi, edi
jle 0x49ff0f
lea eax, [edi - 1]
push eax
push ebp
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
xor eax, eax
cmp edi, 0xffffffff
cmovl eax, edi
push eax
push ebp
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x4a14d0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x410
push edi
push 0x400
lea eax, [esp + 0x18]
mov dword [esp + 8], edx
push 0
push eax
mov edi, ecx
call fcn.004b4390
add esp, 0xc
lea eax, [esp + 0x10]
push 0xf0000000
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4a166b
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x8004
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4a166b
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x4a1572
cmp dword [ecx], 0
je 0x4a1572
push esi
xor edx, edx
mov eax, ecx
mov esi, 0x4e1774
nop dword [eax]
cmp ecx, 0x4e9a0c
jne 0x4a155c
mov eax, esi
jmp 0x4a155e
mov eax, dword [eax]
mov al, byte [eax]
add esi, 5
mov byte [esp + edx + 0x18], al
inc edx
cmp dword [ecx + edx*4], 0
lea eax, [ecx + edx*4]
jne 0x4a1550
pop esi
lea ecx, [esp + 0x14]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a1580
push 0
sub ecx, edx
lea eax, [esp + 0x18]
push ecx
push eax
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4a166b
push 0x400
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004b4390
mov ecx, dword [esp + 0x42c]
add esp, 0xc
mov edx, ecx
shl edx, 0x10
cmp ecx, 0x80
jne 0x4a15d2
mov eax, 0x660e
jmp 0x4a15e2
xor eax, eax
cmp ecx, 0xc0
setne al
add eax, 0x660f
lea ecx, [esp + 0xc]
push ecx
push edx
push dword [esp + 0x10]
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x4a166b
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
je 0x4a166b
cmp byte [esp + 0x41c], 0
je 0x4a1633
mov eax, dword [esp + 4]
add eax, 0x10
push eax
lea eax, [esp + 8]
push eax
push edi
push 0
push 1
push 0
push dword [esp + 0x24]
call dword [0x4eb768]
jmp 0x4a1649
lea eax, [esp + 4]
push eax
push edi
push 0
push 1
push 0
push dword [esp + 0x20]
call dword [0x4eb764]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 4]
pop edi
add esp, 0x410
ret
xor eax, eax
pop edi
add esp, 0x410
ret
Function at 0x4a2560
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, 0x4ed814
push esi
mov esi, edx
call fcn.00405990
test eax, eax
jne 0x4a2591
push 0x4d5231
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4ed830
call fcn.0043ed90
pop esi
pop ebx
add esp, 8
ret
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [ebx + esi]
lea esi, [ebx + 4]
mov dword [esp + 0x14], eax
cmp esi, eax
ja 0x4a2619
mov ecx, dword [ebx]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x4a2619
mov edi, esi
add esi, 4
cmp esi, eax
ja 0x4a2619
mov edi, dword [edi]
mov ebx, esi
add esi, edi
cmp esi, eax
ja 0x4a2619
xor eax, eax
test edi, edi
sete al
add eax, edi
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x4a26cd
test edi, edi
je 0x4a2603
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4a2668
push edi
push ebx
push eax
call fcn.004b4620
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, esi
push ebp
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetClipboardData]
mov eax, dword [esp + 0x14]
lea esi, [ebx + 4]
cmp esi, eax
jbe 0x4a25a7
cmp dword [0x4ed82c], 0
je 0x4a265b
cmp dword [0x4ed81c], 0
je 0x4a2641
push dword [0x4ed814]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4ed81c], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4ed82c], 0
mov dword [0x4ed814], 0
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x4ed82c], 0
je 0x4a26b1
cmp dword [0x4ed81c], 0
je 0x4a2697
push dword [0x4ed814]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4ed81c], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4ed82c], 0
mov dword [0x4ed814], 0
push 0x4d5231
push 0x4d5550
mov ecx, 0x4ed830
call fcn.0043ed90
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
cmp dword [0x4ed82c], 0
je 0x4a270f
cmp dword [0x4ed81c], 0
je 0x4a26f5
push dword [0x4ed814]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4ed81c], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4ed82c], 0
mov dword [0x4ed814], 0
push 0x4d5231
push str.Out_of_memory.
mov ecx, 0x4ed830
call fcn.0043ed90
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
Function at 0x4a3450
Capabilities:
Check for foreground window switch
Log keystrokes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov ebx, ecx
push esi
push edi
mov edi, edx
mov al, byte [edi]
cmp al, 0x41
je 0x4a3466
cmp al, 0x61
jne 0x4a34ca
cmp byte [edi + 1], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jne 0x4a34d2
cmp byte [ecx], 0
jne 0x4a34d2
cmp byte [eax], 0
jne 0x4a34d2
cmp byte [ebp], 0
jne 0x4a34d2
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4a34ca
cmp byte [ebx + 0xca], 0
jne 0x4a34af
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4a34ca
mov ecx, esi
call fcn.004a4900
test al, al
jne 0x4a34ca
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4a34c3
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
test dl, dl
jne 0x4a34f4
cmp byte [edi], dl
jne 0x4a34f4
cmp byte [ecx], dl
jne 0x4a34f4
cmp byte [eax], dl
jne 0x4a34f4
cmp byte [ebp], dl
jne 0x4a34f4
mov ecx, ebx
call fcn.004a3cf0
jmp 0x4a350e
push dword [esp + 0x28]
push dword [esp + 0x28]
push 0
push edx
push ebp
push eax
push ecx
mov edx, edi
mov ecx, ebx
call fcn.004a3b20
add esp, 0x1c
test eax, eax
jne 0x4a3517
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
mov ecx, eax
pop ebx
jmp fcn.004a3530
Function at 0x4a38b0
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ecx
cmp byte [esp + 8], 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, ecx
je 0x4a391a
lea eax, [esp + 0xc]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x4a3927
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a3927
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4a3927
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a3927
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
xor edi, edi
test ebx, ebx
cmovns edi, ebx
test edi, edi
je 0x4a3993
push ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword fs:[0x24]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x18], eax
nop word [eax + eax]
cmp dword [0x4ed7f8], ebx
jne 0x4a3969
mov edx, 1
mov ecx, 0x8000012f
call fcn.00401730
jmp 0x4a396d
push 0xa
call ebp
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a398b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x18]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jg 0x4a3950
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret