Function at 0x403720
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x120
mov esi, esp
mov dword [esi + 0x108], ebp
mov dword [esi + 0x10c], esp
mov dword [esi + 0x118], 0xffffffff
mov dword [esi + 0x114], 0x404400
mov ebx, dword [ebp + 0x10]
lea eax, [esi + 0x110]
mov ecx, dword fs:[0]
mov dword [esi + 0x110], ecx
mov dword fs:[0], eax
lea eax, [esi + 0x58]
push 2
push str.0xC:UsersHammy.cargo_registry_srcindex.crates.io_1cd66030c949c28dhex_0.4.3_srclib.rs
push ebx
push dword [ebp + 0xc]
push eax
call fcn.00428640
add esp, 0x14
mov eax, dword [esi + 0x88]
mov edi, dword [esi + 0x8c]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x5c]
mov dword [esi], edi
cmp eax, edi
sete ch
cmp dword [esi + 0x58], 0
je 0x403b45
mov eax, dword [esi + 0x74]
mov edx, ebx
cmp eax, edi
je 0x403c9a
mov ecx, dword [esi + 0x70]
mov ebx, dword [esi + 0x94]
mov edx, dword [esi + 0x68]
mov dword [esi + 0xa4], ecx
mov dword [esi + 0x1c], ebx
lea ecx, [edx - 1]
mov dword [esi + 0x3c], edx
sub ebx, dword [esi + 0xa4]
mov dword [esi + 0xf0], ecx
mov dword [esi + 0xf4], ebx
mov ebx, dword [esi + 0x1c]
cmp ecx, ebx
mov ecx, edx
setb byte [esi + 0x23]
sub ecx, eax
mov dword [esi + 0xa8], ecx
mov ecx, eax
neg ecx
sub ebx, edx
mov dword [esi + 0x9c], ecx
mov ecx, 0
cmovb ebx, ecx
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x104], ebx
dec ecx
mov dword [esi + 0x54], ecx
mov ecx, dword [esi + 0x90]
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x7c]
mov dword [esi + 0x14], ecx
mov ecx, dword [esi + 0x60]
mov dword [esi + 0xb8], ecx
mov ecx, dword [esi + 0x64]
mov dword [esi + 0xb4], ecx
mov ecx, dword [esi + 8]
lea ecx, [ecx + eax]
mov dword [esi + 0x24], ecx
lea ecx, [edx + eax]
mov dword [esi + 0x40], ecx
mov ecx, dword [esi + 8]
mov ebx, dword [esi + 0x40]
add ecx, ebx
mov ebx, dword [esi + 0x10]
mov dword [esi + 0xc0], ecx
lea ecx, [ebx + edx]
mov dword [esi + 0x100], ecx
lea ecx, [ebx + edx - 1]
lea ebx, [edx + eax - 1]
mov edx, eax
mov dword [esi + 0xf8], ecx
mov dword [esi + 0xa0], ebx
mov eax, dword [esi + 0x54]
lea ecx, [edx + eax]
cmp ecx, edi
jae 0x403c68
mov eax, dword [esi + 0xa4]
cmp dword [esi + 0x14], 0xffffffff
mov dword [esi + 4], edx
lea eax, [edx + eax]
mov dword [esi + 0xac], eax
mov eax, dword [esi + 0x1c]
lea eax, [edx + eax]
mov dword [esi + 0x50], eax
mov eax, edx
je 0x4039e0
mov edx, dword [esi + 0xa8]
neg edx
mov dword [esi + 0xfc], edx
mov edx, eax
cmp eax, edx
jne 0x403c4b
mov eax, dword [esi + 8]
xor edi, edi
mov edx, 1
xor ebx, ebx
mov dword [esi + 0xbc], 0
movzx ecx, byte [eax + ecx]
mov eax, 1
shld edi, eax, cl
shl edx, cl
test cl, 0x20
cmovne edi, edx
cmovne edx, ebx
and edi, dword [esi + 0xb4]
and edx, dword [esi + 0xb8]
or edx, edi
je 0x403950
mov eax, dword [esi + 0x3c]
mov ebx, dword [esi + 0x14]
mov edi, dword [esi + 0x1c]
cmp eax, ebx
cmova ebx, eax
cmp ebx, edi
mov dword [esi + 0xb0], ebx
cmova edi, ebx
nop dword [eax + eax]
cmp edi, ebx
je 0x403980
mov eax, dword [esi + 4]
lea edx, [eax + ebx]
cmp edx, dword [esi]
jae 0x40420f
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x24]
lea edx, [ebx + 1]
movzx ecx, byte [ecx + ebx]
cmp cl, byte [eax + ebx]
mov ebx, edx
je 0x403920
add edx, dword [esi + 0xfc]
jmp 0x403953
mov edx, dword [esi + 0x50]
mov edi, dword [esi]
mov eax, dword [esi + 0x54]
lea ecx, [edx + eax]
mov eax, dword [esi + 0xbc]
cmp ecx, edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 4]
jb 0x4038ba
jmp 0x403c53
mov ebx, dword [esi + 0x3c]
mov edi, dword [esi]
nop word cs:[eax + eax]
nop
cmp dword [esi + 0x14], ebx
jae 0x4039d0
dec ebx
cmp ebx, dword [esi + 0x1c]
jae 0x403b2d
mov eax, dword [esi + 4]
lea ecx, [ebx + eax]
cmp ecx, edi
jae 0x4041ef
mov eax, dword [esi + 0x10]
movzx edx, byte [eax + ebx]
mov eax, dword [esi + 8]
cmp dl, byte [eax + ecx]
je 0x403990
mov eax, dword [esi + 0xf4]
mov edx, dword [esi + 0xac]
mov dword [esi + 0xbc], eax
jmp 0x403955
mov dword [esi + 0x14], 0
jmp 0x403ae9
mov edx, dword [esi + 0x9c]
mov ebx, eax
neg edx
mov dword [esi + 0x14], edx
jmp 0x403a04
add ebx, dword [esi + 0x14]
mov eax, dword [esi + 0x54]
lea ecx, [ebx + eax]
mov eax, dword [esi + 4]
cmp ecx, edi
jae 0x403c53
cmp eax, ebx
jne 0x403c4b
mov eax, dword [esi + 8]
xor edi, edi
mov edx, 1
mov ebx, dword [esi + 0x50]
movzx ecx, byte [eax + ecx]
mov eax, 1
shld edi, eax, cl
shl edx, cl
test cl, 0x20
mov eax, 0
cmovne edi, edx
cmovne edx, eax
and edi, dword [esi + 0xb4]
and edx, dword [esi + 0xb8]
or edx, edi
mov edi, dword [esi]
je 0x4039f3
xor ecx, ecx
nop dword [eax]
cmp dword [esi + 0x104], ecx
je 0x403a90
mov eax, dword [esi + 0x40]
lea edx, [eax + ecx]
cmp edx, edi
jae 0x404206
mov eax, dword [esi + 0x100]
lea ebx, [ecx + 1]
movzx edx, byte [eax + ecx]
mov eax, dword [esi + 0xc0]
cmp dl, byte [eax + ecx]
mov ecx, ebx
je 0x403a50
jmp 0x4039f0
test byte [esi + 0x23], 1
je 0x403b1a
mov ecx, dword [esi + 0xa0]
mov ebx, dword [esi + 0xf8]
mov edi, dword [esi + 0x3c]
nop dword [eax]
sub edi, 1
jb 0x403ae0
cmp ecx, dword [esi]
jae 0x4041ef
movzx edx, byte [ebx]
mov eax, dword [esi + 8]
dec ebx
cmp dl, byte [eax + ecx]
lea ecx, [ecx - 1]
je 0x403ab0
mov ebx, dword [esi + 0xac]
mov edi, dword [esi]
jmp 0x4039f3
mov edi, dword [esi]
mov dword [esi + 0x14], 0xffffffff
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x50]
sub dword [esi + 0xa8], eax
add dword [esi + 0x24], eax
sub dword [esi + 0x9c], eax
add dword [esi + 0xc0], eax
add dword [esi + 0x40], eax
add dword [esi + 0xa0], eax
cmp edx, edi
jne 0x403875
jmp 0x403c95
cmp dword [esi + 0x3c], 0
mov dword [esi + 0x14], 0xffffffff
je 0x403ae9
mov ebx, dword [esi + 0xf0]
mov dword [esi + 0x118], 0xffffffff
push 0x434808
push dword [esi + 0x1c]
push ebx
call fcn.0042f710
cmp byte [esi + 0x66], 0
mov edx, ebx
jne 0x403c9a
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
mov cl, byte [esi + 0x64]
test ch, 1
mov edx, dword [esi + 4]
lea eax, [eax + edx]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
je 0x403bc4
test eax, eax
je 0x403c6d
cmp eax, edi
jae 0x403c87
mov edx, dword [esi + 0x10]
cmp byte [edx], 0xc0
jl 0x404235
test cl, cl
mov edx, ebx
je 0x403c9a
nop word cs:[eax + eax]
nop dword [eax + eax]
xor cl, 1
jne 0x403ba0
jmp 0x403c95
movzx ebx, ch
mov eax, ecx
xor al, 1
test cl, cl
mov ecx, eax
mov eax, dword [esi + 4]
je 0x403c58
test eax, eax
je 0x403bf0
cmp eax, edi
jae 0x404235
mov edx, dword [esi + 0x10]
mov ch, byte [edx]
cmp ch, 0xbf
jle 0x404235
test ch, ch
jns 0x403bb0
jmp 0x403bf9
mov edx, dword [esi + 8]
mov ch, byte [edx]
test ch, ch
jns 0x403bb0
movzx edi, byte [edx + 1]
mov al, ch
and al, 0x1f
movzx ebx, al
and edi, 0x3f
cmp ch, 0xe0
jb 0x403c33
movzx eax, byte [edx + 2]
shl edi, 6
and eax, 0x3f
or eax, edi
cmp ch, 0xf0
jb 0x403c3f
mov edi, eax
movzx eax, byte [edx + 3]
and ebx, 7
shl edi, 6
shl ebx, 0x12
and eax, 0x3f
or eax, edi
jmp 0x403c42
shl ebx, 6
or ebx, edi
mov edi, dword [esi]
jmp 0x403bb3
shl ebx, 0xc
mov edi, dword [esi]
or ebx, eax
jmp 0x403bb3
mov ebx, dword [ebp + 0x10]
mov edx, dword [esi + 4]
jmp 0x403c9a
mov ebx, dword [ebp + 0x10]
jmp 0x403c64
cmp ebx, 0x110000
mov ebx, dword [ebp + 0x10]
cmove eax, ebx
mov edx, eax
jmp 0x403c9a
mov ebx, dword [ebp + 0x10]
jmp 0x403c9a
test cl, cl
mov edx, ebx
je 0x403c9a
nop word cs:[eax + eax]
nop dword [eax]
xor cl, 1
jne 0x403c80
jmp 0x403c95
test cl, cl
mov edx, ebx
je 0x403c9a
nop dword [eax]
xor cl, 1
jne 0x403c90
mov ebx, dword [ebp + 0x10]
mov edx, ebx
sub ebx, edx
test bl, 1
jne 0x403d0c
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 0xc4]
mov dword [esi + 0xc4], 0x110002
mov dword [esi + 0x118], 0xffffffff
add ecx, edx
lea edx, [esi + 0x1b]
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], 2
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], eax
lea ecx, [esi + 0x28]
push eax
push edx
push ecx
call fcn.00404410
add esp, 0xc
test al, 1
jne 0x403d16
mov edi, dword [esi + 0xc4]
cmp edi, 0x110002
jne 0x403e3e
xor edi, edi
mov edx, 1
xor ebx, ebx
jmp 0x403e28
mov edx, 0x110000
jmp 0x403e68
mov eax, dword [esi + 0x38]
mov ebx, edx
cmp dword [eax], 0x110002
jne 0x403d33
cmp dword [esi + 0x2c], 0
je 0x403d33
cmp dword [esi + 0x30], 0
je 0x404295
movzx eax, byte [0x43d189]
push 1
push 8
call fcn.00403500
add esp, 8
test eax, eax
je 0x40429f
mov ecx, dword [esi + 0x38]
movsd xmm0, qword [esi + 0x28]
movsd xmm1, qword [esi + 0x30]
mov dword [esi + 0x44], 8
mov dword [esi + 0x48], eax
mov byte [eax], bl
mov dword [esi], eax
mov dword [esi + 0x4c], 1
mov dword [esi + 4], 1
mov dword [esi + 0x68], ecx
movsd qword [esi + 0x60], xmm1
movsd qword [esi + 0x58], xmm0
jmp 0x403db4
push 1
push ebx
lea eax, [esi + 0x44]
push eax
call fcn.0042e870
add esp, 0xc
movzx edx, byte [esi]
mov eax, dword [esi + 0x48]
mov ebx, dword [esi + 4]
mov byte [eax + ebx], dl
inc ebx
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 0x4c], ebx
mov eax, dword [esi + 0x68]
mov dword [esi + 0x118], 0
push eax
lea eax, [esi + 0x1b]
push eax
lea eax, [esi + 0x58]
push eax
call fcn.00404410
add esp, 0xc
mov ebx, dword [esi + 4]
test al, 1
je 0x403e0b
cmp ebx, dword [esi + 0x44]
mov eax, dword [esi]
jne 0x403da8
mov eax, dword [esi + 0x68]
mov byte [esi], dl
cmp dword [eax], 0x110002
jne 0x403d90
cmp dword [esi + 0x5c], 0
je 0x403d90
cmp dword [esi + 0x60], 0
jne 0x403d90
push 0x4348b0
call fcn.0042faa0
add esp, 4
jmp 0x4042fd
mov edi, dword [esi + 0xc4]
mov eax, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
cmp edi, 0x110002
jne 0x403e46
cmp eax, 0x80000000
mov edi, eax
je 0x403e68
mov ecx, dword [ebp + 0x14]
cmp ebx, ecx
jne 0x403f03
mov eax, ecx
mov ebx, ecx
xor ecx, ecx
jmp 0x403ee0
mov ebx, dword [esi + 0xc8]
jmp 0x403e5c
mov ebx, dword [esi + 0xc8]
test eax, eax
je 0x403e5c
push 1
push eax
push edx
call fcn.00403510
add esp, 0xc
mov edx, edi
mov dword [esi + 0x118], 1
lea eax, [esi + 0x28]
mov dword [esi + 0x74], 0
mov dword [esi + 0x68], 0x20
mov byte [esi + 0x78], 3
mov dword [esi + 0x58], 0
mov dword [esi + 0x60], 0
lea ecx, [esi + 0x58]
mov dword [esi + 0x44], edx
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 1
mov dword [esi + 0x48], ebx
mov dword [esi + 0x30], 0
mov dword [esi + 0x118], 1
mov dword [esi + 0x6c], eax
lea eax, [esi + 0x44]
mov dword [esi + 0x70], 0x43470c
push ecx
push eax
call fcn.00404790
add esp, 8
test al, al
jne 0x40424f
mov edi, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
mov ebx, dword [esi + 0x30]
mov ecx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 8], edx
mov edx, dword [esi + 0x110]
mov dword [eax + 4], edi
mov dword [eax + 0xc], ebx
mov dword [eax], ecx
mov dword fs:[0], edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 0x10], edi
mov edi, 1
test ebx, ebx
mov dword [esi], edx
je 0x403f35
js 0x4042c3
movzx eax, byte [0x43d189]
push 1
push ebx
call fcn.00403500
add esp, 8
test eax, eax
je 0x4042c7
mov edx, dword [esi]
mov edi, eax
lea eax, [edx + ebx]
mov dword [esi + 8], eax
push ebx
push edx
push edi
call fcn.0042acb0
mov edx, dword [esi + 8]
mov ecx, dword [esi]
add esp, 0xc
lea eax, [edi + ebx]
mov dword [esi + 0xcc], edi
mov dword [esi + 0xd0], edi
mov dword [esi + 0xd4], ebx
test ebx, ebx
mov dword [esi + 0xd8], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0xdc], ecx
mov dword [esi + 0xe0], ecx
mov dword [esi + 0xe4], eax
mov eax, ebx
mov ebx, ecx
mov dword [esi + 0xe8], edx
mov dword [esi + 0xec], 0x1f
jne 0x40400f
mov ebx, 1
cmp edx, ecx
mov dword [esi + 4], eax
je 0x403fbd
movzx eax, byte [0x43d189]
push 1
push dword [esi + 4]
call fcn.00403500
add esp, 8
test eax, eax
je 0x4042e2
mov ebx, eax
push dword [esi + 4]
push edi
push ebx
call fcn.0042acb0
add esp, 0xc
mov eax, dword [esi + 0x10]
mov edi, dword [esi]
test eax, eax
je 0x403fdf
push 1
push eax
push edi
call fcn.00403510
add esp, 0xc
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [esi + 0xdc], ebx
mov ecx, edi
mov dword [esi + 0xe4], eax
add eax, ebx
cmp edx, edi
mov dword [esi + 0xe8], eax
jne 0x40400f
xor edi, edi
mov edx, 1
xor ebx, ebx
xor ecx, ecx
jmp 0x403ee0
lea eax, [ebx + 1]
mov dword [esi + 0xe0], eax
movzx eax, byte [ebx]
mov ebx, 7
mov byte [esi + 4], al
xor eax, eax
cmp ecx, edx
mov ecx, 0x1f
setne al
neg eax
cmp eax, 0x1f
cmovb ecx, eax
movzx eax, byte [0x43d189]
cmp ecx, 8
cmovae ebx, ecx
inc ebx
push 1
push ebx
call fcn.00403500
add esp, 8
test eax, eax
je 0x4042a8
movsd xmm1, qword [esi + 0xd4]
movsd xmm0, qword [esi + 0xcc]
mov edx, dword [esi + 0xec]
movsd xmm2, qword [esi + 0xe4]
movzx ecx, byte [esi + 4]
mov dword [esi + 0x28], ebx
xor ebx, ebx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 1
movsd qword [esi + 0x60], xmm1
movsd xmm1, qword [esi + 0xdc]
movsd qword [esi + 0x58], xmm0
mov dword [esi + 0x78], edx
movsd qword [esi + 0x70], xmm2
mov byte [eax], cl
movsd qword [esi + 0x68], xmm1
mov edi, dword [esi + 0x5c]
mov ecx, dword [esi + 0x64]
mov dword [esi + 0x40], ecx
sub ecx, edi
mov dword [esi + 8], edi
setne bl
mov dword [esi + 0x1c], ecx
neg ebx
mov dword [esi + 0x14], ebx
mov ebx, 1
jmp 0x4040e3
mov eax, dword [esi + 0x2c]
mov ebx, dword [esi]
mov edx, dword [esi + 4]
movzx ecx, byte [esi + 0x10]
mov byte [eax + ebx], cl
inc ebx
mov dword [esi + 0x30], ebx
sub edx, 1
jb 0x4041b8
mov dword [esi + 0x78], edx
mov edi, dword [esi + 0x6c]
cmp edi, dword [esi + 0x74]
jne 0x40416c
mov edi, dword [esi + 0x1c]
mov dword [esi], eax
mov dword [esi + 4], edx
test edi, edi
je 0x404124
js 0x40427b
movzx eax, byte [0x43d189]
push 1
push edi
call fcn.00403500
add esp, 8
test eax, eax
jne 0x404129
jmp 0x404271
mov eax, 1
push edi
push dword [esi + 8]
mov dword [esi + 0x24], eax
push eax
call fcn.0042acb0
add esp, 0xc
mov eax, dword [esi + 0x70]
test eax, eax
je 0x40414e
push 1
push eax
push dword [esi + 0x68]
call fcn.00403510
add esp, 0xc
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x40]
lea eax, [edx + edi]
mov dword [esi + 0x68], edx
mov dword [esi + 0x70], edi
mov edi, edx
cmp ecx, dword [esi + 8]
mov edx, dword [esi + 4]
mov dword [esi + 0x74], eax
mov eax, dword [esi]
je 0x4041b8
lea ecx, [edi + 1]
cmp ebx, dword [esi + 0x28]
mov dword [esi + 0x6c], ecx
movzx ecx, byte [edi]
jne 0x4040dc
mov byte [esi + 0x10], cl
mov ecx, dword [esi + 0x14]
mov eax, edx
mov dword [esi + 4], edx
mov dword [esi + 0x118], 4
cmp ecx, edx
cmovb eax, ecx
mov ecx, 1
inc eax
test edx, edx
cmove eax, ecx
push eax
mov dword [esi], ebx
push ebx
lea eax, [esi + 0x28]
push eax
call fcn.0042e870
add esp, 0xc
jmp 0x4040d0
mov eax, dword [esi + 0x60]
test eax, eax
je 0x4041cd
push 1
push eax
push dword [esi + 0x58]
call fcn.00403510
add esp, 0xc
mov eax, dword [esi + 0x70]
test eax, eax
je 0x4041e2
push 1
push eax
push dword [esi + 0x68]
call fcn.00403510
add esp, 0xc
mov edi, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
xor ecx, ecx
jmp 0x403ee0
mov dword [esi + 0x118], 0xffffffff
push 0x434818
push dword [esi]
push ecx
call fcn.0042f710
mov eax, dword [esi + 0x3c]
mov dword [esi + 0xb0], eax
mov ecx, dword [esi + 0xb0]
mov eax, dword [esi]
mov dword [esi + 0x118], 0xffffffff
add ecx, dword [esi + 4]
cmp eax, ecx
cmova ecx, eax
push 0x434828
push eax
push ecx
call fcn.0042f710
mov dword [esi + 0x118], 0xffffffff
push 0x434850
push edi
push eax
push edi
push dword [esi + 8]
call fcn.0042fa80
lea eax, [esi + 0x1b]
push 0x4347a8
push 0x434838
push eax
push 0x37
push str.a_Display_implementation_returned_an_error_unexpectedly_rustc_051478957371ee0084a7c0913941d2a8c4757bb9library_alloc_src_string.rs
call fcn.0042f8b0
add esp, 0x14
jmp 0x4042fd
mov eax, 1
mov dword [esi + 0x24], edi
jmp 0x40427d
xor eax, eax
mov dword [esi + 0x118], 4
push dword [esi + 0x24]
push eax
call fcn.0042f4a0
add esp, 8
jmp 0x4042fd
push 0x4348b0
call fcn.0042faa0
push 8
push 1
call fcn.0042f4a0
mov byte [esi + 0xf], 1
mov dword [esi + 0x118], 3
push ebx
push 1
call fcn.0042f4a0
add esp, 8
jmp 0x4042fd
xor eax, eax
jmp 0x4042cc
mov eax, 1
mov dword [esi + 0x118], 2
push ebx
push eax
call fcn.0042f4a0
add esp, 8
jmp 0x4042fd
mov byte [esi + 0xf], 1
mov dword [esi + 0x118], 3
push dword [esi + 4]
push 1
call fcn.0042f4a0
add esp, 8
ud2