Function at 0x4037a3
Capabilities:
Enumerate files on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2fc
mov dword [esp], 0x43a1c4
call fcn.00417d10
mov dword [esp], 0x43a1b4
mov ebx, eax
call fcn.00417d10
cmp byte [ebx], 0
mov edx, eax
jne 0x4037ee
xor eax, eax
mov esi, 0x43be6c
mov ecx, 7
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
lea eax, [edx + 0xc]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov byte [ebx], 1
cmp byte [edx + 0xa], 0
jne 0x4038a7
mov ecx, dword [edx + 4]
lea eax, [ecx + 1]
lea edi, [ecx + 3]
mov dword [ebp - 0x2d8], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x2d0], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x2dc], eax
lea eax, [ecx + 5]
mov dword [ebp - 0x2e0], eax
lea eax, [ecx + 4]
mov word [ebp - 0x2e4], ax
lea eax, [ecx + 2]
mov word [ebp - 0x2cc], ax
lea eax, [ecx + 1]
mov word [ebp - 0x2d4], ax
xor eax, eax
mov ebx, dword [edx]
mov esi, dword [ebp - 0x2d8]
cmp ebx, esi
jne 0x403856
mov esi, dword [ebp - 0x2d4]
jmp 0x403892
cmp dword [ebp - 0x2d0], ebx
jne 0x403866
mov esi, dword [ebp - 0x2cc]
jmp 0x403892
cmp ebx, ecx
jne 0x403874
lea ebx, [eax - 0x7c]
xor word [edx + eax*2 + 0xc], bx
jmp 0x4038a1
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x403882
mov esi, edi
jmp 0x403892
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x4038a1
mov esi, dword [ebp - 0x2e4]
xor si, word [edx + eax*2 + 0xc]
inc ebx
mov word [edx + eax*2 + 0xc], si
mov dword [edx], ebx
jmp 0x403842
inc eax
cmp eax, 0xe
jne 0x403842
mov byte [edx + 0xa], 1
add edx, 0xc
lea ecx, [ebp - 0x268]
mov dword [esp], edx
call fcn.00401592
push eax
mov dword [esp], 0x43a1e4
call fcn.00417d10
mov dword [esp], 0x43a1d4
mov ebx, eax
call fcn.00417d10
cmp byte [ebx], 0
mov edx, eax
jne 0x403905
xor eax, eax
mov esi, 0x43be2c
mov ecx, 7
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
lea eax, [edx + 0xc]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov byte [ebx], 1
jmp 0x403905
cmp byte [edx + 0xa], 0
jne 0x4039c0
mov ecx, dword [edx + 4]
lea eax, [ecx + 1]
lea edi, [ecx + 3]
mov dword [ebp - 0x2cc], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x2d4], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x2dc], eax
lea eax, [ecx + 5]
mov dword [ebp - 0x2e0], eax
lea eax, [ecx + 4]
mov word [ebp - 0x2e4], ax
lea eax, [ecx + 2]
mov word [ebp - 0x2d8], ax
lea eax, [ecx + 1]
mov word [ebp - 0x2d0], ax
xor eax, eax
mov ebx, dword [edx]
mov esi, dword [ebp - 0x2cc]
cmp ebx, esi
jne 0x40396d
mov esi, dword [ebp - 0x2d0]
jmp 0x4039ab
mov esi, dword [ebp - 0x2d4]
cmp ebx, esi
jne 0x40397f
mov esi, dword [ebp - 0x2d8]
jmp 0x4039ab
cmp ebx, ecx
jne 0x40398d
lea ebx, [eax - 0x7b]
xor word [edx + eax*2 + 0xc], bx
jmp 0x4039ba
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x40399b
mov esi, edi
jmp 0x4039ab
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x4039ba
mov esi, dword [ebp - 0x2e4]
xor si, word [edx + eax*2 + 0xc]
inc ebx
mov word [edx + eax*2 + 0xc], si
mov dword [edx], ebx
jmp 0x403959
inc eax
cmp eax, 0xe
jne 0x403959
mov byte [edx + 0xa], 1
add edx, 0xc
lea ecx, [ebp - 0x250]
mov dword [esp], edx
call fcn.00401592
push edi
mov dword [esp], 0x43a204
call fcn.00417d10
mov dword [esp], 0x43a1f4
mov ebx, eax
call fcn.00417d10
cmp byte [ebx], 0
mov edx, eax
jne 0x403a24
xor esi, esi
lea eax, [eax + 0xc]
mov ecx, 0x16
mov dword [eax - 0xc], esi
mov dword [eax - 8], esi
mov dword [eax - 4], esi
mov esi, 0x43bdec
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov byte [ebx], 1
jmp 0x403a24
cmp byte [edx + 0xa], 0
jne 0x403adf
mov ecx, dword [edx + 4]
lea eax, [ecx + 1]
lea edi, [ecx + 3]
mov dword [ebp - 0x2cc], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x2d4], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x2dc], eax
lea eax, [ecx + 5]
mov dword [ebp - 0x2e0], eax
lea eax, [ecx + 4]
mov word [ebp - 0x2e4], ax
lea eax, [ecx + 2]
mov word [ebp - 0x2d8], ax
lea eax, [ecx + 1]
mov word [ebp - 0x2d0], ax
xor eax, eax
mov ebx, dword [edx]
mov esi, dword [ebp - 0x2cc]
cmp ebx, esi
jne 0x403a8c
mov esi, dword [ebp - 0x2d0]
jmp 0x403aca
mov esi, dword [ebp - 0x2d4]
cmp ebx, esi
jne 0x403a9e
mov esi, dword [ebp - 0x2d8]
jmp 0x403aca
cmp ebx, ecx
jne 0x403aac
lea ebx, [eax - 0x7b]
xor word [edx + eax*2 + 0xc], bx
jmp 0x403ad9
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x403aba
mov esi, edi
jmp 0x403aca
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x403ad9
mov esi, dword [ebp - 0x2e4]
xor si, word [edx + eax*2 + 0xc]
inc ebx
mov word [edx + eax*2 + 0xc], si
mov dword [edx], ebx
jmp 0x403a78
inc eax
cmp eax, 0xb
jne 0x403a78
mov byte [edx + 0xa], 1
add edx, 0xc
lea ecx, [ebp - 0x238]
mov dword [esp], edx
call fcn.00401592
push ebx
mov dword [esp], 0x43a224
call fcn.00417d10
mov dword [esp], 0x43a214
mov ebx, eax
call fcn.00417d10
cmp byte [ebx], 0
mov edx, eax
jne 0x403b43
xor ecx, ecx
lea eax, [eax + 0xc]
mov esi, 0x43bdac
mov dword [eax - 0xc], ecx
mov dword [eax - 8], ecx
mov dword [eax - 4], ecx
mov ecx, 7
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov byte [ebx], 1
jmp 0x403b43
cmp byte [edx + 0xa], 0
jne 0x403bfe
mov ecx, dword [edx + 4]
lea eax, [ecx + 1]
lea edi, [ecx + 3]
mov dword [ebp - 0x2cc], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x2d4], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x2dc], eax
lea eax, [ecx + 5]
mov dword [ebp - 0x2e0], eax
lea eax, [ecx + 4]
mov word [ebp - 0x2e4], ax
lea eax, [ecx + 2]
mov word [ebp - 0x2d8], ax
lea eax, [ecx + 1]
mov word [ebp - 0x2d0], ax
xor eax, eax
mov ebx, dword [edx]
mov esi, dword [ebp - 0x2cc]
cmp ebx, esi
jne 0x403bab
mov esi, dword [ebp - 0x2d0]
jmp 0x403be9
mov esi, dword [ebp - 0x2d4]
cmp ebx, esi
jne 0x403bbd
mov esi, dword [ebp - 0x2d8]
jmp 0x403be9
cmp ebx, ecx
jne 0x403bcb
lea ebx, [eax - 0x7b]
xor word [edx + eax*2 + 0xc], bx
jmp 0x403bf8
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x403bd9
mov esi, edi
jmp 0x403be9
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x403bf8
mov esi, dword [ebp - 0x2e4]
xor si, word [edx + eax*2 + 0xc]
inc ebx
mov word [edx + eax*2 + 0xc], si
mov dword [edx], ebx
jmp 0x403b97
inc eax
cmp eax, 0xe
jne 0x403b97
mov byte [edx + 0xa], 1
add edx, 0xc
lea ecx, [ebp - 0x220]
mov dword [esp], edx
call fcn.00401592
push edx
mov dword [esp], 0x43a244
call fcn.00417d10
mov dword [esp], 0x43a234
mov ebx, eax
call fcn.00417d10
cmp byte [ebx], 0
mov edx, eax
jne 0x403c61
xor eax, eax
mov esi, 0x43bd6c
mov ecx, 6
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
lea eax, [edx + 0xc]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov byte [ebx], 1
jmp 0x403c61
cmp byte [edx + 0xa], 0
jne 0x403d1c
mov ecx, dword [edx + 4]
lea eax, [ecx + 1]
lea edi, [ecx + 3]
mov dword [ebp - 0x2cc], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x2d4], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x2dc], eax
lea eax, [ecx + 5]
mov dword [ebp - 0x2e0], eax
lea eax, [ecx + 4]
mov word [ebp - 0x2e4], ax
lea eax, [ecx + 2]
mov word [ebp - 0x2d8], ax
lea eax, [ecx + 1]
mov word [ebp - 0x2d0], ax
xor eax, eax
mov ebx, dword [edx]
mov esi, dword [ebp - 0x2cc]
cmp ebx, esi
jne 0x403cc9
mov esi, dword [ebp - 0x2d0]
jmp 0x403d07
mov esi, dword [ebp - 0x2d4]
cmp ebx, esi
jne 0x403cdb
mov esi, dword [ebp - 0x2d8]
jmp 0x403d07
cmp ebx, ecx
jne 0x403ce9
lea ebx, [eax - 0x7a]
xor word [edx + eax*2 + 0xc], bx
jmp 0x403d16
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x403cf7
mov esi, edi
jmp 0x403d07
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x403d16
mov esi, dword [ebp - 0x2e4]
xor si, word [edx + eax*2 + 0xc]
inc ebx
mov word [edx + eax*2 + 0xc], si
mov dword [edx], ebx
jmp 0x403cb5
inc eax
cmp eax, 0xc
jne 0x403cb5
mov byte [edx + 0xa], 1
add edx, 0xc
lea ecx, [ebp - 0x208]
mov dword [esp], edx
call fcn.00401592
push eax
mov dword [esp], 0x43a264
call fcn.00417d10
mov dword [esp], 0x43a254
mov ebx, eax
call fcn.00417d10
cmp byte [ebx], 0
mov edx, eax
jne 0x403d7f
xor eax, eax
mov esi, 0x43bd2c
mov ecx, 6
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
lea eax, [edx + 0xc]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov byte [ebx], 1
jmp 0x403d7f
cmp byte [edx + 0xa], 0
jne 0x403e3a
mov ecx, dword [edx + 4]
lea eax, [ecx + 1]
lea edi, [ecx + 3]
mov dword [ebp - 0x2cc], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x2d4], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x2dc], eax
lea eax, [ecx + 5]
mov dword [ebp - 0x2e0], eax
lea eax, [ecx + 4]
mov word [ebp - 0x2e4], ax
lea eax, [ecx + 2]
mov word [ebp - 0x2d8], ax
lea eax, [ecx + 1]
mov word [ebp - 0x2d0], ax
xor eax, eax
mov ebx, dword [edx]
mov esi, dword [ebp - 0x2cc]
cmp ebx, esi
jne 0x403de7
mov esi, dword [ebp - 0x2d0]
jmp 0x403e25
mov esi, dword [ebp - 0x2d4]
cmp ebx, esi
jne 0x403df9
mov esi, dword [ebp - 0x2d8]
jmp 0x403e25
cmp ebx, ecx
jne 0x403e07
lea ebx, [eax - 0x7a]
xor word [edx + eax*2 + 0xc], bx
jmp 0x403e34
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x403e15
mov esi, edi
jmp 0x403e25
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x403e34
mov esi, dword [ebp - 0x2e4]
xor si, word [edx + eax*2 + 0xc]
inc ebx
mov word [edx + eax*2 + 0xc], si
mov dword [edx], ebx
jmp 0x403dd3
inc eax
cmp eax, 0xc
jne 0x403dd3
mov byte [edx + 0xa], 1
add edx, 0xc
lea ecx, [ebp - 0x1f0]
mov dword [esp], edx
call fcn.00401592
push eax
lea edi, [ebp - 0x268]
lea ecx, [ebp - 0x2c8]
lea esi, [ebp - 0x1d8]
mov dword [esp], edi
mov dword [esp + 4], 6
call fcn.00401678
push eax
push eax
jmp 0x403e86
sub esi, 0x18
mov ecx, esi
call fcn.004318a0
cmp esi, edi
jne 0x403e86
mov dword [esp], 0x43a284
call fcn.00417d10
mov dword [esp], 0x43a274
mov ebx, eax
call fcn.00417d10
cmp byte [ebx], 0
mov edx, eax
jne 0x403ed4
xor esi, esi
lea eax, [eax + 0xc]
mov ecx, 0xc
mov dword [eax - 0xc], esi
mov dword [eax - 8], esi
mov dword [eax - 4], esi
mov esi, 0x43bcec
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov byte [ebx], 1
cmp byte [edx + 0xa], 0
jne 0x403f8f
mov ecx, dword [edx + 4]
lea eax, [ecx + 1]
lea edi, [ecx + 3]
mov dword [ebp - 0x2cc], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x2d4], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x2dc], eax
lea eax, [ecx + 5]
mov dword [ebp - 0x2e0], eax
lea eax, [ecx + 4]
mov word [ebp - 0x2e4], ax
lea eax, [ecx + 2]
mov word [ebp - 0x2d8], ax
lea eax, [ecx + 1]
mov word [ebp - 0x2d0], ax
xor eax, eax
mov ebx, dword [edx]
mov esi, dword [ebp - 0x2cc]
cmp ebx, esi
jne 0x403f3c
mov esi, dword [ebp - 0x2d0]
jmp 0x403f7a
mov esi, dword [ebp - 0x2d4]
cmp ebx, esi
jne 0x403f4e
mov esi, dword [ebp - 0x2d8]
jmp 0x403f7a
cmp ebx, ecx
jne 0x403f5c
lea ebx, [eax - 0x7a]
xor word [edx + eax*2 + 0xc], bx
jmp 0x403f89
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x403f6a
mov esi, edi
jmp 0x403f7a
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x403f89
mov esi, dword [ebp - 0x2e4]
xor si, word [edx + eax*2 + 0xc]
inc ebx
mov word [edx + eax*2 + 0xc], si
mov dword [edx], ebx
jmp 0x403f28
inc eax
cmp eax, 0x18
jne 0x403f28
mov byte [edx + 0xa], 1
add edx, 0xc
lea ecx, [ebp - 0x268]
mov dword [esp], edx
call fcn.00401592
push ebx
mov dword [esp], 0x43a2a4
call fcn.00417d10
mov dword [esp], 0x43a294
mov ebx, eax
call fcn.00417d10
cmp byte [ebx], 0
mov edx, eax
jne 0x403fee
xor ecx, ecx
lea eax, [eax + 0xc]
mov esi, 0x43bc6c
mov dword [eax - 0xc], ecx
mov dword [eax - 8], ecx
mov dword [eax - 4], ecx
mov ecx, 0x66
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov byte [ebx], 1
jmp 0x403fee
cmp byte [edx + 0xa], 0
jne 0x4040a9
mov ecx, dword [edx + 4]
lea eax, [ecx + 1]
lea edi, [ecx + 3]
mov dword [ebp - 0x2cc], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x2d4], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x2dc], eax
lea eax, [ecx + 5]
mov dword [ebp - 0x2e0], eax
lea eax, [ecx + 4]
mov word [ebp - 0x2e4], ax
lea eax, [ecx + 2]
mov word [ebp - 0x2d8], ax
lea eax, [ecx + 1]
mov word [ebp - 0x2d0], ax
xor eax, eax
mov ebx, dword [edx]
mov esi, dword [ebp - 0x2cc]
cmp ebx, esi
jne 0x404056
mov esi, dword [ebp - 0x2d0]
jmp 0x404094
mov esi, dword [ebp - 0x2d4]
cmp ebx, esi
jne 0x404068
mov esi, dword [ebp - 0x2d8]
jmp 0x404094
cmp ebx, ecx
jne 0x404076
lea ebx, [eax - 0x79]
xor word [edx + eax*2 + 0xc], bx
jmp 0x4040a3
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x404084
mov esi, edi
jmp 0x404094
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x4040a3
mov esi, dword [ebp - 0x2e4]
xor si, word [edx + eax*2 + 0xc]
inc ebx
mov word [edx + eax*2 + 0xc], si
mov dword [edx], ebx
jmp 0x404042
inc eax
cmp eax, 0x33
jne 0x404042
mov byte [edx + 0xa], 1
add edx, 0xc
lea esi, [ebp - 0x250]
mov dword [esp], edx
mov ecx, esi
call fcn.00401592
push eax
lea edi, [ebp - 0x268]
lea ecx, [ebp - 0x2bc]
mov dword [esp], edi
mov dword [esp + 4], 2
call fcn.00401678
push eax
mov ecx, esi
push eax
call fcn.004318a0
mov ecx, edi
call fcn.004318a0
mov dword [esp], 0x43a2c4
call fcn.00417d10
mov dword [esp], 0x43a2b4
mov ebx, eax
call fcn.00417d10
cmp byte [ebx], 0
mov edx, eax
jne 0x404148
xor eax, eax
mov esi, 0x43bc2c
mov ecx, 0x16
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
lea eax, [edx + 0xc]
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov byte [ebx], 1
jmp 0x404148
cmp byte [edx + 0xa], 0
jne 0x404203
mov ecx, dword [edx + 4]
lea eax, [ecx + 1]
lea edi, [ecx + 3]
mov dword [ebp - 0x2cc], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x2d4], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x2dc], eax
lea eax, [ecx + 5]
mov dword [ebp - 0x2e0], eax
lea eax, [ecx + 4]
mov word [ebp - 0x2e4], ax
lea eax, [ecx + 2]
mov word [ebp - 0x2d8], ax
lea eax, [ecx + 1]
mov word [ebp - 0x2d0], ax
xor eax, eax
mov ebx, dword [edx]
mov esi, dword [ebp - 0x2cc]
cmp ebx, esi
jne 0x4041b0
mov esi, dword [ebp - 0x2d0]
jmp 0x4041ee
mov esi, dword [ebp - 0x2d4]
cmp ebx, esi
jne 0x4041c2
mov esi, dword [ebp - 0x2d8]
jmp 0x4041ee
cmp ebx, ecx
jne 0x4041d0
lea ebx, [eax - 0x79]
xor word [edx + eax*2 + 0xc], bx
jmp 0x4041fd
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x4041de
mov esi, edi
jmp 0x4041ee
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x4041fd
mov esi, dword [ebp - 0x2e4]
xor si, word [edx + eax*2 + 0xc]
inc ebx
mov word [edx + eax*2 + 0xc], si
mov dword [edx], ebx
jmp 0x40419c
inc eax
cmp eax, 0xb
jne 0x40419c
mov byte [edx + 0xa], 1
xor eax, eax
add edx, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub esp, 0xc
xor ebx, ebx
mov dword [ebp - 0x2cc], eax
test eax, eax
je 0x4047b7
lea eax, [ebp - 0x2a8]
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x2b0], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call fcn.00431b00
push edi
push edi
mov eax, dword [ebp - 0x2b0]
mov dword [ebp - 0x2ec], eax
mov dword [esp], 0x43a2e4
call fcn.00417d10
mov dword [esp], 0x43a2d4
mov ebx, eax
call fcn.00417d10
cmp byte [ebx], 0
mov edx, eax
jne 0x4042a4
xor esi, esi
lea eax, [eax + 0xc]
mov ecx, 0x16
mov dword [eax - 0xc], esi
mov dword [eax - 8], esi
mov dword [eax - 4], esi
mov esi, 0x43bbec
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov byte [ebx], 1
cmp byte [edx + 0xa], 0
jne 0x404360
mov ecx, dword [edx + 4]
lea eax, [ecx + 1]
lea edi, [ecx + 3]
mov dword [ebp - 0x2d0], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x2d8], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x2e0], eax
lea eax, [ecx + 5]
mov dword [ebp - 0x2e4], eax
lea eax, [ecx + 4]
mov word [ebp - 0x2e6], ax
lea eax, [ecx + 2]
mov word [ebp - 0x2dc], ax
lea eax, [ecx + 1]
mov word [ebp - 0x2d4], ax
xor eax, eax
mov ebx, dword [edx]
mov esi, dword [ebp - 0x2d0]
cmp ebx, esi
jne 0x40430c
mov esi, dword [ebp - 0x2d4]
jmp 0x40434b
mov esi, dword [ebp - 0x2d8]
cmp ebx, esi
jne 0x40431e
mov esi, dword [ebp - 0x2dc]
jmp 0x40434b
cmp ebx, ecx
jne 0x40432c
lea ebx, [eax - 0x78]
xor word [edx + eax*2 + 0xc], bx
jmp 0x40435a
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x40433a
mov esi, edi
jmp 0x40434b
mov esi, dword [ebp - 0x2e4]
cmp ebx, esi
jne 0x40435a
mov si, word [ebp - 0x2e6]
xor si, word [edx + eax*2 + 0xc]
inc ebx
mov word [edx + eax*2 + 0xc], si
mov dword [edx], ebx
jmp 0x4042f8
inc eax
cmp eax, 0xb
jne 0x4042f8
mov eax, dword [ebp - 0x2cc]
mov byte [edx + 0xa], 1
add edx, 0xc
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2ec]
mov dword [esp], edx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub esp, 0xc
xor ebx, ebx
test eax, eax
je 0x404709
mov eax, dword [ebp - 0x2cc]
lea ecx, [ebp - 0x2b0]
dec eax
mov dword [esp], eax
call fcn.00433350
push ebx
mov dword [esp], 0x43a304
call fcn.00417d10
mov dword [esp], 0x43a2f4
mov ebx, eax
call fcn.00417d10
cmp byte [ebx], 0
mov edx, eax
jne 0x4043e7
xor ecx, ecx
lea eax, [eax + 0xc]
mov esi, 0x43bbac
mov dword [eax - 0xc], ecx
mov dword [eax - 8], ecx
mov dword [eax - 4], ecx
mov ecx, 6
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov byte [ebx], 1
cmp byte [edx + 0xa], 0
jne 0x4044a2
mov ecx, dword [edx + 4]
lea eax, [ecx + 1]
lea edi, [ecx + 3]
mov dword [ebp - 0x2cc], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x2d4], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x2dc], eax
lea eax, [ecx + 5]
mov dword [ebp - 0x2e0], eax
lea eax, [ecx + 4]
mov word [ebp - 0x2e4], ax
lea eax, [ecx + 2]
mov word [ebp - 0x2d8], ax
lea eax, [ecx + 1]
mov word [ebp - 0x2d0], ax
xor eax, eax
mov ebx, dword [edx]
mov esi, dword [ebp - 0x2cc]
cmp ebx, esi
jne 0x40444f
mov esi, dword [ebp - 0x2d0]
jmp 0x40448d
mov esi, dword [ebp - 0x2d4]
cmp ebx, esi
jne 0x404461
mov esi, dword [ebp - 0x2d8]
jmp 0x40448d
cmp ebx, ecx
jne 0x40446f
lea ebx, [eax - 0x78]
xor word [edx + eax*2 + 0xc], bx
jmp 0x40449c
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x40447d
mov esi, edi
jmp 0x40448d
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x40449c
mov esi, dword [ebp - 0x2e4]
xor si, word [edx + eax*2 + 0xc]
inc ebx
mov word [edx + eax*2 + 0xc], si
mov dword [edx], ebx
jmp 0x40443b
inc eax
cmp eax, 0xc
jne 0x40443b
lea edi, [edx + 0xc]
mov byte [edx + 0xa], 1
mov dword [esp], edi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
lea ecx, [ebp - 0x290]
xor edx, edx
mov word [ebp - 0x290], 0
mov ebx, eax
mov eax, dword [ebp - 0x2ac]
mov dword [ebp - 0x298], ecx
mov dword [ebp - 0x294], edx
mov esi, dword [ebp - 0x2b0]
lea ecx, [ebx + eax]
mov dword [ebp - 0x2cc], eax
mov dword [esp], ecx
lea ecx, [ebp - 0x298]
call fcn.00433ac0
push eax
mov eax, dword [ebp - 0x2cc]
lea ecx, [ebp - 0x298]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004328a0
push eax
lea ecx, [ebp - 0x298]
push eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.004328a0
push edi
lea eax, [ebp - 0x268]
push edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x298]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
jmp 0x404542
push esi
push esi
mov dword [ebp - 0x2cc], eax
inc eax
je 0x4046d6
lea eax, [ebp - 0x23c]
lea ecx, [ebp - 0x280]
mov dword [esp], eax
call fcn.00401592
push ebx
mov eax, dword [ebp - 0x27c]
mov esi, dword [ebp - 0x280]
add eax, eax
lea ebx, [esi + eax]
cmp esi, ebx
je 0x40458f
movzx eax, word [esi]
add esi, 2
mov dword [esp], eax
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
mov word [esi - 2], ax
jmp 0x404577
mov eax, dword [ebp - 0x2c4]
mov ebx, dword [ebp - 0x2c8]
lea esi, [ebp - 0x280]
mov dword [ebp - 0x2d0], eax
sub eax, ebx
sar eax, 3
imul eax, eax, 0xaaaaaaab
sar eax, 2
mov dword [ebp - 0x2d4], eax
cmp dword [ebp - 0x2d4], 0
mov edi, ebx
jle 0x404622
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004355f8
test al, al
jne 0x404671
lea edi, [ebx + 0x18]
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.004355f8
test al, al
jne 0x404671
lea edi, [ebx + 0x30]
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.004355f8
test al, al
jne 0x404671
lea edi, [ebx + 0x48]
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.004355f8
test al, al
jne 0x404671
dec dword [ebp - 0x2d4]
add ebx, 0x60
jmp 0x4045bb
mov eax, dword [ebp - 0x2d0]
sub eax, ebx
cmp eax, 0x30
je 0x40464e
cmp eax, 0x48
je 0x40463b
cmp eax, 0x18
je 0x404661
jmp 0x404698
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004355f8
test al, al
jne 0x404671
add edi, 0x18
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.004355f8
test al, al
jne 0x404671
add edi, 0x18
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.004355f8
test al, al
je 0x404698
cmp dword [ebp - 0x2d0], edi
je 0x404698
mov eax, dword [ebp - 0x2cc]
lea esi, [ebp - 0x280]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push ecx
mov ecx, esi
call fcn.004318a0
jmp 0x4046f5
lea ecx, [ebp - 0x280]
call fcn.004318a0
lea eax, [ebp - 0x268]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push edx
push edx
test eax, eax
jne 0x404551
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push eax
mov esi, dword [ebp - 0x2b8]
mov ebx, dword [ebp - 0x2bc]
cmp esi, ebx
je 0x4046fc
mov dword [esp], ebx
call fcn.004022d5
add ebx, 0x18
test eax, eax
je 0x4046e2
mov ebx, 1
jmp 0x4046fe
xor ebx, ebx
lea ecx, [ebp - 0x298]
call fcn.004318a0
lea ecx, [ebp - 0x2b0]
call fcn.004318a0
jmp 0x4047b7
lea ecx, [ebp - 0x2bc]
call fcn.0042d9e0
lea ecx, [ebp - 0x2c8]
call fcn.0042d9e0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret