Function at 0x405310
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xac
mov ecx, dword [esp + 0xc0]
test ecx, ecx
je 0x405bd2
mov dword [esp], str.Twatty_mcfuckalot
lea edi, [esp + 0x7c]
call sym._puts
xor eax, eax
mov ecx, 9
rep stosd dword es:[edi], eax
lea eax, [esp + 0x7c]
mov dword [esp + 4], 0x4265e9
mov dword [esp + 0x20], eax
lea eax, [esp + 0x80]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x84]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x90]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x88]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x66]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc0]
mov dword [esp], eax
call sym._sscanf.constprop.0
cmp eax, 7
jne 0x40543c
mov eax, dword [esp + 0x90]
mov dword [esp + 4], 0x42661f
lea edx, [eax - 0x76c]
mov dword [esp + 0x90], edx
cdq
shr edx, 0x1e
add eax, edx
and eax, 3
sub eax, edx
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x70]
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x405bf5
lea eax, [esp + 0x70]
mov dword [esp + 4], 0x426623
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x405c05
mov dword [esp + 0x8c], 1
lea eax, [esp + 0x7c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_mktime]
mov eax, dword [esp + 0x90]
mov ebp, dword [esp + 0x88]
lea ebx, [eax + 0x76c]
mov eax, dword [esp + 0x8c]
lea esi, [eax + 1]
jmp 0x405448
mov dword [esp], 0x42664f
call sym._puts
mov dword [esp], 0x1e
call sym._malloc
mov dword [esp + 0x4c], eax
test eax, eax
je sym._dga_main.cold
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x14], ebx
lea ebx, [esp + 0x5a]
mov dword [esp], esi
mov dword [esp + 0xc], ebp
mov dword [esp + 8], str._02d__02d__02d
mov dword [esp + 4], 0x1e
call sym._snprintf.constprop.0
movsx eax, byte [esi + 4]
mov dword [esp + 0xc], eax
movsx eax, byte [esi + 3]
mov dword [esp + 4], str._c_c
mov dword [esp + 8], eax
lea eax, [esp + 0x5c]
mov dword [esp], eax
call sym._sprintf_5
movsx eax, byte [esi + 1]
mov dword [esp + 0xc], eax
movsx eax, byte [esi]
mov dword [esp + 4], str._c_c
mov dword [esp + 8], eax
lea eax, [esp + 0x66]
mov dword [esp], eax
call sym._sprintf_5
movsx eax, byte [esi + 9]
mov dword [esp + 0x14], eax
movsx eax, byte [esi + 8]
mov dword [esp + 0x10], eax
movsx eax, byte [esi + 7]
mov dword [esp + 0xc], eax
movsx eax, byte [esi + 6]
mov dword [esp + 4], str._c_c_c_c
mov dword [esp + 8], eax
lea eax, [esp + 0x7c]
mov dword [esp], eax
call sym._sprintf_5
mov dword [esp], 0x2dc6c0
call sym._malloc
mov dword [esp], esi
mov edx, 0x2d
xor esi, esi
mov dword [esp + 4], ebx
mov dword [esp + 0x40], eax
mov word [esp + 0x5a], dx
call sym._strtok
test eax, eax
je 0x405553
add esi, 1
mov dword [esp + esi*4 + 0x6c], eax
mov dword [esp + 4], ebx
mov dword [esp], 0
call sym._strtok
test eax, eax
je 0x405553
cmp esi, 2
jle 0x405533
mov edi, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
xor ebx, ebx
lea esi, [esi]
mov dword [esp], edi
lea ebp, [ebx + 1]
call sym._atoi
mov dword [esp], esi
cmp eax, 0xe
jg 0x4055a0
call sym._atoi
lea ebx, [eax + ebp]
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call sym._atoi
add ebx, eax
mov dword [ebp*4 + 0x447cdc], ebx
cmp ebp, 0x1e
je 0x4055c3
mov ebx, ebp
jmp 0x405560
call sym._atoi
lea ebx, [ebx + eax + 0xf]
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call sym._atoi
add eax, ebx
mov dword [ebp*4 + 0x447cdc], eax
cmp ebp, 0x1e
jne 0x405595
mov dword [esp + 0x3c], 0
mov esi, dword [sym.imp.msvcrt.dll_tolower]
lea esi, [esi]
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], 0x426592
mov eax, dword [eax*4 + 0x447ce0]
mov dword [esp + 8], eax
lea eax, [esp + 0x70]
mov dword [esp], eax
call sym._sprintf.constprop.1
lea eax, [esp + 0x70]
mov dword [esp], eax
call sym._SHA256
mov dword [esp], eax
mov ebx, eax
call sym._strlen
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._base64_encode
mov dword [esp], eax
mov ebx, eax
call sym._strlen
mov dword [esp + 0x48], eax
add eax, 1
mov dword [esp], eax
call sym._malloc
mov ebp, eax
test eax, eax
je 0x405c59
xor edi, edi
lea esi, [esi]
movsx eax, byte [ebx + edi]
mov dword [esp], eax
call esi
mov byte [ebp + edi], al
add edi, 1
cmp edi, 0x28
jne 0x405648
mov eax, dword [esp + 0x48]
mov byte [ebp + 0x28], 0
test eax, eax
je 0x40568e
movzx eax, byte [ebp]
cmp al, 0x2f
je 0x405686
cmp al, 0x62
je 0x405686
sub eax, 0x2b
cmp al, 0x12
ja 0x40568a
mov ecx, 0x47fe1
bt ecx, eax
jae 0x40568a
mov byte [ebp], 0x61
mov dword [esp + 0x44], ebp
mov dword [esp], 0x44c
call sym._malloc
mov dword [esp + 4], 0x42658f
mov ebx, eax
mov eax, dword [esp + 0x44]
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._sprintf.constprop.0_1
lea eax, [esp + 0x7c]
mov dword [esp], str.Butt_Control_d_m_y:__s__s__s
mov dword [esp + 0xc], eax
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
lea eax, [esp + 0x66]
mov dword [esp + 4], eax
call sym._printf.constprop.2
mov edi, dword [esp + 0x3c]
mov dword [esp], str.Control_i:__d_n
mov dword [esp + 4], edi
call sym._printf.constprop.1
test edi, edi
je 0x4057f0
cmp dword [esp + 0x3c], 1
je 0x405940
cmp dword [esp + 0x3c], 2
je 0x405a88
cmp dword [esp + 0x3c], 3
je 0x405a46
cmp dword [esp + 0x3c], 4
je 0x405a04
cmp dword [esp + 0x3c], 5
je 0x4059c2
cmp dword [esp + 0x3c], 6
je 0x405980
cmp dword [esp + 0x3c], 7
jne 0x405849
lea eax, [esp + 0x7c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x66]
mov dword [esp + 8], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call sym._gen_trad_tld
mov dword [esp + 4], 0x42658f
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
add eax, 0x2bc
mov dword [esp], eax
call sym._sprintf.constprop.0_1
nop
mov eax, dword [esp + 0x40]
mov dword [esp], str.New_TLD:__s_n
mov dword [esp + 4], eax
call sym._printf.constprop.0_1
mov dword [esp], sym._gen_trad_tld
call sym._free
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sym._free
mov dword [esp], ebx
call sym._free
add dword [esp + 0x3c], 1
mov eax, dword [esp + 0x3c]
cmp eax, 0x14
jne 0x4055d8
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call sym._free
mov eax, dword [esp + 0xc0]
mov dword [esp], eax
call sym._free
mov eax, dword [esp + 0x40]
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.Test_this_fucker
call sym._puts
lea eax, [esp + 0x7c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x66]
mov dword [esp + 8], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call sym._gen_trad_tld
mov edi, dword [esp + 0x40]
mov dword [esp + 4], 0x42658f
mov dword [esp + 8], eax
mov dword [esp], edi
call sym._sprintf.constprop.0_1
mov dword [esp + 4], edi
mov dword [esp], str.TLD1:__s_n
call sym._printf_4
jmp 0x405780
cmp dword [esp + 0x3c], 8
je 0x405b90
cmp dword [esp + 0x3c], 9
je 0x405b4e
cmp dword [esp + 0x3c], 0xa
je 0x405b0c
cmp dword [esp + 0x3c], 0xb
je 0x405aca
cmp dword [esp + 0x3c], 0xc
je 0x405c78
cmp dword [esp + 0x3c], 0xd
je 0x405e3a
cmp dword [esp + 0x3c], 0xe
je 0x405df8
cmp dword [esp + 0x3c], 0xf
je 0x405db6
cmp dword [esp + 0x3c], 0x10
je 0x405d74
cmp dword [esp + 0x3c], 0x11
je 0x405d35
cmp dword [esp + 0x3c], 0x12
je 0x405cba
cmp dword [esp + 0x3c], 0x13
jne 0x405780
lea eax, [esp + 0x7c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x66]
mov dword [esp + 8], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call sym._gen_trad_tld
mov esi, dword [esp + 0x40]
mov dword [esp + 4], 0x42658f
mov dword [esp + 8], eax
lea eax, [esi + 0x76c]
mov dword [esp], eax
call sym._sprintf.constprop.0_1
mov dword [esp + 4], esi
mov dword [esp], str.New_TLD:__s_n
call sym._printf.constprop.0_1
mov dword [esp], sym._gen_trad_tld
call sym._free
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sym._free
mov dword [esp], ebx
call sym._free
jmp 0x4057c6
lea eax, [esp + 0x7c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x66]
mov dword [esp + 8], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call sym._gen_trad_tld
mov dword [esp + 4], 0x42658f
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
add eax, 0x64
mov dword [esp], eax
call sym._sprintf.constprop.0_1
jmp 0x405780
lea eax, [esp + 0x7c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x66]
mov dword [esp + 8], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call sym._gen_trad_tld
mov dword [esp + 4], 0x42658f
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
add eax, 0x258
mov dword [esp], eax
call sym._sprintf.constprop.0_1
jmp 0x405780
lea eax, [esp + 0x7c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x66]
mov dword [esp + 8], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call sym._gen_trad_tld
mov dword [esp + 4], 0x42658f
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
add eax, 0x1f4
mov dword [esp], eax
call sym._sprintf.constprop.0_1
jmp 0x405780
lea eax, [esp + 0x7c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x66]
mov dword [esp + 8], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call sym._gen_trad_tld
mov dword [esp + 4], 0x42658f
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
add eax, 0x190
mov dword [esp], eax
call sym._sprintf.constprop.0_1
jmp 0x405780
lea eax, [esp + 0x7c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x66]
mov dword [esp + 8], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call sym._gen_trad_tld
mov dword [esp + 4], 0x42658f
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
add eax, 0x12c
mov dword [esp], eax
call sym._sprintf.constprop.0_1
jmp 0x405780
lea eax, [esp + 0x7c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x66]
mov dword [esp + 8], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call sym._gen_trad_tld
mov dword [esp + 4], 0x42658f
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
add eax, 0xc8
mov dword [esp], eax
call sym._sprintf.constprop.0_1
jmp 0x405780
lea eax, [esp + 0x7c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x66]
mov dword [esp + 8], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call sym._gen_trad_tld
mov dword [esp + 4], 0x42658f
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
add eax, 0x44c
mov dword [esp], eax
call sym._sprintf.constprop.0_1
jmp 0x405780
lea eax, [esp + 0x7c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x66]
mov dword [esp + 8], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call sym._gen_trad_tld
mov dword [esp + 4], 0x42658f
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
add eax, 0x3e8
mov dword [esp], eax
call sym._sprintf.constprop.0_1
jmp 0x405780
lea eax, [esp + 0x7c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x66]
mov dword [esp + 8], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call sym._gen_trad_tld
mov dword [esp + 4], 0x42658f
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
add eax, 0x384
mov dword [esp], eax
call sym._sprintf.constprop.0_1
jmp 0x405780
lea eax, [esp + 0x7c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x66]
mov dword [esp + 8], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call sym._gen_trad_tld
mov dword [esp + 4], 0x42658f
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
add eax, 0x320
mov dword [esp], eax
call sym._sprintf.constprop.0_1
jmp 0x405780
mov dword [esp], str.Failed_to_get_the_date_from_the_server._n
call sym._printf_4
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x40]
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x8c], 0
jmp 0x40540f
lea eax, [esp + 0x70]
mov dword [esp + 4], 0x426627
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x405c49
lea eax, [esp + 0x70]
mov dword [esp + 4], 0x42662b
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x405e7c
mov dword [esp + 0x8c], 3
jmp 0x40540f
mov dword [esp + 0x8c], 2
jmp 0x40540f
mov dword [esp], str.Error:_Memory_allocation_failed._n
call sym._printf_4
mov dword [esp + 0x44], 0
jmp 0x40568e
lea eax, [esp + 0x7c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x66]
mov dword [esp + 8], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call sym._gen_trad_tld
mov dword [esp + 4], 0x42658f
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
add eax, 0x4b0
mov dword [esp], eax
call sym._sprintf.constprop.0_1
jmp 0x405780
lea eax, [esp + 0x7c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x66]
mov dword [esp + 8], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call sym._gen_trad_tld
mov dword [esp + 4], 0x42658f
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
add eax, 0x708
mov dword [esp], eax
call sym._sprintf.constprop.0_1
mov eax, dword [esp + 0x40]
mov dword [esp], str.New_TLD:__s_n
mov dword [esp + 4], eax
call sym._printf.constprop.0_1
mov dword [esp], sym._gen_trad_tld
call sym._free
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sym._free
mov dword [esp], ebx
call sym._free
add dword [esp + 0x3c], 1
jmp 0x4055d8
lea eax, [esp + 0x7c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x66]
mov dword [esp + 8], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call sym._gen_trad_tld
mov dword [esp + 4], 0x42658f
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
add eax, 0x6a4
mov dword [esp], eax
call sym._sprintf.constprop.0_1
jmp 0x405cf7
lea eax, [esp + 0x7c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x66]
mov dword [esp + 8], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call sym._gen_trad_tld
mov dword [esp + 4], 0x42658f
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
add eax, 0x640
mov dword [esp], eax
call sym._sprintf.constprop.0_1
jmp 0x405cf7
lea eax, [esp + 0x7c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x66]
mov dword [esp + 8], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call sym._gen_trad_tld
mov dword [esp + 4], 0x42658f
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
add eax, 0x5dc
mov dword [esp], eax
call sym._sprintf.constprop.0_1
jmp 0x405cf7
lea eax, [esp + 0x7c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x66]
mov dword [esp + 8], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call sym._gen_trad_tld
mov dword [esp + 4], 0x42658f
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
add eax, 0x578
mov dword [esp], eax
call sym._sprintf.constprop.0_1
jmp 0x405cf7
lea eax, [esp + 0x7c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x66]
mov dword [esp + 8], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call sym._gen_trad_tld
mov dword [esp + 4], 0x42658f
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
add eax, 0x514
mov dword [esp], eax
call sym._sprintf.constprop.0_1
jmp 0x405780
lea eax, [esp + 0x70]
mov dword [esp + 4], 0x42662f
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x405ea4
mov dword [esp + 0x8c], 4
jmp 0x40540f
lea eax, [esp + 0x70]
mov dword [esp + 4], 0x426633
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x405ecc
mov dword [esp + 0x8c], 5
jmp 0x40540f
lea eax, [esp + 0x70]
mov dword [esp + 4], 0x426637
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x405ef4
mov dword [esp + 0x8c], 6
jmp 0x40540f
lea eax, [esp + 0x70]
mov dword [esp + 4], 0x42663b
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x405f1c
mov dword [esp + 0x8c], 7
jmp 0x40540f
lea eax, [esp + 0x70]
mov dword [esp + 4], 0x42663f
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x405f44
mov dword [esp + 0x8c], 8
jmp 0x40540f
lea eax, [esp + 0x70]
mov dword [esp + 4], 0x426643
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x405f6c
mov dword [esp + 0x8c], 9
jmp 0x40540f
lea eax, [esp + 0x70]
mov dword [esp + 4], 0x426647
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x405f94
mov dword [esp + 0x8c], 0xa
jmp 0x40540f
lea eax, [esp + 0x70]
mov dword [esp + 4], 0x42664b
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x40540f
mov dword [esp + 0x8c], 0xb
jmp 0x40540f