Function at 0x43a7da
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e15a
mov eax, dword fs:[0]
push eax
mov eax, 0x129c
call fcn.00456990
mov eax, dword [0x4b2d60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x12a8], eax
mov edi, ecx
mov dword [ebp - 0x1294], ebx
call fcn.0043f3c0
push eax
lea ecx, [ebp - 0x12a0]
call fcn.004013a1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov esi, 0x104
lea ecx, [ebp - 0x12a0]
cmp dword [eax], ebx
je 0x43a851
push str.SYSTEM
call fcn.00401356
jmp 0x43a878
lea eax, [ebp - 0x129c]
push eax
push esi
mov dword [ebp - 0x129c], esi
call fcn.0040165f
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x12a0]
call fcn.004076ad
push dword [ebp - 0x12a8]
lea ecx, [ebp - 0x12a4]
call fcn.00401326
lea eax, [ebp - 0x12a0]
push eax
lea eax, [ebp - 0x12a4]
push eax
mov byte [ebp - 4], 1
call fcn.0043ac5a
pop ecx
pop ecx
cmp eax, ebx
je 0x43a8de
mov ecx, dword [ebp - 0x12a4]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x12a0]
add ecx, 0xfffffff0
call fcn.004017df
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044ff92
leave
ret
mov eax, dword [ebp - 0x12a4]
cmp dword [eax - 0xc], ebx
je 0x43ac1b
mov eax, dword [ebp - 0x12a0]
cmp dword [eax - 0xc], ebx
je 0x43ac1b
call fcn.00439119
mov dword [ebp - 0x1294], eax
cmp eax, ebx
je 0x43abfb
xor eax, eax
push 0x206
mov word [ebp - 0x1290], ax
lea eax, [ebp - 0x128e]
push ebx
push eax
call fcn.00450cb0
add esp, 0xc
push 0xc34
lea eax, [ebp - 0x1088]
push ebx
push eax
call fcn.00450cb0
add esp, 0xc
push dword [ebp - 0x12a4]
mov eax, esi
lea edx, [ebp - 0x1290]
call fcn.00412b5b
cmp eax, ebx
mov dword [ebp - 0x129c], eax
jge 0x43a9c2
push str.failed_to_copy_command_line_into_SM:
lea ecx, [ebp - 0x1294]
call fcn.004012e2
mov byte [ebp - 4], 2
push dword [ebp - 0x129c]
lea eax, [ebp - 0x12a4]
push eax
lea eax, [ebp - 0x1294]
push eax
push 2
call fcn.00411336
mov ecx, dword [ebp - 0x1294]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x12a4]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x12a0]
add ecx, 0xfffffff0
call fcn.004017df
mov eax, ebx
jmp 0x43a8c4
lea eax, [ebp - 0x1290]
push eax
lea ecx, [ebp - 0x1298]
call fcn.004012e2
push str.___command_line:
lea ecx, [ebp - 0x1294]
mov byte [ebp - 4], 3
call fcn.004012e2
push ebx
lea eax, [ebp - 0x1298]
push eax
lea eax, [ebp - 0x1294]
push eax
push 2
mov byte [ebp - 4], 4
call fcn.00411336
mov ecx, dword [ebp - 0x1294]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1298]
add ecx, 0xfffffff0
call fcn.004017df
push dword [edi]
mov eax, esi
lea edx, [ebp - 0x1088]
call fcn.00412b5b
lea eax, [ebp - 0x1088]
push eax
lea ecx, [ebp - 0x1294]
call fcn.004012e2
push str.___ARM_update_folder:
lea ecx, [ebp - 0x1298]
mov byte [ebp - 4], 5
call fcn.004012e2
push ebx
lea eax, [ebp - 0x1294]
push eax
lea eax, [ebp - 0x1298]
push eax
push 2
mov byte [ebp - 4], 6
call fcn.00411336
mov ecx, dword [ebp - 0x1298]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1294]
add ecx, 0xfffffff0
call fcn.004017df
push dword [ebp - 0x12a0]
mov eax, esi
lea edx, [ebp - 0xe7c]
call fcn.00412b5b
lea eax, [ebp - 0x12a8]
push eax
mov dword [ebp - 0x12a8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
cmp eax, ebx
je 0x43ab51
mov edx, dword [ebp - 0x12a8]
push 9
xor eax, eax
pop ecx
mov word [ebp - 0x38], ax
lea edi, [ebp - 0x36]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xa
lea eax, [ebp - 0x38]
push eax
push edx
mov dword [ebp - 0xe80], edx
call fcn.00450c57
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x1294]
call fcn.004012e2
push str.___session_id:
lea ecx, [ebp - 0x1298]
mov byte [ebp - 4], 7
call fcn.004012e2
push ebx
lea eax, [ebp - 0x1294]
push eax
lea eax, [ebp - 0x1298]
push eax
push 2
mov byte [ebp - 4], 8
call fcn.00411336
mov ecx, dword [ebp - 0x1298]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1294]
jmp 0x43ab87
push str.___failed_to_get_session_id:
lea ecx, [ebp - 0x1298]
call fcn.004012e2
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1298]
push eax
push 1
call fcn.00411806
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1298]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
lea eax, [ebp - 0x1290]
push eax
lea edi, [ebp - 0x450]
call fcn.0042f56d
pop ecx
mov dword [ebp - 0x1294], eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x129c]
call fcn.004012e2
mov eax, edi
push eax
lea ecx, [ebp - 0x1298]
mov byte [ebp - 4], 0xa
call fcn.004012e2
mov byte [ebp - 4], 0xb
push dword [ebp - 0x40]
lea eax, [ebp - 0x129c]
push eax
lea eax, [ebp - 0x1298]
push eax
push 1
call fcn.00411336
mov ecx, dword [ebp - 0x1298]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
jmp 0x43ac41
push str.unable_to_create_SM
lea ecx, [ebp - 0x129c]
call fcn.004012e2
push ebx
lea eax, [ebp - 0x129c]
push eax
mov byte [ebp - 4], 0xc
push 2
jmp 0x43ac39
push str.Empty_Command_Line_or_User_Name
lea ecx, [ebp - 0x129c]
call fcn.004012e2
push ebx
lea eax, [ebp - 0x129c]
push eax
mov byte [ebp - 4], 0xd
push 1
call fcn.00411806
add esp, 0xc
mov ecx, dword [ebp - 0x129c]
add ecx, 0xfffffff0
call fcn.004017df
mov ebx, dword [ebp - 0x1294]
jmp 0x43a99f