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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x10154a4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ecx, 0x9c47
cmp eax, ecx
push esi
push edi
jg 0x1004116
je 0x1004101
mov ecx, 0x967
cmp eax, ecx
jg 0x1003ef4
je 0x1003edf
add ecx, 0xfffffffc
cmp eax, ecx
jg 0x1003e77
je 0x1003e62
cmp eax, 2
je 0x1004018
cmp eax, 0x417
jle case.0x100412c.40020
cmp eax, 0x41a
jle 0x1003e2c
cmp eax, 0x961
je 0x1003e15
cmp eax, 0x962
jne case.0x100412c.40020
xor eax, eax
cmp dword [0x1015f2c], eax
sete al
mov dword [0x1015f2c], eax
jmp 0x100439d
xor eax, eax
cmp dword [0x1015f28], eax
sete al
mov dword [0x1015f28], eax
call fcn.01002766
jmp 0x1003ea0
mov ecx, dword [0x1015e10]
xor esi, esi
sub ecx, esi
je 0x1003e51
dec ecx
jne case.0x100412c.40020
mov ecx, dword [0x1015dc8]
push esi
push eax
call 0x100bd90
jmp case.0x100412c.40020
mov ecx, dword [0x1015dc4]
push eax
call 0x100eac5
jmp case.0x100412c.40020
xor eax, eax
cmp dword [0x1015f30], eax
sete al
mov dword [0x1015f30], eax
jmp 0x100439d
sub eax, 0x964
je 0x1003ec2
dec eax
je 0x1003ead
dec eax
jne case.0x100412c.40020
cmp dword [0x1015dc0], 3
jle case.0x100412c.40020
mov ecx, dword [0x1015dd0]
call 0x10079e0
push dword [ebp + 8]
call fcn.0100381c
jmp case.0x100412c.40020
xor eax, eax
cmp dword [0x1015f34], eax
sete al
mov dword [0x1015f34], eax
jmp 0x100439d
cmp dword [0x1015dc0], 3
jle case.0x100412c.40020
mov ecx, dword [0x1015dd0]
call 0x10083a6
jmp case.0x100412c.40020
xor eax, eax
cmp dword [0x1015f24], eax
sete al
mov dword [0x1015f24], eax
jmp 0x100439d
mov ecx, 0x755b
cmp eax, ecx
jg 0x1003fc8
je case.0x100412c.40039
cmp eax, 0x968
je 0x1003f96
cmp eax, 0x96a
je 0x1003f81
cmp eax, 0xc94
je 0x1003f41
cmp eax, 0xfa1
jle case.0x100412c.40020
cmp eax, 0xfaa
jg case.0x100412c.40020
push eax
call fcn.01002f39
jmp case.0x100412c.40020
mov ecx, dword [0x1016090]
not ecx
mov eax, 0x80
and ecx, eax
shr ecx, 7
shl ecx, 7
xor ecx, dword [0x1016090]
and ecx, eax
xor dword [0x1016090], ecx
call fcn.01002766
cmp dword [0x1015dc0], 4
jle case.0x100412c.40020
mov ecx, dword [0x1015dd4]
jmp 0x100432b
xor eax, eax
cmp dword [0x1015f3c], eax
sete al
mov dword [0x1015f3c], eax
jmp 0x100439d
xor eax, eax
cmp dword [0x1015f38], eax
sete al
mov dword [0x1015f38], eax
call fcn.01002766
cmp dword [0x1015dc0], 3
jle case.0x100412c.40020
mov ecx, dword [0x1015dd0]
call 0x100917c
jmp case.0x100412c.40020
sub eax, 0x9c41
je 0x1004026
dec eax
je 0x1004018
push 4
pop ecx
sub eax, ecx
jne case.0x100412c.40020
mov eax, dword [0x1016090]
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 [0x1016090], eax
push esi
and eax, ecx
push esi
shr eax, 2
push esi
or eax, 0xfffffffe
push eax
push dword [ebp + 8]
call dword [sym.imp.user32.dll_SetWindowPos]
jmp 0x100439d
push dword [ebp + 8]
call dword [sym.imp.user32.dll_DestroyWindow]
jmp case.0x100412c.40020
push 0x11
call dword [sym.imp.user32.dll_GetKeyState]
test ax, ax
jl 0x100403d
call fcn.01002c45
jmp case.0x100412c.40020
mov ebx, dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
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
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x1001980
mov dword [ebp - 0x260], 0x44
call ebx
test eax, eax
jne 0x10040b8
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x1001948
call ebx
test eax, eax
jne 0x10040b8
push 0x1001934
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100337b
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.0x100412c.40020
push dword [ebp - 0x218]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
push dword [ebp - 0x21c]
call esi
jmp case.0x100412c.40020
mov eax, dword [0x1016090]
not eax
xor eax, dword [0x1016090]
and eax, 1
jmp 0x1004206
lea ecx, [eax - 0x9c52]
cmp ecx, 0x5b
ja case.0x100412c.40020
movzx edx, byte [ecx + 0x100443f]
jmp dword [edx*4 + 0x10043ff]
push 6
push dword [ebp + 8]
call dword [sym.imp.user32.dll_ShowWindow]
jmp case.0x100412c.40020
xor esi, esi
push esi
push esi
push 0x1001928
call dword [sym.imp.user32.dll_GetDesktopWindow]
push eax
call 0x10122ab
jmp case.0x100412c.40020
call fcn.0100307c
jmp case.0x100412c.40020
xor ebx, ebx
cmp eax, 0x9ca4
mov eax, dword [0x1015dc0]
sete bl
lea ebx, [ebx + ebx - 1]
add ebx, dword [0x1015e10]
jns 0x1004185
lea ebx, [eax - 1]
xor esi, esi
cmp ebx, eax
jl 0x100418d
xor ebx, ebx
mov edi, dword [sym.imp.user32.dll_GetDlgItem]
push esi
push ebx
push 0x130c
mov esi, 0x3e8
push esi
push dword [0x1015d64]
call edi
push eax
call dword [sym.imp.user32.dll_SendMessageW]
push esi
push dword [0x1015d64]
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.01002abf
test eax, eax
je case.0x100412c.40020
mov dword [0x1015e10], ebx
jmp case.0x100412c.40020
mov eax, dword [0x1016090]
not eax
and eax, 0x20
shr eax, 5
shl eax, 5
xor eax, dword [0x1016090]
and eax, 0x20
xor dword [0x1016090], eax
jmp 0x100439d
mov eax, dword [0x1016090]
not eax
and eax, 0x10
shr eax, 4
shl eax, 4
xor eax, dword [0x1016090]
and eax, 0x10
xor dword [0x1016090], eax
call fcn.01002766
push dword [ebp + 8]
call fcn.010028ef
jmp case.0x100412c.40020
mov eax, dword [0x1016090]
not eax
and eax, 0x40
shr eax, 6
shl eax, 6
xor eax, dword [0x1016090]
and eax, 0x40
xor dword [0x1016090], eax
call fcn.01002766
cmp dword [0x1015dc0], 1
jle case.0x100412c.40020
mov ecx, dword [0x1015dc8]
jmp 0x100432b
mov eax, dword [0x1016090]
not eax
and eax, 8
shr eax, 3
shl eax, 3
xor eax, dword [0x1016090]
and eax, 8
xor dword [0x1016090], eax
call fcn.01002766
cmp dword [0x1015dc0], 2
jle case.0x100412c.40020
jmp 0x1004325
mov ecx, dword [0x1015dc4]
jmp 0x10042e9
cmp dword [0x1015dc0], 1
jle case.0x100412c.40020
mov ecx, dword [0x1015dc8]
call 0x100abd2
jmp case.0x100412c.40020
cmp dword [0x1015dc0], 4
jle case.0x100412c.40020
mov ecx, dword [0x1015dd4]
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.0x100412c.40020
mov dword [0x1015df8], ecx
call fcn.01002766
cmp dword [0x1015dc0], 2
jle case.0x100412c.40020
mov ecx, dword [0x1015dcc]
call 0x1006a6b
mov ecx, dword [0x1015dcc]
mov eax, dword [ecx]
call dword [eax + 0x18]
jmp case.0x100412c.40020
cmp dword [0x1015dc0], 3
jle 0x1003ea0
cmp dword [0x1015e10], 3
jne 0x1003ea0
mov ecx, dword [0x1015dd0]
call 0x10097e1
jmp 0x1003ea0
mov edi, dword [eax*4 + 0xfda7bc]
add eax, 0xffff63aa
xor esi, esi
push esi
push dword [0x1015d64]
mov dword [0x1015dfc], eax
mov dword [0x1015df4], edi
call dword [sym.imp.user32.dll_KillTimer]
cmp edi, esi
je 0x100439d
push esi
push dword [0x1015df4]
push esi
push dword [0x1015d64]
call dword [sym.imp.user32.dll_SetTimer]
call fcn.01002766
jmp case.0x100412c.40020
push 0x6b
push dword [0x1015d70]
call dword [sym.imp.user32.dll_LoadIconW]
mov edi, eax
xor esi, esi
cmp edi, esi
je case.0x100412c.40020
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x2713
push dword [0x1015d70]
call dword [sym.imp.user32.dll_LoadStringW]
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call dword [sym.imp.shell32.dll_ShellAboutW]
push edi
call dword [sym.imp.user32.dll_DestroyCursor]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call 0x1011fd4
leave
ret 8