Function at 0x432930
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4237
mov eax, dword fs:[0]
push eax
sub esp, 0x62c
mov eax, dword [0x535224]
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 esi, dword [ebp + 8]
test esi, esi
jne 0x43296c
xor eax, eax
jmp 0x432c27
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004691d0
push str.AiShangWriterTray.exe
lea eax, [ebp - 0x420]
push 0x504b44
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004691d0
add esp, 0x24
call fcn.00432c70
test al, al
lea eax, [ebp - 0x420]
push eax
push esi
lea eax, [ebp - 0x218]
push eax
je 0x432a16
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
push str.app_path:_s
call fcn.004213e0
add esp, 8
lea ecx, [ebp - 0x62c]
call fcn.00434940
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push eax
push str.AiShangWriterTray
lea ecx, [ebp - 0x62c]
call fcn.004358a0
lea ecx, [ebp - 0x62c]
mov ebx, eax
call fcn.00434c60
jmp 0x432c25
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x634]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x432c25
lea eax, [ebp - 0x638]
mov dword [ebp - 0x638], 0x104
push eax
lea eax, [ebp - 0x628]
push eax
push 0
push 0
push str.AiShangWriterTray
push dword [ebp - 0x634]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x634]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x432c25
call fcn.00406410
mov ecx, eax
test ecx, ecx
je 0x432c45
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x630], eax
lea eax, [ebp - 0x628]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x630]
test eax, 0xffff0000
jne 0x432ac7
movzx eax, ax
push eax
call fcn.0040dfc0
jmp 0x432acd
push eax
call fcn.0040e170
mov esi, dword [ebp - 0x630]
mov dword [ebp - 4], 2
mov edi, dword [esi - 0xc]
test edi, edi
js 0x432c4f
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x432b08
push edi
lea ecx, [ebp - 0x630]
call fcn.00406be0
mov esi, dword [ebp - 0x630]
lea eax, [edi + 1]
push eax
push esi
call fcn.00491c8f
add esp, 8
cmp edi, dword [esi - 8]
jg 0x432c4f
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
call fcn.00406410
mov ecx, eax
test ecx, ecx
je 0x432c59
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x62c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x62c]
test eax, 0xffff0000
jne 0x432b66
movzx eax, ax
push eax
call fcn.0040dfc0
jmp 0x432b6c
push eax
call fcn.0040e170
mov edi, dword [ebp - 0x62c]
mov byte [ebp - 4], 4
mov ebx, dword [edi - 0xc]
test ebx, ebx
js 0x432c63
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, ebx
or eax, ecx
jge 0x432ba4
push ebx
lea ecx, [ebp - 0x62c]
call fcn.00406be0
mov edi, dword [ebp - 0x62c]
lea eax, [ebx + 1]
push eax
push edi
call fcn.00491c8f
add esp, 8
cmp ebx, dword [edi - 8]
jg 0x432c4f
xor eax, eax
mov dword [edi - 0xc], ebx
mov word [edi + ebx*2], ax
cmp dword [esi - 0xc], eax
jge 0x432bcd
or ebx, 0xffffffff
jmp 0x432be6
push edi
push esi
call fcn.0046a0ec
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x432be2
or ebx, 0xffffffff
jmp 0x432be6
sub ebx, esi
sar ebx, 1
lea edx, [edi - 0x10]
mov byte [ebp - 4], 2
not ebx
or edi, 0xffffffff
shr ebx, 0x1f
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x432c09
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x432c25
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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.004447da
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00402ae0
push 0x80070057
call fcn.00402ae0
push 0x80004005
call fcn.00402ae0
push 0x80070057
call fcn.00402ae0
int3