Function at 0x10002dd0
Capabilities:
Get hostname
Get session user name
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x10011484]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x234]
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok_s]
push esi
push edi
push ecx
push 0x1000e370
push eax
mov dword [ebp - 0x234], 0
call ebx
mov edi, eax
add esp, 0xc
test edi, edi
je 0x100032c1
lea ecx, [ebp - 0x22d]
call fcn.100021e0
mov esi, eax
cmp byte [esi + 6], 0
je 0x10002e43
push 0xf9a947ff
push 0x85ef9dbf
push 0
push 6
push esi
call fcn.10001da0
add esp, 0x14
mov byte [esi + 6], 0
mov eax, edi
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x10002e65
test cl, cl
je 0x10002e61
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x10002e65
add eax, 2
add esi, 2
test cl, cl
jne 0x10002e45
xor eax, eax
jmp 0x10002e6a
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10002eb3
lea eax, [ebp - 0x234]
push eax
push 0x1000e370
push 0
call ebx
add esp, 0xc
test eax, eax
je 0x100032ae
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
imul eax, eax, 0x3e8
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10009b64
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x22d]
call fcn.10002bd0
mov esi, eax
cmp byte [esi + 7], 0
je 0x10002ee1
push 0x1f25313b
push 0xb56143eb
push 0
push 7
push esi
call fcn.10001da0
add esp, 0x14
mov byte [esi + 7], 0
mov eax, edi
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x10002f03
test cl, cl
je 0x10002eff
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x10002f03
add eax, 2
add esi, 2
test cl, cl
jne 0x10002ee3
xor eax, eax
jmp 0x10002f08
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10002fa8
push 0x101
push eax
lea eax, [ebp - 0x118]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x14], xmm0
call fcn.1000a950
add esp, 0xc
mov dword [ebp - 0x238], 0x10
lea eax, [ebp - 0x238]
mov dword [ebp - 0x23c], 0x101
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x1000e374
lea eax, [ebp - 0x22c]
push 0x111
push eax
call fcn.100032f0
lea eax, [ebp - 0x22c]
push eax
call fcn.10005470
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10009b64
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x22d]
call fcn.10002130
mov esi, eax
cmp byte [esi + 8], 0
je 0x10002fd6
push 0x9b77efa7
push 0x1fa53b3f
push 0
push 8
push esi
call fcn.10001da0
add esp, 0x14
mov byte [esi + 8], 0
mov eax, edi
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x10002ff8
test cl, cl
je 0x10002ff4
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x10002ff8
add eax, 2
add esi, 2
test cl, cl
jne 0x10002fd8
xor eax, eax
jmp 0x10002ffd
sbb eax, eax
or eax, 1
lea ecx, [ebp - 0x22d]
test eax, eax
jne 0x10003163
call fcn.10002990
mov esi, eax
cmp byte [esi + 0x1b], 0
je 0x10003033
push 0xcf8ffb89
push 0x377b9db1
push 0
push 0x1b
push esi
call fcn.10001da0
add esp, 0x14
mov byte [esi + 0x1b], 0
push 0x104
lea eax, [ebp - 0x118]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea esi, [ebp - 0x118]
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x10003050
sub esi, ecx
lea ecx, [ebp - 0x22d]
call fcn.10001fa0
mov ebx, eax
cmp byte [ebx + 6], 0
je 0x10003087
push 0x7dbd4949
push 0x9df19131
push 0
push 6
push ebx
call fcn.10001da0
add esp, 0x14
mov byte [ebx + 6], 0
lea ecx, [ebp - 0x22d]
call fcn.10002050
mov edi, eax
cmp byte [edi + 0x2e], 0
je 0x100030b5
push 0x779d037f
push 0xcf83bfcb
push 0
push 0x2e
push edi
call fcn.10001da0
add esp, 0x14
mov byte [edi + 0x2e], 0
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push ebx
push edi
push 0x80000001
call fcn.10006700
add esp, 0x18
lea ecx, [ebp - 0x22d]
test eax, eax
je 0x1000311f
call fcn.10002510
mov esi, eax
cmp byte [esi + 0x29], 0
je 0x10003147
push 0xcb0b4fdb
push 0x6b4b3b87
push 0
push 0x29
push esi
call fcn.10001da0
add esp, 0x14
mov byte [esi + 0x29], 0
push esi
call fcn.10005470
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10009b64
mov esp, ebp
pop ebp
ret
call fcn.10002820
mov esi, eax
cmp byte [esi + 0x10], 0
je 0x10003147
push 0x29b373e5
push 0x8fe16903
push 0
push 0x10
push esi
call fcn.10001da0
mov byte [esi + 0x10], 0
add esp, 0x14
push esi
call fcn.10005470
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10009b64
mov esp, ebp
pop ebp
ret
call fcn.10002a60
mov esi, eax
cmp byte [esi + 8], 0
je 0x1000318b
push 0x55c91b17
push 0x95f78f4d
push 0
push 8
push esi
call fcn.10001da0
add esp, 0x14
mov byte [esi + 8], 0
mov eax, edi
nop dword [eax]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x100031b0
test cl, cl
je 0x100031ac
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x100031b0
add eax, 2
add esi, 2
test cl, cl
jne 0x10003190
xor eax, eax
jmp 0x100031b5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100031db
lea eax, [ebp - 0x234]
push eax
call fcn.10008090
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10009b64
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x22d]
call fcn.100026a0
mov esi, eax
cmp byte [esi + 0xa], 0
je 0x10003209
push 0x331b5f3b
push 0xe9257109
push 0
push 0xa
push esi
call fcn.10001da0
add esp, 0x14
mov byte [esi + 0xa], 0
mov eax, edi
nop dword [eax + eax]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x10003230
test cl, cl
je 0x1000322c
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x10003230
add eax, 2
add esi, 2
test cl, cl
jne 0x10003210
xor eax, eax
jmp 0x10003235
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10003251
call fcn.10008390
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10009b64
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x22d]
call fcn.100028d0
mov esi, eax
cmp byte [esi + 0xb], 0
je 0x10003280
push 0xad63ed3d
push 0x7549b775
push 0
push 0xb
push esi
call fcn.10001da0
add esp, 0x14
mov byte [esi + 0xb], 0
nop
mov al, byte [edi]
cmp al, byte [esi]
jne 0x100032a0
test al, al
je 0x1000329c
mov al, byte [edi + 1]
cmp al, byte [esi + 1]
jne 0x100032a0
add edi, 2
add esi, 2
test al, al
jne 0x10003280
xor eax, eax
jmp 0x100032a5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100032c1
call fcn.10008280
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10009b64
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10009b64
mov esp, ebp
pop ebp
ret