Function at 0x516020
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x69e522
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1d80
call fcn.005b89a0
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov esi, dword [0x703c00]
call fcn.00515ec0
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov ecx, dword [0x703bfc]
lea eax, [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x1da4], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.user32.dll_ClientToScreen]
mov edx, dword [0x703bfc]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [sym.imp.user32.dll_CreateWindowExA]
push ebx
push edx
mov edx, dword [esp + 0x44]
push 0x244
push 0x30c
add eax, edx
push eax
add ecx, dword [esp + 0x4c]
push ecx
push 0xd0000000
push ebx
push str.static
push ebx
call esi
push ebx
push ebx
mov dword [ebp + 4], eax
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov edx, dword [ebp + 4]
push eax
push ebx
push edx
push 0x244
push 0x30c
push ebx
push ebx
push 0x50000000
push str.Shell.Explorer.2
push str.AtlAxWin71
push ebx
call esi
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x51655e
xor edx, edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], edx
xor eax, eax
mov dword [esp + 0x80], edx
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x990]
rep stosd dword es:[edi], eax
mov dword [esp + 0x84], edx
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x590]
rep stosd dword es:[edi], eax
mov dword [esp + 0x88], edx
mov ecx, 0x400
lea edi, [esp + 0xd90]
push 0x6f8480
mov byte [esp + 0x1da0], 1
mov byte [esp + 0x90], dl
rep stosd dword es:[edi], eax
call fcn.005badb8
mov eax, dword [0x2225648]
add eax, 0x24c
push eax
lea ecx, [esp + 0x74]
push 0x6a9d2c
push ecx
call fcn.005b8b8d
mov esi, 0xc3d2e1f0
lea eax, [esp + 0x7c]
add esp, 0x10
mov dword [ebp + 0x514], 0x67452301
mov dword [ebp + 0x518], 0xefcdab89
mov dword [ebp + 0x51c], 0x98badcfe
mov dword [ebp + 0x520], 0x10325476
mov dword [ebp + 0x524], esi
mov dword [ebp + 0x528], ebx
mov dword [ebp + 0x52c], ebx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5161c5
sub eax, edi
push eax
lea edx, [esp + 0x70]
push edx
mov ecx, ebp
call fcn.0050c390
mov ecx, ebp
call fcn.0050c470
push ebx
lea eax, [esp + 0x994]
push eax
mov ecx, ebp
call fcn.0050c590
xor eax, eax
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x190]
rep stosd dword es:[edi], eax
mov eax, dword [0x2225648]
push str.SHAIYA_CRYPT_KEY
lea ecx, [eax + 0x26f]
push ecx
add eax, 0x24c
push eax
lea edx, [esp + 0x19c]
push str._s_s_s
push edx
call fcn.005b8b8d
push 0x6f8480
call fcn.005badb8
lea eax, [esp + 0x1a8]
mov dword [ebp + 0x524], esi
add esp, 0x18
mov dword [ebp + 0x514], 0x67452301
mov dword [ebp + 0x518], 0xefcdab89
mov dword [ebp + 0x51c], 0x98badcfe
mov dword [ebp + 0x520], 0x10325476
mov dword [ebp + 0x528], ebx
mov dword [ebp + 0x52c], ebx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x516280
sub eax, esi
push eax
lea eax, [esp + 0x194]
push eax
mov ecx, ebp
call fcn.0050c390
mov ecx, ebp
call fcn.0050c470
push ebx
lea ecx, [esp + 0x594]
push ecx
mov ecx, ebp
call fcn.0050c590
lea edx, [esp + 0x590]
push edx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0xd98]
push str.id_schk_s
push ecx
call fcn.005b8b8d
mov eax, dword [0x703c04]
add esp, 0x10
cmp eax, ebx
jne 0x5162fa
mov eax, dword [0x703bfc]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.user32.dll_GetWindowRect]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [ebp + 0x20], ecx
mov dword [ebp + 0x24], edx
mov ecx, dword [0x21ebe48]
mov eax, dword [ebp + 8]
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.user32.dll_SendMessageA]
xor edx, edx
mov esi, eax
cmp esi, ebx
setne dl
mov dword [esp + 0x18], esi
dec edx
and edx, 0x80004005
mov dword [esp + 0x1c], edx
jne 0x51654d
mov edi, dword [esp + 0x14]
xor eax, eax
cmp esi, ebx
mov dword [esp + 0x14], eax
je 0x51634c
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push ecx
push 0x6aff6c
push esi
call dword [eax]
mov eax, dword [esp + 0x14]
cmp edi, ebx
je 0x51635a
mov edx, dword [edi]
push edi
call dword [edx + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x51653a
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0xcc]
mov ecx, 9
mov esi, str.https:__cb.shaiya.jp_cb_auth.action
lea edi, [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.oleaut32.dll_VariantInit]
lea edx, [esp + 0x20]
xor eax, eax
mov ecx, 0x37
lea edi, [esp + 0xb4]
push edx
rep stosd dword es:[edi], eax
call esi
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1da0], 2
mov word [esp + 0x4c], bx
call fcn.0050c9d0
lea ecx, [esp + 0x38]
push ecx
call esi
push str.Content_Type:_application_x_www_form_urlencoded_n
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1da0], 4
mov word [esp + 0x5c], bx
call fcn.0050c9d0
lea eax, [esp + 0xd90]
mov byte [esp + 0x1d9c], 5
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5163f0
sub eax, edx
mov esi, eax
push esi
push ebx
push 0x11
call dword [sym.imp.oleaut32.dll_SafeArrayCreateVector]
mov edi, eax
cmp edi, ebx
je 0x516480
lea eax, [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x24], ebx
call dword [sym.imp.oleaut32.dll_SafeArrayAccessData]
test eax, eax
je 0x51645c
mov esi, dword [sym.imp.oleaut32.dll_VariantClear]
lea ecx, [esp + 0x58]
push ecx
call esi
lea edx, [esp + 0x38]
push edx
call esi
lea eax, [esp + 0x48]
push eax
call esi
lea ecx, [esp + 0x20]
push ecx
call esi
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov byte [esp + 0x1d9c], bl
je 0x51655e
mov edx, dword [eax]
push eax
jmp 0x51655b
xor eax, eax
cmp esi, ebx
jle 0x516475
mov dl, byte [esp + eax + 0xd90]
mov ecx, dword [esp + 0x1c]
mov byte [eax + ecx], dl
inc eax
cmp eax, esi
jl 0x516462
push edi
call dword [sym.imp.oleaut32.dll_SafeArrayUnaccessData]
test eax, eax
je 0x5164a2
mov esi, dword [sym.imp.oleaut32.dll_VariantClear]
lea edx, [esp + 0x58]
push edx
call esi
lea eax, [esp + 0x38]
push eax
call esi
lea ecx, [esp + 0x48]
push ecx
call esi
lea edx, [esp + 0x20]
push edx
jmp 0x5164f4
cmp byte [ebp + 0x15], bl
mov word [esp + 0x38], 0x2011
mov dword [esp + 0x40], edi
jne 0x5164d4
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x58]
push edx
lea edx, [esp + 0x3c]
push edx
lea edx, [esp + 0x28]
push edx
push edx
lea edx, [esp + 0x58]
push edx
push eax
call dword [ecx + 0xd0]
mov esi, dword [sym.imp.oleaut32.dll_VariantClear]
lea eax, [esp + 0x58]
push eax
call esi
lea ecx, [esp + 0x38]
push ecx
call esi
lea edx, [esp + 0x48]
push edx
call esi
lea eax, [esp + 0x20]
push eax
call esi
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov byte [esp + 0x1d9c], bl
je 0x51650b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x1d9c], 0xffffffff
je 0x516577
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x1d94]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, ebx
mov byte [esp + 0x1d9c], bl
je 0x516562
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x51655e
cmp esi, ebx
mov byte [esp + 0x1d9c], bl
je 0x51655e
mov edx, dword [esi]
push esi
call dword [edx + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x1d9c], 0xffffffff
je 0x516577
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x1d94]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret