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

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push eax
push ebx
cmp ecx, 0
je 0x1000945f
and ebp, 0xfffffff8
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
je 0x100093f5
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call sym.LIBEAY32.dll_BF_encrypt
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x100093bf
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x10009516
call 0x10009407
pop edx
lea ecx, [edx + 0x139]
mov ebp, dword [ecx + ebp*4]
add ebp, edx
xor ecx, ecx
xor edx, edx
jmp ebp
and ebp, 0xfffffff8
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
je 0x100094b7
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call sym.LIBEAY32.dll_BF_decrypt
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x1000946c
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x10009516
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call sym.LIBEAY32.dll_BF_decrypt
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x10009514
jmp 0x10009516
mov ecx, dword [esp + 0x3c]
add esp, 0x18
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10009ed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push eax
push ebx
cmp ecx, 0
je 0x10009faf
and ebp, 0xfffffff8
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
je 0x10009f45
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call sym.LIBEAY32.dll_CAST_encrypt
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x10009f0f
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x1000a066
call 0x10009f57
pop edx
lea ecx, [edx + 0x129]
mov ebp, dword [ecx + ebp*4]
add ebp, edx
xor ecx, ecx
xor edx, edx
jmp ebp
and ebp, 0xfffffff8
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
je 0x1000a007
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call sym.LIBEAY32.dll_CAST_decrypt
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x10009fbc
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x1000a066
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call sym.LIBEAY32.dll_CAST_decrypt
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x1000a064
jmp 0x1000a066
mov ecx, dword [esp + 0x3c]
add esp, 0x18
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1000a620
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp + 0x14], edi
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
mov esi, dword [edi + 0xf0]
lea esi, [esi + esi - 2]
lea esi, [edi + esi*8]
mov dword [esp + 0x18], esi
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 3]
mov edi, ecx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, edx
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
shr ebx, 0x10
mov esi, dword [ebp + esi*8]
movzx edi, ch
xor esi, dword [ebp + edi*8 + 3]
mov edi, edx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, eax
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
shr ecx, 0x18
mov esi, dword [ebp + esi*8]
movzx edi, dh
xor esi, dword [ebp + edi*8 + 3]
mov edi, eax
shr edi, 0x10
and edx, 0xff
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 1]
mov edi, dword [esp + 0x14]
mov edx, dword [ebp + edx*8]
movzx eax, ah
xor edx, dword [ebp + eax*8 + 3]
mov eax, dword [esp + 4]
and ebx, 0xff
xor edx, dword [ebp + ebx*8 + 2]
mov ebx, dword [esp + 8]
xor edx, dword [ebp + ecx*8 + 1]
mov ecx, esi
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
cmp edi, dword [esp + 0x18]
mov dword [esp + 0x14], edi
jb 0x1000a640
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, bh
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, ecx
shr edi, 0x10
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
mov edi, edx
shr edi, 0x18
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
shr ebx, 0x10
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, ch
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
mov edi, eax
shr edi, 0x18
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
shr ecx, 0x18
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, dh
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, eax
shr edi, 0x10
and edx, 0xff
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
movzx edi, bh
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov edi, dword [esp + 0x14]
and edx, 0xff
mov edx, dword [ebp + edx*8 + 2]
and edx, 0xff
movzx eax, ah
mov eax, dword [ebp + eax*8]
and eax, 0xff00
xor edx, eax
mov eax, dword [esp + 4]
and ebx, 0xff
mov ebx, dword [ebp + ebx*8]
and ebx, 0xff0000
xor edx, ebx
mov ebx, dword [esp + 8]
mov ecx, dword [ebp + ecx*8 + 2]
and ecx, 0xff000000
xor edx, ecx
mov ecx, esi
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
ret
Function at 0x10015f40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push esi
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov eax, esp
sub esp, 0x94
and esp, 0xffffffc0
lea ebx, [esp + 0x80]
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x10], eax
call fcn.10015f72

Function at 0x10018270
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x10018295
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 0x10018286
pop edi
movzx eax, dl
pop esi
ret

Function at 0x10018380
Capabilities:
Query environment variable

Disassembly:
mov eax, 8
call fcn.100bf140
cmp dword [0x10116d88], 0
jne 0x10018432
push esi
push str.OPENSSL_ia32cap
mov dword [0x10116d88], 1
call dword [sym.imp.MSVCR120.dll_getenv]
add esp, 4
test eax, eax
je 0x10018418
push ebx
xor ebx, ebx
cmp byte [eax], 0x7e
sete bl
lea esi, [ebx + eax]
lea eax, [esp + 8]
push eax
push str._I64i
push esi
call dword [sym.imp.MSVCR120.dll_sscanf]
add esp, 0xc
test eax, eax
jne 0x100183f2
push eax
push eax
push esi
call dword [sym.imp.MSVCR120.dll_strtoul]
add esp, 0xc
mov esi, eax
xor edx, edx
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
jmp 0x100183fa
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 8]
test ebx, ebx
pop ebx
je 0x1001841f
call section..text
mov ecx, dword [esp + 4]
mov esi, eax
mov eax, dword [esp + 8]
not ecx
not eax
and esi, ecx
and edx, eax
jmp 0x1001841f
call section..text
mov esi, eax
or esi, 0x400
mov dword [0x101191f4], edx
mov dword [0x101191f0], esi
pop esi
add esp, 8
ret
Function at 0x10018590
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.100bf140
mov eax, dword [0x10116cb0]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x100185f6
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x100185f6
lea eax, [esp + 0x110]
push eax
push dword [esp + 0x110]
call dword [sym.imp.MSVCR120.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR120.dll_vfprintf]
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100bf100
add esp, 0x108
ret
lea eax, [esp + 0x110]
push eax
push dword [esp + 0x110]
lea eax, [esp + 0xc]
push 0xff
push eax
call dword [sym.imp.MSVCR120.dll__vsnprintf]
add esp, 0x10
mov byte [esp + 0x103], 0
call sym.LIBEAY32.dll_OPENSSL_isservice
test eax, eax
jle 0x10018678
push esi
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.100bf100
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100bf100
add esp, 0x108
ret
Function at 0x1001aed0
Capabilities:
Enumerate files on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
test ebx, ebx
je 0x1001b094
mov esi, dword [esp + 0x10]
test esi, esi
je 0x1001b094
push ebp
push edi
call dword [sym.imp.MSVCR120.dll__errno]
mov dword [eax], 0
mov eax, dword [ebx]
test eax, eax
jne 0x1001b04f
mov edi, esi
xor ebp, ebp
lea ecx, [edi + 1]
lea esp, [esp]
mov al, byte [edi]
inc edi
test al, al
jne 0x1001af10
sub edi, ecx
jne 0x1001af2f
mov eax, dword [sym.imp.MSVCR120.dll__errno]
call eax
mov dword [eax], 2
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
ret
push 0x244
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x1001af7e
push 0x244
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp byte [edi + esi - 1], 0x2a
je 0x1001b003
lea eax, [edi + 3]
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x1001af92
push dword [ebx]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
mov dword [ebx], ebp
mov eax, dword [sym.imp.MSVCR120.dll__errno]
call eax
pop edi
pop ebp
pop esi
mov dword [eax], 0xc
xor eax, eax
pop ebx
ret
mov al, byte [edi + esi - 1]
cmp al, 0x2f
je 0x1001afd2
cmp al, 0x5c
je 0x1001afd2
mov ecx, ebp
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x1001afa2
lea ecx, [ebp - 1]
lea esi, [ecx + 1]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x1001afb5
mov ax, word [0x100c0ae4]
mov word [ecx], ax
mov al, byte [0x100c0ae6]
mov byte [ecx + 2], al
jmp 0x1001b003
mov ecx, ebp
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x1001afd6
lea edi, [ebp - 1]
lea esi, [edi + 1]
lea esp, [esp]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x1001aff0
mov ax, word [0x100c0ae8]
mov word [edi], ax
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, dword [ebx]
mov esi, dword [sym.imp.MSVCR120.dll_free]
mov dword [ecx + 0x140], eax
test ebp, ebp
je 0x1001b024
push ebp
call esi
add esp, 4
mov eax, dword [ebx]
cmp dword [eax + 0x140], 0xffffffff
jne 0x1001b064
push eax
call esi
mov eax, dword [sym.imp.MSVCR120.dll__errno]
add esp, 4
mov dword [ebx], 0
call eax
pop edi
pop ebp
pop esi
mov dword [eax], 0x16
xor eax, eax
pop ebx
ret
push eax
push dword [eax + 0x140]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1001af28
mov ecx, dword [ebx]
push 0xff
lea eax, [ecx + 0x2c]
push eax
lea eax, [ecx + 0x144]
push eax
call dword [sym.imp.MSVCR120.dll_strncpy]
mov eax, dword [ebx]
add esp, 0xc
pop edi
pop ebp
mov byte [eax + 0x243], 0
mov eax, dword [ebx]
pop esi
add eax, 0x144
pop ebx
ret
call dword [sym.imp.MSVCR120.dll__errno]
pop esi
pop ebx
mov dword [eax], 0x16
xor eax, eax
ret
Function at 0x1001e950
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.100bf140
mov eax, dword [0x10116cb0]
xor eax, esp
mov dword [esp + 0x9c], eax
push ebx
mov ebx, dword [esp + 0xa8]
push edi
mov edi, dword [esp + 0xb4]
test edi, edi
je 0x1001eaf3
push ebp
dec edi
lea ebp, [ebx + 0xc]
add ebx, 0x14
shr edi, 3
push esi
mov esi, dword [esp + 0xb8]
inc edi
mov dword [esp + 0x18], ebx
jmp 0x1001e9a0
movzx eax, byte [esi + 1]
lea esi, [esi + 8]
movzx ecx, byte [esi - 8]
shl eax, 8
or ecx, eax
movzx eax, byte [esi - 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi - 5]
shl eax, 0x18
or ecx, eax
movzx eax, byte [esi - 3]
shl eax, 8
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], ecx
movzx ecx, byte [esi - 4]
or ecx, eax
movzx eax, byte [esi - 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi - 1]
shl eax, 0x18
or ecx, eax
movzx eax, byte [ebp]
and al, 0xdf
mov dword [esp + 0x14], ecx
or al, 0x40
mov dword [esp + 0x28], ecx
mov byte [ebp], al
movzx eax, byte [ebx]
and al, 0xbf
mov dword [esp + 0x20], ecx
or al, 0x20
push ebp
mov byte [ebx], al
call sym.LIBEAY32.dll_DES_set_odd_parity
lea eax, [esp + 0x30]
push eax
push ebp
call sym.LIBEAY32.dll_DES_set_key_unchecked
push 1
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x30]
push eax
call sym.LIBEAY32.dll_DES_encrypt1
push ebx
call sym.LIBEAY32.dll_DES_set_odd_parity
lea eax, [esp + 0x48]
push eax
push ebx
call sym.LIBEAY32.dll_DES_set_key_unchecked
push 1
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x50]
push eax
call sym.LIBEAY32.dll_DES_encrypt1
mov ecx, dword [esp + 0x44]
add esp, 0x30
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
xor edx, ecx
xor ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
xor ebx, eax
mov dword [esp + 0x14], ecx
xor eax, dword [esp + 0x1c]
mov ecx, ebp
mov dword [esp + 0x10], eax
mov byte [ecx], al
shr eax, 8
mov byte [ecx + 1], al
mov eax, dword [esp + 0x10]
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, dword [esp + 0x10]
shr eax, 0x18
mov byte [ecx + 3], al
mov byte [ecx + 4], dl
mov eax, edx
shr eax, 8
mov byte [ecx + 5], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 6], al
mov eax, ebx
shr edx, 0x18
mov byte [ecx + 7], dl
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
shr eax, 8
mov byte [ecx], bl
mov byte [ecx + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, edx
shr ebx, 0x18
mov byte [ecx + 3], bl
mov ebx, ecx
shr eax, 8
mov byte [ecx + 4], dl
mov byte [ecx + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [ecx + 6], al
mov byte [ecx + 7], dl
dec edi
jne 0x1001e9a0
pop esi
pop ebp
mov ecx, dword [esp + 0xa4]
pop edi
pop ebx
xor ecx, esp
call fcn.100bf100
add esp, 0xa0
ret
Function at 0x1001ef00
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.100bf140
mov eax, dword [0x10116cb0]
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 0x1001ef66
cmp edi, dword [esi]
je 0x1001ef5d
test ebp, ebp
je 0x1001efe0
test ebx, ebx
js 0x1001efe0
mov eax, 1
mov dword [esi], edi
jmp 0x1001ef6c
mov edi, dword [esi]
test edi, edi
je 0x1001efe0
test ebp, ebp
je 0x1001f0fb
push edi
call sym.LIBEAY32.dll_ENGINE_get_ctrl_function
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x1001efa0
push str.j____int_sizeof_ctx__key_
push 0x6a
push str..cryptohmachmac.c
call sym.LIBEAY32.dll_OpenSSLDie
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
jge 0x1001effb
push dword [esp + 0x10]
lea eax, [esi + 4]
push edi
push eax
call sym.LIBEAY32.dll_EVP_DigestInit_ex
add esp, 0xc
test eax, eax
je 0x1001efe0
push ebx
push ebp
lea ebx, [esi + 4]
push ebx
call sym.LIBEAY32.dll_EVP_DigestUpdate
add esp, 0xc
test eax, eax
je 0x1001efe0
lea ebp, [esi + 0x4c]
push ebp
lea eax, [esi + 0x50]
push eax
push ebx
call sym.LIBEAY32.dll_EVP_DigestFinal_ex
add esp, 0xc
test eax, eax
jne 0x1001f017
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100bf100
add esp, 0x8c
ret
cmp ebx, 0x80
ja 0x1001efe0
push ebx
lea eax, [esi + 0x50]
push ebp
push eax
call sub.MSVCR120.dll_memcpy
lea ebp, [esi + 0x4c]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x80
je 0x1001f03a
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x50]
add eax, ecx
push 0
push eax
call sub.MSVCR120.dll_memset
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 0x1001f040
push edx
lea ebx, [esi + 0x1c]
push edi
push ebx
call sym.LIBEAY32.dll_EVP_DigestInit_ex
add esp, 0xc
test eax, eax
je 0x1001efe0
push edi
call sym.LIBEAY32.dll_ENGINE_get_ctrl_function
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call sym.LIBEAY32.dll_EVP_DigestUpdate
add esp, 0x10
test eax, eax
je 0x1001efe0
xor ecx, ecx
jmp 0x1001f090
mov al, byte [esi + ecx + 0x50]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x1001f090
push dword [esp + 0x10]
lea ebx, [esi + 0x34]
push edi
push ebx
call sym.LIBEAY32.dll_EVP_DigestInit_ex
add esp, 0xc
test eax, eax
je 0x1001efe0
push edi
call sym.LIBEAY32.dll_ENGINE_get_ctrl_function
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call sym.LIBEAY32.dll_EVP_DigestUpdate
add esp, 0x10
test eax, eax
je 0x1001efe0
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call sym.LIBEAY32.dll_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x1001efe0
mov eax, 1
jmp 0x1001efe2
test eax, eax
je 0x1001f0d9
jmp 0x1001f03e
Function at 0x1001f730
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x10c], 0xffffffff
jne 0x1001f742
xor eax, eax
pop edi
ret
push ebp
push esi
push edi
call sym.LIBEAY32.dll_X509_get_serialNumber
mov ecx, dword [esp + 0x1c]
add esp, 4
mov ebp, dword [esp + 0x14]
mov esi, eax
mov dword [ecx], esi
test ebp, ebp
je 0x1001f7f9
mov ecx, dword [edi + 0x10c]
push ebx
cmp ecx, esi
jne 0x1001f794
test esi, esi
jle 0x1001f7d8
mov edx, ebp
lea ecx, [edi + 0x8c]
mov ebx, esi
lea ebx, [ebx]
mov al, byte [ecx + 0x60]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
dec ebx
jne 0x1001f780
jmp 0x1001f7d8
sub eax, ecx
mov byte [ecx + edi + 0xec], 0x80
cmp eax, 1
jle 0x1001f7b8
dec eax
push eax
lea eax, [edi + 0xed]
add eax, ecx
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
test esi, esi
jle 0x1001f7d8
mov edx, ebp
lea ecx, [edi + 0xac]
mov ebx, esi
mov al, byte [ecx + 0x40]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
dec ebx
jne 0x1001f7c6
push esi
push ebp
push ebp
push edi
call sym.LIBEAY32.dll_EVP_Cipher
add esp, 0x10
pop ebx
test eax, eax
jne 0x1001f7f9
push esi
push ebp
call sym.LIBEAY32.dll_OPENSSL_cleanse
add esp, 8
xor eax, eax
pop esi
pop ebp
pop edi
ret
pop esi
pop ebp
mov eax, 1
pop edi
ret
Function at 0x10021d80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x30
call fcn.100bf140
mov eax, dword [0x10116cb0]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
push ebx
push ebp
movzx ebx, byte [eax]
push esi
push edi
lea edi, [eax + 1]
mov ebp, dword [esp + 0x60]
mov edx, edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x24], edi
mov esi, dword [ebp]
movzx eax, byte [edx]
shl eax, 8
or ebx, eax
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 1]
shl eax, 0x10
or ebx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ecx, eax
mov dword [esp + 0x18], ebx
movzx eax, byte [edx + 5]
mov dword [esp + 0x34], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [esp + 0x34]
shl ecx, 8
or ecx, eax
mov byte [esp + 0x34], bl
mov eax, ebx
shl ecx, 0x10
shr eax, 8
or edx, ecx
mov byte [esp + 0x35], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x36], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x37], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x39], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x3a], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x3b], al
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x38], dl
test eax, eax
je 0x10021f5d
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x44]
sub ecx, ebp
mov dword [esp + 0x10], ecx
xor edi, edi
lea ebx, [ebx]
dec eax
mov dword [esp + 0x4c], eax
test esi, esi
jne 0x10021eed
push dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push dword [esp + 0x24]
push dword [esp + 0x30]
push eax
call sym.LIBEAY32.dll_DES_encrypt3
mov ebx, dword [esp + 0x28]
add esp, 0x10
mov edx, dword [esp + 0x1c]
mov eax, ebx
shr eax, 8
mov byte [esp + 0x35], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x36], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x37], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x39], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x3a], al
mov eax, edx
shr eax, 0x18
inc edi
mov byte [esp + 0x34], bl
mov byte [esp + 0x38], dl
mov byte [esp + 0x3b], al
mov al, byte [esp + esi + 0x34]
inc esi
xor al, byte [ebp]
and esi, 7
mov byte [ecx + ebp], al
inc ebp
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x10021e80
test edi, edi
mov edi, dword [esp + 0x24]
je 0x10021f44
mov eax, dword [esp + 0x30]
mov byte [eax], bl
mov eax, ebx
shr eax, 8
mov byte [edi], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 1], al
mov eax, edx
shr ebx, 0x18
mov byte [edi + 2], bl
shr eax, 8
mov byte [edi + 3], dl
mov byte [edi + 4], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [edi + 5], al
mov byte [edi + 6], dl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.100bf100
add esp, 0x30
ret
mov ecx, dword [esp + 0x3c]
pop edi
mov dword [ebp], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100bf100
add esp, 0x30
ret