Function at 0x402bd7
Capabilities:
Authenticate hmac
Create thread
Encrypt data using speck
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, dword [ebp + 8]
push ebx
push esi
mov eax, ecx
xor edx, edx
mov esi, 0x110
div esi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push edi
lea edi, [ebx - 0x2f8]
mov esi, edx
add esi, ecx
cmp eax, 0x1e
jne 0x402c12
mov esi, ebx
imul esi, edi
or si, 0x1c1
jmp 0x402ce3
cmp eax, 0x63
jne 0x402c21
mov edi, 0x4286
jmp 0x402ce3
cmp eax, 0x1040
jne 0x402cbc
cmp ebx, 0x36
jne 0x402c4b
mov eax, 0x3af
xor edx, edx
div ecx
push 0x1158
push edx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
jmp 0x402ce3
cmp ebx, 0xaba
jne 0x402c60
mov eax, 0x44413d
mov dword [ebp - 8], eax
jmp 0x402ce3
cmp ebx, 0x3c
jae 0x402c6c
mov edi, 0x2fc
jmp 0x402ce3
cmp ebx, 0x16
jb 0x4035c3
cmp ebx, 0x23
jne 0x402caf
movzx edx, di
imul edx, edx, 0xffffff96
movzx eax, si
and edx, 0x356
xor edx, eax
push edx
lea edx, [eax + 0x244]
push edx
movzx edx, di
push edx
push ecx
sub ecx, eax
and ecx, 0xb3
xor ecx, 0x3e5
push ecx
call dword [sym.imp.KERNEL32.dll_LockFile]
jmp 0x402ce3
cmp ebx, 0x17
ja 0x402ce3
xor esi, 0x21d
jmp 0x402ce3
cmp eax, 0x5f
ja 0x402cd1
movzx eax, si
xor edx, edx
div eax
mov edi, eax
or di, 0x3ff
jmp 0x402ce3
cmp eax, 0x4d
jae 0x402ce3
mov esi, 0x34b
sub esi, edi
xor esi, 0x14e
mov eax, ebx
xor edx, edx
mov ebx, 0x2c6
div ebx
mov eax, dword [ebp - 8]
movzx ecx, di
movzx esi, si
and edx, ecx
lea eax, [eax + edx + 0x483]
xor edx, edx
mov dword [ebp - 8], eax
mov eax, 0x346
div esi
mov esi, edx
add esi, edi
xor esi, 0x8f
cmp dword [ebp + 0x10], 0x1040
jne 0x402db8
cmp si, 0x3f
ja 0x402d47
mov edx, dword [ebp + 8]
mov eax, 0x1040
push eax
push dword [ebp + 0xc]
lea ebx, [edx + 0x83]
push ebx
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x402db8
cmp si, 0x26
jae 0x402d61
mov eax, dword [ebp + 8]
add eax, 0x10d
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
jmp 0x402db8
cmp si, 0x5a
jae 0x402d75
mov eax, 0x3c5
xor edx, edx
div dword [ebp + 8]
xor edi, eax
jmp 0x402db8
cmp si, 0x4f
ja 0x402d84
mov ax, 0x1040
jmp 0x4035be
cmp si, 0xb87
jne 0x402db8
cmp dword [ebp + 0xc], 0x18
ja 0x402d9c
mov esi, dword [ebp + 8]
xor esi, 0xcb2
jmp 0x402db8
cmp dword [ebp + 0xc], 0x2a
jae 0x402da9
mov esi, 0xa480
jmp 0x402db8
cmp dword [ebp + 0xc], 0xaba
jne 0x402db8
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, 0x7c2
cmp eax, 0x24
jbe 0x402e1b
cmp eax, 0x1c
jne 0x402dd7
mov eax, dword [ebp + 0x10]
lea edi, [eax - 0x1f1]
or edi, eax
jmp 0x402e1b
cmp eax, 0x20
jb 0x402e1b
cmp eax, 0x4c
jb 0x4035ce
cmp eax, 0xa682
jne 0x402e0d
cmp di, 0x52
jbe 0x402e1b
cmp di, 0x5b
jb 0x402e1b
cmp di, 0x59
jb 0x402e1b
cmp di, cx
jne 0x402e1b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
jmp 0x402e1b
cmp eax, 5
jae 0x402e1b
mov edi, dword [ebp + 0x10]
imul edi, edi, 0x177
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
cmp ebx, 0xaba
mov dword [ebp - 0x14], eax
jne 0x402e34
mov eax, 0x4438c3
mov dword [ebp - 8], eax
mov eax, ebx
xor edx, edx
mov esi, 0x29b
div esi
mov esi, eax
xor esi, ebx
cmp di, 0x24
mov dword [ebp - 0x18], esi
jae 0x402e57
mov esi, dword [ebp + 0x10]
and esi, 0x1e4
jmp 0x402e90
cmp di, cx
jne 0x402eae
cmp si, 0xabe
jne 0x402e7c
mov eax, 0x83
xor edx, edx
div dword [ebp + 8]
mov ecx, dword [ebp - 8]
lea eax, [ecx + eax + 0x6c3]
mov dword [ebp - 8], eax
jmp 0x402ec2
cmp si, 0x5d
jae 0x402e95
mov eax, dword [ebp + 0x10]
xor edx, edx
div ecx
mov esi, eax
or si, 0x398
mov dword [ebp - 0x18], esi
jmp 0x402ec2
cmp si, 8
jbe 0x402ec2
cmp si, 0x5a
jae 0x402ec2
mov esi, dword [ebp + 8]
sub esi, ebx
add esi, 0x246
jmp 0x402e90
cmp di, 0x22
jae 0x402ec2
mov eax, dword [ebp + 0x10]
or ax, 0x1aa
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov eax, ecx
mov ebx, dword [ebp - 8]
imul eax, eax, 0x29b
movzx edi, si
or di, 0x256
mov dword [ebp - 0xc], ebx
div edi
mov edi, eax
mov eax, 0xabe
cmp si, ax
jne 0x402f90
cmp dword [ebp + 8], 0xa682
jne 0x402fa9
cmp ecx, 0x63
jne 0x402f2b
movzx ecx, di
mov eax, 0x20c
xor edx, edx
div ecx
sub edx, 0xabe
push edx
push 0xa682
push dword [ebp + 0xc]
push 0x2b
push 0xabf
call dword [sym.imp.KERNEL32.dll_UnlockFileEx]
jmp 0x402fa9
cmp ecx, 0x26
jne 0x402f45
movzx eax, di
xor edx, edx
mov ecx, 0xd7
div ecx
mov esi, 0x3d9a
sub esi, edx
jmp 0x402f5e
cmp ecx, 0x56
jne 0x402f63
movzx eax, di
xor edx, edx
mov ecx, 0x26c
div ecx
mov esi, edx
and esi, 0x296
mov dword [ebp - 0x18], esi
jmp 0x402fa9
cmp ecx, 0x2e
je 0x4035c8
cmp ecx, 0x1040
jne 0x402f86
movzx eax, di
or eax, 0x1953c0
sub eax, 0x18f84a
mov dword [ebp - 8], eax
jmp 0x402fa9
cmp ecx, 0x20
jae 0x402fa9
jmp 0x4035be
cmp si, 0x17
jne 0x402fa9
mov eax, ecx
xor edx, edx
mov ecx, 0x317
div ecx
sub edi, edx
xor edi, 0x13b
mov eax, dword [ebx]
xor edi, 0x6e
sub eax, dword [ebp - 8]
mov dword [ebp - 0x28], edi
je 0x40315a
mov ecx, dword [ebp + 0xc]
cmp ecx, 0xaba
jne 0x402fca
mov dword [ebp - 0x10], eax
jmp 0x40301c
cmp ecx, 0x20
jb 0x40301c
cmp ecx, 0x58
jb 0x4035ba
cmp ecx, 0x47
jae 0x40301c
mov al, cl
mov dl, 0x87
imul dl
movzx eax, al
push eax
mov eax, ecx
xor edx, edx
mov edi, 0x1b2
div edi
mov esi, dword [ebp + 8]
lea eax, [ecx + ecx - 0x2df]
push esi
lea ecx, [esi + 0x15b]
xor edx, 0x11f
push edx
push eax
mov eax, esi
xor eax, 0x1c4
or eax, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp - 0xc]
and dword [ebp - 0x20], 0
mov eax, dword [eax + 4]
sub eax, dword [ebp - 8]
je 0x4030d3
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, 0x1db
mov bl, byte [ebp + 8]
div ecx
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
add bl, 0x61
mov esi, edx
xor esi, dword [ebp + 0xc]
xor esi, 0x24b
sub eax, edi
mov dword [ebp - 0x24], eax
mov eax, 0xaba
cmp dword [ebp + 0xc], eax
jne 0x4030c1
cmp si, 0x999
jne 0x40308b
cmp dword [ebp + 8], 0xe
jb 0x4035be
cmp dword [ebp + 8], 0x5c
jb 0x4030c1
cmp dword [ebp + 8], 0xa682
jne 0x4030c1
mov eax, dword [ebp - 0x24]
mov al, byte [eax + edi]
mov byte [edi], al
jmp 0x4030c1
cmp si, 0x14
jb 0x4030c1
cmp si, 0x1e
jb 0x40318c
cmp si, 0x21
jbe 0x4035ce
cmp si, 0x24
jae 0x4030c1
mov ecx, dword [ebp + 0x10]
push ecx
push ecx
push dword [ebp + 8]
add ecx, 0x704
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LockFile]
mov eax, dword [ebp - 0xc]
inc dword [ebp - 0x20]
inc edi
mov eax, dword [eax + 4]
sub eax, dword [ebp - 8]
cmp dword [ebp - 0x20], eax
jb 0x403057
mov edx, dword [ebp + 0x10]
mov al, dl
or al, 0xce
cmp al, 8
jb 0x403195
cmp al, 0x44
je 0x403109
cmp al, 0xce
jne 0x4030f8
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 4]
sub ecx, dword [ebp - 8]
add dword [ebp - 0x1c], ecx
jmp 0x403109
cmp al, 0x35
jb 0x40319e
cmp al, 0x42
jae 0x403109
mov al, byte [ebp + 8]
and al, 0xaa
mov cl, 0x42
sub cl, dl
cmp cl, 0x39
je 0x40319e
cmp cl, 0x42
ja 0x403146
cmp cl, 2
jne 0x403146
mov ecx, dword [ebp + 8]
cmp ecx, 0x50
jbe 0x403146
cmp ecx, 0x22
jb 0x403146
cmp ecx, 0x4c
jb 0x403146
cmp ecx, 0xa682
jne 0x403146
cmp al, 0x61
jb 0x403146
cmp al, 0xce
jne 0x403146
add dword [ebp - 0xc], 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
sub eax, dword [ebp - 8]
jne 0x402fba
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
movzx ecx, di
movzx eax, si
xor edx, edx
div ecx
xor edx, edx
mov ecx, 0x225
div ecx
mov esi, edx
sub esi, 0x34d
cmp di, 0x3b4
jne 0x4031b5
cmp si, 0x1b
jae 0x4031a6
mov esi, dword [ebp + 0xc]
or si, 0x166
jmp 0x4031df
movzx ax, bl
jmp 0x4035be
movzx ax, al
jmp 0x4035be
mov ax, dx
jmp 0x4035be
cmp si, 0xfcb5
jne 0x4031df
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
jmp 0x4031df
cmp di, 0x36
jbe 0x4031df
cmp di, 0x4b
jb 0x4031df
cmp di, 0x5d
jae 0x4031cf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
jmp 0x4031df
cmp di, 0x33
jne 0x4031df
mov eax, 0x2cc
sub eax, dword [ebp + 0xc]
add esi, eax
mov eax, dword [ebp + 8]
xor edx, edx
movzx ecx, si
div ecx
xor eax, 0x55
cmp ax, 0x13
je 0x403240
cmp ax, 0x34
je 0x403240
cmp ax, 0x55
jne 0x40321c
mov eax, dword [ebp + 0x10]
xor edx, edx
div dword [ebp + 8]
add edx, 0x339
or dx, 0x3ad
add edx, 0x36b9f
mov dword [ebp - 8], edx
jmp 0x403240
cmp ax, 0x43
jb 0x403240
cmp ax, 0x58
jbe 0x403240
mov ecx, dword [ebp + 0x10]
movzx eax, ax
sub ecx, eax
sub ecx, 0xba4be
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
and dword [ebp - 0x20], 0
cmp dword [ebp - 8], 0
jbe 0x4035ba
mov eax, dword [ebp + 0x10]
xor edx, edx
div dword [ebp + 0xc]
xor edx, edx
mov ecx, 0x8a
div ecx
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x28]
cmp cx, 0x38
jb 0x4032a9
cmp cx, 0xa
jae 0x403284
push 0x5c
mov eax, ecx
xor edx, edx
pop esi
div esi
mov ebx, eax
or ebx, 0x34
jmp 0x4032a9
cmp cx, 0x1040
jne 0x4032a9
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
or ax, 0x11e6
mov al, byte [eax + ecx - 0x11e6]
push eax
call fcn.0040279c
pop ecx
mov byte [ebp - 1], al
mov ecx, dword [ebp + 0x10]
cmp ecx, 4
jb 0x4035c8
cmp ecx, 0x1040
jne 0x4032cf
mov ecx, dword [ebp - 0x14]
movzx eax, bx
mov al, byte [eax + ecx]
push eax
call fcn.0040279c
pop ecx
mov byte [ebp - 2], al
jmp 0x4032d7
cmp ecx, 0x47
jne 0x4032d7
push 3
pop ebx
mov eax, dword [ebp + 8]
xor edx, edx
div dword [ebp + 0x10]
mov edi, 0xa682
mov esi, edx
xor esi, 0x4e
cmp dword [ebp + 8], 0x44
jbe 0x4033c4
cmp dword [ebp + 8], edi
jne 0x4033b5
mov eax, dword [ebp + 0xc]
cmp eax, 0x5b
jb 0x4035c3
cmp eax, 0x43
jbe 0x4035be
cmp eax, 0x1b
je 0x4033c4
cmp eax, 0x56
jne 0x403359
mov eax, dword [ebp + 0x10]
xor edx, edx
add eax, 0xfffffcee
push eax
movzx eax, bx
mov ebx, 0x16d
div ebx
movzx ecx, si
mov eax, ecx
add edx, 0x68
push edx
xor edx, edx
div dword [ebp + 0x10]
push ecx
sub eax, 0x145
xor eax, 0x1ec
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LockFile]
jmp 0x4033c4
cmp eax, 0xaba
jne 0x4033c4
movzx edi, si
mov ecx, edi
mov dl, byte [ebp - 1]
imul ecx, dword [ebp + 0x10]
imul ecx, ecx, 0x333
mov al, byte [ebp - 2]
add ecx, 0x209df702
shl dl, cl
mov cl, byte [ebp + 0x10]
and cl, 0x22
add cl, 4
shr al, cl
mov ecx, 0x22d
or dl, al
mov eax, edi
mov byte [ebp - 3], dl
xor edx, edx
div ecx
movzx ecx, bx
mov edi, 0xa682
mov eax, edx
xor edx, edx
div ecx
mov ecx, dword [ebp - 0x10]
mov dl, byte [ebp - 3]
mov byte [eax + ecx - 0x21f], dl
jmp 0x4033c4
cmp dword [ebp + 8], 0x55
jae 0x4033c4
mov esi, dword [ebp + 0xc]
and esi, 0x1c2
mov eax, esi
and eax, 0x321
cmp si, 0x61
mov dword [ebp - 0x1c], eax
jb 0x4035c8
mov eax, 0x44c
cmp si, ax
jne 0x403413
cmp dword [ebp + 8], 0xd
jb 0x4035be
cmp dword [ebp + 8], edi
jne 0x403431
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, edi
div ecx
mov eax, dword [ebp - 0x14]
and edx, 0x11f
mov al, byte [edx + eax - 0x18]
push eax
call fcn.0040279c
pop ecx
mov byte [ebp - 1], al
jmp 0x403431
cmp si, 0x13
jb 0x4035ce
cmp si, 0x1f
jb 0x4035ba
cmp si, 0x1b
jb 0x4035ba
cmp dword [ebp + 0x10], 0x1040
mov ebx, dword [ebp + 8]
jne 0x403469
mov al, byte [ebp - 2]
mov ecx, ebx
and ecx, 0x100
mov dl, byte [ebp - 1]
xor ecx, 0x2ba
sub ecx, 0x2b6
shl al, cl
mov cl, byte [ebp - 0x1c]
add cl, 2
shr dl, cl
mov ecx, dword [ebp - 0x10]
or al, dl
mov byte [ecx + 1], al
mov esi, dword [ebp + 0xc]
xor esi, dword [ebp + 0x10]
xor esi, 0x37a
cmp ebx, 0x51
ja 0x4034a3
mov eax, ebx
xor edx, edx
movzx ecx, word [ebp - 0x1c]
imul eax, eax, 0x3cade
xor eax, ecx
mov ecx, 0x26e
push eax
mov eax, ebx
imul eax, eax, 0x20b
div ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
jmp 0x4034c9
cmp ebx, edi
jne 0x4034c9
push 0x16
xor edx, edx
pop eax
div dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
imul edx, edx, 0x323
mov al, byte [edx + eax - 0x44ff]
push eax
call fcn.0040279c
pop ecx
mov byte [ebp - 2], al
cmp ebx, 0x28
lea edi, [esi + 0x209]
ja 0x4034ef
push dword [ebp + 0xc]
movzx eax, si
push eax
movzx eax, di
or ax, 0x15c
push eax
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LockFile]
jmp 0x403526
cmp ebx, 0xa682
jne 0x403526
mov eax, dword [ebp + 0x10]
mov dl, byte [ebp - 1]
mov ecx, edi
and ecx, 0x23b
or ecx, eax
add eax, 0xfffffe42
sub ecx, 0x1243
shl dl, cl
mov ecx, dword [ebp - 0x10]
or dl, byte [ebp - 2]
and eax, 0x29c
mov byte [eax + ecx - 0x27e], dl
lea eax, [edi + 0xe8]
cmp ax, 0x27
jb 0x40359a
cmp ax, 0x1c71
jne 0x40353e
add dword [ebp - 0x10], 3
jmp 0x40359a
cmp ax, 0x11
jb 0x40359a
cmp ax, 0x5f
ja 0x40359a
mov edx, dword [ebp + 0x10]
mov esi, 0x1aa
movzx eax, ax
xor edx, 0x102
push edx
mov edx, eax
movzx ecx, di
xor edx, 0xb
push edx
mov edx, ecx
imul edx, dword [ebp + 0xc]
and edx, 0x11a
push edx
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x2d2
xor edx, ecx
add ecx, 0x93
push edx
xor edx, edx
div esi
or eax, ecx
push eax
mov eax, dword [ebp + 0x10]
xor eax, 0xd0
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
add dword [ebp - 0x20], 4
lea eax, [eax + ecx - 0x103c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 8]
jb 0x403262
mov ax, word [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret
mov ax, di
jmp 0x4035be
mov ax, word [ebp + 0xc]
jmp 0x4035be
mov ax, si
jmp 0x4035be