Function at 0x408512
Capabilities:
Encrypt data using speck
Query environment variable
Terminate process

Disassembly:
push 0x416acb
push 0x416b85
jmp fcn.004019f4
push 0x416cd3
jmp fcn.004019f4
mov edi, 0x417501
mov esi, 0x416ce6
call fcn.00401933
push 0x417501
cmp dword [0x417224], 0
je fcn.004019f4
mov esi, dword [0x417224]
mov esi, dword [esi + 0x18]
or esi, esi
je fcn.004019f4
mov byte [edi - 1], 0x20
call fcn.0040193a
jmp fcn.004019f4
mov edi, dword [0x4171a0]
call fcn.00401e21
mov esi, dword [0x417184]
call fcn.00401933
cmp edi, dword [0x417230]
jae 0x4017ad
mov eax, edi
sub eax, ebx
mov dword [ebx - 0x34], eax
mov esi, dword [0x417188]
call fcn.00401933
cmp edi, dword [0x417230]
jae 0x4017ad
mov edx, dword [0x417284]
mov ebp, dword [0x417198]
mov dword [0x41728c], 0
cmp byte [0x4172f6], 4
je 0x401a97
cmp byte [0x4172f6], 5
jne 0x401b55
bt dword [0x41727c], 0
jb 0x401b55
cmp edx, ebp
je 0x401b55
mov al, byte [edx]
test al, al
je 0x401ab5
cmp al, 0x80
je 0x401ab5
add edx, 0xc
cmp al, 0xc0
jb 0x401a97
add edx, 4
jmp 0x401a97
mov esi, edi
sub esi, ebx
xchg dword [edx + 4], esi
test al, al
je 0x401ae3
or dword [edx + 4], 0x80000000
add edx, 0xc
mov ecx, dword [esi]
add esi, 4
rep movsb byte es:[edi], byte [esi]
mov byte [edi], 0
inc edi
cmp edi, dword [0x417230]
jae 0x4017ad
jmp 0x401a97
mov ecx, dword [0x41728c]
mov eax, ecx
inc eax
mov dword [0x41728c], eax
xchg dword [edx + 4], eax
shl ecx, 2
add ecx, dword [0x417198]
mov dword [ecx], eax
add edx, 0x20
test esi, esi
je 0x401b38
cmp byte [0x4172f6], 5
jne 0x401aca
bt dword [0x41727c], 0
jb 0x401aca
mov esi, dword [esi]
add esi, dword [0x4172ac]
lodsb al, byte [esi]
cmp edi, dword [0x417230]
jae 0x4017ad
stosb byte es:[edi], al
test al, al
jne 0x401b21
jmp 0x401a97
mov eax, 0x616c662e
stosd dword es:[edi], eax
mov ax, 0x74
stosw word es:[edi], ax
cmp edi, dword [0x417230]
jae 0x4017ad
jmp 0x401a97
mov edx, dword [0x417230]
mov ebp, dword [0x417174]
sub ebp, dword [0x4171f0]
add ebp, edx
cmp edx, ebp
je 0x401c04
mov eax, dword [edx + 0x18]
test eax, eax
je 0x401bbb
cmp eax, dword [0x417170]
jb 0x401b94
cmp eax, dword [0x41719c]
ja 0x401b94
sub eax, dword [0x417170]
dec eax
mov dword [edx + 0x18], eax
jmp 0x401bbb
mov esi, eax
mov eax, edi
sub eax, ebx
or eax, 0x80000000
mov dword [edx + 0x18], eax
movzx ecx, byte [esi - 1]
lea eax, [edi + ecx + 1]
cmp edi, dword [0x417230]
jae 0x4017ad
rep movsb byte es:[edi], byte [esi]
xor al, al
stosb byte es:[edi], al
mov eax, dword [edx + 0x1c]
test eax, eax
je 0x401bcb
sub eax, dword [0x417170]
mov dword [edx + 0x1c], eax
mov eax, dword [edx + 0x14]
test eax, eax
je 0x401bdf
cmp eax, dword [0x417284]
mov eax, dword [eax + 4]
jae 0x401bdf
xor eax, eax
mov dword [edx + 0x14], eax
mov ax, word [0x417192]
cmp ax, word [edx + 0x10]
je 0x401bf2
and byte [edx + 8], 0xfe
cmp ax, word [edx + 0x12]
je 0x401bfc
and byte [edx + 8], 0xf7
add edx, 0x20
jmp 0x401b69
mov eax, edi
sub eax, ebx
mov dword [ebx - 0x2c], eax
add eax, 0x40
mov dword [ebx - 0x28], eax
mov ecx, dword [0x417174]
sub ecx, dword [0x4171f0]
mov dword [ebx - 0x24], ecx
add eax, ecx
mov dword [ebx - 0x20], eax
mov ecx, dword [0x41719c]
sub ecx, dword [0x417170]
mov dword [ebx - 0x1c], ecx
add eax, ecx
mov dword [ebx - 0x18], eax
mov eax, dword [0x41728c]
shl eax, 2
mov dword [ebx - 0xc], eax
call fcn.00401e42
mov esi, dword [0x4171f0]
mov ebp, edi
cmp esi, dword [0x417230]
je 0x401cec
mov eax, dword [esi - 4]
mov ecx, dword [esi - 8]
sub esi, 8
sub esi, ecx
cmp eax, 1
je 0x401c78
cmp eax, 2
jne 0x401c51
add dword [ebx - 4], 8
jmp 0x401c51
mov eax, dword [esi + 4]
sub eax, dword [0x4171a0]
add eax, dword [0x4171b0]
cmp byte [esi + 0x1a], 0
je 0x401c8f
xor eax, eax
stosd dword es:[edi], eax
mov eax, dword [esi]
sub eax, dword [0x417170]
stosd dword es:[edi], eax
mov eax, dword [esi + 4]
xor edx, edx
xor cl, cl
sub eax, dword [esi + 8]
sbb edx, dword [esi + 0xc]
sbb cl, byte [esi + 0x1b]
stosd dword es:[edi], eax
mov eax, edx
stosd dword es:[edi], eax
mov eax, dword [esi + 0x10]
stosd dword es:[edi], eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x401cc5
cmp eax, dword [0x417284]
mov eax, dword [eax + 4]
jae 0x401cc5
xor eax, eax
stosd dword es:[edi], eax
mov eax, dword [esi + 0x18]
and eax, 0x1ffff
stosd dword es:[edi], eax
mov byte [edi - 1], cl
cmp edi, dword [0x417230]
jae 0x4017ad
mov eax, edi
sub eax, 0x1c
sub eax, ebp
mov dword [esi], eax
jmp 0x401c51
mov edx, edi
mov eax, dword [0x41723c]
sub eax, dword [0x4171a0]
add eax, dword [0x4171b0]
stosd dword es:[edi], eax
mov ecx, edi
sub ecx, ebx
sub ecx, dword [ebx - 0x2c]
mov dword [ebx - 0x14], ecx
add ecx, dword [ebx - 0x18]
mov dword [ebx - 0x10], ecx
add ecx, dword [ebx - 0xc]
mov dword [ebx - 8], ecx
sub edx, 0x1c
cmp edx, ebp
jb 0x401d37
test byte [edx + 0x1a], 1
jne 0x401d16
cmp eax, dword [edx]
jb 0x401d2b
mov eax, dword [edx]
jmp 0x401d16
mov dword [edx], 0
or byte [edx + 0x1a], 2
jmp 0x401d16
mov edx, dword [0x41718c]
call fcn.004013a4
jb 0x4017cb
mov edx, dword [0x4171a0]
mov ecx, dword [edx + 0x14]
add ecx, 0x40
call fcn.004013c3
jb 0x4017cb
mov edx, dword [0x417230]
mov ecx, dword [0x417174]
sub ecx, dword [0x4171f0]
call fcn.004013c3
jb 0x4017cb
mov edx, dword [0x417170]
mov ecx, dword [0x41719c]
sub ecx, edx
call fcn.004013c3
jb 0x4017cb
mov edx, ebp
mov ecx, edi
sub ecx, edx
call fcn.004013c3
jb 0x4017cb
mov edx, dword [0x417198]
mov ecx, dword [0x41728c]
shl ecx, 2
call fcn.004013c3
jb 0x4017cb
mov esi, dword [0x4171f0]
mov edi, dword [0x417170]
cmp esi, dword [0x417230]
je 0x401e06
mov eax, dword [esi - 4]
mov ecx, dword [esi - 8]
sub esi, 8
sub esi, ecx
cmp eax, 2
je 0x401ded
cmp eax, 1
jne 0x401dcc
mov edx, dword [esi]
jmp 0x401dcc
mov eax, dword [esi]
sub eax, dword [0x4171f0]
stosd dword es:[edi], eax
mov eax, edx
stosd dword es:[edi], eax
cmp edi, dword [0x417230]
jb 0x401dcc
jmp 0x4017ad
mov edx, dword [0x417170]
mov ecx, edi
sub ecx, edx
call fcn.004013c3
jb 0x4017cb
call fcn.004013f9
ret
mov dword [0x41723c], edi
cmp dword [0x417188], 0
jne 0x408659
mov esi, dword [0x417184]
mov edi, dword [0x417198]
lodsb al, byte [esi]
cmp edi, dword [0x417234]
jae 0x4017ad
stosb byte es:[edi], al
or al, al
jne 0x408531
dec edi
mov eax, edi
dec eax
cmp eax, dword [0x417198]
jb 0x408560
cmp byte [eax], 0x5c
je 0x408560
cmp byte [eax], 0x2f
je 0x408560
cmp byte [eax], 0x2e
jne 0x408546
mov edi, eax
lea eax, [edi + 9]
cmp eax, dword [0x417234]
jae 0x4017ad
cmp dword [0x4172d4], 0
jne 0x408626
mov al, byte [0x4172f6]
cmp al, 2
je 0x4085f6
jb 0x4085c6
cmp al, 4
je 0x4085dc
cmp al, 5
je 0x4085e3
cmp al, 3
jne 0x4085f2
cmp word [0x41729e], 1
je 0x4085b8
cmp word [0x41729e], 0xa
jae 0x4085bf
bt dword [0x41727c], 8
jae 0x4085f6
mov eax, 0x6c6c642e
jmp 0x4085fb
mov eax, 0x7379732e
jmp 0x4085fb
mov eax, 0x6966652e
jmp 0x4085fb
mov eax, 0x6e69622e
bt dword [0x41727c], 0
jae 0x4085fb
mov eax, 0x6d6f632e
jmp 0x4085fb
mov eax, 0x6a626f2e
jmp 0x4085fb
mov eax, 0x6f2e
bt dword [0x41727c], 0
jae 0x4085fb
xor eax, eax
jmp 0x4085fb
mov eax, 0x6578652e
xchg dword [edi], eax
scasd eax, dword es:[edi]
mov byte [edi], 0
scasb al, byte es:[edi]
mov esi, edi
stosd dword es:[edi], eax
sub edi, 9
xor eax, eax
mov ebx, 0x417301
mov al, byte [esi]
or al, al
je 0x40861e
xlatb
cmp al, byte [esi]
je 0x40861d
sub byte [edi], 0x20
inc esi
inc edi
cmp byte [edi], 0
jne 0x40860f
jmp 0x408636
mov al, 0x2e
stosb byte es:[edi], al
mov esi, dword [0x4172d4]
lodsb al, byte [esi]
stosb byte es:[edi], al
test al, al
jne 0x40862f
dec edi
mov esi, edi
lea ecx, [esi + 1]
sub ecx, dword [0x417198]
mov edi, dword [0x417234]
dec edi
std
rep movsb byte es:[edi], byte [esi]
cld
inc edi
mov dword [0x417234], edi
mov dword [0x417188], edi
cmp dword [0x41718c], 0
je 0x4086ae
mov ecx, dword [0x417174]
sub ecx, dword [0x4171f0]
mov edi, dword [0x417230]
sub edi, 8
mov dword [edi], ecx
or dword [edi + 4], 0xffffffff
sub edi, ecx
cmp edi, dword [0x41723c]
jbe 0x4017ad
mov dword [0x417230], edi
mov esi, dword [0x417174]
sub esi, 0x20
cmp esi, dword [0x4171f0]
jb 0x4086ae
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
sub esi, 0x20
jmp 0x408697
mov edi, dword [0x41723c]
cmp byte [0x4172f6], 4
je 0x40a5c2
cmp byte [0x4172f6], 5
jne 0x4086d8
bt dword [0x41727c], 0
jae 0x40acfa
mov eax, edi
sub eax, dword [0x4171a0]
mov dword [0x4171a8], eax
cmp edi, dword [0x417218]
jne 0x4086f3
mov edi, dword [0x417214]
mov dword [0x41723c], edi
sub edi, dword [0x4171a0]
mov dword [0x4171a4], edi
mov dword [0x4171ac], 0
mov edx, dword [0x417188]
call fcn.004013a4
jb 0x4017cb
cmp byte [0x4172f6], 3
jne 0x408742
mov edx, dword [0x4171a0]
mov ecx, dword [0x417290]
sub edx, ecx
add dword [0x4171ac], ecx
call fcn.004013c3
cmp byte [0x4172f6], 2
jne 0x408750
call fcn.00408d83
call fcn.00408768
call fcn.004013f9
cmp dword [0x41718c], 0
jne 0x401a1d
ret
sub edi, dword [0x4171a0]
mov dword [0x4171a4], edi
call fcn.0040a6ac
mov edi, dword [0x417198]
mov ebx, edi
mov ecx, 0xa
imul ecx, dword [0x41728c]
add ecx, 5
lea eax, [edi + ecx*4]
cmp eax, dword [0x417234]
jae 0x4017ad
xor eax, eax
rep stosd dword es:[edi], eax
mov word [ebx], 0x14c
test dword [0x41727c], 8
je 0x40a613
mov word [ebx], 0x8664
mov word [ebx + 0x12], 0x104
bt dword [0x41727c], 0
jae 0x40a627
or byte [ebx + 0x12], 0x80
push ebx
call fcn.004016ac
pop ebx
mov dword [ebx + 4], eax
mov eax, dword [0x41728c]
mov word [ebx + 2], ax
mov esi, dword [0x417284]
xor eax, eax
xor ecx, ecx
cmp esi, dword [0x417198]
je 0x40a717
mov dl, byte [esi]
or dl, dl
je 0x40a665
cmp dl, 0xc0
jae 0x40a677
cmp dl, 0x80
jae 0x40a69d
add esi, 0xc
jmp 0x40a644
mov edx, eax
shl edx, 8
mov dword [esi], edx
inc eax
inc ecx
mov word [esi + 0x1e], cx
add esi, 0x20
jmp 0x40a644
mov edx, eax
shl edx, 8
mov dl, byte [esi]
mov dword [esi], edx
mov edx, dword [esi + 8]
add esi, 0x10
inc eax
cmp byte [edx + 0xb], 0
je 0x40a644
mov edx, dword [edx + 0x14]
cmp byte [edx], 0xc0
jae 0x40a644
cmp byte [edx], 0x80
jb 0x40a644
inc eax
jmp 0x40a644
mov edx, eax
shl edx, 8
mov dl, byte [esi]
mov dword [esi], edx
add esi, 0xc
inc eax
jmp 0x40a644
mov dword [ebx + 0xc], eax
mov ebp, edi
sub ebp, ebx
push ebp
lea edi, [ebx + 0x14]
mov esi, dword [0x417284]
cmp esi, dword [0x417198]
je 0x40a84a
mov al, byte [esi]
or al, al
je 0x40a746
add esi, 0xc
cmp al, 0xc0
jb 0x40a728
add esi, 4
jmp 0x40a728
push esi
push edi
mov esi, dword [esi + 4]
or esi, esi
je 0x40a758
mov ecx, dword [esi]
add esi, 4
rep movsb byte es:[edi], byte [esi]
jmp 0x40a761
mov al, 0x2e
stosb byte es:[edi], al
mov eax, 0x74616c66
stosd dword es:[edi], eax
pop edi
pop esi
mov eax, dword [esi + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x24], eax
test al, 0x80
jne 0x40a781
mov eax, dword [esi + 8]
sub eax, dword [0x4171a0]
add eax, ebp
mov dword [edi + 0x14], eax
mov ebx, dword [0x4171a0]
mov edx, dword [0x4171a4]
add ebx, edx
add edx, ebp
xor ecx, ecx
add esi, 0x20
cmp esi, dword [0x417198]
je 0x40a7e1
mov al, byte [esi]
or al, al
je 0x40a7e1
cmp al, 0x80
jb 0x40a7b1
cmp al, 0xc0
jb 0x40a7dc
add esi, 0x10
jmp 0x40a796
lea eax, [ebx + 0xa]
cmp eax, dword [0x417230]
ja 0x4017ad
mov eax, dword [esi + 4]
mov dword [ebx], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
shr eax, 8
mov dword [ebx + 4], eax
movzx ax, byte [esi]
mov word [ebx + 8], ax
add ebx, 0xa
inc ecx
add esi, 0xc
jmp 0x40a796
cmp ecx, 0x10000
jb 0x40a82c
bt dword [0x41727c], 0
jae 0x4017e3
mov word [edi + 0x20], 0xffff
or dword [edi + 0x24], 0x1000000
mov dword [edi + 0x18], edx
push esi
push edi
push ecx
lea esi, [ebx - 1]
add ebx, 0xa
lea edi, [ebx - 1]
imul ecx, ecx, 0xa
std
rep movsb byte es:[edi], byte [esi]
cld
pop ecx
inc esi
inc ecx
mov dword [esi], ecx
xor eax, eax
mov dword [esi + 4], eax
mov word [esi + 8], ax
pop edi
pop esi
jmp 0x40a836
mov word [edi + 0x20], cx
jcxz 0x40a836
mov dword [edi + 0x18], edx
sub ebx, dword [0x4171a0]
mov dword [0x4171a4], ebx
add edi, 0x28
jmp 0x40a728
mov edx, dword [0x417198]
mov ebx, dword [0x4171a4]
add ebp, ebx
mov dword [edx + 8], ebp
add ebx, dword [0x4171a0]
mov edi, ebx
mov ecx, dword [edx + 0xc]
imul ecx, ecx, 9
xor eax, eax
shr ecx, 1
jae 0x40a871
stosw word es:[edi], ax
rep stosd dword es:[edi], eax
mov edx, edi
stosd dword es:[edi], eax
mov esi, dword [0x417284]
cmp esi, dword [0x417198]
je 0x40a9bc
mov al, byte [esi]
cmp al, 0xc0
jae 0x40a8c5
cmp al, 0x80
jae 0x40a8b4
or al, al
je 0x40a89b
add esi, 0xc
jmp 0x40a87c
call fcn.0040aa06
movzx eax, word [esi + 0x1e]
mov word [ebx + 0xc], ax
mov byte [ebx + 0x10], 3
add esi, 0x20
add ebx, 0x12
jmp 0x40a87c
call fcn.0040aa06
mov byte [ebx + 0x10], 2
add esi, 0xc
add ebx, 0x12
jmp 0x40a87c
call fcn.0040aa06
mov eax, dword [esi + 0xc]
mov dword [0x4171b4], eax
mov eax, dword [esi + 8]
test byte [eax + 8], 1
je 0x40a909
mov cx, word [0x417192]
cmp cx, word [eax + 0x10]
jne 0x40a909
mov cl, byte [eax + 0xb]
or cl, cl
je 0x40a9b1
test dword [0x41727c], 8
jne 0x40a913
cmp cl, 2
je 0x40a91c
jmp 0x40198d
mov dword [0x417224], eax
jmp 0x4018f3
cmp cl, 4
jne 0x40198d
mov ecx, dword [eax + 0x14]
cmp byte [ecx], 0x80
je 0x40a974
cmp byte [ecx], 0
jne 0x40198d
mov cx, word [ecx + 0x1e]
mov word [ebx + 0xc], cx
movzx ecx, byte [eax + 9]
shr cl, 1
and cl, 1
neg ecx
cmp ecx, dword [eax + 4]
jne 0x4018e9
xor ecx, dword [eax]
js 0x4018e9
mov eax, dword [eax]
mov dword [ebx + 8], eax
mov al, 2
cmp byte [esi], 0xc0
je 0x40a966
inc al
cmp byte [esi], 0xc1
je 0x40a966
mov al, 0x69
mov byte [ebx + 0x10], al
add esi, 0x10
add ebx, 0x12
jmp 0x40a87c
bt dword [0x41727c], 0
jae 0x40198d
mov ecx, dword [eax]
or ecx, dword [eax + 4]
jne 0x40198d
mov byte [ebx + 0x10], 0x69
mov byte [ebx + 0x11], 1
add ebx, 0x12
mov ecx, dword [eax + 0x14]
mov ecx, dword [ecx]
shr ecx, 8
mov dword [ebx], ecx
mov byte [ebx + 4], 3
add esi, 0x10
add ebx, 0x12
jmp 0x40a87c
mov word [ebx + 0xc], 0xffff
jmp 0x40a935
mov eax, edi
sub eax, edx
mov dword [edx], eax
sub edi, dword [0x4171a0]
mov dword [0x4171a4], edi
mov dword [0x4171ac], 0
mov edx, dword [0x417188]
call fcn.004013a4
jb 0x4017cb
mov edx, dword [0x417198]
pop ecx
add dword [0x4171ac], ecx
call fcn.004013c3
jb 0x4017cb
jmp 0x408750
push edi
call fcn.0040a6ac
mov esi, dword [0x417284]
mov edi, dword [0x417198]
xor eax, eax
mov ecx, 4
rep stosd dword es:[edi], eax
test dword [0x41727c], 8
je 0x40ad28
mov ecx, 2
rep stosd dword es:[edi], eax
mov al, byte [esi]
or al, al
je 0x40ad3a
cmp al, 0xc0
jb 0x40ad35
add esi, 4
add esi, 0xc
jmp 0x40ad28
mov ebx, esi
mov ebp, esi
add esi, 0x20
xor ecx, ecx
xor edx, edx
cmp esi, dword [0x417198]
je 0x40ad69
mov al, byte [esi]
or al, al
je 0x40ad69
cmp al, 0xc0
jae 0x40ad64
cmp al, 0x80
jae 0x40ad5f
or byte [ebx + 0x14], 0x40
add esi, 0xc
jmp 0x40ad45
add esi, 0x10
jmp 0x40ad45
mov eax, edi
xchg dword [ebx + 4], eax
stosd dword es:[edi], eax
test dword [0x41727c], 8
jne 0x40adb0
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040ad86
jmp 0x40adbb
call fcn.0040ad86
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ebx, esi
add esi, 0x20
cmp ebx, dword [0x417198]
jne 0x40ad45
inc dx
je 0x4017e3
mov dword [0x417298], edx
mov esi, dword [0x417284]
cmp esi, dword [0x417198]
je 0x40af4e
mov al, byte [esi]
or al, al
je 0x40ae03
cmp al, 0xc0
jae 0x40ae08
cmp al, 0x80
jae 0x40af0c
add esi, 0xc
jmp 0x40ade0
add esi, 0x20
jmp 0x40ade0
mov eax, dword [esi + 0xc]
mov dword [0x4171b4], eax
cmp byte [esi], 0xc0
jne 0x40185d
mov ebx, dword [esi + 8]
test byte [ebx + 8], 1
je 0x40ae5f
mov ax, word [0x417192]
cmp ax, word [ebx + 0x10]
jne 0x40ae5f
mov dl, byte [ebx + 0xb]
or dl, dl
je 0x40ae7b
mov eax, dword [ebx + 0x14]
cmp byte [eax], 0
jne 0x40198d
mov eax, dword [eax + 4]
test dword [0x41727c], 8
jne 0x40ae6c
cmp dl, 2
jne 0x40198d
mov dx, word [eax + 0xe]
jmp 0x40ae7f
mov eax, dword [ebx + 0x18]
mov dword [0x417224], eax
jmp 0x4018f3
cmp dl, 4
jne 0x40198d
mov dx, word [eax + 6]
jmp 0x40ae7f
mov dx, 0xfff1
mov eax, dword [esi + 4]
stosd dword es:[edi], eax
test dword [0x41727c], 8
jne 0x40aec9
movzx eax, byte [ebx + 9]
shr al, 1
and al, 1
neg eax
cmp eax, dword [ebx + 4]
jne 0x4018e9
xor eax, dword [ebx]
js 0x4018e9
mov eax, dword [ebx]
stosd dword es:[edi], eax
xor eax, eax
mov al, byte [ebx + 0xa]
stosd dword es:[edi], eax
mov eax, edx
shl eax, 0x10
mov al, 0x10
cmp byte [ebx + 0xa], 0
je 0x40aec4
or al, 1
jmp 0x40aec6
or al, 2
stosd dword es:[edi], eax
jmp 0x40aefa
mov eax, edx
shl eax, 0x10
mov al, 0x10
cmp byte [ebx + 0xa], 0
je 0x40aeda
or al, 1
jmp 0x40aedc
or al, 2
stosd dword es:[edi], eax
mov al, byte [ebx + 9]
shl eax, 0x1e
xor eax, dword [ebx + 4]
js 0x4018e9
mov eax, dword [ebx]
stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
stosd dword es:[edi], eax
mov al, byte [ebx + 0xa]
stosd dword es:[edi], eax
xor al, al
stosd dword es:[edi], eax
inc ecx
mov eax, ecx
shl eax, 8
mov al, 0xc0
mov dword [esi], eax
add esi, 0x10
jmp 0x40ade0
mov eax, dword [esi + 4]
stosd dword es:[edi], eax
test dword [0x41727c], 8
jne 0x40af2b
xor eax, eax
stosd dword es:[edi], eax
mov eax, dword [esi + 8]
stosd dword es:[edi], eax
mov eax, 0x10
stosd dword es:[edi], eax
jmp 0x40af3c
mov eax, 0x10
stosd dword es:[edi], eax
xor al, al
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi + 8]
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
inc ecx
mov eax, ecx
shl eax, 8
mov al, pe_nt_image_headers32
mov dword [esi], eax
add esi, 0xc
jmp 0x40ade0
mov edx, edi
mov ebx, dword [0x417198]
xor al, al
stosb byte es:[edi], al
add edi, 0x10
mov dword [edx + 1], edx
add ebx, 0x10
test dword [0x41727c], 8
je 0x40af71
add ebx, 8
cmp ebx, edx
je 0x40afd4
test dword [0x41727c], 8
jne 0x40afa8
cmp byte [ebx + 0xd], 0
je 0x40af91
mov byte [ebx + 0xd], 0
mov eax, 0x6c65722e
stosd dword es:[edi], eax
mov esi, edi
sub esi, edx
xchg dword [ebx], esi
add ebx, 0x10
or esi, esi
je 0x40afc6
lodsd eax, dword [esi]
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
xor al, al
stosb byte es:[edi], al
jmp 0x40af71
cmp byte [ebx + 5], 0
je 0x40afbb
mov byte [ebx + 5], 0
mov eax, 0x6c65722e
stosd dword es:[edi], eax
mov al, 0x61
stosb byte es:[edi], al
mov esi, edi
sub esi, edx
xchg dword [ebx], esi
add ebx, 0x18
jmp 0x40af9a
mov eax, 0x616c662e
stosd dword es:[edi], eax
mov ax, 0x74
stosw word es:[edi], ax
jmp 0x40af71
mov dword [edx + 9], edi
mov ebx, dword [0x4171a0]
mov eax, edi
sub eax, dword [0x417198]
test dword [0x41727c], 8
jne 0x40b013
mov dword [ebx + 0x20], eax
mov eax, dword [0x417298]
inc ax
je 0x4017e3
mov word [ebx + 0x32], ax
inc ax
je 0x4017e3
mov word [ebx + 0x30], ax
jmp 0x40b033
mov dword [ebx + 0x28], eax
mov eax, dword [0x417298]
inc ax
je 0x4017e3
mov word [ebx + 0x3e], ax
inc ax
je 0x4017e3
mov word [ebx + 0x3c], ax
xor eax, eax
mov ecx, 0xa
rep stosd dword es:[edi], eax
test dword [0x41727c], 8
je 0x40b04f
mov ecx, 6
rep stosd dword es:[edi], eax
mov esi, ebp
xor ecx, ecx
mov ebx, edi
mov eax, dword [esi + 4]
mov eax, dword [eax]
stosd dword es:[edi], eax
mov eax, 1
cmp dword [esi + 0xc], 0
je 0x40b06c
test byte [esi + 0x14], 0x80
je 0x40b06e
mov al, 8
stosd dword es:[edi], eax
mov eax, dword [esi + 0x14]
and al, 0x3f
call fcn.0040b109
xor eax, eax
call fcn.0040b109
mov eax, dword [esi + 8]
mov dword [0x4172a4], eax
sub eax, dword [0x4171a0]
call fcn.0040b109
mov eax, dword [esi + 0xc]
call fcn.0040b109
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi + 0x10]
call fcn.0040b109
xor eax, eax
call fcn.0040b109
inc ecx
add esi, 0x20
xchg dword [esp], edi
mov ebp, edi
cmp esi, dword [0x417198]
je 0x40b120
mov al, byte [esi]
or al, al
je 0x40b120
cmp al, 0x80
jb 0x40b0d2
cmp al, 0xc0
jb 0x40b104
add esi, 0x10
jmp 0x40b0b7
test dword [0x41727c], 8
jne 0x40b0ec
mov eax, dword [esi + 4]
stosd dword es:[edi], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
mov al, byte [esi]
stosd dword es:[edi], eax
jmp 0x40b104
mov eax, dword [esi + 4]
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
movzx eax, byte [esi]
stosd dword es:[edi], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
shr eax, 8
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esi, 0xc
jmp 0x40b0b7
cmp edi, ebp
xchg dword [esp], edi
je 0x40b1a6
mov eax, dword [ebx]
sub eax, 4
test dword [0x41727c], 8
je 0x40b139
dec eax
stosd dword es:[edi], eax
test dword [0x41727c], 8
jne 0x40b14d
mov eax, 9
jmp 0x40b152
mov eax, 4
stosd dword es:[edi], eax
xor al, al
call fcn.0040b109
call fcn.0040b109
mov eax, ebp
sub eax, dword [0x4171a0]
call fcn.0040b109
mov eax, dword [esp]
sub eax, ebp
call fcn.0040b109
mov eax, dword [0x417298]
stosd dword es:[edi], eax
mov eax, ecx
stosd dword es:[edi], eax
inc ecx
test dword [0x41727c], 8
jne 0x40b197
mov eax, 4
stosd dword es:[edi], eax
mov al, 8
stosd dword es:[edi], eax
jmp 0x40b1a6
mov eax, 8
stosd dword es:[edi], eax
xor al, al
stosd dword es:[edi], eax
mov al, 0x18
stosd dword es:[edi], eax
xor al, al
stosd dword es:[edi], eax
cmp esi, dword [0x417198]
jne 0x40b053
pop eax
mov ebx, dword [0x4171a0]
sub eax, ebx
mov dword [0x4171a4], eax
mov ecx, 0x20
test dword [0x41727c], 8
je 0x40b1d6
mov ecx, 0x28
add dword [ebx + ecx], eax
mov eax, 1
stosd dword es:[edi], eax
mov al, 2
stosd dword es:[edi], eax
xor al, al
call fcn.0040b109
call fcn.0040b109
mov eax, dword [0x4171a4]
call fcn.0040b109
mov eax, dword [edx + 1]
sub eax, dword [0x417198]
call fcn.0040b109
mov eax, dword [0x417298]
inc eax
stosd dword es:[edi], eax
mov eax, dword [0x41728c]
inc eax
stosd dword es:[edi], eax
test dword [0x41727c], 8
jne 0x40b22b
mov eax, 4
stosd dword es:[edi], eax
mov al, 0x10
stosd dword es:[edi], eax
jmp 0x40b23a
mov eax, 8
stosd dword es:[edi], eax
xor al, al
stosd dword es:[edi], eax
mov al, 0x18
stosd dword es:[edi], eax
xor al, al
stosd dword es:[edi], eax
mov al, 9
stosd dword es:[edi], eax
mov al, 3
stosd dword es:[edi], eax
xor al, al
call fcn.0040b109
call fcn.0040b109
mov eax, dword [edx + 1]
sub eax, dword [0x417198]
add eax, dword [0x4171a4]
call fcn.0040b109
mov eax, dword [edx + 9]
sub eax, dword [edx + 1]
call fcn.0040b109
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov al, 1
call fcn.0040b109
xor eax, eax
call fcn.0040b109
mov eax, 0x626174
mov dword [edx + 1], 0x6d79732e
mov dword [edx + 5], eax
mov dword [edx + 9], 0x7274732e
mov dword [edx + 0xd], eax
mov dword [0x4172ac], edx
mov dword [0x4171ac], 0
mov edx, dword [0x417188]
call fcn.004013a4
jb 0x4017cb
call fcn.00408768
mov ecx, edi
mov edx, dword [0x417198]
sub ecx, edx
add dword [0x4171ac], ecx
call fcn.004013c3
jb 0x4017cb
jmp 0x408755