joyce8/EMBER2024-capa huggingface dataset:
Function at 0x530970
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6291e0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 8]
mov edi, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x530a18
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x530a14
test edi, edi
je 0x530a14
push 0x74
lea eax, [ebp - 0x84]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x84]
call fcn.00494a40
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0
call fcn.00495af0
mov esi, dword [edi]
lea ecx, [ebp - 0x84]
call fcn.00499300
push eax
mov ecx, edi
call dword [esi + 0x14]
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_get_file_size__32_
call dword [eax + 0x14]
lea ecx, [ebp - 0x84]
call fcn.00494a90
mov eax, ebx
jmp 0x530a33
mov eax, dword [ecx + 4]
test eax, eax
je 0x530a30
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__filelength
add esp, 8
jmp 0x530a33
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 4

Function at 0x530a60
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6336f0
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
mov edi, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x530b54
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x530b46
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x530b46
test edi, edi
je 0x530b24
push 0x74
lea eax, [ebp - 0x88]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x88]
call fcn.00494a40
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0
call fcn.00495af0
mov esi, dword [edi]
lea ecx, [ebp - 0x88]
call fcn.00499300
push eax
mov ecx, edi
call dword [esi + 0x14]
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_get_file_size__64_
call dword [eax + 0x14]
lea ecx, [ebp - 0x88]
call fcn.00494a90
or eax, 0xffffffff
or edx, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 0x14]
push esi
call fcn.004ca960
add esp, 8
jmp 0x530b29
mov eax, dword [esi + 4]
test eax, eax
je 0x530b24
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
push dword [esi + 4]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__filelengthi64
add esp, 0xc
jmp 0x530b29
Function at 0x530c80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov edx, ecx
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
mov byte [eax], 0
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [edi], 0
test ebx, ebx
jne 0x530cde
test ecx, ecx
je 0x530e2b
mov eax, dword [ecx]
push str.NULL_buf_pointer.
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x530e40
mov dword [ebp - 0x18], 0x10000
cmp esi, 0x10000
mov byte [eax], 0
mov ecx, esi
cmova ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], eax
test ebx, ebx
je 0x530e15
mov edx, dword [edx + 8]
cmp edx, 0xffffffff
je 0x530d68
push eax
lea eax, [ebp - 8]
push eax
push ecx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x530d5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x530d99
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x530e26
push eax
call fcn.004b3aa0
mov eax, dword [ebp - 8]
add dword [edi], eax
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 8]
test eax, eax
jne 0x530da2
jmp 0x530d9c
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 4]
test edx, edx
je 0x530dea
push edx
push ecx
push 1
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add esp, 0x10
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x1c]
je 0x530da2
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
add esp, 4
test eax, eax
jne 0x530dc4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov byte [ecx], 1
add dword [edi], eax
sub esi, eax
add ebx, eax
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0
jne 0x530e40
test esi, esi
je 0x530e40
mov edx, dword [ebp - 0x14]
jmp 0x530cf0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x530e26
call fcn.004b3640
mov eax, dword [ebp - 8]
add dword [edi], eax
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x530e29
mov eax, dword [ecx]
push str.No_file_is_open.
call dword [eax + 0x14]
mov eax, dword [ebp - 8]
add dword [edi], eax
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x530e29
mov eax, dword [ecx]
push str.NULL_buf_or_bufSize
call dword [eax + 0x14]
mov eax, dword [ebp - 8]
add dword [edi], eax
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00622073
mov esp, ebp
pop ebp
ret 0x14
Function at 0x5312e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, ecx
mov ecx, dword [ebp + 0x18]
push ebx
push esi
cmp dword [eax + 8], 0xffffffff
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], ecx
jne 0x53133a
cmp dword [eax + 4], 0
jne 0x53133a
test ecx, ecx
je 0x53144e
mov eax, dword [ecx]
push str.Failed_to_write_because_file_is_not_open.
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 0x14
test edi, edi
je 0x53134b
mov dword [edi], 0
mov dword [edi + 4], 0
mov ebx, dword [ebp + 0xc]
mov eax, ebx
mov esi, dword [ebp + 0x10]
or eax, esi
mov dword [ebp - 0x14], esi
je 0x531428
mov ecx, dword [ebp - 8]
test esi, esi
jl 0x531376
jg 0x53136f
cmp ebx, 0x989680
jbe 0x531376
mov esi, 0x989680
jmp 0x531378
mov esi, ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x5313e0
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5313a4
mov ecx, dword [ebp - 8]
cmp ecx, esi
je 0x531401
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x53144e
mov eax, dword [ebx]
mov ecx, ebx
push 1
push str.WriteFileError
call dword [eax + 0x24]
mov ecx, ebx
call fcn.004b3640
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x28]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
test eax, eax
je 0x531404
push eax
push 1
push esi
push edx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
cmp eax, 1
jne 0x53143d
mov ecx, esi
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
add edx, esi
sub ebx, esi
mov esi, dword [ebp - 0x14]
sbb esi, 0
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
test edi, edi
je 0x53141e
add dword [edi], ecx
adc dword [edi + 4], 0
mov eax, ebx
or eax, esi
jne 0x531361
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x53144e
mov eax, dword [ecx]
push str.fwrite_failed.
call dword [eax + 0x14]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00622073
mov esp, ebp
pop ebp
ret 0x14
Function at 0x536620
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63385b
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x2c]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1b4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1b0], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp + 0x28]
push 0x118
mov dword [ebp - 0x1a4], eax
push 0
mov dword [eax], 0
lea eax, [ebp - 0x19c]
push eax
mov dword [ebp - 0x1c0], ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x19c]
call fcn.00468d60
push esi
lea ecx, [ebp - 0x19c]
mov dword [ebp - 4], 0
call fcn.004699d0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x19c]
call fcn.0046c710
lea ecx, [ebp - 0x19c]
call fcn.0046c230
mov ebx, eax
call fcn.005308c0
mov esi, eax
test esi, esi
je 0x536845
xor edi, edi
mov byte [ebp - 0x19d], 0
nop word [eax + eax]
push dword [ebp - 0x1a8]
push dword [ebp - 0x1ac]
push dword [ebp - 0x1b0]
push dword [ebp - 0x1b4]
push dword [ebp - 0x1b8]
push dword [ebp - 0x1bc]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp edi, 3
jge 0x536768
cmp eax, 0xffffffff
jne 0x536768
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1a4]
mov dword [ecx], eax
cmp eax, 0x20
jne 0x536768
push 0x32
inc edi
call fcn.004b2050
add esp, 4
jmp 0x536710
cmp dword [esi + 8], 0xffffffff
jne 0x536847
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1a4]
mov dword [ecx], eax
cmp eax, 2
jne 0x5367c9
cmp byte [ebp - 0x19d], 0
jne 0x5367c9
lea eax, [ebp - 0x19c]
push eax
call fcn.004a74d0
add esp, 4
test al, al
je 0x5367c9
lea eax, [ebp - 0x19c]
mov byte [ebp - 0x19d], 1
push eax
call fcn.004a7bd0
add esp, 4
lea ecx, [ebp - 0x19c]
call fcn.0046c230
mov ebx, eax
jmp 0x536710
mov ebx, dword [ebp - 0x1c0]
test ebx, ebx
je 0x53683d
push 0x74
lea eax, [ebp - 0x84]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x84]
call fcn.00494a40
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.00495af0
mov eax, dword [ebx]
mov ecx, ebx
push str.Failed_to_open_file__3_
call dword [eax + 0x14]
lea eax, [ebp - 0x19c]
mov ecx, ebx
push eax
push str.filePath
call fcn.004b3300
lea eax, [ebp - 0x84]
mov ecx, ebx
push eax
push str.osErrorInfo
call fcn.004b3100
lea ecx, [ebp - 0x84]
call fcn.00494a90
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor esi, esi
lea ecx, [ebp - 0x19c]
call fcn.00468df0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret
Function at 0x5388c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x40c], eax
push edi
mov edi, dword [ebp + 8]
test esi, esi
jne 0x5388fa
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00538ad0
or ebx, 0xffffffff
cmp dword [ebp - 0x40c], 0
jne 0x53892d
mov edx, dword [0x7dac88]
movzx eax, byte [edi]
lea edi, [edi + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [edx + ecx*4]
sub esi, 1
jne 0x538912
jmp 0x538ab2
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edx, dword [0x7dac88]
add esp, 0xc
nop dword [eax]
movzx eax, byte [edi]
lea edi, [edi + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
inc dword [ebp + eax*4 - 0x404]
xor ebx, dword [edx + ecx*4]
sub esi, 1
jne 0x538950
mov edi, dword [ebp - 0x3ec]
lea ecx, [esi + 7]
add edi, dword [ebp - 0x3f0]
lea eax, [ebp - 0x404]
add edi, dword [ebp - 0x3f4]
xorps xmm2, xmm2
add edi, dword [ebp - 0x3f8]
xorps xmm3, xmm3
add edi, dword [ebp - 0x3fc]
xorps xmm1, xmm1
add edi, dword [ebp - 0x400]
add edi, dword [ebp - 0x404]
nop dword [eax]
movups xmm0, xmmword [eax + ecx*4]
paddd xmm3, xmm0
movups xmm0, xmmword [ebp + ecx*4 - 0x3f4]
add ecx, 8
paddd xmm1, xmm0
cmp ecx, 0x7f
jl 0x5389b0
paddd xmm1, xmm3
xor edx, edx
movaps xmm0, xmm1
xor esi, esi
psrldq xmm0, 8
paddd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd dword [ebp - 0x408], xmm1
cmp ecx, 0x80
jge 0x538a4c
mov eax, 0x80
sub eax, ecx
cmp eax, 2
jl 0x538a26
nop dword [eax + eax]
add edx, dword [ebp + ecx*4 - 0x404]
add esi, dword [ebp + ecx*4 - 0x400]
add ecx, 2
cmp ecx, 0x7f
jl 0x538a10
cmp ecx, 0x80
jae 0x538a3f
movd eax, xmm1
add eax, dword [ebp + ecx*4 - 0x404]
mov dword [ebp - 0x408], eax
mov ecx, dword [ebp - 0x408]
lea eax, [esi + edx]
add ecx, eax
jmp 0x538a52
mov ecx, dword [ebp - 0x408]
mov eax, 0x80
lea edx, [ebp - 0x404]
movaps xmm1, xmm2
movups xmm0, xmmword [edx + eax*4]
paddd xmm2, xmm0
movups xmm0, xmmword [ebp + eax*4 - 0x3f4]
add eax, 8
paddd xmm1, xmm0
cmp eax, 0x100
jl 0x538a60
paddd xmm1, xmm2
shr ecx, 2
movaps xmm0, xmm1
psrldq xmm0, 8
paddd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd eax, xmm1
add edi, eax
cmp ecx, edi
mov ecx, dword [ebp - 0x40c]
sbb eax, eax
neg eax
mov word [ecx], ax
mov ecx, dword [ebp - 4]
not ebx
mov eax, ebx
xor ecx, ebp
pop ebx
pop edi
pop esi
call fcn.00622073
mov esp, ebp
pop ebp
ret
Function at 0x538ad0
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
mov cl, byte [0x7dac84]
mov al, byte [0x7dac85]
push esi
test cl, cl
jne 0x538c72
test al, al
jne 0x538c7a
cmp dword [0x7dac88], 0
jne 0x538c6d
push edi
push 0x100
mov byte [0x7dac85], 1
call fcn.00477960
mov edi, eax
add esp, 4
test edi, edi
je 0x538c6c
xor ecx, ecx
mov dword [ebp - 4], ecx
push ebx
xor eax, eax
test cl, 1
je 0x538b2d
bts eax, 7
shr ecx, 1
test cl, 1
je 0x538b38
bts eax, 6
shr ecx, 1
test cl, 1
je 0x538b43
bts eax, 5
shr ecx, 1
test cl, 1
je 0x538b4e
bts eax, 4
shr ecx, 1
test cl, 1
je 0x538b59
bts eax, 3
shr ecx, 1
test cl, 1
je 0x538b64
bts eax, 2
shr ecx, 1
test cl, 1
je 0x538b6f
bts eax, 1
test cl, 2
je 0x538b78
bts eax, 0
shl eax, 0x18
mov ecx, eax
add eax, eax
sar ecx, 0x1f
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov ebx, ecx
sar ebx, 0x1f
and ebx, 0x4c11db7
lea eax, [ecx + ecx]
xor ebx, eax
mov eax, dword [ebp - 4]
xor edx, edx
lea esi, [edi + eax*4]
lea ecx, [edx + 1]
test bl, 1
je 0x538c14
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x538c05
mov ecx, dword [ebp - 4]
inc ecx
mov dword [esi], edx
mov dword [ebp - 4], ecx
cmp ecx, 0xff
jbe 0x538b22
cmp dword [0x7dac88], 0
pop ebx
jne 0x538c55
mov dword [0x7dac88], edi
pop edi
mov byte [0x7dac84], 1
mov byte [0x7dac85], 0
pop esi
mov esp, ebp
pop ebp
ret
push edi
call fcn.00622535
add esp, 4
mov byte [0x7dac84], 1
mov byte [0x7dac85], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test al, al
je 0x538c6d
test cl, cl
jne 0x538c6d
xor esi, esi
test al, al
je 0x538c6d
push 2
call fcn.004b2050
inc esi
add esp, 4
cmp esi, 0xc8
ja 0x538c6d
cmp byte [0x7dac85], 0
jne 0x538c80
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x538cb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x538daf
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x538dae
push ebx
cmp edi, 0x10
jb 0x538d89
lea eax, [ecx + 4]
mov ecx, edi
shr ecx, 4
mov dword [ebp - 8], eax
mov eax, dword [eax]
mov dword [ebp - 4], ecx
nop dword [eax + eax]
mov edi, dword [ebp - 8]
lea ebx, [esi + 2]
mov esi, 4
nop dword [eax + eax]
movzx edx, byte [ebx - 2]
lea ebx, [ebx + 4]
movzx ecx, al
xor edx, ecx
shr eax, 8
mov ecx, dword [0x7dac88]
xor eax, dword [ecx + edx*4]
mov dword [edi], eax
movzx edx, byte [ebx - 5]
movzx ecx, al
xor edx, ecx
shr eax, 8
mov ecx, dword [0x7dac88]
xor eax, dword [ecx + edx*4]
mov dword [edi], eax
movzx ecx, byte [ebx - 4]
movzx edx, al
xor edx, ecx
shr eax, 8
mov ecx, dword [0x7dac88]
xor eax, dword [ecx + edx*4]
mov dword [edi], eax
movzx edx, byte [ebx - 3]
movzx ecx, al
xor edx, ecx
shr eax, 8
mov ecx, dword [0x7dac88]
xor eax, dword [ecx + edx*4]
mov dword [edi], eax
sub esi, 1
jne 0x538d00
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
sub edi, 0x10
add esi, 0x10
mov dword [ebp + 0xc], edi
sub dword [ebp - 4], 1
mov dword [ebp + 8], esi
jne 0x538cf0
test edi, edi
je 0x538dad
mov ebx, dword [ebp - 8]
jmp 0x538d8c
lea ebx, [ecx + 4]
mov edx, dword [ebx]
nop
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
mov eax, dword [0x7dac88]
xor edx, dword [eax + ecx*4]
mov dword [ebx], edx
sub edi, 1
jne 0x538d90
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x53eb00
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
push 0x80
push 0
lea eax, [esi + 8]
mov dword [esi + 0xd8], 0
push eax
mov dword [esi + 0xdc], 0
call fcn.00477810
push 0x40
lea ebx, [esi + 0x88]
push 0
push ebx
call fcn.00477810
push 0x10
lea eax, [esi + 0xc8]
push 0
push eax
call fcn.00477810
mov eax, dword [ebp + 8]
add esp, 0x24
test eax, eax
je 0x53ec8c
cmp eax, 0x40
ja 0x53ec8c
mov edi, dword [ebp + 0x10]
cmp edi, 0x40
ja 0x53ec8c
mov dword [esi + 0xdc], eax
mov ecx, edi
xor ecx, 0x10100
mov dword [esi + 0x90], 0x84caa73b
shl ecx, 8
xor ecx, eax
mov dword [esi + 0x94], 0xbb67ae85
xor eax, eax
mov dword [esi + 0x98], 0xfe94f82b
xor eax, 0x6a09e667
mov dword [esi + 0x9c], 0x3c6ef372
mov dword [ebx + 4], eax
xor ecx, 0xf3bcc908
mov dword [ebx], ecx
mov eax, 0x80
mov dword [esi + 0xa0], 0x5f1d36f1
lea ecx, [edi + 8]
mov dword [esi + 0xa4], 0xa54ff53a
sub eax, edi
mov dword [esi + 0xa8], 0xade682d1
add ecx, esi
mov dword [esi + 0xac], 0x510e527f
mov dword [esi + 0xb0], 0x2b3e6c1f
mov dword [esi + 0xb4], 0x9b05688c
mov dword [esi + 0xb8], 0xfb41bd6b
mov dword [esi + 0xbc], 0x1f83d9ab
mov dword [esi + 0xc0], 0x137e2179
mov dword [esi + 0xc4], 0x5be0cd19
mov dword [esi + 0xc8], 0
push eax
mov dword [esi + 0xcc], 0
mov dword [esi + 0xd0], 0
push 0
mov dword [esi + 0xd4], 0
push ecx
mov dword [esi + 0xd8], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test edi, edi
je 0x53ec83
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0053fe40
mov dword [esi + 0xd8], 0x80
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0xc

Function at 0x53eca0
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx + 0x10], 0x67452301
mov dword [ecx + 0x14], 0xefcdab89
mov dword [ecx + 0x18], 0x98badcfe
mov dword [ecx + 0x1c], 0x10325476
mov dword [ecx + 0x20], 0xc3d2e1f0
mov dword [ecx + 0x24], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
ret
Function at 0x53faf0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x633d48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x7dac8c], 0
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
jne 0x53fbd0
push 0x138
lea eax, [ebp - 0x1cc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x1cc]
call fcn.004b2580
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
movq qword [ebp - 0x1c], xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x14], 0
call fcn.0049ead0
lea eax, [ebp - 0x1cc]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0xc]
push edi
push 1
call fcn.00539bf0
add esp, 0x14
lea ecx, [ebp - 0x2c]
test al, al
je 0x53fbc0
push 0x14
call fcn.004a2ca0
push eax
push esi
call fcn.004777e0
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.0049ecf0
lea ecx, [ebp - 0x1cc]
call fcn.004b26a0
jmp 0x53fc50
call fcn.0049ecf0
lea ecx, [ebp - 0x1cc]
call fcn.004b26a0
push 0x40
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x94], vtable.s535464zz.0
xorps xmm0, xmm0
mov dword [ebp - 0x74], 0
push 0
push eax
movups xmmword [ebp - 0x84], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x84], 0x67452301
xorps xmm0, xmm0
mov dword [ebp - 0x80], 0xefcdab89
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x7c], 0x98badcfe
mov dword [ebp - 0x78], 0x10325476
push dword [ebp + 0xc]
mov dword [ebp - 0x74], 0xc3d2e1f0
push edi
mov dword [ebp - 0x70], 0
movlpd qword [ebp - 0x8c], xmm0
call fcn.0053ece0
push 0
push esi
lea ecx, [ebp - 0x94]
call fcn.0053e910
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret