Function at 0x402dc0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4217f9
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x42c080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x144]
call fcn.00402710
push ecx
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
push ecx
mov ecx, eax
call fcn.00406080
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x130]
cmp ecx, 7
jbe 0x402e50
mov edx, dword [ebp - 0x144]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402e46
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4031f3
push ecx
push edx
call fcn.00408111
add esp, 8
xor eax, eax
mov dword [ebp - 0x134], 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x130], 7
mov word [ebp - 0x144], ax
call fcn.00402890
push 0x20
call fcn.0040811f
push 0xb8
mov edi, eax
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00409bd0
add esp, 0xc
lea ecx, [ebp - 0x128]
call fcn.00404250
mov esi, 0x7fffffff
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x60]
mov eax, esi
sub eax, ecx
cmp eax, 0x10
jb 0x4031f8
cmp dword [ebp - 0x5c], 0xf
lea eax, [ebp - 0x70]
push 0x10
cmova eax, dword [ebp - 0x70]
push str.checksum.sha256
push ecx
push eax
push ecx
push dword [ebp - 0x12c]
lea ecx, [ebp - 0x144]
call fcn.00406da0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x144]
cmp dword [ebp - 0x130], 0xf
lea ecx, [ebp - 0x128]
cmova eax, dword [ebp - 0x144]
sub esp, 8
push eax
call fcn.00405290
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x130]
cmp ecx, 0xf
jbe 0x402f43
mov edx, dword [ebp - 0x144]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402f39
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4031fd
push ecx
push edx
call fcn.00408111
add esp, 8
cmp dword [ebp - 0xcc], 0
je 0x403112
sub esp, 8
lea ecx, [ebp - 0x128]
push edi
call fcn.00404480
lea ecx, [ebp - 0x118]
call fcn.004051b0
test eax, eax
jne 0x402f97
mov eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x128]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00402060
mov ecx, dword [ebp - 0x60]
sub esi, ecx
cmp esi, 0x19
jb 0x403202
cmp dword [ebp - 0x5c], 0xf
lea eax, [ebp - 0x70]
push 0x19
cmova eax, dword [ebp - 0x70]
push str.hacktooth_crackme_4.exe
push ecx
push eax
push ecx
push dword [ebp - 0x12c]
lea ecx, [ebp - 0x15c]
call fcn.00406da0
mov edx, edi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x15c]
call fcn.00402c50
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x148]
cmp ecx, 0xf
jbe 0x40301a
mov edx, dword [ebp - 0x15c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403010
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403207
push ecx
push edx
call fcn.00408111
add esp, 8
push edi
call fcn.004080dc
push 0x12
call fcn.0040811f
mov ebx, eax
mov edi, 0x429190
add esp, 8
xor esi, esi
sub edi, ebx
mov ecx, esi
lea edx, [ebx + esi]
and ecx, 0xf
inc esi
mov al, byte [ecx + str.cw]
xor al, byte [edi + edx]
mov byte [edx], al
cmp esi, 0x11
jb 0x403035
mov edx, str.::Hacktooth_crackme_4_n_n
mov byte [ebx + 0x11], 0
mov ecx, 0x42d0e8
call fcn.004060b0
mov edx, str.Insert_your_username:
mov ecx, 0x42d0e8
call fcn.004060b0
sub esp, 8
lea eax, [ebp - 0x58]
push eax
call fcn.00404740
call fcn.00402bf0
mov edx, str.Insert_your_serial:
mov ecx, 0x42d0e8
call fcn.004060b0
sub esp, 8
lea eax, [ebp - 0x34]
push eax
call fcn.00404740
call fcn.00402bf0
mov ecx, ebx
lea eax, [ebp - 0x34]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4030c6
test dl, dl
je 0x4030c2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4030c6
add eax, 2
add ecx, 2
test dl, dl
jne 0x4030a6
xor eax, eax
jmp 0x4030cb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4030ef
mov edx, str.License_to:
mov ecx, 0x42d0e8
call fcn.004060b0
lea edx, [ebp - 0x58]
mov ecx, eax
call fcn.004060b0
mov edx, 0x429114
jmp 0x4030f9
mov eax, 0x42d0e8
mov edx, str.Serial_not_valid__n
mov ecx, eax
call fcn.004060b0
push ebx
call fcn.004080dc
add esp, 4
call fcn.004047e0
xor esi, esi
jmp 0x40312f
mov edx, str.::ERROR:_Could_not_open_checksum_file.
mov ecx, 0x42d290
call fcn.004060b0
push eax
call fcn.00406350
add esp, 4
mov esi, 1
mov eax, dword [ebp - 0x128]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x12c], eax
lea ecx, [ebp - 0x118]
call fcn.00403ee0
mov eax, dword [ebp - 0x128]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x12c], eax
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 6
push eax
mov dword [ebp - 0xb8], vtable.std::ios_base.0
call fcn.004079e4
mov ecx, dword [ebp - 0x5c]
add esp, 4
cmp ecx, 0xf
jbe 0x4031d5
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4031cb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40320c
push ecx
push edx
call fcn.00408111
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004080ce
mov esp, ebp
pop ebp
ret
call fcn.0040eac9
call fcn.00401370
call fcn.0040eac9
call fcn.00401370
call fcn.0040eac9
call fcn.0040eac9
int3