Function at 0x100476f
Capabilities:
Create process on windows
Log keystrokes via polling
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x1015494]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, 0x9c47
cmp eax, ecx
push esi
push edi
jg 0x1004ad5
je 0x1004aba
mov ecx, 0x967
cmp eax, ecx
jg 0x10048d8
je 0x10048c3
add ecx, 0xfffffffc
cmp eax, ecx
jg 0x100486b
je 0x1004856
cmp eax, 2
je 0x10049e9
cmp eax, 0x417
jle case.0x1004aeb.40020
cmp eax, 0x41a
jle 0x1004820
cmp eax, 0x961
je 0x1004804
cmp eax, 0x962
jne case.0x1004aeb.40020
xor eax, eax
cmp dword [0x1015fe8], eax
sete al
mov dword [0x1015fe8], eax
jmp 0x10049df
xor eax, eax
xor esi, esi
cmp dword [0x1015fe4], esi
sete al
mov dword [0x1015fe4], eax
call fcn.01002906
jmp 0x1004d03
mov ecx, dword [0x1015ecc]
xor esi, esi
sub ecx, esi
je 0x1004845
dec ecx
jne case.0x1004aeb.40020
mov ecx, dword [0x1015e7c]
push esi
push eax
call fcn.0100ceaf
jmp case.0x1004aeb.40020
mov ecx, dword [0x1015e78]
push eax
call fcn.0100ed76
jmp case.0x1004aeb.40020
xor eax, eax
cmp dword [0x1015fec], eax
sete al
mov dword [0x1015fec], eax
jmp 0x10049df
sub eax, 0x964
je 0x10048ab
dec eax
je 0x1004896
dec eax
jne case.0x1004aeb.40020
mov ecx, dword [0x1015e84]
xor esi, esi
cmp ecx, esi
je case.0x1004aeb.40020
call fcn.01008167
jmp 0x1004d03
xor eax, eax
cmp dword [0x1015ff0], eax
sete al
mov dword [0x1015ff0], eax
jmp 0x10049df
mov ecx, dword [0x1015e84]
test ecx, ecx
je case.0x1004aeb.40020
call fcn.01009801
jmp case.0x1004aeb.40020
xor eax, eax
cmp dword [0x1015fe0], eax
sete al
mov dword [0x1015fe0], eax
jmp 0x10049df
mov ecx, 0x755b
cmp eax, ecx
jg 0x1004996
je case.0x1004aeb.40039
cmp eax, 0x968
je 0x1004967
cmp eax, 0x96a
je 0x1004955
cmp eax, 0xc94
je 0x1004922
cmp eax, 0xfa1
jle case.0x1004aeb.40020
cmp eax, 0xfaa
jg case.0x1004aeb.40020
push eax
push ebx
call fcn.01003b4d
jmp case.0x1004aeb.40020
mov ecx, dword [0x1016134]
not ecx
mov eax, 0x80
and ecx, eax
shr ecx, 7
shl ecx, 7
xor ecx, dword [0x1016134]
and ecx, eax
xor dword [0x1016134], ecx
call fcn.01002906
mov ecx, dword [0x1015e88]
jmp 0x1004c21
xor eax, eax
cmp dword [0x1015ff8], eax
sete al
mov dword [0x1015ff8], eax
jmp 0x10049df
xor eax, eax
xor esi, esi
cmp dword [0x1015ff4], esi
sete al
mov dword [0x1015ff4], eax
call fcn.01002906
mov ecx, dword [0x1015e84]
cmp ecx, esi
je case.0x1004aeb.40020
call fcn.0100986b
jmp case.0x1004aeb.40020
sub eax, 0x9c41
je 0x10049f5
dec eax
je 0x10049e9
push 4
pop ecx
sub eax, ecx
jne case.0x1004aeb.40020
mov eax, dword [0x1016134]
mov edx, eax
not edx
and edx, ecx
shr edx, 2
shl edx, 2
xor edx, eax
push 3
xor esi, esi
push esi
and edx, ecx
xor eax, edx
mov dword [0x1016134], eax
push esi
and eax, ecx
push esi
shr eax, 2
push esi
or eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
call fcn.01002906
jmp case.0x1004aeb.40020
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp case.0x1004aeb.40020
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x1004a0c
call fcn.01003110
jmp case.0x1004aeb.40020
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x25c]
rep stosd dword es:[edi], eax
xor esi, esi
mov dword [ebp - 0x21c], esi
lea edi, [ebp - 0x218]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
inc eax
mov dword [ebp - 0x234], eax
mov word [ebp - 0x230], ax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x1001aa4
mov dword [ebp - 0x260], 0x44
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1004a71
push 0x1001a94
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x260]
push eax
push esi
push esi
push 0x4000200
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je case.0x1004aeb.40020
push dword [ebp - 0x218]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x21c]
call esi
jmp case.0x1004aeb.40020
mov eax, dword [0x1016134]
not eax
xor eax, dword [0x1016134]
and eax, 1
xor dword [0x1016134], eax
jmp 0x10049df
lea ecx, [eax - 0x9c4f]
cmp ecx, 0x5e
ja case.0x1004aeb.40020
movzx edx, byte [ecx + 0x1004df3]
jmp dword [edx*4 + 0x1004daf]
push 6
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x1004aeb.40020
xor esi, esi
push esi
push esi
push 0x1001a88
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.010128b5
jmp case.0x1004aeb.40020
call fcn.01003c8e
jmp case.0x1004aeb.40020
xor ebx, ebx
cmp eax, 0x9ca4
mov eax, dword [0x1015e74]
sete bl
lea ebx, [ebx + ebx - 1]
add ebx, dword [0x1015ecc]
jns 0x1004b42
lea ebx, [eax - 1]
xor esi, esi
cmp ebx, eax
jl 0x1004b4a
xor ebx, ebx
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push ebx
push 0x130c
mov esi, 0x3e8
push esi
push dword [0x1015e1c]
call edi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
push dword [0x1015e1c]
call edi
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], 0xfffffdd9
call fcn.01002f7c
test eax, eax
je case.0x1004aeb.40020
mov dword [0x1015ecc], ebx
jmp case.0x1004aeb.40020
mov eax, dword [0x1016134]
not eax
and eax, 0x20
shr eax, 5
shl eax, 5
xor eax, dword [0x1016134]
and eax, 0x20
jmp 0x1004aca
mov eax, dword [0x1016134]
not eax
and eax, 0x10
shr eax, 4
shl eax, 4
xor eax, dword [0x1016134]
and eax, 0x10
xor dword [0x1016134], eax
call fcn.01002906
push ebx
call fcn.01002ab0
jmp case.0x1004aeb.40020
mov eax, dword [0x1016134]
not eax
and eax, 0x40
shr eax, 6
shl eax, 6
xor eax, dword [0x1016134]
and eax, 0x40
xor dword [0x1016134], eax
call fcn.01002906
mov ecx, dword [0x1015e7c]
test ecx, ecx
je case.0x1004aeb.40020
mov eax, dword [ecx]
call dword [eax + 0x18]
jmp case.0x1004aeb.40020
mov eax, dword [0x1016134]
not eax
and eax, 8
shr eax, 3
shl eax, 3
xor eax, dword [0x1016134]
and eax, 8
xor dword [0x1016134], eax
call fcn.01002906
mov ecx, dword [0x1015e80]
jmp 0x1004c21
mov dword [0x1015eb0], ecx
call fcn.01002906
mov ecx, dword [0x1015e78]
jmp 0x1004c21
mov ecx, dword [0x1015e78]
push 0
push eax
mov eax, dword [ecx]
push 0x111
call dword [eax + 0x14]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x1004aeb.40020
mov ecx, dword [0x1015e7c]
test ecx, ecx
je case.0x1004aeb.40020
call fcn.0100b5c8
jmp case.0x1004aeb.40020
mov ecx, dword [0x1015e88]
xor esi, esi
cmp ecx, esi
je case.0x1004aeb.40020
push esi
jmp 0x1004c7a
add eax, 0xffff63ae
mov dword [0x1015eb4], eax
call fcn.01002906
mov ecx, dword [0x1015e80]
test ecx, ecx
je case.0x1004aeb.40020
call fcn.01006faf
mov ecx, dword [0x1015e80]
jmp 0x1004c29
mov ecx, dword [0x1015e84]
xor esi, esi
cmp ecx, esi
je 0x1004d03
cmp dword [0x1015ecc], 3
jne 0x1004d03
call fcn.01009aef
push esi
push ebx
call fcn.01002d10
jmp case.0x1004aeb.40020
mov edi, dword [eax*4 + 0xfda91c]
add eax, 0xffff63aa
xor esi, esi
push esi
push dword [0x1015e1c]
mov dword [0x1015eb8], eax
mov dword [0x1015eac], edi
call dword [sym.imp.USER32.dll_KillTimer]
cmp edi, esi
je 0x10049df
push esi
push dword [0x1015eac]
push esi
push dword [0x1015e1c]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x10049df
push 0x6b
push dword [0x1015e28]
call dword [sym.imp.USER32.dll_LoadIconW]
mov edi, eax
xor esi, esi
cmp edi, esi
je case.0x1004aeb.40020
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x2713
push dword [0x1015e28]
call dword [sym.imp.USER32.dll_LoadStringW]
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_ShellAboutW]
push edi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010120da
leave
ret 0x10