joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005e380
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x9c
call fcn.1001cd50
mov eax, dword [0x1016420c]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xa0]
push ebx
mov dword [esp + 0x18], eax
xor ebx, ebx
mov eax, dword [esp + 0xa8]
push ebp
push esi
mov esi, dword [esp + 0xb8]
mov eax, dword [eax + 4]
push edi
mov edi, dword [esp + 0xb8]
mov dword [esp + 0x10], eax
sub eax, edi
mov dword [esp + 0x14], eax
cmp esi, edi
jae 0x1005e3e6
push str.orig_len___md_size
push 0x113
push str.._ssl_s3_cbc.c
call fcn.1006f4c0
add esp, 0xc
cmp edi, 0x40
jbe 0x1005e402
push str.md_size___EVP_MAX_MD_SIZE
push 0x114
push str.._ssl_s3_cbc.c
call fcn.1006f4c0
add esp, 0xc
lea eax, [esp + 0x28]
neg eax
lea ebp, [esp + 0x28]
and eax, 0x3f
add ebp, eax
lea eax, [edi + 0x100]
cmp esi, eax
jbe 0x1005e425
mov ebx, esi
sub ebx, edi
sub ebx, 0x100
mov eax, edi
xor edx, edx
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebx
add eax, dword [esp + 0x14]
div edi
push edi
mov esi, edx
push 0
push ebp
mov dword [esp + 0x2c], esi
call fcn.100e23d0
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x18], ecx
cmp ebx, dword [esp + 0xbc]
jae 0x1005e4df
mov eax, dword [esp + 0xb4]
mov edx, ebx
mov esi, dword [esp + 0x10]
sub edx, esi
mov edi, esi
mov dword [esp + 0x10], edx
sub edi, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
add eax, esi
mov dword [esp + 0x14], edi
mov esi, dword [esp + 0xbc]
mov dword [esp + 0x1c], eax
sub esi, ebx
nop dword [eax + eax]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add ebx, edx
mov edi, dword [esp + 0x1c]
not edx
sar edx, 0x1f
not ebx
not dl
sar ebx, 0x1f
mov al, byte [edi + eax]
mov edi, dword [esp + 0xb8]
and dl, al
and dl, bl
or byte [ecx + ebp], dl
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
inc ecx
mov eax, ecx
inc edx
sub eax, edi
mov dword [esp + 0x10], edx
sar eax, 0x1f
and ecx, eax
mov dword [esp + 0x18], ecx
sub esi, 1
jne 0x1005e490
mov esi, dword [esp + 0x20]
xor ecx, ecx
test edi, edi
je 0x1005e50e
mov edx, dword [esp + 0x24]
nop dword [eax]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + ebp]
movzx eax, byte [esi + ebp]
inc esi
mov byte [edx + ecx], al
mov eax, esi
sub eax, edi
inc ecx
sar eax, 0x1f
and esi, eax
cmp ecx, edi
jb 0x1005e4f0
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001cd0b
add esp, 0x9c
ret
Function at 0x1005ee10
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov eax, dword [edx]
inc ebp
push edi
cmp eax, 0x302
jge 0x1005ee3b
cmp eax, 0x100
je 0x1005ee3b
mov esi, dword [esp + 0x14]
cmp ebp, dword [esi + 4]
jbe 0x1005ee58
pop edi
pop esi
xor eax, eax
pop ebp
ret
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
lea eax, [ecx + ebp]
mov edi, dword [esi + 4]
cmp eax, edi
ja 0x1005ee35
add dword [esi + 0xc], ecx
add dword [esi + 0x10], ecx
sub edi, ecx
mov dword [esi + 4], edi
test dword [edx + 0x100], 0x200
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
push ebx
movzx ebx, byte [ecx + eax - 1]
je 0x1005ee9d
cmp dword [edx + 0x88], 0
jne 0x1005ee9d
mov eax, dword [edx + 0x58]
cmp dword [eax + 8], 0
jne 0x1005ee90
cmp dword [eax + 0xc], 0
jne 0x1005ee90
test bl, 1
jne 0x1005ee90
or dword [eax], 8
mov eax, dword [edx + 0x58]
test byte [eax], 8
je 0x1005ee9d
test ebx, ebx
je 0x1005ee9d
dec ebx
mov eax, dword [edx + 0x80]
push dword [eax]
call fcn.1007c0d0
add esp, 4
test eax, 0x200000
je 0x1005eec6
or eax, 0xffffffff
sub eax, ebx
add dword [esi + 4], eax
mov eax, 1
pop ebx
pop edi
pop esi
pop ebp
ret
mov edi, dword [esi + 4]
mov ecx, 0xff
mov edx, edi
mov dword [esp + 0x20], edi
sub edx, ebx
sub edx, ebp
not edx
lea eax, [edi - 1]
sar edx, 0x1f
cmp eax, ecx
cmovb ecx, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x1005ef27
mov ebp, dword [esp + 0x20]
mov edi, ebx
dec ebp
add ebp, dword [esi + 0xc]
mov esi, ecx
nop dword [eax]
mov eax, edi
lea ebp, [ebp - 1]
not eax
dec edi
sar eax, 0x1f
movzx ecx, al
movzx eax, byte [ebp + 1]
xor eax, ebx
and ecx, eax
not ecx
and edx, ecx
sub esi, 1
jne 0x1005ef00
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov eax, edx
shr eax, 4
and edx, eax
mov eax, edx
shr eax, 2
and edx, eax
lea eax, [ebx + 1]
pop ebx
lea ecx, [edx + edx]
and ecx, edx
shl ecx, 0x1e
sar ecx, 0x1f
and eax, ecx
sub edi, eax
shl eax, 8
or dword [esi], eax
mov eax, ecx
mov dword [esi + 4], edi
and eax, 1
pop edi
not ecx
pop esi
or eax, ecx
pop ebp
ret
Function at 0x1005f700
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.1001cd50
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
xor edi, edi
push eax
lea eax, [esp + 0x14]
xor esi, esi
push eax
push edi
call fcn.1004d610
add esp, 0xc
test eax, eax
je 0x1005f75b
nop dword [eax]
mov ecx, dword [esp + 0x10]
lea eax, [esi + 1]
shl ecx, 0xa
inc edi
and ecx, dword [esp + 0x24]
cmove eax, esi
mov esi, eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push edi
call fcn.1004d610
add esp, 0xc
test eax, eax
jne 0x1005f730
mov eax, dword [esp + 0x54]
cdq
idiv esi
mov edi, dword [esp + 0x60]
cmp esi, 1
mov ebp, dword [esp + 0x58]
mov esi, 0
cmovne esi, dword [esp + 0x54]
push edi
push 0
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x60], esi
call fcn.100e23d0
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0
push eax
lea eax, [esp + 0x20]
push eax
push 0
call fcn.1004d610
add esp, 0x18
test eax, eax
je 0x1005f8d6
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x10]
shl eax, 0xa
test dword [esp + 0x24], eax
je 0x1005f8b2
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1005f8e3
push edi
push ebx
push dword [esp + 0x54]
and esi, 1
push dword [esp + 0x54]
add esi, dword [esp + 0x28]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push esi
mov esi, dword [esp + 0x84]
push esi
push ecx
call fcn.1005f910
add esp, 0x3c
test eax, eax
je 0x1005f901
add esi, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x50], esi
test edi, edi
jle 0x1005f8ae
cmp edi, 0x20
jb 0x1005f88b
lea eax, [ebx - 1]
lea edx, [ebp - 1]
add eax, edi
add edx, edi
cmp ebp, eax
ja 0x1005f841
cmp edx, ebx
jae 0x1005f88b
mov eax, edi
and eax, 0x8000001f
jns 0x1005f84f
dec eax
or eax, 0xffffffe0
inc eax
mov edx, edi
mov esi, ebx
sub edx, eax
mov eax, ebp
sub esi, ebp
nop dword [eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [esi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [ebx + ecx + 0x10]
add ecx, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp ecx, edx
jl 0x1005f860
cmp ecx, edi
jge 0x1005f8ae
mov esi, ebx
lea eax, [ecx + ebp]
mov edx, edi
sub esi, ebp
sub edx, ecx
nop word [eax + eax]
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x1005f8a0
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
inc eax
push ecx
push eax
mov dword [esp + 0x28], eax
call fcn.1004d610
add esp, 0xc
test eax, eax
jne 0x1005f7b0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x114
push str.._ssl_t1_enc.c
push 0x146
push 0x11c
push 0x14
call fcn.1006c1a0
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x1006c670
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.1001cd50
mov eax, dword [0x1016420c]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x44], ebx
test edi, edi
jne 0x1006c6b5
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.1001cd0b
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push edi
call fcn.100ec4d2
add esp, 8
test eax, eax
js 0x1006c69e
mov eax, 8
call fcn.1001cd50
xorps xmm0, xmm0
lea eax, [esp + 0x50]
movsd qword [esp], xmm0
push 0x30
push eax
call fcn.1006c7b0
mov esi, dword [ebp + 0xc]
add esp, 0x10
test esi, esi
je 0x1006c69e
push 0x10112db4
push edi
call fcn.100eb41e
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x1006c791
nop dword [eax]
mov edi, 0x400
test esi, esi
jle 0x1006c71e
cmp esi, edi
cmovl edi, esi
push eax
push edi
lea eax, [esp + 0x80]
push 1
push eax
call fcn.100eb601
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x1006c772
movd xmm0, ebx
mov eax, 8
cvtdq2pd xmm0, xmm0
call fcn.1001cd50
lea eax, [esp + 0x80]
movsd qword [esp], xmm0
push edi
push eax
call fcn.1006c7b0
add dword [esp + 0x54], ebx
add esp, 0x10
mov eax, dword [esp + 0x40]
test esi, esi
jle 0x1006c710
sub esi, edi
test esi, esi
jg 0x1006c710
push dword [esp + 0x40]
call fcn.100eb1fa
lea eax, [esp + 0x7c]
push 0x400
push eax
call fcn.100012d0
mov ebx, dword [esp + 0x50]
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001cd0b
mov esp, ebp
pop ebp
ret
Function at 0x1006f380
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x10c
call fcn.1001cd50
mov eax, dword [0x1016420c]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1006f3f3
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x1006f3f3
mov esi, dword [esp + 0x114]
call fcn.1001cad0
lea ecx, [esp + 0x118]
add eax, 8
push ecx
push 0
push esi
push eax
call fcn.1001aad0
push dword [eax + 4]
push dword [eax]
call fcn.100e8396
add esp, 0x18
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.1001cd0b
add esp, 0x10c
ret
lea eax, [esp + 0x118]
push eax
push 0
push dword [esp + 0x11c]
lea eax, [esp + 0x14]
push 0xff
push eax
call fcn.1001aad0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.100e8434
add esp, 0x1c
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1006f490
call fcn.1006f240
test eax, eax
jle 0x1006f490
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 + 0x108]
xor ecx, esp
call fcn.1001cd0b
add esp, 0x10c
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 + 0x10c]
pop esi
xor ecx, esp
call fcn.1001cd0b
add esp, 0x10c
ret

Function at 0x1006f600
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [esp + 0xc]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.10062cf0
add esp, 8
test esi, esi
jg 0x1006f657
je 0x1006f639
cmp esi, 0xffffffff
jne 0x1006f657
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.1006f890
add esp, 4
test eax, eax
je 0x1006f657
push 0xa
push edi
call fcn.100633f0
add esp, 8
pop edi
mov eax, esi
pop esi
ret
Function at 0x10075ce0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20
call fcn.1001cd50
mov eax, dword [0x1016420c]
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 0x10075d05
push 0
sub ecx, edx
mov dword [ebp - 0x1c], 8
push 0
lea eax, [ecx + 1]
push eax
push edi
push 8
push 0xfde9
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x10075d70
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x10075d63
push 0
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x10075d70
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jmp 0x10075dec
lea eax, [esi + esi]
call fcn.10109b40
mov eax, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
push edi
push dword [ebp - 0x1c]
push 0xfde9
call esi
test eax, eax
je 0x10075e4b
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10075da0
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 0x10075e4b
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
call fcn.100eb3fc
mov esi, eax
add esp, 8
test esi, esi
jne 0x10075dfe
call fcn.100f4b33
cmp dword [eax], 2
je 0x10075dee
call fcn.100f4b33
cmp dword [eax], 9
jne 0x10075e4b
push ebx
push edi
call fcn.100eb41e
mov esi, eax
add esp, 8
test esi, esi
je 0x10075e4b
push 0x101674e8
call fcn.100630c0
mov edi, eax
add esp, 4
test edi, edi
jne 0x10075e1f
push esi
call fcn.100eb1fa
add esp, 4
jmp 0x10075eb3
push 0
push edi
call fcn.10062cf0
push esi
push 1
push 0x6a
push edi
call fcn.10062d20
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.1001cd0b
mov esp, ebp
pop ebp
ret
push 0xa9
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.1006c1a0
push 0x1011b95c
push ebx
push 0x10131f04
push edi
push str.fopen_
push 5
call fcn.1006b780
add esp, 0x2c
call fcn.100f4b33
cmp dword [eax], 2
jne 0x10075e9b
push 0xac
push str..crypto_bio_bss_file.c
push 0x80
jmp 0x10075ea7
push 0xae
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.1006c1a0
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.1001cd0b
mov esp, ebp
pop ebp
ret
Function at 0x100784e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6c
call fcn.1001cd50
mov eax, dword [0x1016420c]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push ebx
mov dword [esp + 0xc], eax
xor ebx, ebx
mov eax, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [eax], ebx
lea eax, [esp + 0x1c]
push edi
mov edi, dword [esp + 0x8c]
push eax
call fcn.10071f90
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.10071df0
add esp, 0xc
test eax, eax
je 0x100785e2
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.10071ae0
add esp, 0xc
test eax, eax
je 0x100785e2
lea eax, [esp + 0x20]
push eax
call fcn.10071d30
mov esi, dword [ebp]
add esp, 4
test byte [esi + 0xc], 4
je 0x10078600
push edi
call fcn.10066c30
push ebx
push edi
mov dword [esp + 0x1c], eax
call fcn.10079c80
mov esi, eax
add esp, 0xc
test esi, esi
je 0x100785e2
push esi
call fcn.1007a270
add esp, 4
test eax, eax
jle 0x100785e2
push dword [ebp]
push ebx
push 1
push 0xf8
push 0xffffffffffffffff
push esi
call fcn.10079a20
add esp, 0x18
test eax, eax
jle 0x100785e2
push dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
push esi
call fcn.1007a190
add esp, 0x14
test eax, eax
jle 0x100785e2
mov ecx, dword [esp + 0x14]
mov ebx, 1
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
push esi
call fcn.10079c10
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.1001cd0b
add esp, 0x6c
ret
xor eax, eax
lea ecx, [esi + 0x2c]
mov edx, dword [ecx]
test edx, edx
je 0x10078618
cmp dword [edi], edx
je 0x10078642
inc eax
add ecx, 4
cmp eax, 4
jl 0x10078605
push 0x7f
push str..cryptoevpp_sign.c
push 0x6e
push 0x6b
push 6
call fcn.1006c1a0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.1001cd0b
add esp, 0x6c
ret
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x10078676
push 0x85
push str..cryptoevpp_sign.c
push 0x68
push 0x6b
push 6
call fcn.1006c1a0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.1001cd0b
add esp, 0x6c
ret
push dword [edi + 0x14]
mov ecx, dword [esp + 0x18]
push ecx
push dword [esp + 0x20]
lea ecx, [esp + 0x44]
push dword [esp + 0x28]
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.1001cd0b
add esp, 0x6c
ret
Function at 0x100806b0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.1001cd50
mov eax, dword [0x1016420c]
xor eax, esp
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0x94]
push ebx
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xac]
mov edx, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebp
test edi, edi
je 0x100806fa
mov dword [esi], edi
jmp 0x100806fc
mov edi, dword [esi]
xor eax, eax
test edx, edx
setne al
test ecx, ecx
je 0x10080886
push edi
call fcn.10075570
mov ebp, eax
add esp, 4
cmp ebp, 0x80
jle 0x10080732
push str.j____int_sizeof_ctx__key_
push 0x68
push str..cryptohmachmac.c
call fcn.1006f4c0
add esp, 0xc
mov ebx, dword [esp + 0xa8]
cmp ebp, ebx
jge 0x1008078a
push dword [esp + 0x10]
lea ebp, [esi + 4]
push edi
push ebp
call fcn.10071b80
add esp, 0xc
test eax, eax
je 0x10080882
push ebx
push dword [esp + 0x18]
push ebp
call fcn.10071d20
add esp, 0xc
test eax, eax
je 0x10080882
lea ebp, [esi + 0x4c]
push ebp
lea eax, [esi + 0x50]
push eax
lea eax, [esi + 4]
push eax
call fcn.10071ae0
add esp, 0xc
test eax, eax
je 0x10080882
jmp 0x100807c1
test ebx, ebx
js 0x10080796
cmp ebx, 0x80
jle 0x100807aa
push str.len_0__len__int_sizeof_ctx__key_
push 0x75
push str..cryptohmachmac.c
call fcn.1006f4c0
add esp, 0xc
push ebx
push dword [esp + 0x18]
lea eax, [esi + 0x50]
push eax
call fcn.100e10e0
lea ebp, [esi + 0x4c]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x80
je 0x100807e4
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x50]
add eax, ecx
push 0
push eax
call fcn.100e23d0
add esp, 0xc
mov ebp, dword [esp + 0x10]
xor ecx, ecx
nop word [eax + eax]
mov al, byte [esi + ecx + 0x50]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x100807f0
push ebp
lea ebx, [esi + 0x1c]
push edi
push ebx
call fcn.10071b80
add esp, 0xc
test eax, eax
je 0x10080882
push edi
call fcn.10075570
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.10071d20
add esp, 0x10
test eax, eax
je 0x10080882
xor ecx, ecx
mov al, byte [esi + ecx + 0x50]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x10080830
push ebp
lea ebx, [esi + 0x34]
push edi
push ebx
call fcn.10071b80
add esp, 0xc
test eax, eax
je 0x10080882
push edi
call fcn.10075570
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.10071d20
add esp, 0x10
test eax, eax
je 0x10080882
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.10071df0
add esp, 8
test eax, eax
jne 0x1008088f
xor eax, eax
jmp 0x10080894
test eax, eax
je 0x1008086e
jmp 0x100807e8
mov eax, 1
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001cd0b
add esp, 0x8c
ret
Function at 0x10099130
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
test esi, esi
jle 0x1009921c
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
inc edi
nop word [eax + eax]
cmp esi, 3
jl 0x100991ad
movzx ecx, byte [edi - 1]
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
shr eax, 0x12
movzx eax, byte [eax + 0x10144a30]
mov byte [edx], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x10144a30]
mov byte [edx + 1], al
mov eax, ecx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x10144a30]
mov byte [edx + 2], al
add edx, 3
and ecx, 0x3f
movzx eax, byte [ecx + 0x10144a30]
mov byte [edx], al
jmp 0x10099201
movzx eax, byte [edi - 1]
shl eax, 0x10
cmp esi, 2
jne 0x100991c1
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + 0x10144a30]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x10144a30]
mov byte [edx + 1], cl
cmp esi, 1
jne 0x100991eb
lea eax, [esi + 0x3c]
jmp 0x100991f8
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x10144a30]
mov byte [edx + 2], al
add edx, 3
mov byte [edx], 0x3d
sub esi, 3
add ebx, 4
add edi, 3
inc edx
test esi, esi
jg 0x10099150
pop edi
pop esi
mov eax, ebx
mov byte [edx], 0
pop ebx
ret
mov eax, dword [esp + 0xc]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
ret
Function at 0x100a2730
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, 0x400
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, 0x80
mov esi, edx
mov ecx, edi
mov byte [ebp], 0
cmp dword [esp + 0x18], ecx
cmovle ecx, dword [esp + 0x18]
test eax, eax
cmovg esi, eax
cmp esi, edx
cmovg esi, edx
mov dword [esp + 0x14], esi
test ecx, ecx
jle 0x100a2785
mov ebx, dword [esp + 0x1c]
mov edx, ebp
sub ebx, ebp
mov esi, ecx
mov al, byte [ebx + edx]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub esi, 1
jne 0x100a2773
mov esi, dword [esp + 0x14]
movzx ebx, byte [ecx + ebp - 1]
cmp ecx, edi
jge 0x100a27aa
mov edx, ebp
movzx eax, byte [edx]
lea edx, [edx + 1]
add eax, ebx
movzx eax, al
movzx ebx, byte [eax + 0x10145128]
mov byte [ecx + ebp], bl
inc ecx
cmp ecx, edi
jl 0x100a2790
mov ecx, dword [esp + 0x14]
lea ebx, [esi + 7]
sar ebx, 3
neg ecx
sub edi, ebx
and ecx, 7
movzx eax, byte [edi + ebp]
lea esi, [edi + ebp]
mov edx, 0xff
sar edx, cl
and edx, eax
movzx ecx, byte [edx + 0x10145128]
mov byte [esi], cl
test edi, edi
je 0x100a27f8
nop dword [eax + eax]
movzx eax, byte [esi + ebx - 1]
lea esi, [esi - 1]
xor eax, ecx
movzx ecx, byte [eax + 0x10145128]
mov byte [esi], cl
sub edi, 1
jne 0x100a27e0
lea esi, [ebp + 0xfc]
mov edi, 0x40
lea edx, [ebp + 0x7e]
movzx ecx, byte [edx + 1]
lea esi, [esi - 4]
movzx eax, byte [edx]
lea edx, [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [esi + 4], ecx
sub edi, 1
jne 0x100a2806
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x100a38c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.1001cd50
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x2c]
mov esi, dword [esi]
test esi, esi
je 0x100a38fd
mov ecx, dword [esp + 0x38]
test edi, edi
je 0x100a38fd
mov al, byte [esi + ecx]
dec edi
xor al, byte [ebp]
inc esi
mov byte [ebx], al
inc ebp
inc ebx
and esi, 0xf
jne 0x100a38e8
mov edx, dword [esp + 0x34]
cmp edi, 0x10
jb 0x100a39a1
mov ecx, dword [esp + 0x38]
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x10], eax
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x14], eax
mov eax, edi
shr eax, 4
mov dword [esp + 0x2c], eax
shl eax, 4
add ebx, eax
add ebp, eax
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x14]
jmp 0x100a3944
mov ecx, dword [esp + 0x38]
push dword [esp + 0x30]
push ecx
push edx
call dword [esp + 0x4c]
mov eax, dword [esp + 0x40]
push eax
call fcn.100a3b20
add esp, 0x10
cmp esi, 0x10
jae 0x100a3983
mov eax, dword [esp + 0x38]
mov edx, 0xf
sub edx, esi
add eax, esi
shr edx, 2
inc edx
mov ecx, dword [eax + ebp]
lea eax, [eax + 4]
xor ecx, dword [eax - 4]
mov dword [ebx + eax - 4], ecx
sub edx, 1
jne 0x100a3971
mov edx, dword [esp + 0x34]
sub edi, 0x10
add ebx, 0x10
add ebp, 0x10
xor esi, esi
sub dword [esp + 0x2c], 1
jne 0x100a3940
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
test edi, edi
je 0x100a39e2
push dword [esp + 0x30]
push dword [esp + 0x3c]
push edx
call dword [esp + 0x4c]
mov eax, dword [esp + 0x40]
push eax
call fcn.100a3b20
mov eax, dword [esp + 0x48]
add esp, 0x10
sub ebp, eax
sub ebx, eax
lea ecx, [esi + eax]
add esi, edi
nop dword [eax]
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + ebx - 1], al
sub edi, 1
jne 0x100a39d0
mov eax, dword [esp + 0x3c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret