Function at 0x10037979
Capabilities:
Get session user name

Disassembly:
push 0x190
mov eax, 0x10053516
call fcn.1003b56a
mov eax, dword [ebp + 8]
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x180], esi
mov edi, 0x80
cmp word [0x10069ae8], si
jne 0x10037a64
xor eax, eax
push 0xfe
mov word [ebp - 0x16c], ax
lea eax, [ebp - 0x16a]
push esi
push eax
call fcn.1003c500
add esp, 0xc
lea eax, [ebp - 0x174]
push eax
lea eax, [ebp - 0x16c]
push eax
mov dword [ebp - 0x174], edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x10037a64
push str.system
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10037a51
lea eax, [ebp - 0x50]
push str.agentUser
push eax
mov edx, str.Softwareprojonepodlp_smpcache_
mov ecx, 0x80000002
call fcn.10026f3e
pop ecx
pop ecx
cmp dword [ebp - 0x3c], esi
jne 0x10037a2c
lea eax, [ebp - 0x16c]
jmp 0x10037a38
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x10037a38
lea eax, [ebp - 0x4c]
push edi
push eax
push 0x10069ae8
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea esi, [ebp - 0x50]
call fcn.10001b10
xor esi, esi
jmp 0x10037a64
push edi
lea eax, [ebp - 0x16c]
push eax
push 0x10069ae8
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp byte [0x10069be8], 0
jne 0x10037aa0
lea eax, [ebp - 0x19c]
push eax
call fcn.100346d2
cmp dword [eax + 0x18], 0x10
pop ecx
jb 0x10037a85
mov eax, dword [eax + 4]
jmp 0x10037a88
add eax, 4
push edi
push eax
push 0x10069be8
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x19c]
call fcn.10001a70
cmp word [0x10069ae8], si
je 0x10037b92
cmp byte [0x10069be8], 0
je 0x10037b92
cmp byte [ebx + 8], 7
jne 0x10037b92
push str.i_action
lea ecx, [ebp - 0x19c]
call fcn.10001a00
sub esp, 0x1c
mov dword [ebp - 4], esi
mov ecx, esp
mov dword [ebp - 0x174], esp
push 0x10057ce0
call fcn.10001a00
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x19c]
mov edi, ebx
call fcn.10003360
add esp, 0x20
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 2
call fcn.10001a70
mov ecx, str.replace
lea edi, [ebp - 0x6c]
call fcn.1000c3b0
test al, al
jne 0x10037b2e
mov ecx, str.delete
call fcn.1000c3b0
test al, al
je 0x10037b9a
mov esi, str.i_key_columns
push ebx
mov edx, esi
call fcn.1002e756
cmp byte [eax + 8], 4
jne 0x10037b69
push ebx
mov edx, esi
call fcn.1002e756
push eax
lea ecx, [ebp - 0x50]
call fcn.1002da09
cmp dword [eax + 0x14], 0
mov dword [ebp - 0x180], 1
mov byte [ebp - 0x16d], 0
jne 0x10037b70
mov byte [ebp - 0x16d], 1
test byte [ebp - 0x180], 1
je 0x10037b81
lea ecx, [ebp - 0x50]
call fcn.10001a70
cmp byte [ebp - 0x16d], 0
je 0x10037b9a
lea ecx, [ebp - 0x6c]
call fcn.10001a70
xor eax, eax
call fcn.1003b5ed
ret
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x174], esp
push str.t_process_log
call fcn.1002d64a
push ebx
mov edx, str.i_dt
mov byte [ebp - 4], 3
call fcn.1002e756
mov edi, eax
mov byte [ebp - 4], 2
call fcn.1002d91e
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x174], esp
push 0x10069be8
call fcn.1002d64a
push ebx
mov edx, str.client_unique
mov byte [ebp - 4], 4
call fcn.1002e756
mov edi, eax
mov byte [ebp - 4], 2
call fcn.1002d91e
mov edi, str.user_name
push ebx
mov edx, edi
call fcn.1002e756
cmp byte [eax + 8], 0
jne 0x10037d08
lea esi, [ebp - 0x16c]
call fcn.100378f3
mov ebx, esi
mov byte [ebp - 4], 5
call fcn.10034872
test eax, eax
je 0x10037c93
cmp dword [ebp - 0x158], 0
je 0x10037c93
sub esp, 0x18
mov edx, esi
mov esi, esp
mov dword [ebp - 0x174], esp
call fcn.1002d6cb
push dword [ebp - 0x178]
mov edx, edi
mov byte [ebp - 4], 6
call fcn.1002e756
mov edi, eax
mov byte [ebp - 4], 5
call fcn.1002d91e
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x174], esp
push 1
call fcn.1002d5ec
push dword [ebp - 0x178]
mov edx, str.i_user_data
mov byte [ebp - 4], 7
call fcn.1002e756
mov edi, eax
mov byte [ebp - 4], 5
call fcn.1002d91e
jmp 0x10037cf3
mov eax, 0x10069ae8
lea ecx, [ebp - 0x50]
call fcn.10001aa0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 8
call fcn.10002ed0
sub esp, 0x10
mov byte [ebp - 4], 9
mov edx, eax
mov esi, esp
mov dword [ebp - 0x174], esp
call fcn.1002d6cb
push dword [ebp - 0x178]
mov edx, edi
mov byte [ebp - 4], 0xa
call fcn.1002e756
mov edi, eax
mov byte [ebp - 4], 9
call fcn.1002d91e
lea ecx, [ebp - 0x30]
call fcn.10001a70
lea esi, [ebp - 0x50]
call fcn.10001b10
lea esi, [ebp - 0x16c]
mov byte [ebp - 4], 2
call fcn.10037e76
mov ebx, dword [ebp - 0x178]
push ebx
mov edx, str.data_time
call fcn.1002e756
cmp byte [eax + 8], 0
jne 0x10037d91
push 7
xor eax, eax
mov byte [ebp - 0x34], 0
pop ecx
lea edi, [ebp - 0x33]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x38]
push eax
movzx eax, word [ebp - 0x3a]
push eax
movzx eax, word [ebp - 0x3c]
push eax
movzx eax, word [ebp - 0x3e]
push eax
movzx eax, word [ebp - 0x42]
push eax
movzx eax, word [ebp - 0x44]
push eax
push str._04d__02d__02d__02d:_02d:_02d
lea eax, [ebp - 0x34]
push 0x20
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0xc
lea eax, [ebp - 0x34]
mov esi, esp
mov dword [ebp - 0x174], esp
push eax
call fcn.1002d64a
push ebx
mov edx, str.data_time
mov byte [ebp - 4], 0xb
call fcn.1002e756
mov edi, eax
mov byte [ebp - 4], 2
call fcn.1002d91e
cmp dword [ebp - 0x17c], 0
je 0x10037e66
push dword [ebp - 0x17c]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [ebp - 0x50]
call fcn.10001aa0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 0xc
call fcn.10002ed0
sub esp, 0x10
mov byte [ebp - 4], 0xd
mov edx, eax
mov esi, esp
mov dword [ebp - 0x174], esp
call fcn.1002d6cb
push ebx
mov edx, str.attach_name
mov byte [ebp - 4], 0xe
call fcn.1002e756
mov edi, eax
mov byte [ebp - 4], 0xd
call fcn.1002d91e
lea ecx, [ebp - 0x30]
call fcn.10001a70
lea esi, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.10001b10
mov eax, dword [ebp - 0x17c]
lea ecx, [ebp - 0x50]
call fcn.10001aa0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 0xf
call fcn.10002ed0
sub esp, 0x10
mov byte [ebp - 4], 0x10
mov edx, eax
mov esi, esp
mov dword [ebp - 0x174], esp
call fcn.1002d6cb
push ebx
mov edx, str.attachment
mov byte [ebp - 4], 0x11
call fcn.1002e756
mov edi, eax
mov byte [ebp - 4], 0x10
call fcn.1002d91e
lea ecx, [ebp - 0x30]
call fcn.10001a70
lea esi, [ebp - 0x50]
call fcn.10001b10
lea ecx, [ebp - 0x6c]
call fcn.10001a70
xor eax, eax
inc eax
jmp 0x10037b94