joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407343
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40739f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x2000
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406abc
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x40740f
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov byte [edi + 0x1fff], 0
pop esi
jne 0x40740f
cmp dword [ebp + 0x18], 1
je 0x407412
cmp dword [ebp + 0x18], 2
je 0x407412
mov byte [edi], 0
pop edi
leave
ret 0x14

Function at 0x407417
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

Function at 0x40747a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add byte [ebp + 0xa], dl
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4074b9
test edi, edi
jne 0x407485
mov byte [esi], al
jmp 0x4074bb
mov eax, esi
pop edi
pop esi
pop ebp
ret 8

Function at 0x4075b6
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4075d8
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x407833
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x44aae4], 0
push esi
jne 0x40786d
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x407844
mov dword [ecx*4 + 0x44aae0], edx
inc ecx
cmp ecx, 0x100
jl 0x40783f
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x407897
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x44aae0]
inc esi
sub edx, 1
jne 0x40787f
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x57005204
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebp, eax
test ebp, ebp
je 0x570052a4
test ebp, ebp
setl byte [esp]
mov eax, edi
xor ecx, ecx
mov edx, 0xb
call sub.rtl120.bpl__System__LStrSetLength_qqrv
mov esi, 0xb
mov eax, ebp
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebx, eax
mov ecx, 0xa
mov eax, ebp
cdq
idiv ecx
mov ebp, eax
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
add bl, 0x30
mov byte [eax + esi - 1], bl
dec esi
test ebp, ebp
jne 0x5700522e
cmp byte [esp], 0
je 0x57005273
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x570052b0
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
push eax
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call sub.rtl120.bpl__System_Move_qqrpxvpvi
mov edx, ebx
mov eax, edi
xor ecx, ecx
call sub.rtl120.bpl__System__LStrSetLength_qqrv
jmp 0x570052b0
mov eax, edi
mov edx, 0x570052c4
call sub.rtl120.bpl__System__LStrAsg_qqrpvpxv
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x570052c8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x5700536b
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call sub.rtl120.bpl__System__UStrSetLength_qqrr20System_UnicodeStringi
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov ecx, 0xa
mov eax, ebx
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringU_qqrr20System_UnicodeString
add bp, 0x30
mov word [eax + esi*2 - 2], bp
dec esi
test ebx, ebx
jne 0x570052f0
cmp byte [esp], 0
je 0x57005339
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringU_qqrr20System_UnicodeString
mov word [eax + esi*2 - 2], 0x2d
dec esi
test esi, esi
jle 0x57005377
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringU_qqrr20System_UnicodeString
push eax
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringU_qqrr20System_UnicodeString
lea eax, [eax + esi*2]
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
add ecx, ecx
pop edx
call sub.rtl120.bpl__System_Move_qqrpxvpvi
mov edx, ebx
mov eax, edi
call sub.rtl120.bpl__System__UStrSetLength_qqrr20System_UnicodeStringi
jmp 0x57005377
mov eax, edi
mov edx, 0x5700538c
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x570069f7
Capabilities:
Access peb ldr_data

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x88
mov eax, dword [0x57025949]
mov dword [ebp - 0x3c], eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 0xc]
lea edi, [eax + 0xc]
cmp edi, ebx
je 0x57006a76
Function at 0xb01c1d
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00b01c1d
ret
Function at 0x4019d0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x44a280]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, ecx
push 0x20
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x54], 0x67452301
mov dword [ebp - 0x50], 0xefcdab89
mov dword [ebp - 0x4c], 0x98badcfe
mov dword [ebp - 0x48], 0x10325476
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
call fcn.0040a5c0
add esp, 4
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x60]
call fcn.0040a640
movzx eax, byte [ebp - 0x70]
movzx ecx, byte [ebp - 0x6f]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x6e]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x6d]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b6be
mov esp, ebp
pop ebp
ret

Function at 0x401ec0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
mov eax, dword [0x44a280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x350], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x358], ebx
inc ebx
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x35c], eax
mov eax, dword [ebp + 0x14]
shr ebx, 1
mov esi, edx
mov dword [ebp - 0x34c], eax
mov dword [ebp - 0x354], ecx
cmp ebx, 0x80
ja 0x402047
add eax, dword [ebp + 0x1c]
cmp eax, 0x80
ja 0x402047
cmp esi, 0xe0
ja 0x402047
push esi
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.00421960
add esp, 0xc
lea eax, [ebp - 0x348]
push esi
push 0
push eax
call fcn.00421960
add esp, 0xc
lea eax, [ebp - 0x188]
push ebx
push dword [ebp - 0x350]
push eax
call fcn.004225d0
mov eax, dword [ebp - 0x358]
mov ecx, dword [ebp - 0x350]
and eax, 1
add esp, 0xc
sub ecx, eax
push ebx
add ecx, ebx
push ecx
lea eax, [ebp - 0x108]
push eax
call fcn.004225d0
add esp, 0xc
lea eax, [ebp - 0x88]
push dword [ebp - 0x34c]
push dword [ebp - 0x35c]
push eax
call fcn.004225d0
mov eax, dword [ebp - 0x34c]
add esp, 0xc
lea ecx, [ebp - 0x88]
push dword [ebp + 0x1c]
add eax, ecx
push dword [ebp - 0x354]
push eax
call fcn.004225d0
mov eax, dword [ebp - 0x34c]
add eax, dword [ebp + 0x1c]
add esp, 0xc
mov edx, esi
push 1
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x188]
push ebx
push eax
lea ecx, [ebp - 0x268]
call fcn.00401d40
mov eax, dword [ebp - 0x34c]
add eax, dword [ebp + 0x1c]
add esp, 0x14
mov edx, esi
push 2
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x108]
push ebx
push eax
lea ecx, [ebp - 0x348]
call fcn.00401d40
add esp, 0x14
xor eax, eax
test esi, esi
je 0x402047
jmp 0x402030
mov cl, byte [ebp + eax - 0x348]
xor cl, byte [ebp + eax - 0x268]
inc eax
mov byte [eax + edi - 1], cl
cmp eax, esi
jb 0x402030
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b6be
mov esp, ebp
pop ebp
ret
Function at 0x404ce0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x44a280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 0x54], 0x67452301
mov dword [ebp - 0x50], 0xefcdab89
mov dword [ebp - 0x4c], 0x98badcfe
mov dword [ebp - 0x48], 0x10325476
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
test esi, esi
jle 0x404d42
jmp 0x404d30
push 0x40
mov edx, edi
lea ecx, [ebp - 0x60]
call fcn.0040a5c0
add esp, 4
dec esi
jne 0x404d30
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041b6be
mov esp, ebp
pop ebp
ret

Function at 0x404d60
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x44a280]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x50], 0xc3d2e1f0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
test esi, esi
jle 0x404dc4
push 0x40
mov edx, edi
lea ecx, [ebp - 0x6c]
call fcn.00415060
add esp, 4
dec esi
jne 0x404db2
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0041b6be
mov esp, ebp
pop ebp
ret

Function at 0x404de0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x44a280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 0x64], 0x6a09e667
mov dword [ebp - 0x60], 0xbb67ae85
mov dword [ebp - 0x5c], 0x3c6ef372
mov dword [ebp - 0x58], 0xa54ff53a
mov dword [ebp - 0x54], 0x510e527f
mov dword [ebp - 0x50], 0x9b05688c
mov dword [ebp - 0x4c], 0x1f83d9ab
mov dword [ebp - 0x48], 0x5be0cd19
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
test esi, esi
jle 0x404e59
push 0x40
mov edx, edi
lea ecx, [ebp - 0x70]
call fcn.00413a40
add esp, 4
dec esi
jne 0x404e47
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041b6be
mov esp, ebp
pop ebp
ret

Function at 0x404ed0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x44a280]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x50], 0xc3d2e1f0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
test esi, esi
jle 0x404f33
push ecx
mov edx, edi
lea ecx, [ebp - 0x6c]
call fcn.0041aeb0
add esp, 4
dec esi
jne 0x404f22
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0041b6be
mov esp, ebp
pop ebp
ret
Function at 0x409ec0
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx + 0xc], 0x67452301
mov dword [ecx + 0x10], 0xefcdab89
mov dword [ecx + 0x14], 0x98badcfe
mov dword [ecx + 0x18], 0x10325476
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
ret

Function at 0x40a640
Capabilities:
Hash data with md5

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, dword [edi + 4]
mov ecx, dword [edi]
lea eax, [ecx + esi]
mov dword [edi + 4], eax
cmp eax, esi
jae 0x40a659
inc dword [edi + 8]
mov byte [ecx + edi + 0x1c], 0x80
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, 0x38
jbe 0x40a692
mov eax, 0x40
sub eax, ecx
push eax
lea eax, [edi + 0x1c]
add eax, ecx
push 0
push eax
call fcn.00421960
add esp, 0xc
mov ecx, edi
mov dword [edi], 0x40
call fcn.00409f00
mov dword [edi], 0
mov eax, 0x38
sub eax, dword [edi]
push eax
lea eax, [edi + 0x1c]
add eax, dword [edi]
push 0
push eax
call fcn.00421960
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
mov ecx, edx
shr ecx, 0x1d
add esp, 0xc
lea eax, [ecx + eax*8]
mov dword [edi + 8], eax
lea eax, [edx*8]
mov dword [edi + 4], eax
mov dword [edi + 0x54], eax
mov eax, dword [edi + 8]
mov ecx, edi
mov dword [edi + 0x58], eax
call fcn.00409f00
movq xmm0, qword [edi + 0xc]
movq qword [ebx], xmm0
movq xmm0, qword [edi + 0x14]
movq qword [ebx + 8], xmm0
mov dword [edi + 0xc], 0x67452301
mov dword [edi + 0x10], 0xefcdab89
mov dword [edi + 0x14], 0x98badcfe
mov dword [edi + 0x18], 0x10325476
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
pop edi
pop esi
pop ebx
ret
Function at 0x40cdb0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x44a280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x80], edx
mov edx, ecx
xor edi, edi
movzx esi, byte [edi + str.91__]
movzx ecx, byte [edi + 0x43c0f5]
dec esi
mov eax, esi
sar eax, 3
and esi, 7
movzx eax, byte [eax + edx]
test byte [esi*4 + 0x43c970], al
setne al
mov byte [ebp + edi - 0x7c], al
dec ecx
mov eax, ecx
sar eax, 3
and ecx, 7
movzx eax, byte [eax + edx]
test byte [ecx*4 + 0x43c970], al
movzx ecx, byte [edi + 0x43c0f6]
setne al
mov byte [ebp + edi - 0x7b], al
dec ecx
mov eax, ecx
sar eax, 3
and ecx, 7
movzx eax, byte [eax + edx]
test byte [ecx*4 + 0x43c970], al
movzx ecx, byte [edi + 0x43c0f7]
setne al
mov byte [ebp + edi - 0x7a], al
dec ecx
mov eax, ecx
sar eax, 3
and ecx, 7
movzx eax, byte [eax + edx]
test byte [ecx*4 + 0x43c970], al
setne al
mov byte [ebp + edi - 0x79], al
add edi, 4
cmp edi, 0x38
jl 0x40cdd0
xor edi, edi
lea esi, [edi + 0x1c]
lea esp, [esp]
movzx ecx, byte [edi + 0x43c930]
xorps xmm0, xmm0
movq qword [ebp - 0xc], xmm0
xor edx, edx
cmp edx, 0x1c
mov eax, 0x38
cmovl eax, esi
cmp ecx, eax
mov eax, ecx
jl 0x40ce95
lea eax, [ecx - 0x1c]
mov al, byte [ebp + eax - 0x7c]
mov byte [ebp + edx - 0x44], al
inc edx
inc ecx
cmp edx, 0x38
jl 0x40ce81
xor ecx, ecx
jmp 0x40ceb0
movzx eax, byte [ecx + 0x43c940]
cmp byte [ebp + eax - 0x45], 0
je 0x40cee2
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
lea esi, [ebp - 0xc]
add esi, edx
lea edx, [edx + edx*2]
add edx, edx
mov eax, ecx
sub eax, edx
mov eax, dword [eax*4 + 0x43c970]
sar eax, 2
or byte [esi], al
inc ecx
cmp ecx, 0x30
jl 0x40ceb0
movzx ecx, byte [ebp - 0xc]
movzx eax, byte [ebp - 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 9]
mov dword [ebx + edi*8], ecx
movzx ecx, byte [ebp - 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 5]
shl ecx, 8
or ecx, eax
mov dword [ebx + edi*8 + 4], ecx
inc edi
mov esi, 0x1c
cmp edi, 0x10
jl 0x40ce70
cmp dword [ebp - 0x80], 1
jne 0x40cf6a
xor esi, esi
lea edx, [ebx + 0x7c]
mov eax, dword [edx - 4]
mov ecx, dword [ebx + esi*4]
mov dword [ebx + esi*4], eax
mov dword [edx - 4], ecx
mov eax, dword [edx]
mov ecx, dword [ebx + esi*4 + 4]
mov dword [ebx + esi*4 + 4], eax
add esi, 2
mov dword [edx], ecx
lea edx, [edx - 8]
cmp esi, 0x10
jl 0x40cf47
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b6be
mov esp, ebp
pop ebp
ret
Function at 0x4128b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 0
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0xc], esi
movzx ebx, byte [esi]
movzx eax, byte [esi + 1]
je 0x412927
sub edx, dword [ebp + 8]
lea ecx, [esi + 2]
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
lea ebx, [ebx]
movzx edx, byte [ecx + ebx]
mov edi, dword [ebp - 4]
add eax, edx
and eax, 0xff
inc ebx
movzx ecx, byte [ecx + eax]
mov byte [edi + ebx - 1], cl
add ecx, edx
mov byte [edi + eax], dl
and ecx, 0xff
mov edx, edi
mov edi, dword [ebp + 8]
mov cl, byte [ecx + edx]
xor cl, byte [edi]
mov edx, dword [ebp - 8]
inc edi
mov byte [edx + edi - 1], cl
mov ecx, dword [ebp - 4]
and ebx, 0xff
mov dword [ebp + 8], edi
dec esi
jne 0x4128e0
mov esi, dword [ebp - 0xc]
pop edi
mov byte [esi], bl
mov byte [esi + 1], al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4129e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea edi, [ecx + 0x150]
mov dword [ebp - 4], ecx
lea esi, [ecx + 0xd0]
mov dword [ebp - 8], edi
xor ebx, ebx
call fcn.00412940
movzx eax, byte [ecx + 0x210]
cmp eax, 4
ja case.0x412a12.3
jmp dword [eax*4 + 0x412b00]
mov edi, dword [ebp + 0xc]
mov ebx, 0x40
push edi
cmp edi, ebx
jbe 0x412a9e
mov edx, dword [ebp + 8]
call fcn.0040a5c0
mov ecx, dword [ebp - 4]
add esp, 4
mov edx, esi
call fcn.0040a640
lea edi, [ebx - 0x30]
jmp 0x412aca
mov edi, dword [ebp + 0xc]
mov ebx, 0x40
push edi
cmp edi, ebx
jbe 0x412a9e
mov edx, dword [ebp + 8]
call fcn.00415060
mov ecx, dword [ebp - 4]
add esp, 4
mov edx, esi
call fcn.00415110
lea edi, [ebx - 0x2c]
jmp 0x412aca
mov edi, dword [ebp + 0xc]
mov ebx, 0x40
push edi
cmp edi, ebx
jbe 0x412a9e
mov edx, dword [ebp + 8]
call fcn.00413a40
mov ecx, dword [ebp - 4]
add esp, 4
mov edx, esi
call fcn.00413af0
lea edi, [ebx - 0x20]
jmp 0x412aca
mov edi, dword [ebp + 0xc]
mov ebx, 0x80
push edi
cmp edi, ebx
ja 0x412ab0
push dword [ebp + 8]
push esi
call fcn.004225d0
add esp, 0xc
cmp edi, ebx
jae 0x412add
jmp 0x412aca
mov edx, dword [ebp + 8]
call fcn.004176b0
mov ecx, dword [ebp - 4]
add esp, 4
mov edx, esi
call fcn.00417790
mov edi, 0x40
mov eax, ebx
sub eax, edi
push eax
lea eax, [esi + edi]
push 0
push eax
call fcn.00421960
add esp, 0xc
mov edi, dword [ebp - 8]
test ebx, ebx
je 0x412af6
sub edi, esi
mov al, byte [esi]
xor al, 0x5c
mov byte [edi + esi], al
xor byte [esi], 0x36
lea esi, [esi + 1]
dec ebx
jne 0x412ae6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4133f0
Capabilities:
Hash data using sha256

Disassembly:
mov dword [ecx + 0xc], 0x6a09e667
mov dword [ecx + 0x10], 0xbb67ae85
mov dword [ecx + 0x14], 0x3c6ef372
mov dword [ecx + 0x18], 0xa54ff53a
mov dword [ecx + 0x1c], 0x510e527f
mov dword [ecx + 0x20], 0x9b05688c
mov dword [ecx + 0x24], 0x1f83d9ab
mov dword [ecx + 0x28], 0x5be0cd19
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
ret
Function at 0x413af0
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push edi
lea eax, [edx + ecx]
lea edi, [esi + 0x2c]
mov dword [esi + 4], eax
cmp eax, ecx
jae 0x413b0c
inc dword [esi + 8]
mov byte [edx + edi], 0x80
inc dword [esi]
mov ecx, dword [esi]
cmp ecx, 0x38
jbe 0x413b4e
mov eax, 0x40
sub eax, ecx
push eax
lea eax, [ecx + edi]
push 0
push eax
call fcn.00421960
add esp, 8
mov edx, edi
mov ecx, edi
mov dword [esi], 0x40
call fcn.004133b0
add esp, 4
mov ecx, esi
call fcn.00413440
mov dword [esi], 0
mov ecx, dword [esi]
mov eax, 0x38
sub eax, ecx
push eax
lea eax, [ecx + edi]
push 0
push eax
call fcn.00421960
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov ecx, edx
shr ecx, 0x1d
add esp, 0xc
lea eax, [ecx + eax*8]
mov dword [esi + 8], eax
lea eax, [edx*8]
mov dword [esi + 4], eax
xor edx, edx
mov eax, dword [edi + edx*4]
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
inc edx
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov dword [edi + edx*4 - 4], ecx
cmp edx, 0x10
jb 0x413b83
mov eax, dword [esi + 8]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 4]
mov ecx, esi
mov dword [edi + 0x3c], eax
call fcn.00413440
mov eax, dword [esi + 0xc]
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0xc], ecx
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x10], ecx
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x14], ecx
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x18], ecx
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0x1c], ecx
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x20], ecx
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov eax, dword [esi + 0x28]
mov dword [esi + 0x24], ecx
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov dword [esi + 0x28], ecx
movq xmm0, qword [esi + 0xc]
movq qword [ebx], xmm0
movq xmm0, qword [esi + 0x14]
movq qword [ebx + 8], xmm0
movq xmm0, qword [esi + 0x1c]
movq qword [ebx + 0x10], xmm0
movq xmm0, qword [esi + 0x24]
movq qword [ebx + 0x18], xmm0
mov dword [esi + 0xc], 0x6a09e667
mov dword [esi + 0x10], 0xbb67ae85
mov dword [esi + 0x14], 0x3c6ef372
mov dword [esi + 0x18], 0xa54ff53a
mov dword [esi + 0x1c], 0x510e527f
mov dword [esi + 0x20], 0x9b05688c
mov dword [esi + 0x24], 0x1f83d9ab
mov dword [esi + 0x28], 0x5be0cd19
pop edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop esi
pop ebx
ret
Function at 0x414090
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx + 0xc], 0x67452301
mov dword [ecx + 0x10], 0xefcdab89
mov dword [ecx + 0x14], 0x98badcfe
mov dword [ecx + 0x18], 0x10325476
mov dword [ecx + 0x1c], 0xc3d2e1f0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
ret