joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4889a0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x24]
cdq
push esi
mov esi, eax
mov eax, dword [ebp + 0x20]
push edi
mov edi, eax
or edi, ecx
jne 0x488a16
mov eax, esi
mov ecx, edx
movzx edi, byte [ebp + 0xc]
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov esi, dword [ebp + 0x28]
setne bl
and edi, 7
mov dword [esi], 0
mov edx, 2
add ebx, ebx
add ebx, ebx
add ebx, ebx
or ebx, edi
movzx edi, byte [ebp + 0x10]
shl ebx, 4
and edi, 0xf
or ebx, edi
mov edi, dword [ebp + 0x14]
mov dword [esi], ebx
xor ebx, ebx
test edi, edi
setne bl
shl ebx, 0xf
or dword [esi], ebx
test ecx, ecx
ja 0x488a57
jb 0x488a09
cmp eax, 0x7e
jae 0x488a2e
movzx eax, al
and eax, 0x7f
shl eax, 8
or dword [esi], eax
jmp 0x488a72
cmp ecx, edx
ja 0x4889bb
jb 0x488a20
cmp eax, esi
jae 0x4889bb
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
pop ebp
ret
test ecx, ecx
ja 0x488a57
jb 0x488a3b
cmp eax, 0xffff
ja 0x488a57
or dword [esi], 0x7e00
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
shl ecx, 0x10
or dword [esi], ecx
mov edx, 4
jmp 0x488a72
or dword [esi], 0x7f00
push ecx
push eax
call fcn.0044bfc0
mov dword [esi + 6], edx
add esp, 8
mov dword [esi + 2], eax
mov edx, 0xa
mov ecx, dword [ebp + 0x18]
test edi, edi
je 0x488a99
mov eax, dword [edi]
mov dword [edx + esi], eax
xor eax, eax
cmp dword [ebp + 0x1c], eax
jle 0x488a96
mov ebx, eax
and ebx, 3
mov bl, byte [ebx + edi]
xor byte [eax + ecx], bl
inc eax
cmp eax, dword [ebp + 0x1c]
jl 0x488a85
add edx, 4
mov eax, dword [ebp + 0x2c]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0x1c]
pop ebx
mov dword [eax + 4], esi
pop edi
mov dword [eax], edx
mov dword [eax + 8], ecx
mov eax, 1
pop esi
pop ebp
ret

Function at 0x488ca0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push esi
mov eax, edx
lea esi, [eax + 1]
push ebx
nop
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x488cb0
sub eax, esi
add eax, edx
mov esi, 0x811c9dc5
pop ebx
cmp edx, eax
je 0x488cd7
push edi
movsx edi, byte [edx]
imul esi, esi, 0x1000193
inc edx
xor esi, edi
cmp edx, eax
jne 0x488cc6
pop edi
mov edx, dword [ecx + 0x20]
mov eax, edx
and eax, esi
pop esi
cmp dword [ecx + 0x24], eax
ja 0x488ced
shr edx, 1
or ecx, 0xffffffff
sub ecx, edx
add eax, ecx
pop ebp
ret 4
Function at 0x49b850
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
test esi, esi
je 0x49b8a7
mov al, byte [esi]
test al, al
je 0x49b8a7
push ebx
mov ebx, 0x100
jmp 0x49b870
movsx eax, al
push eax
call fcn.004e6120
or eax, ebx
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
add esp, 4
rol edi, cl
inc esi
add ebx, 0x100
xor edi, eax
mov al, byte [esi]
test al, al
jne 0x49b870
mov eax, edi
shr eax, 0x10
pop ebx
xor eax, edi
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x4a1ee0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a1c70
Function at 0x4a2630
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x65db30]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
push ebx
jg 0x4a2665
jl 0x4a2653
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x4a2668
mov eax, dword [ebp + 8]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c5718
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x10]
mov edx, 1
mov dword [ebp - 0x84], 0xedb88320
mov ecx, edx
lea esp, [esp]
mov dword [ebp + ecx*4 - 0x84], edx
inc ecx
add edx, edx
cmp ecx, 0x20
jl 0x4a2680
push esi
push edi
xor edi, edi
jmp 0x4a26a0
mov ecx, dword [ebp + edi - 0x84]
xor esi, esi
lea edx, [ebp - 0x84]
test ecx, ecx
je 0x4a26c1
test cl, 1
je 0x4a26ba
xor esi, dword [edx]
add edx, 4
shr ecx, 1
jne 0x4a26b3
mov dword [ebp + edi - 0x104], esi
add edi, 4
cmp edi, 0x80
jl 0x4a26a0
xor edi, edi
jmp 0x4a26e0
mov ecx, dword [ebp + edi - 0x104]
xor esi, esi
lea edx, [ebp - 0x104]
test ecx, ecx
je 0x4a2701
test cl, 1
je 0x4a26fa
xor esi, dword [edx]
add edx, 4
shr ecx, 1
jne 0x4a26f3
mov dword [ebp + edi - 0x84], esi
add edi, 4
cmp edi, 0x80
jl 0x4a26e0
jmp 0x4a2723
mov ebx, dword [ebp + 0x10]
xor edi, edi
jmp 0x4a2730
mov ecx, dword [ebp + edi - 0x84]
xor esi, esi
lea edx, [ebp - 0x84]
test ecx, ecx
je 0x4a2751
test cl, 1
je 0x4a274a
xor esi, dword [edx]
add edx, 4
shr ecx, 1
jne 0x4a2743
mov dword [ebp + edi - 0x104], esi
add edi, 4
cmp edi, 0x80
jl 0x4a2730
mov ecx, ebx
and ecx, 1
xor edx, edx
or ecx, edx
je 0x4a2790
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x104]
test eax, eax
je 0x4a278d
jmp 0x4a2780
test al, 1
je 0x4a2786
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x4a2780
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0x14]
shrd ebx, eax, 1
sar eax, 1
mov dword [ebp - 0x108], eax
mov eax, ebx
mov ebx, dword [ebp - 0x108]
mov ecx, eax
or ecx, ebx
mov dword [ebp + 0x10], eax
je 0x4a2839
xor edi, edi
jmp 0x4a27c0
mov ecx, dword [ebp + edi - 0x104]
xor esi, esi
lea edx, [ebp - 0x104]
test ecx, ecx
je 0x4a27e1
test cl, 1
je 0x4a27da
xor esi, dword [edx]
add edx, 4
shr ecx, 1
jne 0x4a27d3
mov dword [ebp + edi - 0x84], esi
add edi, 4
cmp edi, 0x80
jl 0x4a27c0
mov ecx, eax
and ecx, 1
xor edx, edx
or ecx, edx
je 0x4a2823
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x84]
test eax, eax
je 0x4a281d
jmp 0x4a2810
test al, 1
je 0x4a2816
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x4a2810
mov eax, dword [ebp + 0x10]
mov dword [ebp + 8], edx
shrd eax, ebx, 1
mov ecx, eax
sar ebx, 1
mov dword [ebp + 0x10], ecx
or ecx, ebx
mov dword [ebp + 0x14], ebx
jne 0x4a2720
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
xor eax, dword [ebp + 0xc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c5718
mov esp, ebp
pop ebp
ret
Function at 0x4afd70
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret

Function at 0x4b6600
Capabilities:
Allocate thread local storage

Disassembly:
push 0
push 0
push 0
call fcn.0048b070
add esp, 0xc
test eax, eax
jne 0x4b6615
xor eax, eax
ret
push 0
push 0x661210
call fcn.004afd50
add esp, 8
test eax, eax
je 0x4b6612
push ebx
push 0
push 0x661214
call fcn.004afd50
add esp, 8
test eax, eax
je 0x4b66a2
mov eax, dword [0x661220]
mov ecx, dword [0x65a638]
push esi
push eax
push ecx
xor ecx, ecx
lea ebx, [ecx + 1]
call fcn.004b6400
mov esi, eax
add esp, 8
test esi, esi
je 0x4b668a
push esi
call fcn.004b6270
add esp, 4
test eax, eax
jne 0x4b6677
push esi
call fcn.004b5700
add esp, 4
xor esi, esi
jmp 0x4b668a
push 0x1c
push str.OpenSSL_NIST_SP_800_90A_DRBG
push esi
mov dword [esi + 0x58], ebx
call fcn.004b5780
add esp, 0xc
mov dword [0x661218], esi
test esi, esi
pop esi
jne 0x4b66b3
push 0x661214
call fcn.004afdc0
add esp, 4
push 0x661210
call fcn.004afdc0
add esp, 4
xor eax, eax
pop ebx
ret
mov eax, ebx
pop ebx
ret
Function at 0x4b9020
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x208
call fcn.005c5c30
mov eax, dword [0x65db30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x4b9095
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4b9095
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x204]
push 0x200
push edx
call sub.MSVCR100.dll__vsnprintf
add esp, 0x10
test eax, eax
jns 0x4b9078
mov eax, 0x200
push 0
lea ecx, [ebp - 0x208]
push ecx
push eax
lea edx, [ebp - 0x204]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4b91de
mov ebx, dword [ebp + 8]
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b90a0
sub eax, edx
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.005c5c70
mov esi, esp
test esi, esi
jne 0x4b90c4
mov esi, str.no_stack_
jmp 0x4b914f
push edi
push esi
push edi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4b90f1
test edi, edi
je 0x4b90f1
lea ebx, [ebx]
mov ecx, dword [ebp + 8]
movsx dx, byte [eax + ecx]
mov word [esi + eax*2], dx
inc eax
cmp eax, edi
jb 0x4b90e0
xor eax, eax
test edi, edi
je 0x4b914f
cmp word [esi + eax*2], 0x25
jne case.0x4b9114.43
lea ecx, [esi + eax*2 + 2]
movzx edx, word [ecx]
add edx, 0xffffffd6
cmp edx, 0x49
ja case.0x4b9114.43
movzx edx, byte [edx + 0x4b9210]
jmp dword [edx*4 + 0x4b91f8]
inc eax
add ecx, 2
jmp 0x4b9102
mov ecx, 0x53
mov word [esi + eax*2 + 2], cx
jmp case.0x4b9114.43
mov edx, 0x73
jmp 0x4b9145
mov ecx, 0x43
mov word [esi + eax*2 + 2], cx
jmp case.0x4b9114.43
mov edx, 0x63
mov word [esi + eax*2 + 2], dx
inc eax
cmp eax, edi
jb 0x4b90f7
lea eax, [ebp + 0xc]
push eax
push esi
lea ecx, [ebp - 0x204]
push 0xff
push ecx
call sub.MSVCR100.dll__vsnwprintf
xor edx, edx
add esp, 0x10
mov word [ebp - 6], dx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4b91c8
call fcn.004b8ee0
test eax, eax
jle 0x4b91c8
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x4b91de
push 0
lea ecx, [ebp - 0x208]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x204]
push esi
mov dword [ebp - 0x208], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x4b91de
push 0x10
push str.OpenSSL:_FATAL
lea edx, [ebp - 0x204]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esp, [ebp - 0x214]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c5718
mov esp, ebp
pop ebp
ret

Function at 0x4b9290
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
je 0x4b92b6
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x14]
sub esi, eax
mov dl, byte [esi + eax]
mov bl, byte [eax]
xor dl, bl
or cl, dl
inc eax
dec edi
jne 0x4b92a7
pop esi
pop ebx
movzx eax, cl
pop edi
ret
Function at 0x4d7e70
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
push ebx
call fcn.005411a0
push 0x62
push esi
mov edi, eax
mov ebp, 1
call sub.MSVCR100.dll_strchr
add esp, 0x10
test eax, eax
jne 0x4d7e9c
lea ebp, [eax + 0x11]
test edi, edi
jne 0x4d7f25
push 0x45
push str.crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.0049a370
push 0x5dd7d8
push esi
push 0x601c0c
push ebx
push str.fopen_
push 5
call fcn.0049a920
add esp, 0x2c
call sub.MSVCR100.dll__errno
cmp dword [eax], 2
je 0x4d7f06
call sub.MSVCR100.dll__errno
cmp dword [eax], 6
je 0x4d7f06
push 0x4e
push str.crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.0049a370
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0x4c
push str.crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.0049a370
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0x601bb0
call fcn.00496330
mov esi, eax
add esp, 4
test esi, esi
jne 0x4d7f48
push edi
call sub.MSVCR100.dll_fclose
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.004964f0
push edi
push ebp
push 0x6a
push esi
call fcn.00496cc0
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x4ebe00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [esp + 4]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, edi
mov ecx, ebp
cmp edi, 4
jb 0x4ebe28
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x4ebe30
sub esi, 4
add ecx, 4
add edx, 4
cmp esi, 4
jae 0x4ebe14
test esi, esi
je case.0x4ebeee.2
movzx eax, byte [edx]
movzx ebx, byte [ecx]
sub eax, ebx
jne 0x4ebe77
cmp esi, 1
jbe case.0x4ebeee.2
movzx eax, byte [edx + 1]
movzx ebx, byte [ecx + 1]
sub eax, ebx
jne 0x4ebe77
cmp esi, 2
jbe case.0x4ebeee.2
movzx eax, byte [edx + 2]
movzx ebx, byte [ecx + 2]
sub eax, ebx
jne 0x4ebe77
cmp esi, 3
jbe case.0x4ebeee.2
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
jle case.0x4ebeee.2
mov ebx, dword [esp + 0x10]
xor edx, edx
test edi, edi
jle 0x4ebea0
mov esi, ebx
mov eax, ebp
sub esi, ebp
mov cl, byte [esi + eax]
cmp cl, byte [eax]
jne 0x4ebea0
inc edx
inc eax
cmp edx, edi
jl 0x4ebe93
lea eax, [edi - 1]
test eax, eax
js 0x4ebebf
mov esi, ebx
lea ecx, [eax + ebp]
sub esi, ebp
mov edi, edi
cmp byte [ecx + esi], 0
jne 0x4ebebf
cmp byte [ecx], 0xff
jne 0x4ebebf
dec ecx
dec eax
jns 0x4ebeb0
cmp edx, eax
jl case.0x4ebeee.2
jle 0x4ebed0
pop esi
pop ebp
lea eax, [edx*8]
pop ebx
ret
mov cl, byte [edx + ebx]
mov bl, byte [edx + ebp]
mov al, bl
xor al, cl
mov byte [esp + 0x10], cl
movzx ecx, al
dec ecx
cmp ecx, 0x7e
ja case.0x4ebeee.2
movzx ecx, byte [ecx + 0x4ebf60]
jmp dword [ecx*4 + 0x4ebf40]
mov esi, 7
jmp 0x4ebf24
mov esi, 6
jmp 0x4ebf24
mov esi, 5
jmp 0x4ebf24
mov esi, 4
jmp 0x4ebf24
mov esi, 3
jmp 0x4ebf24
mov esi, 2
jmp 0x4ebf24
mov esi, 1
test byte [esp + 0x10], al
jne case.0x4ebeee.2
and bl, al
cmp bl, al
jne case.0x4ebeee.2
lea eax, [esi + edx*8]
pop esi
pop ebp
pop ebx
ret
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret

Function at 0x4f3cb0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
movzx edi, byte [esp + 0x10]
mov eax, edi
and eax, 1
add esi, ecx
add edx, ecx
test ecx, ecx
je 0x4f3ce3
push ebx
lea esp, [esp]
movzx ebx, byte [edx - 1]
dec edx
xor ebx, edi
add eax, ebx
dec esi
mov byte [esi], al
shr eax, 8
dec ecx
jne 0x4f3cd0
pop ebx
pop edi
pop esi
ret
Function at 0x4f6240
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x84], 0xffffffff
jne 0x4f6252
xor eax, eax
pop edi
ret
mov eax, dword [edi]
push ebx
push esi
push eax
call fcn.004ba2d0
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add esp, 4
mov esi, eax
mov dword [ecx], esi
test ebx, ebx
je 0x4f62f7
mov eax, dword [edi + 0x84]
push ebp
cmp eax, esi
jne 0x4f629e
test esi, esi
jle 0x4f62d4
mov ecx, ebx
lea eax, [edi + 4]
mov ebp, esi
lea esp, [esp]
mov dl, byte [eax + 0x60]
xor dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
dec ebp
jne 0x4f6290
jmp 0x4f62d4
mov ecx, esi
sub ecx, eax
mov byte [eax + edi + 0x64], 0x80
cmp ecx, 1
jle 0x4f62bd
dec ecx
push ecx
lea eax, [eax + edi + 0x65]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
test esi, esi
jle 0x4f62d4
mov ecx, ebx
lea eax, [edi + 0x24]
mov ebp, esi
mov dl, byte [eax + 0x40]
xor dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
dec ebp
jne 0x4f62c8
mov eax, dword [edi]
push esi
push ebx
push ebx
push eax
call fcn.004ba2e0
add esp, 0x10
pop ebp
test eax, eax
jne 0x4f62f7
push esi
push ebx
call fcn.004e60d0
add esp, 8
pop esi
pop ebx
xor eax, eax
pop edi
ret
pop esi
pop ebx
mov eax, 1
pop edi
ret

Function at 0x505fc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x50604b
mov edx, dword [esp + 8]
lea ecx, [edx - 1]
not edx
shr edx, 0x1f
push esi
mov esi, dword [edi + 4]
shr ecx, 0x1f
and ecx, edx
mov edx, dword [eax + 4]
xor edx, esi
dec ecx
and edx, ecx
xor esi, edx
mov dword [edi + 4], esi
xor dword [eax + 4], edx
mov esi, dword [edi + 0xc]
mov edx, dword [eax + 0xc]
xor edx, esi
and edx, ecx
xor esi, edx
mov dword [edi + 0xc], esi
xor dword [eax + 0xc], edx
mov esi, dword [edi + 0x10]
mov edx, dword [eax + 0x10]
xor edx, esi
and edx, ecx
and edx, 4
xor esi, edx
mov dword [edi + 0x10], esi
xor dword [eax + 0x10], edx
xor esi, esi
cmp dword [esp + 0x18], esi
jle 0x50604a
push ebx
push ebp
mov edx, dword [edi]
mov ebx, dword [edx + esi*4]
lea ebp, [edx + esi*4]
mov edx, dword [eax]
mov edx, dword [edx + esi*4]
xor edx, ebx
and edx, ecx
xor ebx, edx
mov dword [ebp], ebx
mov ebx, dword [eax]
xor dword [ebx + esi*4], edx
lea ebx, [ebx + esi*4]
inc esi
cmp esi, dword [esp + 0x20]
jl 0x506023
pop ebp
pop ebx
pop esi
pop edi
ret

Function at 0x506d40
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x60
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
mov eax, 1
pop esi
ret
Function at 0x508510
Capabilities:
Hash data using sha224

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [esi], 0xc1059ed8
mov dword [esi + 4], 0x367cd507
mov dword [esi + 8], 0x3070dd17
mov dword [esi + 0xc], 0xf70e5939
mov dword [esi + 0x10], 0xffc00b31
mov dword [esi + 0x14], 0x68581511
mov dword [esi + 0x18], 0x64f98fa7
mov dword [esi + 0x1c], 0xbefa4fa4
mov dword [esi + 0x6c], 0x1c
mov eax, 1
pop esi
ret

Function at 0x508570
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
mov eax, 1
pop esi
ret
Function at 0x509b60
Capabilities:
Hash data using sha256

Disassembly:
mov eax, 0x74
call fcn.005c5c30
mov eax, dword [0x65db30]
xor eax, esp
mov dword [esp + 0x70], eax
push esi
mov esi, dword [esp + 0x84]
push edi
mov edi, dword [esp + 0x80]
test esi, esi
jne 0x509b8e
mov esi, 0x6614a4
push 0x70
lea eax, [esp + 0xc]
push 0
push eax
call sub.MSVCR100.dll_memset
mov ecx, dword [esp + 0x90]
push ecx
lea edx, [esp + 0x18]
push edi
push edx
mov dword [esp + 0x20], 0x6a09e667
mov dword [esp + 0x24], 0xbb67ae85
mov dword [esp + 0x28], 0x3c6ef372
mov dword [esp + 0x2c], 0xa54ff53a
mov dword [esp + 0x30], 0x510e527f
mov dword [esp + 0x34], 0x9b05688c
mov dword [esp + 0x38], 0x1f83d9ab
mov dword [esp + 0x3c], 0x5be0cd19
mov dword [esp + 0x8c], 0x20
call fcn.005096b0
lea eax, [esp + 0x20]
push eax
push esi
call fcn.005097b0
lea ecx, [esp + 0x28]
push 0x70
push ecx
call fcn.004e60d0
mov ecx, dword [esp + 0xa0]
add esp, 0x28
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.005c5718
add esp, 0x74
ret

Function at 0x509d90
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x30
lea eax, [ecx + 1]
ret

Function at 0x509e30
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x40
lea eax, [ecx + 1]
ret
Function at 0x50af20
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret
Function at 0x510a70
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.005c5c30
mov eax, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x28]
test esi, esi
je 0x510ab5
test ebx, ebx
je 0x510ab5
mov cl, byte [esi + edi]
mov ebp, dword [esp + 0x18]
xor cl, byte [ebp]
mov eax, dword [esp + 0x1c]
mov byte [eax], cl
inc eax
inc ebp
inc esi
dec ebx
and esi, 0xf
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebp
jne 0x510a90
cmp ebx, 0x10
jb 0x510b2d
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, edx
sub eax, edi
mov dword [esp + 0x20], eax
mov eax, ebx
shr eax, 4
mov ebp, ecx
mov dword [esp + 0x10], eax
shl eax, 4
add ecx, eax
sub ebp, edi
add edx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x24]
push edx
push edi
push edi
call dword [esp + 0x3c]
add esp, 0xc
cmp esi, 0x10
jae 0x510b1a
mov ecx, 0xf
sub ecx, esi
shr ecx, 2
lea eax, [esi + edi]
inc ecx
mov edx, dword [esp + 0x20]
mov edx, dword [edx + eax]
xor edx, dword [eax]
add eax, 4
dec ecx
mov dword [eax + ebp - 4], edx
jne 0x510b07
add dword [esp + 0x20], 0x10
sub ebx, 0x10
add ebp, 0x10
xor esi, esi
dec dword [esp + 0x10]
jne 0x510ae6
test ebx, ebx
je 0x510b69
mov eax, dword [esp + 0x24]
push eax
push edi
push edi
call dword [esp + 0x3c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea eax, [esi + edi]
sub ebp, edi
sub ecx, edi
add esi, ebx
mov dl, byte [eax + ebp]
xor dl, byte [eax]
inc eax
dec ebx
mov byte [eax + ecx - 1], dl
jne 0x510b50
mov eax, dword [esp + 0x2c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x2c]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x511200
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.005c5c30
mov eax, dword [esp + 0x20]
push ebx
mov ebx, dword [eax]
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x20]
test ebx, ebx
je 0x511249
test edi, edi
je 0x511249
mov cl, byte [ebx + esi]
mov ebp, dword [esp + 0x18]
xor cl, byte [ebp]
mov eax, dword [esp + 0x1c]
mov byte [eax], cl
inc eax
inc ebp
inc ebx
dec edi
and ebx, 0xf
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebx
jne 0x511220
cmp edi, 0x10
jb 0x5112c4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, edi
shr eax, 4
mov ebx, ecx
mov ebp, edx
mov dword [esp + 0x10], eax
shl eax, 4
add ecx, eax
sub ebx, esi
sub ebp, esi
add edx, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov edi, edi
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push edx
push esi
push eax
call dword [esp + 0x40]
mov edx, dword [esp + 0x34]
add esp, 0xc
call fcn.005111d0
mov eax, esi
mov ecx, 4
mov edx, dword [eax + ebp]
xor edx, dword [eax]
add eax, 4
dec ecx
mov dword [ebx + eax - 4], edx
jne 0x5112a2
sub edi, 0x10
add ebx, 0x10
add ebp, 0x10
dec dword [esp + 0x10]
jne 0x511280
mov ebx, dword [esp + 0x20]
test edi, edi
je 0x51130b
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
push eax
push esi
push ebp
call dword [esp + 0x40]
add esp, 0xc
mov edx, ebp
call fcn.005111d0
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea eax, [ebx + esi]
sub ebp, esi
sub ecx, esi
add ebx, edi
mov dl, byte [eax + ebp]
xor dl, byte [eax]
inc eax
dec edi
mov byte [eax + ecx - 1], dl
jne 0x5112f2
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword [eax], ebx
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword [ecx], ebx
pop ebx
pop ecx
ret