Function at 0x10037021
Capabilities:
Packed with generic packer

Disassembly:
xor ecx, ecx
pop esi
xchg dword [esi], ecx
jecxz 0x1003701c
sub esi, ecx
mov ebx, esi
lodsd eax, dword [esi]
sub ebx, eax
lodsd eax, dword [esi]
add eax, ebx
push eax
xchg edi, eax
lodsd eax, dword [esi]
xchg ecx, eax
rep movsd dword es:[edi], dword [esi]
pop esi
lodsd eax, dword [esi]
push esi
xchg ecx, eax
add dword [esi], ebx
lodsd eax, dword [esi]
loop 0x1003703c
lodsd eax, dword [esi]
lea ebp, [esi + 0x10]
add dword [ebp], ebx
lea edi, [ebp + 0x1c]
mov ch, 0x1c
rep stosd dword es:[edi], eax
pop esi
lodsd eax, dword [esi]
push ebx
push eax
push ecx
xchg edi, eax
pop eax
lea edx, [ebp + eax*4 + 0x5c]
call dword [esi]
jb 0x100370b5
sub al, 3
jae 0x10037064
mov al, 0
cmp al, 7
jb 0x1003706a
sub al, 3
push eax
movzx ebx, byte [edi - 1]
shl ebx, 3
mov bl, 0
lea ebx, [ebx + ebx*2]
lea ebx, [ebp + ebx*4 + 0x100c]
mov al, 1
jecxz 0x100370ab
mov edx, edi
sub edx, dword [ebp + 0xc]
mov ch, byte [edx]
xor edx, edx
test cl, ch
setne dh
push edx
inc dh
mov dl, al
lea edx, [ebx + edx*4]
call dword [esi]
pop edx
lahf
adc al, al
shr cl, 1
je 0x100370b0
sahf
sbb dh, dl
je 0x1003708b
mov ah, 0
xor ecx, ecx
mov ch, 1
call dword [esi + 8]
xor ecx, ecx
jmp dword [esi + GetProcAddress]
mov cl, 0x30
mov ebx, dword [ebp + 0xc]
add edx, ecx
call dword [esi]
jae 0x1003710c
add edx, ecx
call dword [esi]
jb 0x100370df
add edx, ecx
call dword [esi]
jb 0x100370f5
cmp al, 7
mov al, 9
jb 0x100370d4
mov al, 0xb
push eax
mov eax, edi
sub eax, dword [ebp + 0xc]
mov al, byte [eax]
jmp dword [esi + 0x18]
add edx, 0x60
call dword [esi]
xchg dword [ebp + 0x10], ebx
jae 0x100370f5
add edx, ecx
call dword [esi]
xchg dword [ebp + 0x14], ebx
jae 0x100370f5
xchg dword [ebp + 0x18], ebx
cmp al, 7
mov al, 8
jb 0x100370fd
mov al, 0xb
push eax
push ebx
mov edx, ebp
add edx, dword [esi + 0x38]
call dword [esi + LoadLibraryA]
pop ebx
xchg ecx, eax
jmp dword [esi + 0x30]
cmp al, 7
mov al, 7
jb 0x10037114
mov al, 0xa
push eax
xchg dword [ebp + 0x10], ebx
xchg dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], ebx
mov edx, ebp
add edx, dword [esi + 0x3c]
call dword [esi + LoadLibraryA]
push 3
pop ecx
push eax
dec eax
cmp eax, ecx
jb 0x10037131
mov eax, ecx
shl eax, 6
mov cl, pe_nt_image_headers32
lea ebx, [ebp + eax*4 + 0x37c]
call dword [esi + 4]
cmp al, 4
mov ebx, eax
jb 0x100371a5
xor ebx, ebx
shr eax, 1
adc ebx, ebx
dec eax
inc ebx
xchg ecx, eax
inc ebx
shl ebx, cl
cmp cl, 5
lea edx, [ebp + ebx*4 + 0x17c]
jbe 0x1003718c
sub cl, 4
xor eax, eax
mov edx, dword [ebp]
shr dword [ebp + 8], 1
mov edx, dword [edx]
bswap edx
sub edx, dword [ebp + 4]
add eax, eax
cmp edx, dword [ebp + 8]
jb 0x1003717e
mov edx, dword [ebp + 8]
inc eax
add dword [ebp + 4], edx
call dword [esi + 0x10]
loop 0x10037163
mov cl, 4
shl eax, cl
add ebx, eax
lea edx, [ebp + 0x1c]
xor eax, eax
push ebx
inc eax
push ecx
shl eax, cl
mov ebx, edx
xchg ecx, eax
call dword [esi + 4]
xor edx, edx
pop ecx
shr eax, 1
adc edx, edx
loop 0x1003719c
pop ebx
add ebx, edx
inc ebx
pop ecx
mov dword [ebp + 0xc], ebx
push esi
mov esi, edi
sub esi, ebx
rep movsb byte es:[edi], byte [esi]
lodsb al, byte [esi]
pop esi
mov cl, 0x80
stosb byte es:[edi], al
cmp edi, dword [esi + 0x24]
jae 0x100371be
jmp dword [esi + 0x20]
pop eax
mov ecx, dword [esi + 0x40]
pop edi
pop edx
push edi
jecxz 0x100371e2
mov al, byte [edi]
inc edi
add al, 0x18
cmp al, 2
jae 0x100371c7
mov eax, dword [edi]
cmp al, 5
jne 0x100371c7
mov al, 0
bswap eax
add eax, dword [esi + 0x14]
sub eax, edi
stosd dword es:[edi], eax
loop 0x100371c7
mov ebx, dword [esi + 0x28]
push esi
push edx
mov esi, dword [esi + 0x2c]
inc esi
lodsd eax, dword [esi]
test eax, eax
pop edx
je 0x10037213
add eax, edx
push edx
push esi
xchg edi, eax
call dword [ebx - 4]
xchg ebp, eax
lodsb al, byte [esi]
test al, al
jne 0x100371fa
cmp byte [esi], al
je 0x100371ea
mov eax, esi
jns 0x1003720c
inc esi
xor eax, eax
lodsw ax, word [esi]
push eax
push ebp
call dword [ebx]
stosd dword es:[edi], eax
jmp 0x100371fa
pop ecx
pop edi
mov ecx, dword [ecx + 0x44]
jecxz 0x10037227
xor eax, eax
lodsb al, byte [esi]
cmp al, 4
jb 0x1003722d
add edi, eax
add dword [edi], edx
loop 0x1003721a
sub al, 1
jb 0x10037239
je 0x1003723d
shl eax, 8
lodsb al, byte [esi]
jmp 0x10037221
lodsw ax, word [esi]
jmp 0x10037221
lodsd eax, dword [esi]
jmp 0x10037221