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

Disassembly:
mov eax, 0x4a8c48
call fcn.0043cb10
sub esp, 0x118
push ebx
push esi
push edi
lea eax, [ebp - 0x124]
push 0x104
push eax
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x124]
push 0x5c
push eax
call fcn.0043cce0
push str._accel.ini
push eax
call fcn.0043cbf0
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 0x10
lea eax, [ebp - 0x124]
push eax
push 0
push str.Count
push str.Total
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x1c], ebx
je 0x427cf7
mov eax, dword [0x4df718]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x64]
and dword [ebp - 4], 0
test eax, eax
je 0x427c0e
push eax
call fcn.0049cedd
pop ecx
lea eax, [ebx + ebx*2]
shl eax, 1
push eax
call fcn.0049ceb4
test eax, eax
pop ecx
mov dword [esi + 0x64], eax
jne 0x427c28
xor esi, esi
jmp 0x427ce9
and dword [ebp - 0x14], 0
test ebx, ebx
jle 0x427cc8
xor ebx, ebx
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push 0x4dc72c
push eax
call fcn.00496e37
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
push 0
push 0x4dc728
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x124]
push eax
push 0
push str.combokey
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x124]
push eax
push 0
push 0x4dc718
push dword [ebp - 0x10]
call edi
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x427c21
cmp dword [ebp - 0x18], 0
je 0x427c21
test eax, eax
je 0x427c21
mov edx, dword [esi + 0x64]
inc dword [ebp - 0x14]
mov word [edx + ebx + 4], cx
mov ecx, dword [esi + 0x64]
mov dl, byte [ebp - 0x18]
mov byte [ecx + ebx], dl
mov ecx, dword [esi + 0x64]
mov word [ecx + ebx + 2], ax
mov eax, dword [ebp - 0x14]
add ebx, 6
cmp eax, dword [ebp - 0x1c]
jl 0x427c36
mov ebx, dword [ebp - 0x1c]
push dword [esi + 0x458]
lea edi, [esi + 0x458]
call dword [sym.imp.USER32.dll_DestroyAcceleratorTable]
push ebx
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_CreateAcceleratorTableA]
push 1
mov dword [edi], eax
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0049c9c4
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x428b05
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x4a8df2
call fcn.0043cb10
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x4b4f20
lea ecx, [esi + 0x70]
mov dword [ebp - 4], 9
call fcn.0049c9c4
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 8
call fcn.0049c9c4
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 7
call fcn.0049c9c4
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 6
call fcn.0049c9c4
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 5
call fcn.0049c9c4
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 4
call fcn.0049c9c4
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 3
call fcn.0049c9c4
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0049c9c4
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 1
call fcn.0049c9c4
and byte [ebp - 4], 0
lea ecx, [esi + 0x28]
call fcn.0049c9c4
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 4]
call fcn.0049c9c4
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x429743
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0042971f
mov esi, eax
test esi, esi
jne 0x4297c6
mov al, byte [0x4e7dd8]
push 0x40
mov byte [ebp - 0x104], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push 0x104
push eax
mov ecx, ebx
call fcn.004296cd
test eax, eax
je 0x4297bd
lea eax, [ebp - 0x104]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
xor edi, edi
mov ecx, ebx
call fcn.0042971f
push 0x1f4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
jne 0x4297c6
inc edi
cmp edi, 0xa
jl 0x42979f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x168
push dword [ebp + 8]
push 0x52c
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
push 1
pop eax
jmp 0x4297bf
Function at 0x43098e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x10]
push ebx
shr eax, 0x10
movzx eax, al
push eax
xor eax, eax
mov al, byte [ebp + 0x11]
movzx eax, al
push eax
movzx eax, byte [ebp + 0x10]
push eax
lea eax, [ebp - 0x28]
push str._.2x_.2x_.2x
push eax
call fcn.0043cff0
add esp, 0x14
lea eax, [ebp - 0x1c]
push dword [ebp + 0x14]
push 0xa
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1c]
push 2
push eax
lea eax, [ebp - 4]
push eax
call fcn.0043f640
lea eax, [ebp - 0x1a]
push 2
push eax
lea eax, [ebp - 8]
xor bl, bl
push eax
mov byte [ebp - 2], bl
call fcn.0043f640
lea eax, [ebp - 0x18]
push 2
push eax
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 6], bl
call fcn.0043f640
lea eax, [ebp - 0x10]
push 0x10
push eax
lea eax, [ebp - 4]
push eax
mov byte [ebp - 0xa], bl
call fcn.0043f61a
mov bl, al
lea eax, [ebp - 0x10]
push 0x10
push eax
lea eax, [ebp - 8]
push eax
call fcn.0043f61a
mov byte [ebp + 0x13], al
lea eax, [ebp - 0x10]
push 0x10
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043f61a
xor ecx, ecx
add esp, 0x48
mov ch, al
mov cl, byte [ebp + 0x13]
movzx eax, bl
shl ecx, 8
or eax, ecx
pop ebx
leave
ret 0x10

Function at 0x43f30e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43f32e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004414ad
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x43f351
test byte [esp + 8], 2
je 0x43f351
call fcn.00441520
mov dword [eax], 0xd
call fcn.00441529
mov dword [eax], 5
jmp 0x43f32a
xor eax, eax
ret
Function at 0x451ad3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb7a8
push 0x443e8c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
and dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
jne 0x451b20
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
je 0x451b20
xor eax, eax
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
jmp 0x451b34
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x45484e
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4ab608
call fcn.0043cb10
sub esp, 0x150
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov eax, dword [ebx]
lea ecx, [ebp - 0x15c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x454939
test byte [ebp - 0x15c], 0x10
push edi
mov edi, dword [ebp - 0x13c]
je 0x454891
mov edi, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call fcn.0049ceb4
pop ecx
mov dword [esi + 0x5dc], eax
mov ebx, dword [ebx]
push 0
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0047a7e9
and dword [ebp - 4], 0
push edi
push dword [esi + 0x5dc]
lea ecx, [ebp - 0x1c]
call fcn.0047a9cf
lea ecx, [ebp - 0x1c]
call fcn.0047aa50
push 3
push edi
push dword [esi + 0x5dc]
call fcn.00479f73
add esp, 0xc
mov dword [esi + 0x5d8], eax
test eax, eax
jne 0x454916
xor ecx, ecx
test edi, edi
jbe 0x4548ff
mov eax, dword [esi + 0x5dc]
xor byte [eax + ecx], 0x50
add eax, ecx
inc ecx
cmp ecx, edi
jb 0x4548ee
push 3
push edi
push dword [esi + 0x5dc]
call fcn.00479f73
add esp, 0xc
mov dword [esi + 0x5d8], eax
mov eax, dword [esi + 0x5d8]
xor ecx, ecx
test eax, eax
setne cl
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x30], eax
mov esi, ecx
lea ecx, [ebp - 0x1c]
call fcn.0047a828
mov eax, esi
pop edi
jmp 0x45493b
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x458821
Capabilities:
Log keystrokes via application hook
Set global application hook

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [0x4eaa8c], 1
call fcn.0045896c
test byte [esp + 0x14], 1
mov edi, dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
je 0x458863
call ebp
push eax
push 0
call ebx
push eax
push 0x458b1c
push 4
call edi
mov dword [esi + 4], eax
test byte [esp + 0x14], 2
je 0x45887e
call ebp
push eax
push 0
call ebx
push eax
push 0x458b7e
push 0xc
call edi
mov dword [esi + 8], eax
test byte [esp + 0x14], 4
je 0x458899
call ebp
push eax
push 0
call ebx
push eax
push 0x458be3
push 5
call edi
mov dword [esi + 0xc], eax
test byte [esp + 0x14], 8
je 0x4588b4
call ebp
push eax
push 0
call ebx
push eax
push 0x458c23
push 0xb
call edi
mov dword [esi + 0x10], eax
test byte [esp + 0x14], 0x10
je 0x4588cf
call ebp
push eax
push 0
call ebx
push eax
push 0x458c52
push 3
call edi
mov dword [esi + 0x14], eax
test byte [esp + 0x14], 0x20
je 0x4588ea
call ebp
push eax
push 0
call ebx
push eax
push 0x458cda
push 2
call edi
mov dword [esi + 0x18], eax
test byte [esp + 0x14], 0x40
je 0x458905
call ebp
push eax
push 0
call ebx
push eax
push 0x458d0f
push 7
call edi
mov dword [esi + 0x1c], eax
test byte [esp + 0x14], 0x80
je 0x458920
call ebp
push eax
push 0
call ebx
push eax
push 0x458d44
push 0xffffffffffffffff
call edi
mov dword [esi + 0x20], eax
test byte [esp + 0x15], 1
je 0x45893b
call ebp
push eax
push 0
call ebx
push eax
push 0x458d90
push 0xa
call edi
mov dword [esi + 0x24], eax
test byte [esp + 0x15], 2
je 0x458956
call ebp
push eax
push 0
call ebx
push eax
push 0x458dbc
push 6
call edi
mov dword [esi + 0x28], eax
push dword [esp + 0x1c]
lea ecx, [esi + 0x2c]
call fcn.00450b3d
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x4597e1
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4ab960
call fcn.0043cb10
push ecx
push esi
mov esi, ecx
push 0x3e8
mov dword [ebp - 0x10], esi
call fcn.00474124
and dword [ebp - 4], 0
push str.Pictures
lea ecx, [esi + 8]
mov dword [esi], vtable.CResPicture.0
call fcn.00450b3d
push str.Picture
lea ecx, [esi + 0xc]
call fcn.00450b3d
mov ecx, dword [ebp - 0xc]
and dword [esi + 0x30], 0
mov dword [esi + 0x10], 0x41c
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4624cf
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x4ad5de
call fcn.0043cb10
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00459ec1
and dword [esp + 0x1c], 0
mov ebp, 0x45b96c
mov ebx, fcn.0045b8e3
push ebp
push ebx
mov edi, 0x148
push 2
lea eax, [esi + 0x210]
push edi
push eax
call fcn.0043f28c
push ebp
push ebx
push 4
lea eax, [esi + 0x4a0]
push edi
push eax
mov byte [esp + 0x30], 1
call fcn.0043f28c
push ebp
push ebx
push 4
lea eax, [esi + 0x9c0]
push edi
push eax
mov byte [esp + 0x30], 2
call fcn.0043f28c
mov ecx, dword [esp + 0x14]
mov dword [esi], vtable.SkinComboBox.0
mov dword [esi + 0x208], 0x1f4
mov dword [esi + 0x20c], 0x64
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x46755d
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x4ae88e
call fcn.0043cb10
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00459ec1
and dword [esp + 0x1c], 0
mov ebp, 0x45b96c
mov ebx, fcn.0045b8e3
push ebp
push ebx
mov edi, 0x148
push 2
lea eax, [esi + 0x210]
push edi
push eax
call fcn.0043f28c
push ebp
push ebx
push 4
lea eax, [esi + 0x4a0]
push edi
push eax
mov byte [esp + 0x30], 1
call fcn.0043f28c
push ebp
push ebx
push 4
lea eax, [esi + 0x9c0]
push edi
push eax
mov byte [esp + 0x30], 2
call fcn.0043f28c
mov ecx, dword [esp + 0x14]
mov dword [esi], vtable.SkinDatetime.0
mov dword [esi + 0x208], 0x1f4
mov dword [esi + 0x20c], 0x64
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x468fb9
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
cmp dword [0x4e6fbc], 0xffffffff
jne 0x469085
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x469085
mov eax, dword [ebp - 0x84]
dec eax
je 0x46904b
dec eax
jne 0x469085
mov eax, dword [ebp - 0x90]
push 3
pop ecx
sub eax, ecx
je 0x469085
dec eax
je 0x469043
dec eax
je 0x46901d
mov dword [0x4e6fbc], 6
jmp 0x469085
mov eax, dword [ebp - 0x8c]
sub eax, 0
je 0x469037
dec eax
jne 0x469011
mov dword [0x4e6fbc], 5
jmp 0x469085
mov dword [0x4e6fbc], 4
jmp 0x469085
mov dword [0x4e6fbc], ecx
jmp 0x469085
cmp dword [ebp - 0x8c], 0
je 0x46907e
cmp dword [ebp - 0x8c], 0xa
je 0x469072
cmp dword [ebp - 0x8c], 0x5a
jne 0x469085
mov dword [0x4e6fbc], 2
jmp 0x469085
mov dword [0x4e6fbc], 1
jmp 0x469085
and dword [0x4e6fbc], 0
mov eax, dword [0x4e6fbc]
leave
ret
Function at 0x469a7b
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
push 0x18
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
call edi
push dword [ebp + 8]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 4], eax
push eax
call esi
push ebx
mov dword [ebp - 0xc], eax
call edi
push dword [ebp - 0x2c]
mov edi, eax
push dword [ebp - 0x30]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov dword [ebp - 0x1c], eax
call esi
xor ebx, ebx
push 0xcc0020
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push ebx
push ebx
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0xc]
push dword [ebp - 4]
call esi
cmp dword [ebp - 4], ebx
je 0x469b17
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
je 0x469b17
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x30]
cmp eax, ebx
lea ecx, [eax - 1]
mov dword [ebp + 8], ecx
je 0x469bb9
mov eax, dword [ebp - 0x2c]
lea ebx, [eax - 1]
test eax, eax
je 0x469ba9
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.GDI32.dll_GetPixel]
cmp dword [ebp + 0xc], eax
je 0x469ba4
xor edx, edx
mov ecx, eax
mov dl, ah
shr ecx, 0x10
cmp al, dl
jne 0x469b53
cmp dl, cl
je 0x469ba4
movzx ecx, cl
mov dword [ebp - 0x10], ecx
fild dword [ebp - 0x10]
movzx ecx, dl
fmul qword [0x4bda00]
mov dword [ebp - 0x10], ecx
fild dword [ebp - 0x10]
movzx eax, al
fmul qword [0x4bd9f8]
mov dword [ebp - 0x10], eax
faddp st(1)
fild dword [ebp - 0x10]
fmul qword [str.333333]
faddp st(1)
call fcn.0043d430
movzx eax, al
mov ecx, eax
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, eax
push ecx
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.GDI32.dll_SetPixelV]
mov eax, ebx
dec ebx
jmp 0x469b2e
mov eax, dword [ebp + 8]
dec dword [ebp + 8]
test eax, eax
jne 0x469b28
xor ebx, ebx
push dword [ebp - 8]
push edi
call esi
cmp edi, ebx
je 0x469bd0
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
je 0x469bd0
xor edi, edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 8], ebx
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x469bec
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], ebx
je 0x469bf6
push dword [ebp - 0xc]
call esi
cmp edi, ebx
je 0x469c01
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x469c12
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x1c]
leave
ret
Function at 0x46f7b9
Capabilities:
Log keystrokes via application hook

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
cmp ecx, dword [esi + 0xc0]
lea eax, [esi + 0xc0]
je 0x46f88d
push ebx
xor ebx, ebx
mov dword [eax], ecx
mov eax, dword [0x4eab94]
cmp ecx, ebx
push edi
jne 0x46f81e
cmp eax, ebx
je 0x46f7f2
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [0x4eab94], ebx
mov ecx, esi
xor edi, edi
call fcn.0046f68f
test eax, eax
jle 0x46f873
mov eax, dword [esi + 0x90]
push 0x20
push ebx
mov ecx, dword [eax + edi*4]
call fcn.0046e309
mov ecx, esi
inc edi
call fcn.0046f68f
cmp edi, eax
jl 0x46f7ff
jmp 0x46f873
cmp eax, ebx
je 0x46f829
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push ebx
push 0x46f891
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov ecx, esi
mov dword [0x4eab94], eax
mov dword [0x4eab8c], esi
xor edi, edi
call fcn.0046f68f
test eax, eax
jle 0x46f873
mov eax, dword [esi + 0x90]
push ebx
push 0x20
mov ecx, dword [eax + edi*4]
call fcn.0046e309
mov ecx, esi
inc edi
call fcn.0046f68f
cmp edi, eax
jl 0x46f856
mov ecx, esi
call fcn.0046f1e0
or dword [esi + 0xf4], 0xffffffff
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.0046f44d
pop edi
pop ebx
pop esi
ret 4
Function at 0x46f986
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4af07c
call fcn.0043cb10
sub esp, 0x120
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov esi, dword [ecx + 0xa8]
mov edi, dword [sym.imp.USER32.dll_GetMenuItemCount]
and dword [ebp - 4], 0
push esi
mov dword [ebp - 0x2c], esi
call edi
and dword [ebp - 0x10], 0
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x18], 1
jle 0x46f9e2
push dword [ebp - 0x10]
push esi
call dword [sym.imp.USER32.dll_GetMenuItemID]
cmp eax, 0xff00
jae 0x46f9de
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], ebx
jl 0x46f9c3
jmp 0x46f9e2
and dword [ebp - 0x18], 0
push esi
call edi
mov ebx, 0x400
cmp dword [ebp - 0x10], eax
jge 0x46f9ff
push ebx
push dword [ebp - 0x10]
push esi
call dword [sym.imp.USER32.dll_RemoveMenu]
push esi
call edi
jmp 0x46f9ea
mov eax, dword [ebp - 0x20]
push 0
push 0
push 0x229
push dword [eax + 0xc4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4e448c]
mov dword [ebp - 0x14], 0xff00
mov dword [ebp - 0x1c], eax
mov edi, dword [sym.imp.USER32.dll_InsertMenuA]
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
push dword [eax + 0xc4]
call dword [sym.imp.USER32.dll_GetDlgItem]
xor ecx, ecx
mov dword [ebp - 0x24], eax
cmp eax, ecx
je 0x46fafa
cmp dword [ebp - 0x18], ecx
je 0x46fa6c
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0x10]
push ecx
push ecx
push 0xc00
push eax
push esi
call edi
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
lea ecx, [eax - 0xfeff]
cmp ecx, 0xa
jge 0x46fad6
lea eax, [ebp - 0x12c]
push 0xff
push eax
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x14]
add eax, 0xffff0101
push eax
lea eax, [ebp - 0x1c]
push str._d__s
push eax
call fcn.00450b82
add esp, 0x10
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push ebx
push dword [ebp - 0x10]
push esi
call edi
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x24], eax
jne 0x46fae3
push 0x408
push dword [ebp - 0x10]
push esi
call dword [sym.imp.USER32.dll_CheckMenuItem]
jmp 0x46fae3
push str.More_Windows...
push eax
push ebx
push dword [ebp - 0x10]
push esi
call edi
inc dword [ebp - 0x10]
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add eax, 0xffff0101
cmp eax, 0xa
jle 0x46fa33
and dword [ebp - 0x2c], 0
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004508ff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x470035
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi + 0x68], eax
mov dword [esi + 0x64], 1
push dword [esi + 0xa0]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esi + 0x68]
cmp eax, 0xffffffff
je 0x4700c6
push eax
push 2
mov ecx, esi
call fcn.0046f44d
and dword [esi + 0x64], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x46fff8
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x4eab90], eax
mov eax, dword [esi + 0x68]
mov dword [esi + 0x88], 2
mov dword [0x4e70d8], eax
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x90]
push dword [esi + 0xa0]
mov ecx, dword [ecx + eax*4]
push esi
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [0x4eab90]
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
and dword [0x4eab90], 0
cmp dword [esi + 0x64], 1
je 0x470046
mov eax, dword [esi + 0xf4]
mov ecx, esi
push eax
inc eax
neg eax
sbb eax, eax
and eax, 3
push eax
call fcn.0046f44d
mov ecx, esi
call fcn.0046f1e0
pop esi
ret 4

Function at 0x471738
Capabilities:
Check os version

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x471750
cmp al, 5
sbb eax, eax
and eax, 2
add eax, 6
ret
push 8
pop eax
ret
Function at 0x475caf
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
and dword [esi + 0xc], 0
lea edi, [esi + 0xc]
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp dword [esi + 4], 0
mov dword [esi], eax
je 0x475cfb
cmp dword [esi + 8], 0
je 0x475cfb
push dword [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x475cfb
push edi
push 0x40
push dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop edi
pop esi
pop ebx
ret 8

Function at 0x478087
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x478095
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x478176
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x4bfd04]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x4bfd04]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x4bfd04]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x4bfd04]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x4bfd04]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x4bfd04]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x4bfd04]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x4bfd04]
xor eax, esi
inc edx
dec edi
jne 0x4780b2
pop ebx
cmp dword [ebp + 0x10], 0
je 0x478197
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4bfd04]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x47817c
pop edi
pop esi
not eax
pop ebp
ret

Function at 0x478979
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x4789ad
lea eax, [ebp + 8]
push 0
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4789a8
mov byte [esi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x4789d5
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x4789be
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0043d460
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
pop edi
div dword [ebp + 0xc]
pop esi
pop ebp
ret