joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4685c0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, 0x18
call fcn.00468d20
mov eax, dword [0x5808f0]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [0x4f4e34]
push ebx
mov bl, byte [0x4f4e38]
push ebp
mov ebp, dword [0x4f4e30]
push esi
mov esi, dword [str.expand_32_byte_k]
push edi
mov edi, dword [0x4f4e2c]
mov dword [eax], esi
mov esi, dword [ecx]
mov dword [eax + 4], esi
mov esi, dword [ecx + 4]
mov dword [eax + 8], esi
mov esi, dword [ecx + 8]
mov dword [eax + 0xc], esi
mov esi, dword [ecx + 0xc]
mov dword [eax + 0x10], esi
xor esi, esi
mov dword [eax + 0x14], edi
mov dword [eax + 0x24], esi
mov dword [eax + 0x20], esi
mov dword [eax + 0x1c], esi
mov dword [eax + 0x18], esi
mov dword [eax + 0x28], ebp
mov esi, dword [ecx + 0x10]
mov dword [eax + 0x2c], esi
mov esi, dword [ecx + 0x14]
mov dword [eax + 0x30], esi
mov esi, dword [ecx + 0x18]
pop edi
mov dword [eax + 0x34], esi
mov ecx, dword [ecx + 0x1c]
pop esi
mov dword [eax + 0x38], ecx
mov ecx, dword [esp + 0x1c]
pop ebp
mov byte [esp + 0x14], bl
pop ebx
xor ecx, esp
mov dword [eax + 0x3c], edx
call fcn.004690b5
add esp, 0x18
ret

Function at 0x468660
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x40
call fcn.00468d20
push ebx
mov ebx, dword [esp + 0x48]
push ebp
mov ebp, dword [esp + 0x50]
mov eax, ebp
push esi
shr eax, 6
push edi
mov edi, ecx
mov esi, edx
test eax, eax
jbe 0x4686e2
mov dword [esp + 0x58], eax
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.004682b0
mov ecx, 1
add esp, 8
add dword [ebx + 0x20], ecx
jne 0x4686a2
add dword [ebx + 0x24], ecx
xor eax, eax
movzx edx, byte [esp + eax + 0x10]
xor dl, byte [esi]
add eax, 4
mov byte [edi], dl
movzx edx, byte [esi + 1]
xor dl, byte [esp + eax + 0xd]
add esi, 4
mov byte [edi + 1], dl
movzx edx, byte [esp + eax + 0xe]
xor dl, byte [esi - 2]
add edi, 4
mov byte [edi - 2], dl
movzx edx, byte [esp + eax + 0xf]
xor dl, byte [esi - 1]
mov byte [edi - 1], dl
cmp eax, 0x40
jb 0x4686a4
sub dword [esp + 0x58], ecx
jne 0x468687
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.004682b0
mov edx, 1
add esp, 8
add dword [ebx + 0x20], edx
jne 0x4686fd
add dword [ebx + 0x24], edx
xor eax, eax
and ebp, 0x3f
mov ecx, ebp
jbe 0x468718
mov bl, byte [esp + eax + 0x10]
xor bl, byte [esi]
add eax, edx
mov byte [edi], bl
add esi, edx
add edi, edx
cmp eax, ecx
jb 0x468706
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret

Function at 0x4690b5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5808f0]
jne 0x4690bf
repz ret
jmp fcn.0046c3b0
Function at 0x4751ab
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0046ed6f
and dword [ebp - 4], 0
cmp dword [0x5d87cc], 0
mov ebx, eax
jne 0x47525c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x47530d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4f5710
push edi
call esi
test eax, eax
je 0x47530d
push eax
call fcn.0046ecfd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5d87cc], eax
call esi
push eax
call fcn.0046ecfd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5d87d0], eax
call esi
push eax
call fcn.0046ecfd
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5d87d4], eax
call esi
push eax
call fcn.0046ecfd
pop ecx
mov dword [0x5d87dc], eax
test eax, eax
je 0x47525c
push 0x4f56b8
push edi
call esi
push eax
call fcn.0046ecfd
pop ecx
mov dword [0x5d87d8], eax
mov eax, dword [0x5d87d8]
cmp eax, ebx
je 0x4752b4
cmp dword [0x5d87dc], ebx
je 0x4752b4
push eax
call fcn.0046ed78
push dword [0x5d87dc]
mov esi, eax
call fcn.0046ed78
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4752b4
test edi, edi
je 0x4752b4
call esi
test eax, eax
je 0x4752ab
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4752ab
test byte [ebp - 0xc], 1
jne 0x4752b4
or dword [ebp + 0x10], 0x200000
jmp 0x4752ed
mov eax, dword [0x5d87d0]
cmp eax, ebx
je 0x4752ed
push eax
call fcn.0046ed78
pop ecx
test eax, eax
je 0x4752ed
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4752ed
mov eax, dword [0x5d87d4]
cmp eax, ebx
je 0x4752ed
push eax
call fcn.0046ed78
pop ecx
test eax, eax
je 0x4752ed
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5d87cc]
call fcn.0046ed78
pop ecx
test eax, eax
je 0x47530d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x47530f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47a370
Capabilities:
Encrypt data using blowfish

Disassembly:
mov eax, 8
call fcn.00468d20
push ebx
mov ebx, dword [esp + 0x10]
push esi
push 0x1048
push 0x4f72d8
push ebx
call fcn.00468d50
mov ecx, dword [esp + 0x24]
add esp, 0xc
cmp ecx, 0x48
jle 0x47a3a1
mov ecx, 0x48
push edi
mov edi, dword [esp + 0x20]
mov eax, edi
add ecx, edi
lea esi, [ebx + 8]
mov dword [esp + 0x18], 6
push ebp
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x47a3c0
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x47a3cf
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x47a3de
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x47a3ed
mov eax, edi
xor dword [esi - 8], edx
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x47a3fa
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x47a409
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x47a418
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x47a427
mov eax, edi
xor dword [esi - 4], edx
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x47a434
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x47a443
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x47a452
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x47a461
mov eax, edi
xor dword [esi], edx
add esi, 0xc
sub dword [esp + 0x1c], 1
jne 0x47a3b6
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
xor esi, esi
pop ebp
mov edi, edi
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.004d02c0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ebx + esi*4], ecx
mov dword [ebx + esi*4 + 4], edx
add esi, 2
add esp, 8
cmp esi, 0x12
jl 0x47a480
xor esi, esi
pop edi
lea eax, [esp + 8]
push ebx
push eax
call fcn.004d02c0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [ebx + esi*4 + 0x48], ecx
mov dword [ebx + esi*4 + 0x4c], edx
add esi, 2
add esp, 8
cmp esi, 0x400
jl 0x47a4a8
pop esi
pop ebx
add esp, 8
ret
Function at 0x47ad30
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 0x80
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov byte [edi], 0
jle 0x47ad4a
mov eax, 0x80
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jle 0x47ad5a
cmp ecx, 0x400
jle 0x47ad5f
mov ecx, 0x400
test eax, eax
jle 0x47ad7c
mov esi, dword [esp + 0x18]
push ebp
mov edx, edi
sub esi, edi
mov ebp, eax
mov edi, edi
mov bl, byte [esi + edx]
mov byte [edx], bl
inc edx
sub ebp, 1
jne 0x47ad70
pop ebp
cmp eax, 0x80
movzx edx, byte [edi + eax - 1]
jge 0x47adae
mov esi, edi
sub esi, eax
lea esp, [esp]
movzx ebx, byte [esi + eax]
add ebx, edx
and ebx, 0xff
movzx edx, byte [ebx + 0x4f8348]
mov byte [eax + edi], dl
inc eax
cmp eax, 0x80
jl 0x47ad90
lea edx, [ecx + 7]
neg ecx
sar edx, 3
mov eax, 0x80
and ecx, 7
sub eax, edx
lea esi, [eax + edi]
mov ebx, 0xff
sar ebx, cl
movzx ecx, byte [esi]
and ebx, ecx
movzx ecx, byte [ebx + 0x4f8348]
mov byte [esi], cl
test eax, eax
je 0x47adf6
lea esp, [esp]
movzx ebx, byte [esi + edx - 1]
dec esi
xor ebx, ecx
movzx ecx, byte [ebx + 0x4f8348]
dec eax
mov byte [esi], cl
test eax, eax
jne 0x47ade0
lea ecx, [edi + 0xfc]
lea eax, [edi + 0x7e]
mov edx, 0x40
movzx esi, byte [eax + 1]
movzx edi, byte [eax]
shl esi, 8
or esi, edi
and esi, 0xffff
mov dword [ecx], esi
sub ecx, 4
sub eax, 2
sub edx, 1
jne 0x47ae04
pop edi
pop esi
pop ebx
ret

Function at 0x47b060
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x60
push 0
push esi
call fcn.00468ca0
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 0x47b0a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x130
call fcn.00468d20
mov eax, dword [0x5808f0]
xor eax, esp
mov dword [esp + 0x12c], eax
mov eax, dword [esp + 0x13c]
push ebx
push ebp
mov ebp, dword [esp + 0x158]
push esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x154]
push edi
mov edi, dword [esp + 0x144]
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], eax
mov ebx, 1
call fcn.0047f7d0
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
test esi, esi
jge 0x47b103
xor eax, eax
jmp 0x47b28d
lea ecx, [esp + 0x2c]
push ecx
call fcn.0047f540
mov edx, dword [esp + 0x160]
add esp, 4
mov dword [esp + 0x18], edx
test edi, edi
jne 0x47b128
mov dword [esp + 0x148], edi
jmp 0x47b152
cmp dword [esp + 0x148], 0xffffffff
jne 0x47b152
mov eax, edi
lea ecx, [eax + 1]
mov dword [esp + 0x10], ecx
jmp 0x47b140
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47b140
sub eax, dword [esp + 0x10]
mov dword [esp + 0x148], eax
test edx, edx
je 0x47b27b
jmp 0x47b168
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
cmp edx, esi
jg 0x47b16e
mov esi, edx
mov edx, ebx
shr edx, 0x18
mov eax, ebx
shr eax, 0x10
push 0
mov byte [esp + 0x18], dl
mov edx, dword [esp + 0x20]
push edx
mov byte [esp + 0x1d], al
mov eax, dword [esp + 0x150]
mov ecx, ebx
shr ecx, 8
push eax
mov byte [esp + 0x22], cl
lea ecx, [esp + 0x38]
push edi
push ecx
mov byte [esp + 0x2b], bl
call fcn.0047f280
mov edx, dword [esp + 0x164]
mov eax, dword [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.0047f480
push 4
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x54]
push eax
call fcn.0047f480
push 0
lea ecx, [esp + 0x12c]
push ecx
lea edx, [esp + 0x60]
push edx
call fcn.0047f490
push esi
lea eax, [esp + 0x138]
push eax
push ebp
call fcn.00468d50
mov eax, dword [esp + 0x198]
add esp, 0x44
cmp eax, 1
jle 0x47b266
dec eax
mov dword [esp + 0x10], eax
jmp 0x47b210
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x100]
push ecx
push edx
mov edx, dword [esp + 0x28]
mov eax, ecx
mov ecx, dword [esp + 0x154]
push eax
push ecx
push edi
push edx
call fcn.0047f620
add esp, 0x1c
test esi, esi
jle 0x47b25f
lea ecx, [esp + 0xfc]
mov eax, ebp
sub ecx, ebp
mov edi, esi
lea esp, [esp]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
sub edi, 1
jne 0x47b250
mov edi, dword [esp + 0x28]
sub dword [esp + 0x10], 1
jne 0x47b210
mov eax, dword [esp + 0x18]
sub eax, esi
inc ebx
add ebp, esi
mov dword [esp + 0x18], eax
test eax, eax
jne 0x47b160
lea eax, [esp + 0x2c]
push eax
call fcn.0047f5e0
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004690b5
add esp, 0x130
ret

Function at 0x47e150
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.00468ca0
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 0x47e1b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00468d20
mov eax, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x2c]
test esi, esi
je 0x47e1f5
test ebx, ebx
je 0x47e1f5
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 0x47e1d0
cmp ebx, 0x10
jb 0x47e289
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
lea ebx, [ebx]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push edx
push edi
push eax
call dword [esp + 0x40]
mov edx, dword [esp + 0x34]
add esp, 0xc
call fcn.0047e190
cmp esi, 0x10
jae 0x47e275
mov ecx, 0xf
sub ecx, esi
shr ecx, 2
lea eax, [esi + edi]
inc ecx
mov edi, edi
mov edx, dword [esp + 0x20]
mov edx, dword [edx + eax]
xor edx, dword [eax]
add eax, 4
sub ecx, 1
mov dword [eax + ebp - 4], edx
jne 0x47e260
add dword [esp + 0x20], 0x10
sub ebx, 0x10
add ebp, 0x10
xor esi, esi
sub dword [esp + 0x10], 1
jne 0x47e230
test ebx, ebx
je 0x47e2d1
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
push eax
push edi
push ebp
call dword [esp + 0x40]
add esp, 0xc
mov edx, ebp
call fcn.0047e190
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea eax, [esi + edi]
sub ebp, edi
sub ecx, edi
add esi, ebx
mov dl, byte [eax + ebp]
xor dl, byte [eax]
dec ebx
mov byte [eax + ecx], dl
inc eax
test ebx, ebx
jne 0x47e2b7
mov eax, dword [esp + 0x30]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x30]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x47f280
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.00468d20
mov eax, dword [0x5808f0]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x94]
push ebx
push ebp
mov ebp, dword [esp + 0xa4]
push esi
mov esi, dword [esp + 0x9c]
mov dword [esp + 0xc], eax
xor eax, eax
push edi
mov dword [esp + 0x14], ecx
test ebp, ebp
je 0x47f2cf
mov eax, 1
mov dword [esi], ebp
jmp 0x47f2d1
mov ebp, dword [esi]
test ecx, ecx
je 0x47f3b4
push ebp
call fcn.0047f7a0
mov ebx, eax
add esp, 4
cmp ebx, 0x80
jle 0x47f300
push str.j____int_sizeof_ctx__key_
push 0x52
push str..cryptohmachmac.c
call fcn.00480840
add esp, 0xc
mov edi, dword [esp + 0xa8]
cmp ebx, edi
jge 0x47f357
mov ecx, dword [esp + 0x10]
push ecx
lea ebx, [esi + 4]
push ebp
push ebx
call fcn.0048c530
add esp, 0xc
test eax, eax
je 0x47f456
mov edx, dword [esp + 0x14]
push edi
push edx
push ebx
call fcn.0048c6e0
add esp, 0xc
test eax, eax
je 0x47f456
lea edi, [esi + 0x4c]
push edi
lea eax, [esi + 0x50]
push eax
push ebx
call fcn.0048c6f0
add esp, 0xc
test eax, eax
je 0x47f456
jmp 0x47f391
cmp edi, 0x80
jbe 0x47f373
push str.len_0__len__int_sizeof_ctx__key_
push 0x5f
push str..cryptohmachmac.c
call fcn.00480840
add esp, 0xc
mov ecx, dword [esp + 0x14]
push edi
push ecx
lea edx, [esi + 0x50]
push edx
call fcn.00468d50
mov eax, dword [esp + 0xb4]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], eax
mov edi, dword [edi]
cmp edi, 0x80
je 0x47f3bc
mov ecx, 0x80
sub ecx, edi
push ecx
lea edx, [edi + esi + 0x50]
push 0
push edx
call fcn.00468ca0
add esp, 0xc
jmp 0x47f3bc
test eax, eax
je 0x47f442
xor eax, eax
mov edi, edi
mov cl, byte [esi + eax + 0x50]
xor cl, 0x36
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x47f3c0
mov edi, dword [esp + 0x10]
push edi
lea ebx, [esi + 0x1c]
push ebp
push ebx
call fcn.0048c530
add esp, 0xc
test eax, eax
je 0x47f456
push ebp
call fcn.0047f7a0
push eax
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.0048c6e0
add esp, 0x10
test eax, eax
je 0x47f456
xor eax, eax
mov cl, byte [esi + eax + 0x50]
xor cl, 0x5c
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x47f404
push edi
lea ebx, [esi + 0x34]
push ebp
push ebx
call fcn.0048c530
add esp, 0xc
test eax, eax
je 0x47f456
push ebp
call fcn.0047f7a0
push eax
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.0048c6e0
add esp, 0x10
test eax, eax
je 0x47f456
lea eax, [esi + 0x1c]
push eax
add esi, 4
push esi
call fcn.0048c850
add esp, 8
test eax, eax
jne 0x47f45a
xor eax, eax
jmp 0x47f45f
mov eax, 1
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004690b5
add esp, 0x8c
ret
Function at 0x480720
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.00468d20
mov eax, dword [0x5808f0]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x480785
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x480785
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.0046aa98
add eax, 0x40
push eax
call fcn.004c4306
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004690b5
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.004c41ce
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x480814
call fcn.004805e0
test eax, eax
jle 0x480814
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004690b5
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004690b5
add esp, 0x108
ret
Function at 0x486370
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24
call fcn.00468d20
mov eax, dword [0x5808f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, esi
push edi
mov dword [ebp - 0x18], esi
lea ecx, [eax + 1]
jmp 0x4863a0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4863a0
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
sub eax, ecx
lea edi, [eax + 1]
push edi
push esi
push 8
push 0xfde9
mov dword [ebp - 0x20], 8
call ebx
mov esi, eax
test esi, esi
jg 0x486418
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x4863fa
mov ecx, dword [ebp - 0x18]
push 0
push 0
push edi
push ecx
push 0
push 0xfde9
mov dword [ebp - 0x20], 0
call ebx
mov esi, eax
test esi, esi
jg 0x486418
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x4864aa
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push edx
push eax
jmp 0x486498
lea eax, [esi + esi]
call fcn.004774f0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov eax, esp
push esi
push eax
push edi
push ecx
push edx
push 0xfde9
mov dword [ebp - 0x24], eax
call ebx
test eax, eax
je 0x4864aa
mov esi, dword [ebp - 0x1c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x486443
push 8
sub eax, edx
lea ecx, [ebp - 0x14]
push ecx
inc eax
push eax
push esi
push 0
push 0xfde9
call ebx
test eax, eax
je 0x4864aa
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.004c514c
mov esi, eax
add esp, 8
test esi, esi
jne 0x48654e
call fcn.0046c4f8
cmp dword [eax], 2
je 0x486490
call fcn.0046c4f8
cmp dword [eax], 9
jne 0x4864a2
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
push ecx
push edx
call fcn.004c4a21
mov esi, eax
add esp, 8
test esi, esi
jne 0x48654e
push 0xa9
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004827c0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push 0x507c68
push eax
push 0x507c64
push ecx
push str.fopen_
push 5
call fcn.004824c0
add esp, 0x2c
call fcn.0046c4f8
cmp dword [eax], 2
jne 0x486520
push 0xac
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.004827c0
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004690b5
mov esp, ebp
pop ebp
ret
push 0xae
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004827c0
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004690b5
mov esp, ebp
pop ebp
ret
push 0x581c48
call fcn.00485e20
mov edi, eax
add esp, 4
test edi, edi
jne 0x486580
push esi
call fcn.00477b5b
add esp, 4
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004690b5
mov esp, ebp
pop ebp
ret
push 0
push edi
call fcn.004858b0
push esi
push 1
push 0x6a
push edi
call fcn.00485c10
add esp, 0x18
mov eax, edi
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004690b5
mov esp, ebp
pop ebp
ret
Function at 0x48d860
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call fcn.00468ca0
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 0x48dd20
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 0x490850
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x490897
mov al, byte [edx]
test al, al
je 0x490897
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
mov ecx, eax
imul ecx, eax
mov al, byte [edx + 1]
inc edx
xor esi, ecx
test al, al
jne 0x490867
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret