joyce8/EMBER2024-capa huggingface dataset:
Function at 0x589c4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x58b1e
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x58afe
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00013cd4
lea eax, [ebp - 0x118]
mov edx, 0x58b34
call fcn.00013db4
mov eax, dword [ebp - 0x118]
call fcn.00013f70
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x58a70
lea eax, [ebp - 0x111]
call fcn.00018738
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00013c14
jmp 0x58a77
mov eax, esi
call fcn.00013b30
cmp bl, 0x61
jae 0x58a98
lea edx, [ebp - 0x118]
mov eax, dword [esi]
call fcn.0001a4a4
mov edx, dword [ebp - 0x118]
mov eax, esi
call fcn.00013bc8
jmp 0x58ab2
lea edx, [ebp - 0x118]
mov eax, dword [esi]
call fcn.0001a418
mov edx, dword [ebp - 0x118]
mov eax, esi
call fcn.00013bc8
lea eax, [ebp - 0x118]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x120], eax
mov byte [ebp - 0x11c], 0xb
lea edx, [ebp - 0x120]
xor ecx, ecx
mov eax, 0x58b40
call fcn.00018e94
mov edx, dword [ebp - 0x118]
mov eax, esi
call fcn.00013bc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58b05
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x5e574
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.00012c84
ret

Function at 0x61ed8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00013f60
xor eax, eax
push ebp
push 0x61f3c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xe
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 4]
call fcn.00061f48
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0001894c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61f43
lea eax, [ebp - 4]
call fcn.00013b30
ret
Function at 0x62524
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00013f60
xor eax, eax
push ebp
push 0x6261f
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [esi + 4]
mov word [ebx + 4], ax
mov ax, word [esi + 6]
mov word [ebx + 6], ax
mov ax, word [esi + 8]
mov word [ebx + 8], ax
mov ax, word [esi + 0xa]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.00061c10
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
mov ax, word [esi + 0x20]
mov word [ebx + 0x22], ax
mov ax, word [esi + 0x22]
mov word [ebx + 0x24], ax
mov ax, word [esi + 0x24]
mov word [ebx + 0x26], ax
mov eax, dword [esi + 0x26]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00018568
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00062ed4
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00018444
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00062f48
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x62626
lea eax, [ebp - 8]
mov edx, 2
call fcn.00013b54
ret
Function at 0x6262c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00013f60
xor eax, eax
push ebp
push 0x62737
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
mov ax, word [esi + 4]
mov word [ebx + 6], ax
mov ax, word [esi + 6]
mov word [ebx + 8], ax
mov ax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.00061c10
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
cmp dword [ebp - 4], 0
je 0x626fd
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00018568
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00062ed4
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00018444
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00062f48
jmp 0x6270f
xor edx, edx
mov eax, ebx
call fcn.00062ed4
xor edx, edx
mov eax, ebx
call fcn.00062f48
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6273e
lea eax, [ebp - 8]
mov edx, 2
call fcn.00013b54
ret

Function at 0x68c28
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x158]
mov edx, ebx
mov eax, edi
call fcn.00068e5c
mov esi, eax
mov dword [edi + 0x158], esi
and esi, 0xff
add dword [edi + 0x15c], esi
imul esi, dword [edi + 0x15c], 0x8088405
inc esi
mov dword [edi + 0x15c], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x160]
mov eax, edi
call fcn.00068e5c
mov dword [edi + 0x160], eax
pop edi
pop esi
pop ebx
ret

Function at 0x68c9c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x68cc1
inc esi
mov eax, edi
call fcn.00068c80
xor byte [ebx], al
mov dl, byte [ebx]
mov eax, edi
call fcn.00068c28
inc ebx
dec esi
jne 0x68cab
pop edi
pop esi
pop ebx
ret
Function at 0x68d50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00013f60
xor eax, eax
push ebp
push 0x68dc5
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00068cc8
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.00068c80
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.00068c28
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x68d90
mov bl, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x68dcc
lea eax, [ebp - 4]
call fcn.00013b30
ret
Function at 0x69994
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x69b78
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x69b34
mov eax, dword [ebp - 4]
call fcn.0006b4d8
cmp ebx, eax
jge 0x69b34
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x108]
mov edx, ebx
call fcn.00060534
mov edx, dword [0x61fcc]
call fcn.00013120
mov esi, eax
mov eax, esi
call fcn.00062e68
test al, al
je 0x69b2a
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x69b1e
xor eax, eax
push ebp
push 0x69b17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0006a16c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x11c]
call fcn.0005f678
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x11c]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0xc]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x11c]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 4]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x11c]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0xc]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00014080
mov eax, dword [ebp - 8]
call fcn.00013f7c
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x11c]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x144]
mov al, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00069d10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x144]
mov dl, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x69b62
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x11c]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x69b16
mov eax, dword [ebp - 4]
call fcn.0006a1f0
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0001894c
jmp 0x69b62
mov eax, dword [ebp - 8]
call fcn.00013b30
jmp 0x69b62
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.00017f9c
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x1c7f4]
call fcn.00019a84
call fcn.00013628
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x69b7f
lea eax, [ebp - 0x54]
call fcn.00013b30
ret
Function at 0x70350
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00013f60
xor eax, eax
push ebp
push 0x703db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00013b30
push 0xff
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0xff
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 4]
call fcn.00013f70
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x703c5
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
mov edx, ebx
mov eax, 8
call fcn.00017e7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x703e2
lea eax, [ebp - 4]
call fcn.00013b30
ret
Function at 0x70480
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], edx
mov edi, eax
xor eax, eax
push ebp
push 0x70624
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00013b30
lea eax, [ebp - 0x1c]
call fcn.00013b30
call fcn.00016280
mov esi, eax
mov eax, esi
and eax, 1
xor ebx, ebx
dec eax
jne 0x705f5
mov eax, ebx
add al, 0x41
mov byte [ebp - 5], al
lea eax, [ebp - 0x20]
mov dl, byte [ebp - 5]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x24]
call fcn.00012b44
mov edx, 0x70634
lea eax, [ebp - 0x24]
mov cl, 2
call fcn.00012b14
lea edx, [ebp - 0x24]
lea eax, [ebp - 4]
call fcn.00013d50
cmp byte [ebp - 5], 0
je 0x705f5
mov eax, dword [ebp - 4]
call fcn.00013f70
push eax
call fcn.00016248
cmp eax, 5
je 0x705f5
mov eax, dword [ebp - 4]
call fcn.00013f70
push eax
call fcn.00016248
cmp eax, 2
je 0x705f5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00013f70
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
fild qword [ebp - 0x2c]
fdiv dword [0x70638]
fdiv dword [0x70638]
fdiv dword [0x70638]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x30], eax
fild qword [ebp - 0x34]
fmulp st(1)
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x38], eax
fild qword [ebp - 0x3c]
fmulp st(1)
fcomp dword [0x7063c]
fnstsw ax
sahf
jbe 0x705f5
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x40], eax
fild qword [ebp - 0x44]
fdiv dword [0x70638]
fdiv dword [0x70638]
fdiv dword [0x70638]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x48], eax
fild qword [ebp - 0x4c]
fmulp st(1)
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x50], eax
fild qword [ebp - 0x54]
fmulp st(1)
fcomp dword [0x70640]
fnstsw ax
sahf
jbe 0x705f5
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00013bc8
jmp 0x70606
shr esi, 1
mov eax, esi
and eax, 1
inc ebx
cmp ebx, 0x1b
jne 0x704be
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7062b
lea eax, [ebp - 0x1c]
call fcn.00013b30
lea eax, [ebp - 4]
call fcn.00013b30
ret
Function at 0x70c84
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
add esp, 0xffffff44
mov ebx, eax
mov dword [esp + 8], 0x94
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x18], 2
jne 0x70d10
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call fcn.00016148
lea eax, [esp + 0xa0]
push eax
push 0x70d18
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 0x9c], 1
test bl, bl
je 0x70ce4
mov dword [esp + 0xa8], 2
jmp 0x70ced
xor eax, eax
mov dword [esp + 0xa8], eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xb0]
push eax
push 0
lea eax, [esp + 0xa8]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call fcn.00016138
add esp, 0xbc
pop ebx
ret

Function at 0x712c4
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x712cd
mov eax, dword [ebp - 4]
add esp, 0xfffffff0
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov esi, eax
push 0
push 0
push 0
push 0
push 0x71408
call fcn.00056c50
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x71401
xor edx, edx
push ebp
push 0x713fa
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0x80000000
push 0
push 0
mov eax, esi
call fcn.00013f70
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00056c58
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x713e3
xor edx, edx
push ebp
push 0x713dc
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], sym.MZP_AU__sG__Q7LXA_crzj__mNm__9u9grUs:A_A_x
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10014]
push eax
push 0x16
mov eax, dword [ebp - 8]
push eax
call fcn.00056c40
neg eax
sbb eax, eax
neg eax
test al, al
je 0x713c5
lea edx, [ebp - 0x10014]
mov ecx, sym.MZP_AU__sG__Q7LXA_crzj__mNm__9u9grUs:A_A_x
mov eax, edi
mov esi, dword [eax]
call dword [esi + 8]
lea eax, [ebp - 0xc]
push eax
push 0x3e8
lea eax, [ebp - 0x10014]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x713c5
cmp dword [ebp - 0xc], 0
je 0x713bf
lea edx, [ebp - 0x10014]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 8]
cmp dword [ebp - 0xc], 0
jne 0x7138c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x713e3
mov eax, dword [ebp - 8]
push eax
call fcn.00056c48
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x71401
mov eax, dword [ebp - 4]
push eax
call fcn.00056c48
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xbfeb90
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0xbfec9c
test eax, eax
je 0xbfec9c
push esi
push edi
mov ecx, 0x10
mov esi, 0xc18fe0
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0xbfec83
lea edi, [eax + 4]
jmp 0xbfebe7
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0xbfebfc
mov dword [ebp - 4], 2
jmp 0xbfec1d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0xbfec13
mov dword [ebp - 4], 1
jmp 0xbfec1d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0xbfec93
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0xbfec56
mov byte [ecx], 0x3d
jmp 0xbfec62
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0xbfec6d
mov byte [ecx], 0x3d
jmp 0xbfec73
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0xbfebe4
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xc026b0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
cmp byte [ebp + 0xc], 0
push ebx
push esi
push edi
mov esi, eax
mov ebx, ecx
jne 0xc026d9
push esi
call fcn.00c02020
test al, al
jne 0xc026d9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x48]
push eax
push ecx
call fcn.00bfc800
mov edi, eax
call fcn.00bfcbc0
mov edi, eax
add esp, 4
mov eax, 0x40
call fcn.00c005f0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0xc0]
push edx
push eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], 0x40
call fcn.00bfeb90
mov ecx, dword [ebp - 4]
add esp, 0x10
xor eax, eax
push 4
lea edx, [ebp - 4]
push edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x7c], eax
mov byte [ebp - 0x80], al
push 0x10
mov eax, esi
mov byte [ebp + ecx - 0xc0], 0
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
mov dword [ebp - 0x20], 0xc3d2e1f0
call fcn.00bfe8d0
test al, al
je 0xc0276c
mov edi, dword [ebp - 4]
jmp 0xc0276f
or edi, 0xffffffff
push 4
lea eax, [ebp - 4]
push eax
push 0xc
mov eax, esi
call fcn.00bfe8d0
test al, al
je 0xc02787
mov eax, dword [ebp - 4]
jmp 0xc0278a
or eax, 0xffffffff
push edi
push eax
push esi
lea esi, [ebp - 0x80]
call fcn.00bfee10
cmp byte [ebp - 0x80], 0
mov dword [ebp - 4], 0x40
jne 0xc027ab
call fcn.00bff340
mov byte [ebp - 0x80], 1
xor eax, eax
lea ecx, [ecx]
mov ecx, dword [ebp + eax*4 - 0x30]
bswap ecx
mov dword [ebp + eax*4 - 0x1c], ecx
inc eax
cmp eax, 5
jb 0xc027b0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x1c]
push 0x14
push ecx
call fcn.00bfeb90
mov edx, dword [ebp - 4]
add esp, 0x10
cmp byte [ebp + 0xc], 0
mov byte [ebp + edx - 0x100], 0
mov eax, 0xc19344
jne 0xc027f4
mov eax, 0xc1935c
push 0
push eax
mov edi, ebx
call fcn.00c02530
mov eax, dword [ebp + 8]
push 1
push eax
call fcn.00c02530
push 0
push 0xc19374
call fcn.00c02530
push 1
lea ecx, [ebp - 0xc0]
push ecx
call fcn.00c02530
push 0
push 0xc1937c
call fcn.00c02530
push 1
lea edx, [ebp - 0x100]
push edx
call fcn.00c02530
cmp byte [ebp + 0xc], 0
je 0xc02848
call fcn.00c02610
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0xc02a50
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
cmp byte [ebp + 0x10], 0
push ebx
push esi
push edi
jne 0xc02a6f
mov ebx, dword [ebp + 8]
push eax
call fcn.00c02020
test al, al
je 0xc02aa9
mov ebx, dword [ebp + 0xc]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xc02a77
sub eax, edx
mov esi, eax
push esi
mov dword [ebp + 0xc], esi
call fcn.00c09cc4
lea ecx, [ebp + 0xc]
push ecx
mov edi, eax
push edi
push esi
push ebx
call fcn.00bfecb0
add esp, 0x14
test al, al
jne 0xc02ab4
push edi
call fcn.00c0a3b7
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
xor ebx, ebx
push edx
push edi
lea esi, [ebp - 0x7c]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x2c], 0x67452301
mov dword [ebp - 0x28], 0xefcdab89
mov dword [ebp - 0x24], 0x98badcfe
mov dword [ebp - 0x20], 0x10325476
mov dword [ebp - 0x1c], 0xc3d2e1f0
mov byte [ebp - 0x7c], bl
call fcn.00bfedc0
mov dword [ebp + 0xc], 0x40
cmp byte [ebp - 0x7c], bl
jne 0xc02b07
call fcn.00bff340
mov byte [ebp - 0x7c], 1
xor eax, eax
lea esp, [esp]
mov ecx, dword [ebp + eax*4 - 0x2c]
bswap ecx
mov dword [ebp + eax*4 - 0x18], ecx
inc eax
cmp eax, 5
jb 0xc02b10
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x18]
push 0x14
push ecx
call fcn.00bfeb90
mov edx, dword [ebp + 0xc]
push edi
mov byte [ebp + edx - 0xbc], bl
call fcn.00c0a3b7
mov bl, byte [ebp + 0x10]
add esp, 0x14
mov eax, 0xc193a0
test bl, bl
jne 0xc02b5a
mov eax, 0xc193b8
mov edi, dword [ebp + 8]
push 0
push eax
call fcn.00c02530
push 1
lea eax, [ebp - 0xbc]
push eax
call fcn.00c02530
test bl, bl
je 0xc02b7c
call fcn.00c02610
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc