Function at 0x10004640
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Get common file path
Get file size
Link many functions at runtime
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
push ebx
mov ebx, ecx
mov dl, 0x16
mov al, 0x10
mov cl, 8
push esi
push edi
mov byte [ebp - 0x38], 0x27
mov byte [ebp - 0x37], dl
mov byte [ebp - 0x36], 1
mov byte [ebp - 0x35], 5
mov byte [ebp - 0x34], al
mov byte [ebp - 0x33], 1
mov byte [ebp - 0x32], 0x44
mov byte [ebp - 0x31], 0x22
mov byte [ebp - 0x30], 5
mov byte [ebp - 0x2f], 0xd
mov byte [ebp - 0x2e], cl
mov byte [ebp - 0x2d], 0
mov byte [ebp - 0x18], 0xa
mov byte [ebp - 0x17], al
mov byte [ebp - 0x16], 0
mov byte [ebp - 0x15], cl
mov byte [ebp - 0x14], cl
mov byte [ebp - 0x13], 0x4a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], cl
mov byte [ebp - 0x10], cl
mov byte [ebp - 0xf], 0
mov byte [ebp - 0xa4], 0x3e
mov byte [ebp - 0xa3], 0x13
mov byte [ebp - 0xa2], 0x30
mov byte [ebp - 0xa1], 1
mov byte [ebp - 0xa0], dl
mov byte [ebp - 0x9f], 9
mov byte [ebp - 0x9e], 0xd
mov byte [ebp - 0x9d], 0xa
mov byte [ebp - 0x9c], 5
mov byte [ebp - 0x9b], al
mov byte [ebp - 0x9a], 1
mov byte [ebp - 0x99], 0x34
mov byte [ebp - 0x98], dl
mov byte [ebp - 0x97], 0xb
mov byte [ebp - 0x96], 7
mov byte [ebp - 0x95], 1
mov byte [ebp - 0x94], 0x17
mov byte [ebp - 0x93], 0x17
mov byte [ebp - 0x92], 0
mov byte [ebp - 0x48], 0x2f
mov byte [ebp - 0x47], 1
mov byte [ebp - 0x46], dl
mov byte [ebp - 0x45], 0xa
mov byte [ebp - 0x44], 1
mov byte [ebp - 0x43], cl
mov byte [ebp - 0x42], 0x57
mov byte [ebp - 0x41], 0x56
mov byte [ebp - 0x40], 0x4a
mov byte [ebp - 0x3f], 0
mov byte [ebp - 0x3e], cl
mov byte [ebp - 0x3d], cl
mov byte [ebp - 0x3c], 0
mov byte [ebp - 0x58], 0x27
mov byte [ebp - 0x57], dl
mov byte [ebp - 0x56], 1
mov byte [ebp - 0x55], 5
mov byte [ebp - 0x54], al
mov byte [ebp - 0x53], 1
mov byte [ebp - 0x52], 0x30
mov byte [ebp - 0x51], 0xc
mov byte [ebp - 0x50], dl
mov byte [ebp - 0x4f], 1
mov byte [ebp - 0x4e], 5
mov byte [ebp - 0x4d], 0
mov byte [ebp - 0x4c], 0
mov byte [ebp - 0x78], 0x27
mov byte [ebp - 0x77], dl
mov byte [ebp - 0x76], 1
mov byte [ebp - 0x75], 5
mov byte [ebp - 0x74], al
mov byte [ebp - 0x73], 1
mov byte [ebp - 0x72], 0x34
mov byte [ebp - 0x2a], al
mov byte [ebp - 0x26], al
mov byte [ebp - 0x23], al
mov byte [ebp - 0x65], al
mov byte [ebp - 0x5e], al
mov byte [ebp - 0x5b], al
mov byte [ebp - 0x8f], al
mov byte [ebp - 0x8c], al
mov byte [ebp - 0x88], al
mov byte [ebp - 0x85], al
mov byte [ebp - 0x71], dl
mov byte [ebp - 0x70], 0xb
mov byte [ebp - 0x6f], 7
mov byte [ebp - 0x6e], 1
mov byte [ebp - 0x6d], 0x17
mov byte [ebp - 0x6c], 0x17
mov byte [ebp - 0x6b], 0x25
mov byte [ebp - 0x6a], 0
mov byte [ebp - 0xc], 0x23
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0xd
mov byte [ebp - 9], 0x57
mov byte [ebp - 8], 0x56
mov byte [ebp - 7], 0x4a
mov byte [ebp - 6], 0
mov byte [ebp - 5], cl
mov byte [ebp - 4], cl
mov byte [ebp - 3], 0
mov byte [ebp - 0x2c], 0x21
mov byte [ebp - 0x2b], 0x1c
mov byte [ebp - 0x29], 0x30
mov byte [ebp - 0x28], 1
mov byte [ebp - 0x27], 0x1c
mov byte [ebp - 0x25], 0x2b
mov byte [ebp - 0x24], 0x11
mov byte [ebp - 0x22], 0x25
mov byte [ebp - 0x21], 0
mov byte [ebp - 0x68], 0x32
mov byte [ebp - 0x67], 0xd
mov byte [ebp - 0x66], dl
mov byte [ebp - 0x64], 0x11
mov byte [ebp - 0x63], 5
mov byte [ebp - 0x62], cl
mov byte [ebp - 0x61], 0x34
mov byte [ebp - 0x60], dl
mov byte [ebp - 0x5f], 0xb
mov byte [ebp - 0x5d], 1
mov byte [ebp - 0x5c], 7
mov byte [ebp - 0x5a], 0
mov byte [ebp - 0x90], 0x2a
mov byte [ebp - 0x8e], 0x23
mov byte [ebp - 0x8d], 1
mov byte [ebp - 0x8b], 0x27
mov byte [ebp - 0x8a], 0xb
mov byte [ebp - 0x89], 0xa
mov byte [ebp - 0x87], 1
mov byte [ebp - 0x86], 0x1c
mov byte [ebp - 0x84], 0x30
mov byte [ebp - 0x83], 0xc
mov byte [ebp - 0x82], dl
mov byte [ebp - 0x81], 1
mov byte [ebp - 0x80], 5
mov byte [ebp - 0x7f], 0
mov byte [ebp - 0x7e], 0
xor eax, eax
mov cl, byte [ebp + eax - 0x38]
xor cl, 0x64
mov byte [ebp + eax - 0x38], cl
inc eax
cmp eax, 0xb
jb 0x100048c2
xor eax, eax
mov cl, byte [ebp + eax - 0x90]
xor cl, 0x64
mov byte [ebp + eax - 0x90], cl
inc eax
cmp eax, 0x12
jb 0x100048d5
xor eax, eax
mov cl, byte [ebp + eax - 0x68]
xor cl, 0x64
mov byte [ebp + eax - 0x68], cl
inc eax
cmp eax, 0xe
jb 0x100048ee
xor eax, eax
mov cl, byte [ebp + eax - 0x18]
xor cl, 0x64
mov byte [ebp + eax - 0x18], cl
inc eax
cmp eax, 9
jb 0x10004901
xor eax, eax
mov cl, byte [ebp + eax - 0xa4]
xor cl, 0x64
mov byte [ebp + eax - 0xa4], cl
inc eax
cmp eax, 0x12
jb 0x10004914
xor eax, eax
mov cl, byte [ebp + eax - 0x48]
xor cl, 0x64
mov byte [ebp + eax - 0x48], cl
inc eax
cmp eax, 0xc
jb 0x1000492d
xor eax, eax
mov cl, byte [ebp + eax - 0x58]
xor cl, 0x64
mov byte [ebp + eax - 0x58], cl
inc eax
cmp eax, 0xc
jb 0x10004940
xor eax, eax
mov cl, byte [ebp + eax - 0x78]
xor cl, 0x64
mov byte [ebp + eax - 0x78], cl
inc eax
cmp eax, 0xe
jb 0x10004953
xor eax, eax
mov cl, byte [ebp + eax - 0xc]
xor cl, 0x64
mov byte [ebp + eax - 0xc], cl
inc eax
cmp eax, 9
jb 0x10004966
xor eax, eax
mov cl, byte [ebp + eax - 0x2c]
xor cl, 0x64
mov byte [ebp + eax - 0x2c], cl
inc eax
cmp eax, 0xb
jb 0x10004979
mov ecx, 0x10048670
call fcn.1000bb10
cmp eax, 1
mov dword [0x1004892c], eax
jne 0x10004f6a
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0xa4]
mov esi, eax
push ecx
push esi
mov ecx, ebx
mov dword [ebp - 0x7c], esi
call fcn.10005030
sub eax, esi
mov ecx, ebx
push eax
push esi
call fcn.10003920
lea edx, [ebp - 0x90]
mov ecx, ebx
push edx
push esi
mov dword [ebp - 0xb0], eax
call fcn.10005030
sub eax, esi
mov ecx, ebx
push eax
push esi
call fcn.10003920
mov dword [ebp - 0xac], eax
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x1bb]
mov byte [ebp - 0x1bc], 0
push 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1bc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [ebp - 0x1e]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x1e], 0x5c
lea edx, [ebp - 0x1bc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x1bc]
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 3
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x1bc]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10004ab6
push 0
lea ecx, [ebp - 0x38]
push 0
push ecx
call fcn.1002fece
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push esi
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea edi, [eax + 1]
mov dword [ebp - 0xa8], eax
push edi
call fcn.1002c5d7
mov edx, eax
mov ecx, edi
mov dword [ebx + 0x10], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ebx + 0x10]
lea eax, [ebp - 0x1c]
push 0
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea edx, [ebp - 0x58]
mov esi, eax
push edx
push esi
mov ecx, ebx
mov dword [ebp - 0x7c], esi
call fcn.10005030
sub eax, esi
mov ecx, ebx
push eax
push esi
call fcn.10003920
mov dword [ebp - 0xbc], eax
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x1bc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1bc]
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [ebp - 0x1e]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x1bc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x1bc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x48]
or ecx, 0xffffffff
push eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 3
push eax
and ecx, 3
push 1
lea eax, [ebp - 0x1bc]
push SysReAllocString
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10004bfd
push 0
lea ecx, [ebp - 0x38]
push 0
push ecx
call fcn.1002fece
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push esi
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea edi, [eax + 1]
mov dword [ebp - 0xa8], eax
push edi
call fcn.1002c5d7
mov edx, eax
mov ecx, edi
mov dword [ebx + 0xc], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ebx + 0xc]
lea eax, [ebp - 0x1c]
push 0
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
push esi
mov ecx, ebx
call fcn.10005030
sub eax, esi
mov ecx, ebx
push eax
push esi
call fcn.10003920
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x7c], eax
push ecx
push esi
mov ecx, ebx
call fcn.10005030
sub eax, esi
mov ecx, ebx
push eax
push esi
call fcn.10003920
lea edx, [ebp - 0xc]
mov dword [ebp - 0xb8], eax
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
push esi
mov ecx, ebx
call fcn.10005030
sub eax, esi
mov ecx, ebx
push eax
push esi
call fcn.10003920
mov dword [ebp - 0xb4], eax
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x1bc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x1bc]
push 0xff
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [ebp - 0x1e]
lea edx, [ebp - 0x1bc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x1bc]
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 3
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
push 1
lea eax, [ebp - 0x1bc]
push SysReAllocString
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10004d71
push 0
lea ecx, [ebp - 0x38]
push 0
push ecx
call fcn.1002fece
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push esi
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea edi, [eax + 1]
mov dword [ebp - 0xa8], eax
push edi
call fcn.1002c5d7
mov edx, eax
mov ecx, edi
mov dword [ebx + 0x14], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ebx + 0x14]
lea eax, [ebp - 0x1c]
push 0
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10004ddd
mov ecx, ebx
call fcn.100051d0
cmp eax, 1
jne 0x10004ea0
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0xb0]
mov dword [ebx + 0x18], ecx
push str.Kernel32.dll
lea edx, [eax + ecx]
mov ecx, dword [ebp - 0xac]
add eax, ecx
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.CreateThread
push esi
call edi
push str.CreateProcessA
push esi
mov dword [ebx + 0x20], eax
call edi
push str.VirtualProtect
push esi
mov dword [ebx + 0x24], eax
call edi
lea edx, [ebp - 0xc]
mov dword [ebx + 0x2c], eax
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call edi
mov edx, dword [ebp - 0xb0]
mov dword [ebx + 0x28], eax
mov eax, dword [ebx + 0x10]
lea ecx, [eax + edx]
mov edx, dword [ebp - 0xac]
add eax, edx
mov dword [ebx + 0x3c], ecx
mov ecx, dword [ebp - 0xbc]
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 0xc]
lea edx, [eax + ecx]
mov ecx, dword [ebp - 0x7c]
mov dword [ebx + 0x44], edx
lea edx, [eax + ecx]
mov ecx, dword [ebp - 0xb8]
add eax, ecx
mov dword [ebx + 0x48], edx
mov edx, dword [ebx + 0x14]
mov dword [ebx + 0x4c], eax
add edx, dword [ebp - 0xb4]
mov dword [ebx + 0x50], edx
jmp 0x10004f55
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0xa4]
mov edi, eax
push ecx
push edi
call esi
lea edx, [ebp - 0x90]
mov dword [ebx + 0x1c], eax
push edx
push edi
call esi
mov dword [ebx + 0x30], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x58]
mov edi, eax
push ecx
push edi
call esi
lea edx, [ebp - 0x78]
mov dword [ebx + 0x20], eax
push edx
push edi
call esi
mov dword [ebx + 0x24], eax
lea eax, [ebp - 0x68]
push eax
push edi
call esi
lea ecx, [ebp - 0xc]
mov dword [ebx + 0x2c], eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea edx, [ebp - 0x2c]
push edx
push eax
call esi
mov ecx, dword [ebp - 0xb0]
mov dword [ebx + 0x28], eax
mov eax, dword [ebx + 0x10]
lea edx, [eax + ecx]
mov ecx, dword [ebp - 0xac]
add eax, ecx
mov dword [ebx + 0x3c], edx
mov edx, dword [ebp - 0xbc]
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 0xc]
lea ecx, [eax + edx]
mov edx, dword [ebp - 0x7c]
mov dword [ebx + 0x44], ecx
lea ecx, [eax + edx]
mov edx, dword [ebp - 0xb8]
add eax, edx
mov dword [ebx + 0x48], ecx
mov ecx, dword [ebp - 0xb4]
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0x14]
add eax, ecx
mov dword [ebx + 0x50], eax
jmp 0x10004f65
jmp 0x10005008
jmp 0x10004f7c
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x18]
push ecx
call edi
lea edx, [ebp - 0xa4]
mov esi, eax
push edx
push esi
mov ecx, ebx
call fcn.10005030
mov dword [ebx + 0x1c], eax
lea eax, [ebp - 0x90]
push eax
push esi
mov ecx, ebx
call fcn.10005030
lea ecx, [ebp - 0x48]
mov dword [ebx + 0x30], eax
push ecx
call edi
lea edx, [ebp - 0x58]
mov esi, eax
push edx
push esi
mov ecx, ebx
call fcn.10005030
mov dword [ebx + 0x20], eax
lea eax, [ebp - 0x78]
push eax
push esi
mov ecx, ebx
call fcn.10005030
lea ecx, [ebp - 0x68]
mov dword [ebx + 0x24], eax
push ecx
push esi
mov ecx, ebx
call fcn.10005030
lea edx, [ebp - 0xc]
mov dword [ebx + 0x2c], eax
push edx
call edi
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov ecx, ebx
call fcn.10005030
mov dword [ebx + 0x28], eax
jmp 0x10005008
lea edx, [ebp - 0x90]
lea eax, [ebp - 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
mov ecx, ebx
call fcn.10005030
pop edi
mov dword [ebx + 0x34], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret