Function at 0x10003660
Capabilities:
Create thread
Query environment variable
Query or enumerate registry value
Set environment variable
Terminate process

Disassembly:
sub esp, 0x94
call fcn.100041e0
test eax, eax
je 0x10003a39
push esi
lea eax, [esp + 8]
mov dword [esp + 8], 0x64
push eax
lea eax, [esp + 0x38]
push eax
call dword [0x10016578]
test eax, eax
je 0x100036f2
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x14], 0x394c4148
push eax
mov dword [esp + 0x1c], 0x4854
call esi
test eax, eax
je 0x100036f2
lea eax, [esp + 8]
mov dword [esp + 8], 0x64
push eax
lea eax, [esp + 0x38]
push eax
call dword [0x1001657c]
test eax, eax
je 0x100036f2
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x6e686f4a
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x18], 0x656f44
push eax
call esi
test eax, eax
jne 0x100036f6
xor eax, eax
call eax
lea eax, [esp + 0xc]
mov dword [esp + 4], 0
push eax
lea eax, [esp + 8]
mov dword [esp + 0x10], 1
push eax
push 1
push 0
push 0
call dword [0x10016580]
test al, al
je 0x10003a38
cmp dword [esp + 0xc], 0
je 0x10003a38
mov ecx, dword [esp + 4]
push 0x8007
mov eax, dword [ecx + 4]
mov al, byte [eax]
xor al, byte [ecx]
mov byte [0x10016370], al
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x10003650
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call fcn.10009ac0
test eax, eax
je 0x10003a38
call fcn.10004430
test eax, eax
je 0x10003a38
mov esi, dword [0x10016b50]
lea eax, [esp + 4]
push ebx
push eax
push 0x101
push 0
push dword [0x10016b4c]
mov dword [esp + 0x20], 0x32
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10003835
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 1
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
push dword [esp + 0x1c]
call ebx
push dword [esp + 8]
neg eax
sbb esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 1
je 0x10003835
cmp dword [esp + 0x10], 0xa
jbe 0x10003835
lea eax, [esp + 0x38]
mov byte [esp + 0x40], 0
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
lea eax, [esp + 0x38]
push eax
push 0x1001638c
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, 8
lea edx, [esp + 0x38]
mov ecx, 0x100163c0
mov al, byte [edx]
test al, al
je 0x10003825
cbw
inc edx
mov word [ecx], ax
add ecx, 2
sub esi, 1
jne 0x10003811
xor eax, eax
mov word [ecx], ax
lea ecx, [esp + 0x38]
call fcn.100013e0
jmp 0x10003837
xor eax, eax
push dword [0x10016a78]
mov dword [0x100163d8], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, 0x20
jbe 0x10003860
push dword [0x10016a90]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10003860
call eax
mov ecx, 0x10016c80
call fcn.10009c20
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x24]
push 0
push dword [0x100163d8]
push dword [0x10016a1c]
push eax
call esi
add esp, 0x10
lea eax, [esp + 8]
push 4
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x100038b5
push 0x1000f410
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov eax, 1
jmp 0x100038b7
xor eax, eax
mov dword [0x100163f4], eax
xor eax, 1
push eax
push dword [0x100163d8]
lea eax, [esp + 0x2c]
push dword [0x10016a1c]
push eax
call esi
add esp, 0x10
lea eax, [esp + 0x24]
push eax
push 1
push 6
call dword [0x100165d0]
mov dword [0x1001775c], eax
test eax, eax
je 0x100038f2
mov bl, 0xe
jmp 0x10003912
lea eax, [esp + 0x24]
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [0x1001775c], eax
test eax, eax
je 0x10003974
mov bl, 0xb
push 0
push 0
push 0
push 6
push eax
call dword [0x100165c8]
mov dword [0x10017760], eax
test eax, eax
je 0x1000396e
cmp bl, 0xe
jne 0x10003960
push dword [eax]
push 0
push 1
call dword [0x100165b0]
mov esi, eax
test esi, esi
je 0x10003960
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x10003959
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [0x10016590]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [0x10017760]
mov dword [ecx], eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [0x10016bb4]
lea eax, [esp + 8]
push eax
push 1
push 0
push dword [0x10016bac]
mov dword [esp + 0x20], 6
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100039d3
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 3
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
push dword [esp + 0x1c]
call ebx
push dword [esp + 8]
neg eax
sbb esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 1
jne 0x100039f3
push dword [0x10016bd8]
call dword [0x10017714]
mov ecx, dword [0x10016bdc]
mov dword [esp + 0x1c], eax
call fcn.10001240
mov word [esp + 0x20], ax
call fcn.10007720
push 0x10016ff6
call fcn.10007750
lea eax, [esp + 8]
push eax
push 0
lea eax, [esp + 0x24]
push eax
push 0x10006b50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebx
test eax, eax
je 0x10003a38
push 0xffffffffffffffff
push eax
mov dword [0x100163e0], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
pop esi
add esp, 0x94
ret