joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c6a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x402c98
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x402c9f
cmp ebx, dword [eax + 4]
jae 0x402c9f
xor eax, eax
jmp 0x402e8f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x402cb0
xor eax, eax
inc eax
jmp 0x402e8e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x402cc6
cmp ecx, edx
jae 0x402e0b
cmp dword [eax + 4], 0
je 0x402ccf
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x402cb7
cmp dword [ebp + 8], 0
je 0x402cf1
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x402e0b
cmp eax, esi
jae 0x402e0b
mov eax, dword [0x408b60]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x402d16
cmp dword [esi*4 + 0x408b68], edi
je 0x402e0f
inc esi
cmp esi, eax
jl 0x402d04
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x402e8b
cmp dword [ebp - 8], 0x1000000
jne 0x402e8b
test byte [ebp - 0xc], 0xcc
je 0x402d94
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x402e8b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x402e8b
cmp word [eax + 0x18], 0x10b
jne 0x402e8b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x402e8b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x402d94
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x402d94
test byte [ecx + 0x27], 0x80
jne 0x402e0b
push 1
push 0x408ba8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x402ca8
mov ecx, dword [0x408b60]
test ecx, ecx
mov edx, ecx
jle 0x402dc8
lea eax, [ecx*4 + 0x408b64]
cmp dword [eax], edi
je 0x402dc8
dec edx
sub eax, 4
test edx, edx
jg 0x402dbc
test edx, edx
jne 0x402df9
push 0xf
pop ebx
cmp ecx, ebx
jg 0x402dd5
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x402ded
lea eax, [edx*4 + 0x408b68]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x402ddb
cmp ecx, 0x10
jge 0x402df9
inc ecx
mov dword [0x408b60], ecx
push 0
push 0x408ba8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x402ca8
xor eax, eax
jmp 0x402e8e
test esi, esi
jle 0x402ca8
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x408ba8
call ebx
test eax, eax
jne 0x402ca8
cmp dword [esi*4 + 0x408b68], edi
je 0x402e65
mov eax, dword [0x408b60]
lea esi, [eax - 1]
test esi, esi
jl 0x402e53
cmp dword [esi*4 + 0x408b68], edi
je 0x402e4f
dec esi
jns 0x402e43
test esi, esi
jge 0x402e63
cmp eax, 0x10
jge 0x402e5e
inc eax
mov dword [0x408b60], eax
lea esi, [eax - 1]
jmp 0x402e65
je 0x402e7d
xor ecx, ecx
test esi, esi
jl 0x402e7d
lea eax, [ecx*4 + 0x408b68]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x402e6b
push 0
push 0x408ba8
call ebx
jmp 0x402ca8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405b39
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00402780
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405bd4
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4089e4]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x405bd4
cmp eax, 1
je 0x405bf5
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405bd4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x405ba1
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x405bd0
xor eax, eax
inc eax
jmp 0x405c14
cmp edi, eax
jae 0x405bd8
xor eax, eax
jmp 0x405c14
cmp eax, esi
jae 0x405bdf
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4089e4]
jmp 0x405bf8
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401010
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42092b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x14]
call fcn.00401ea0
xor ebx, ebx
push 0xfc
mov dword [esp + 0x1c], ebx
mov dword [esi], 0x4237dc
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x3c], ebx
mov word [esi + 4], 0xffff
mov dword [esi + 0x30], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
mov byte [esi + 0x44], bl
call sub.MFC42.DLL_operatornew
add esp, 4
mov edi, eax
mov ecx, 0x3f
xor eax, eax
mov dword [esi + 0x34], edi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], 0xf
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4059a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
mov eax, dword [ecx]
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
mov dword [esp + 0x10], ecx
je 0x4059bd
cmp dword [ecx + 4], ebx
jle 0x4059bd
call fcn.00405b90
mov eax, dword [esp + 0x28]
push 0x42aea8
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x4059e3
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x14
ret 4
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push ebx
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push ebx
push ebx
push esi
call edi
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea ecx, [esp + 0x40]
push 4
push ecx
mov byte [esp + 0x4c], bl
call ebp
add esp, 0x2c
mov edi, str.PMAP
lea eax, [esp + 0x1c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x405a41
cmp cl, bl
je 0x405a3d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x405a41
add eax, 2
add edi, 2
cmp cl, bl
jne 0x405a1d
xor eax, eax
jmp 0x405a46
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x405a61
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
push esi
push 1
lea eax, [esp + 0x1c]
push 4
push eax
mov dword [esp + 0x24], ebx
call ebp
mov eax, dword [esp + 0x24]
add esp, 0x10
cmp eax, 0x3e8
push esi
jbe 0x405a96
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
push 1
lea ecx, [esp + 0x24]
push 4
push ecx
call ebp
add esp, 0x10
mov edi, str.TMAP
lea eax, [esp + 0x1c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x405ad1
cmp cl, bl
je 0x405acd
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x405ad1
add eax, 2
add edi, 2
cmp cl, bl
jne 0x405aad
xor eax, eax
jmp 0x405ad6
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x405af1
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
push esi
push 1
lea eax, [esp + 0x20]
push 4
push eax
mov dword [esp + 0x28], ebx
call ebp
mov ecx, dword [esp + 0x20]
push esi
push 1
push 4
lea edi, [ecx + 4]
push edi
call ebp
mov edx, dword [edi]
shl edx, 8
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [esp + 0x34]
add esp, 0x24
mov dword [ecx], eax
mov eax, dword [edi]
cmp eax, ebx
jle 0x405b56
xor ebp, ebp
mov eax, dword [esp + 0x10]
mov edx, ebp
push esi
push 1
mov ecx, dword [eax]
push pe_nt_image_headers32
add edx, ecx
push edx
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [edi]
add esp, 0x10
inc ebx
add ebp, 0x100
cmp ebx, eax
jl 0x405b2d
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [edi]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x408b40
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x420e98
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
lea eax, [esi + 0xc]
test eax, eax
je 0x408cf0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push ebp
lea ecx, [esp + 0x10]
push edi
push ecx
call ebx
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x24]
mov dword [esp + 0x20], edx
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, esi
mov edi, eax
call fcn.00409410
mov ecx, esi
call fcn.00408990
mov ecx, esi
call fcn.004089b0
mov ecx, esi
call fcn.004086f0
mov ecx, esi
call fcn.00408720
mov ecx, esi
call fcn.0040c640
mov ecx, esi
call fcn.004089d0
mov ecx, esi
call fcn.00408770
mov ecx, esi
call fcn.0040c900
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x408c07
mov edx, dword [esi + 0x2430]
mov ecx, dword [edx + 0x2ed0]
test ecx, ecx
je 0x408bfc
mov ecx, dword [eax]
push 0
push 1
push edi
push eax
call dword [ecx + 0x28]
jmp 0x408c07
mov edx, dword [eax]
push 0
push 0
push edi
push eax
call dword [edx + 0x28]
lea eax, [esp + 0x14]
push eax
call ebx
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
sub ebx, ebp
mov ebp, dword [esp + 0x18]
sbb ebp, ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
push 0
push 0x3e8
push ebp
push ebx
mov dword [esp + 0x44], 0
call fcn.00417a90
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
fild qword [esp + 0x1c]
fild qword [esp + 0x24]
fdivp st(1)
fdivr qword [0x423f70]
call sub.MSVCRT.dll__ftol
push eax
lea ecx, [esp + 0x14]
push str.MAX_Frame_rate:__d_fps
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 0xff00
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esi + 0x2c24]
test eax, eax
je 0x408cd1
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, dword [eax - 8]
push ecx
push eax
push 0x226
push 0xb
push edi
call ebx
mov eax, dword [esi + 0x48]
test eax, eax
je 0x408cd1
mov edx, dword [eax]
push eax
call dword [edx + 0xa8]
test eax, eax
push 5
je 0x408cc2
push str.DDRAW
jmp 0x408cc7
push str.DC
push 0x23a
push 0xb
push edi
call ebx
mov eax, dword [esi + 8]
push edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x408b58
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x420e98
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
lea eax, [esi + 0xc]
test eax, eax
je 0x408cf0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push ebp
lea ecx, [esp + 0x10]
push edi
push ecx
call ebx
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x24]
mov dword [esp + 0x20], edx
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, esi
mov edi, eax
call fcn.00409410
mov ecx, esi
call fcn.00408990
mov ecx, esi
call fcn.004089b0
mov ecx, esi
call fcn.004086f0
mov ecx, esi
call fcn.00408720
mov ecx, esi
call fcn.0040c640
mov ecx, esi
call fcn.004089d0
mov ecx, esi
call fcn.00408770
mov ecx, esi
call fcn.0040c900
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x408c07
mov edx, dword [esi + 0x2430]
mov ecx, dword [edx + 0x2ed0]
test ecx, ecx
je 0x408bfc
mov ecx, dword [eax]
push 0
push 1
push edi
push eax
call dword [ecx + 0x28]
jmp 0x408c07
mov edx, dword [eax]
push 0
push 0
push edi
push eax
call dword [edx + 0x28]
lea eax, [esp + 0x14]
push eax
call ebx
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
sub ebx, ebp
mov ebp, dword [esp + 0x18]
sbb ebp, ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
push 0
push 0x3e8
push ebp
push ebx
mov dword [esp + 0x44], 0
call fcn.00417a90
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
fild qword [esp + 0x1c]
fild qword [esp + 0x24]
fdivp st(1)
fdivr qword [0x423f70]
call sub.MSVCRT.dll__ftol
push eax
lea ecx, [esp + 0x14]
push str.MAX_Frame_rate:__d_fps
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 0xff00
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esi + 0x2c24]
test eax, eax
je 0x408cd1
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, dword [eax - 8]
push ecx
push eax
push 0x226
push 0xb
push edi
call ebx
mov eax, dword [esi + 0x48]
test eax, eax
je 0x408cd1
mov edx, dword [eax]
push eax
call dword [edx + 0xa8]
test eax, eax
push 5
je 0x408cc2
push str.DDRAW
jmp 0x408cc7
push str.DC
push 0x23a
push 0xb
push edi
call ebx
mov eax, dword [esi + 8]
push edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x40a1f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
mov ebp, ecx
test esi, esi
jle 0x40a2e5
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40a2e5
push edi
call fcn.0040a400
mov eax, esi
mov dword [ebp + 0x130], esi
shl eax, 4
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp + 0x134], eax
test esi, esi
jle 0x40a2ba
push ebx
xor ebx, ebx
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 0x134]
add edx, ebx
lea edi, [ebx + ecx]
mov eax, edi
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp + 0x134]
xor edx, edx
mov dl, byte [ecx + ebx + 7]
lea eax, [ecx + ebx]
xor ecx, ecx
mov esi, edx
mov cl, byte [eax + 6]
imul esi, ecx
push esi
call sub.MFC42.DLL_operatornew
mov edx, dword [ebp + 0x134]
mov ecx, esi
add esp, 4
mov dword [edx + ebx + 0xc], eax
mov eax, dword [ebp + 0x134]
mov esi, dword [edi + 0xc]
mov edx, ecx
mov edi, dword [eax + ebx + 0xc]
mov eax, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebx, 0x10
and ecx, 3
dec eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x14], eax
jne 0x40a23b
pop ebx
lea esi, [ebp + 0xc]
mov edi, 6
mov eax, dword [ebp + 0x134]
mov ecx, dword [ebp + 0x130]
push eax
push ecx
mov ecx, dword [esi]
call fcn.00401480
add esi, 4
dec edi
jne 0x40a2c2
pop edi
pop esi
xor eax, eax
pop ebp
ret 8
push 0x84070001
call fcn.004168d0
xor edx, edx
pop esi
test eax, eax
setge dl
dec edx
pop ebp
and edx, 0x84070000
inc edx
mov eax, edx
ret 8

Function at 0x40c4c8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42106f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 8]
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 4]
mov dword [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esi + 0x23f8]
lea eax, [esp + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x24], 2
call fcn.0040c200
lea edx, [esp + 0xc]
mov ecx, esi
push edx
call fcn.0040c280
mov eax, dword [eax]
mov ecx, dword [esp + 8]
mov edx, dword [esi + 0x23f4]
push eax
push ecx
push edx
lea eax, [esp + 0x10]
push 0x42bbec
push eax
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x24]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x10], 1
lea ecx, [esp + 4]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x40d7f0
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40d80c
push eax
push eax
push str.File_not_found
call sub.MFC42.DLL_AfxMessageBox
push esi
mov dword [0x42d5e8], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [esp + 0xc]
mov dword [0x42d5e8], eax
mov dword [esi], 0
mov eax, dword [0x42d5e8]
test eax, eax
je 0x40d855
push str.TypRiffCreate
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d855
push esi
push 0x7d1
call eax
neg eax
sbb eax, eax
pop esi
neg eax
ret
xor eax, eax
pop esi
ret

Function at 0x40db28
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x421240
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push 1
call fcn.00413c10
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 8]
mov dword [esp + 0x14], 0
push eax
call fcn.00417e60
add esp, 4
mov ecx, dword [eax]
lea edx, [esp + 4]
push ecx
push 0x42bf54
push edx
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40dba5
mov ecx, esi
call fcn.0040db00
test eax, eax
je 0x40dba5
mov ecx, dword [esp + 4]
push ecx
mov ecx, esi
call fcn.0040db00
mov ecx, eax
call fcn.0040c830
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x410610
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x421518
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3864c]
test eax, eax
je 0x4107f9
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x14], 0
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0x64
idiv ecx
push edx
lea edx, [esp + 0x20]
push 0x42c068
push edx
call sub.MFC42.DLL_CString::Format
mov edi, dword [esp + 0x2c]
add esp, 0xc
mov ecx, esi
push edi
call fcn.004127d0
mov ecx, dword [esi + 0x357a8]
mov ebx, dword [esi + 0x38634]
mov edx, dword [esi + 0x38638]
cmp edi, ecx
je 0x4106c0
cmp edi, dword [esi + 0x357ac]
je 0x4106c0
cmp edi, dword [esi + 0x357b0]
je 0x4106c0
cmp edi, dword [esi + 0x357a0]
je 0x4106bc
cmp edi, dword [esi + 0x357a4]
je 0x4106bc
cmp edi, dword [esi + 0x357b4]
jne 0x4106c2
add edx, 2
add ebx, 2
jmp 0x4106c2
inc ebx
inc edx
jmp 0x4106c2
dec edx
dec ebx
mov ecx, dword [esi + eax*4 + 0x38cb8]
test ecx, ecx
jle 0x4106d1
cmp ecx, edx
jl 0x4106e3
cmp ecx, 0xc8
jle 0x4106eb
lea edi, [ebx + 0xc8]
cmp ecx, edi
jge 0x4106eb
inc ecx
mov dword [esi + eax*4 + 0x38cb8], ecx
test byte [eax + esi + 0x390c0], 0x80
je 0x4107c7
mov ecx, dword [esi + eax*4 + 0x38cb8]
test ecx, ecx
jne 0x410714
mov dword [esi + eax*4 + 0x38cb8], 1
jmp 0x41079d
jle 0x410741
cmp ecx, edx
jge 0x410745
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
cmp ecx, edx
jl 0x41074f
cmp ecx, 0xc8
jge 0x410755
jmp 0x410792
cmp ecx, 0xc8
jle 0x410788
lea edx, [ebx + 0xc8]
cmp ecx, edx
jge 0x410788
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
add ebx, 0xc8
cmp ecx, ebx
jl 0x4107d2
mov dword [esi + eax*4 + 0x38cb8], 0xc9
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
mov dword [esi + eax*4 + 0x38cb8], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
mov eax, dword [esp + 0x20]
jne 0x41082b
cmp eax, dword [esi + 0x357b4]
jne 0x41082b
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
xor ecx, ecx
cmp edi, eax
sete cl
mov eax, ecx
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8
Function at 0x410626
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x421518
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3864c]
test eax, eax
je 0x4107f9
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x14], 0
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0x64
idiv ecx
push edx
lea edx, [esp + 0x20]
push 0x42c068
push edx
call sub.MFC42.DLL_CString::Format
mov edi, dword [esp + 0x2c]
add esp, 0xc
mov ecx, esi
push edi
call fcn.004127d0
mov ecx, dword [esi + 0x357a8]
mov ebx, dword [esi + 0x38634]
mov edx, dword [esi + 0x38638]
cmp edi, ecx
je 0x4106c0
cmp edi, dword [esi + 0x357ac]
je 0x4106c0
cmp edi, dword [esi + 0x357b0]
je 0x4106c0
cmp edi, dword [esi + 0x357a0]
je 0x4106bc
cmp edi, dword [esi + 0x357a4]
je 0x4106bc
cmp edi, dword [esi + 0x357b4]
jne 0x4106c2
add edx, 2
add ebx, 2
jmp 0x4106c2
inc ebx
inc edx
jmp 0x4106c2
dec edx
dec ebx
mov ecx, dword [esi + eax*4 + 0x38cb8]
test ecx, ecx
jle 0x4106d1
cmp ecx, edx
jl 0x4106e3
cmp ecx, 0xc8
jle 0x4106eb
lea edi, [ebx + 0xc8]
cmp ecx, edi
jge 0x4106eb
inc ecx
mov dword [esi + eax*4 + 0x38cb8], ecx
test byte [eax + esi + 0x390c0], 0x80
je 0x4107c7
mov ecx, dword [esi + eax*4 + 0x38cb8]
test ecx, ecx
jne 0x410714
mov dword [esi + eax*4 + 0x38cb8], 1
jmp 0x41079d
jle 0x410741
cmp ecx, edx
jge 0x410745
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
cmp ecx, edx
jl 0x41074f
cmp ecx, 0xc8
jge 0x410755
jmp 0x410792
cmp ecx, 0xc8
jle 0x410788
lea edx, [ebx + 0xc8]
cmp ecx, edx
jge 0x410788
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
add ebx, 0xc8
cmp ecx, ebx
jl 0x4107d2
mov dword [esi + eax*4 + 0x38cb8], 0xc9
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
mov dword [esi + eax*4 + 0x38cb8], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
mov eax, dword [esp + 0x20]
jne 0x41082b
cmp eax, dword [esi + 0x357b4]
jne 0x41082b
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
xor ecx, ecx
cmp edi, eax
sete cl
mov eax, ecx
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8