Function at 0x10bd39e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x10de03c]
and dword [ebp - 0x420], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x10]
push edi
mov edi, ecx
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x34]
mov dword [ebp - 0x424], ecx
mov ecx, dword [esi + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x42c], ecx
mov ecx, dword [ebp - 0x40c]
mov ecx, dword [ecx]
mov dword [ebp - 0x410], ecx
mov ecx, dword [ebp - 0x40c]
and dword [ecx], 0
xor ecx, ecx
mov dword [eax], 1
cmp dword [edi], ecx
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x408], edx
je 0x10bd506
mov eax, dword [ebx]
cmp eax, ecx
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], cx
je 0x10bd432
cmp eax, 0xffffffff
je 0x10bd432
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx], 0xffffffff
mov ecx, 0x48545058
cmp dword [edi], ecx
jne 0x10bd44f
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 1
mov eax, dword [edi + 8]
mov dword [ebx + 0x224], eax
jmp 0x10bd457
and word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 0
mov eax, dword [edi]
cmp eax, 0x4d555343
jne 0x10bd46b
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 1
jmp 0x10bd481
cmp eax, 0x42444d58
je 0x10bd481
cmp eax, ecx
je 0x10bd481
cmp eax, 0x474c4f58
jne 0x10bd893
mov eax, dword [edi]
and dword [ebx + 0x218], 0
and dword [ebx + 0x21c], 0
mov dword [ebx + 8], eax
mov eax, dword [edi + 8]
mov dword [ebx + 0x210], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0x214], eax
mov ecx, dword [ebp - 0x40c]
mov ecx, dword [ecx]
lea eax, [ebx + 0x218]
add dword [eax], ecx
mov ecx, dword [eax]
adc dword [eax + 4], 0
cmp ecx, dword [ebx + 0x210]
jne 0x10bd4f0
mov eax, dword [eax + 4]
cmp eax, dword [ebx + 0x214]
jne 0x10bd4f0
mov eax, dword [ebp - 0x42c]
mov word [eax + 0x44], 1
mov eax, dword [ebx]
test eax, eax
je 0x10bd4f0
cmp eax, 0xffffffff
je 0x10bd4f0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx], 0xffffffff
mov ax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret 0xc
cmp word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], cx
je 0x10bd517
xor ax, ax
jmp 0x10bd80f
cmp word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], cx
je 0x10bd672
mov ecx, dword [ebx + 0x224]
cmp dword [ebp - 0x410], ecx
jae 0x10bd539
mov dword [eax], ecx
jmp 0x10bd66a
mov eax, dword [ebp - 0x42c]
and word [eax + 0x44], 0
mov eax, dword [esi + 0x14]
cmp byte [eax + 0x28], 0x1e
jne 0x10bd5e3
call fcn.010c7b50
mov esi, dword [ebp - 0x408]
add dword [ebp - 0x408], eax
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebx + 0x448]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 0x408]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.010c7b50
mov esi, dword [ebp - 0x408]
add dword [ebp - 0x408], eax
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebx + 0x648]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 0x408]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.010c7b50
mov esi, dword [ebp - 0x408]
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebx + 0x248]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x408]
add esi, eax
mov edx, esi
call fcn.010c7b50
lea edi, [ebx + 0x848]
jmp 0x10bd646
call fcn.010c7b50
mov esi, dword [ebp - 0x408]
add dword [ebp - 0x408], eax
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebx + 0x248]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 0x408]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.010c7b50
mov esi, dword [ebp - 0x408]
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebx + 0x448]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x408]
add esi, eax
mov edx, esi
call fcn.010c7b50
lea edi, [ebx + 0x648]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x224]
mov ecx, dword [ebp - 0x40c]
mov dword [ecx], eax
and word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 0
xor ax, ax
jmp 0x10bd4f7
mov edi, dword [edx]
cmp edi, ecx
jbe 0x10bd9b6
mov ecx, dword [ebx + 0x218]
or ecx, dword [ebx + 0x21c]
jne 0x10bd9b6
push 4
pop ecx
cmp dword [ebp - 0x410], ecx
jae 0x10bd6a0
mov dword [eax], ecx
jmp 0x10bd4a6
add edi, 4
cmp edi, dword [ebp - 0x410]
jbe 0x10bd6b6
mov dx, word [edx]
add dx, cx
movzx ecx, dx
jmp 0x10bd699
and dword [ebp - 0x41c], 0
add edx, 4
mov eax, edx
jmp 0x10bd6d2
cmp cx, 0x5c
jne 0x10bd6d0
mov dword [ebp - 0x414], eax
inc eax
inc eax
mov cx, word [eax]
test cx, cx
jne 0x10bd6c4
mov esi, dword [ebp - 0x414]
mov edx, esi
call fcn.010c7b50
mov ecx, eax
shr ecx, 2
lea edi, [ebp - 0x404]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x408]
add edi, 4
mov edx, edi
call fcn.010c7b50
mov esi, dword [ebp - 0x408]
cmp eax, dword [esi]
je 0x10bd72c
mov edx, edi
call fcn.010c7b50
shr eax, 1
lea eax, [esi + eax*2 + 4]
mov ax, word [eax]
mov word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], ax
cmp dword [ebx + 8], 0x474c4f58
jne 0x10bd756
xor eax, eax
mov ax, word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW]
push eax
lea eax, [ebp - 0x404]
push eax
mov eax, dword [ebp - 0x418]
call fcn.010bcfdd
jmp 0x10bd8c1
mov eax, dword [ebp - 0x418]
mov eax, dword [eax + 0x14]
mov al, byte [eax + 0x28]
cmp al, 0x1e
jne 0x10bd89c
mov eax, dword [ebp - 0x424]
mov edx, dword [ebp - 0x414]
test edx, edx
mov dword [eax + 0x2210], 0x7fffffff
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 1
je 0x10bd8c1
mov eax, dword [ebp - 0x418]
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x9c]
shr eax, 7
and eax, 3
cmp eax, 1
jne 0x10bd822
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0x45
je 0x10bd802
call fcn.010c7b50
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
lea ecx, [ebx + 0x448]
push ecx
mov dword [ebp - 0x424], eax
call esi
mov edi, eax
lea eax, [ebp - 0x404]
push eax
call esi
mov esi, dword [ebp - 0x414]
pop ecx
pop ecx
mov ecx, 0x224
sub ecx, eax
mov eax, dword [ebp - 0x424]
add edi, ecx
mov ecx, eax
lea edi, [ebx + edi*2]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x10bd8bb
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 1
mov ax, 0xfeb1
mov ecx, dword [ebp - 0x410]
mov edx, dword [ebp - 0x40c]
mov dword [edx], ecx
jmp 0x10bd4f7
cmp eax, 2
jne 0x10bd8c1
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0x46
je 0x10bd87c
call fcn.010c7b50
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
lea ecx, [ebx + 0x648]
push ecx
mov dword [ebp - 0x424], eax
call esi
mov edi, eax
lea eax, [ebp - 0x404]
push eax
call esi
mov esi, dword [ebp - 0x414]
pop ecx
pop ecx
mov ecx, 0x324
sub ecx, eax
mov eax, dword [ebp - 0x424]
add edi, ecx
mov ecx, eax
lea edi, [ebx + edi*2]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x10bd8bb
mov eax, dword [ebp - 0x410]
mov ecx, dword [ebp - 0x40c]
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 1
mov dword [ecx], eax
mov ax, 0xfeb1
jmp 0x10bd4f7
cmp al, 0x1f
jne 0x10bd8c1
mov eax, dword [ebp - 0x424]
mov dword [eax + 0x2210], 0x7fffffff
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 1
jmp 0x10bd8c1
mov esi, dword [ebp - 0x408]
mov ax, word [esi]
mov ecx, dword [ebp - 0x40c]
add ax, 4
movzx eax, ax
add esi, 4
mov edx, esi
mov dword [ecx], eax
call fcn.010c7b50
push dword [ebp - 0x41c]
mov ecx, eax
shr ecx, 2
lea edi, [ebp - 0x404]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x404]
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x418]
push eax
push edi
push dword [edi]
call fcn.010bd0f6
mov esi, eax
test esi, esi
mov dword [ebp - 0x414], esi
jne 0x10bd936
lea eax, [ebp - 0x404]
push eax
push 0xffffffffffffffff
push 0x10121d8
push dword [edi]
call fcn.01082df0
mov ax, 0xfe40
jmp 0x10bd4f7
mov edx, esi
call fcn.010c7b50
lea edx, [ebx + 0x10]
mov ecx, eax
shr ecx, 2
mov dword [ebx + 0xc], eax
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
push 0xa000080
push 2
push esi
push esi
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x10bd97c
mov dword [ebp - 0x420], 0xfffffe30
push dword [ebp - 0x414]
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp - 0x40c]
mov eax, dword [eax]
sub dword [ebp - 0x410], eax
add dword [ebp - 0x408], eax
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], si
pop ecx
jne 0x10bd4a6
mov esi, dword [ebp - 0x418]
mov edx, dword [ebp - 0x408]
mov ecx, dword [ebp - 0x410]
test ecx, ecx
je 0x10bd4a6
mov eax, dword [ebx + 0x210]
mov edi, dword [ebx + 0x218]
mov dword [ebp - 0x428], eax
xor eax, eax
add ecx, edi
adc eax, dword [ebx + 0x21c]
cmp eax, dword [ebx + 0x214]
jb 0x10bd9f8
mov eax, dword [ebp - 0x428]
ja 0x10bd9f4
cmp ecx, eax
jbe 0x10bd9f8
sub eax, edi
jmp 0x10bd9fe
mov eax, dword [ebp - 0x410]
push 0
lea ecx, [ebp - 0x430]
push ecx
push eax
push edx
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10bda28
mov ecx, dword [ebp - 0x430]
mov eax, dword [ebp - 0x40c]
add dword [eax], ecx
jmp 0x10bd4a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
je 0x10bda59
cmp eax, 0x27
je 0x10bda59
push 0x100d768
push eax
push 0x10121bc
push dword [esi]
call fcn.01082df0
mov dword [ebp - 0x420], 0xfffffe40
jmp 0x10bd4a6
mov ax, 0xfe06
jmp 0x10bd4f7