Function at 0x10005300
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10081100
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x1009d084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x31], 0
movzx eax, byte [0x100a026c]
test eax, eax
jne 0x10005396
mov ecx, dword [0x100a0270]
mov dword [ebp - 0xcc], ecx
push 0
mov ecx, 0x100a0260
call fcn.10008260
mov ecx, eax
call dword [ebp - 0xcc]
mov ecx, 0x100a0260
call fcn.100082a0
movzx edx, al
test edx, edx
je 0x1000538f
mov al, byte [ebp - 0x31]
mov byte [ebp - 0x32], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10009aa0
mov al, byte [ebp - 0x32]
jmp 0x10005906
mov byte [0x100a026c], 1
mov dword [ebp - 0x2c], 0
movzx ecx, byte [0x100a026e]
cmp ecx, 1
jne 0x1000543b
movzx edx, byte [0x100a026d]
cmp edx, 1
jne 0x10005401
mov eax, dword [0x100a027c]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp + 8]
call fcn.10009910
mov dword [ebp - 0xd0], eax
push 0
mov ecx, 0x100a0260
call fcn.10008260
mov dword [ebp - 0x50], eax
mov ecx, dword [0x100a0274]
mov dword [ebp - 0x54], ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0xd0]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x54]
call dword [ebp - 0x58]
mov byte [ebp - 0x31], al
jmp 0x10005436
mov edx, dword [0x100a027c]
mov dword [ebp - 0x64], edx
mov ecx, dword [ebp + 8]
call fcn.10009910
mov dword [ebp - 0x5c], eax
push 0
mov ecx, 0x100a0260
call fcn.10008260
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x60]
push edx
call dword [ebp - 0x64]
mov byte [ebp - 0x31], al
jmp 0x10005611
movzx eax, byte [0x100a026e]
cmp eax, 2
jne 0x100054d7
movzx ecx, byte [0x100a026d]
cmp ecx, 1
jne 0x1000549b
mov edx, dword [0x100a027c]
mov dword [ebp - 0x74], edx
mov ecx, dword [ebp + 8]
call fcn.10009910
mov dword [ebp - 0x68], eax
push 0
mov ecx, 0x100a0260
call fcn.10008260
mov dword [ebp - 0x6c], eax
mov eax, dword [0x100a0274]
mov dword [ebp - 0x70], eax
push 0
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x70]
call dword [ebp - 0x74]
mov byte [ebp - 0x31], al
jmp 0x100054d2
mov ecx, dword [0x100a027c]
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebp + 8]
call fcn.10009910
mov dword [ebp - 0x78], eax
push 0
mov ecx, 0x100a0260
call fcn.10008260
mov dword [ebp - 0x7c], eax
push 0
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x7c]
push ecx
call dword [ebp - 0x80]
mov byte [ebp - 0x31], al
jmp 0x10005611
movzx edx, byte [0x100a026e]
cmp edx, 3
jne 0x100055a4
movzx eax, byte [0x100a026d]
cmp eax, 1
jne 0x10005555
mov ecx, dword [0x100a027c]
mov dword [ebp - 0x90], ecx
mov ecx, dword [ebp + 8]
call fcn.10009910
mov dword [ebp - 0x84], eax
push 0
mov ecx, 0x100a0260
call fcn.10008260
mov dword [ebp - 0x88], eax
mov edx, dword [0x100a0274]
mov dword [ebp - 0x8c], edx
push 0
push 0x10093a54
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0x88]
push edx
mov ecx, dword [ebp - 0x8c]
call dword [ebp - 0x90]
mov byte [ebp - 0x31], al
jmp 0x100055a2
mov eax, dword [0x100a027c]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp + 8]
call fcn.10009910
mov dword [ebp - 0x94], eax
push 0
mov ecx, 0x100a0260
call fcn.10008260
mov dword [ebp - 0x98], eax
push 0
push 0x10093a58
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x94]
push edx
mov eax, dword [ebp - 0x98]
push eax
call dword [ebp - 0x9c]
mov byte [ebp - 0x31], al
jmp 0x10005611
movzx ecx, byte [0x100a026e]
cmp ecx, 4
jne 0x10005611
mov edx, dword [0x100a027c]
mov dword [ebp - 0xac], edx
push 0
mov ecx, 0x100a0260
call fcn.10008260
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp + 8]
call fcn.10009910
mov dword [ebp - 0xa4], eax
mov eax, dword [0x100a0274]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa0]
push ecx
push 2
push 1
push 0x3ccd193
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xa8]
call dword [ebp - 0xac]
mov byte [ebp - 0x31], al
movzx ecx, byte [ebp - 0x31]
test ecx, ecx
je 0x1000561f
cmp dword [ebp - 0x2c], 0
jne 0x1000563c
mov dl, byte [ebp - 0x31]
mov byte [ebp - 0x33], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10009aa0
mov al, byte [ebp - 0x33]
jmp 0x10005906
cmp dword [0x100a0278], 0
jne 0x1000568e
push 0
mov ecx, 0x100a0260
call fcn.10008260
mov dword [ebp - 0x3c], eax
cmp dword [0x100a0278], 0
jne 0x1000568e
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
cmp ecx, dword [ebp - 0x2c]
jne 0x10005683
push 0
mov ecx, 0x100a0260
call fcn.10008260
mov edx, dword [ebp - 0x3c]
sub edx, eax
add edx, 4
mov dword [0x100a0278], edx
jmp 0x1000568e
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
jmp 0x10005654
push 0
mov ecx, 0x100a0260
call fcn.10008260
mov ecx, dword [0x100a0278]
mov edx, dword [eax + ecx]
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x48], 0
jne 0x100056c9
mov al, byte [ebp - 0x31]
mov byte [ebp - 0x34], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10009aa0
mov al, byte [ebp - 0x34]
jmp 0x10005906
push 0xc
lea ecx, [ebp - 0x1c]
call fcn.10005920
lea ecx, [ebp - 0x41]
call fcn.10009740
push eax
mov ecx, dword [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.100080a0
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x1c]
call fcn.10007fe0
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0xb4], edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0xb0]
push ecx
mov edx, dword [ebp - 0xb4]
push edx
call fcn.10004840
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x1000574f
mov cl, byte [ebp - 0x31]
mov byte [ebp - 0x35], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.10008080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10009aa0
mov al, byte [ebp - 0x35]
jmp 0x10005906
lea ecx, [ebp - 0x1c]
call fcn.10008020
movzx edx, al
test edx, edx
je 0x10005787
mov al, byte [ebp - 0x31]
mov byte [ebp - 0x36], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.10008080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10009aa0
mov al, byte [ebp - 0x36]
jmp 0x10005906
push 0xc
lea ecx, [ebp - 0x28]
call fcn.10004820
push 0x10093a5c
lea ecx, [ebp - 0xe8]
call fcn.10009c20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xe8]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.100046f0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe8]
call fcn.10009aa0
lea ecx, [ebp - 0x28]
call fcn.10008330
movzx ecx, al
test ecx, ecx
jne 0x1000582e
lea edx, [ebp - 0x28]
mov dword [ebp - 0x4c], edx
mov ecx, dword [ebp - 0x4c]
call fcn.10008390
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x4c]
call fcn.10008370
mov dword [ebp - 0xb8], eax
jmp 0x10005804
mov eax, dword [ebp - 0x40]
add eax, 0x18
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [ebp - 0xb8]
je 0x1000582e
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0xbc], edx
push 0
mov ecx, dword [ebp - 0xbc]
call fcn.10009910
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x100057fb
mov dword [ebp - 0x30], 0
push 0x10093a60
lea ecx, [ebp + 0xc]
call fcn.10009910
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10058508
add esp, 0xc
cmp dword [ebp - 0x30], 0
jne 0x10005886
mov cl, byte [ebp - 0x31]
mov byte [ebp - 0x38], cl
lea ecx, [ebp - 0x28]
call fcn.100083a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.10008080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10009aa0
mov al, byte [ebp - 0x38]
jmp 0x10005906
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0xc0], edx
lea ecx, [ebp - 0x1c]
call fcn.10008000
mov dword [ebp - 0xc4], eax
lea ecx, [ebp - 0x1c]
call fcn.10008060
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc0]
push eax
mov ecx, dword [ebp - 0xc4]
push ecx
push 1
mov edx, dword [ebp - 0xc8]
push edx
call fcn.1005802c
add esp, 0x10
mov eax, dword [ebp - 0x30]
push eax
call fcn.1004634d
add esp, 4
mov byte [ebp - 0x31], 1
mov cl, byte [ebp - 0x31]
mov byte [ebp - 0x37], cl
lea ecx, [ebp - 0x28]
call fcn.100083a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.10008080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10009aa0
mov al, byte [ebp - 0x37]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10030d05
mov esp, ebp
pop ebp
ret