Function at 0x4090ab
Capabilities:
Decode data using base64 via winapi
Modify service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x234], eax
lea ebx, [ebp - 0x27c]
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x24c], eax
lea edi, [ebp - 0x27c]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x260], eax
xor eax, eax
mov esi, eax
mov dword [ebp - 0x23c], eax
stosd dword es:[edi], eax
push 3
push edx
push ecx
stosd dword es:[edi], eax
mov dword [ebp - 0x22c], esi
stosd dword es:[edi], eax
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov ecx, dword [ebp - 0x260]
mov dword [ecx], eax
test eax, eax
jne 0x40912c
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x401478
call fcn.0040889b
mov esi, eax
jmp 0x409ad1
mov edi, dword [ebp - 0x234]
push 0x403fb4
push dword [edi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x409a4f
imul eax, dword [ebp - 0x24c], 0x14
add eax, 0xc
push eax
push 0x40
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov ebx, eax
mov dword [ebp - 0x250], ebx
test ebx, ebx
jne 0x409181
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, 0x404dec
mov esi, eax
mov edx, esi
call fcn.0040889b
jmp 0x409ad1
mov ecx, dword [ebp - 0x24c]
lea eax, [ebx + 0xc]
mov dword [ebp - 0x228], eax
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebx], ecx
mov dword [ebp - 0x25c], eax
test ecx, ecx
je 0x409a4f
mov ebx, eax
mov dword [ebp - 0x248], eax
push 5
push 0x403c54
push dword [edi + ebx*4]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x208], 1
mov dword [ebp - 0x258], 1
mov dword [ebp - 0x210], eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4091e8
push 0xc
jmp 0x40920e
push 4
push 0x403d80
push dword [edi + ebx*4]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4099eb
push 2
pop eax
mov dword [ebp - 0x258], eax
push 0xa
pop eax
add dword [edi + ebx*4], eax
push 6
push 0x404e8c
push dword [edi + ebx*4]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x409233
push 2
pop eax
push 0xe
jmp 0x409501
push 6
push 0x404e9c
push dword [edi + ebx*4]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x409265
mov dword [ebp - 0x208], 0x14
mov dword [ebp - 0x218], 1
push 0xe
jmp 0x409507
push 9
push 0x404eac
push dword [edi + ebx*4]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x409295
push 0x14
pop edx
push 2
pop eax
mov dword [ebp - 0x208], edx
mov edi, edx
mov dword [ebp - 0x218], eax
jmp 0x409508
push 9
push 0x404ec0
push dword [edi + ebx*4]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4092c6
push 0x14
pop eax
mov dword [ebp - 0x208], eax
mov edi, eax
mov dword [ebp - 0x218], 3
jmp 0x409508
push 0xb
push 0x404ed4
push dword [edi + ebx*4]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4092f8
mov dword [ebp - 0x208], 0x14
mov dword [ebp - 0x218], 4
push 0x18
jmp 0x409507
push 0xb
push 0x404eec
push dword [edi + ebx*4]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x409323
push 5
pop eax
mov dword [ebp - 0x208], 0x14
push 0x18
jmp 0x409501
push 9
push 0x404f04
push dword [edi + ebx*4]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x40935b
mov dword [ebp - 0x210], 0x40168c
imul ecx, ebx, 0x14
push 2
pop eax
mov dword [ebp - 0x208], eax
add ecx, dword [ebp - 0x228]
jmp 0x4099a8
push 0xa
push 0x404f18
push dword [edi + ebx*4]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x40937e
mov dword [ebp - 0x210], 0x4050dc
jmp 0x409344
push 0xa
push 0x404f30
push dword [edi + ebx*4]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4093b7
mov dword [ebp - 0x210], 0x4016ac
imul ecx, ebx, 0x14
mov dword [ebp - 0x208], 3
add ecx, dword [ebp - 0x228]
jmp 0x4099a8
push 0xb
push 0x404f48
push dword [edi + ebx*4]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4093da
mov dword [ebp - 0x210], 0x4050fc
jmp 0x40939f
push 8
push 0x404f60
push dword [edi + ebx*4]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x40940f
push 2
pop eax
mov dword [ebp - 0x208], 4
mov dword [ebp - 0x210], 0x4016cc
push 0x12
jmp 0x409501
push 9
push 0x404f74
push dword [edi + ebx*4]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x40943f
mov dword [ebp - 0x208], 4
mov dword [ebp - 0x210], 0x40510c
jmp 0x4094fc
push 0xd
push 0x404f88
push dword [edi + ebx*4]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x409478
mov dword [ebp - 0x210], 0x40169c
imul ecx, ebx, 0x14
mov dword [ebp - 0x208], 5
add ecx, dword [ebp - 0x228]
jmp 0x4099a8
push 0xa
push 0x404fa4
push dword [edi + ebx*4]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x40949b
mov dword [ebp - 0x210], 0x4050ec
jmp 0x409460
push 0xc
push 0x404fbc
push dword [edi + ebx*4]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4094cd
push 2
pop eax
mov dword [ebp - 0x208], 6
mov dword [ebp - 0x210], 0x4016bc
push 0x1a
jmp 0x409501
push 9
push 0x404fd8
push dword [edi + ebx*4]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4099eb
mov dword [ebp - 0x208], 6
mov dword [ebp - 0x210], 0x40167c
push 2
pop eax
push 0x14
mov dword [ebp - 0x218], eax
pop edi
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax + ebx*4]
add ecx, 0xfffffffe
add ecx, edi
movzx eax, word [ecx]
test ax, ax
je 0x4099eb
mov ebx, dword [ebp - 0x220]
mov edx, eax
push 2
pop esi
cmp dx, 0x2f
jne 0x409539
xor eax, eax
inc ebx
mov word [ecx], ax
add ecx, esi
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x40952d
mov esi, dword [ebp - 0x22c]
mov dword [ebp - 0x220], ebx
mov eax, dword [ebp - 0x220]
mov ebx, dword [ebp - 0x248]
test ax, ax
je 0x4099eb
movzx eax, ax
imul eax, eax, 0xc
push eax
push 0x40
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x409168
mov eax, dword [ebp - 0x234]
mov eax, dword [eax + ebx*4]
add eax, edi
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x208]
cmp eax, 4
je 0x409602
cmp eax, 6
je 0x409602
push 0x10
push 0x40
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x409168
mov edi, dword [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
jne 0x4099eb
add dword [ebp - 0x220], 0xffff
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x23c]
jne 0x4095e1
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
mov dword [ebp - 0x20c], edi
jmp 0x409608
mov edi, dword [ebp - 0x20c]
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x244], ecx
cmp ax, word [ebp - 0x220]
jae 0x409982
mov dword [ebp - 0x21c], ecx
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x23c]
jne 0x40962a
sub ecx, edx
mov edx, dword [ebp - 0x214]
sar ecx, 1
lea eax, [ecx*2 + 2]
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x244]
movzx eax, ax
imul eax, eax, 0xc
mov dword [ebp - 0x230], eax
mov dword [eax + edx], ecx
cmp ecx, 1
jne 0x409735
mov eax, dword [ebp - 0x240]
lea ecx, [ebp - 0x21c]
xor edx, edx
shr eax, 1
push edx
push edx
push ecx
push edx
dec eax
push 8
push eax
push edi
mov dword [ebp - 0x238], eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x4099fa
push dword [ebp - 0x21c]
push 0x40
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x409168
xor eax, eax
push eax
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
push 8
push dword [ebp - 0x238]
push dword [ebp - 0x20c]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x4099fa
mov ecx, dword [ebp - 0x230]
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp - 0x21c]
mov dword [ecx + edx + 8], edi
mov edi, dword [ebp - 0x20c]
mov dword [ecx + edx + 4], eax
mov edx, dword [ebp - 0x214]
add edi, dword [ebp - 0x240]
mov eax, dword [ebp - 0x244]
inc eax
mov dword [ebp - 0x20c], edi
push 0
mov dword [ebp - 0x244], eax
pop ecx
cmp ax, word [ebp - 0x220]
jb 0x40961f
jmp 0x409988
cmp ecx, 2
jne 0x409846
cmp dword [ebp - 0x208], 4
mov ecx, dword [ebp - 0x240]
mov dword [eax + edx + 4], ecx
mov dword [eax + edx + 8], edi
jne 0x409701
mov ecx, dword [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x23c]
jne 0x40975e
sub ecx, edx
sar ecx, 1
je 0x409805
mov eax, dword [ebp - 0x20c]
push 0x3b
pop edx
cmp word [eax + ecx*2 - 2], dx
je 0x409805
lea eax, [ebp - 0x254]
push eax
push 2
pop edi
mov edx, edi
call fcn.0040c7fb
test eax, eax
js 0x409a2b
mov eax, dword [ebp - 0x254]
xor ecx, ecx
mul edi
mov dword [ebp - 0x238], eax
cmp edx, ecx
ja 0x409a1a
jb 0x4097c3
cmp eax, 0xffffffff
ja 0x409a1a
push eax
push 0x40
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x409a0a
push dword [ebp - 0x20c]
mov edx, dword [ebp - 0x254]
mov ecx, edi
call fcn.0040c6f0
mov ecx, dword [ebp - 0x230]
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp - 0x238]
mov dword [ecx + edx + 4], eax
mov dword [ecx + edx + 8], edi
jmp 0x40980b
mov edx, dword [ebp - 0x214]
movzx eax, word [edi]
test ax, ax
je 0x409901
push 2
pop ebx
push 0x3b
mov ecx, eax
pop esi
cmp cx, si
jne 0x409829
xor eax, eax
mov word [edi], ax
add edi, ebx
movzx eax, word [edi]
mov ecx, eax
test ax, ax
jne 0x40981f
mov esi, dword [ebp - 0x22c]
mov ebx, dword [ebp - 0x248]
jmp 0x409901
cmp ecx, 3
jne 0x40990c
mov edx, edi
xor esi, esi
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x264], esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, si
jne 0x409862
lea eax, [ebp - 0x268]
sub edx, ecx
push eax
push ecx
sar edx, 1
mov ecx, edi
call fcn.0040b79d
mov esi, eax
mov dword [ebp - 0x22c], esi
test esi, esi
jne 0x409a3f
cmp dword [ebp - 0x264], eax
ja 0x409a3c
mov eax, dword [ebp - 0x268]
jb 0x4098af
cmp eax, 0xff
ja 0x409a3c
mov byte [ebp - 0x221], al
xor eax, eax
inc eax
push eax
push 0x40
mov dword [ebp - 0x21c], eax
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x409168
lea eax, [ebp - 0x221]
push dword [ebp - 0x21c]
push eax
push edi
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x230]
add esp, 0xc
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp - 0x21c]
mov dword [ecx + edx + 4], eax
mov dword [ecx + edx + 8], edi
mov edi, dword [ebp - 0x20c]
jmp 0x409707
cmp ecx, 4
je 0x40991a
cmp ecx, 5
jne 0x409701
mov edx, edi
xor esi, esi
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x26c], esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, si
jne 0x40992d
lea eax, [ebp - 0x270]
sub edx, ecx
push eax
push ecx
sar edx, 1
mov ecx, edi
call fcn.0040b79d
mov esi, eax
mov dword [ebp - 0x22c], esi
test esi, esi
jne 0x409a3f
push 8
pop eax
push eax
push 0x40
mov dword [ebp - 0x21c], eax
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x409168
lea eax, [ebp - 0x270]
jmp 0x4098d7
mov edx, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x228]
mov edi, dword [ebp - 0x234]
imul eax, ebx, 0x14
add ecx, eax
mov eax, dword [ebp - 0x220]
movzx eax, ax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edx
mov ebx, dword [ebp - 0x208]
mov edx, ecx
mov eax, ecx
mov dword [ecx], ebx
mov ecx, dword [ebp - 0x258]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x210]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x25c]
inc eax
movzx ebx, ax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x248], ebx
cmp ebx, dword [ebp - 0x24c]
jae 0x409a49
xor eax, eax
jmp 0x4091ad
mov esi, 0x667
mov ecx, 0x88
jmp 0x409aca
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, 0x404ff0
jmp 0x409173
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, 0x405090
jmp 0x409173
mov edx, 0x216
mov ecx, 0x405078
mov esi, edx
jmp 0x409177
mov edx, 0x216
mov ecx, 0x405064
mov esi, edx
jmp 0x409177
push 0xd
pop esi
mov ecx, 0xab
jmp 0x409aca
mov ebx, dword [ebp - 0x250]
push ebx
mov ebx, dword [ebp - 0x260]
push 8
push dword [ebx]
call dword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x409a85
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
mov ecx, 0x40448c
mov edx, esi
call fcn.0040889b
cmp esi, 0xb7
jne 0x409ad1
lea ecx, [esi - 0x10]
jmp 0x409aca
push 0x64
lea edx, [ebp - 0x250]
mov dword [ebp - 0x250], 0x40448c
pop ecx
call fcn.0040a4ce
lea eax, [ebp - 0x238]
push eax
push 0x200
lea eax, [ebp - 0x204]
push eax
push dword [ebx]
call dword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceConfigW]
test eax, eax
je 0x409ad1
cmp dword [ebp - 0x200], 4
jne 0x409ad1
mov ecx, 0x99
xor edx, edx
call fcn.0040a4ce
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405f50
mov esp, ebp
pop ebp
ret 0xc