joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b940
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5649a9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5cc5b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov word [edi + 4], 0x100
mov esi, dword [ebp + 0xc]
lea ecx, [edi + 8]
mov eax, esi
mov dword [ebp - 4], 0
shr eax, 3
and al, 1
mov dword [edi], vtable.ProtocolFilters::XMPPFilter.0
movzx eax, al
push eax
push 0x44c
call fcn.0046ba00
mov eax, esi
mov byte [ebp - 4], 1
shr eax, 2
lea ecx, [edi + 0x30]
and al, 1
movzx eax, al
push eax
push 0x44d
call fcn.0046ba00
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x64]
mov byte [ebp - 4], 2
mov byte [edi + 0x58], 1
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], esi
call fcn.00456a00
lea ecx, [edi + 0xa0]
mov byte [ebp - 4], 3
call fcn.00456a00
mov byte [edi + 5], 0
mov eax, edi
mov byte [edi + 0xdc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x46bab0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564a4f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5cc5b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.ProtocolFilters::XMPPFilter.0
lea ecx, [edi + 0xa0]
mov dword [ebp - 4], 3
call fcn.00456a20
lea ecx, [edi + 0x64]
mov byte [ebp - 4], 2
call fcn.00456a20
lea esi, [edi + 0x30]
mov dword [ebp - 0x14], esi
mov ecx, dword [esi]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x46bb16
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esi + 0x20], 0x10
jb 0x46bb27
push dword [esi + 0xc]
call fcn.00503a69
add esp, 4
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], 0
mov byte [esi + 0xc], 0
lea esi, [edi + 8]
mov dword [ebp - 0x14], esi
mov ecx, dword [esi]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x46bb4f
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esi + 0x20], 0x10
jb 0x46bb60
push dword [esi + 0xc]
call fcn.00503a69
add esp, 4
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], 0
mov byte [esi + 0xc], 0
mov dword [edi], vtable.ProtocolFilters::IFilterBase.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46c460
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx ecx, si
shr esi, 0x10
test edi, edi
jne 0x46c47c
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x46c57d
jmp 0x46c490
mov edx, 0x15b0
cmp ebx, edx
cmovb edx, ebx
sub ebx, edx
mov dword [ebp + 0x10], ebx
cmp edx, 0x10
jl 0x46c542
mov ebx, edx
shr ebx, 4
mov eax, ebx
neg eax
shl eax, 4
add edx, eax
movzx eax, byte [edi]
add ecx, eax
movzx eax, byte [edi + 1]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 2]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 3]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 4]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 5]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 6]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 7]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 8]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 9]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xa]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xb]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xc]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xd]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xe]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xf]
add esi, ecx
add edi, 0x10
add ecx, eax
add esi, ecx
dec ebx
jne 0x46c4b6
mov ebx, dword [ebp + 0x10]
test edx, edx
je 0x46c551
movzx eax, byte [edi]
inc edi
add ecx, eax
add esi, ecx
dec edx
jne 0x46c546
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul esi
shr edx, 0xf
imul edx, edx, 0xffff000f
add esi, edx
test ebx, ebx
jne 0x46c490
shl esi, 0x10
pop ebx
or esi, ecx
pop edi
mov eax, esi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x46c59c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.0046c5b0

Function at 0x470e10
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x470e35
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
dec esi
jne 0x470e26
pop edi
movzx eax, dl
pop esi
ret
Function at 0x470fa0
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.00506070
mov eax, dword [0x5cc5b0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x471027
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x471027
lea eax, [esp + 0x114]
push eax
push dword [esp + 0x114]
lea eax, [esp + 0x10]
push 0x100
push eax
call fcn.00508d06
add esp, 0x10
lea ecx, [esp + 4]
test eax, eax
push 0
push ecx
mov ecx, 0x100
cmovs eax, ecx
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00501f35
add esp, 0x108
ret
lea eax, [esp + 0x114]
push eax
push dword [esp + 0x114]
lea eax, [esp + 0x10]
push 0xff
push eax
call fcn.00508d06
add esp, 0x10
mov byte [esp + 0x107], 0
call fcn.00470e60
test eax, eax
jle 0x4710a7
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
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.00501f35
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.00501f35
add esp, 0x108
ret
Function at 0x47a3f0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
jmp 0x499990
push ebp
mov ebp, dword [esp + 0x10]
push ebp
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00499b90
add esp, 0xc
test eax, eax
js 0x499b80
push ebx
push esi
push edi
mov edi, dword [ebp + 0xf0]
xor ebx, ebx
shl edi, 2
test edi, edi
jle 0x499a10
lea esi, [ebp + 8]
lea esi, [esi + edi*4]
lea eax, [ebp + 8]
lea esp, [esp]
mov edx, dword [eax - 8]
lea eax, [eax + 0x10]
mov ecx, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [eax - 0x18], ecx
add ebx, 4
mov ecx, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [eax - 0x14]
mov dword [eax - 0x14], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [eax - 0x10]
mov dword [eax - 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [eax - 0xc]
mov dword [eax - 0xc], ecx
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x4999d0
mov edi, 1
cmp dword [ebp + 0xf0], edi
jle 0x499b7b
lea esi, [ebp + 2]
mov edx, dword [esi + 0xe]
lea esi, [esi + 0x10]
mov eax, edx
inc edi
shr eax, 0x18
movzx ecx, byte [eax*4 + 0x594420]
movzx eax, byte [esi - 1]
mov ecx, dword [ecx*4 + 0x595020]
movzx eax, byte [eax*4 + 0x594420]
xor ecx, dword [eax*4 + 0x595820]
movzx eax, dl
mov edx, dword [esi + 2]
movzx eax, byte [eax*4 + 0x594420]
xor ecx, dword [eax*4 + 0x595c20]
movzx eax, byte [esi]
movzx eax, byte [eax*4 + 0x594420]
xor ecx, dword [eax*4 + 0x595420]
mov eax, edx
shr eax, 0x18
mov dword [esi - 2], ecx
movzx ecx, byte [eax*4 + 0x594420]
movzx eax, byte [esi + 3]
mov ecx, dword [ecx*4 + 0x595020]
movzx eax, byte [eax*4 + 0x594420]
xor ecx, dword [eax*4 + 0x595820]
movzx eax, byte [esi + 4]
movzx eax, byte [eax*4 + 0x594420]
xor ecx, dword [eax*4 + 0x595420]
movzx eax, dl
mov edx, dword [esi + 6]
movzx eax, byte [eax*4 + 0x594420]
xor ecx, dword [eax*4 + 0x595c20]
mov eax, edx
shr eax, 0x18
mov dword [esi + 2], ecx
movzx ecx, byte [eax*4 + 0x594420]
movzx eax, byte [esi + 7]
mov ecx, dword [ecx*4 + 0x595020]
movzx eax, byte [eax*4 + 0x594420]
xor ecx, dword [eax*4 + 0x595820]
movzx eax, byte [esi + 8]
movzx eax, byte [eax*4 + 0x594420]
xor ecx, dword [eax*4 + 0x595420]
movzx eax, dl
mov edx, dword [esi + 0xa]
movzx eax, byte [eax*4 + 0x594420]
xor ecx, dword [eax*4 + 0x595c20]
mov eax, edx
shr eax, 0x18
mov dword [esi + 6], ecx
movzx ecx, byte [eax*4 + 0x594420]
movzx eax, byte [esi + 0xb]
mov ecx, dword [ecx*4 + 0x595020]
movzx eax, byte [eax*4 + 0x594420]
xor ecx, dword [eax*4 + 0x595820]
movzx eax, byte [esi + 0xc]
movzx eax, byte [eax*4 + 0x594420]
xor ecx, dword [eax*4 + 0x595420]
movzx eax, dl
movzx eax, byte [eax*4 + 0x594420]
xor ecx, dword [eax*4 + 0x595c20]
mov dword [esi + 0xa], ecx
cmp edi, dword [ebp + 0xf0]
jl 0x499a24
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x47a410
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x47a424
mov dword [esp + 0x18], 0x4993c0
jmp fcn.0049a340
mov dword [esp + 0x18], 0x498e20
jmp fcn.0049a090
Function at 0x47df70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20
call fcn.00506070
mov eax, dword [0x5cc5b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47df95
push 0
sub ecx, edx
mov dword [ebp - 0x18], 8
push 0
lea eax, [ecx + 1]
push eax
push edi
push 8
push 0xfde9
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x47e000
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x47dff3
push 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x47e000
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jmp 0x47e07c
lea eax, [esi + esi]
call fcn.005092f0
mov eax, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push edi
push dword [ebp - 0x18]
push 0xfde9
call esi
test eax, eax
je 0x47e0db
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47e030
push 8
sub ecx, edx
lea eax, [ebp - 0x14]
push eax
lea eax, [ecx + 1]
push eax
push ebx
push 0
push 0xfde9
call esi
test eax, eax
je 0x47e0db
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
call fcn.00505b47
mov esi, eax
add esp, 8
test esi, esi
jne 0x47e08e
call fcn.00506c95
cmp dword [eax], 2
je 0x47e07e
call fcn.00506c95
cmp dword [eax], 9
jne 0x47e0db
push ebx
push edi
call fcn.00506dad
mov esi, eax
add esp, 8
test esi, esi
je 0x47e0db
push 0x5c7834
call fcn.00471840
mov edi, eax
add esp, 4
test edi, edi
jne 0x47e0af
push esi
call fcn.00503e3c
add esp, 4
jmp 0x47e143
push 0
push edi
call fcn.00471470
push esi
push 1
push 0x6a
push edi
call fcn.004714a0
add esp, 0x18
mov eax, edi
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501f35
mov esp, ebp
pop ebp
ret
push 0xa8
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.00479910
push 0x586ea8
push ebx
push 0x586eac
push edi
push str.fopen_
push 5
call fcn.00478f30
add esp, 0x2c
call fcn.00506c95
cmp dword [eax], 2
jne 0x47e12b
push 0xab
push str..crypto_bio_bss_file.c
push 0x80
jmp 0x47e137
push 0xad
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.00479910
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501f35
mov esp, ebp
pop ebp
ret
Function at 0x4ad430
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6c
call fcn.00506070
mov eax, dword [0x5cc5b0]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push ebx
mov dword [esp + 4], eax
xor ebx, ebx
mov eax, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov dword [esp + 0x14], eax
xor esi, esi
mov dword [eax], ebx
lea eax, [esp + 0x1c]
push edi
mov edi, dword [esp + 0x8c]
push eax
call fcn.004871c0
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.00487020
add esp, 0xc
test eax, eax
je 0x4ad532
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00486d00
add esp, 0xc
test eax, eax
je 0x4ad532
lea eax, [esp + 0x20]
push eax
call fcn.00486f60
mov esi, dword [ebp]
add esp, 4
test byte [esi + 0xc], 4
je 0x4ad550
push edi
call fcn.004749d0
push ebx
push edi
mov dword [esp + 0x28], eax
call fcn.004ac090
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4ad532
push esi
call fcn.004b89c0
add esp, 4
test eax, eax
jle 0x4ad532
push dword [ebp]
push ebx
push 1
push 0xf8
push 0xffffffffffffffff
push esi
call fcn.004abe40
add esp, 0x18
test eax, eax
jle 0x4ad532
push dword [esp + 0x14]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
push esi
call fcn.004b88e0
add esp, 0x14
test eax, eax
jle 0x4ad532
mov ecx, dword [esp + 0x18]
mov ebx, 1
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
push esi
call fcn.004ac030
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00501f35
add esp, 0x6c
ret
xor eax, eax
lea ecx, [esi + 0x2c]
mov edx, dword [ecx]
test edx, edx
je 0x4ad568
cmp dword [edi], edx
je 0x4ad592
inc eax
add ecx, 4
cmp eax, 4
jl 0x4ad555
push 0x7b
push str..cryptoevpp_sign.c
push 0x6e
push 0x6b
push 6
call fcn.00479910
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00501f35
add esp, 0x6c
ret
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x4ad5c6
push 0x80
push str..cryptoevpp_sign.c
push 0x68
push 0x6b
push 6
call fcn.00479910
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00501f35
add esp, 0x6c
ret
push dword [edi + 0x14]
mov ecx, dword [esp + 0x1c]
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x44]
push dword [esp + 0x20]
push ecx
push dword [esi]
call eax
mov ecx, dword [esp + 0x90]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00501f35
add esp, 0x6c
ret
Function at 0x4b7750
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
test esi, esi
jle 0x4b783c
push edi
mov edi, dword [esp + 0x14]
inc edi
lea ebx, [ebx]
movzx edx, byte [edi - 1]
cmp esi, 3
jl 0x4b77ce
movzx ecx, byte [edi]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + 0x59f1c0]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x59f1c0]
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + 0x59f1c0]
mov byte [eax + 2], cl
movzx ecx, byte [edx + 0x59f1c0]
mov byte [eax + 3], cl
jmp 0x4b781f
shl edx, 0x10
cmp esi, 2
jne 0x4b77de
movzx ecx, byte [edi]
shl ecx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + 0x59f1c0]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x59f1c0]
mov byte [eax + 1], cl
cmp esi, 1
jne 0x4b780b
lea ecx, [esi + 0x3c]
jmp 0x4b7818
shr edx, 6
and edx, 0x3f
movzx ecx, byte [edx + 0x59f1c0]
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
sub esi, 3
add eax, 4
add ebx, 4
add edi, 3
test esi, esi
jg 0x4b7770
pop edi
mov byte [eax], 0
mov eax, ebx
pop esi
pop ebx
ret
mov byte [eax], bl
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4bbfb0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.00506070
mov eax, dword [0x5cc5b0]
xor eax, esp
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0xa0]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
mov ebp, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x10], edx
test edi, edi
je 0x4bc016
cmp edi, dword [esi]
je 0x4bc00d
test ebp, ebp
je 0x4bc090
test ebx, ebx
js 0x4bc090
mov eax, 1
mov dword [esi], edi
jmp 0x4bc01c
mov edi, dword [esi]
test edi, edi
je 0x4bc090
test ebp, ebp
je 0x4bc1ab
push edi
call fcn.00495840
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x4bc050
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.004710e0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
jge 0x4bc0ab
push dword [esp + 0x10]
lea eax, [esi + 4]
push edi
push eax
call fcn.00486da0
add esp, 0xc
test eax, eax
je 0x4bc090
push ebx
push ebp
lea ebx, [esi + 4]
push ebx
call fcn.00486f50
add esp, 0xc
test eax, eax
je 0x4bc090
lea ebp, [esi + 0x4c]
push ebp
lea eax, [esi + 0x50]
push eax
push ebx
call fcn.00486d00
add esp, 0xc
test eax, eax
jne 0x4bc0c7
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00501f35
add esp, 0x8c
ret
cmp ebx, 0x80
ja 0x4bc090
push ebx
lea eax, [esi + 0x50]
push ebp
push eax
call fcn.00504a20
lea ebp, [esi + 0x4c]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x80
je 0x4bc0ea
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x50]
add eax, ecx
push 0
push eax
call fcn.00505070
add esp, 0xc
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x50]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x4bc0f0
push edx
lea ebx, [esi + 0x1c]
push edi
push ebx
call fcn.00486da0
add esp, 0xc
test eax, eax
je 0x4bc090
push edi
call fcn.00495840
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.00486f50
add esp, 0x10
test eax, eax
je 0x4bc090
xor ecx, ecx
jmp 0x4bc140
mov al, byte [esi + ecx + 0x50]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x4bc140
push dword [esp + 0x10]
lea ebx, [esi + 0x34]
push edi
push ebx
call fcn.00486da0
add esp, 0xc
test eax, eax
je 0x4bc090
push edi
call fcn.00495840
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.00486f50
add esp, 0x10
test eax, eax
je 0x4bc090
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.00487020
add esp, 8
test eax, eax
je 0x4bc090
mov eax, 1
jmp 0x4bc092
test eax, eax
je 0x4bc189
jmp 0x4bc0ee
Function at 0x4cf490
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov eax, dword [ebp + 4]
cmp eax, dword [ecx + 4]
jge 0x4cf4a7
mov edi, ecx
jmp 0x4cf4ab
mov edi, ebp
mov ebp, ecx
mov ebx, dword [esp + 0x10]
mov eax, dword [edi + 4]
cmp eax, dword [ebx + 8]
jg 0x4cf4bb
mov eax, ebx
jmp 0x4cf4c5
push eax
push ebx
call fcn.00472e90
add esp, 8
test eax, eax
jne 0x4cf4cd
pop edi
pop ebp
pop ebx
ret
push esi
xor esi, esi
cmp dword [ebp + 4], esi
jle 0x4cf4eb
mov eax, dword [edi]
mov ecx, dword [ebp]
mov edx, dword [eax + esi*4]
mov eax, dword [ebx]
xor edx, dword [ecx + esi*4]
mov dword [eax + esi*4], edx
inc esi
cmp esi, dword [ebp + 4]
jl 0x4cf4d5
cmp esi, dword [edi + 4]
jge 0x4cf500
mov eax, dword [edi]
mov ecx, dword [ebx]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [edi + 4]
jl 0x4cf4f0
mov ecx, dword [edi + 4]
mov dword [ebx + 4], ecx
pop esi
test ecx, ecx
jle 0x4cf524
mov edx, dword [ebx]
add edx, 0xfffffffc
lea edx, [edx + ecx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x4cf521
dec ecx
test ecx, ecx
jg 0x4cf513
mov dword [ebx + 4], ecx
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x4f1d40
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5660ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x14], 0
push 0
push 0
mov ecx, dword [ebp - 0x14]
call fcn.004408c0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0x18
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x14], 0
push 0
push 0
mov ecx, dword [ebp - 0x18]
call fcn.004408c0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0x30
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x14], 0
push 0
push 0
mov ecx, dword [ebp - 0x1c]
call fcn.004408c0
mov byte [ebp - 4], 2
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov word [ecx + 0x48], ax
mov edx, dword [ebp - 0x10]
add edx, 0x4c
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x14], 0
push 0
push 0
mov ecx, dword [ebp - 0x20]
call fcn.004408c0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x10]
add edx, 0x64
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x14], 0
push 0
push 0
mov ecx, dword [ebp - 0x24]
call fcn.004408c0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x10]
add edx, 0x7c
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x14], 0
push 0
push 0
mov ecx, dword [ebp - 0x28]
call fcn.004408c0
mov byte [ebp - 4], 5
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.004f47a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4