Function at 0x4066d0
Capabilities:
Add user account to group

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x6048
call fcn.004070e0
mov eax, dword [0x42cf34]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x6044], 1
mov dword [ebp - 0x6048], 0
mov dword [ebp - 0x603c], 0
mov dword [ebp - 0x6038], 0
mov eax, dword [ebp + 8]
push eax
call fcn.0040a520
add esp, 4
add eax, 1
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x6004]
push edx
call fcn.0041338c
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040a520
add esp, 4
add eax, 1
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x2004]
push edx
call fcn.0041338c
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040a520
add esp, 4
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x4004]
push edx
call fcn.0041338c
add esp, 0xc
push 0x42cbf4
call fcn.00402030
add esp, 4
lea eax, [ebp - 0x602c]
push eax
lea ecx, [ebp - 0x603c]
push ecx
call fcn.00402800
add esp, 8
mov dword [ebp - 0x6038], eax
cmp dword [ebp - 0x6038], 0
jne 0x4067c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42cc0c
call fcn.00402030
add esp, 8
jmp 0x406a25
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push str.___Attempting_to_add_user__s_to_group__s_on_domain_controller__s_n
call fcn.00402030
add esp, 0x10
mov dword [ebp - 0x6034], 0
jmp 0x4067f7
mov edx, dword [ebp - 0x6034]
add edx, 1
mov dword [ebp - 0x6034], edx
mov eax, dword [ebp - 0x6034]
cmp eax, dword [ebp - 0x603c]
jae 0x4069c0
imul ecx, dword [ebp - 0x6034], 0x104
mov edx, dword [ebp - 0x6038]
cmp dword [edx + ecx + 0x100], 0
je 0x4069bb
imul eax, dword [ebp - 0x6034], 0x104
add eax, dword [ebp - 0x6038]
push eax
push 0x42cc84
call fcn.0040a443
add esp, 8
test eax, eax
jne 0x40684b
jmp 0x4067e8
imul ecx, dword [ebp - 0x6034], 0x104
mov edx, dword [ebp - 0x6038]
mov eax, dword [edx + ecx + 0x100]
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
lea ecx, [ebp - 0x2004]
push ecx
lea edx, [ebp - 0x4004]
push edx
lea eax, [ebp - 0x6004]
push eax
call sub.NETAPI32.dll_NetGroupAddUser
mov dword [ebp - 0x6040], eax
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov ecx, dword [ebp - 0x6040]
mov dword [ebp - 0x6030], ecx
cmp dword [ebp - 0x6030], 0x8ad
ja 0x406901
cmp dword [ebp - 0x6030], 0x8ad
je 0x406978
cmp dword [ebp - 0x6030], 0x56
ja 0x4068e0
cmp dword [ebp - 0x6030], 0x56
je 0x406934
cmp dword [ebp - 0x6030], 0
je 0x406939
cmp dword [ebp - 0x6030], 5
je 0x406934
jmp case.0x40692d.1
cmp dword [ebp - 0x6030], 0x52e
je 0x406934
cmp dword [ebp - 0x6030], 0x8ac
je 0x406987
jmp case.0x40692d.1
mov edx, dword [ebp - 0x6030]
sub edx, 0x8b2
mov dword [ebp - 0x6030], edx
cmp dword [ebp - 0x6030], 0x7d
ja case.0x40692d.1
mov eax, dword [ebp - 0x6030]
movzx ecx, byte [eax + 0x406a48]
jmp dword [ecx*4 + 0x406a34]
jmp 0x4069bb
push str.___Successfully_added_user_to_group_n
call fcn.00402030
add esp, 4
jmp 0x4069cd
push 0x42cccc
call fcn.00402030
add esp, 4
jmp 0x4069cd
push str.____Operation_only_allowed_on_primary_domain_controller_n
call fcn.00402030
add esp, 4
jmp 0x4069cd
push str.____Special_group_n
call fcn.00402030
add esp, 4
jmp 0x4069cd
push 0x42cd38
call fcn.00402030
add esp, 4
jmp 0x4069cd
push str.____Group_not_found_n
call fcn.00402030
add esp, 4
jmp 0x4069cd
push 0x42cd64
call fcn.00402030
add esp, 4
jmp 0x4069cd
mov edx, dword [ebp - 0x6040]
push edx
push 0x42cd80
call fcn.00402030
add esp, 8
jmp 0x4069cd
jmp 0x4067e8
push 0x42cd94
call fcn.00402030
add esp, 4
mov dword [ebp - 0x6034], 0
jmp 0x4069e8
mov eax, dword [ebp - 0x6034]
add eax, 1
mov dword [ebp - 0x6034], eax
mov ecx, dword [ebp - 0x6034]
cmp ecx, dword [ebp - 0x603c]
jae 0x406a16
imul edx, dword [ebp - 0x6034], 0x104
mov eax, dword [ebp - 0x6038]
mov ecx, dword [eax + edx + 0x100]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4069d9
mov edx, dword [ebp - 0x6038]
push edx
call fcn.00412693
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004070d2
mov esp, ebp
pop ebp
ret