joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014c60
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xc1059ed8
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x40], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x44], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x30
mov eax, 1
ret

Function at 0x10014d00
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xf3bcc908
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x40], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x44], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x40
mov eax, 1
ret

Function at 0x100151e0
Capabilities:
Hash data using sha224

Disassembly:
mov eax, pe_nt_image_headers32
call fcn.100b1990
push esi
mov esi, dword [esp + 0xe8]
xor eax, eax
cmp esi, eax
jne 0x100151fd
mov esi, 0x100ffbd0
mov ecx, dword [esp + 0xe0]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xe4]
lea edx, [esp + 4]
push eax
push ecx
push edx
mov dword [esp + 0x10], 0xc1059ed8
mov dword [esp + 0x14], 0xcbbb9d5d
mov dword [esp + 0x18], 0x367cd507
mov dword [esp + 0x1c], 0x629a292a
mov dword [esp + 0x20], 0x3070dd17
mov dword [esp + 0x24], 0x9159015a
mov dword [esp + 0x28], 0xf70e5939
mov dword [esp + 0x2c], 0x152fecd8
mov dword [esp + 0x30], 0xffc00b31
mov dword [esp + 0x34], 0x67332667
mov dword [esp + 0x38], 0x68581511
mov dword [esp + 0x3c], 0x8eb44a87
mov dword [esp + 0x40], 0x64f98fa7
mov dword [esp + 0x44], 0xdb0c2e0d
mov dword [esp + 0x48], 0xbefa4fa4
mov dword [esp + 0x4c], 0x47b5481d
mov dword [esp + 0xe4], 0x30
call sym.LIBEAY32_smt.dll_SHA512_Update
lea eax, [esp + 0x10]
push eax
push esi
call sym.LIBEAY32_smt.dll_SHA512_Final
lea ecx, [esp + 0x18]
push pe_nt_image_headers32
push ecx
call sym.LIBEAY32_smt.dll_OPENSSL_cleanse
add esp, 0x1c
mov eax, esi
pop esi
add esp, 0xd8
ret
Function at 0x100152e0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, pe_nt_image_headers32
call fcn.100b1990
push esi
mov esi, dword [esp + 0xe8]
xor eax, eax
cmp esi, eax
jne 0x100152fd
mov esi, 0x100ffc00
mov ecx, dword [esp + 0xe0]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xe4]
lea edx, [esp + 4]
push eax
push ecx
push edx
mov dword [esp + 0x10], 0xf3bcc908
mov dword [esp + 0x14], 0x6a09e667
mov dword [esp + 0x18], 0x84caa73b
mov dword [esp + 0x1c], 0xbb67ae85
mov dword [esp + 0x20], 0xfe94f82b
mov dword [esp + 0x24], 0x3c6ef372
mov dword [esp + 0x28], 0x5f1d36f1
mov dword [esp + 0x2c], 0xa54ff53a
mov dword [esp + 0x30], 0xade682d1
mov dword [esp + 0x34], 0x510e527f
mov dword [esp + 0x38], 0x2b3e6c1f
mov dword [esp + 0x3c], 0x9b05688c
mov dword [esp + 0x40], 0xfb41bd6b
mov dword [esp + 0x44], 0x1f83d9ab
mov dword [esp + 0x48], 0x137e2179
mov dword [esp + 0x4c], 0x5be0cd19
mov dword [esp + 0xe4], 0x40
call sym.LIBEAY32_smt.dll_SHA512_Update
lea eax, [esp + 0x10]
push eax
push esi
call sym.LIBEAY32_smt.dll_SHA512_Final
lea ecx, [esp + 0x18]
push pe_nt_image_headers32
push ecx
call sym.LIBEAY32_smt.dll_OPENSSL_cleanse
add esp, 0x1c
mov eax, esi
pop esi
add esp, 0xd8
ret
Function at 0x100195b0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x80
call fcn.100b1990
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9c]
xor eax, eax
push edi
test esi, esi
je 0x100195db
mov ebx, dword [esp + 0x94]
mov eax, 1
mov dword [ebx], esi
jmp 0x100195ed
mov ebx, dword [esp + 0x94]
mov ecx, dword [ebx]
mov dword [esp + 0xa0], ecx
mov esi, ecx
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x10019759
push esi
call sym.LIBEAY32_smt.dll_ENGINE_get_load_pubkey_function
mov edi, eax
add esp, 4
cmp edi, 0x80
jle 0x10019623
push str.j____int_sizeof_ctx__key_
push 0x52
push str..cryptohmachmac.c
call sym.LIBEAY32_smt.dll_OpenSSLDie
add esp, 0xc
mov ebp, dword [esp + 0x9c]
cmp edi, ebp
jge 0x10019662
mov edx, dword [esp + 0xa4]
lea edi, [ebx + 4]
push edx
push esi
push edi
call sym.LIBEAY32_smt.dll_EVP_DigestInit_ex
mov eax, dword [esp + 0xa4]
push ebp
push eax
push edi
call sym.LIBEAY32_smt.dll_EVP_DigestUpdate
lea esi, [ebx + 0x34]
lea ecx, [ebx + 0x38]
push esi
push ecx
push edi
call sym.LIBEAY32_smt.dll_EVP_DigestFinal_ex
add esp, 0x24
jmp 0x100196a1
test ebp, ebp
jl 0x1001966e
cmp ebp, 0x80
jle 0x10019682
push 0x100b2da0
push 0x5c
push str..cryptohmachmac.c
call sym.LIBEAY32_smt.dll_OpenSSLDie
add esp, 0xc
mov esi, dword [esp + 0x98]
mov ecx, ebp
mov edx, ecx
lea edi, [ebx + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x34]
mov dword [esi], ebp
mov esi, dword [esi]
cmp esi, 0x80
je 0x100196c6
mov ecx, 0x80
xor eax, eax
sub ecx, esi
lea edi, [esi + ebx + 0x38]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esp + 0xa0]
xor eax, eax
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x36
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x100196cf
mov ebp, dword [esp + 0xa4]
lea edi, [ebx + 0x14]
push ebp
push esi
push edi
call sym.LIBEAY32_smt.dll_EVP_DigestInit_ex
push esi
call sym.LIBEAY32_smt.dll_ENGINE_get_load_pubkey_function
lea edx, [esp + 0x20]
push eax
push edx
push edi
call sym.LIBEAY32_smt.dll_EVP_DigestUpdate
add esp, 0x1c
xor eax, eax
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x1001970b
lea edi, [ebx + 0x24]
push ebp
push esi
push edi
call sym.LIBEAY32_smt.dll_EVP_DigestInit_ex
push esi
call sym.LIBEAY32_smt.dll_ENGINE_get_load_pubkey_function
lea edx, [esp + 0x20]
push eax
push edx
push edi
call sym.LIBEAY32_smt.dll_EVP_DigestUpdate
add esp, 0x1c
lea eax, [ebx + 0x14]
add ebx, 4
push eax
push ebx
call sym.LIBEAY32_smt.dll_EVP_MD_CTX_copy_ex
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
test eax, eax
je 0x1001973e
jmp 0x100196cd

Function at 0x10019e30
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x5c], ecx
mov eax, 1
ret
Function at 0x100206f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
push ebx
push ebp
push esi
xor ecx, ecx
xor esi, esi
xor ebp, ebp
push edi
mov byte [eax + 7], cl
mov byte [eax + 6], cl
mov byte [eax + 5], cl
mov byte [eax + 4], cl
mov byte [eax + 3], cl
mov byte [eax + 2], cl
mov byte [eax + 1], cl
mov byte [eax], cl
sub edx, eax
mov ebx, esi
lea edi, [ecx + eax]
xor ebx, ebp
mov ebp, esi
mov esi, ecx
mov bl, byte [ebx + 0x100f25ec]
and esi, 7
xor bl, byte [edx + edi]
mov byte [edi], bl
xor ebx, ebx
mov bl, byte [esi + eax]
inc ecx
cmp ecx, 8
mov esi, ebx
jl 0x1002071b
xor edx, edx
mov dl, byte [eax]
mov ebp, edx
xor edx, edx
mov dl, byte [ecx + eax]
xor ecx, ecx
mov esi, edx
mov edx, dword [esp + 0x18]
sub edx, eax
mov ebx, esi
lea edi, [ecx + eax]
xor ebx, ebp
mov ebp, esi
mov esi, ecx
mov bl, byte [ebx + 0x100f25ec]
and esi, 7
xor bl, byte [edx + edi]
mov byte [edi], bl
xor ebx, ebx
mov bl, byte [esi + eax]
inc ecx
cmp ecx, 8
mov esi, ebx
jl 0x10020756
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10021c80
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
cmp esi, 0x80
mov byte [eax], 0
jle 0x10021c9c
mov esi, 0x80
mov ecx, dword [esp + 0x20]
test ecx, ecx
jle 0x10021cac
cmp ecx, 0x400
jle 0x10021cb1
mov ecx, 0x400
test esi, esi
jle 0x10021cc8
mov edi, dword [esp + 0x1c]
mov edx, eax
sub edi, eax
mov ebp, esi
mov bl, byte [edi + edx]
mov byte [edx], bl
inc edx
dec ebp
jne 0x10021cbf
xor edx, edx
cmp esi, 0x80
mov dl, byte [eax + esi - 1]
jge 0x10021cfa
mov edi, eax
sub edi, esi
mov bl, byte [edi + esi]
add ebx, edx
xor edx, edx
and ebx, 0xff
inc esi
cmp esi, 0x80
mov dl, byte [ebx + 0x100f26ec]
mov byte [esi + eax - 1], dl
jl 0x10021cda
lea esi, [ecx + 7]
mov edx, 0x80
neg ecx
sar esi, 3
and ecx, 7
mov edi, 0xff
sub edx, esi
sar edi, cl
xor ecx, ecx
mov cl, byte [edx + eax]
and edi, ecx
xor ecx, ecx
mov cl, byte [edi + 0x100f26ec]
mov edi, edx
mov byte [edx + eax], cl
dec edx
test edi, edi
je 0x10021d4a
lea edi, [edx + eax]
lea ebp, [edx + 1]
xor edx, edx
mov dl, byte [edi + esi]
xor edx, ecx
xor ecx, ecx
dec ebp
dec edi
mov cl, byte [edx + 0x100f26ec]
mov byte [edi + 1], cl
test ebp, ebp
ja 0x10021d32
lea esi, [eax + 0xfc]
mov ecx, 0x7f
xor edx, edx
xor ebx, ebx
mov dl, byte [ecx + eax - 1]
mov bh, byte [ecx + eax]
and edx, 0xffff
sub esi, 4
or edx, ebx
sub ecx, 2
mov dword [esi + 4], edx
jns 0x10021d55
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10024600
Capabilities:
Encrypt data using blowfish

Disassembly:
mov eax, 8
call fcn.100b1990
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov ecx, 0x412
mov esi, 0x100b4138
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
cmp ecx, 0x48
jle 0x1002462d
mov ecx, 0x48
mov edi, dword [esp + 0x20]
push ebp
mov eax, edi
mov ebp, ebx
lea esi, [ecx + edi]
mov dword [esp + 0x1c], 0x12
xor ecx, ecx
mov cl, byte [eax]
inc eax
cmp eax, esi
jb 0x1002464c
mov eax, edi
xor edx, edx
mov dl, byte [eax]
shl ecx, 8
or ecx, edx
inc eax
cmp eax, esi
jb 0x1002465c
mov eax, edi
xor edx, edx
mov dl, byte [eax]
shl ecx, 8
or ecx, edx
inc eax
cmp eax, esi
jb 0x1002466c
mov eax, edi
xor edx, edx
mov dl, byte [eax]
shl ecx, 8
or ecx, edx
inc eax
cmp eax, esi
jb 0x1002467c
mov eax, edi
mov edx, dword [ebp]
add ebp, 4
xor edx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [ebp - 4], edx
dec ecx
mov dword [esp + 0x1c], ecx
jne 0x10024641
xor eax, eax
mov esi, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov edi, 9
pop ebp
lea eax, [esp + 0xc]
push ebx
push eax
call sym.LIBEAY32_smt.dll_BF_encrypt
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
add esp, 8
add esi, 8
dec edi
jne 0x100246a4
lea esi, [ebx + 0x48]
mov edi, 0x200
lea eax, [esp + 0xc]
push ebx
push eax
call sym.LIBEAY32_smt.dll_BF_encrypt
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
add esp, 8
add esi, 8
dec edi
jne 0x100246cd
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x100282c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x20
call fcn.100b1990
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
test ebx, ebx
push edi
jle 0x10028414
cmp ebx, 0x80
jg 0x10028414
mov edi, dword [esp + 0x44]
mov eax, edi
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x40]
push eax
push edi
push edi
mov dword [esp + 0x28], edx
call sym.LIBEAY32_smt.dll_AES_encrypt
lea eax, [ebx + 7]
add esp, 0xc
cdq
and edx, 7
add eax, edx
mov ebp, eax
mov eax, dword [esp + 0x48]
sar ebp, 3
test eax, eax
je 0x10028357
test ebp, ebp
jle 0x100283a5
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
lea esi, [esp + 0x20]
sub edx, edi
sub esi, edi
mov ecx, edi
sub ebx, edi
mov al, byte [edx + ecx]
xor al, byte [ecx]
inc ecx
dec ebp
mov byte [esi + ecx - 1], al
mov byte [ebx + ecx - 1], al
jne 0x10028344
jmp 0x100283a1
xor esi, esi
test ebp, ebp
jle 0x100283a5
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x20]
mov ebx, edi
lea edx, [esp + 0x20]
sub eax, ecx
mov ecx, dword [esp + 0x38]
sub ebx, edx
lea edx, [esp + 0x20]
sub ecx, edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ecx
jmp 0x10028387
mov ebx, dword [esp + 0x34]
lea ecx, [esp + esi + 0x20]
mov dl, byte [eax + ecx]
mov bl, byte [ebx + ecx]
mov byte [ecx], dl
xor bl, dl
mov edx, dword [esp + 0x38]
inc esi
cmp esi, ebp
mov byte [edx + ecx], bl
jl 0x10028383
mov ebx, dword [esp + 0x3c]
mov ebp, ebx
and ebp, reloc.WS2_32.dll_getsockopt
jns 0x100283b4
dec ebp
or ebp, 0xfffffff8
inc ebp
mov eax, ebx
cdq
and edx, 7
add eax, edx
sar eax, 3
test ebp, ebp
jne 0x100283e5
lea eax, [esp + eax + 0x10]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [edi + 0xc], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, 8
xor esi, esi
sub ecx, ebp
lea eax, [esp + eax + 0x10]
mov dword [esp + 0x3c], ecx
jmp 0x100283fc
mov ecx, dword [esp + 0x3c]
mov dl, byte [eax + esi + 1]
mov bl, byte [eax + esi]
shr dl, cl
mov ecx, ebp
shl bl, cl
or dl, bl
mov byte [esi + edi], dl
inc esi
cmp esi, 0x10
jl 0x100283f8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x10034740
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov ecx, dword [eax + 4]
push edi
cmp ecx, dword [ebx + 4]
jge 0x10034759
mov edi, ebx
mov ebx, eax
jmp 0x1003475b
mov edi, eax
mov esi, dword [esp + 0x10]
mov eax, dword [edi + 4]
cmp eax, dword [esi + 8]
jle 0x10034771
push eax
push esi
call sym.LIBEAY32_smt.dll_bn_expand2
add esp, 8
mov ecx, dword [ebx + 4]
xor eax, eax
test ecx, ecx
jle 0x10034795
push ebp
mov edx, dword [edi]
mov ecx, dword [ebx]
mov edx, dword [edx + eax*4]
mov ebp, dword [ecx + eax*4]
mov ecx, dword [esi]
xor edx, ebp
mov dword [ecx + eax*4], edx
mov ecx, dword [ebx + 4]
inc eax
cmp eax, ecx
jl 0x1003477b
pop ebp
cmp eax, dword [edi + 4]
jge 0x100347ac
mov edx, dword [edi]
mov ecx, dword [esi]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
mov ecx, dword [edi + 4]
inc eax
cmp eax, ecx
jl 0x1003479a
mov edi, dword [edi + 4]
test edi, edi
mov dword [esi + 4], edi
jle 0x100347d2
mov eax, dword [esi]
lea eax, [eax + edi*4 - 4]
mov ecx, dword [eax]
sub eax, 4
test ecx, ecx
jne 0x100347d2
mov edx, dword [esi + 4]
dec edx
mov ecx, edx
mov dword [esi + 4], edx
test ecx, ecx
jg 0x100347bc
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x1003a270
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.100b1990
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
lea esi, [eax - 1]
push edi
mov edi, dword [esp + 0x38]
lea ecx, [esi - 0x29]
cmp edi, ecx
jle 0x1003a2af
push 0x2d
push str..crypto_rsa_rsa_oaep.c
push 0x6e
push 0x79
push 4
call sym.LIBEAY32_smt.dll_ERR_put_error
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
cmp esi, 0x29
jge 0x1003a2d3
push 0x33
push str..crypto_rsa_rsa_oaep.c
push 0x78
push 0x79
push 4
call sym.LIBEAY32_smt.dll_ERR_put_error
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
lea eax, [esi - 0x14]
push 0x37
push str..crypto_rsa_rsa_oaep.c
push eax
mov dword [esp + 0x1c], eax
call sym.LIBEAY32_smt.dll_CRYPTO_malloc
add esp, 0xc
mov dword [esp + 0x30], eax
test eax, eax
jne 0x1003a311
push 0x3a
push str..crypto_rsa_rsa_oaep.c
push 0x41
push 0x79
push 4
call sym.LIBEAY32_smt.dll_ERR_put_error
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov ebx, dword [esp + 0x2c]
push 0
mov byte [ebx], 0
lea ebp, [ebx + 1]
add ebx, 0x15
call sym.LIBEAY32_smt.dll_EVP_sha1
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x44]
push 0
push ebx
push edx
push eax
call sym.LIBEAY32_smt.dll_EVP_Digest
mov ecx, esi
xor eax, eax
sub ecx, edi
lea edi, [ebx + 0x14]
sub ecx, 0x29
push 0x14
mov edx, ecx
push ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x58]
mov eax, ebx
sub eax, ecx
mov edx, ecx
add eax, esi
mov esi, dword [esp + 0x54]
shr ecx, 2
lea edi, [eax - 0x14]
mov byte [eax - 0x15], 1
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sym.LIBEAY32_smt.dll_RAND_bytes
add esp, 0x20
test eax, eax
jg 0x1003a38e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
call sym.LIBEAY32_smt.dll_EVP_sha1
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x30]
push eax
push 0x14
push ebp
push edi
push esi
call sym.LIBEAY32_smt.dll_PKCS1_MGF1
add esp, 0x14
test edi, edi
jle 0x1003a3c0
mov eax, ebx
sub esi, ebx
mov ecx, edi
mov dl, byte [esi + eax]
xor byte [eax], dl
inc eax
dec ecx
jne 0x1003a3b3
mov esi, dword [esp + 0x30]
call sym.LIBEAY32_smt.dll_EVP_sha1
push eax
push edi
push ebx
lea eax, [esp + 0x20]
push 0x14
push eax
call sym.LIBEAY32_smt.dll_PKCS1_MGF1
lea eax, [esp + 0x28]
add esp, 0x14
sub eax, ebp
mov ecx, 0x14
mov dl, byte [eax + ebp]
mov bl, byte [ebp]
xor bl, dl
mov byte [ebp], bl
inc ebp
dec ecx
jne 0x1003a3e2
push esi
call sym.LIBEAY32_smt.dll_CRYPTO_free
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x1003a410
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2c
call fcn.100b1990
mov eax, dword [esp + 0x40]
push ebx
xor ebx, ebx
dec eax
push ebp
push esi
cmp eax, 0x29
push edi
mov dword [esp + 0x10], ebx
jl 0x1003a5b4
mov ecx, dword [esp + 0x4c]
mov edi, eax
sub edi, ecx
jns 0x1003a446
mov dword [esp + 0x10], 1
xor edi, edi
mov esi, dword [esp + 0x48]
lea ebp, [eax - 0x14]
push 0x7a
sub esi, edi
push str..crypto_rsa_rsa_oaep.c
push ebp
add esi, 0x14
call sym.LIBEAY32_smt.dll_CRYPTO_malloc
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1003a488
push 0x7d
push str..crypto_rsa_rsa_oaep.c
push 0x41
push 0x7a
push 4
call sym.LIBEAY32_smt.dll_ERR_put_error
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
call sym.LIBEAY32_smt.dll_EVP_sha1
push eax
push ebp
push esi
lea eax, [esp + 0x20]
push 0x14
push eax
call sym.LIBEAY32_smt.dll_PKCS1_MGF1
add esp, 0x14
cmp edi, 0x14
mov eax, edi
jge 0x1003a4c1
mov edx, dword [esp + 0x48]
mov ecx, eax
sub ecx, edi
mov cl, byte [ecx + edx]
mov dl, byte [esp + eax + 0x14]
xor dl, cl
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, 0x14
jl 0x1003a4a6
call sym.LIBEAY32_smt.dll_EVP_sha1
push eax
lea edx, [esp + 0x18]
push 0x14
push edx
push ebp
push ebx
call sym.LIBEAY32_smt.dll_PKCS1_MGF1
add esp, 0x14
test ebp, ebp
jle 0x1003a4ef
mov eax, ebx
sub esi, ebx
mov edi, ebp
mov cl, byte [esi + eax]
mov dl, byte [eax]
xor dl, cl
mov byte [eax], dl
inc eax
dec edi
jne 0x1003a4e2
push 0
call sym.LIBEAY32_smt.dll_EVP_sha1
mov ecx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x60]
lea edx, [esp + 0x30]
push 0
push edx
push eax
push ecx
call sym.LIBEAY32_smt.dll_EVP_Digest
add esp, 0x18
mov ecx, 5
lea edi, [esp + 0x28]
mov esi, ebx
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x1003a5b4
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x1003a5b4
mov eax, 0x14
cmp ebp, eax
jle 0x1003a545
cmp byte [eax + ebx], 0
jne 0x1003a545
inc eax
cmp eax, ebp
jl 0x1003a53a
cmp byte [eax + ebx], 1
jne 0x1003a5b4
mov ecx, eax
inc eax
cmp ecx, ebp
jge 0x1003a5b4
mov ecx, dword [esp + 0x44]
sub ebp, eax
cmp ecx, ebp
jge 0x1003a58a
push 0x9b
push str..crypto_rsa_rsa_oaep.c
push 0x6d
push 0x7a
push 4
call sym.LIBEAY32_smt.dll_ERR_put_error
add esp, 0x14
or ebp, 0xffffffff
push ebx
call sym.LIBEAY32_smt.dll_CRYPTO_free
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov edi, dword [esp + 0x40]
mov ecx, ebp
mov edx, ecx
lea esi, [eax + ebx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sym.LIBEAY32_smt.dll_CRYPTO_free
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
push 0xa8
push str..crypto_rsa_rsa_oaep.c
push 0x79
push 0x7a
push 4
call sym.LIBEAY32_smt.dll_ERR_put_error
add esp, 0x14
test ebx, ebx
je 0x1003a5d9
push ebx
call sym.LIBEAY32_smt.dll_CRYPTO_free
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x2c
ret
Function at 0x1003b150
Capabilities:
Check for software breakpoints

Disassembly:
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp eax, edx
push esi
jne 0x1003b225
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x1003b173
cmp al, 0x6b
jne 0x1003b225
cmp al, 0x6b
lea esi, [ecx + 1]
jne 0x1003b1e1
lea eax, [edx - 3]
xor edx, edx
test eax, eax
jle 0x1003b195
mov cl, byte [esi]
inc esi
cmp cl, 0xba
je 0x1003b195
cmp cl, 0xbb
jne 0x1003b1be
inc edx
cmp edx, eax
jl 0x1003b183
sub eax, edx
test edx, edx
jne 0x1003b1e4
push 0x8a
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call sym.LIBEAY32_smt.dll_ERR_put_error
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push 0x81
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call sym.LIBEAY32_smt.dll_ERR_put_error
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
lea eax, [edx - 2]
cmp byte [eax + esi], 0xcc
je 0x1003b20d
push 0x93
push str..crypto_rsa_rsa_x931.c
push 0x8b
push 0x80
push 4
call sym.LIBEAY32_smt.dll_ERR_put_error
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
mov ecx, eax
push edi
mov edi, dword [esp + 0xc]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret
push 0x72
push str..crypto_rsa_rsa_x931.c
push 0x89
push 0x80
push 4
call sym.LIBEAY32_smt.dll_ERR_put_error
add esp, 0x14
or eax, 0xffffffff
pop esi
ret