joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4869e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50
lea eax, [esp]
push esi
push 0x10
push eax
call fcn.004864e0
lea ecx, [esp + 0x24]
push 0x10
push ecx
call fcn.00486530
lea edx, [esp + 0x14]
push 0x10
push edx
call fcn.00486690
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.00486650
lea ecx, [esp + 4]
lea edx, [esp + 0x34]
push ecx
push 0x10
push edx
lea eax, [esp + 0x20]
push 0x5da30c
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
test esi, esi
je 0x486a50
lea edx, [esp + 0x34]
lea eax, [esp + 0x44]
push edx
push eax
call fcn.0046e680
mov ecx, dword [esp + 0x5c]
mov byte [ecx], al
xor eax, eax
test esi, esi
setne al
pop esi
add esp, 0x50
ret 8

Function at 0x486a60
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x30
lea eax, [esp]
push 0x10
push eax
call fcn.004864e0
lea ecx, [esp + 0x20]
push 0x10
push ecx
call fcn.00486530
lea edx, [esp + 0x10]
push 0x10
push edx
call fcn.00486610
lea eax, [esp]
lea ecx, [esp + 0x10]
push eax
push 0
lea edx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor edx, edx
mov ecx, dword [esp + 0x34]
test eax, eax
setne dl
mov word [ecx], ax
mov al, dl
add esp, 0x30
ret 4

Function at 0x486ac0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x70
lea eax, [esp]
push esi
mov esi, dword [esp + 0x78]
push 0x10
push 0
push eax
mov word [esi], 0
call fcn.0046e7f0
lea ecx, [esp + 0x14]
push 0x10
push ecx
call fcn.004864e0
lea edx, [esp + 0x34]
push 0x10
push edx
call fcn.00486530
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.00486580
lea ecx, [esp + 0x44]
push 0x10
push ecx
call fcn.004866e0
lea edx, [esp + 0x54]
push 0x10
push edx
call fcn.00486770
lea eax, [esp + 0x64]
push 0x10
push eax
call fcn.00486730
lea ecx, [esp + 0x14]
lea edx, [esp + 4]
push ecx
push 0x10
push edx
lea eax, [esp + 0x30]
push 0x5da30c
lea ecx, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x486bae
lea edx, [esp + 0x44]
lea eax, [esp + 4]
push edx
push eax
call fcn.0046e680
test al, al
je 0x486b6f
xor eax, eax
mov word [esi], 2
cmp word [esi], ax
pop esi
setne al
add esp, 0x70
ret 4
lea ecx, [esp + 0x54]
lea edx, [esp + 4]
push ecx
push edx
call fcn.0046e680
test al, al
je 0x486b96
xor eax, eax
mov word [esi], 3
cmp word [esi], ax
pop esi
setne al
add esp, 0x70
ret 4
lea eax, [esp + 0x64]
lea ecx, [esp + 4]
push eax
push ecx
call fcn.0046e680
test al, al
je 0x486bae
mov word [esi], 1
xor eax, eax
cmp word [esi], ax
pop esi
setne al
add esp, 0x70
ret 4
Function at 0x486d30
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
lea ecx, [esp]
push esi
push eax
push ecx
call fcn.00486cf0
push 0
push 0x80
push 3
push 0
push 3
lea edx, [esp + 0x18]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, dword [esp + 0x18]
mov dword [esi], eax
jne 0x486d9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x486d86
cmp eax, 3
ja 0x486d86
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x486d94
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8

Function at 0x486db0
Capabilities:
Check if file exists
Check os version

Disassembly:
sub esp, 0xa8
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x24], 2
jne 0x486e42
cmp dword [esp + 0x18], 5
jne 0x486e42
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x486e42
mov al, 0x5c
mov cl, 0x6c
mov byte [esp], al
mov byte [esp + 1], al
mov byte [esp + 3], al
mov byte [esp + 0xa], al
mov dl, 0x62
mov al, 0x6e
mov byte [esp + 2], 0x2e
mov byte [esp + 4], 0x47
mov byte [esp + 5], cl
mov byte [esp + 6], 0x6f
mov byte [esp + 7], dl
mov byte [esp + 8], 0x61
mov byte [esp + 9], cl
mov byte [esp + 0xb], 0x53
mov byte [esp + 0xc], al
mov byte [esp + 0xd], 0x74
mov byte [esp + 0xe], al
mov byte [esp + 0xf], cl
mov byte [esp + 0x10], 0x55
mov byte [esp + 0x11], 0x73
mov byte [esp + 0x12], dl
mov byte [esp + 0x13], 0
jmp 0x486e82
mov al, 0x5c
mov byte [esp + 2], 0x2e
mov byte [esp], al
mov byte [esp + 1], al
mov byte [esp + 3], al
mov al, 0x6e
mov byte [esp + 4], 0x53
mov byte [esp + 5], al
mov byte [esp + 6], 0x74
mov byte [esp + 7], al
mov byte [esp + 8], 0x6c
mov byte [esp + 9], 0x55
mov byte [esp + 0xa], 0x73
mov byte [esp + 0xb], 0x62
mov byte [esp + 0xc], 0
push esi
push 0
push 0x80
push 3
push 0
push 3
lea ecx, [esp + 0x18]
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, dword [esp + 0xb0]
mov dword [esi], eax
jne 0x486ee8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x486ecc
cmp eax, 3
ja 0x486ecc
mov ax, 0x20c
pop esi
add esp, 0xa8
ret 8
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x486eda
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, 0x20b
pop esi
add esp, 0xa8
ret 8
mov ax, 0x200
pop esi
add esp, 0xa8
ret 8

Function at 0x498edd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x498f16
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00498ea0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00497a50
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x49adad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
mov ebp, ecx
cmp dword [esp + 0x14], edi
je 0x49adf0
call fcn.0049ef0d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x49adf0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x49ae0b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0049a92b
mov esi, eax
test ebx, ebx
je 0x49ae09
test edi, edi
je 0x49ae09
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x49bd4b
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5696be
call fcn.004d628b
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x49bd70
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x49bdb7
lea ecx, [ebp - 0x10]
call fcn.00404e40
and dword [ebp - 4], 0
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004949e0
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004022b0
mov eax, esi
call fcn.004d6363
ret 8

Function at 0x49cb59
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x49cb90
call fcn.0049ef0d
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49cba1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x49cbde
mov edx, dword [esi]
mov eax, 0xffff
cmp word [esi + 2], ax
jne 0x49cbc2
mov edx, dword [esi + 0xc]
movzx eax, word [esi + 0x12]
movzx ecx, word [esi + 0x14]
jmp 0x49cbca
movzx eax, word [esi + 0xa]
movzx ecx, word [esi + 0xc]
test edx, 0x1801
jne 0x49cbdc
test ax, ax
jne 0x49cbdc
test cx, cx
je 0x49cbde
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x49cbed
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x49cdf1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x28
mov eax, 0x56976f
call fcn.004d62be
mov esi, ecx
mov dword [ebp - 0x24], esi
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x58]
mov dword [ebp - 0x18], eax
call fcn.0049ef0d
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x54], ebx
je 0x49ce3c
call fcn.0049ef0d
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x49ce4d
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x49ce5a
or eax, 0xffffffff
jmp 0x49cfc3
mov ecx, esi
call fcn.0049c972
mov dword [ebp - 0x14], eax
call fcn.00497c02
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
and dword [ebp - 0x2c], ebx
cmp dword [ebp - 0x14], ebx
je 0x49ced8
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x49ced8
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x49ced8
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x30], 1
call fcn.00422260
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x49ced8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x128]
test eax, eax
je 0x49ced8
mov ecx, ebx
call fcn.0049b84c
test eax, eax
je 0x49ced8
push 0
mov ecx, ebx
call fcn.0049b867
mov dword [ebp - 0x2c], 1
and dword [ebp - 4], 0
push esi
call fcn.004999dd
push edi
push dword [ebp - 0x14]
call fcn.00497b5a
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0049cc38
test eax, eax
je 0x49cf40
test byte [esi + 0x38], 0x10
je 0x49cf26
mov dword [ebp - 0x20], 4
mov ecx, esi
call fcn.0049b6e6
test eax, 0x100
je 0x49cf1c
mov dword [ebp - 0x20], 5
push dword [ebp - 0x20]
mov ecx, esi
call fcn.004976c0
xor edi, edi
cmp dword [esi + 0x1c], edi
je 0x49cf42
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0049ba3b
jmp 0x49cf42
xor edi, edi
or dword [ebp - 4], 0xffffffff
jmp 0x49cf6d
cmp dword [ebp - 0x2c], edi
je 0x49cf7b
push 1
mov ecx, ebx
call fcn.0049b867
cmp dword [ebp - 0x30], edi
je 0x49cf8b
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x49cfa4
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x49cfa4
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0049c9ac
cmp dword [esi + 0x54], edi
je 0x49cfc0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
call fcn.004d6363
ret
Function at 0x49cff4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0049ef0d
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x49d02b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0049cc38
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x49d083
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x54], ebx
test ebx, 0xffff0000
jne 0x49d0a3
cmp dword [edi + 0x50], 0
jne 0x49d0a3
movzx eax, bx
mov dword [edi + 0x50], eax
call fcn.0049ef0d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0049d04a
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x49d6f8
Capabilities:
Get file attributes

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 1
mov ecx, esi
test al, 1
je 0x49d71c
mov eax, dword [esi]
push 0
call dword [eax + 0x98]
test eax, eax
jne 0x49d72a
pop esi
ret
mov eax, dword [esi + 0x20]
mov edx, dword [esi]
push eax
call dword [edx + 0x98]
jmp 0x49d716
xor eax, eax
inc eax
pop esi
ret

Function at 0x4a1971
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x4a197b
call fcn.00495554
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.004cfeff
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x4a19a8
mov esi, dword [esi + 0xc]
call fcn.004d66c1
push esi
push dword [eax]
push 1
call fcn.004a28ca
pop esi
ret 8
Function at 0x4a2066
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x4a2096
push dword [ebp + 8]
call edi
push eax
call fcn.004a2910
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x4a20c1
test byte [ebp - 4], 1
je 0x4a20c1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4a20c1
push dword [ebp + 8]
call edi
push eax
call fcn.004a2910
lea eax, [ebx + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x4a217b
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.004a1fca
pop ecx
lea eax, [ebx + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x4a20f7
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.004a1fca
pop ecx
lea eax, [ebp - 0x10]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebx]
or eax, dword [ebx + 4]
je 0x4a210d
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.004a1fca
pop ecx
pop ecx
lea esi, [ebp - 0x18]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4a213a
push dword [ebp + 8]
call edi
push eax
call fcn.004a2910
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4a2166
call edi
push ebx
mov dword [ebp - 8], eax
call esi
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.004a2910
push ebx
call esi
test eax, eax
jne 0x4a2178
push dword [ebp + 8]
call edi
push eax
call fcn.004a2910
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x4a21a3
test byte [ebp - 4], 1
jne 0x4a21a3
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4a21a3
push dword [ebp + 8]
call edi
push eax
call fcn.004a2910
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4a21aa
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [ebp + 8]
push edi
push 0x128
push 0
push esi
mov edi, ecx
call fcn.004cdca0
push 0xffffffffffffffff
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push 0x104
push eax
call fcn.004949e0
mov eax, dword [edi + 4]
add esp, 0x1c
cmp eax, dword [0x589b84]
je 0x4a22ff
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x4a2207
xor eax, eax
jmp 0x4a2302
lea eax, [ebp - 8]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4a2200
mov eax, dword [ebp - 8]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x1c], eax
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], 0
jne 0x4a2233
mov byte [esi + 0x20], 0
jmp 0x4a2247
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and cl, al
mov byte [esi + 0x20], cl
lea eax, [ebp - 0x10]
push eax
call fcn.004a1dbb
test eax, eax
je 0x4a226e
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041ff80
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
jmp 0x4a2275
and dword [esi], 0
and dword [esi + 4], 0
lea eax, [ebp - 0x18]
push eax
call fcn.004a1dbb
test eax, eax
je 0x4a229d
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041ff80
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
jmp 0x4a22a7
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
lea eax, [ebp - 0x20]
push eax
call fcn.004a1dbb
test eax, eax
je 0x4a22cf
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041ff80
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0xc], eax
jmp 0x4a22d9
xor eax, eax
xor ecx, ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x4a22eb
mov eax, dword [esi + 8]
mov dword [esi], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4a22ff
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4
Function at 0x4a8647
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov esi, ecx
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4a8676
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4a8687
push 2
call edi
test ax, ax
jge 0x4a8687
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.00497b5a
cmp dword [esi + 0x30], ebx
jne 0x4a8759
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00497b5a
cmp eax, dword [ebp + 8]
jne 0x4a8759
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call edi
test eax, eax
jne 0x4a86f6
push 1
push 0x109
push ebx
push eax
lea eax, [ebp - 0x20]
push eax
call edi
test eax, eax
je 0x4a8737
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x4a8759
cmp eax, 0x205
je 0x4a8759
cmp eax, 0x201
je 0x4a8759
cmp eax, 0x204
je 0x4a8759
cmp eax, ebx
jne 0x4a871f
cmp dword [ebp - 0x18], 0x1b
je 0x4a8759
push dword [ebp - 8]
lea eax, [esi + 0x20]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [0x5dd52c]
jbe 0x4a874f
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4a86b6
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4a8a66
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5d26e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
push edi
mov edi, dword [ebp + 8]
je 0x4a8ab7
push edi
call fcn.004a89b7
mov esi, eax
test esi, esi
je 0x4a8adc
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x4a8adc
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x57b604
push 0x10
push eax
call fcn.004ce693
add esp, 0x10
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cdc91
leave
ret 0xc
Function at 0x4aab8a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x4aabad
xor eax, eax
jmp 0x4aad17
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x4aaba6
push esi
push edi
mov edi, dword [eax]
add edi, 0x40
push edi
call fcn.004cf255
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x4aabd6
xor eax, eax
jmp 0x4aad15
push edi
push dword [ebp - 4]
push edi
push esi
call fcn.00430fc0
mov eax, dword [esi]
add esp, 0x10
add eax, esi
mov dword [ebp - 8], eax
mov dword [ebp + 0xc], ebx
mov ecx, dword [ebp + 0xc]
lea ecx, [eax + ecx*4]
mov edi, dword [ecx]
xor edx, edx
mov dword [ebp - 0xc], ecx
cmp edi, dword [edx*8 + 0x587b9c]
je 0x4aac0c
inc edx
cmp edx, 4
jb 0x4aabfb
jmp 0x4aac67
cmp dword [ebp + 0x10], ebx
je 0x4aac23
cmp dword [edx*8 + 0x587ba0], 0x12
je 0x4aac67
mov dword [ecx], 0xffffff
jmp 0x4aac67
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
lea edi, [edx*8 + 0x587ba0]
push dword [edi]
call ebx
push dword [edi]
shr eax, 8
movzx eax, al
mov dword [ebp + 8], eax
call ebx
push dword [edi]
movzx ebx, al
shl ebx, 8
or ebx, dword [ebp + 8]
shl ebx, 8
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [ebp - 0xc]
shr eax, 0x10
movzx eax, al
or eax, ebx
mov dword [ecx], eax
mov eax, dword [ebp - 8]
xor ebx, ebx
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0x10
jl 0x4aabee
mov edi, dword [esi + 4]
mov eax, dword [esi + 8]
push ebx
mov dword [ebp + 0x10], edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.USER32.dll_GetDC]
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
push edi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x4aacf8
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 0xc]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
mov dword [ebp + 8], eax
call edi
mov cl, byte [esi + 0xe]
push 0xcc0020
mov dword [ebp - 0x10], eax
push ebx
xor eax, eax
push esi
inc eax
shl eax, cl
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax*4 + 0x28]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_StretchDIBits]
push dword [ebp - 0x10]
push dword [ebp + 8]
call edi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 8]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
push esi
call fcn.004ce2e1
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc