Function at 0x4912c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x70e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
mov dword [ebp - 0x13c], ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x138], eax
mov eax, dword [eax]
mov dword [ebp - 0x120], esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x118], 1
push edi
test eax, eax
je 0x49130f
cmp byte [eax], 0
mov dword [ebp - 0x12c], 1
jne 0x491319
mov dword [ebp - 0x12c], 0
xor bl, bl
xor edi, edi
mov dword [ebp - 0x11c], edi
mov byte [ebp - 0x111], bl
mov byte [ebp - 0x112], bl
mov dword [ebp - 0x130], edi
test esi, esi
jne 0x4913ce
push str.HOME
call fcn.0061a79f
add esp, 4
mov byte [ebp - 0x110], bl
test eax, eax
je 0x4914c4
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x110], bl
je 0x4914c4
lea eax, [ebp - 0x110]
push eax
call dword [0x725404]
mov edi, eax
add esp, 4
test edi, edi
je 0x4914c4
push str._netrc
push 0x6e9fec
push edi
push 0x6f6168
call sym.hrkill.exe_curl_maprintf
push edi
mov esi, eax
call dword [0x725400]
add esp, 0x14
test esi, esi
jne 0x4913ca
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
mov bl, 1
xor edi, edi
push 0x6f64a0
push esi
call fcn.0060b364
add esp, 8
mov dword [ebp - 0x128], eax
test bl, bl
je 0x4913f6
push esi
call dword [0x725400]
mov eax, dword [ebp - 0x128]
add esp, 4
test eax, eax
je 0x491733
nop
push eax
lea eax, [ebp - 0x110]
push 0x100
push eax
call fcn.0061ab04
add esp, 0xc
test eax, eax
je 0x491725
lea eax, [ebp - 0x124]
mov edx, 0x6eab30
push eax
lea ecx, [ebp - 0x110]
call fcn.0049d9d0
mov esi, eax
add esp, 4
test esi, esi
je 0x491448
cmp byte [esi], 0x23
mov eax, dword [ebp - 0x128]
je 0x491400
mov ebx, dword [ebp - 0x124]
nop
test esi, esi
je 0x491710
mov eax, dword [ebp - 0x138]
mov edx, dword [ebp - 0x120]
mov ecx, dword [eax]
test ecx, ecx
je 0x49147e
cmp byte [ecx], 0
je 0x49147e
mov eax, dword [edx]
test eax, eax
je 0x49147e
cmp byte [eax], 0
jne 0x491725
mov eax, edi
sub eax, 0
je 0x4915ea
sub eax, 1
je 0x4915b6
sub eax, 1
jne 0x491681
cmp byte [ebp - 0x111], al
je 0x491507
cmp dword [ebp - 0x12c], eax
je 0x4914da
mov edx, esi
call fcn.0049a5a0
mov dword [ebp - 0x130], eax
mov byte [ebp - 0x111], 0
jmp 0x491681
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
push ecx
call dword [0x725400]
push esi
call dword [0x725404]
mov ecx, dword [ebp - 0x138]
add esp, 8
mov dword [ecx], eax
test eax, eax
je 0x49171b
mov byte [ebp - 0x111], 0
jmp 0x491681
cmp byte [ebp - 0x112], 0
je 0x491550
cmp dword [ebp - 0x130], 0
jne 0x491522
cmp dword [ebp - 0x12c], 0
jne 0x491544
push dword [edx]
call dword [0x725400]
push esi
call dword [0x725404]
mov esi, dword [ebp - 0x120]
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x49171b
mov byte [ebp - 0x112], 0
jmp 0x491681
mov edx, esi
mov ecx, str.login
call fcn.0049a5a0
test eax, eax
je 0x49156c
mov byte [ebp - 0x111], 1
jmp 0x491681
mov edx, esi
mov ecx, str.password
call fcn.0049a5a0
test eax, eax
je 0x491588
mov byte [ebp - 0x112], 1
jmp 0x491681
mov edx, esi
mov ecx, str.machine
call fcn.0049a5a0
test eax, eax
je 0x491681
mov edi, 1
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x11c], edi
jmp 0x491681
mov ecx, dword [ebp - 0x13c]
mov edx, esi
call fcn.0049a5a0
mov edi, eax
xor ecx, ecx
mov eax, dword [ebp - 0x118]
test edi, edi
cmovne eax, ecx
neg edi
mov dword [ebp - 0x118], eax
sbb edi, edi
and edi, 2
mov dword [ebp - 0x11c], edi
jmp 0x491681
mov ecx, esi
mov edi, str.machine
mov dword [ebp - 0x134], ecx
mov al, byte [ecx]
test al, al
je 0x49162b
mov dl, byte [edi]
lea ecx, [edx - 0x61]
cmp cl, 0x19
ja 0x49160a
sub dl, 0x20
lea ecx, [eax - 0x61]
cmp cl, 0x19
ja 0x491614
sub al, 0x20
mov ecx, dword [ebp - 0x134]
cmp dl, al
jne 0x49162b
inc edi
inc ecx
mov dword [ebp - 0x134], ecx
cmp byte [edi], 0
jne 0x4915f7
mov dl, byte [edi]
lea eax, [edx - 0x61]
cmp al, 0x19
ja 0x491637
sub dl, 0x20
mov cl, byte [ecx]
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x491643
sub cl, 0x20
cmp dl, cl
jne 0x491654
mov edi, 1
mov dword [ebp - 0x11c], edi
jmp 0x491681
mov edx, esi
mov ecx, str.default
call fcn.0049a5a0
test eax, eax
je 0x49167b
mov edi, 2
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x11c], edi
jmp 0x491681
mov edi, dword [ebp - 0x11c]
cmp byte [ebx], 0
mov esi, ebx
je 0x4916b2
nop dword [eax + eax]
movsx eax, byte [esi]
push eax
push 0x6eab30
call fcn.005fa980
add esp, 8
test eax, eax
je 0x4916b2
inc esi
cmp byte [esi], 0
jne 0x491690
xor esi, esi
jmp 0x491450
cmp byte [esi], 0
je 0x4916ab
mov al, byte [esi + 1]
lea ebx, [esi + 1]
mov dword [ebp - 0x124], ebx
test al, al
je 0x491450
nop dword [eax + eax]
movsx eax, al
push eax
push 0x6eab30
call fcn.005fa980
add esp, 8
test eax, eax
jne 0x4916f8
mov al, byte [ebx + 1]
inc ebx
mov dword [ebp - 0x124], ebx
test al, al
jne 0x4916d0
jmp 0x491450
cmp byte [ebx], 0
je 0x491450
mov byte [ebx], 0
inc ebx
mov dword [ebp - 0x124], ebx
jmp 0x491450
mov eax, dword [ebp - 0x128]
jmp 0x491400
mov dword [ebp - 0x118], 0xffffffff
push dword [ebp - 0x128]
call fcn.0060b444
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x118]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004aa758
mov esp, ebp
pop ebp
ret