joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b3450
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x60bcf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [0x6c826c]
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x18], bx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x60]
xor edi, edi
cmp eax, ebx
mov byte [esp + 0x50], 1
jle 0x5b34f7
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x14]
push 1
lea ecx, [esp + 0x14]
push eax
push ecx
push edi
mov ecx, esi
call fcn.005b2830
test al, al
je 0x5b34ee
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x5b34d2
lea eax, [esp + 0x1c]
push eax
call fcn.005c2f1a
add esp, 4
test eax, eax
jbe 0x5b34ee
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x5b34eb
lea eax, [esp + 0x1c]
push eax
call ebp
mov eax, dword [esi + 0x60]
inc edi
cmp edi, eax
jl 0x5b34ae
pop ebp
lea ecx, [esi + 0x70]
call fcn.005b1c00
lea ecx, [esi + 0x50]
call fcn.005b2070
mov al, byte [esp + 0x58]
mov dword [esi + 0x60], ebx
cmp al, bl
je 0x5b3525
mov eax, dword [esi + 0x64]
cmp eax, ebx
jne 0x5b351c
lea eax, [esi + 0x68]
push ebx
push eax
mov ecx, esi
call fcn.005b3000
lea ecx, [esp + 0xc]
mov byte [esp + 0x50], bl
call fcn.005df556
lea ecx, [esp + 0x28]
mov dword [esp + 0x50], 5
call fcn.005df556
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 4
call fcn.005df556
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 3
call fcn.005df556
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 2
call fcn.00401070
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 0xffffffff
call fcn.005df556
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret 4
Function at 0x5b5900
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x60bfa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], esi
call fcn.005b76c0
mov ecx, esi
call fcn.005b7120
mov eax, dword [esi + 0xbc]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 8], ebx
jle 0x5b5ac2
push ebp
push edi
xor edi, edi
mov dword [esp + 0x14], edi
mov ebp, dword [esi + 0xc4]
mov eax, edi
add eax, ebp
mov ecx, dword [eax]
cmp ecx, ebx
je 0x5b595c
mov eax, ecx
jmp 0x5b595f
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edx, edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], edx
mov word [esp + 0x20], bx
mov ecx, dword [esi + 0xc4]
mov eax, edi
add eax, ecx
mov dword [esp + 0x48], ebx
mov ecx, dword [eax]
cmp ecx, ebx
jne 0x5b598c
lea ecx, [eax + 4]
mov eax, str._s.z
test eax, eax
je 0x5b5a80
cmp ecx, ebx
je 0x5b5a80
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov word [esp + 0x30], bx
call fcn.00401f50
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 1
call fcn.00401070
push ebx
push str._s.z
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ebx
mov word [esp + 0x40], bx
call fcn.00402880
mov eax, dword [esp + 0x28]
mov byte [esp + 0x48], 2
cmp eax, ebx
jne 0x5b59f3
lea eax, [esp + 0x2c]
mov esi, dword [esp + 0x3c]
push eax
call fcn.005c2f1a
lea esi, [eax + esi + 2]
lea ebp, [esi + esi]
push ebp
call fcn.005db95d
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x1c], edi
je 0x5b5a59
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x28]
call fcn.00401f40
push eax
lea ecx, [esp + 0x38]
call fcn.00401f40
push eax
mov eax, dword [esp + 0x24]
push esi
push eax
call fcn.005c2eaa
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.005c2f1a
add esp, 0x14
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x48], 1
call fcn.00401070
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], bl
call fcn.00401070
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
cmp edx, ebx
mov eax, edx
jne 0x5b5a8a
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], 0xffffffff
call fcn.00401070
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xbc]
inc eax
add edi, 0xc
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
jl 0x5b5948
pop edi
pop ebp
mov ecx, dword [esp + 0x38]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x5b7cc0
Capabilities:
Get disk size

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x2c
lea eax, [esp + 0xc]
push 0
push 0
push 0
push eax
push ecx
call fcn.005c3cd8
mov al, byte [0x6ce17c]
add esp, 0x14
test al, 1
jne 0x5b7d28
or al, 1
push str.KERNEL32
mov byte [0x6ce17c], al
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [0x6ce174], eax
je 0x5b7d1e
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x6ce170], eax
mov dword [0x6ce178], 1
jne 0x5b7d28
mov dword [0x6ce178], 0
mov eax, dword [0x6ce178]
push esi
push edi
or esi, 0xffffffff
or edi, 0xffffffff
test eax, eax
je 0x5b7d61
lea edx, [esp + 0x24]
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call dword [0x6ce170]
test eax, eax
je 0x5b7d94
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
jmp 0x5b7d94
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x5b7d94
mov esi, dword [esp + 0x38]
imul esi, dword [esp + 8]
imul esi, dword [esp + 0xc]
xor edi, edi
cmp edi, dword [esp + 0x40]
jg 0x5b7db1
jl 0x5b7da2
cmp esi, dword [esp + 0x3c]
ja 0x5b7db1
and esi, edi
cmp esi, 0xffffffff
je 0x5b7db1
pop edi
xor al, al
pop esi
add esp, 0x2c
ret
pop edi
mov al, 1
pop esi
add esp, 0x2c
ret

Function at 0x5b7e50
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.005b8180
mov al, byte [esp + 0x18]
mov ebp, dword [esp + 0x14]
neg al
sbb eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
and eax, 2
push 0
add eax, 2
push 0
mov edi, eax
push edi
push 0
push 3
push 0xc0000000
push ebp
call ebx
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
jne 0x5b7e9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0
push 0
push edi
push 0
push 3
push 0xc0000000
push ebp
call ebx
cmp eax, 0xffffffff
mov dword [esi + 0x2c], eax
jne 0x5b7ecc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.005b8180
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov al, byte [esp + 0x18]
test al, al
je 0x5b7f3f
mov edx, dword [esi + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
cmp dword [esi + 8], 0xffffffff
jne 0x5b7f16
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x5b7f16
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x5b7f16
mov ecx, esi
call fcn.005b8180
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [esp + 0x18]
push 1
push 0
push 0
push eax
call fcn.005c5810
mov ecx, dword [esi + 8]
pop edi
add ecx, eax
mov dword [esi + 8], ecx
mov eax, dword [esi + 0xc]
adc eax, edx
mov dword [esi + 0xc], eax
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
xor eax, eax
pop edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
pop esi
pop ebp
pop ebx
ret 8
Function at 0x5b7f50
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x10]
push 2
push eax
push 0
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esi + 8]
mov ebp, dword [esi + 0xc]
lea edx, [esp + 0x14]
push 0
push edx
mov edx, dword [esi + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x5b7fba
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
or edx, 0xffffffff
pop ebx
add esp, 8
ret 8
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 8]
add edx, eax
push edi
mov dword [esi + 8], edx
mov ecx, dword [esi + 0xc]
adc ecx, 0
mov dword [esi + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov edx, ebp
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret 8

Function at 0x5b7ff0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov bl, byte [esp + 0x20]
push esi
mov esi, ecx
test bl, bl
je 0x5b8009
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push 0
push edx
mov dword [esp + 0x10], eax
push eax
mov eax, dword [esi + 0x10]
push eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x5b8056
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5b8056
test bl, bl
je 0x5b8083
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x14
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push 0
push ecx
mov ecx, dword [esi + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5b808d
test bl, bl
je 0x5b8083
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x14
test bl, bl
je 0x5b809b
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, 1
pop ebx
add esp, 8
ret 0x14
Function at 0x5b80b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x20]
push edi
cmp eax, ecx
jg 0x5b8169
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x10]
mov ebp, dword [esp + 0x20]
lea eax, [esp + 0x14]
push 0
push eax
push ebx
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x5b811f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5b811f
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
or edx, 0xffffffff
pop ebx
add esp, 8
ret 0x14
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x24]
push 0
push edx
mov edx, dword [esi + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push edi
jne 0x5b8155
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
or edx, 0xffffffff
pop ebx
add esp, 8
ret 0x14
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov edx, ebp
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret 0x14
push eax
mov eax, dword [esp + 0x30]
push eax
mov ecx, esi
call fcn.005b7f50
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14

Function at 0x5b81c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x10]
push 0
push edx
mov dword [esp + 0x14], eax
push eax
mov eax, dword [esi + 0x2c]
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x5b8217
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5b8217
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret 0x10
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 8]
push 0
push ecx
mov ecx, dword [esi + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push edi
jne 0x5b8247
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret 0x10
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret 0x10
Function at 0x5cf93b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6cc048
cmp edx, dword [eax]
je 0x5cf95d
add eax, 8
inc ecx
cmp eax, 0x6cc0d8
jl 0x5cf94e
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6cc048]
jne 0x5cfa8b
mov eax, dword [0x6d02f0]
cmp eax, 1
je 0x5cfa65
test eax, eax
jne 0x5cf98e
cmp dword [0x6c95c4], 1
je 0x5cfa65
cmp edx, 0xfc
je 0x5cfa8b
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5cf9c5
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.005cebb0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.005c7f70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x5cfa08
lea eax, [ebp - 0x1a4]
push eax
call fcn.005c7f70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x66690c
push edi
call fcn.005c3470
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.005cebb0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.005cebc0
lea eax, [ebp - 0xa0]
push 0x6be1f0
push eax
call fcn.005cebc0
push dword [esi + 0x6cc04c]
lea eax, [ebp - 0xa0]
push eax
call fcn.005cebc0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.005d2aeb
add esp, 0x2c
pop edi
jmp 0x5cfa8b
lea eax, [ebp + 8]
lea esi, [esi + 0x6cc04c]
push 0
push eax
push dword [esi]
call fcn.005c7f70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x5d7530
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.005c3360
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x5d75fb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x5d75fb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x5d75ae
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x5d75b9
or bh, 8
and edi, 0x8000000
je 0x5d75d4
mov eax, dword [0x6d1a3c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x5d75fb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5d79d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x5d79fb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x5d7a1f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x5d7a3a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x5db1d5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x5db1f7
cmp dword [edi + 0x3c], 0
jne 0x5db1f7
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.005e969b
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
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.005db224
pop edi
pop esi
pop ebx
ret 8

Function at 0x5dc86e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5dc8a6
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.005df923
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005df8fb
jmp 0x5dc8b2
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5dc8b6
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x6cfb80
mov ecx, edi
call fcn.005df6df
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x5dc909
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x5dc91c
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.005df923
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.005df8fb
jmp 0x5dc91c
mov ecx, esi
call fcn.005de9b8
test eax, eax
je 0x5dc91c
push edi
mov ecx, eax
call fcn.005dc86e
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x5de151
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5de193
call fcn.005e969b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5de193
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5de18a
xor eax, eax
jmp 0x5de19b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005de1a1
pop edi
pop esi
pop ebx
ret 4
Function at 0x5ea7e1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.005e969b
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x5ea81e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5ea81e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x5ea822
xor eax, eax
jmp 0x5ea8a0
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.005db95d
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x5ea85a
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x5ea844
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.005ea991
push ebx
mov edi, eax
call fcn.005db986
test edi, edi
pop ecx
je 0x5ea89c
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.005ea75a
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.005ea8a5
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x5ed6c5
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
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 0x5ed6ed
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x5ed6fe
push 2
call edi
test ax, ax
jge 0x5ed6fe
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.005dbec0
cmp dword [esi + 0x30], ebx
jne 0x5ed7d8
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, pe_nt_image_headers32
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.005dbec0
cmp eax, dword [esp + 0x34]
jne 0x5ed7d8
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x5ed774
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x5ed7b9
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x5ed7d8
cmp eax, 0x205
je 0x5ed7d8
cmp eax, 0x201
je 0x5ed7d8
cmp eax, 0x204
je 0x5ed7d8
cmp eax, ebx
jne 0x5ed79f
cmp dword [esp + 0x1c], 0x1b
je 0x5ed7d8
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x6cfd90]
jbe 0x5ed7ce
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x5ed731
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4