joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4abede
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push 0x66c
mov eax, 0x564fb9
call fcn.00539a44
xor eax, eax
mov ebx, ecx
mov esi, edx
mov dword [ebp - 0x630], esi
mov dword [ebp - 0x62c], eax
cmp word [ebx], ax
je 0x4ac0b2
push 0x206
push eax
lea eax, [ebp - 0x216]
xor ecx, ecx
push eax
mov word [ebp - 0x218], cx
call fcn.00537010
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00498bbb
pop ecx
pop ecx
test eax, eax
je 0x4ac0aa
xor eax, eax
cmp ax, word [ebp - 0x218]
je 0x4ac0aa
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x65c]
call fcn.0040a8b0
and dword [ebp - 4], 0
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x634], eax
mov eax, dword [esi]
mov dword [ebp - 0x638], eax
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x640]
push eax
push esi
call fcn.004c7eb3
lea edi, [ebp - 0x638]
mov esi, eax
call fcn.00470a9c
mov bl, al
neg bl
sbb bl, bl
or dword [ebp - 4], 0xffffffff
xor esi, esi
push 0
inc esi
push esi
lea ecx, [ebp - 0x65c]
inc bl
call fcn.004053e5
test bl, bl
jne 0x4ac0aa
xor eax, eax
mov edi, 0x206
push edi
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.00537010
lea eax, [ebp - 0x420]
add esp, 0xc
push eax
lea ebx, [ebp - 0x218]
call fcn.00498d48
pop ecx
test eax, eax
je 0x4ac0aa
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4ac0aa
push edi
mov word [ebp - 0x628], ax
xor edi, edi
lea eax, [ebp - 0x626]
push edi
push eax
call fcn.00537010
add esp, 0xc
lea eax, [ebp - 0x628]
push eax
push edi
push edi
push 0x7d0
push esi
push edi
xor edx, edx
mov ecx, ebx
call fcn.0049e3b9
add esp, 0x18
test eax, eax
jne 0x4ac07a
mov eax, ebx
push eax
lea ecx, [ebp - 0x678]
call fcn.0040a8b0
lea eax, [ebp - 0x678]
push eax
push dword [ebp - 0x630]
mov dword [ebp - 4], esi
call fcn.0045d3dd
push edi
push esi
lea ecx, [ebp - 0x678]
mov dword [eax], esi
call fcn.004053e5
jmp 0x4ac0aa
lea ebx, [ebp - 0x420]
call fcn.0049699b
push 0
mov eax, ebx
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x62c], eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x62c]
jmp 0x4ac0b4
xor eax, eax
call fcn.00539ac7
ret
Function at 0x4ae340
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x57c6dc
push dword [ebp + 8]
call fcn.00532206
pop ecx
pop ecx
mov edi, eax
xor esi, esi
push 3
mov dword [ebp + 8], edi
pop ebx
cmp edi, esi
je 0x4ae408
push 2
push esi
push edi
call fcn.00530734
push edi
call fcn.005327b7
push esi
push esi
push dword [ebp + 8]
mov edi, eax
call fcn.00530734
add esp, 0x1c
cmp edi, esi
jle 0x4ae3ff
lea ebx, [edi + 2]
push ebx
call fcn.0052f86d
mov esi, eax
pop ecx
test esi, esi
jne 0x4ae39e
push 3
pop eax
jmp 0x4ae40a
push ebx
push 0
push esi
call fcn.00537010
push dword [ebp + 8]
push 1
push edi
push esi
call fcn.005325fd
movzx ax, byte [esi + 1]
movzx cx, byte [esi]
shl ax, 8
or ax, cx
movzx ebx, ax
mov eax, 0xbbef
add esp, 0x1c
cmp bx, ax
jne 0x4ae3d9
cmp byte [esi + 2], 0xbf
je 0x4ae3e4
push edi
push esi
call fcn.004ae2f1
test eax, eax
je 0x4ae3e9
push 2
pop ebx
jmp 0x4ae3f8
xor ecx, ecx
mov eax, 0xfeff
cmp bx, ax
sete cl
mov ebx, ecx
push esi
call fcn.0052f9c9
pop ecx
push dword [ebp + 8]
call fcn.0052fd5d
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4ae411
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.004ae1bd
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], ebx
je 0x4ae563
push edi
push 0x57c6dc
push dword [ebp + 0xc]
call fcn.00532206
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 0x14], edi
cmp edi, ebx
je 0x4ae562
push esi
push 2
push ebx
push edi
call fcn.00530734
push edi
call fcn.005327b7
push ebx
mov esi, eax
push ebx
push edi
mov dword [ebp - 8], esi
call fcn.00530734
inc esi
push esi
call fcn.0052f69b
add esp, 0x20
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x4ae55a
push esi
push ebx
push eax
call fcn.00537010
add esp, 0xc
xor esi, esi
cmp dword [ebp - 0xc], 2
jne 0x4ae4c9
push edi
push 1
lea eax, [ebp + 0xf]
push 1
push eax
call fcn.005325fd
add esp, 0x10
jmp 0x4ae4c3
push edi
call fcn.00536bc5
pop ecx
test eax, eax
jne 0x4ae4c9
push edi
push 1
lea eax, [ebp + 0xf]
push 1
push eax
call fcn.005325fd
add esp, 0x10
inc esi
cmp byte [ebp + 0xf], 0x3c
jne 0x4ae4a6
push ebx
push esi
push edi
call fcn.00530734
mov eax, dword [ebp - 8]
push edi
push 1
sub eax, esi
push eax
push dword [ebp - 4]
call fcn.005325fd
mov esi, dword [ebp - 8]
imul esi, esi, 3
xor ecx, ecx
push 2
lea edi, [esi + 1]
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0052f69b
add esp, 0x20
mov dword [ebp + 0xc], eax
cmp eax, ebx
je 0x4ae54e
push edi
push ebx
push eax
call fcn.00537010
add esp, 0xc
cmp dword [ebp - 0xc], 2
push esi
push dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp - 4]
push ebx
jne 0x4ae52d
push 0xfde9
jmp 0x4ae52e
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004adb23
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
call fcn.00530cbd
pop ecx
push dword [ebp - 4]
call fcn.00530cbd
mov edi, dword [ebp - 0x14]
pop ecx
push edi
call fcn.0052fd5d
pop ecx
pop esi
pop edi
mov eax, dword [ebp - 0x10]
pop ebx
leave
ret 0xc
Function at 0x4ae6cf
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x67c
mov eax, dword [0x5afee0]
xor eax, esp
mov dword [esp + 0x678], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0x10]
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
test eax, eax
je 0x4ae869
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x4ae869
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ae869
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x4ae869
xor eax, eax
mov edi, 0x206
push edi
push eax
mov word [esp + 0x480], ax
lea eax, [esp + 0x482]
push eax
call fcn.00537010
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
push 0x588e08
push ebx
lea eax, [esp + 0x480]
push eax
call esi
and dword [esp + 0x20], 0
push 0x24c
lea eax, [esp + 0x28]
push 0
push eax
call fcn.00537010
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x47c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x4ae869
lea eax, [esp + 0x4c]
push 0x583f04
push eax
call fcn.005320ad
pop ecx
pop ecx
test eax, eax
je 0x4ae843
lea eax, [esp + 0x4c]
push 0x583f08
push eax
call fcn.005320ad
pop ecx
pop ecx
test eax, eax
je 0x4ae843
xor eax, eax
push edi
push eax
mov word [esp + 0x278], ax
lea eax, [esp + 0x27a]
push eax
call fcn.00537010
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
push ebx
lea eax, [esp + 0x278]
push eax
call esi
test byte [esp + 0x20], 0x10
lea eax, [esp + 0x270]
je 0x4ae822
push dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
push dword [esp + 0x18]
push eax
call fcn.004ae6cf
jmp 0x4ae843
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x4ae843
push dword [esp + 0x14]
push eax
call fcn.005320ad
pop ecx
pop ecx
test eax, eax
jne 0x4ae843
mov eax, dword [esp + 0x10]
inc dword [eax]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4ae7a6
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
jmp 0x4ae86b
xor eax, eax
mov ecx, dword [esp + 0x684]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0052f7d0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4af6fa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x434], eax
mov edi, edx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x428], esi
cmp dword [eax + 0x28], esi
jne 0x4af735
xor eax, eax
jmp 0x4af864
xor eax, eax
push 0x40e
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push esi
push eax
call fcn.00537010
add esp, 0xc
cmp edi, esi
je 0x4af77d
cmp word [edi], si
je 0x4af77d
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerMenuOrderFavorites
push 0x57c6a4
lea eax, [ebp - 0x41c]
push 0x207
push eax
call fcn.00532a01
add esp, 0x14
jmp 0x4af79b
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerMenuOrderFavorites
push 0x57cb68
lea eax, [ebp - 0x41c]
push 0x208
push eax
call fcn.00532a01
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
push esi
push esi
mov ebx, str.Order
push ebx
lea eax, [ebp - 0x41c]
push eax
mov dword [ebp - 0x420], esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edi, 0x80000001
push edi
call esi
test eax, eax
jne 0x4af85e
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x4af85e
add eax, 4
push eax
call fcn.0052f69b
pop ecx
mov dword [ebp - 0x424], eax
test eax, eax
je 0x4af85e
mov ecx, dword [ebp - 0x420]
add ecx, 4
push ecx
push 0
push eax
call fcn.00537010
add dword [ebp - 0x420], 2
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x424]
lea eax, [ebp - 0x42c]
push eax
push ebx
lea eax, [ebp - 0x41c]
push eax
push edi
mov dword [ebp - 0x42c], 3
call esi
test eax, eax
jne 0x4af85e
mov eax, dword [ebp - 0x434]
push dword [eax + 0x28]
mov ecx, dword [ebp - 0x430]
push dword [ebp - 0x420]
push dword [ebp - 0x424]
call fcn.004af875
mov dword [ebp - 0x428], eax
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052f7d0
leave
ret 4

Function at 0x4afaa5
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x118
xor esi, esi
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.00537010
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4afb49
cmp dword [ebp - 0x110], 2
jne 0x4afb49
cmp dword [ebp - 0x11c], 4
jbe 0x4afb49
cmp dword [ebp - 0x11c], 5
jne 0x4afb1c
cmp dword [ebp - 0x118], 1
je 0x4afb18
cmp dword [ebp - 0x118], 2
jne 0x4afb45
push 0x12
jmp 0x4afb44
cmp dword [ebp - 0x11c], 6
jne 0x4afb45
mov eax, dword [ebp - 0x118]
cmp eax, esi
jne 0x4afb33
push 0x24
jmp 0x4afb44
cmp eax, 1
je 0x4afb42
cmp eax, 2
je 0x4afb42
cmp eax, 3
jne 0x4afb45
push 0x28
pop esi
mov eax, esi
jmp 0x4afb4b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0052f7d0
leave
ret
Function at 0x4b1e1b
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc98
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, edi
mov dword [ebp - 0xc98], esi
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x18], ebx
call fcn.004b220f
cmp esi, ebx
je 0x4b2099
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.00537010
add esp, 0xc
push 0x250
lea eax, [ebp - 0x460]
push ebx
push eax
call fcn.00537010
add esp, 0xc
push esi
push str._s.
mov esi, 0x103
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00532a01
add esp, 0x10
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xc94], eax
cmp eax, 0xffffffff
je 0x4b2081
mov ecx, 0x583f04
lea eax, [ebp - 0x434]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4b1ef1
test dx, dx
je 0x4b1eed
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4b1ef1
add eax, 4
add ecx, 4
test dx, dx
jne 0x4b1ecb
xor eax, eax
jmp 0x4b1ef6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4b205a
mov ecx, 0x583f08
lea eax, [ebp - 0x434]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4b1f2f
test dx, dx
je 0x4b1f2b
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4b1f2f
add eax, 4
add ecx, 4
test dx, dx
jne 0x4b1f09
xor eax, eax
jmp 0x4b1f34
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4b205a
mov ebx, dword [ebp - 0x460]
test bl, 2
je 0x4b1f50
test bl, 0x10
je 0x4b205a
test bl, 0x10
je 0x4b1fc1
push 0x418
lea eax, [ebp - 0xc90]
push 0
push eax
call fcn.00537010
add esp, 0xc
lea eax, [ebp - 0x434]
push eax
push 0x57cb68
lea eax, [ebp - 0xa84]
push esi
push eax
mov dword [ebp - 0xc90], 1
mov dword [ebp - 0x87c], ebx
call fcn.00532a01
lea eax, [ebp - 0x434]
push eax
push dword [ebp - 0xc98]
lea eax, [ebp - 0xc8c]
push 0x58409c
push esi
push eax
call fcn.00532a01
add esp, 0x24
lea eax, [ebp - 0xc90]
jmp 0x4b2052
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x4b205a
push str..url
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4b205a
push 0x418
push eax
lea eax, [ebp - 0x878]
push eax
call fcn.00537010
mov eax, dword [ebp - 0x460]
and dword [ebp - 0x878], 0
add esp, 0xc
mov dword [ebp - 0x464], eax
lea eax, [ebp - 0x434]
push eax
push dword [ebp - 0xc98]
lea eax, [ebp - 0x874]
push 0x58002c
push esi
push eax
call fcn.00532a01
add esp, 0x14
lea eax, [ebp - 0x434]
push eax
push 0x57cb68
lea eax, [ebp - 0x66c]
push esi
push eax
call fcn.00532a01
add esp, 0x10
lea eax, [ebp - 0x878]
push eax
mov eax, edi
call fcn.004b21a4
lea eax, [ebp - 0x460]
push eax
push dword [ebp - 0xc94]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4b1ec0
push dword [ebp - 0xc94]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
call fcn.004b20a7
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
mov ecx, 0x418
cdq
idiv ecx
mov dword [edi + 0x1c], eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0052f7d0
leave
ret
Function at 0x4bcbd6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, eax
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
push edi
call dword [eax + 0x28]
push dword [ebp + 0xc]
lea eax, [esi + 0x94]
push dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4bcc67
push 1
xor edi, edi
push edi
push 2
pop ecx
call fcn.004bb66e
lea eax, [esi + 0x1b4]
cmp dword [eax + 0x18], 8
jb 0x4bcc1d
mov eax, dword [eax + 4]
jmp 0x4bcc20
add eax, 4
cmp eax, edi
je 0x4bcc3c
cmp word [eax], di
je 0x4bcc3c
push 1
push edi
push edi
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4bcc67
mov eax, dword [esi + 0x74]
cmp eax, edi
je 0x4bcc67
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x268]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x1c], edi
call dword [eax + 0x5c]
pop edi
pop esi
leave
ret 8

Function at 0x4bf8b4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov ebx, eax
push edi
mov edi, dword [ebp + 8]
cmp ebx, 9
jne 0x4bf90e
push dword [edi]
call fcn.004c436b
pop ecx
test eax, eax
je 0x4bf8e4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x60]
test al, 2
jne 0x4bf90e
push 0x11
call esi
mov ecx, 0x8000
test cx, ax
jne 0x4bf90e
push 0x10
call esi
mov ecx, edi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
call fcn.004bfa11
xor eax, eax
inc eax
jmp 0x4bfa0a
push dword [edi]
call fcn.004c436b
mov edi, eax
pop ecx
test edi, edi
je 0x4bf9b0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x48]
test eax, eax
je 0x4bf9b0
cmp ebx, 0x25
je 0x4bf943
cmp ebx, 0x27
je 0x4bf951
cmp ebx, 0x26
je 0x4bf943
cmp ebx, 0x28
jne 0x4bf9b0
cmp ebx, 0x27
je 0x4bf951
cmp ebx, 0x28
je 0x4bf951
push 2
jmp 0x4bf953
push 3
pop ebx
mov ecx, edi
jmp 0x4bf965
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
test eax, eax
jne 0x4bf99e
mov ecx, esi
mov edx, ebx
call fcn.004bd19c
mov esi, eax
test esi, esi
jne 0x4bf958
mov ecx, dword [edi + 0x58]
xor edx, edx
cmp ebx, 3
setne dl
jmp 0x4bf98e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
test eax, eax
jne 0x4bf99e
mov edx, ebx
mov ecx, esi
call fcn.004bd19c
mov esi, eax
test esi, esi
jne 0x4bf97f
jmp 0x4bf906
mov edi, dword [ebp + 8]
push 0
push dword [esi + 0x4c]
call fcn.004bfa6e
jmp 0x4bf906
push 0x10
call esi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push 0x12
call esi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push 0x11
call esi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push ebx
lea eax, [ebp - 4]
call fcn.004e496d
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x2c]
add esi, 0x14
mov dword [ebp - 8], eax
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004bfb97
lea edi, [ebp - 0xc]
mov esi, eax
call fcn.00470a9c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4c1687
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [eax + 4]
push ebx
push edi
cmp ecx, 0x205
ja 0x4c173a
cmp ecx, 0x204
jae 0x4c1752
mov edx, 0x200
cmp ecx, edx
je 0x4c16ca
jbe 0x4c175c
cmp ecx, 0x202
jbe 0x4c1752
jmp 0x4c175c
movsx ecx, word [eax + 0xc]
movsx eax, word [eax + 0xe]
push eax
push ecx
lea eax, [esi + 0x50]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4c1752
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 2
call edi
cwde
shr eax, 0x10
test ax, ax
jne 0x4c1752
xor ebx, ebx
inc ebx
push ebx
call edi
cwde
shr eax, 0x10
test ax, ax
jne 0x4c1752
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4c175c
xor edi, edi
cmp dword [esi + 0x40], edi
je 0x4c175c
cmp dword [esi + 0x4c], edi
jne 0x4c175c
push ebx
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_KillTimer]
push edi
push dword [esi + 0x24]
push ebx
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x4c], ebx
jmp 0x4c175c
cmp ecx, 0x207
jb 0x4c175c
cmp ecx, 0x208
jbe 0x4c1752
cmp ecx, 0x2a3
jne 0x4c175c
push 2
pop eax
mov ecx, esi
call fcn.004c192f
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c3bea
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
mov dword [ebp - 8], ebx
cmp eax, ebx
je 0x4c3ce0
cmp word [eax], bx
je 0x4c3ce0
push esi
push edi
push 0x57c6dc
push eax
call fcn.00532206
mov esi, eax
pop ecx
xor edi, edi
pop ecx
cmp esi, ebx
je 0x4c3c5c
push esi
call fcn.00540ffb
push eax
call fcn.0055a551
pop ecx
pop ecx
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
je 0x4c3c52
push esi
push 1
push edi
push eax
call fcn.005325fd
add esp, 0x10
push esi
call fcn.0052fd5d
mov edi, dword [ebp - 0xc]
pop ecx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x4c3cd9
lea eax, [ebp - 4]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4c3cbe
cmp dword [ebp - 4], ebx
je 0x4c3ccb
push 0x10
call sub.gdiplus.dll_GdipAlloc
cmp eax, ebx
je 0x4c3c92
push dword [ebp - 4]
mov esi, eax
call fcn.004c2c93
mov esi, eax
jmp 0x4c3c94
xor esi, esi
cmp esi, ebx
je 0x4c3cbe
mov eax, dword [esi + 8]
mov dword [esi + 8], ebx
cmp eax, ebx
jne 0x4c3cb6
push ebx
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
cmp eax, ebx
je 0x4c3cb6
mov dword [esi + 8], eax
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x4c3ccb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
jmp 0x4c3ce2
xor eax, eax
pop ebx
leave
ret
Function at 0x4c88d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4c8955
cmp dword [ebp + 0x10], 0
je 0x4c8955
mov ecx, eax
shr ecx, 0x10
test cx, cx
jne 0x4c88fe
movzx eax, ax
push ebx
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4c8954
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4c8953
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4c8953
and dword [esi + 0x10], 0
mov dword [esi + 8], eax
xor eax, eax
inc eax
and dword [esi + 0x1c], 0
mov byte [esi + 4], 0
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], eax
mov dword [ebp - 4], eax
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret 0xc

Function at 0x4c895d
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 4], edi
cmp dword [esi + 0x18], edi
je 0x4c8984
mov eax, dword [esi + 8]
cmp eax, edi
je 0x4c8984
push eax
call fcn.00530cbd
pop ecx
mov dword [esi + 8], edi
mov dword [esi + 0x18], edi
cmp dword [ebp + 8], edi
je 0x4c8a4f
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c8a4f
push 0x207
push dword [ebp + 8]
lea ebx, [esi + 0x20]
push ebx
call fcn.00533226
add esp, 0xc
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4c8a4f
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
mov dword [esi + 0xc], eax
mov dword [ebp + 8], edi
jle 0x4c8a59
cmp eax, 0x6400000
jg 0x4c8a59
inc eax
push eax
call fcn.0052f69b
pop ecx
mov dword [esi + 8], eax
cmp eax, edi
je 0x4c8a59
mov ecx, dword [esi + 0xc]
inc ecx
push ecx
push edi
push eax
call fcn.00537010
add esp, 0xc
push edi
lea eax, [ebp + 8]
push eax
push dword [esi + 0xc]
push dword [esi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c8a37
mov eax, dword [esi + 0xc]
cmp eax, dword [ebp + 8]
jne 0x4c8a37
xor eax, eax
inc eax
mov dword [ebp - 4], eax
mov dword [esi + 0x18], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
jmp 0x4c8a48
mov eax, dword [esi + 8]
cmp eax, edi
je 0x4c8a48
push eax
call fcn.00530cbd
pop ecx
mov dword [esi + 8], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
xor eax, eax
jmp 0x4c8a52
Function at 0x4cdcac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0xd
jne 0x4cdced
test dword [esi + 0x480], 0x1000
jne 0x4cdced
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x4cdced
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
push 0
push 1
push 0x111
call dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4cdd08
mov eax, dword [esi + 0x488]
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x70]
mov edx, dword [ecx]
push 0
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
call dword [edx + 0xc]
pop ebp
ret 4

Function at 0x4cdd0c
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, edi
sub eax, 9
je 0x4cdd61
dec eax
je 0x4cdd43
sub eax, 3
je 0x4cdd43
test dword [esi + 0x480], 0x2000
je 0x4cdd7f
push edi
call fcn.00530e9e
pop ecx
test eax, eax
jne 0x4cdd7f
cmp edi, 0x2d
je 0x4cdd7f
cmp edi, 0x2e
je 0x4cdd7f
cmp edi, 0x2c
jne 0x4cdd9a
jmp 0x4cdd7f
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x4cdd7f
test dword [esi + 0x480], 0x1000
jmp 0x4cdd7d
test dword [esi + 0x484], 0x100
jne 0x4cdd7f
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4cdd9a
mov eax, dword [esi + 0x488]
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x70]
mov edx, dword [ecx]
push 0
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
call dword [edx + 0xc]
ret