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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
mov dword [ebp - 4], ebx
cmp dword [ebx + 0x34], 0
jne 0x4ad483
mov eax, dword [ebx + 0x44]
cmp dword [eax - 0xc], 0
je 0x4ad483
push esi
push edi
call fcn.004ad320
mov eax, dword [ebx + 0x44]
mov esi, 0x1f40
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0xc], eax
mov edx, 2
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00538f33
mov ebx, eax
add esp, 4
mov eax, dword [ebp - 4]
mov dword [ebp - 8], ebx
push dword [eax + 0x48]
push esi
push ebx
call edi
test eax, eax
je 0x4ad478
lea ecx, [esi - 2]
cmp eax, ecx
jne 0x4ad3b4
push ebx
add esi, esi
call fcn.00538f2e
add esp, 4
jmp 0x4ad36e
mov edx, 2
test ebx, ebx
je 0x4ad373
mov esi, dword [ebp - 8]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, edx
test ax, ax
jne 0x4ad3c3
sub esi, ecx
sar esi, 1
je 0x4ad475
mov eax, dword [ebp - 0xc]
cmp eax, esi
ja 0x4ad452
mov ecx, dword [ebp - 4]
lea edi, [eax + eax]
mov edx, ebx
mov ecx, dword [ecx + 0x44]
sub edi, 4
jb 0x4ad401
mov edi, edi
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4ad406
add ecx, 4
add edx, 4
sub edi, 4
jae 0x4ad3f0
cmp edi, 0xfffffffc
je 0x4ad433
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4ad452
cmp edi, 0xfffffffd
je 0x4ad433
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4ad452
cmp edi, 0xfffffffe
je 0x4ad433
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4ad452
cmp edi, 0xffffffff
je 0x4ad433
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x4ad452
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x4ad441
cmp word [ebx + eax*2], 0x5c
jne 0x4ad452
mov eax, dword [ebp - 4]
push dword [eax + 0x48]
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ebx, [ebx + esi*2]
add ebx, 2
mov esi, ebx
lea ecx, [esi + 2]
lea ecx, [ecx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4ad460
sub esi, ecx
sar esi, 1
jne 0x4ad3d7
mov ebx, dword [ebp - 8]
push ebx
call fcn.00538f2e
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ad6b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [esi]
call dword [eax + 0x88]
test eax, eax
je 0x4ad762
cmp dword [esi + 0x28], 0
jne 0x4ad6f5
mov eax, dword [ebp + 0x10]
push dword [eax]
push dword [edi]
push 3
push 0
push dword [ebp + 8]
push dword [esi + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
pop edi
sbb eax, eax
inc eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp + 0xc]
push eax
push 0
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push dword [esi + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ad762
mov ecx, dword [edi]
test ecx, ecx
jne 0x4ad730
push dword [ebp + 0xc]
call fcn.00574fb6
mov ecx, dword [ebp + 0x10]
add esp, 4
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov ecx, dword [edi]
jmp 0x4ad73a
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, dword [ebp + 0xc]
jb 0x4ad762
lea eax, [ebp + 0xc]
push eax
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push dword [esi + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ad762
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b0190
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x6244f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
jne 0x4b0221
mov eax, dword [esi + 0x48]
cmp dword [eax - 0xc], 0
jne 0x4b021a
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4b023c
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x5d2250
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4b023c
lea edx, [ebp - 0x20c]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4b01f4
sub edx, ecx
lea eax, [ebp - 0x20c]
sar edx, 1
lea ecx, [esi + 0x48]
push edx
push eax
call fcn.004054b5
mov dword [esi + 0x4c], 1
mov dword [esi + 0x38], 1
mov ecx, dword [esi + 0x48]
xor eax, eax
pop edi
pop esi
cmp dword [ecx - 0xc], eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e41f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0056e41f
mov esp, ebp
pop ebp
ret

Function at 0x4b59a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.004b5860
mov dword [ebp - 4], eax
test eax, eax
je 0x4b59c7
push 5
push dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, esi
push eax
call fcn.004b56e0
test eax, eax
jne 0x4b59ea
call fcn.00545615
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
test eax, eax
je 0x4b59fb
push 5
push dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, esi
push eax
call fcn.004b56e0
test eax, eax
je 0x4b59fb
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4b5a40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x4b5b08
call fcn.004b5860
mov esi, eax
movzx eax, word [ebp + 0xc]
push 0x17
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4b5a90
call fcn.00545615
mov esi, dword [eax + 0xc]
test esi, esi
je 0x4b5b08
movzx eax, word [ebp + 0xc]
push 0x17
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4b5b08
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4b5b08
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp + 0xc]
mov esi, eax
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4b5b08
lea esi, [esi*2 + 2]
mov ecx, ebx
push esi
call fcn.004afa80
mov edi, eax
test edi, edi
je 0x4b5b08
push esi
push 0
push edi
call fcn.00570de0
add esp, 0xc
push esi
push edi
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0xffffffffffffffff
mov ecx, ebx
mov esi, eax
call fcn.0040bcbe
xor eax, eax
test esi, esi
pop edi
pop esi
setg al
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8

Function at 0x4b5bb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
call fcn.00404f23
mov edi, dword [ebp + 0xc]
mov eax, edi
mov ebx, dword [ebp + 8]
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4b5c9b
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4b5c9b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4b5c9b
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4b5c2b
cmp esi, ecx
jae 0x4b5c9b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x4b5c15
cmp esi, ecx
jae 0x4b5c9b
movzx edi, word [esi]
test edi, edi
je 0x4b5c9b
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
push edi
call fcn.004b5720
lea ecx, [edi + edi]
add esi, 2
test ecx, ecx
je 0x4b5c8a
test eax, eax
je 0x4b5c7a
push ecx
test esi, esi
je 0x4b5c6f
push esi
push eax
call fcn.00570860
add esp, 0xc
mov ecx, ebx
push edi
call fcn.0040bcbe
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push 0
push eax
call fcn.00570de0
add esp, 0xc
call fcn.0057524b
mov dword [eax], 0x16
call fcn.00574b40
push edi
mov ecx, ebx
call fcn.0040bcbe
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
Function at 0x4bc250
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1542
mov eax, dword fs:[0]
push eax
sub esp, 0x204
mov eax, dword [0x6244f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x210], eax
call fcn.005395ea
mov eax, dword [ebp - 0x208]
lea esi, [eax + 0x44]
mov dword [ebp - 4], 0
lea edi, [eax + 0x98]
mov dword [eax], vtable.CXTPToolTipContext.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CFont.0
lea ebx, [eax + 0xa0]
mov dword [ebx + 4], 0
mov dword [ebx], vtable.CFont.0
push 0
mov byte [ebp - 4], 2
mov dword [eax + 0x60], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 1
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0x208]
cdq
sub eax, edx
sar eax, 1
push 0x2c
mov dword [ecx + 0x3c], eax
lea eax, [ecx + 0x64]
push 0
push eax
call fcn.00570de0
add esp, 0xc
call fcn.004ab2c0
mov ecx, eax
call fcn.004aa870
mov ecx, dword [ebp - 0x208]
push 0
push 0
push 0
push 0
push esi
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x90], 0xffffffff
mov dword [ecx + 0x94], 0xffffffff
mov dword [ecx + 0x38], 1
mov dword [ecx + 0x40], 2
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x208]
push 0x1f0
push 0
mov dword [eax + 0x58], 0xffffffff
mov dword [eax + 0x54], 0xffffffff
mov dword [eax + 0x5c], 0xffffffff
lea eax, [ebp - 0x200]
push eax
call fcn.00570de0
add esp, 0xc
mov dword [ebp - 0x204], 0x1f4
lea eax, [ebp - 0x204]
push 0
push eax
push 0x1f4
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov dword [ebp - 0xb8], 0x190
call fcn.004b5fd0
mov ecx, eax
call fcn.004b5770
mov esi, dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov byte [ebp - 0xb1], al
lea eax, [ebp - 0xc8]
push eax
call esi
push eax
mov ecx, edi
call fcn.005460ea
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xb8], 0x2bc
push eax
call esi
push eax
mov ecx, ebx
call fcn.005460ea
mov ecx, dword [ebp - 0x208]
mov eax, ecx
mov dword [ecx + 0xa8], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056e41f
mov esp, ebp
pop ebp
ret
Function at 0x4be330
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x6244f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov ebx, ecx
push edi
push 1
call esi
test ax, ax
js 0x4be43d
push 2
call esi
test ax, ax
js 0x4be43d
push 4
call esi
test ax, ax
js 0x4be43d
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x18], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebx + 0x88]
xor esi, esi
test eax, eax
jle 0x4be43d
lea ebx, [ebx]
test esi, esi
js 0x4be463
cmp esi, eax
jge 0x4be463
mov eax, dword [ebx + 0x84]
mov edi, dword [eax + esi*4]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4be42e
push dword [edi + 0x20]
call fcn.0053bdcf
mov ecx, eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
test byte [edi + 8], 1
push eax
je 0x4be3fd
push dword [ecx + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x4be402
call fcn.00546116
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4be42e
test byte [edi + 8], 1
jne 0x4be450
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
push 0
call fcn.004bfbd0
cmp eax, dword [edi + 0x20]
je 0x4be450
mov eax, dword [ebx + 0x88]
inc esi
cmp esi, eax
jl 0x4be3a0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e41f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056e41f
mov esp, ebp
pop ebp
ret
call fcn.00538fe6
int3

Function at 0x4bfe00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push esi
push edi
mov ecx, 7
lea edi, [ebp - 0x24]
mov esi, ebx
push eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
push 0
push 0x410
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebx + 0x14]
add ecx, 0xfffffe00
mov esi, dword [ebx + 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], esi
cmp ecx, 0xd
ja 0x4bfe5d
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 8]
movzx ecx, si
movzx eax, dx
shl ecx, 0x10
or ecx, eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0x407
push dword [edi + 0x20]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4c80b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1e5d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6244f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 0x10]
call fcn.00478570
lea eax, [esi + 0x20]
mov dword [esi], vtable.CXTPMarkupPathGeometry.0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
push eax
mov dword [ebp - 4], 0
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
call dword [sym.imp.USER32.dll_SetRectEmpty]
test edi, edi
jle 0x4c81f4
xor ecx, ecx
mov eax, edi
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00538f33
lea edx, [edi*8]
mov dword [esi + 0x14], eax
add esp, 4
test edx, edx
je 0x4c8178
test eax, eax
jne 0x4c819c
call fcn.0057524b
mov dword [eax], 0x16
call fcn.00574b40
push edi
call fcn.00538f33
add esp, 4
mov dword [esi + 0x1c], eax
test eax, eax
je 0x4c81e4
mov ecx, dword [ebp + 0xc]
push edi
test ecx, ecx
je 0x4c81d9
push ecx
push eax
call fcn.00570860
add esp, 0xc
jmp 0x4c81f4
mov ecx, dword [ebp + 8]
push edx
test ecx, ecx
je 0x4c81b6
push ecx
push eax
call fcn.00570860
push edi
call fcn.00538f33
add esp, 0x10
jmp 0x4c8181
push 0
push eax
call fcn.00570de0
call fcn.0057524b
mov dword [eax], 0x16
call fcn.00574b40
push edi
call fcn.00538f33
add esp, 0x10
jmp 0x4c8181
push 0
push eax
call fcn.00570de0
add esp, 0xc
call fcn.0057524b
mov dword [eax], 0x16
call fcn.00574b40
mov ecx, esi
call fcn.004cb360
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4ca4b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
call fcn.004c9770
test eax, eax
je 0x4ca5cc
mov ecx, dword [edi + 8]
mov esi, dword [edi]
mov dword [ebp - 8], 0
movzx eax, word [esi + ecx*2]
cmp eax, 0x2b
je 0x4ca4ed
mov edx, ecx
cmp eax, 0x2d
jne 0x4ca4f3
mov dword [ebp - 8], 1
inc ecx
mov edx, ecx
mov dword [edi + 8], ecx
cmp word [esi + ecx*2], 0x30
fld qword [0x5cc490]
mov dword [ebp + 8], 0
jb 0x4ca547
lea eax, [esi + 2]
lea eax, [eax + ecx*2]
mov dword [ebp - 4], eax
movzx eax, word [esi + ecx*2]
cmp eax, 0x39
ja 0x4ca547
sub eax, 0x30
lea edx, [ecx + 1]
mov dword [ebp - 0xc], eax
mov ecx, edx
fild dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add dword [ebp - 4], 2
fstp dword [ebp - 0xc]
fld dword [ebp - 0xc]
fld dword [ebp + 8]
fmul st(2)
mov dword [edi + 8], edx
cmp word [eax], 0x30
faddp st(1)
fstp dword [ebp + 8]
jae 0x4ca510
cmp word [esi + edx*2], 0x2e
jne 0x4ca5a8
inc edx
mov dword [ebp - 4], 0x3f800000
mov dword [edi + 8], edx
cmp word [esi + edx*2], 0x30
jb 0x4ca5a8
fld dword [ebp - 4]
lea ecx, [esi + 2]
lea ecx, [ecx + edx*2]
movzx eax, word [esi + edx*2]
cmp eax, 0x39
ja 0x4ca5a6
fdiv st(1)
sub eax, 0x30
mov dword [ebp - 0xc], eax
inc edx
fstp dword [ebp - 4]
fild dword [ebp - 0xc]
fstp dword [ebp - 0xc]
fld dword [ebp - 0xc]
fld dword [ebp - 4]
fld st(0)
mov dword [edi + 8], edx
movzx eax, word [ecx]
add ecx, 2
fmulp st(2)
fld dword [ebp + 8]
faddp st(2)
fxch st(1)
fstp dword [ebp + 8]
cmp eax, 0x30
jae 0x4ca569
fstp st(0)
cmp dword [ebp - 8], 0
fstp st(0)
movss xmm0, dword [ebp + 8]
pop edi
pop esi
je 0x4ca5be
xorps xmm0, xmmword [0x5d6c80]
movss dword [ebp + 8], xmm0
fld dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4
mov ecx, edi
call fcn.004cb2f0
int3

Function at 0x4d11f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x100]
test esi, esi
je 0x4d1278
mov eax, dword [ebp + 8]
shr eax, 8
push ebx
mov ebx, dword [esi + 0x34]
cmp al, 2
jne 0x4d1277
test ebx, ebx
je 0x4d1277
push dword [ebp + 0x10]
lea eax, [esi + 4]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4d122c
mov ecx, dword [ebx + 0x2c]
jmp 0x4d1250
mov eax, dword [esi + 0x34]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x40]
cmp dword [eax + 0x58], 0
cmovne edx, dword [ebp + 0x10]
add edx, dword [esi + 0x1c]
cmp edx, ecx
jl 0x4d1250
mov eax, dword [ebx + 0x3c]
add eax, ecx
mov ecx, edx
cmp edx, eax
cmovge ecx, eax
push ecx
mov ecx, edi
call fcn.004cff20
cmp dword [ebp + 8], 0x202
je 0x4d126e
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x4d1277
push 0
mov ecx, edi
call fcn.004cf9e0
pop ebx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4d8530
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2c1d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6244f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
call fcn.005395ea
mov dword [ebp - 4], 0
mov dword [edi], vtable.CXTPMenuBarMDIMenuInfo.0
call fcn.0053955f
mov ecx, eax
test ecx, ecx
je 0x4d8668
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x24], eax
mov byte [ebp - 4], 1
call fcn.0053955f
mov ecx, eax
test ecx, ecx
je 0x4d8668
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x28], eax
push 0x44
mov byte [ebp - 4], 2
call fcn.00538ef6
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4d85c9
mov ecx, eax
call fcn.00486610
jmp 0x4d85cb
xor eax, eax
push dword [ebp + 8]
mov ecx, eax
mov byte [ebp - 4], 2
mov dword [edi + 0x20], eax
call fcn.004885d0
mov ebx, dword [ebp + 0xc]
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], 0
call fcn.00545615
call fcn.00545615
mov ecx, dword [eax + 0xc]
movzx eax, bx
push eax
push ecx
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [edi + 0x2c], eax
call fcn.00545615
mov ecx, dword [eax + 4]
call fcn.00544a2b
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4d8652
call fcn.00545615
mov ecx, dword [eax + 4]
lea eax, [ebp - 0x10]
push eax
call fcn.00544a4c
mov esi, eax
cmp ebx, dword [esi + 0x54]
je 0x4d8638
cmp dword [ebp - 0x10], 0
jne 0x4d8618
jmp 0x4d8652
mov eax, dword [esi]
lea ecx, [edi + 0x24]
push 1
push ecx
mov ecx, esi
call dword [eax + 0x64]
mov eax, dword [esi]
lea ecx, [edi + 0x28]
push 6
push ecx
mov ecx, esi
call dword [eax + 0x64]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00404e00
int3
Function at 0x4d8fa0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
cmp edi, 0x220
ja 0x4d90f0
je 0x4d8fdb
cmp edi, 0x47
ja 0x4d9047
je 0x4d8fd0
mov eax, edi
sub eax, 2
je 0x4d900b
sub eax, 3
jne 0x4d8ff0
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x12c]
jne 0x4d8ff0
push 0
push 0x2fbf
push 0x113
push dword [esi - 0x60]
call dword [sym.imp.USER32.dll_PostMessageW]
push dword [ebp + 0x18]
mov ecx, esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call fcn.004a37b0
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp dword [esi + 0x130], 0
je 0x4d8ff0
lea ecx, [esi - 0x80]
call fcn.004a28e0
test eax, eax
jne 0x4d9024
xor ecx, ecx
jmp 0x4d9027
mov ecx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
cmp eax, ecx
jne 0x4d8ff0
push dword [esi + 0x130]
push eax
call dword [sym.imp.USER32.dll_SetMenu]
mov dword [esi + 0x130], 0
jmp 0x4d8ff0
cmp edi, 0x112
jne 0x4d8ff0
lea ebx, [esi - 0x80]
mov ecx, ebx
call fcn.00484a20
test eax, eax
je 0x4d8ff0
push 0x47c450
mov ecx, 0x62d1e4
call fcn.00550c7e
test eax, eax
je 0x4d91d6
cmp dword [eax + 4], 0
jg 0x4d8ff0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x4d8ff0
mov ecx, ebx
call fcn.004a29c0
test eax, eax
jne 0x4d8ff0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
and eax, 0xfff0
cmp eax, 0xf100
jne 0x4d8ff0
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
jne 0x4d8ff0
mov eax, dword [ebx]
mov ecx, ebx
push 0x12
call dword [eax + 0x220]
test eax, eax
jne 0x4d90e4
mov ecx, ebx
call fcn.004a26f0
test eax, eax
je 0x4d90e4
push 0
push ebx
mov ecx, eax
call fcn.0047e8e0
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0x14
mov eax, edi
sub eax, 0x221
je 0x4d8fdb
sub eax, 1
je 0x4d8fdb
sub eax, 0xe
jne 0x4d8ff0
mov eax, dword [esi - 0x80]
lea ecx, [esi - 0x80]
call dword [eax + 0x188]
lea ecx, [esi - 0x80]
test eax, eax
je 0x4d91ad
call fcn.004a29c0
test eax, eax
je 0x4d9155
lea ecx, [esi - 0x80]
call fcn.004a28e0
push 0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x70]
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov eax, 1
pop ebp
ret 0x14
test dword [esi + 0x54], 0x400
mov edi, dword [ebp + 0x10]
jne 0x4d9182
mov eax, dword [edi]
test eax, eax
jne 0x4d9179
cmp dword [esi + 0x130], eax
je 0x4d9182
test eax, eax
jne 0x4d9179
mov eax, dword [esi + 0x130]
push eax
lea ecx, [esi - 0x80]
call fcn.004d9d60
lea ecx, [esi - 0x80]
call fcn.004a28e0
push 0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x70]
lea ecx, [esi - 0x80]
call fcn.004d9210
mov dword [edi], 0
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
call fcn.004a28e0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x6c]
test eax, eax
jne 0x4d8ff0
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov eax, 1
pop ebp
ret 0x14
call fcn.00538fe6
int3
Function at 0x4dc2b0
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push edi
mov edi, ecx
je 0x4dc2e9
cmp dword [edi + 4], 0
jne 0x4dc2fe
push esi
call fcn.00545615
mov esi, dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push esi
push 0x4dc0e0
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
pop esi
mov dword [edi + 4], eax
pop edi
pop ebp
ret 4
mov eax, dword [edi + 4]
test eax, eax
je 0x4dc2fe
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [edi + 4], 0
pop edi
pop ebp
ret 4