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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x45d06c]
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 0x416fe5
cmp dword [edx + 0x14], 8
mov eax, edx
mov dword [ebp - 0x60], edx
jb 0x416eef
mov eax, dword [edx]
mov dword [ebp - 0x60], eax
mov ebx, dword [edx + 0x10]
cmp ebx, 7
ja 0x416f17
lea esi, [ebx + ebx]
mov dword [ebp - 0x10], ebx
push esi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0042a470
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x20], ax
jmp 0x416fe5
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 0x417810
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 0x416f73
mov esi, 0x7ffffffe
jmp 0x416f7d
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
test eax, eax
jne 0x416f88
xor edi, edi
jmp 0x416fc6
cmp eax, 0x7fffffff
ja 0x41780b
add eax, eax
cmp eax, 0x1000
jb 0x416fbb
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x41780b
push ecx
call fcn.004296cc
add esp, 4
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x416fc6
push eax
call fcn.004296cc
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.0042b290
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.0041a770
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 0x417054
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.0042a470
mov eax, dword [ebp - 0x54]
add esp, 0xc
add eax, ebx
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x4171da
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 0x417810
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 0x4170b4
mov esi, 0x7ffffffe
jmp 0x4170d2
mov edx, edi
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp edi, eax
jbe 0x4170ca
mov esi, 0x7ffffffe
jmp 0x4170d2
lea eax, [edi + edx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
test eax, eax
jne 0x4170dd
xor edi, edi
jmp 0x41711e
cmp eax, 0x7fffffff
ja 0x41780b
add eax, eax
cmp eax, 0x1000
jb 0x417110
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x41780b
push ecx
call fcn.004296cc
add esp, 4
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x41711b
push eax
call fcn.004296cc
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 0x4171ac
mov ebx, dword [ebp - 0x20]
push ebx
push edi
call fcn.0042b290
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.0042b290
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 0x417815
add eax, eax
cmp eax, 0x1000
jb 0x4171a1
test bl, 0x1f
jne 0x417815
mov eax, dword [ebx - 4]
cmp eax, ebx
jae 0x417815
sub ebx, eax
cmp ebx, 4
jb 0x417815
cmp ebx, 0x23
ja 0x417815
mov ebx, eax
push ebx
call fcn.0042945d
add esp, 4
jmp 0x4171d7
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.0042b290
add esp, 0xc
lea eax, [ebx + ebx]
push eax
push dword [ebp - 0x60]
lea eax, [edi + esi]
push eax
call fcn.0042b290
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 0x41722d
mov ecx, dword [ebp - 0x38]
inc eax
cmp eax, 0x7fffffff
ja 0x417815
add eax, eax
cmp eax, 0x1000
jb 0x417224
test cl, 0x1f
jne 0x417815
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x417815
sub ecx, eax
cmp ecx, 4
jb 0x417815
cmp ecx, 0x23
ja 0x417815
mov ecx, eax
push ecx
call fcn.0042945d
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 0x41726d
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 0x4173c0
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 0x417810
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 0x4172ca
mov esi, 0x7ffffffe
jmp 0x4172e8
mov edx, ebx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ebx, eax
jbe 0x4172e0
mov esi, 0x7ffffffe
jmp 0x4172e8
lea eax, [ebx + edx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
test eax, eax
jne 0x4172f3
xor edi, edi
jmp 0x417334
cmp eax, 0x7fffffff
ja 0x41780b
add eax, eax
cmp eax, 0x1000
jb 0x417326
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x41780b
push ecx
call fcn.004296cc
add esp, 4
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x417331
push eax
call fcn.004296cc
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 0x4173a7
mov ebx, dword [ebp - 0x20]
push ebx
push edi
call fcn.0042b290
mov eax, dword [ebp - 0x54]
add esp, 0xc
inc eax
mov dword [edi + esi], 0x5f
cmp eax, 0x7fffffff
ja 0x417815
add eax, eax
cmp eax, 0x1000
jb 0x41739c
test bl, 0x1f
jne 0x417815
mov eax, dword [ebx - 4]
cmp eax, ebx
jae 0x417815
sub ebx, eax
cmp ebx, 4
jb 0x417815
cmp ebx, 0x23
ja 0x417815
mov ebx, eax
push ebx
call fcn.0042945d
add esp, 4
jmp 0x4173bd
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.0042b290
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 0x4173e7
int3
add ebx, esi
sub edi, esi
jne 0x4173d0
cmp dword [ebp - 0x80], 0xffffffff
ja 0x4173c0
mov edx, dword [ebp - 0x84]
jb 0x417403
cmp edx, 0xffff7fff
ja 0x4173c0
and edx, 0x7fff
lea ecx, [ebp - 0x38]
call fcn.0041a770
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 0x417470
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.0042a470
mov eax, dword [ebp - 0x54]
add esp, 0xc
add eax, ebx
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x4175f6
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 0x417810
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 0x4174d0
mov esi, 0x7ffffffe
jmp 0x4174ee
mov edx, edi
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp edi, eax
jbe 0x4174e6
mov esi, 0x7ffffffe
jmp 0x4174ee
lea eax, [edi + edx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
test eax, eax
jne 0x4174f9
xor edi, edi
jmp 0x41753a
cmp eax, 0x7fffffff
ja 0x41780b
add eax, eax
cmp eax, 0x1000
jb 0x41752c
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x41780b
push ecx
call fcn.004296cc
add esp, 4
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x417537
push eax
call fcn.004296cc
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 0x4175c8
mov ebx, dword [ebp - 0x20]
push ebx
push edi
call fcn.0042b290
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.0042b290
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 0x417815
add eax, eax
cmp eax, 0x1000
jb 0x4175bd
test bl, 0x1f
jne 0x417815
mov eax, dword [ebx - 4]
cmp eax, ebx
jae 0x417815
sub ebx, eax
cmp ebx, 4
jb 0x417815
cmp ebx, 0x23
ja 0x417815
mov ebx, eax
push ebx
call fcn.0042945d
add esp, 4
jmp 0x4175f3
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.0042b290
add esp, 0xc
lea eax, [ebx + ebx]
push eax
push dword [ebp - 0x60]
lea eax, [edi + esi]
push eax
call fcn.0042b290
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 0x417649
mov ecx, dword [ebp - 0x38]
inc eax
cmp eax, 0x7fffffff
ja 0x417815
add eax, eax
cmp eax, 0x1000
jb 0x417640
test cl, 0x1f
jne 0x417815
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x417815
sub ecx, eax
cmp ecx, 4
jb 0x417815
cmp ecx, 0x23
ja 0x417815
mov ecx, eax
push ecx
call fcn.0042945d
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.00419070
push eax
lea ecx, [ebp - 0x50]
call fcn.00417f60
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x4176c9
mov ecx, dword [ebp - 0x38]
inc eax
cmp eax, 0x7fffffff
ja 0x417815
add eax, eax
cmp eax, 0x1000
jb 0x4176c0
test cl, 0x1f
jne 0x417815
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x417815
sub ecx, eax
cmp ecx, 4
jb 0x417815
cmp ecx, 0x23
ja 0x417815
mov ecx, eax
push ecx
call fcn.0042945d
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 0x417760
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x417748
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, 0x7fffffff
ja 0x417815
add eax, eax
cmp eax, 0x1000
jb 0x41773f
test cl, 0x1f
jne 0x417815
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x417815
sub ecx, eax
cmp ecx, 4
jb 0x417815
cmp ecx, 0x23
ja 0x417815
mov ecx, eax
push ecx
call fcn.0042945d
add esp, 4
mov eax, dword [ebp - 0x6c]
inc eax
mov dword [ebp - 0x6c], eax
cmp eax, 0x32
jge 0x41775c
mov edx, dword [ebp - 0x74]
jmp 0x416ec0
xor bl, bl
jmp 0x4177b9
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x50]
push eax
call fcn.00417df0
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x4177b7
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, 0x7fffffff
ja 0x417815
add eax, eax
cmp eax, 0x1000
jb 0x4177ae
test cl, 0x1f
jne 0x417815
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x417815
sub ecx, eax
cmp ecx, 4
jb 0x417815
cmp ecx, 0x23
ja 0x417815
mov ecx, eax
push ecx
call fcn.0042945d
add esp, 4
mov bl, 1
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x4177f8
mov ecx, dword [ebp - 0x50]
inc eax
cmp eax, 0x7fffffff
ja 0x417815
add eax, eax
cmp eax, 0x1000
jb 0x4177ef
test cl, 0x1f
jne 0x417815
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x417815
sub ecx, eax
cmp ecx, 4
jb 0x417815
cmp ecx, 0x23
ja 0x417815
mov ecx, eax
push ecx
call fcn.0042945d
add esp, 4
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429462
mov esp, ebp
pop ebp
ret
call fcn.0042a083
call fcn.004029a9
call fcn.0042e703
int3