Function at 0x416bd0
Capabilities:
Create directory
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x45a06c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x78], eax
xor eax, eax
push esi
push edi
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
mov dword [ebp - 0x6c], eax
nop dword [eax]
xor eax, eax
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], 7
cmp eax, edx
je 0x416d35
cmp dword [edx + 0x14], 8
mov eax, edx
mov dword [ebp - 0x60], edx
jb 0x416c3f
mov eax, dword [edx]
mov dword [ebp - 0x60], eax
mov ebx, dword [edx + 0x10]
cmp ebx, 7
ja 0x416c67
lea esi, [ebx + ebx]
mov dword [ebp - 0x10], ebx
push esi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004283e0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x20], ax
jmp 0x416d35
mov dword [ebp - 0x54], 0x7fffffff
mov dword [ebp - 0x54], 8
mov dword [ebp - 0x54], 0x7ffffffe
mov byte [ebp - 0x55], 0
mov dword [ebp - 0x54], 0x7fffffff
cmp ebx, 0x7ffffffe
ja 0x417560
mov esi, ebx
mov dword [ebp - 0x54], 0x7fffffff
or esi, 7
mov dword [ebp - 0x54], 8
mov dword [ebp - 0x54], 0x7ffffffe
mov dword [ebp - 0x54], 0x7fffffff
cmp esi, 0x7ffffffe
jbe 0x416cc3
mov esi, 0x7ffffffe
jmp 0x416ccd
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
test eax, eax
jne 0x416cd8
xor edi, edi
jmp 0x416d16
cmp eax, 0x7fffffff
ja 0x41755b
add eax, eax
cmp eax, 0x1000
jb 0x416d0b
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x41755b
push ecx
call fcn.0042769c
add esp, 4
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x416d16
push eax
call fcn.0042769c
add esp, 4
mov edi, eax
mov dword [ebp - 0xc], esi
lea esi, [ebx + ebx]
push esi
push dword [ebp - 0x60]
mov dword [ebp - 0x10], ebx
push edi
call fcn.004291c0
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.0041a510
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
mov edi, dword [ebp - 0xc]
cmovae eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x10]
mov edx, ecx
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x60], eax
mov eax, edi
sub eax, ecx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x68], edi
cmp ebx, eax
ja 0x416da4
add ecx, ebx
lea esi, [ebp - 0x20]
cmp edi, 8
mov dword [ebp - 0x10], ecx
lea eax, [ebx + ebx]
cmovae esi, dword [ebp - 0x20]
push eax
push dword [ebp - 0x60]
lea eax, [esi + edx*2]
push eax
call fcn.004283e0
mov eax, dword [ebp - 0x54]
add esp, 0xc
add eax, ebx
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x416f2a
mov eax, 0x7ffffffe
mov dword [ebp - 0x54], 0x7fffffff
sub eax, ecx
mov dword [ebp - 0x54], 8
mov dword [ebp - 0x54], 0x7ffffffe
mov byte [ebp - 0x55], 0
mov dword [ebp - 0x54], 0x7fffffff
cmp eax, ebx
jb 0x417560
lea esi, [ebx + ecx]
mov dword [ebp - 0x54], 0x7fffffff
or esi, 7
mov dword [ebp - 0x54], 8
mov dword [ebp - 0x54], 0x7ffffffe
mov dword [ebp - 0x54], 0x7fffffff
cmp esi, 0x7ffffffe
jbe 0x416e04
mov esi, 0x7ffffffe
jmp 0x416e22
mov edx, edi
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp edi, eax
jbe 0x416e1a
mov esi, 0x7ffffffe
jmp 0x416e22
lea eax, [edi + edx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
test eax, eax
jne 0x416e2d
xor edi, edi
jmp 0x416e6e
cmp eax, 0x7fffffff
ja 0x41755b
add eax, eax
cmp eax, 0x1000
jb 0x416e60
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x41755b
push ecx
call fcn.0042769c
add esp, 4
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x416e6b
push eax
call fcn.0042769c
add esp, 4
mov edi, eax
mov ecx, dword [ebp - 0x64]
cmp dword [ebp - 0x68], 8
lea eax, [ebx + ecx]
mov dword [ebp - 0xc], esi
lea esi, [ecx + ecx]
mov dword [ebp - 0x10], eax
push esi
jb 0x416efc
mov ebx, dword [ebp - 0x20]
push ebx
push edi
call fcn.004291c0
mov eax, dword [ebp - 0x5c]
add esp, 0xc
add eax, eax
push eax
push dword [ebp - 0x60]
lea eax, [edi + esi]
push eax
call fcn.004291c0
mov eax, dword [ebp - 0x64]
xor ecx, ecx
add eax, dword [ebp - 0x5c]
add esp, 0xc
mov word [edi + eax*2], cx
mov eax, dword [ebp - 0x68]
inc eax
cmp eax, 0x7fffffff
ja 0x417565
add eax, eax
cmp eax, 0x1000
jb 0x416ef1
test bl, 0x1f
jne 0x417565
mov eax, dword [ebx - 4]
cmp eax, ebx
jae 0x417565
sub ebx, eax
cmp ebx, 4
jb 0x417565
cmp ebx, 0x23
ja 0x417565
mov ebx, eax
push ebx
call fcn.0042740d
add esp, 4
jmp 0x416f27
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.004291c0
add esp, 0xc
lea eax, [ebx + ebx]
push eax
push dword [ebp - 0x60]
lea eax, [edi + esi]
push eax
call fcn.004291c0
mov eax, dword [ebp - 0x64]
add esp, 0xc
add eax, ebx
xor ecx, ecx
mov word [edi + eax*2], cx
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x416f7d
mov ecx, dword [ebp - 0x38]
inc eax
cmp eax, 0x7fffffff
ja 0x417565
add eax, eax
cmp eax, 0x1000
jb 0x416f74
test cl, 0x1f
jne 0x417565
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x417565
sub ecx, eax
cmp ecx, 4
jb 0x417565
cmp ecx, 0x23
ja 0x417565
mov ecx, eax
push ecx
call fcn.0042740d
add esp, 4
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov edx, ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x54], ebx
cmp ecx, ebx
jae 0x416fbd
inc ecx
lea eax, [ebp - 0x20]
cmp ebx, 8
mov dword [ebp - 0x10], ecx
cmovae eax, dword [ebp - 0x20]
mov dword [eax + edx*2], 0x5f
jmp 0x417110
mov eax, 0x7ffffffe
mov dword [ebp - 0x5c], 0x7fffffff
sub eax, ecx
mov dword [ebp - 0x5c], 8
mov dword [ebp - 0x5c], 0x7ffffffe
mov dword [ebp - 0x5c], 0x7fffffff
cmp eax, 1
jb 0x417560
lea esi, [ecx + 1]
mov dword [ebp - 0x5c], 0x7fffffff
or esi, 7
mov dword [ebp - 0x5c], 8
mov dword [ebp - 0x5c], 0x7ffffffe
mov dword [ebp - 0x5c], 0x7fffffff
cmp esi, 0x7ffffffe
jbe 0x41701a
mov esi, 0x7ffffffe
jmp 0x417038
mov edx, ebx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ebx, eax
jbe 0x417030
mov esi, 0x7ffffffe
jmp 0x417038
lea eax, [ebx + edx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
test eax, eax
jne 0x417043
xor edi, edi
jmp 0x417084
cmp eax, 0x7fffffff
ja 0x41755b
add eax, eax
cmp eax, 0x1000
jb 0x417076
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x41755b
push ecx
call fcn.0042769c
add esp, 4
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x417081
push eax
call fcn.0042769c
add esp, 4
mov edi, eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0xc], esi
lea eax, [ecx + 1]
mov dword [ebp - 0x10], eax
lea esi, [ecx + ecx]
push esi
cmp ebx, 8
jb 0x4170f7
mov ebx, dword [ebp - 0x20]
push ebx
push edi
call fcn.004291c0
mov eax, dword [ebp - 0x54]
add esp, 0xc
inc eax
mov dword [edi + esi], 0x5f
cmp eax, 0x7fffffff
ja 0x417565
add eax, eax
cmp eax, 0x1000
jb 0x4170ec
test bl, 0x1f
jne 0x417565
mov eax, dword [ebx - 4]
cmp eax, ebx
jae 0x417565
sub ebx, eax
cmp ebx, 4
jb 0x417565
cmp ebx, 0x23
ja 0x417565
mov ebx, eax
push ebx
call fcn.0042740d
add esp, 4
jmp 0x41710d
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.004291c0
add esp, 0xc
mov dword [edi + esi], 0x5f
xor eax, eax
mov dword [ebp - 0x20], edi
mov edi, 8
lea ebx, [ebp - 0x84]
nop dword [eax + eax]
or ecx, 0xffffffff
mov esi, edi
xor al, al
cmovne esi, ecx
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x417137
int3
add ebx, esi
sub edi, esi
jne 0x417120
cmp dword [ebp - 0x80], 0xffffffff
ja 0x417110
mov edx, dword [ebp - 0x84]
jb 0x417153
cmp edx, 0xffff7fff
ja 0x417110
and edx, 0x7fff
lea ecx, [ebp - 0x38]
call fcn.0041a510
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
mov edi, dword [ebp - 0xc]
cmovae eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x10]
mov edx, ecx
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x60], eax
mov eax, edi
sub eax, ecx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x5c], edi
cmp ebx, eax
ja 0x4171c0
add ecx, ebx
lea esi, [ebp - 0x20]
cmp edi, 8
mov dword [ebp - 0x10], ecx
lea eax, [ebx + ebx]
cmovae esi, dword [ebp - 0x20]
push eax
push dword [ebp - 0x60]
lea eax, [esi + edx*2]
push eax
call fcn.004283e0
mov eax, dword [ebp - 0x54]
add esp, 0xc
add eax, ebx
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x417346
mov eax, 0x7ffffffe
mov dword [ebp - 0x54], 0x7fffffff
sub eax, ecx
mov dword [ebp - 0x54], 8
mov dword [ebp - 0x54], 0x7ffffffe
mov byte [ebp - 0x55], 0
mov dword [ebp - 0x54], 0x7fffffff
cmp eax, ebx
jb 0x417560
lea esi, [ebx + ecx]
mov dword [ebp - 0x54], 0x7fffffff
or esi, 7
mov dword [ebp - 0x54], 8
mov dword [ebp - 0x54], 0x7ffffffe
mov dword [ebp - 0x54], 0x7fffffff
cmp esi, 0x7ffffffe
jbe 0x417220
mov esi, 0x7ffffffe
jmp 0x41723e
mov edx, edi
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp edi, eax
jbe 0x417236
mov esi, 0x7ffffffe
jmp 0x41723e
lea eax, [edi + edx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
test eax, eax
jne 0x417249
xor edi, edi
jmp 0x41728a
cmp eax, 0x7fffffff
ja 0x41755b
add eax, eax
cmp eax, 0x1000
jb 0x41727c
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x41755b
push ecx
call fcn.0042769c
add esp, 4
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x417287
push eax
call fcn.0042769c
add esp, 4
mov edi, eax
mov ecx, dword [ebp - 0x64]
cmp dword [ebp - 0x5c], 8
lea eax, [ebx + ecx]
mov dword [ebp - 0xc], esi
lea esi, [ecx + ecx]
mov dword [ebp - 0x10], eax
push esi
jb 0x417318
mov ebx, dword [ebp - 0x20]
push ebx
push edi
call fcn.004291c0
mov eax, dword [ebp - 0x68]
add esp, 0xc
add eax, eax
push eax
push dword [ebp - 0x60]
lea eax, [edi + esi]
push eax
call fcn.004291c0
mov eax, dword [ebp - 0x64]
xor ecx, ecx
add eax, dword [ebp - 0x68]
add esp, 0xc
mov word [edi + eax*2], cx
mov eax, dword [ebp - 0x5c]
inc eax
cmp eax, 0x7fffffff
ja 0x417565
add eax, eax
cmp eax, 0x1000
jb 0x41730d
test bl, 0x1f
jne 0x417565
mov eax, dword [ebx - 4]
cmp eax, ebx
jae 0x417565
sub ebx, eax
cmp ebx, 4
jb 0x417565
cmp ebx, 0x23
ja 0x417565
mov ebx, eax
push ebx
call fcn.0042740d
add esp, 4
jmp 0x417343
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.004291c0
add esp, 0xc
lea eax, [ebx + ebx]
push eax
push dword [ebp - 0x60]
lea eax, [edi + esi]
push eax
call fcn.004291c0
mov eax, dword [ebp - 0x64]
add esp, 0xc
add eax, ebx
xor ecx, ecx
mov word [edi + eax*2], cx
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x417399
mov ecx, dword [ebp - 0x38]
inc eax
cmp eax, 0x7fffffff
ja 0x417565
add eax, eax
cmp eax, 0x1000
jb 0x417390
test cl, 0x1f
jne 0x417565
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x417565
sub ecx, eax
cmp ecx, 4
jb 0x417565
cmp ecx, 0x23
ja 0x417565
mov ecx, eax
push ecx
call fcn.0042740d
add esp, 4
sub esp, 8
lea eax, [ebp - 0x20]
cmp dword [ebp - 0xc], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 0x70]
push eax
call fcn.00418de0
push eax
lea ecx, [ebp - 0x50]
call fcn.00417cb0
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x417419
mov ecx, dword [ebp - 0x38]
inc eax
cmp eax, 0x7fffffff
ja 0x417565
add eax, eax
cmp eax, 0x1000
jb 0x417410
test cl, 0x1f
jne 0x417565
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x417565
sub ecx, eax
cmp ecx, 4
jb 0x417565
cmp ecx, 0x23
ja 0x417565
mov ecx, eax
push ecx
call fcn.0042740d
add esp, 4
xor eax, eax
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x3c], 8
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
push 0
push eax
mov dword [ebp - 0x24], 7
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4174b0
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x417498
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, 0x7fffffff
ja 0x417565
add eax, eax
cmp eax, 0x1000
jb 0x41748f
test cl, 0x1f
jne 0x417565
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x417565
sub ecx, eax
cmp ecx, 4
jb 0x417565
cmp ecx, 0x23
ja 0x417565
mov ecx, eax
push ecx
call fcn.0042740d
add esp, 4
mov eax, dword [ebp - 0x6c]
inc eax
mov dword [ebp - 0x6c], eax
cmp eax, 0x32
jge 0x4174ac
mov edx, dword [ebp - 0x74]
jmp 0x416c10
xor bl, bl
jmp 0x417509
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x50]
push eax
call fcn.00417b40
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x417507
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, 0x7fffffff
ja 0x417565
add eax, eax
cmp eax, 0x1000
jb 0x4174fe
test cl, 0x1f
jne 0x417565
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x417565
sub ecx, eax
cmp ecx, 4
jb 0x417565
cmp ecx, 0x23
ja 0x417565
mov ecx, eax
push ecx
call fcn.0042740d
add esp, 4
mov bl, 1
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x417548
mov ecx, dword [ebp - 0x50]
inc eax
cmp eax, 0x7fffffff
ja 0x417565
add eax, eax
cmp eax, 0x1000
jb 0x41753f
test cl, 0x1f
jne 0x417565
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x417565
sub ecx, eax
cmp ecx, 4
jb 0x417565
cmp ecx, 0x23
ja 0x417565
mov ecx, eax
push ecx
call fcn.0042740d
add esp, 4
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427412
mov esp, ebp
pop ebp
ret
call fcn.00426e1c
call fcn.004028e1
call fcn.0042c6c3
int3