Function at 0x4035e0
Capabilities:
Contain obfuscated stackstrings
Get file size
Query or enumerate registry value
Read file on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xa0
mov eax, dword [0x422948]
xor eax, esp
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xa4], eax
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, 5
mov dword [esp + 0x14], esi
mov dword [esi], ebx
jb 0x403844
jne 0x40363c
mov eax, dword [esi + 8]
sub eax, ebx
je 0x403844
dec eax
je 0x403827
dec eax
jne 0x40363c
mov eax, dword [esi + 0xc]
cmp eax, 0xece
ja 0x40363c
jne 0x403844
cmp dword [esi + 0x10], ebx
jbe 0x403844
push ebp
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x10], ebp
je 0x403ce6
cmp ebp, 0xffffffff
je 0x403ce6
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x8000
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], ebx
jb 0x403cd5
cmp edi, 0x200000
ja 0x403cd5
lea ecx, [edi + 0x400]
push ecx
call fcn.0041268c
lea ecx, [edi + 2]
mov edx, ecx
mov ebp, eax
shr ecx, 2
xor eax, eax
add esp, 4
mov edi, ebp
rep stosd dword es:[edi], eax
push ebx
mov ecx, edx
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x1c]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x403cbb
mov ecx, dword [esp + 0x10]
push ebx
lea eax, [esp + 0x24]
push eax
push ecx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403cbb
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x20], edx
jne 0x403cbb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.004035b0
test eax, eax
je 0x403972
cmp dword [esp + 0x10], 0xa0000
jbe 0x403972
mov al, 0x90
mov cl, 0x8b
mov byte [esp + 0x2e], cl
mov byte [esp + 0x3a], cl
mov byte [esp + 0x42], cl
xor ecx, ecx
mov byte [esp + 0x24], al
mov byte [esp + 0x25], al
mov byte [esp + 0x26], al
mov byte [esp + 0x27], al
mov byte [esp + 0x28], al
mov byte [esp + 0x29], al
mov eax, dword [esi + 0xc]
cmp eax, 0x1770
setne cl
mov dl, 0x87
mov byte [esp + 0x2d], dl
mov byte [esp + 0x39], dl
xor edx, edx
mov byte [esp + 0x2c], 0xf
mov byte [esp + 0x2f], bl
dec ecx
and ecx, 0xffff0000
add ecx, 0x4ff00
cmp eax, 0x1770
setne dl
mov esi, ecx
mov byte [esp + 0x30], bl
mov byte [esp + 0x31], bl
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], 0x83
mov byte [esp + 0x36], 0xfa
dec edx
and edx, 0xffff0000
add edx, 0x48000
mov eax, edx
cmp eax, esi
mov byte [esp + 0x37], 0xa
mov byte [esp + 0x38], 0xf
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], 0x80
mov byte [esp + 0x3f], 0x48
mov byte [esp + 0x40], 0x1c
mov byte [esp + 0x41], 0x20
mov byte [esp + 0x43], 0x86
mov byte [esp + 0x44], 0x28
mov byte [esp + 0x45], 1
mov dword [esp + 0x14], esi
jae 0x403865
lea esp, [esp]
mov edx, dword [eax + ebp]
lea ecx, [esp + 0x34]
cmp edx, dword [ecx]
jne 0x403812
mov ecx, 2
lea edi, [esp + 0x3e]
lea esi, [eax + ebp + 0xa]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x40385e
mov esi, dword [esp + 0x14]
inc eax
cmp eax, esi
jb 0x4037f0
push ebp
call fcn.00412691
add esp, 4
mov eax, 0xffffff9b
jmp 0x40389c
mov eax, dword [esi + 0xc]
cmp eax, 0xa28
ja 0x40363c
jne 0x403844
cmp dword [esi + 0x10], 0x884
jae 0x40363c
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0040559e
add esp, 0xa0
ret
add eax, 4
cmp eax, ebx
jne 0x403875
push ebp
call fcn.00412691
add esp, 4
mov eax, 0xffffff9b
jmp 0x40389c
lea esi, [eax + ebp]
mov ecx, 3
lea edi, [esp + 0x2c]
xor edx, edx
repe cmpsw word [esi], word es:[edi]
push ebp
jne 0x4038b5
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
call fcn.00412691
add esp, 4
mov eax, 0xa
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0040559e
add esp, 0xa0
ret
mov ecx, 3
lea edi, [esp + 0x28]
lea esi, [eax + ebp]
xor edx, edx
repe cmpsw word [esi], word es:[edi]
jne 0x403960
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
call fcn.00412691
add esp, 4
lea edx, [esp + 0x10]
push edx
push 1
push ebx
push str.SYSTEMCurrentControlSetServicesTcpipParameters
mov esi, 4
push 0x80000002
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x403912
mov eax, 0xfffffff8
jmp 0x40389c
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push str.TcpNumConnections
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403950
cmp dword [esp + 0x1c], esi
jne 0x403950
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
jmp 0x40389c
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403897
call fcn.00412691
add esp, 4
mov eax, 0xffffff9c
jmp 0x40389c
mov dl, 0x65
mov cl, 0x5c
mov al, 0x63
mov byte [esp + 0x48], cl
mov byte [esp + 0x4c], dl
mov byte [esp + 0x52], al
mov byte [esp + 0x54], dl
mov byte [esp + 0x56], cl
mov cl, 0xcc
mov byte [esp + 0x60], al
mov al, 0x90
mov byte [esp + 0x7c], dl
mov byte [esp + 0x86], dl
mov byte [esp + 0x8a], dl
mov dl, 0x66
mov byte [esp + 0x49], bl
mov byte [esp + 0x4a], 0x44
mov byte [esp + 0x4b], bl
mov byte [esp + 0x4d], bl
mov byte [esp + 0x4e], 0x76
mov byte [esp + 0x4f], bl
mov byte [esp + 0x50], 0x69
mov byte [esp + 0x51], bl
mov byte [esp + 0x53], bl
mov byte [esp + 0x55], bl
mov byte [esp + 0x57], bl
mov byte [esp + 0x58], 0x52
mov byte [esp + 0x59], bl
mov byte [esp + 0x5a], 0x61
mov byte [esp + 0x5b], bl
mov byte [esp + 0x5c], 0x73
mov byte [esp + 0x5d], bl
mov byte [esp + 0x5e], 0x41
mov byte [esp + 0x5f], bl
mov byte [esp + 0x61], bl
mov byte [esp + 0x62], 0x64
mov byte [esp + 0x63], bl
mov byte [esp + 0x64], bl
mov byte [esp + 0x65], bl
mov byte [esp + 0x66], cl
mov byte [esp + 0x67], cl
mov byte [esp + 0x68], cl
mov byte [esp + 0x69], cl
mov byte [esp + 0x6a], cl
mov byte [esp + 0x6b], cl
mov byte [esp + 0x6c], al
mov byte [esp + 0x6d], al
mov byte [esp + 0x6e], al
mov byte [esp + 0x6f], al
mov byte [esp + 0x70], 0x44
mov byte [esp + 0x71], bl
mov byte [esp + 0x72], 0x69
mov byte [esp + 0x73], bl
mov byte [esp + 0x74], 0x73
mov byte [esp + 0x75], bl
mov byte [esp + 0x76], 0x61
mov byte [esp + 0x77], bl
mov byte [esp + 0x78], 0x62
mov byte [esp + 0x79], bl
mov byte [esp + 0x7a], 0x6c
mov byte [esp + 0x7b], bl
mov byte [esp + 0x7d], bl
mov byte [esp + 0x7e], 0x4c
mov byte [esp + 0x7f], bl
mov byte [esp + 0x80], 0x61
mov byte [esp + 0x81], bl
mov byte [esp + 0x82], 0x72
mov byte [esp + 0x83], bl
mov byte [esp + 0x84], 0x67
mov byte [esp + 0x85], bl
mov byte [esp + 0x87], bl
mov byte [esp + 0x88], 0x53
mov byte [esp + 0x89], bl
mov byte [esp + 0x8b], bl
mov byte [esp + 0x8c], 0x6e
mov byte [esp + 0x8d], bl
mov byte [esp + 0x8e], 0x64
mov byte [esp + 0x8f], bl
mov byte [esp + 0x90], 0x4f
mov byte [esp + 0x91], bl
mov byte [esp + 0x92], dl
mov byte [esp + 0xa6], al
mov byte [esp + 0xa7], al
mov byte [esp + 0xa8], al
mov byte [esp + 0xa9], al
mov eax, dword [esi + 4]
cmp eax, 5
mov byte [esp + 0x93], bl
mov byte [esp + 0x94], dl
mov byte [esp + 0x95], bl
mov byte [esp + 0x96], 0x6c
mov byte [esp + 0x97], bl
mov byte [esp + 0x98], 0x6f
mov byte [esp + 0x99], bl
mov byte [esp + 0x9a], 0x61
mov byte [esp + 0x9b], bl
mov byte [esp + 0x9c], 0x64
mov byte [esp + 0x9d], bl
mov byte [esp + 0x9e], bl
mov byte [esp + 0x9f], bl
mov byte [esp + 0xa0], cl
mov byte [esp + 0xa1], cl
mov byte [esp + 0xa2], cl
mov byte [esp + 0xa3], cl
mov byte [esp + 0xa4], cl
mov byte [esp + 0xa5], cl
jne 0x403ca8
cmp dword [esi + 8], 1
jne 0x403bc0
lea edi, [esp + 0x48]
mov ecx, 0x28
mov eax, 0x80
jmp 0x403be1
cmp eax, 5
jne 0x403ca8
cmp dword [esi + 8], 2
jne 0x403ca8
lea edi, [esp + 0x70]
mov ecx, 0x3a
mov eax, 0x7d
cmp edi, ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], eax
je 0x403ca8
cmp ecx, ebx
je 0x403ca8
mov edx, dword [esp + 0x10]
cmp eax, edx
jae 0x403ca8
mov eax, edx
sub eax, 0x400
mov dword [esp + 0x10], eax
mov eax, ebx
je 0x403c4c
mov dl, byte [edi]
mov byte [esp + 0x1b], dl
mov edi, edi
mov dl, byte [esp + 0x1b]
cmp byte [eax + ebp], dl
lea esi, [eax + ebp]
jne 0x403c43
mov dl, byte [eax + ebp + 1]
cmp dl, byte [edi + 1]
jne 0x403c43
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x403c5f
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
inc eax
cmp eax, edx
jb 0x403c20
push ebp
call fcn.00412691
add esp, 4
mov eax, 0xfffffffb
jmp 0x40389c
cmp eax, ebx
je 0x403c4c
cmp eax, dword [esp + 0x10]
jae 0x403c4c
mov ecx, dword [esp + 0x14]
add eax, ecx
cmp byte [eax + ebp - 1], bl
jne 0x403c95
cmp byte [eax + ebp + 4], 0xb8
jne 0x403c95
mov edx, dword [esp + 0x1c]
mov dword [edx], eax
mov esi, dword [eax + ebp]
push ebp
call fcn.00412691
add esp, 4
mov eax, esi
jmp 0x40389c
push ebp
call fcn.00412691
add esp, 4
mov eax, 0xfffffffa
jmp 0x40389c
push ebp
call fcn.00412691
add esp, 4
mov eax, 0xfffffff7
jmp 0x40389c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.00412691
add esp, 4
mov eax, 0xfffffffc
jmp 0x40389c
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffd
jmp 0x40389c
mov ecx, dword [esp + 0xa8]
pop ebp
pop esi
pop ebx
xor ecx, esp
mov eax, 0xfffffffe
call fcn.0040559e
add esp, 0xa0
ret