Function at 0x47d2c0
Capabilities:
Encode data using xor
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4f4164]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 8
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
jne 0x47d2f2
cmp dword [edi + 8], 2
je 0x47d2f2
or eax, 2
mov dword [ebp - 0x1c], eax
mov esi, dword [edi + 4]
test esi, esi
je 0x47d352
cmp dword [esi], 0
je 0x47d352
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4f9024]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4f9b20]
cmp eax, dword [ecx + 8]
jg 0x47d5c2
movzx ecx, word [ebx]
mov esi, ebx
mov edx, ebx
test cx, cx
je 0x47d349
nop word [eax + eax]
xor cl, byte [0x4f9b1c]
lea edx, [edx + 1]
add esi, 2
mov byte [edx - 1], cl
movzx eax, word [esi]
mov cl, al
test ax, ax
jne 0x47d330
mov eax, dword [ebp - 0x1c]
sub esi, ebx
sar esi, 1
jmp 0x47d354
xor esi, esi
test al, 1
je 0x47d362
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x1c]
test al, 2
je 0x47d449
test esi, esi
je 0x47d37c
push esi
push ebx
mov ecx, edi
call fcn.00478a00
jmp 0x47d446
mov eax, dword [0x4f9024]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + eax*4]
mov eax, dword [0x4f9ba0]
cmp eax, dword [ecx + 8]
jg 0x47d5fe
cmp dword [0x4f9b9c], 0
jg 0x47d3c0
jl 0x47d3b0
cmp dword [0x4f9b98], 0
jae 0x47d3c0
push 0
push ebx
lea ecx, [edi + 0x30]
call fcn.00469b80
jmp 0x47d446
mov eax, dword [edi + 0xa0]
lea esi, [edi + 0xa0]
xchg dword [esi], eax
push 0
push ebx
mov ecx, eax
mov dword [ebp - 0x24], eax
call fcn.00469b80
test al, al
je 0x47d446
lea edx, [edi + 0x2c]
mov ecx, 1
mov dword [ebp - 0x20], edx
xor eax, eax
lock cmpxchg dword [edx], ecx
cmp eax, 1
je 0x47d446
mov eax, dword [esi]
xchg dword [esi], eax
mov edx, dword [ebp - 0x24]
cmp eax, edx
je 0x47d405
mov ecx, dword [ebp - 0x20]
jmp 0x47d442
lea eax, [edi + 0x30]
mov dword [ebp - 0x20], 0x68
cmp edx, eax
mov ecx, 0x30
cmove ecx, dword [ebp - 0x20]
lea eax, [edi + ecx]
mov ecx, eax
mov dword [ebp - 0x24], eax
call fcn.00473ae0
mov ecx, dword [ebp - 0x24]
call fcn.00479200
test al, al
je 0x47d438
mov eax, dword [ebp - 0x24]
xchg dword [esi], eax
mov ecx, edi
call fcn.0047be50
lea ecx, [edi + 0x2c]
xor eax, eax
xchg dword [ecx], eax
mov eax, dword [ebp - 0x1c]
test al, 4
je 0x47d4da
mov esi, dword [0x4f98d8]
mov edx, dword [esi]
cmp edx, 0xffffffff
jne 0x47d4a5
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount64]
call edi
mov ecx, dword [esi + 4]
add ecx, 0x2710
cmp eax, ecx
jbe 0x47d4da
mov edx, dword [esi]
cmp edx, 0xffffffff
jne 0x47d4a5
push 0
push 0x80
push 3
push 0
push 7
push 0xc0000000
push str..GlobalProcmonDebugLogger
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
call edi
mov edx, dword [esi]
mov dword [esi + 4], eax
cmp edx, 0xffffffff
je 0x47d4da
mov ecx, ebx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d4b0
push 0
sub ecx, esi
lea eax, [ebp - 0x18]
push eax
push 0
sar ecx, 1
push 0
lea eax, [ecx + ecx]
push eax
push ebx
push 0x95358204
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test byte [ebp - 0x1c], 8
je 0x47d5b1
mov edi, dword [0x4f98f8]
mov eax, dword [edi + 8]
lea esi, [edi + 8]
or eax, dword [esi + 4]
jne 0x47d562
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x47d562
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EventRegister
push eax
call esi
push str.EventUnregister
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.EventWrite
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x18], eax
test ecx, ecx
je 0x47d551
cmp dword [edi + 0x14], 0
je 0x47d551
test eax, eax
je 0x47d551
lea esi, [edi + 8]
push esi
push 0
push 0
push 0x4d372c
call ecx
jmp 0x47d562
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi], 0
lea esi, [edi + 8]
mov eax, dword [esi]
mov edx, dword [esi + 4]
or eax, edx
je 0x47d5b1
mov ecx, ebx
lea eax, [ecx + 2]
mov dword [ebp - 0x20], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d573
sub ecx, dword [ebp - 0x20]
sar ecx, 1
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
lea eax, [ecx*2 + 2]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [edi + 0x18]
push 1
push 0x4d3740
push edx
push dword [esi]
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450df0
mov esp, ebp
pop ebp
ret
push 0x4f9b20
call fcn.00450d1a
add esp, 4
cmp dword [0x4f9b20], 0xffffffff
jne 0x47d31e
mov al, byte [esi + 1]
sub al, byte [esi + 3]
sub al, byte [esi + 2]
add al, byte [esi]
push 0x4f9b20
mov byte [0x4f9b1c], al
call fcn.00450cd0
add esp, 4
jmp 0x47d31e
push 0x4f9ba0
call fcn.00450d1a
add esp, 4
cmp dword [0x4f9ba0], 0xffffffff
jne 0x47d39c
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
push 0x4f9ba0
mov dword [0x4f9b98], eax
mov dword [0x4f9b9c], ecx
call fcn.00450cd0
add esp, 4
jmp 0x47d39c