Function at 0x402c90
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0xb8
mov eax, dword [0x42f278]
xor eax, esp
mov dword [esp + 0xb4], eax
mov eax, dword [0x437268]
cmp eax, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0xc4]
push esi
push edi
je 0x402dd1
cmp eax, 0xd
je 0x402dd1
xor ebx, ebx
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x94], al
add eax, 1
cmp eax, 0x10
jl 0x402cd0
lea eax, [esp + 0x94]
push eax
mov eax, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x5c], 0x67452301
mov dword [esp + 0x60], 0xefcdab89
mov dword [esp + 0x64], 0x98badcfe
mov dword [esp + 0x68], 0x10325476
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
call fcn.004062b0
lea edi, [esp + 0x84]
lea esi, [esp + 0x14]
call fcn.004063c0
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
mov dword [ebp + 0x4d], ecx
mov ecx, dword [esp + 0x90]
mov dword [ebp + 0x51], edx
mov dword [ebp + 0x55], eax
mov dword [ebp + 0x59], ecx
xor eax, eax
jmp 0x402d60
mov dl, al
add dl, 0x30
mov byte [esp + eax + 0x70], dl
add eax, 1
cmp eax, 0x10
jl 0x402d60
lea eax, [esp + 0x70]
mov byte [esp + 0x80], bl
push eax
xor ecx, ecx
mov ebx, ebp
call fcn.00401250
push 0x438b28
mov eax, ebp
call fcn.00402000
xor eax, eax
add esp, 8
cmp dword [ebp + 0x64], 2
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x38], eax
je 0x402dca
mov dword [ebp + 0x6d], eax
mov dword [ebp + 0x71], eax
mov dword [ebp + 0x75], eax
mov dword [ebp + 0x79], eax
mov dword [ebp + 0x7d], eax
mov dword [ebp + 0x81], eax
mov dword [ebp + 0x85], eax
mov dword [ebp + 0x89], eax
xor ebx, ebx
jmp 0x402ef8
xor ebx, ebx
xor eax, eax
jmp 0x402de0
mov byte [esp + eax + 0x94], al
add eax, 1
cmp eax, 0x10
jl 0x402de0
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], ebx
call fcn.00406b10
mov esi, dword [esp + 0x10]
cmp esi, ebx
je 0x402e57
mov eax, dword [0x437710]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x402e57
push str.BCryptHashData
push eax
call edi
cmp eax, ebx
je 0x402e31
mov ecx, dword [esi + 4]
push ebx
push 0x10
lea edx, [esp + 0x9c]
push edx
push ecx
call eax
mov eax, dword [0x437710]
cmp eax, ebx
je 0x402e57
push str.BCryptFinishHash
push eax
call edi
cmp eax, ebx
je 0x402e57
mov ecx, dword [esi + 4]
push ebx
push 0x20
lea edx, [esp + 0xac]
push edx
push ecx
call eax
mov eax, esi
call fcn.00406bf0
push 0x20
lea edx, [esp + 0xa8]
push edx
lea eax, [ebp + 0x8d]
push eax
call fcn.00416910
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov cl, al
add cl, 0x30
mov byte [esp + eax + 0x70], cl
add eax, 1
cmp eax, 0x10
jl 0x402e80
cmp dword [ebp + 4], 0xb
mov byte [esp + 0x80], bl
je 0x402ea7
mov dword [ebp + 0x28], 1
jmp 0x402eb4
push ebp
lea eax, [esp + 0x74]
call fcn.00401570
add esp, 4
push 0x438b28
mov eax, ebp
call fcn.00402000
xor eax, eax
add esp, 4
cmp dword [ebp + 0x64], 2
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x38], eax
je 0x402ef8
mov dword [ebp + 0x6d], eax
mov dword [ebp + 0x71], eax
mov dword [ebp + 0x75], eax
mov dword [ebp + 0x79], eax
mov dword [ebp + 0x7d], eax
mov dword [ebp + 0x81], eax
mov dword [ebp + 0x85], eax
mov dword [ebp + 0x89], eax
xor eax, eax
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x48], eax
mov esi, dword [ebp + 0x60]
cmp esi, ebx
mov dword [ebp + 0x28], ebx
je 0x402f30
mov eax, dword [esi + 0xc]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
je 0x402f20
push eax
call edi
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x402f2a
push eax
call edi
push esi
call edi
mov dword [ebp + 0x60], ebx
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004104f3
add esp, 0xb8
ret