Function at 0x510aa0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6a03c2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1d80
call fcn.005ba830
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov esi, dword [0x705f40]
call fcn.00510940
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov ecx, dword [0x705f3c]
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 [0x6a8440]
mov edx, dword [0x705f3c]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [0x6a8514]
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 [0x6a838c]
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 0x510fde
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 0x6fa7a0
mov byte [esp + 0x1da0], 1
mov byte [esp + 0x90], dl
rep stosd dword es:[edi], eax
call fcn.005bcc48
mov eax, dword [0x2227970]
add eax, 0x24c
push eax
lea ecx, [esp + 0x74]
push 0x6aae14
push ecx
call fcn.005baa1d
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 0x510c45
sub eax, edi
push eax
lea edx, [esp + 0x70]
push edx
mov ecx, ebp
call fcn.00506e30
mov ecx, ebp
call fcn.00506f10
push ebx
lea eax, [esp + 0x994]
push eax
mov ecx, ebp
call fcn.00507030
xor eax, eax
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x190]
rep stosd dword es:[edi], eax
mov eax, dword [0x2227970]
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.005baa1d
push 0x6fa7a0
call fcn.005bcc48
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 0x510d00
sub eax, esi
push eax
lea eax, [esp + 0x194]
push eax
mov ecx, ebp
call fcn.00506e30
mov ecx, ebp
call fcn.00506f10
push ebx
lea ecx, [esp + 0x594]
push ecx
mov ecx, ebp
call fcn.00507030
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.005baa1d
mov eax, dword [0x705f44]
add esp, 0x10
cmp eax, ebx
jne 0x510d7a
mov eax, dword [0x705f3c]
lea edx, [esp + 0x20]
push edx
push eax
call dword [0x6a8528]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [ebp + 0x20], ecx
mov dword [ebp + 0x24], edx
mov ecx, dword [0x21ee170]
mov eax, dword [ebp + 8]
push ebx
push ebx
push ecx
push eax
call dword [0x6a84c4]
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 0x510fcd
mov edi, dword [esp + 0x14]
xor eax, eax
cmp esi, ebx
mov dword [esp + 0x14], eax
je 0x510dcc
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push ecx
push 0x6b0de4
push esi
call dword [eax]
mov eax, dword [esp + 0x14]
cmp edi, ebx
je 0x510dda
mov edx, dword [edi]
push edi
call dword [edx + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x510fba
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 [0x6a83f0]
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.00507460
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.00507460
lea eax, [esp + 0xd90]
mov byte [esp + 0x1d9c], 5
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x510e70
sub eax, edx
mov esi, eax
push esi
push ebx
push 0x11
call dword [0x6a8400]
mov edi, eax
cmp edi, ebx
je 0x510f00
lea eax, [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x24], ebx
call dword [0x6a83fc]
test eax, eax
je 0x510edc
mov esi, dword [0x6a83f4]
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 0x510fde
mov edx, dword [eax]
push eax
jmp 0x510fdb
xor eax, eax
cmp esi, ebx
jle 0x510ef5
mov dl, byte [esp + eax + 0xd90]
mov ecx, dword [esp + 0x1c]
mov byte [eax + ecx], dl
inc eax
cmp eax, esi
jl 0x510ee2
push edi
call dword [0x6a83f8]
test eax, eax
je 0x510f22
mov esi, dword [0x6a83f4]
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 0x510f74
cmp byte [ebp + 0x15], bl
mov word [esp + 0x38], 0x2011
mov dword [esp + 0x40], edi
jne 0x510f54
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 [0x6a83f4]
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 0x510f8b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x1d9c], 0xffffffff
je 0x510ff7
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 0x510fe2
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x510fde
cmp esi, ebx
mov byte [esp + 0x1d9c], bl
je 0x510fde
mov edx, dword [esi]
push esi
call dword [edx + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x1d9c], 0xffffffff
je 0x510ff7
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