Function at 0x351630
Capabilities:
Contain obfuscated stackstrings
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
lea ebx, [esp + 0x14]
call fcn.00352060
push 0x353144
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + esi + 0x78]
lea ebp, [eax + esi + 0x78]
lea ecx, [esp + 0x30]
push ecx
add edi, esi
push edi
push ebp
push esi
mov ecx, ebx
mov dword [esp + 0x40], 0x74726956
mov dword [esp + 0x44], 0x416c6175
mov dword [esp + 0x48], 0x636f6c6c
mov byte [esp + 0x4c], 0
call fcn.00351f90
lea edx, [esp + 0x30]
push edx
push edi
push ebp
push esi
mov ecx, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], 0x74726956
mov dword [esp + 0x44], 0x466c6175
mov dword [esp + 0x48], 0x656572
call fcn.00351f90
push 0x1200
mov dword [esp + 0x30], eax
mov eax, dword [0x355238]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], edi
mov ecx, edi
sub eax, edi
mov esi, 0x1200
jmp 0x3516e0
mov dl, byte [eax + ecx]
mov byte [ecx], dl
inc ecx
dec esi
jne 0x3516e0
mov edx, 0x900
lea ecx, [edi + 0x900]
call fcn.003515a0
mov edx, 0x900
mov ecx, edi
call fcn.003515a0
lea eax, [edi + 0x900]
mov esi, 0x900
mov dl, byte [eax]
mov cl, byte [eax - 0x900]
mov byte [eax - 0x900], dl
mov byte [eax], cl
inc eax
dec esi
jne 0x351710
mov esi, dword [edi + 0x3c]
add esi, edi
lea eax, [esi + 0x18]
push 0x40
mov dword [esp + 0x48], eax
mov eax, dword [eax + 0x38]
push 0x3000
push eax
push 0
call dword [esp + 0x30]
mov ebp, eax
test ebp, ebp
je 0x3519d3
sub edi, ebp
mov ecx, 0x10
mov edx, dword [edi + eax]
mov dword [eax], edx
add eax, 4
dec ecx
jne 0x351752
movzx edx, word [esi + 0x14]
mov eax, dword [ebp + 0x3c]
mov edi, edx
shr edi, 2
add eax, ebp
test edi, edi
je 0x351792
mov ebx, esi
sub ebx, eax
mov ecx, eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], edi
lea ecx, [ecx]
mov ebx, dword [esp + 0x20]
mov ebx, dword [ebx + ecx]
mov dword [ecx], ebx
add ecx, 4
dec dword [esp + 0x18]
jne 0x351780
add edi, edi
add edi, edi
mov dword [esp + 0x20], edi
cmp edi, edx
jae 0x3517b9
lea ecx, [edi + eax]
mov edi, esi
sub edi, eax
sub edx, dword [esp + 0x20]
lea esp, [esp]
mov bl, byte [ecx + edi]
mov byte [ecx], bl
inc ecx
dec edx
jne 0x3517b0
movzx edi, word [esi + 0x14]
movzx esi, word [esi + 6]
movzx ecx, word [eax + 0x14]
add edi, dword [esp + 0x44]
lea ebx, [ecx + eax + 0x18]
test esi, esi
je 0x35189b
mov edx, edi
lea ecx, [edi + 0xc]
lea eax, [ebx + 4]
sub edx, ebx
mov dword [esp + 0x18], esi
mov ebx, dword [ecx - 0xc]
mov dword [eax - 4], ebx
mov ebx, dword [edx + eax]
mov dword [eax], ebx
mov ebx, dword [ecx - 4]
mov dword [eax + 4], ebx
mov ebx, dword [ecx]
mov dword [eax + 8], ebx
mov ebx, dword [ecx + 4]
mov dword [eax + 0xc], ebx
mov ebx, dword [ecx + 8]
mov dword [eax + 0x10], ebx
mov ebx, dword [ecx + 0xc]
mov dword [eax + 0x14], ebx
mov ebx, dword [ecx + 0x10]
mov dword [eax + 0x18], ebx
mov ebx, dword [ecx + 0x14]
mov dword [eax + 0x1c], ebx
mov ebx, dword [ecx + 0x18]
mov dword [eax + 0x20], ebx
add ecx, 0x28
add eax, 0x28
dec dword [esp + 0x18]
jne 0x3517e3
test esi, esi
je 0x35189b
add edi, 0x14
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
mov esi, dword [edi - 4]
mov ebx, dword [edi]
mov eax, dword [edi - 8]
add ebx, dword [esp + 0x24]
mov edx, esi
shr edx, 2
add eax, ebp
test edx, edx
je 0x351876
mov edi, ebx
sub edi, eax
mov ecx, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], edx
lea ecx, [ecx]
mov edi, dword [esp + 0x28]
mov edi, dword [edi + ecx]
mov dword [ecx], edi
add ecx, 4
dec dword [esp + 0x18]
jne 0x351860
mov edi, dword [esp + 0x1c]
add edx, edx
add edx, edx
cmp edx, esi
jae 0x35188e
sub ebx, eax
lea ecx, [edx + eax]
sub esi, edx
mov dl, byte [ecx + ebx]
mov byte [ecx], dl
inc ecx
dec esi
jne 0x351885
add edi, 0x28
dec dword [esp + 0x20]
mov dword [esp + 0x1c], edi
jne 0x351838
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0x68]
test ecx, ecx
je 0x351936
cmp dword [eax + 0x6c], 0
je 0x351936
lea edi, [ecx + ebp]
mov eax, dword [edi]
mov dword [esp + 0x1c], edi
test eax, eax
jne 0x3518c8
mov eax, dword [edi + 0x10]
test eax, eax
je 0x351932
mov eax, dword [edi + 0xc]
add eax, ebp
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [edi]
mov ebx, dword [edi + 0x10]
add esi, ebp
mov ecx, eax
mov eax, dword [esi]
add ebx, ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], 0
test eax, eax
je 0x35192d
xor edi, edi
jmp 0x3518f9
mov ecx, dword [esp + 0x28]
test eax, eax
jns 0x351903
movzx eax, ax
push eax
jmp 0x351908
lea edx, [eax + ebp + 2]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + ebx], eax
mov eax, dword [esp + 0x20]
inc eax
lea edi, [eax*4]
mov dword [esp + 0x20], eax
mov eax, dword [edi + esi]
test eax, eax
jne 0x3518f5
mov edi, dword [esp + 0x1c]
add edi, 0x14
jmp 0x3518b7
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 0x88]
test edx, edx
je 0x3519ad
mov esi, dword [eax + 0x8c]
test esi, esi
je 0x3519ad
lea ecx, [edx + ebp]
mov ebx, ecx
sub ebx, edx
mov edi, ebp
sub edi, dword [eax + 0x1c]
sub ebx, ebp
cmp ebx, esi
jae 0x3519ad
lea esp, [esp]
mov esi, dword [ecx + 4]
sub esi, 8
shr esi, 1
mov edx, 0
je 0x351998
nop
movzx eax, word [ecx + edx*2 + 8]
mov ebx, eax
and ebx, 0xf000
cmp ebx, 0x3000
jne 0x35198f
and eax, 0xfff
add eax, dword [ecx]
add dword [eax + ebp], edi
inc edx
cmp edx, esi
jb 0x351970
mov eax, dword [esp + 0x44]
add ecx, dword [ecx + 4]
mov edx, ecx
sub edx, ebp
sub edx, dword [eax + 0x88]
cmp edx, dword [eax + 0x8c]
jb 0x351960
mov ecx, dword [eax + 0x10]
mov eax, dword [esp + 0x14]
mov dword [eax + 8], ebp
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
add ecx, ebp
mov dword [eax + 0x18], ebp
mov dword [eax + 0x1c], ecx
call ecx
push 0x8000
push 0
push ebp
call dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4