Function at 0x100488f
Capabilities:
Add user account
Get domain controller name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x1012854]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x29
push 0x11
push 0x17
mov dword [ebp - 4], eax
push 0x12
xor eax, eax
push 0xd
lea edi, [ebp - 0x74]
stosd dword es:[edi], eax
push 0xc
xor ebx, ebx
stosd dword es:[edi], eax
push 0xf
push 0xe
stosd dword es:[edi], eax
push ebx
push esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
stosd dword es:[edi], eax
call fcn.0100426a
add esp, 0x28
test eax, eax
jne 0x10048ed
mov esi, dword [esi + 0x18]
cmp esi, ebx
mov dword [ebp - 0x60], esi
jne 0x10048fc
push 2
call fcn.0100386e
push 0x57
pop eax
jmp 0x1004bd0
push 0x80000000
push 4
push esi
push ebx
call sub.NETAPI32.dll_I_NetNameValidate
mov esi, eax
cmp esi, ebx
jne 0x1004b8b
mov edi, dword [ebp - 0x64]
lea eax, [ebp - 0x4c]
push eax
push 0x12
push edi
call fcn.01003f2b
mov esi, eax
cmp esi, ebx
jne 0x1004b8b
lea eax, [ebp - 0x5c]
push eax
push 1
push dword [ebp - 0x4c]
push edi
call fcn.0100440e
mov esi, eax
cmp esi, ebx
jne 0x1004b8b
push 0xc
push edi
call fcn.01003cfb
test al, al
je 0x100496b
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x5c]
push 0xc
push edi
call fcn.01004483
mov esi, eax
cmp esi, ebx
jne 0x1004b8b
lea eax, [ebp - 0x50]
push eax
push 0xf
push edi
call fcn.01003f2b
mov esi, eax
cmp esi, ebx
jne 0x1004b8b
cmp dword [ebp - 0x4c], ebx
je 0x1004992
push 0x17
push edi
call fcn.01003cfb
test al, al
je 0x10049dd
cmp dword [0x1012ca8], ebx
je 0x10049a9
push dword [ebp - 0x5c]
push 0x2ee1
call fcn.0100371a
pop ecx
pop ecx
mov eax, dword [ebp - 0x50]
neg eax
sbb eax, eax
and eax, 0xfffffff0
lea ecx, [ebp - 0x58]
push ecx
add eax, 0x1020
push eax
push ebx
push ebx
push dword [ebp - 0x5c]
push dword [ebp - 0x4c]
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
mov esi, eax
cmp esi, ebx
jne 0x1004b8b
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
mov edi, dword [sym.imp.msvcrt.dll_wcsncpy]
push 0xe
push dword [ebp - 0x60]
lea eax, [ebp - 0x24]
push eax
call edi
lea eax, [ebp - 0x24]
push eax
mov word [ebp - 8], bx
call dword [sym.imp.msvcrt.dll__wcslwr]
add esp, 0x10
cmp dword [ebp - 0x50], ebx
je 0x1004a63
cmp dword [0x1012ca8], ebx
je 0x1004a1f
push dword [ebp - 0x50]
push dword [ebp - 0x60]
push 0x2ee2
call fcn.0100371a
add esp, 0xc
push 0x17
push dword [ebp - 0x64]
call fcn.01003cfb
test al, al
jne 0x1004a5b
push 0x12
push dword [ebp - 0x64]
call fcn.01003cfb
test al, al
jne 0x1004a5b
push dword [ebp - 0x50]
lea eax, [ebp - 0x24]
push ebx
push eax
push dword [ebp - 0x60]
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push dword [ebp - 0x58]
call fcn.0100f4cf
mov esi, eax
jmp 0x1004b8b
push 0x57
pop esi
jmp 0x1004b8b
cmp dword [0x1012ca8], ebx
je 0x1004a7a
push dword [ebp - 0x4c]
push 0x2ee4
call fcn.0100371a
pop ecx
pop ecx
push 1
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push dword [ebp - 0x4c]
call fcn.0100d0d6
mov esi, eax
cmp esi, ebx
jne 0x1004b8b
push 0xf
push dword [ebp - 0x60]
lea eax, [ebp - 0x48]
push eax
call edi
lea eax, [ebp - 0x48]
push 0x1001490
push eax
mov word [ebp - 0x2a], bx
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x14
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x94]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x48]
push 0x17
push dword [ebp - 0x64]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x90], eax
call fcn.01003cfb
neg al
sbb eax, eax
and eax, 0x1000
add eax, 0x1001
xor edi, edi
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x4c]
inc edi
cmp eax, ebx
mov dword [ebp - 0x88], edi
je 0x1004b37
cmp word [eax], 0x5c
je 0x1004b37
lea ecx, [ebp - 0x54]
push ecx
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 6]
push eax
call sub.NETAPI32.dll_NetApiBufferAllocate
mov esi, eax
cmp esi, ebx
jne 0x1004b64
push dword [ebp - 0x4c]
push 0x1001484
push dword [ebp - 0x54]
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
jmp 0x1004b3a
mov dword [ebp - 0x54], eax
cmp dword [0x1012ca8], ebx
je 0x1004b51
push dword [ebp - 0x60]
push 0x2ee3
call fcn.0100371a
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x94]
push eax
push edi
push dword [ebp - 0x54]
call sub.NETAPI32.dll_NetUserAdd
mov esi, eax
cmp dword [0x1012ca8], ebx
je 0x1004b7b
push dword [ebp - 0x4c]
push 0x2ee5
call fcn.0100371a
pop ecx
pop ecx
push 2
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push dword [ebp - 0x4c]
call fcn.0100d0d6
push dword [ebp - 0x5c]
call sub.NETAPI32.dll_NetApiBufferFree
push dword [ebp - 0x50]
call sub.NETAPI32.dll_NetApiBufferFree
lea eax, [ebp - 0x74]
push eax
call fcn.01004377
cmp dword [ebp - 0x58], ebx
je 0x1004bae
push dword [ebp - 0x58]
jmp 0x1004bb1
push dword [ebp - 0x4c]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x4c]
je 0x1004bc4
push eax
call sub.NETAPI32.dll_NetApiBufferFree
cmp esi, ebx
je 0x1004bce
push esi
call fcn.010037c9
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100c7ad
leave
ret 4