Function at 0x436700
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ecx, 0x93
push edi
push esi
push ebx
xor ebx, ebx
mov eax, ebx
sub esp, 0x41c
lea esi, [esp + 0x1c4]
mov ebp, dword [esp + 0x434]
lea edx, [esp + 0x80]
mov dword [esp + 0x80], 1
mov edi, esi
rep stosd dword es:[edi], eax
lea edi, [esp + 0x84]
mov ecx, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 0x54]
mov ecx, ebp
mov dword [esp], eax
lea eax, [esp + 0x68]
call fcn.0042f840
test eax, eax
je 0x436d50
lea eax, [esp + 0x54]
movzx edx, word [esp + 0x6c]
mov ecx, ebp
mov dword [esp], eax
lea eax, [esp + 0xc4]
call fcn.004292e0
mov dword [esp + 0x34], eax
test eax, eax
je 0x436d50
cmp dword [esp + 0x34], 0xff
ja 0x436d60
mov eax, ebx
mov ecx, 0x13
mov edi, esi
mov dword [esp + 0x210], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x68]
mov dword [esp + 8], ebp
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 0x204], 0x1b4
mov dword [esp + 0x208], 0xc
mov dword [esp + 0x214], 0
mov dword [esp + 0x218], 0
mov byte [esp + 0x212], pe_nt_image_headers32
call fcn.00430590
mov dword [esp + 0x54], eax
test eax, eax
jne 0x436ce5
mov dword [esp + 0x1c], str.hints.local.
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x482c5e
mov dword [esp + 4], 4
mov dword [esp], esi
call fcn.00430290
mov dword [esp + 0x54], eax
test eax, eax
jne 0x436ce5
lea eax, [esp + 0xc4]
mov edx, dword [0x483c40]
mov dword [esp + 0x5c], eax
mov eax, dword [0x483c3c]
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], eax
lea esi, [esi]
nop
call dword [0x478560]
mov dword [esp + 0x64], eax
test eax, eax
je 0x436870
mov edi, eax
mov eax, dword [esp + 0x430]
mov ebx, dword [eax + 4]
test ebx, ebx
jne 0x4368a1
jmp 0x436c50
mov ebx, dword [ebx + 0x984]
test ebx, ebx
je 0x436a41
lea eax, [esp + 0xc4]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
jne 0x436893
mov eax, dword [ebx + 0x980]
mov dword [esp + 0x44], eax
cmp eax, 1
jbe 0x436da0
mov eax, edi
add ebx, 0x208
mov dword [esp + 0x4c], edi
mov ebp, 1
movzx eax, ah
mov dword [esp + 0x28], 0
mov dword [esp + 0x48], eax
mov eax, edi
shr eax, 0x10
mov byte [esp + 0x3b], al
mov eax, edi
shr eax, 0x18
mov dword [esp + 0x3c], eax
mov eax, dword [ebx - 0x88]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], eax
lea esi, [esi]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [esp + 0x30], eax
sub eax, dword [esp + 0x24]
jne 0x436a0a
mov edi, dword [esp + 0x4c]
movzx ebx, byte [esp + 0x48]
mov eax, edi
xor eax, ebp
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, edx
xor edx, ebx
movzx edx, dl
xor eax, 0x63
movzx ecx, byte [edx + str.cw]
xor ecx, eax
movzx eax, al
mov edx, ecx
xor dl, byte [esp + 0x3b]
xor cl, byte [eax + str.cw]
movzx edx, dl
movzx eax, cl
xor cl, byte [edx + str.cw]
mov edx, ecx
xor cl, byte [eax + str.cw]
xor dl, byte [esp + 0x3c]
movzx eax, cl
movzx edx, dl
mov dword [esp + 0x40], eax
mov eax, edi
xor al, byte [esp + 0x28]
movzx eax, al
xor cl, byte [edx + str.cw]
mov edi, dword [esp + 0x40]
movzx eax, byte [eax + str.cw]
mov edx, eax
xor eax, ebx
movzx eax, al
xor edx, 0x63
movzx ebx, byte [eax + str.cw]
xor ebx, edx
movzx edx, dl
mov eax, ebx
xor al, byte [esp + 0x3b]
xor bl, byte [edx + str.cw]
movzx eax, al
movzx edx, bl
xor bl, byte [eax + str.cw]
mov eax, ebx
xor al, byte [esp + 0x3c]
xor bl, byte [edx + str.cw]
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ecx
xor cl, byte [edi + str.cw]
movzx ecx, cl
shl eax, 8
xor edx, ebx
movzx ebx, bl
or eax, ecx
mov ecx, edx
xor dl, byte [ebx + str.cw]
movzx eax, ax
shl ecx, 8
movzx edx, dl
or ecx, edx
movzx ecx, cx
sub eax, ecx
test eax, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
cmovns ecx, dword [esp + 0x24]
cmovs eax, ebp
add ebp, 1
add dword [esp + 0x2c], 0x88
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
cmp ebp, dword [esp + 0x44]
jne 0x436910
mov eax, dword [esp + 0x28]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x430]
mov ebp, dword [eax + 4]
test ebp, ebp
jne 0x436a62
jmp 0x436c50
mov ebp, dword [ebp + 0x984]
test ebp, ebp
je 0x436c50
lea eax, [esp + 0xc4]
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
jne 0x436a54
mov eax, dword [esp + 0x60]
cmp dword [ebp + 0x980], eax
jbe 0x436c50
imul edx, eax, 0x88
mov ecx, ebp
lea ebx, [ebp + edx + 0x100]
lea edx, [esp + 0x5c]
call fcn.00429fd0
movzx edi, word [ebx]
mov dword [esp + 0x60], eax
cmp di, 0x17
je 0x436d30
cmp di, 2
je 0x436d10
mov dword [esp + 0x28], 1
mov edi, 1
mov dword [esp + 0x24], 0
mov ebx, dword [esp + 0x208]
mov ebp, dword [esp + 0x204]
lea eax, [esp + 0x58]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
sub ebp, ebx
lea eax, [esi + ebx + 0x4c]
mov dword [esp + 0xc], 0xc
mov dword [esp + 8], str.hints.local.
mov dword [esp + 4], ebp
mov dword [esp], eax
mov dword [esp + 0x58], 0x9b918cc1
call fcn.0042d490
test eax, eax
je 0x436d00
cmp ebp, eax
jb 0x436ce0
movzx edx, bx
mov dword [esp], esi
mov dword [esp + 4], edx
add dword [esp + 0x208], eax
call fcn.0042ce00
mov edx, dword [esp + 0x204]
mov eax, dword [esp + 0x208]
mov ecx, edx
sub ecx, eax
cmp ecx, 3
jbe 0x436ce0
mov ecx, edi
mov byte [esp + eax + 0x210], 0
mov byte [esp + eax + 0x211], cl
lea ecx, [eax + 4]
sub edx, ecx
mov byte [esp + eax + 0x212], 0
mov byte [esp + eax + 0x213], 1
cmp edx, 5
jbe 0x436ce0
lea edx, [eax + 8]
mov byte [esp + eax + 0x214], 0
mov byte [esp + eax + 0x215], 0
mov byte [esp + eax + 0x216], 0
mov dword [esp + 0x208], edx
mov byte [esp + eax + 0x217], 0
mov eax, dword [esp + 0x28]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call fcn.004300e0
test eax, eax
jne 0x436ce5
cmp word [esp + 0x1f0], 0
jne 0x436bf1
mov edx, esi
lea eax, [esp + 0x1e4]
call fcn.0042f900
test eax, eax
jne 0x436ce5
movzx eax, word [esp + 0x21a]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ntohs]
add eax, 1
sub esp, 4
movzx eax, ax
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_htons]
sub esp, 4
mov word [esp + 0x21a], ax
mov eax, dword [esp + 0x208]
mov dword [esp + 0x54], 0
mov word [esp + 0x1f2], ax
mov eax, dword [esp + 0x430]
mov ebp, dword [eax + 4]
test ebp, ebp
jne 0x436a62
lea esi, [esi]
nop
mov eax, dword [esp + 0x34]
mov dword [esp + 4], 0x2e
sub eax, 1
mov dword [esp + 8], eax
lea eax, [esp + 0xc5]
mov dword [esp], eax
call sub.msvcrt.dll_memchr
test eax, eax
je 0x436db0
mov edx, eax
lea edi, [esp + 0xc4]
mov ebx, dword [esp + 0x34]
sub edx, edi
sub ebx, edx
cmp ebx, 1
jbe 0x436d70
lea edi, [ebx - 1]
mov edx, 0x100
cmp edi, 0x100
mov dword [esp + 0x34], edi
cmovbe edx, edi
add eax, 1
mov dword [esp + 4], eax
lea eax, [esp + 0xc4]
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.msvcrt.dll_memmove
cmp edi, 0xff
mov eax, 0xff
cmovbe eax, edi
mov byte [esp + eax + 0xc4], 0
jmp 0x436849
mov eax, 0x9b918cc0
mov edx, dword [esp + 0x438]
xor ebx, ebx
mov dword [edx], eax
add esp, 0x41c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x58]
test eax, eax
je 0x436b3c
jmp 0x436ce5
lea eax, [ebx + 4]
mov dword [esp + 0x28], 1
mov edi, 1
mov dword [esp + 0x24], eax
jmp 0x436ad2
lea eax, [ebx + 8]
mov dword [esp + 0x28], 0x1c
mov edi, 0x1c
mov dword [esp + 0x24], eax
jmp 0x436ad2
mov eax, dword [esp + 0x54]
jmp 0x436ce5
mov eax, 0x9b918cc1
jmp 0x436ce5
mov dword [esp + 4], eax
lea eax, [esp + 0xc4]
mov dword [esp + 8], ebx
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov byte [esp + ebx + 0xc4], 0
test ebx, ebx
je 0x436db0
mov dword [esp + 0x34], 1
jmp 0x436849
mov dword [esp + 0x28], 0
jmp 0x436a39
lea eax, [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x208]
mov dword [esp], eax
call fcn.0042cc60
mov ebx, eax
test eax, eax
je 0x436d50
mov eax, dword [eax + 0x40]
cmp dword [esp + 0x208], eax
lea edx, [ebx + 0x4c]
lea ecx, [esp + 0x210]
cmovbe eax, dword [esp + 0x208]
mov dword [ebx + 0x44], eax
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call sub.msvcrt.dll_memcpy
jmp 0x436cf0