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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov edi, dword [esp + 0xbc]
xor eax, eax
test edi, edi
mov ebx, dword [esp + 0xb0]
mov ebp, dword [esp + 0xb8]
je 0x47eadf
mov edx, dword [esp + 0xb4]
test edx, edx
mov al, 1
mov dword [ebx], edi
je 0x47eaf0
mov esi, dword [edi + 0x40]
cmp esi, 0x80
jg 0x47eaab
cmp esi, ebp
jl 0x47ea5e
cmp ebp, 0x80
ja 0x47eac5
push edx
push ebp
mov edx, dword [esp + 0xbc]
push edx
lea eax, [ebx + 0x38]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0x10
lea ecx, [ebx + 4]
mov edx, ebp
mov dword [ebx + 0x34], ebp
mov dword [esp + 0xc], ecx
cmp edx, 0x80
je 0x47e9c1
mov esi, pe_nt_image_headers32
sub esi, edx
push ecx
push esi
push 0
lea ebp, [edx + ebx + 0x38]
push ebp
call sub.msvcrt.dll_memset
add esp, 0x10
xor edx, edx
lea esi, [esi]
lea edi, [edi]
mov al, byte [ebx + edx + 0x38]
xor eax, 0x36
mov byte [esp + edx + 0x10], al
inc edx
cmp edx, 0x7f
jle 0x47e9d0
push eax
mov ebp, dword [esp + 0xc4]
push ebp
push edi
lea esi, [ebx + 0x14]
push esi
call fcn.00478e90
add esp, 0xc
mov edx, dword [edi + 0x40]
push edx
lea ebp, [esp + 0x18]
push ebp
push esi
call fcn.00479030
xor edx, edx
add esp, 0x10
nop
lea esi, [esi]
mov cl, byte [ebx + edx + 0x38]
xor ecx, 0x5c
mov byte [esp + edx + 0x10], cl
inc edx
cmp edx, 0x7f
jle 0x47ea10
push eax
mov edx, dword [esp + 0xc4]
push edx
push edi
add ebx, 0x24
push ebx
call fcn.00478e90
add esp, 0xc
mov eax, dword [edi + 0x40]
push eax
push ebp
push ebx
call fcn.00479030
add esp, 0x10
sub esp, 8
push esi
mov ebx, dword [esp + 0x18]
push ebx
call fcn.00479430
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
push eax
mov eax, dword [esp + 0xc4]
push eax
push edi
lea esi, [ebx + 4]
mov dword [esp + 0x18], esi
push esi
call fcn.00478e90
add esp, 0xc
push ebp
mov edx, dword [esp + 0xbc]
push edx
mov ebp, dword [esp + 0x18]
push ebp
call fcn.00479030
add esp, 0xc
lea ecx, [ebx + 0x34]
push ecx
lea eax, [ebx + 0x38]
push eax
mov esi, dword [esp + 0x18]
push esi
call fcn.00479050
add esp, 0x10
mov edx, dword [ebx + 0x34]
jmp 0x47e9a1
push eax
push str.j____int_sizeof_ctx__key_
push 0x52
push str..cryptohmachmac.c
call fcn.0046fd10
add esp, 0x10
jmp 0x47e96b
push ecx
push str.len_0__len__int_sizeof_ctx__key_
push 0x5c
push str..cryptohmachmac.c
call fcn.0046fd10
add esp, 0x10
jmp 0x47e97f
mov edx, dword [esp + 0xb4]
test edx, edx
mov edi, dword [ebx]
jne 0x47e95c
lea ecx, [ebx + 4]
test eax, eax
mov dword [esp + 0xc], ecx
lea esi, [ebx + 0x14]
jne 0x47e9c1
sub esp, 8
push esi
mov ebx, dword [esp + 0x18]
push ebx
call fcn.00479430
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x480dc0
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]
push ecx
mov eax, dword [esp + 0x34]
push eax
push ebx
cmp ecx, 0
je 0x480e90
and ebp, 0xfffffff8
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
je 0x480e2e
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.0047eda0
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x480e00
mov ebp, dword [esp + 0x38]
and ebp, 7
je 0x480f40
call 0x480e40
pop edx
lea ecx, [edx + 0x120]
mov ebp, dword [ecx + ebp*4]
add ebp, edx
xor ecx, ecx
xor edx, edx
jmp ebp
and ebp, 0xfffffff8
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
je 0x480ee0
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.0047eda0
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
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 + 0x14], eax
mov dword [esp + 0x18], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x480e9d
mov ebp, dword [esp + 0x38]
and ebp, 7
je 0x480f40
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.0047eda0
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
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 0x480f35
jmp 0x480f40
mov ecx, dword [esp + 0x40]
add esp, 0x1c
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x480fa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
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 + 0x40]
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
push ebx
cmp ecx, 0
je 0x481080
and ebp, 0xfffffff8
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
je 0x481017
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.00480b60
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x480fe9
mov ebp, dword [esp + 0x3c]
and ebp, 7
je 0x481130
call 0x481029
pop edx
lea ecx, [edx + 0x137]
mov ebp, dword [ecx + ebp*4]
add ebp, edx
xor ecx, ecx
xor edx, edx
jmp ebp
and ebp, 0xfffffff8
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
je 0x4810d0
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.00480c90
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
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 + 0x18], eax
mov dword [esp + 0x1c], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x48108d
mov ebp, dword [esp + 0x3c]
and ebp, 7
je 0x481130
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.00480c90
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
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 0x481125
jmp 0x481130
mov ecx, dword [esp + 0x4c]
add esp, 0x20
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4ad9a0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
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], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x5c], 0
mov eax, 1
ret
Function at 0x4b59a0
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0x367cd507
mov dword [eax + 8], 0x3070dd17
mov dword [eax + 0xc], 0xf70e5939
mov dword [eax + 0x10], 0xffc00b31
mov dword [eax + 0x14], 0x68581511
mov dword [eax + 0x18], 0x64f98fa7
mov dword [eax + 0x1c], 0xbefa4fa4
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x68], 0
mov dword [eax + 0x6c], 0x1c
mov eax, 1
ret

Function at 0x4b5a00
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x68], 0
mov dword [eax + 0x6c], 0x20
mov eax, 1
ret
Function at 0x4b80d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xdc
lea esi, [eax + 0x14]
mov ebx, edx
lea ebp, [eax + 0x54]
mov edi, dword [esi + 0x3c]
xor ecx, ecx
mov esi, esi
lea edi, [edi]
mov edx, dword [ebp + ecx*4]
mov dword [esp + ecx*4 + 0x10], edx
xor eax, eax
mov al, byte [ecx + ebx]
mov dword [esp + ecx*4 + 0x50], eax
xor edx, eax
xor eax, edi
mov dword [esp + ecx*4 + 0x90], edx
mov eax, dword [eax*4 + str._.C]
xor eax, dword [esi + ecx*4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, 0xf
mov edi, eax
jle 0x4b80f0
xor eax, eax
xor ecx, ecx
lea esi, [esi]
lea edi, [edi]
xor edx, edx
lea esi, [esi]
lea edi, [edi]
mov edi, dword [eax*4 + str._.C]
xor edi, dword [esp + edx*4 + 0x10]
mov esi, dword [edi*4 + str._.C]
xor esi, dword [esp + edx*4 + 0x14]
mov ebx, dword [esi*4 + str._.C]
xor ebx, dword [esp + edx*4 + 0x18]
mov eax, dword [ebx*4 + str._.C]
xor eax, dword [esp + edx*4 + 0x1c]
mov dword [esp + edx*4 + 0x10], edi
mov edi, dword [eax*4 + str._.C]
xor edi, dword [esp + edx*4 + 0x20]
mov dword [esp + edx*4 + 0x14], esi
mov esi, dword [edi*4 + str._.C]
xor esi, dword [esp + edx*4 + 0x24]
mov dword [esp + edx*4 + 0x18], ebx
mov ebx, dword [esi*4 + str._.C]
xor ebx, dword [esp + edx*4 + 0x28]
mov dword [esp + edx*4 + 0x1c], eax
mov eax, dword [ebx*4 + str._.C]
xor eax, dword [esp + edx*4 + 0x2c]
mov dword [esp + edx*4 + 0x20], edi
mov dword [esp + edx*4 + 0x24], esi
mov dword [esp + edx*4 + 0x28], ebx
mov dword [esp + edx*4 + 0x2c], eax
add edx, 8
cmp edx, 0x2f
jle 0x4b8140
add eax, ecx
inc ecx
and eax, 0xff
cmp ecx, 0x11
jle 0x4b8130
lea edx, [esp + 0x10]
cld
sub esp, 8
mov edi, ebp
mov esi, edx
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
push 0xc0
push edx
call fcn.004706f0
add esp, 0xec
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4b8730
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
push edi
push esi
push ebx
mov ecx, dword [esp + 0x1c]
push ecx
mov edx, dword [esp + 0x1c]
push edx
mov eax, dword [esp + 0x1c]
push eax
call fcn.004b8340
add esp, 0xc
test eax, eax
js 0x4b897c
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0xf0]
xor ebp, ebp
lea edi, [eax*4]
cmp ebp, edi
jge 0x4b87b6
lea ebx, [esi + edi*4]
mov ecx, esi
nop
mov edx, dword [ecx]
mov eax, dword [ebx]
mov dword [ecx], eax
mov dword [ebx], edx
mov edx, dword [ecx + 4]
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov dword [ebx + 4], edx
mov edx, dword [ecx + 8]
mov eax, dword [ebx + 8]
mov dword [ecx + 8], eax
mov dword [ebx + 8], edx
mov edx, dword [ecx + 0xc]
mov eax, dword [ebx + 0xc]
add ebp, 4
sub edi, 4
mov dword [ecx + 0xc], eax
mov dword [ebx + 0xc], edx
add ecx, 0x10
sub ebx, 0x10
cmp ebp, edi
jl 0x4b8770
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 0xf0]
mov ebx, 1
cmp eax, 1
jmp 0x4b8974
add esi, 0x10
mov ecx, dword [esi]
mov edi, ecx
shr edi, 0x10
and edi, 0xff
mov al, byte [edi*4 + str.ccccwwww]
mov ebp, ecx
shr ebp, 0x18
xor edx, edx
and eax, 0xff
mov dl, byte [ebp*4 + str.ccccwwww]
mov eax, dword [eax*4 + 0x5267f0]
movzx ebp, ch
xor eax, dword [edx*4 + 0x526bf0]
mov dl, byte [ebp*4 + str.ccccwwww]
and edx, 0xff
xor eax, dword [edx*4 + 0x5263f0]
and ecx, 0xff
xor edx, edx
mov dl, byte [ecx*4 + str.ccccwwww]
mov ecx, dword [esi + 4]
mov ebp, ecx
shr ebp, 0x10
xor eax, dword [edx*4 + 0x525ff0]
and ebp, 0xff
mov dword [esi], eax
mov edi, ecx
mov al, byte [ebp*4 + str.ccccwwww]
shr edi, 0x18
xor edx, edx
and eax, 0xff
mov dl, byte [edi*4 + str.ccccwwww]
mov eax, dword [eax*4 + 0x5267f0]
movzx edi, ch
xor eax, dword [edx*4 + 0x526bf0]
mov dl, byte [edi*4 + str.ccccwwww]
and edx, 0xff
xor eax, dword [edx*4 + 0x5263f0]
and ecx, 0xff
xor edx, edx
mov dl, byte [ecx*4 + str.ccccwwww]
mov ecx, dword [esi + 8]
mov edi, ecx
shr edi, 0x10
xor eax, dword [edx*4 + 0x525ff0]
and edi, 0xff
mov dword [esi + 4], eax
mov ebp, ecx
mov al, byte [edi*4 + str.ccccwwww]
shr ebp, 0x18
xor edx, edx
and eax, 0xff
mov dl, byte [ebp*4 + str.ccccwwww]
mov eax, dword [eax*4 + 0x5267f0]
movzx ebp, ch
xor eax, dword [edx*4 + 0x526bf0]
mov dl, byte [ebp*4 + str.ccccwwww]
and edx, 0xff
xor eax, dword [edx*4 + 0x5263f0]
and ecx, 0xff
xor edx, edx
mov dl, byte [ecx*4 + str.ccccwwww]
mov ecx, dword [esi + 0xc]
mov ebp, ecx
xor eax, dword [edx*4 + 0x525ff0]
shr ebp, 0x10
and ebp, 0xff
mov dword [esi + 8], eax
mov edi, ecx
mov al, byte [ebp*4 + str.ccccwwww]
shr edi, 0x18
xor edx, edx
and eax, 0xff
mov dl, byte [edi*4 + str.ccccwwww]
mov ebp, dword [eax*4 + 0x5267f0]
movzx edi, ch
xor ebp, dword [edx*4 + 0x526bf0]
mov dl, byte [edi*4 + str.ccccwwww]
and edx, 0xff
xor ebp, dword [edx*4 + 0x5263f0]
and ecx, 0xff
xor edx, edx
mov dl, byte [ecx*4 + str.ccccwwww]
xor ebp, dword [edx*4 + 0x525ff0]
mov dword [esi + 0xc], ebp
inc ebx
mov edi, dword [esp + 0x1c]
cmp dword [edi + 0xf0], ebx
jg 0x4b87d0
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4b9b80
Capabilities:
Encrypt data using aes
Reference aes constants
Resolve function by parsing pe exports

Disassembly:
cmp dword [esp + 0x10], 1
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
je 0x4b9bb0
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
jmp fcn.004b8f60
jmp fcn.004b8990
Function at 0x4ba190
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
push ebx
push edx
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp ebx, 0x80
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
mov byte [esi], 0
jle 0x4ba1b5
mov ebx, pe_nt_image_headers32
test ebp, ebp
jle 0x4ba290
cmp ebp, 0x400
jg 0x4ba290
xor edx, edx
jmp 0x4ba1d4
mov al, byte [edx + ecx]
mov byte [edx + esi], al
inc edx
cmp edx, ebx
jl 0x4ba1cd
xor eax, eax
mov al, byte [esi + ebx - 1]
xor ecx, ecx
mov edx, ebx
jmp 0x4ba1fc
add al, byte [ecx + esi]
and eax, 0xff
mov al, byte [eax + 0x500d60]
and eax, 0xff
mov byte [edx + esi], al
inc ecx
inc edx
cmp edx, 0x7f
jle 0x4ba1e4
lea edi, [ebp + 7]
neg ebp
mov dword [esp], pe_nt_image_headers32
sar edi, 3
and ebp, 7
sub dword [esp], edi
mov ecx, ebp
mov edx, 0xff
sar edx, cl
xor eax, eax
mov ecx, dword [esp]
mov al, byte [ecx + esi]
and eax, edx
xor ebx, ebx
mov bl, byte [eax + 0x500d60]
mov byte [ecx + esi], bl
mov ecx, dword [esp]
jmp 0x4ba256
lea ebp, [esi + ecx]
xor eax, eax
mov al, byte [ebp + edi]
xor eax, ebx
xor ebx, ebx
mov bl, byte [eax + 0x500d60]
mov byte [ebp], bl
dec ecx
cmp ecx, 0xffffffff
jne 0x4ba240
lea ecx, [esi + 0xfc]
mov ebx, 0x7f
mov esi, esi
lea edi, [edi]
xor eax, eax
mov al, byte [ebx + esi]
xor edx, edx
mov dl, byte [esi + ebx - 1]
shl eax, 8
or eax, edx
mov dword [ecx], eax
sub ecx, 4
sub ebx, 2
jns 0x4ba270
pop eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, 0x400
jmp 0x4ba1c9
Function at 0x4bb3b0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, dword [esp + 0x14]
xor eax, eax
mov al, byte [ebx]
mov ecx, dword [esp + 0x18]
shl eax, 8
mov dword [ecx], eax
xor edx, edx
mov dl, byte [ebx + 1]
or eax, edx
mov dword [ecx], eax
xor eax, eax
mov al, byte [ebx + 2]
shl eax, 8
mov dword [ecx + 4], eax
xor edx, edx
mov dl, byte [ebx + 3]
or eax, edx
mov dword [ecx + 4], eax
xor eax, eax
mov al, byte [ebx + 4]
shl eax, 8
mov dword [ecx + 8], eax
xor edx, edx
mov dl, byte [ebx + 5]
or eax, edx
mov dword [ecx + 8], eax
xor eax, eax
mov al, byte [ebx + 6]
shl eax, 8
mov dword [ecx + 0xc], eax
xor edx, edx
mov dl, byte [ebx + 7]
or eax, edx
mov dword [ecx + 0xc], eax
xor eax, eax
mov al, byte [ebx + 8]
shl eax, 8
mov dword [ecx + 0x10], eax
xor edx, edx
mov dl, byte [ebx + 9]
or eax, edx
mov dword [ecx + 0x10], eax
xor eax, eax
mov al, byte [ebx + 0xa]
shl eax, 8
mov dword [ecx + 0x14], eax
xor edx, edx
mov dl, byte [ebx + 0xb]
or eax, edx
mov dword [ecx + 0x14], eax
xor eax, eax
mov al, byte [ebx + 0xc]
shl eax, 8
mov dword [ecx + 0x18], eax
xor edx, edx
mov dl, byte [ebx + 0xd]
or eax, edx
mov dword [ecx + 0x18], eax
xor eax, eax
mov al, byte [ebx + 0xe]
shl eax, 8
mov dword [ecx + 0x1c], eax
xor edx, edx
mov dl, byte [ebx + 0xf]
or eax, edx
mov dword [ecx + 0x1c], eax
mov ebx, ecx
lea esi, [ecx + 0x20]
xor ebp, ebp
nop
lea esi, [esi]
mov edx, dword [ebx + 8]
mov edi, dword [ebx + 4]
mov ecx, edx
mov eax, edi
shr ecx, 7
shl eax, 9
or eax, ecx
and eax, 0xffff
mov dword [esi], eax
mov eax, dword [ebx + 0xc]
mov ecx, eax
shr ecx, 7
shl edx, 9
or edx, ecx
and edx, 0xffff
mov dword [esi + 4], edx
mov edx, dword [ebx + 0x10]
mov ecx, edx
shr ecx, 7
shl eax, 9
or eax, ecx
and eax, 0xffff
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x14]
mov ecx, eax
shr ecx, 7
shl edx, 9
or edx, ecx
and edx, 0xffff
mov dword [esi + 0xc], edx
mov edx, dword [ebx + 0x18]
mov ecx, edx
shr ecx, 7
shl eax, 9
or eax, ecx
and eax, 0xffff
mov dword [esi + 0x10], eax
mov ecx, dword [ebx + 0x1c]
mov eax, ecx
shl edx, 9
shr eax, 7
or edx, eax
and edx, 0xffff
mov dword [esi + 0x14], edx
cmp ebp, 4
mov edx, dword [ebx]
jg 0x4bb52a
mov eax, edx
shr eax, 7
shr edi, 7
shl ecx, 9
shl edx, 9
or ecx, eax
or edx, edi
movzx eax, cx
movzx edi, dx
inc ebp
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edi
add ebx, 0x20
add esi, 0x20
cmp ebp, 5
jle 0x4bb470
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4cf3b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ecx, dword [esp + 0x80]
lea eax, [ecx - 1]
xor ebp, ebp
cmp eax, 0x28
mov edx, dword [esp + 0x7c]
mov dword [esp + 0xc], 0
jle 0x4cf520
mov esi, eax
sub esi, edx
js 0x4cf558
mov eax, dword [esp + 0x78]
sub eax, esi
lea edi, [eax + 0x14]
push eax
push 0x7a
push str..crypto_rsa_rsa_oaep.c
lea ebx, [ecx - 0x15]
push ebx
call fcn.00458d40
add esp, 0x10
test eax, eax
mov ebp, eax
je 0x4cf594
sub esp, 0x10
call fcn.0047a3a0
mov dword [esp], eax
push ebx
push edi
push 0x14
lea edx, [esp + 0x4c]
push edx
call fcn.004cf250
add esp, 0x20
cmp esi, 0x13
mov edx, esi
jg 0x4cf43d
mov ecx, dword [esp + 0x78]
mov al, byte [ecx]
xor byte [esp + edx + 0x30], al
inc edx
inc ecx
cmp edx, 0x13
jle 0x4cf430
sub esp, 0x10
call fcn.0047a3a0
mov dword [esp], eax
push 0x14
lea ecx, [esp + 0x44]
push ecx
push ebx
push ebp
call fcn.004cf250
add esp, 0x20
xor edx, edx
jmp 0x4cf467
mov al, byte [edx + edi]
xor byte [edx + ebp], al
inc edx
cmp edx, ebx
jl 0x4cf460
sub esp, 8
push 0
push eax
call fcn.0047a3a0
mov dword [esp], eax
push 0
lea edi, [esp + 0x24]
push edi
mov edx, dword [esp + 0xa0]
push edx
mov eax, dword [esp + 0xa0]
push eax
call fcn.00479270
mov esi, ebp
mov ecx, 0x14
cld
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb cl
add esp, 0x20
cmp dl, cl
jne 0x4cf520
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x4cf520
mov edx, 0x14
cmp edx, ebx
jge 0x4cf567
jmp 0x4cf4d0
mov al, byte [edx + ebp]
test al, al
jne 0x4cf4df
inc edx
cmp edx, ebx
jl 0x4cf4d0
mov al, byte [edx + ebp]
dec al
jne 0x4cf520
cmp edx, ebx
lea eax, [edx + 1]
jge 0x4cf520
sub ebx, eax
cmp dword [esp + 0x74], ebx
jl 0x4cf56f
push ecx
push ebx
add eax, ebp
push eax
mov esi, dword [esp + 0x7c]
push esi
call sub.msvcrt.dll_memcpy
add esp, 0x10
sub esp, 0xc
push ebp
call fcn.00459050
mov eax, ebx
add esp, 0x10
jmp 0x4cf550
sub esp, 0xc
push 0xa8
push str..crypto_rsa_rsa_oaep.c
push 0x79
push 0x7a
push 4
call fcn.0045de50
add esp, 0x20
test ebp, ebp
je 0x4cf54b
sub esp, 0xc
push ebp
call fcn.00459050
add esp, 0x10
mov eax, 0xffffffff
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
xor esi, esi
mov dword [esp + 0xc], 1
jmp 0x4cf3e2
mov al, byte [ebp + 0x14]
jmp 0x4cf4df
sub esp, 0xc
push 0x9b
push str..crypto_rsa_rsa_oaep.c
push 0x6d
push 0x7a
push 4
call fcn.0045de50
mov ebx, 0xffffffff
add esp, 0x20
jmp 0x4cf504
sub esp, 0xc
push 0x7d
push str..crypto_rsa_rsa_oaep.c
push 0x41
push 0x7a
push 4
call fcn.0045de50
mov eax, 0xffffffff
add esp, 0x20
jmp 0x4cf550
Function at 0x4cf5c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov edx, dword [esp + 0x54]
lea eax, [edx - 0x2a]
cmp eax, dword [esp + 0x5c]
lea esi, [edx - 1]
jl 0x4cf73c
cmp esi, 0x28
jg 0x4cf604
sub esp, 0xc
push 0x33
push str..crypto_rsa_rsa_oaep.c
push 0x78
push 0x79
push 4
call fcn.0045de50
xor edx, edx
add esp, 0x20
add esp, 0x3c
pop ebx
pop esi
pop edi
mov eax, edx
pop ebp
ret
push eax
push 0x37
push str..crypto_rsa_rsa_oaep.c
sub edx, 0x15
mov dword [esp + 0x14], edx
push edx
call fcn.00458d40
mov dword [esp + 0x1c], eax
add esp, 0x10
test eax, eax
je 0x4cf74d
mov edx, dword [esp + 0x50]
sub esp, 8
mov byte [edx], 0
push 0
push eax
mov edi, edx
mov ebp, edx
call fcn.0047a3a0
mov dword [esp], eax
add ebp, 0x15
push 0
push ebp
mov ebx, dword [esp + 0x7c]
push ebx
mov ecx, dword [esp + 0x7c]
push ecx
mov ebx, esi
call fcn.00479270
sub ebx, dword [esp + 0x7c]
lea eax, [ebx - 0x29]
mov edx, dword [esp + 0x70]
add esp, 0x1c
push eax
add edx, 0x29
push 0
push edx
call sub.msvcrt.dll_memset
mov byte [ebp + ebx - 0x15], 1
lea ebx, [esi + ebp]
sub ebx, dword [esp + 0x6c]
add esp, 0xc
mov ecx, dword [esp + 0x60]
push ecx
mov edx, dword [esp + 0x60]
push edx
sub ebx, 0x14
push ebx
call sub.msvcrt.dll_memcpy
pop ecx
pop ebx
push 0x14
inc edi
push edi
call fcn.00465680
add esp, 0x10
xor edx, edx
test eax, eax
jle 0x4cf5fa
sub esp, 0x10
call fcn.0047a3a0
mov dword [esp], eax
push 0x14
push edi
mov ecx, dword [esp + 0x20]
push ecx
mov eax, dword [esp + 0x28]
push eax
call fcn.004cf250
add esp, 0x20
xor edx, edx
sub esi, 0x14
cmp dword [esp + 8], 0
jle 0x4cf6ef
mov esi, dword [esp + 8]
lea esi, [esi]
mov eax, dword [esp + 0xc]
mov bl, byte [edx + eax]
xor byte [edx + ebp], bl
inc edx
cmp esi, edx
jg 0x4cf6e0
lea ebx, [esp + 0x10]
sub esp, 0x10
call fcn.0047a3a0
mov dword [esp], eax
push esi
push ebp
push 0x14
push ebx
call fcn.004cf250
add esp, 0x20
xor edx, edx
lea esi, [esi]
mov cl, byte [esp + edx + 0x10]
xor byte [edx + edi], cl
inc edx
cmp edx, 0x13
jle 0x4cf710
sub esp, 0xc
mov esi, dword [esp + 0x18]
push esi
call fcn.00459050
add esp, 0x10
add esp, 0x3c
pop ebx
pop esi
mov edx, 1
pop edi
mov eax, edx
pop ebp
ret
sub esp, 0xc
push 0x2d
push str..crypto_rsa_rsa_oaep.c
push 0x6e
jmp 0x4cf5ec
sub esp, 0xc
push 0x3a
push str..crypto_rsa_rsa_oaep.c
push 0x41
jmp 0x4cf5ec
Function at 0x4d7540
Capabilities:
Check for software breakpoints

Disassembly:
push esi
push ebx
push eax
mov ebx, dword [esp + 0x20]
xor esi, esi
cmp ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
jne 0x4d7590
mov dl, byte [ecx]
lea eax, [edx - 0x6a]
cmp al, 1
ja 0x4d7590
inc ecx
cmp dl, 0x6b
je 0x4d75c0
sub ebx, 2
cmp byte [ebx + ecx], 0xcc
jne 0x4d7600
push eax
push ebx
push ecx
mov esi, dword [esp + 0x1c]
push esi
call sub.msvcrt.dll_memcpy
add esp, 0x10
mov eax, ebx
pop ebx
pop ebx
pop esi
ret
sub esp, 0xc
push 0x72
push str..crypto_rsa_rsa_x931.c
push 0x89
push pe_nt_image_headers32
push 4
call fcn.0045de50
add esp, 0x20
pop ebx
pop ebx
mov eax, 0xffffffff
pop esi
ret
lea edx, [ebx - 3]
cmp esi, edx
jge 0x4d75e0
mov esi, esi
lea edi, [edi]
mov al, byte [ecx]
inc ecx
cmp al, 0xba
je 0x4d75e0
cmp al, 0xbb
jne 0x4d7614
inc esi
cmp esi, edx
jl 0x4d75d0
mov ebx, edx
sub ebx, esi
test esi, esi
jne 0x4d7565
sub esp, 0xc
push 0x8a
push str..crypto_rsa_rsa_x931.c
push 0x8a
jmp 0x4d759f
sub esp, 0xc
push 0x93
push str..crypto_rsa_rsa_x931.c
push 0x8b
jmp 0x4d759f
sub esp, 0xc
push 0x81
jmp 0x4d75f4