joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c1ef0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebp
push esi
push edi
test eax, eax
mov esi, ecx
je 0x4c2024
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4c2024
mov ebp, dword [esp + 0x18]
cmp ebp, 1
jl 0x4c2024
mov eax, dword [esi + 0xb8]
test eax, eax
je 0x4c1f2d
push eax
call fcn.004c2eb0
add esp, 4
mov eax, ebp
shl eax, 6
add eax, ebp
shl eax, 2
push eax
call fcn.004c2e90
add esp, 4
mov dword [esi + 0xb8], eax
test eax, eax
je 0x4c2024
cmp dword [esi + 0xbc], ebp
jge 0x4c2024
mov ebp, dword [sym.imp.MSVCRT.dll_strncpy]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 1
push 4
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x4c2024
mov eax, dword [esp + 0x14]
cmp eax, 1
jl 0x4c2024
cmp eax, 0xffff
jg 0x4c2024
mov eax, dword [esp + 0x10]
push edi
push eax
mov ecx, esi
call fcn.004c1a30
test eax, eax
je 0x4c2024
mov ecx, dword [esi + 0xb8]
test ecx, ecx
je 0x4c2012
mov eax, dword [esi + 0xbc]
push 0xff
mov edx, eax
push edi
shl edx, 6
add edx, eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + edx*4], eax
mov eax, dword [esi + 0xbc]
mov edx, dword [esi + 0xb8]
mov ecx, eax
shl ecx, 6
add ecx, eax
lea eax, [edx + ecx*4 + 4]
push eax
call ebp
mov eax, dword [esi + 0xbc]
mov edx, dword [esi + 0xb8]
mov ecx, eax
add esp, 0xc
shl ecx, 6
add ecx, eax
mov byte [edx + ecx*4 + 0x103], 0
mov eax, dword [esi + 0xbc]
inc eax
mov dword [esi + 0xbc], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xbc]
cmp ecx, eax
jl 0x4c1f60
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4c2030
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
mov dword [esp + 0x10], ecx
je 0x4c21c5
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x4c21c5
mov edx, dword [ecx + 0xb0]
test edx, edx
je 0x4c21c5
mov ecx, dword [ecx + 0xb4]
mov eax, dword [esp + 0x28]
cmp ecx, eax
jge 0x4c21c5
lea eax, [ecx*8]
sub eax, ecx
mov ecx, 0x23
lea eax, [eax + eax*4]
lea esi, [edx + eax*4]
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
test eax, eax
mov dword [esi], ecx
jle 0x4c20b2
mov edx, eax
shl edx, 7
add edx, eax
shl edx, 2
push edx
call fcn.004c2e90
add esp, 4
mov dword [esi + 0x84], eax
push ebx
push 1
lea eax, [esp + 0x20]
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x4c21c5
mov ecx, dword [esp + 0x10]
push ebp
push ebx
call fcn.004c1a30
test eax, eax
je 0x4c21c5
cmp dword [esp + 0x18], 0xffffffff
jne 0x4c21c5
mov edi, dword [sym.imp.MSVCRT.dll_strncpy]
push 0x7f
lea ecx, [esi + 4]
push ebp
push ecx
call edi
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 0x88]
add esp, 0xc
cmp eax, edx
mov byte [esi + 0x83], 0
jge 0x4c21bb
push ebx
push 1
lea eax, [esp + 0x20]
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x4c21bb
mov ecx, dword [esp + 0x10]
push ebp
push ebx
call fcn.004c1a30
test eax, eax
je 0x4c21bb
mov ecx, dword [esi + 0x84]
test ecx, ecx
je 0x4c219e
mov eax, dword [esi + 0x88]
push 0x1ff
mov edx, eax
push ebp
shl edx, 7
add edx, eax
lea eax, [ecx + edx*4 + 4]
push eax
call edi
mov eax, dword [esi + 0x88]
mov edx, dword [esi + 0x84]
mov ecx, eax
add esp, 0xc
shl ecx, 7
add ecx, eax
mov byte [edx + ecx*4 + 0x203], 0
mov eax, dword [esi + 0x88]
mov edx, dword [esi + 0x84]
mov ecx, eax
shl ecx, 7
add ecx, eax
mov eax, dword [esp + 0x18]
mov dword [edx + ecx*4], eax
mov ecx, dword [esi + 0x88]
inc ecx
mov dword [esi + 0x88], ecx
mov ecx, dword [esp + 0x24]
cmp dword [esi + 0x88], ecx
jl 0x4c2117
mov eax, dword [esp + 0x10]
inc dword [eax + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x14
Function at 0x4c21d0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, ecx
test eax, eax
push edi
mov dword [esp + 0xc], ebp
je 0x4c230b
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4c230b
mov ecx, dword [ebp + 0xa8]
test ecx, ecx
je 0x4c230b
mov ebx, dword [esp + 0x20]
cmp ebx, 1
jl 0x4c230b
mov eax, dword [ebp + 0xac]
mov edx, dword [esp + 0x24]
cmp eax, edx
jge 0x4c230b
lea eax, [eax + eax*2]
push esi
lea esi, [ecx + eax*4]
mov eax, dword [esp + 0x20]
mov edx, esi
xor ecx, ecx
test ebx, ebx
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [esi], eax
jle 0x4c2259
mov ecx, ebx
shl ecx, 4
add ecx, ebx
shl ecx, 2
push ecx
call fcn.004c2e90
add esp, 4
mov dword [esi + 4], eax
test eax, eax
jne 0x4c2259
mov dword [esi + 8], eax
cmp dword [esi + 8], ebx
jge 0x4c22fd
mov ebp, dword [sym.imp.MSVCRT.dll_strncpy]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push 1
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x4c22f9
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4c2291
mov byte [edi], 0
jmp 0x4c22a4
mov ecx, dword [esp + 0x18]
push edi
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004c1a30
test eax, eax
je 0x4c22f9
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4c22e8
mov eax, dword [esi + 8]
push 0x3f
mov edx, eax
push edi
shl edx, 4
add edx, eax
lea eax, [ecx + edx*4 + 4]
push eax
call ebp
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
mov ecx, eax
add esp, 0xc
shl ecx, 4
add ecx, eax
mov byte [edx + ecx*4 + 0x43], 0
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [edx + ecx*4], eax
mov ecx, dword [esi + 8]
inc ecx
mov eax, ecx
mov dword [esi + 8], ecx
cmp eax, ebx
jl 0x4c2268
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp + 0xac]
pop esi
inc eax
mov dword [ebp + 0xac], eax
pop edi
pop ebp
pop ebx
pop ecx
ret 0x14
Function at 0x4c6640
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x100
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 6
mov edi, esi
rep stosd dword es:[edi], eax
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor ebx, ebx
push esi
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x124], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, 0x40
xor eax, eax
lea edi, [esi + 0x24]
push 0x278e8
rep stosd dword es:[edi], eax
call fcn.004c2e90
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [esi + 0x18], edi
je 0x4c6800
mov ecx, 0x9e3a
xor eax, eax
rep stosd dword es:[edi], eax
push 0x5965b8
push str._shistory_news.dat
lea eax, [esp + 0x14]
push 0xff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea ecx, [esp + 0x1c]
push 0x581660
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 0x18
cmp edi, ebx
je 0x4c67e1
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
lea edx, [eax + eax*4]
push edi
shl edx, 3
sub edx, eax
push 1
push 0x274
lea eax, [eax + edx*4]
lea edx, [ecx + eax*4]
push edx
call ebp
add esp, 0x10
cmp eax, 1
jne 0x4c67d6
mov eax, dword [esi + 0x1c]
cmp eax, 0x100
jge 0x4c67d6
lea ecx, [eax + eax*4]
push edi
shl ecx, 3
sub ecx, eax
push 1
push 0x274
lea edx, [eax + ecx*4]
mov eax, dword [esi + 0x18]
mov byte [eax + edx*4 + 0x27], bl
mov eax, dword [esi + 0x1c]
lea ecx, [eax + eax*4]
shl ecx, 3
sub ecx, eax
lea edx, [eax + ecx*4]
mov eax, dword [esi + 0x18]
mov byte [eax + edx*4 + 0x127], bl
mov eax, dword [esi + 0x1c]
lea ecx, [eax + eax*4]
shl ecx, 3
sub ecx, eax
lea edx, [eax + ecx*4]
mov eax, dword [esi + 0x18]
mov byte [eax + edx*4 + 0x167], bl
mov eax, dword [esi + 0x1c]
lea ecx, [eax + eax*4]
shl ecx, 3
sub ecx, eax
lea edx, [eax + ecx*4]
mov eax, dword [esi + 0x18]
mov byte [eax + edx*4 + 0x267], bl
mov eax, dword [esi + 0x1c]
lea ecx, [eax + eax*4]
shl ecx, 3
sub ecx, eax
lea edx, [eax + ecx*4]
mov eax, dword [esi + 0x18]
mov dword [eax + edx*4 + 0x268], ebx
mov eax, dword [esi + 0x1c]
lea ecx, [eax + eax*4]
shl ecx, 3
sub ecx, eax
lea edx, [eax + ecx*4]
mov eax, dword [esi + 0x18]
mov dword [eax + edx*4 + 0x26c], ebx
mov edx, dword [esi + 0x1c]
inc edx
mov eax, edx
mov dword [esi + 0x1c], edx
lea ecx, [eax + eax*4]
shl ecx, 3
sub ecx, eax
lea edx, [eax + ecx*4]
mov eax, dword [esi + 0x18]
lea ecx, [eax + edx*4]
push ecx
call ebp
add esp, 0x10
cmp eax, 1
je 0x4c670d
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop ebp
mov eax, dword [esi + 0x1c]
cmp eax, ebx
jle 0x4c6800
mov edx, dword [esi + 0x18]
push 0x4c6610
push 0x274
push eax
push edx
call dword [sym.imp.MSVCRT.dll_qsort]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x100
ret
Function at 0x4c6827
Capabilities:
Delete file
Write file on windows

Disassembly:
sub esp, 0x100
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call edi
mov eax, dword [esi + 0x18]
xor ebx, ebx
cmp eax, ebx
je 0x4c6933
cmp dword [esi + 0x20], 1
jne 0x4c68f0
push ebp
push 0x5965b8
push str._shistory_news.dat
lea eax, [esp + 0x18]
push 0xff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
push 0x593d48
call edi
mov edi, dword [0x593f50]
push 0x593d48
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, ebx
jne 0x4c6892
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4c68ec
lea edx, [esp + 0x10]
push 0x581698
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x4c68ec
mov eax, dword [esi + 0x1c]
test eax, eax
jle 0x4c68e0
xor edi, edi
mov edx, dword [esi + 0x18]
mov eax, edi
push ebp
push 1
add eax, edx
push 0x274
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x4c68e0
mov eax, dword [esi + 0x1c]
inc ebx
add edi, 0x274
cmp ebx, eax
jl 0x4c68b4
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor ebx, ebx
mov dword [esi + 0x20], ebx
pop ebp
xor edi, edi
mov ecx, dword [esi + 0x18]
mov eax, dword [edi + ecx + 0x268]
cmp eax, ebx
je 0x4c6913
push eax
call fcn.004c2eb0
mov edx, dword [esi + 0x18]
add esp, 4
mov dword [edi + edx + 0x268], ebx
add edi, 0x274
cmp edi, 0x27400
jl 0x4c68f2
mov eax, dword [esi + 0x18]
push eax
call fcn.004c2eb0
add esp, 4
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
pop ebx
add esp, 0x100
ret
Function at 0x4e9a65
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call sub.MFC42.DLL_CWnd::GetWindowTextA_1
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push ecx
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov edx, dword [eax + 0x20]
mov ecx, esi
mov dword [esp + 0x14], edx
call sub.MFC42.DLL_CWnd::GetDlgCtrlID
mov ecx, dword [esi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
xor ebp, ebp
mov dword [esp + 0x1c], 0xffffff96
push ebp
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], eax
mov eax, dword [eax - 8]
push ebp
push 0x147
push ecx
mov dword [esp + 0x48], eax
call ebx
mov ecx, dword [esi + 0x8c]
mov dword [esp + 0x40], eax
cmp ecx, ebp
je 0x4e9b12
call sub.MFC42.DLL_CWnd::GetDlgCtrlID
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esi + 0x8c]
push 0x4e
mov ecx, dword [eax + 0x20]
push ecx
jmp 0x4e9b41
mov edx, dword [esi + 0x20]
push edx
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov ebp, eax
mov eax, dword [esi + 0x20]
push eax
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov ecx, ebp
mov esi, eax
call sub.MFC42.DLL_CWnd::GetDlgCtrlID
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x14]
push ecx
push eax
push 0x4e
push edx
call ebx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
Function at 0x4fc7b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
or esi, 0xffffffff
push edi
test ebx, ebx
mov edi, ecx
mov dword [esp + 0x10], esi
je 0x4fc971
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4fc971
mov ecx, dword [edi + 0x10]
xor edx, edx
test ecx, ecx
jle 0x4fc85c
mov ebp, dword [edi + 0xc]
add ebp, 0x48
mov eax, dword [ebp]
test eax, eax
jne 0x4fc7f9
cmp esi, 0xffffffff
jne 0x4fc84d
mov esi, edx
mov dword [esp + 0x10], esi
jmp 0x4fc84d
mov ecx, dword [esp + 0x18]
cmp dword [ebp - 0x44], ecx
jne 0x4fc84d
cmp eax, dword [esp + 0x20]
jne 0x4fc84d
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 4]
cmp ecx, eax
jne 0x4fc84d
mov esi, ebx
lea eax, [ebp - 0x40]
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x4fc83c
test cl, cl
je 0x4fc838
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x4fc83c
add eax, 2
add esi, 2
test cl, cl
jne 0x4fc818
xor eax, eax
jmp 0x4fc841
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4fc87d
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [edi + 0x10]
inc edx
add ebp, 0x54
cmp edx, ecx
jl 0x4fc7e5
test esi, esi
jge 0x4fc8ac
lea eax, [ecx + 1]
cmp eax, 0x40
jl 0x4fc8a7
mov eax, dword [edi + 0xc]
xor esi, esi
mov ecx, dword [eax]
test ecx, ecx
je 0x4fc8ac
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov eax, dword [edi + 0xc]
mov dword [eax], esi
jmp 0x4fc8ac
lea eax, [edx*8]
sub eax, edx
lea esi, [eax + eax*2]
shl esi, 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xc]
mov dword [ecx + esi + 0x50], eax
mov edx, dword [edi + 0xc]
pop edi
mov eax, dword [edx + esi]
pop esi
pop ebp
pop ebx
pop ecx
ret 0x14
mov esi, ecx
mov dword [edi + 0x10], eax
mov ecx, dword [edi + 0xc]
lea eax, [esi*8]
mov ebp, dword [esp + 0x18]
sub eax, esi
push 0x3f
push ebx
lea esi, [eax + eax*2]
shl esi, 2
mov dword [ecx + esi + 4], ebp
mov edx, dword [edi + 0xc]
lea eax, [edx + esi + 8]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov byte [ecx + esi + 0x47], 0
mov edx, dword [edi + 0xc]
mov dword [edx + esi + 0x48], eax
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x24]
mov dword [ecx + esi + 0x4c], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xc]
push 8
mov dword [ecx + esi + 0x50], eax
call fcn.004c2e90
xor edx, edx
add esp, 4
cmp eax, edx
je 0x4fc920
mov dword [eax + 4], edx
mov dword [eax], 0x565230
jmp 0x4fc922
xor eax, eax
mov ecx, dword [edi + 0xc]
mov dword [ecx + esi], eax
mov eax, dword [edi + 0xc]
add eax, esi
mov ecx, dword [eax]
cmp ecx, edx
jne 0x4fc957
push ebx
push ebp
push str.PenCollector:_cannot_create_CFont__d__s_
push 1
push 0x596558
mov dword [eax + 0x48], edx
call fcn.004aa400
mov eax, dword [edi + 0x14]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x14
mov edx, dword [esp + 0x28]
push edx
push ebx
push ebp
call sub.MFC42.DLL_CFont::CreatePointFont
mov eax, dword [edi + 0xc]
pop edi
mov eax, dword [eax + esi]
pop esi
pop ebp
pop ebx
pop ecx
ret 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0x14
Function at 0x4fd310
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
push ebx
push ebp
push esi
mov ebp, ecx
xor esi, esi
push edi
mov eax, dword [ebp + 0x20]
push esi
push esi
push 0x1009
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x40]
mov dword [esp + 0x18], 3
push ecx
mov ecx, dword [0x5a1a04]
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x3c], 2
call fcn.0051d1e0
cmp eax, 1
jne 0x4fd548
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x40]
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], edx
mov edx, dword [ebp + 0x20]
push ecx
mov dword [esp + 0x20], esi
push 0
inc esi
push 0x1007
push edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
push eax
push ecx
push edx
lea eax, [esp + 0xcc]
push 0x80
push eax
call fcn.00429bd0
mov edx, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 0xc0]
push ecx
push 1
push edx
mov ecx, ebp
call sub.MFC42.DLL_CListCtrl::SetItemText
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
push eax
push ecx
push edx
lea eax, [esp + 0xcc]
push 0x80
push eax
call fcn.00429bd0
mov edx, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 0xc0]
push ecx
push 2
push edx
mov ecx, ebp
call sub.MFC42.DLL_CListCtrl::SetItemText
mov al, byte [ebp + 0x8c]
mov ebx, 3
test al, 1
je 0x4fd466
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x90]
push eax
push ecx
push edx
lea eax, [esp + 0xcc]
push 0x80
push eax
call fcn.00429bd0
mov edx, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 0xc0]
mov ebx, 4
push ecx
push 3
push edx
mov ecx, ebp
call sub.MFC42.DLL_CListCtrl::SetItemText
test byte [ebp + 0x8c], 2
je 0x4fd4b1
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
push eax
push ecx
push edx
lea eax, [esp + 0xcc]
push 0x80
push eax
call fcn.00429bd0
mov edx, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 0xc0]
mov eax, ebx
push ecx
push eax
push edx
mov ecx, ebp
inc ebx
call sub.MFC42.DLL_CListCtrl::SetItemText
test byte [ebp + 0x8c], 4
je 0x4fd52e
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.MSVCRT.dll_gmtime]
add esp, 4
test eax, eax
jne 0x4fd4f9
mov edi, 0x58170c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc0]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
jmp 0x4fd519
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
push ecx
push edx
push str._02d:_02d
lea eax, [esp + 0xcc]
push 0x7f
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc0]
push ecx
push ebx
push edx
mov ecx, ebp
call sub.MFC42.DLL_CListCtrl::SetItemText
mov ecx, dword [0x5a1a04]
lea eax, [esp + 0x40]
push eax
push esi
call fcn.0051d1e0
cmp eax, 1
je 0x4fd363
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fef30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push esi
mov esi, ecx
push edi
push 0x10
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call ebx
movsx edx, ax
shr edx, 0x10
je 0x4fef69
mov eax, dword [ebp + 8]
lea edi, [eax + eax*4]
mov dword [ebp + 8], edi
jmp 0x4fef6c
mov edi, dword [ebp + 8]
push 0x11
call ebx
movsx eax, ax
shr eax, 0x10
je 0x4fef80
lea edi, [edi + edi*4]
shl edi, 1
mov dword [ebp + 8], edi
fld qword [esp + 0x10]
fdiv qword [esi + 0x48]
sub esp, 8
xor ecx, ecx
fstp qword [esp]
call fcn.00429ac0
call sub.MSVCRT.dll__ftol
fld qword [esi + 0x58]
fdiv qword [esi + 0x48]
sub esp, 8
xor ecx, ecx
mov ebx, eax
fstp qword [esp]
call fcn.00429ac0
call sub.MSVCRT.dll__ftol
mov ecx, eax
mov eax, ebx
cdq
idiv ecx
xor ebx, ebx
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
fcom qword [0x565ac0]
fnstsw ax
test ah, 0x40
jne 0x4fefe7
fmul qword [esi + 0x48]
cmp edi, ebx
jle 0x4fefde
fsubr qword [esp + 0x10]
jmp 0x4fefed
fsubr qword [esi + 0x58]
fadd qword [esp + 0x10]
jmp 0x4fefed
fstp st(0)
fld qword [esp + 0x10]
fild dword [ebp + 8]
fmul qword [esi + 0x58]
faddp st(1)
fcom qword [0x565ac0]
fnstsw ax
test ah, 1
je 0x4ff00c
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
fstp st(0)
jmp 0x4ff00f
fstp qword [esi + 0x50]
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x4ff08c
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4ff08c
mov edx, dword [esi + 0x54]
mov eax, dword [esi + 0x50]
push edx
push eax
lea edi, [esi + 0x60]
push 0x58dca0
push 0x3f
push edi
call dword [sym.imp.MSVCRT.dll__snprintf]
push 0x2e
push edi
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 0x1c
cmp eax, ebx
je 0x4ff051
mov ecx, dword [esi + 0x40]
mov byte [ecx + eax + 1], bl
push edi
call dword [sym.imp.MSVCRT.dll_atof]
fstp qword [esi + 0x50]
add esp, 4
mov ecx, esi
push edi
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov eax, dword [esi + 0xa0]
mov edx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push eax
push 0xb1
push edx
call edi
mov eax, dword [esi + 0x20]
push ebx
push ebx
push 0xb7
push eax
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x500750
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x324
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
call sub.MFC42.DLL_AfxGetModuleState
mov edi, dword [eax + 4]
test edi, edi
je 0x500946
mov ebx, dword [esp + 0x338]
cmp ebx, 1
jl 0x500946
mov ecx, dword [0x5a0f78]
lea eax, [esp + 0x10]
push eax
push 0x1427
call fcn.004c27f0
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call ebp
mov eax, dword [esi + 0x98]
test eax, eax
je 0x50093f
cmp ebx, dword [esi + 0x9c]
jge 0x50093f
mov edx, dword [esp + 0x10]
shl ebx, 7
lea ecx, [ebx + eax]
lea eax, [esp + 0x14]
push ecx
push edx
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x14]
push 0x24
push 0x5a24a4
push ecx
mov ecx, dword [edi + 0x20]
call sub.MFC42.DLL_CWnd::MessageBoxA
cmp eax, 6
jne 0x500946
push esi
call ebp
mov edi, dword [esi + 0x98]
mov ebp, dword [sym.imp.MSVCRT.dll__snprintf]
add edi, ebx
je 0x5008a4
push edi
push 0x5965b8
push str._sprofiles_s.
lea edx, [esp + 0x28]
push 0xff
push edx
call ebp
lea eax, [esp + 0x130]
lea ecx, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__findfirst]
add esp, 0x1c
mov dword [esp + 0x18], eax
test eax, eax
jl 0x5008a4
lea edx, [esp + 0x130]
lea eax, [esp + 0x1c]
push edx
push edi
push 0x5965b8
push str._sprofiles_s_s
push 0xff
push eax
call ebp
add esp, 0x18
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x11c]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__findnext]
add esp, 8
test eax, eax
je 0x50084f
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll__findclose]
add esp, 4
mov edx, dword [esi + 0x98]
lea eax, [esp + 0x234]
add edx, ebx
push edx
push 0x5965b8
push str._sprofiles_s_
push 0xff
push eax
call ebp
add esp, 0x14
lea ecx, [esp + 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edi, dword [esp + 0x338]
mov ecx, dword [esi + 0x9c]
lea eax, [edi + 1]
cmp eax, ecx
jge 0x500910
mov edx, dword [esi + 0x98]
mov ebp, edi
shl ebp, 0x19
sub ebp, edi
add ebx, edx
add ebp, ecx
shl eax, 7
shl ebp, 7
add eax, edx
push ebp
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov ebx, dword [esi + 0x9c]
push esi
dec ebx
mov dword [esi + 0x9c], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0x8182
push 0x111
mov edx, dword [0x5a0c30]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x500946
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x324
ret 4