Function at 0x10037030
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x48
mov eax, dword [0x101366b4]
xor eax, esp
mov dword [esp + 0x44], eax
xor eax, eax
cmp eax, 0x40
jae 0x10037294
mov byte [esp + eax + 4], 0
inc eax
cmp eax, 0x40
jb 0x10037049
push ebx
push ebp
mov ebp, dword [esp + 0x54]
push esi
push edi
xor edi, edi
lea esi, [esp + 0x14]
mov bl, byte [edi + ebp]
xor eax, eax
mov cl, 7
mov dl, bl
sub cl, al
shr dl, cl
and dl, 1
mov byte [esi + eax], dl
inc eax
cmp eax, 7
jb 0x10037067
inc edi
add esi, 8
cmp edi, 8
jb 0x10037062
xor ecx, ecx
mov edx, 0x10003bfa
mov esi, 0x101388ba
mov edi, 0x10003c16
mov ebx, 0x101388d6
lea ebx, [ebx]
movzx eax, byte [ecx + 0x10003bf8]
movzx eax, byte [esp + eax + 0x14]
mov byte [ecx + 0x101388b8], al
movzx eax, byte [ecx + 0x10003c14]
movzx eax, byte [esp + eax + 0x14]
mov byte [ecx + 0x101388d4], al
movzx eax, byte [edx + ecx - 1]
movzx eax, byte [esp + eax + 0x14]
mov byte [esi + ecx - 1], al
movzx eax, byte [edi + ecx - 1]
movzx eax, byte [esp + eax + 0x14]
mov byte [ebx + ecx - 1], al
movzx eax, byte [edx + ecx]
movzx eax, byte [esp + eax + 0x14]
mov byte [esi + ecx], al
movzx eax, byte [edi + ecx]
movzx eax, byte [esp + eax + 0x14]
mov byte [ebx + ecx], al
movzx eax, byte [edx + ecx + 1]
movzx eax, byte [esp + eax + 0x14]
mov byte [esi + ecx + 1], al
movzx eax, byte [edi + ecx + 1]
movzx eax, byte [esp + eax + 0x14]
mov byte [ebx + ecx + 1], al
add ecx, 4
cmp ecx, 0x1c
jb 0x100370a0
mov esi, 0x10
xor ebp, ebp
mov edi, 0x10003c59
mov dword [esp + 0x10], esi
mov edx, 0x10138908
movzx ebx, byte [ebp + 0x10003c30]
test ebx, ebx
je 0x10037186
lea esp, [esp]
movzx eax, byte [0x101388b8]
mov ecx, 0x1b
mov esi, 0x101388b9
mov edi, 0x101388b8
rep movsb byte es:[edi], byte [esi]
mov byte [0x101388d3], al
mov ecx, 0x1b
movzx eax, byte [0x101388d4]
mov esi, 0x101388d5
mov edi, 0x101388d4
rep movsb byte es:[edi], byte [esi]
mov byte [0x101388ef], al
dec ebx
jne 0x10037140
mov esi, dword [esp + 0x10]
mov edi, 0x10003c59
xor ecx, ecx
jmp 0x10037190
movzx eax, byte [ecx + 0x10003c40]
movzx eax, byte [eax + 0x101388b8]
mov byte [edx + ecx - 0x18], al
movzx eax, byte [ecx + 0x10003c58]
movzx eax, byte [eax + 0x101388d4]
mov byte [edx + ecx], al
movzx eax, byte [ecx + 0x10003c41]
movzx eax, byte [eax + 0x101388b8]
mov byte [edx + ecx - 0x17], al
movzx eax, byte [edi + ecx]
movzx eax, byte [eax + 0x101388d4]
mov byte [edx + ecx + 1], al
movzx eax, byte [ecx + 0x10003c42]
movzx eax, byte [eax + 0x101388b8]
mov byte [edx + ecx - 0x16], al
movzx eax, byte [ecx + 0x10003c5a]
movzx eax, byte [eax + 0x101388d4]
mov byte [edx + ecx + 2], al
movzx eax, byte [ecx + 0x10003c43]
movzx eax, byte [eax + 0x101388b8]
mov byte [edx + ecx - 0x15], al
movzx eax, byte [ecx + 0x10003c5b]
movzx eax, byte [eax + 0x101388d4]
mov byte [edx + ecx + 3], al
movzx eax, byte [ecx + 0x10003c44]
movzx eax, byte [eax + 0x101388b8]
mov byte [edx + ecx - 0x14], al
movzx eax, byte [ecx + 0x10003c5c]
movzx eax, byte [eax + 0x101388d4]
mov byte [edx + ecx + 4], al
movzx eax, byte [ecx + 0x10003c45]
movzx eax, byte [eax + 0x101388b8]
mov byte [edx + ecx - 0x13], al
movzx eax, byte [ecx + 0x10003c5d]
movzx eax, byte [eax + 0x101388d4]
mov byte [edx + ecx + 5], al
add ecx, 6
cmp ecx, 0x18
jb 0x10037190
inc ebp
add edx, 0x30
dec esi
mov dword [esp + 0x10], esi
jne 0x10037131
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10117cfd
add esp, 0x48
ret 4
call fcn.10117992
int3