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

Disassembly:
sub esp, 0x64
push ebx
push ebp
mov ebp, dword [esp + 0x74]
mov ebx, ecx
mov edx, ebp
push esi
push edi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x49beb2
sub edx, ecx
sar edx, 1
cmp edx, 0x104
ja 0x49c06e
mov edi, dword [esp + 0x78]
xor edx, edx
movzx ecx, word [ebp]
mov esi, 0x800
test cx, cx
movzx eax, word [edi + 0x1e]
cmovne esi, edx
mov edx, dword [ebx + 0x20]
and eax, 0xfffff6fb
or esi, eax
test edx, edx
jne 0x49bf09
push ebp
push edi
mov word [edi + 0x1e], si
call fcn.0049c080
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
movzx eax, word [ebp]
xor ecx, ecx
mov dword [esp + 0x10], 0x30
mov dword [esp + 0x14], ecx
test ax, ax
je 0x49bf3a
movzx eax, word [edi + 0x1e]
test eax, 0x800
je 0x49bf6f
movzx eax, word [edi + 0x1c]
mov ecx, 1
mov dword [esp + 0x1c], eax
jmp 0x49bf6f
cmp dword [ebx + 0xc], edi
jne 0x49bf6f
push 0
cmp ebx, dword [0x4fe6ec]
jne 0x49bf5b
or eax, 0xffffffff
mov ecx, 0xff14
cmp byte [ebx + 0x10], 0
cmovne eax, ecx
push eax
jmp 0x49bf5d
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0xc], 0
push 9
push dword [edi]
or ecx, 0x10
mov dword [esp + 0x20], esi
mov esi, dword [sym.imp.VCRUNTIME140.dll_wcschr]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], ebp
call esi
push 9
push ebp
mov dword [esp + 0x8c], eax
call esi
mov edx, dword [esp + 0x8c]
add esp, 0x10
mov ecx, eax
test edx, edx
je 0x49bfb9
test ecx, ecx
je 0x49bfb9
push ecx
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
mov esi, eax
jmp 0x49bfc6
xor eax, eax
cmp edx, ecx
setne al
mov dword [esp + 0x7c], eax
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0
push dword [edi + 0x14]
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
cmp dword [ebx + 0x24], 2
mov dword [esp + 0x7c], eax
jne 0x49bff8
cmp dword [0x4fb9f8], 0
je 0x49bff8
mov ecx, dword [ebx + 0x20]
call fcn.0048a2e0
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x49c06e
push ebp
push edi
call fcn.0049c080
test eax, eax
je 0x49c06e
mov ax, word [esp + 0x18]
mov word [edi + 0x1e], ax
test esi, esi
je 0x49c01b
mov ecx, ebx
call fcn.0049c7e0
cmp word [ebp], 0
je 0x49c05f
mov eax, dword [edi + 0x24]
test eax, eax
je 0x49c05f
cmp byte [0x4fe873], 0
mov ecx, 0xffffffff
mov dword [esp + 0x40], 0x30
cmovne ecx, eax
mov dword [esp + 0x44], 0x80
lea eax, [esp + 0x40]
mov dword [esp + 0x6c], ecx
push eax
push 0
push dword [edi + 0x14]
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
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 0x4a09e0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cdfed
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 0x4a0b08
nop dword [eax]
cmp edx, dword [ebp + 0x10]
jl 0x4a0a82
cmp dword [0x4fb9fc], 0
mov ecx, 0x42
mov eax, dword [0x4f90f4]
mov esi, 0x4fb8c8
mov edi, eax
xorps xmm0, xmm0
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x2c], 0
movlpd qword [0x4fe698], xmm0
je 0x4a0a7f
mov eax, dword [0x4fab58]
mov ecx, 0x4cfc30
test eax, eax
je 0x4a0a78
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
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.0049ce20
add esp, 0x14
test eax, eax
je 0x4a0aea
cmp dword [ebp - 0x14], 0
jne 0x4a0ac9
mov edx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [ebp - 0x18]
jl 0x4a0a30
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
jmp 0x4a0b0b
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 0x4a6720
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x30008
call fcn.004cd440
push esi
mov esi, dword [esp + 0x3001c]
push edi
mov edi, dword [esp + 0x30018]
test esi, esi
je 0x4a6744
cmp word [esi], 0
jne 0x4a6749
mov esi, str.ERROR
xor eax, eax
mov word [esp + 0x10010], ax
mov word [esp + 8], ax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push 0x8000
push dword [esp + 0x30020]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [esp + 0x3001c]
movzx ecx, word [edi]
cmp word [eax], 0
je 0x4a67cd
lea edx, [esp + 0x10]
test cx, cx
push edx
push 0xffff
lea edx, [esp + 0x10018]
push edx
push esi
push eax
lea eax, [esp + 0x1c]
cmovne eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [0x4fd228]
lea eax, [esp + 0x10010]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004b55f0
pop edi
pop esi
add esp, 0x30008
ret 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10014]
push 0xffff
push eax
test cx, cx
je 0x4a67ed
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
jmp 0x4a67f3
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
test eax, eax
je 0x4a67a9
lea eax, [esp + 0x10010]
mov edx, 0xa
cmp word [eax], 0
jne 0x4a6813
cmp word [eax + 2], 0
je 0x4a67a9
mov word [eax], dx
add eax, 2
jmp 0x4a6803
Function at 0x4a6820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000c
call fcn.004cd440
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
mov esi, ecx
push eax
lea eax, [ebp - 0x1000c]
mov dword [ebp - 4], esi
push eax
push 0x8000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xor edx, edx
mov dword [ebp - 8], 1
lea ecx, [ebp - 0x1000c]
call fcn.004b1df0
mov ebx, dword [ebp + 0x10]
test al, al
jne 0x4a6923
push 0
push 0
push 1
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x1000c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4a6920
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a68a0
sub ecx, edx
sar ecx, 1
lea eax, [ebx + ecx*2]
push 0
mov dword [ebp + 0x10], eax
lea edi, [ecx*2 + 2]
mov ecx, 0x5d
mov word [eax], cx
lea eax, [ebp + 0xc]
push eax
push 4
push 0x4f1384
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a68fa
cmp dword [ebp + 0xc], 4
jne 0x4a68fa
push 0
lea eax, [ebp + 0xc]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a68fa
cmp dword [ebp + 0xc], edi
je 0x4a6901
mov dword [ebp - 8], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov word [ecx], dx
xor ecx, ecx
test eax, eax
cmovne ecx, dword [ebp - 8]
test ecx, ecx
je 0x4a69df
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
cmp word [eax], 0
je 0x4a6940
lea ecx, [ebp - 0x1000c]
push ecx
push dword [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x4a69a1
push 0
mov ecx, esi
call fcn.0043fd10
lea eax, [eax*2 + 4]
call fcn.004cd470
mov edi, dword [ebp + 8]
mov eax, esp
mov dword [ebp + 0x10], eax
mov edx, eax
movzx ecx, word [edi]
test cx, cx
je 0x4a698e
mov esi, ecx
sub edi, eax
nop dword [eax + eax]
xor ecx, ecx
movzx eax, si
cmp si, 0xa
cmovne ecx, eax
mov word [edx], cx
add edx, 2
movzx esi, word [edi + edx]
test si, si
jne 0x4a6970
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [edx], ecx
lea ecx, [ebp - 0x1000c]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
mov esi, eax
lea eax, [ebp - 0x1000c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test esi, esi
je 0x4a69df
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4cfcf8
call fcn.004b55f0
lea esp, [ebp - 0x10018]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
jne 0x4a6a12
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b55f0
lea esp, [ebp - 0x10018]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
push 0x4cfc30
push 0
push 0x4e613c
call fcn.0044e0b0
lea esp, [ebp - 0x10018]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4a71a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
push ebx
push ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
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 0x4a7266
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop dword [eax + eax]
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x4f90f4]
mov eax, dword [eax + 0xd0]
or eax, 0x20019
push eax
push 0
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4a7270
mov ecx, dword [esp + 0x14]
call fcn.004a71a0
push dword [esp + 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4a7270
lea eax, [esp + 0x20]
push eax
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x4a7270
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 0x4a71f0
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 0x4a7280
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 0x4a7375
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
test edi, edi
je 0x4a72a7
cmp word [edi], 0
jne 0x4a72af
test ebx, ebx
je 0x4a7375
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x4f90f4]
mov eax, dword [eax + 0xd0]
or eax, 0x2001f
push eax
push 0
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4a737a
test ebx, ebx
jne 0x4a735c
mov ecx, dword [esp + 0x18]
call fcn.004a71a0
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4a737a
mov eax, dword [0x500104]
test al, 1
jne 0x4a732c
push str.RegDeleteKeyExW
or eax, 1
push 0x4efb90
mov dword [0x500104], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x500108], ecx
jmp 0x4a7332
mov ecx, dword [0x500108]
mov eax, dword [0x4f90f4]
mov eax, dword [eax + 0xd0]
test eax, eax
je 0x4a7350
test ecx, ecx
je 0x4a7350
push 0
push eax
push edi
push ebp
call ecx
mov esi, eax
jmp 0x4a737a
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
jmp 0x4a737a
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a737a
mov esi, 0x57
mov ecx, dword [esp + 0x10]
test esi, esi
push esi
setne al
movzx eax, al
push eax
call fcn.0044e290
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x4b1df0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x250
push ebx
push ebp
push esi
push edi
mov ebp, edx
mov ebx, ecx
test ebx, ebx
je 0x4b1eba
cmp word [ebx], 0
je 0x4b1eba
push 4
push 0x4f19cc
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
lea ecx, [ebx + 8]
test eax, eax
mov edi, ebx
cmove edi, ecx
test edi, edi
je 0x4b1e71
movzx eax, word [edi]
test ax, ax
je 0x4b1e71
mov esi, eax
nop
mov ecx, 0x4eef38
mov edx, 0x3f
nop word [eax + eax]
cmp si, dx
je 0x4b1e8d
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4b1e50
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x4b1e40
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test ebp, ebp
je 0x4b1e7f
mov dword [ebp], eax
cmp eax, 0xffffffff
setne al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4b1eba
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebp, ebp
je 0x4b1eb0
mov eax, dword [esp + 0x10]
mov dword [ebp], eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b2510
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
push edi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x20]
or eax, 1
push eax
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [esp + 0x14]
test eax, eax
jne 0x4b25c9
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x208
push eax
push edi
push 0
push 0
push dword [esp + 0x20]
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4b25c9
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4b25c9
shr ecx, 1
lea eax, [ecx - 1]
mov dword [esp + 0x1c], eax
cmp word [edi + eax*2], si
jne 0x4b25af
test eax, eax
je 0x4b25ce
mov esi, eax
mov edx, eax
mov ecx, eax
nop dword [eax + eax]
cmp word [edi + ecx*2 - 2], 0
mov eax, edx
jne 0x4b25ce
lea eax, [esi - 1]
mov ecx, eax
mov dword [esp + 0x1c], eax
mov esi, eax
mov edx, eax
test ecx, ecx
jne 0x4b2590
pop edi
pop esi
pop ecx
ret
mov dword [esp + 0x1c], ecx
cmp ecx, 0x104
jae 0x4b25c9
xor eax, eax
mov word [edi + ecx*2], ax
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ecx
ret
xor eax, eax
mov word [edi], ax
pop edi
pop esi
pop ecx
ret
Function at 0x4b44b0
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, 0x860
push ebx
push 0x800
lea eax, [esp + 0x68]
mov dword [esp + 8], edx
push 0
push eax
mov ebx, ecx
call sub.VCRUNTIME140.dll_memset
movaps xmm0, xmmword [0x4f2fe0]
lea eax, [esp + 0x1c]
add esp, 0xc
movups xmmword [esp + 0x14], xmm0
movaps xmm0, xmmword [0x4f3020]
push 0xf0000000
movups xmmword [esp + 0x28], xmm0
push 0x18
movaps xmm0, xmmword [0x4f2fc0]
movups xmmword [esp + 0x3c], xmm0
push 0
movaps xmm0, xmmword [0x4f3010]
movups xmmword [esp + 0x50], xmm0
push 0
movaps xmm0, xmmword [0x4f2fb0]
push eax
movups xmmword [esp + 0x68], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4b4689
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 0x4b4689
push esi
mov esi, dword [esp + 0x86c]
test esi, esi
je 0x4b458f
cmp dword [esi], 0
je 0x4b458f
push edi
lea edi, [esp + 0x1c]
xor edx, edx
mov ecx, esi
sub edi, esi
cmp esi, 0x4fa234
jne 0x4b457b
mov eax, dword [edi + ecx]
lea eax, [eax*2 + 0x4f28d8]
jmp 0x4b457d
mov eax, dword [ecx]
mov ax, word [eax]
add ecx, 4
mov word [esp + edx*2 + 0x6c], ax
inc edx
cmp edx, 0x14
jb 0x4b4567
pop edi
lea ecx, [esp + 0x68]
lea edx, [ecx + 2]
pop esi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b4597
sub ecx, edx
sar ecx, 1
push 0
lea eax, [ecx + ecx]
push eax
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4b4689
push 0x800
lea eax, [esp + 0x68]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0x87c]
add esp, 0xc
cmp ecx, 0x80
jne 0x4b45ed
mov eax, 0x660e
jmp 0x4b45fd
xor eax, eax
cmp ecx, 0xc0
setne al
add eax, 0x660f
lea edx, [esp + 0xc]
shl ecx, 0x10
push edx
push ecx
push dword [esp + 0x10]
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x4b4689
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
je 0x4b4689
cmp byte [esp + 0x86c], 0
je 0x4b4651
mov eax, dword [esp + 4]
add eax, 0x10
push eax
lea eax, [esp + 8]
push eax
push ebx
push 0
push 1
push 0
push dword [esp + 0x24]
call dword [0x4fba24]
jmp 0x4b4667
lea eax, [esp + 4]
push eax
push ebx
push 0
push 1
push 0
push dword [esp + 0x20]
call dword [0x4fba20]
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 ebx
add esp, 0x860
ret
xor eax, eax
pop ebx
add esp, 0x860
ret
Function at 0x4b5420
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, 0x4fe6f0
push esi
mov esi, edx
call fcn.00406e50
test eax, eax
jne 0x4b5451
push 0x4cfc30
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4fdb90
call fcn.0044e970
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 0x4b54d9
mov ecx, dword [ebx]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x4b54d9
mov edi, esi
add esi, 4
cmp esi, eax
ja 0x4b54d9
mov edi, dword [edi]
mov ebx, esi
add esi, edi
cmp esi, eax
ja 0x4b54d9
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 0x4b558d
test edi, edi
je 0x4b54c3
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4b5528
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
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 0x4b5467
cmp dword [0x4fe708], 0
je 0x4b551b
cmp dword [0x4fe6f8], 0
je 0x4b5501
push dword [0x4fe6f0]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4fe6f8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4fe708], 0
mov dword [0x4fe6f0], 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 [0x4fe708], 0
je 0x4b5571
cmp dword [0x4fe6f8], 0
je 0x4b5557
push dword [0x4fe6f0]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4fe6f8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4fe708], 0
mov dword [0x4fe6f0], 0
push 0x4cfc30
push 0x4d021c
mov ecx, 0x4fdb90
call fcn.0044e970
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
cmp dword [0x4fe708], 0
je 0x4b55cf
cmp dword [0x4fe6f8], 0
je 0x4b55b5
push dword [0x4fe6f0]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4fe6f8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4fe708], 0
mov dword [0x4fe6f0], 0
push 0x4cfc30
push 0x4e3be8
mov ecx, 0x4fdb90
call fcn.0044e970
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
Function at 0x4b6390
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
movzx eax, word [edi]
cmp eax, 0x41
je 0x4b63a9
cmp eax, 0x61
jne 0x4b6411
cmp word [edi + 2], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jne 0x4b6419
cmp word [ecx], 0
jne 0x4b6419
cmp word [eax], 0
jne 0x4b6419
cmp word [ebp], 0
jne 0x4b6419
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4b6411
cmp byte [ebx + 0xea], 0
jne 0x4b63f6
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4b6411
mov ecx, esi
call fcn.004b7860
test al, al
jne 0x4b6411
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4b640a
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, esi
pop edi
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 0x4b6450
cmp word [edi], 0
jne 0x4b6450
cmp word [ecx], 0
jne 0x4b6450
cmp word [eax], 0
jne 0x4b6450
cmp word [ebp], 0
jne 0x4b6450
mov ecx, ebx
call fcn.004b6d10
test eax, eax
je 0x4b646e
mov ecx, eax
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.004b6480
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.004b6b50
add esp, 0x1c
test eax, eax
jne 0x4b6445
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4b68d0
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 0x4b693a
lea eax, [esp + 0xc]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x4b6947
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 0x4b6947
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4b6947
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b6947
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
xor edi, edi
test ebx, ebx
cmovns edi, ebx
test edi, edi
je 0x4b69b3
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 [0x4fdb70], ebx
jne 0x4b6989
mov edx, 1
mov ecx, 0x8000012f
call fcn.004018d0
jmp 0x4b698d
push 0xa
call ebp
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b69ab
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x18]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jg 0x4b6970
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