Function at 0x409dc0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x4b3
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [0x4153ac]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x409e7b
mov eax, dword [0x414fac]
test eax, eax
je 0x409e23
mov eax, dword [esp + 0xc]
mov dword [0x414fac], 0
test eax, eax
je 0x409e23
cmp dword [0x4150b0], 3
jne 0x409e16
push str.AT_NWPDN0_r_n
call fcn.00405510
add esp, 4
push str.ATE1_r_n
call fcn.00405510
add esp, 4
mov ecx, dword [0x414fa8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [0x4153ac]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x409e57
mov eax, dword [0x4153ac]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0x4153ac]
push ecx
call esi
mov edx, dword [0x41559c]
mov dword [0x4153ac], 0xffffffff
push edx
call esi
mov eax, dword [0x414fa8]
push eax
call esi
mov eax, dword [0x4150e0]
cmp eax, 0xffffffff
je 0x409ea1
push 3
push eax
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov ecx, dword [0x4150e0]
push ecx
call esi
mov dword [0x4150e0], 0xffffffff
mov eax, 1
pop esi
ret

Function at 0x409eb0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x414
push esi
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push 0x414ea0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409ee5
xor eax, eax
pop esi
add esp, 0x414
ret
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [0x41555c]
mov edx, dword [0x415558]
mov eax, dword [0x415554]
push ecx
mov ecx, dword [0x415550]
push edx
mov edx, dword [0x415548]
push eax
mov eax, dword [0x414e8c]
push ecx
mov ecx, dword [0x414e88]
push edx
mov edx, dword [0x415374]
push eax
mov eax, dword [0x415370]
push ecx
mov ecx, dword [0x4152a8]
push edx
mov edx, dword [esp + 0x440]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x36]
push edx
mov edx, dword [esp + 0x38]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x3a]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x3a]
push edx
mov edx, dword [esp + 0x3c]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x5c]
push str.__d__02d__02d____02d:_02d:_02d____s___lu__I64u__I64u__lu__I64u__I64u_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x4c
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push 0
push ecx
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
add esp, 0x414
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx