Function at 0x479940
Capabilities:
Create process on windows
Create thread
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5580d5
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5c3040]
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
push dword [ebp + 8]
push str._keysym_0x_x
push 8
push 0x5c3db0
call fcn.0041dde0
mov esi, dword [ebp + 8]
add esp, 0x10
lea eax, [esi - 0xfe50]
cmp eax, 0x10
ja 0x4799b2
push str.__DEAD_KEY
push 8
push 0x5c3db0
mov dword [0x5cee70], esi
call fcn.0041dde0
add esp, 0xc
jmp 0x47a440
cmp esi, 0x20
jb 0x4799bc
cmp esi, 0x7e
jbe 0x4799cb
lea eax, [esi - 0xa0]
cmp eax, 0x5f
ja 0x47a17c
mov eax, dword [0x5cee70]
test eax, eax
je 0x479cb9
cmp byte [ebp + 0xc], 0
je 0x479cb9
push esi
push eax
push str._Compose_dead_0x_x_0x_x
push 8
push 0x5c3db0
call fcn.0041dde0
mov eax, dword [0x5cee70]
add esp, 0x14
add eax, 0xffff01b0
cmp eax, 0xb
ja case.0x479a0b.65108
jmp dword [eax*4 + 0x47a460]
mov ecx, dword [ebp + 8]
lea eax, [ecx - 0x41]
cmp eax, 0x34
ja case.0x479a24.66
movzx eax, byte [eax + 0x47a4bc]
jmp dword [eax*4 + 0x47a490]
mov ecx, 0xc0
mov dword [ebp + 8], ecx
jmp case.0x479a24.66
mov ecx, 0xc8
mov dword [ebp + 8], ecx
jmp case.0x479a24.66
mov ecx, 0xcc
mov dword [ebp + 8], ecx
jmp case.0x479a24.66
mov ecx, 0xd2
mov dword [ebp + 8], ecx
jmp case.0x479a24.66
mov ecx, 0xd9
mov dword [ebp + 8], ecx
jmp case.0x479a24.66
mov ecx, 0xe0
mov dword [ebp + 8], ecx
jmp case.0x479a24.66
mov ecx, 0xe8
mov dword [ebp + 8], ecx
jmp case.0x479a24.66
mov ecx, 0xec
mov dword [ebp + 8], ecx
jmp case.0x479a24.66
mov ecx, 0xf2
mov dword [ebp + 8], ecx
jmp case.0x479a24.66
mov ecx, 0xf9
mov dword [ebp + 8], ecx
jmp case.0x479a24.66
mov ecx, dword [ebp + 8]
lea eax, [ecx - 0x41]
cmp eax, 0x38
ja case.0x479aa5.66
movzx eax, byte [eax + 0x47a528]
jmp dword [eax*4 + 0x47a4f4]
mov ecx, 0xc1
mov dword [ebp + 8], ecx
jmp case.0x479aa5.66
mov ecx, 0xc9
mov dword [ebp + 8], ecx
jmp case.0x479aa5.66
mov ecx, 0xcd
mov dword [ebp + 8], ecx
jmp case.0x479aa5.66
mov ecx, 0xd3
mov dword [ebp + 8], ecx
jmp case.0x479aa5.66
mov ecx, 0xda
mov dword [ebp + 8], ecx
jmp case.0x479aa5.66
mov ecx, 0xe1
mov dword [ebp + 8], ecx
jmp case.0x479aa5.66
mov ecx, 0xe9
mov dword [ebp + 8], ecx
jmp case.0x479aa5.66
mov ecx, 0xed
mov dword [ebp + 8], ecx
jmp case.0x479aa5.66
mov ecx, 0xf3
mov dword [ebp + 8], ecx
jmp case.0x479aa5.66
mov ecx, 0xfa
mov dword [ebp + 8], ecx
jmp case.0x479aa5.66
mov ecx, 0xfd
mov dword [ebp + 8], ecx
jmp case.0x479aa5.66
mov ecx, 0xdd
mov dword [ebp + 8], ecx
jmp case.0x479aa5.66
mov ecx, dword [ebp + 8]
lea eax, [ecx - 0x41]
cmp eax, 0x34
ja case.0x479b36.66
movzx eax, byte [eax + 0x47a590]
jmp dword [eax*4 + 0x47a564]
mov ecx, 0xc2
mov dword [ebp + 8], ecx
jmp case.0x479b36.66
mov ecx, 0xca
mov dword [ebp + 8], ecx
jmp case.0x479b36.66
mov ecx, 0xce
mov dword [ebp + 8], ecx
jmp case.0x479b36.66
mov ecx, 0xd4
mov dword [ebp + 8], ecx
jmp case.0x479b36.66
mov ecx, 0xdb
mov dword [ebp + 8], ecx
jmp case.0x479b36.66
mov ecx, 0xe2
mov dword [ebp + 8], ecx
jmp case.0x479b36.66
mov ecx, 0xea
mov dword [ebp + 8], ecx
jmp case.0x479b36.66
mov ecx, 0xee
mov dword [ebp + 8], ecx
jmp case.0x479b36.66
mov ecx, 0xf4
mov dword [ebp + 8], ecx
jmp case.0x479b36.66
mov ecx, 0xfb
mov dword [ebp + 8], ecx
jmp case.0x479b36.66
mov ecx, dword [ebp + 8]
lea eax, [ecx - 0x41]
cmp eax, 0x2e
ja case.0x479bb3.66
movzx eax, byte [eax + 0x47a5e0]
jmp dword [eax*4 + 0x47a5c8]
mov ecx, 0xd1
mov dword [ebp + 8], ecx
jmp case.0x479bb3.66
mov ecx, 0xd5
mov dword [ebp + 8], ecx
jmp case.0x479bb3.66
mov ecx, 0xe3
mov dword [ebp + 8], ecx
jmp case.0x479bb3.66
mov ecx, 0xf1
mov dword [ebp + 8], ecx
jmp case.0x479bb3.66
mov ecx, 0xf5
mov dword [ebp + 8], ecx
jmp case.0x479bb3.66
mov ecx, dword [ebp + 8]
lea eax, [ecx - 0x41]
cmp eax, 0x38
ja case.0x479bfe.66
movzx eax, byte [eax + 0x47a640]
jmp dword [eax*4 + 0x47a610]
mov ecx, 0xc4
mov dword [ebp + 8], ecx
jmp case.0x479bfe.66
mov ecx, 0xcb
mov dword [ebp + 8], ecx
jmp case.0x479bfe.66
mov ecx, 0xcf
mov dword [ebp + 8], ecx
jmp case.0x479bfe.66
mov ecx, 0xd6
mov dword [ebp + 8], ecx
jmp case.0x479bfe.66
mov ecx, 0xdc
mov dword [ebp + 8], ecx
jmp case.0x479bfe.66
mov ecx, 0xe4
mov dword [ebp + 8], ecx
jmp case.0x479bfe.66
mov ecx, 0xeb
mov dword [ebp + 8], ecx
jmp case.0x479bfe.66
mov ecx, 0xef
mov dword [ebp + 8], ecx
jmp case.0x479bfe.66
mov ecx, 0xf6
mov dword [ebp + 8], ecx
jmp case.0x479bfe.66
mov ecx, 0xfc
mov dword [ebp + 8], ecx
jmp case.0x479bfe.66
mov ecx, 0xff
mov dword [ebp + 8], ecx
jmp case.0x479bfe.66
mov ecx, dword [ebp + 8]
cmp ecx, 0x43
je 0x479c8a
cmp ecx, 0x63
jne 0x479c97
mov ecx, 0xe7
mov dword [ebp + 8], ecx
jmp 0x479c97
mov ecx, 0xc7
mov dword [ebp + 8], ecx
jmp 0x479c97
mov ecx, dword [ebp + 8]
push ecx
push str._Composed_0x_x
push 8
push 0x5c3db0
mov dword [0x5cee70], 0
call fcn.0041dde0
mov esi, dword [ebp + 8]
add esp, 0x10
push esi
call dword [sym.imp.USER32.dll_VkKeyScanA]
cmp byte [ebp + 0x10], 0
movzx ebx, ax
je 0x479dee
mov eax, dword [ebp + 8]
cmp eax, 0x4a6
jne 0x479dce
mov ebx, pe_nt_image_headers32
push ebx
push str._SHORT_s__i
push 8
push 0x5c3db0
call fcn.0041dde0
mov eax, ebx
add esp, 0x10
mov dword [ebp - 0x34], eax
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
mov esi, eax
mov dword [ebp - 0x60], 0x11
mov eax, dword [ebp - 0x34]
and esi, 1
shr eax, 8
mov cl, al
mov dword [ebp - 0x3c], esi
xor cl, 1
mov dword [ebp - 0x5c], 0
movzx edx, cl
test esi, esi
movzx ecx, al
cmove edx, ecx
mov word [ebp - 0x58], 0
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], 3
mov dword [ebp - 0x78], 0x12
mov dword [ebp - 0x74], 0
mov word [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0x10
mov dword [ebp - 0x68], 0
mov word [ebp - 0x64], 0
xor edi, edi
mov dword [ebp - 0x54], 0xa0
mov dword [ebp - 0x50], edi
mov word [ebp - 0x4c], di
xor eax, eax
mov dword [ebp - 0x48], 0xa1
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x44], eax
mov word [ebp - 0x40], ax
mov al, byte [ebp + 0xc]
mov byte [ebp - 4], 7
test al, al
je 0x47a059
test dl, 2
je 0x479da8
lea ecx, [ebp - 0x60]
call fcn.00479600
mov edx, dword [ebp - 0x38]
test dl, 4
je 0x479db8
lea ecx, [ebp - 0x78]
call fcn.00479600
mov edx, dword [ebp - 0x38]
test dl, 1
je 0x47a038
lea ecx, [ebp - 0x6c]
call fcn.00479600
jmp 0x47a056
cmp eax, 0x5c
jne 0x479dde
mov ebx, 0xe2
push ebx
jmp 0x479ce1
cmp eax, 0xa5
jne 0x479dee
lea ebx, [eax + 0x37]
push ebx
jmp 0x479ce1
movsx eax, bx
push eax
push str._SHORT_s__i
push 8
push 0x5c3db0
mov dword [ebp - 0x34], eax
call fcn.0041dde0
add esp, 0x10
cmp bx, 0xffff
jne 0x479cfa
cmp byte [ebp + 0xc], 0
je 0x47a440
push str.down
push 8
push 0x5c3db0
call fcn.0041dde0
push str._Found_key
push 8
push 0x5c3db0
call fcn.0041dde0
mov esi, dword [ebp + 8]
add esp, 0x18
cmp esi, 0xff
jg 0x47a01e
mov eax, 0x51eb851f
mov dword [ebp - 0x60], 0x10
imul esi
mov dword [ebp - 0x5c], 0
sar edx, 5
mov eax, edx
mov word [ebp - 0x58], 0
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x38], eax
imul eax, eax, 0x64
sub esi, eax
mov eax, 0x66666667
imul esi
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, ecx
mov dword [ebp - 0x34], ecx
neg eax
shl eax, 2
sub eax, ecx
lea ebx, [esi + eax*2]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 0xa0
mov dword [ebp - 0x44], 0
mov word [ebp - 0x40], 0
mov dword [ebp - 0x54], 0xa1
mov dword [ebp - 0x50], 0
mov word [ebp - 0x4c], 0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00479650
lea ecx, [ebp - 0x54]
call fcn.00479650
mov ecx, dword [ebp - 0x34]
movzx ebx, bl
push ebx
movzx edi, cl
mov ecx, dword [ebp - 0x38]
push edi
movzx esi, cl
push esi
push str._Simulating_ALT_d_d_d_n
push 8
push 0x5c3db0
call fcn.0041dde0
add esp, 0x14
push 0
push 0
push 0x12
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov dl, al
mov cl, 0x12
call fcn.004384f0
add esp, 4
push 0
push 0
push 0x60
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov dl, al
mov cl, 0x60
call fcn.004384f0
add esp, 4
push 2
push 0
push 0x60
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov dl, al
mov cl, 0x60
call fcn.004384f0
add byte [ebp - 0x38], 0x60
add esi, 0x60
add esp, 4
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov ecx, dword [ebp - 0x38]
mov dl, al
call fcn.004384f0
add esp, 4
push 2
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov cl, byte [ebp - 0x38]
mov dl, al
call fcn.004384f0
add byte [ebp - 0x34], 0x60
lea esi, [edi + 0x60]
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
add esp, 4
push 0
push 0
push esi
call edi
mov ecx, dword [ebp - 0x34]
mov dl, al
call fcn.004384f0
add esp, 4
push 2
push 0
push esi
call edi
mov cl, byte [ebp - 0x34]
mov dl, al
call fcn.004384f0
add esp, 4
lea esi, [ebx + 0x60]
mov ebx, dword [ebp - 0x3c]
add bl, 0x60
push 0
push 0
push esi
call edi
mov dl, al
mov cl, bl
call fcn.004384f0
add esp, 4
push 2
push 0
push esi
call edi
mov dl, al
mov cl, bl
call fcn.004384f0
add esp, 4
push 2
push 0
push 0x12
call edi
mov dl, al
mov cl, 0x12
call fcn.004384f0
add esp, 8
lea ecx, [ebp - 0x54]
call fcn.004796a0
lea ecx, [ebp - 0x48]
call fcn.004796a0
lea ecx, [ebp - 0x60]
call fcn.004796a0
jmp 0x47a440
push esi
push str.ignoring_unrecognised_Latin_1_keysym_0x_x
push 8
push 0x5c3db0
call fcn.0041dde0
add esp, 0x10
jmp 0x47a440
cmp bl, 0x20
je 0x47a056
lea ecx, [ebp - 0x54]
call fcn.00479650
lea ecx, [ebp - 0x48]
call fcn.00479650
mov eax, dword [ebp - 0x44]
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x34], eax
mov al, byte [ebp + 0xc]
push dword [ebp - 0x3c]
movzx eax, al
push eax
mov eax, dword [ebp + 8]
movzx esi, bl
push esi
push eax
push eax
push str.latin_1_key:_keysym__d_0x_x__vkCode_0x_x_down__d_capslockOn__d_n
push 9
push 0x5c3db0
call fcn.0041dde0
movzx eax, byte [ebp + 0xc]
add esp, 0x1c
xor eax, 1
add eax, eax
push eax
push 0
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
call esi
mov dl, al
mov cl, bl
call fcn.004384f0
add esp, 8
mov byte [ebp - 4], 8
cmp byte [ebp - 0x40], 0
je 0x47a0cd
mov eax, dword [ebp - 0x34]
push ecx
or eax, 2
push eax
movzx eax, byte [ebp - 0x48]
push 0
push eax
call esi
mov cl, byte [ebp - 0x48]
mov dl, al
call fcn.004384f0
push dword [ebp - 0x48]
push str.fake__d_up_n
jmp 0x47a0f2
cmp byte [ebp - 0x3f], 0
je 0x47a101
movzx eax, byte [ebp - 0x48]
push ecx
push dword [ebp - 0x34]
push 0
push eax
call esi
mov cl, byte [ebp - 0x48]
mov dl, al
call fcn.004384f0
push dword [ebp - 0x48]
push str.fake__d_down_n
push 9
push 0x5c3db0
call fcn.0041dde0
add esp, 0x18
mov byte [ebp - 4], 9
cmp byte [ebp - 0x4c], 0
je 0x47a12d
movzx eax, byte [ebp - 0x54]
or edi, 2
push ecx
push edi
push 0
push eax
call esi
mov cl, byte [ebp - 0x54]
mov dl, al
call fcn.004384f0
push dword [ebp - 0x54]
push str.fake__d_up_n
jmp 0x47a150
cmp byte [ebp - 0x4b], 0
je 0x47a15f
movzx eax, byte [ebp - 0x54]
push ecx
push edi
push 0
push eax
call esi
mov cl, byte [ebp - 0x54]
mov dl, al
call fcn.004384f0
push dword [ebp - 0x54]
push str.fake__d_down_n
push 9
push 0x5c3db0
call fcn.0041dde0
add esp, 0x18
lea ecx, [ebp - 0x6c]
call fcn.004796a0
lea ecx, [ebp - 0x78]
call fcn.004796a0
lea ecx, [ebp - 0x60]
call fcn.004796a0
jmp 0x47a440
lea eax, [ebp + 8]
mov ecx, 0x5d1a60
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0047ad80
mov eax, dword [ebp - 0x58]
mov ecx, dword [0x5d1a60]
cmp byte [eax + 0xd], 0
jne 0x47a1a2
cmp esi, dword [eax + 0x10]
jae 0x47a1a4
mov eax, ecx
cmp eax, ecx
jne 0x47a25e
cmp byte [ebp + 0x14], 0
je 0x47a440
cmp esi, 0xffe5
je 0x47a440
push esi
lea eax, [ebp - 0x30]
push 0x5aacf4
push eax
call fcn.0047a900
lea eax, [ebp - 0x30]
push eax
push str.trying_unicode_input_key___s__n
push 9
push 0x5c3db0
call fcn.0041dde0
xor eax, eax
mov dword [ebp - 0x94], 1
add esp, 0x1c
mov word [ebp - 0x90], ax
lea eax, [ebp - 0x30]
push eax
call fcn.005345b0
add esp, 4
mov word [ebp - 0x8e], ax
cmp byte [ebp + 0xc], 0
lea eax, [ebp - 0x94]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
push 0x1c
push eax
push 1
je 0x47a249
mov dword [ebp - 0x8c], 4
call dword [sym.imp.USER32.dll_SendInput]
jmp 0x47a440
mov dword [ebp - 0x8c], 6
call dword [sym.imp.USER32.dll_SendInput]
jmp 0x47a440
lea eax, [ebp + 8]
mov ecx, 0x5d1a60
push eax
call fcn.0047a840
mov ecx, 0x5d1a68
mov bl, byte [eax]
lea eax, [ebp + 8]
push eax
call fcn.0047a760
xor ecx, ecx
cmp byte [eax], cl
mov al, byte [ebp + 0xc]
setne cl
mov esi, ecx
or esi, 2
test al, al
cmovne esi, ecx
je 0x47a426
cmp bl, 0x2e
jne 0x47a33e
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call edi
test ax, ax
jns 0x47a426
push 0x12
call edi
test ax, ax
jns 0x47a426
push str.CAD_n
push 9
push 0x5c3db0
call fcn.0041dde0
mov eax, dword [0x5d1914]
add esp, 0xc
cmp dword [eax + 0xe20], 0
je 0x47a318
push str.Vista_and_runnning_as_system____CAD_n
push 9
push 0x5c3db0
call fcn.0041dde0
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push 0x41ded0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47a440
push str.Vista_and_runnning_as_user____Taskmgr_n
push 9
push 0x5c3db0
call fcn.0041dde0
add esp, 0xc
push 1
push str.taskmgr.exe
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x47a440
cmp bl, 0x15
jne 0x47a426
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
push esi
call dword [sym.imp.IMM32.dll_ImmGetDefaultIMEWnd]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 5
push 0x283
push eax
call edi
push 5
push esi
mov dword [ebp - 0x3c], eax
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47a440
push ebx
call dword [sym.imp.IMM32.dll_ImmGetDefaultIMEWnd]
mov esi, eax
mov eax, dword [ebp - 0x3c]
cmp eax, 1
jne 0x47a3ca
push 0
push 2
push 0x283
push esi
call edi
push 0
push 1
push 0x283
push esi
call edi
push 0
push 3
push 0x283
push esi
call edi
push 0
push 4
push 0x283
push esi
call edi
push 0
jmp 0x47a400
test eax, eax
jne 0x47a40a
push 1
push 2
push 0x283
push esi
call edi
push 1
push 1
push 0x283
push esi
call edi
push 1
push 3
push 0x283
push esi
call edi
push 1
push 4
push 0x283
push esi
call edi
push 1
push 6
push 0x283
push esi
call edi
push 2
push ebx
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x47a385
jmp 0x47a440
push ecx
push esi
push 0
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov dl, al
mov cl, bl
call fcn.004384f0
add esp, 8
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.00524763
mov esp, ebp
pop ebp
ret 0x10