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

Disassembly:
sub esp, 0x80
push ebx
push ebp
mov ebp, dword [esp + 0x94]
mov ebx, eax
push esi
xor eax, eax
push edi
test ebp, ebp
je 0x464c62
mov eax, 1
mov dword [ebx], ebp
jmp 0x464c64
mov ebp, dword [ebx]
cmp dword [esp + 0x94], 0
je 0x464d52
mov esi, dword [ebp + 0x40]
cmp esi, 0x80
jle 0x464c9b
push str.j____int_sizeof_ctx__key_
push 0x54
push str....._third_partiesopenssl_0.9.8kcryptohmachmac.c
push str._s__d_:_OpenSSL_internal_error__assertion_failed:__s_n
call fcn.0045d1c0
add esp, 0x10
call fcn.005a0442
mov edi, dword [esp + 0x98]
cmp esi, edi
jge 0x464ce8
mov eax, dword [ebx + 4]
and dword [ebx + 0xc], 0xfffffffd
lea esi, [ebx + 4]
push esi
cmp eax, ebp
je 0x464cbe
mov eax, ebp
call fcn.004658d0
jmp 0x464cc3
mov eax, dword [eax + 0x10]
call eax
mov edx, dword [esp + 0x98]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x14]
add esp, 4
push edi
push edx
push esi
call eax
lea ecx, [ebx + 0x38]
lea edi, [ebx + 0x34]
push ecx
call fcn.00465950
add esp, 0x10
jmp 0x464d2f
cmp edi, 0x80
jbe 0x464d0e
push str.len_0__len__int_sizeof_ctx__key_
push 0x5e
push str....._third_partiesopenssl_0.9.8kcryptohmachmac.c
push str._s__d_:_OpenSSL_internal_error__assertion_failed:__s_n
call fcn.0045d1c0
add esp, 0x10
call fcn.005a0442
mov edx, dword [esp + 0x94]
push edi
push edx
lea eax, [ebx + 0x38]
push eax
call fcn.00597e30
mov ecx, dword [esp + 0xa4]
lea edi, [ebx + 0x34]
add esp, 0xc
mov dword [edi], ecx
mov edi, dword [edi]
cmp edi, 0x80
je 0x464d5a
mov edx, 0x80
sub edx, edi
push edx
lea eax, [edi + ebx + 0x38]
push 0
push eax
call fcn.00597130
add esp, 0xc
jmp 0x464d5a
test eax, eax
je 0x464df6
xor eax, eax
lea esp, [esp]
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x36
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x464d60
mov eax, dword [ebx + 0x14]
lea esi, [ebx + 0x14]
mov edi, 0xfffffffd
and dword [esi + 8], edi
push esi
cmp eax, ebp
je 0x464d8f
mov eax, ebp
call fcn.004658d0
jmp 0x464d94
mov edx, dword [eax + 0x10]
call edx
mov ecx, dword [ebp + 0x40]
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
add esp, 4
push ecx
lea edx, [esp + 0x14]
push edx
push esi
call eax
add esp, 0xc
xor eax, eax
lea ecx, [ecx]
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x464db0
mov eax, dword [ebx + 0x24]
and dword [ebx + 0x2c], edi
lea esi, [ebx + 0x24]
push esi
cmp eax, ebp
je 0x464dda
mov eax, ebp
call fcn.004658d0
jmp 0x464ddf
mov edx, dword [eax + 0x10]
call edx
mov ecx, dword [ebp + 0x40]
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
add esp, 4
push ecx
lea edx, [esp + 0x14]
push edx
push esi
call eax
add esp, 0xc
lea ecx, [ebx + 0x14]
push ecx
add ebx, 4
push ebx
call fcn.004659d0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
Function at 0x471080
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x38]
cmp ebx, 0x80
push edi
mov edi, eax
jg 0x471216
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov edx, dword [edi + 8]
push ebp
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x44]
push esi
push ecx
mov dword [esp + 0x28], eax
push edi
mov eax, edi
mov dword [esp + 0x28], edx
call fcn.00471a80
lea eax, [ebx + 7]
cdq
and edx, 7
add eax, edx
mov esi, eax
add esp, 8
sar esi, 3
cmp dword [esp + 0x4c], 0
je 0x471106
test esi, esi
jle 0x471152
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
lea ebp, [esp + 0x28]
sub edx, edi
sub ebp, edi
mov ecx, edi
sub ebx, edi
mov al, byte [edx + ecx]
xor al, byte [ecx]
inc ecx
sub esi, 1
mov byte [ecx + ebp - 1], al
mov byte [ebx + ecx - 1], al
jne 0x4710f1
jmp 0x47114e
xor ebp, ebp
test esi, esi
jle 0x471152
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x28]
mov ecx, eax
sub edx, eax
mov eax, dword [esp + 0x40]
mov ebx, edi
sub ebx, ecx
sub eax, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
jmp 0x471134
mov ebx, dword [esp + 0x10]
lea ecx, [esp + ebp + 0x28]
mov al, byte [edx + ecx]
mov bl, byte [ebx + ecx]
xor bl, al
mov byte [ecx], al
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, esi
mov byte [eax + ecx], bl
jl 0x471130
mov ebx, dword [esp + 0x44]
mov ecx, ebx
and ecx, 0x80000007
jns 0x471161
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, ebx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x471199
mov ecx, dword [esp + eax + 0x18]
mov edx, dword [esp + eax + 0x1c]
lea eax, [esp + eax + 0x18]
mov dword [edi], ecx
mov ecx, dword [eax + 8]
mov dword [edi + 4], edx
mov edx, dword [eax + 0xc]
pop esi
mov dword [edi + 8], ecx
pop ebp
mov dword [edi + 0xc], edx
pop edi
pop ebx
add esp, 0x28
ret
mov dl, 8
sub dl, cl
mov byte [esp + 0x44], dl
inc edi
lea esi, [esp + eax + 0x19]
mov ebp, 4
jmp 0x4711b0
movzx edx, byte [esi - 1]
mov al, byte [esi]
shl dl, cl
movzx ecx, byte [esp + 0x44]
mov bl, al
shr bl, cl
mov ecx, dword [esp + 0x10]
shl al, cl
movzx ecx, byte [esp + 0x44]
or dl, bl
mov byte [edi - 1], dl
mov dl, byte [esi + 1]
mov bl, dl
shr bl, cl
mov ecx, dword [esp + 0x10]
shl dl, cl
movzx ecx, byte [esp + 0x44]
or al, bl
mov byte [edi], al
mov al, byte [esi + 2]
mov bl, al
shr bl, cl
movzx ecx, byte [esp + 0x44]
or dl, bl
mov byte [edi + 1], dl
movzx edx, byte [esi + 3]
shr dl, cl
mov ecx, dword [esp + 0x10]
shl al, cl
add esi, 4
add edi, 4
or dl, al
sub ebp, 1
mov byte [edi - 2], dl
jne 0x4711b0
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x28
ret
Function at 0x471840
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, ebx
call fcn.00471310
test eax, eax
jl 0x471a78
mov edx, dword [ebx + 0xf0]
add edx, edx
push esi
add edx, edx
xor esi, esi
push edi
test edx, edx
jle 0x4718ad
lea ecx, [ebx + edx*4 + 8]
lea eax, [ebx + 8]
push ebp
lea esp, [esp]
mov ebp, dword [ecx - 8]
mov edi, dword [eax - 8]
mov dword [eax - 8], ebp
mov ebp, dword [ecx - 4]
mov dword [ecx - 8], edi
mov edi, dword [eax - 4]
mov dword [eax - 4], ebp
mov ebp, dword [ecx]
mov dword [ecx - 4], edi
mov edi, dword [eax]
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [eax + 4], ebp
mov dword [ecx + 4], edi
add esi, 4
sub edx, 4
add eax, 0x10
sub ecx, 0x10
cmp esi, edx
jl 0x471870
pop ebp
mov edx, 1
cmp dword [ebx + 0xf0], edx
jle 0x471a74
lea eax, [ebx + 2]
mov ecx, dword [eax + 0xe]
movzx edi, byte [eax + 0xf]
mov edi, dword [edi*4 + 0x616918]
add eax, 0x10
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x616918]
and esi, 0xff
mov esi, dword [esi*4 + 0x617518]
and edi, 0xff
xor esi, dword [edi*4 + 0x617d18]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x616918]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x618118]
movzx ecx, byte [eax]
mov ecx, dword [ecx*4 + 0x616918]
movzx edi, byte [eax + 3]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x617918]
mov ecx, dword [eax + 2]
mov dword [eax - 2], esi
mov edi, dword [edi*4 + 0x616918]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x616918]
and esi, 0xff
mov esi, dword [esi*4 + 0x617518]
and edi, 0xff
xor esi, dword [edi*4 + 0x617d18]
movzx edi, byte [eax + 4]
mov edi, dword [edi*4 + 0x616918]
and edi, 0xff
xor esi, dword [edi*4 + 0x617918]
movzx edi, byte [eax + 7]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x616918]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x618118]
mov ecx, dword [eax + 6]
mov dword [eax + 2], esi
mov edi, dword [edi*4 + 0x616918]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x616918]
and esi, 0xff
mov esi, dword [esi*4 + 0x617518]
and edi, 0xff
xor esi, dword [edi*4 + 0x617d18]
movzx edi, byte [eax + 8]
mov edi, dword [edi*4 + 0x616918]
and edi, 0xff
xor esi, dword [edi*4 + 0x617918]
movzx edi, byte [eax + 0xb]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x616918]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x618118]
mov ecx, dword [eax + 0xa]
mov dword [eax + 6], esi
mov edi, dword [edi*4 + 0x616918]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x616918]
and esi, 0xff
mov esi, dword [esi*4 + 0x617518]
and edi, 0xff
xor esi, dword [edi*4 + 0x617d18]
movzx edi, byte [eax + 0xc]
mov edi, dword [edi*4 + 0x616918]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x616918]
and edi, 0xff
xor esi, dword [edi*4 + 0x617918]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x618118]
inc edx
mov dword [eax + 0xa], esi
cmp edx, dword [ebx + 0xf0]
jl 0x4718c1
pop edi
xor eax, eax
pop esi
ret
Function at 0x47ad90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x28]
movzx edx, byte [eax + 1]
push ebx
inc eax
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x38]
mov esi, dword [ecx]
movzx ecx, byte [eax - 1]
mov dword [esp + 0x10], eax
inc eax
shl edx, 8
or ecx, edx
movzx edx, byte [eax]
inc eax
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax]
inc eax
movzx ebx, byte [eax + 1]
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax]
inc eax
inc eax
shl ebx, 8
or edx, ebx
movzx ebx, byte [eax + 1]
movzx eax, byte [eax]
shl ebx, 8
or ebx, eax
mov eax, ecx
shr eax, 8
shl ebx, 0x10
or edx, ebx
mov byte [esp + 0x15], al
mov eax, ecx
mov ebx, ecx
mov byte [esp + 0x14], cl
shr eax, 0x10
shr ecx, 0x18
mov byte [esp + 0x16], al
mov byte [esp + 0x17], cl
mov ecx, edx
mov eax, edx
mov dword [esp + 0x20], edx
mov byte [esp + 0x18], dl
shr ecx, 8
shr eax, 0x10
shr edx, 0x18
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x19], cl
mov byte [esp + 0x1a], al
mov byte [esp + 0x1b], dl
test edi, edi
je 0x47af1a
push ebp
mov ebp, dword [esp + 0x30]
nop
dec edi
test esi, esi
jne 0x47aea0
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x20]
push 1
push ecx
call fcn.00479790
mov ebx, dword [esp + 0x28]
mov eax, ebx
shr eax, 0x10
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x18
mov byte [esp + 0x22], al
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x21], dl
mov byte [esp + 0x23], cl
mov edx, eax
mov ecx, eax
mov byte [esp + 0x24], al
shr edx, 8
shr ecx, 0x10
shr eax, 0x18
add esp, 8
inc dword [esp + 0x10]
mov byte [esp + 0x18], bl
mov byte [esp + 0x1d], dl
mov byte [esp + 0x1e], cl
mov byte [esp + 0x1f], al
mov dl, byte [esp + esi + 0x18]
mov eax, dword [esp + 0x2c]
xor dl, byte [eax]
inc esi
mov byte [ebp], dl
inc eax
inc ebp
and esi, 7
mov dword [esp + 0x2c], eax
test edi, edi
jne 0x47ae40
pop ebp
cmp dword [esp + 0xc], edi
je 0x47af0d
mov eax, dword [esp + 0x34]
mov byte [eax], bl
mov eax, dword [esp + 0x10]
mov ecx, ebx
inc eax
shr ecx, 8
mov byte [eax - 1], cl
mov ecx, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x10
mov byte [eax], dl
inc eax
shr ebx, 0x18
mov byte [eax], bl
mov byte [eax + 1], cl
inc eax
inc eax
mov edx, ecx
shr edx, 8
mov byte [eax], dl
inc eax
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
shr ecx, 0x18
mov byte [eax + 1], cl
mov eax, dword [esp + 0x38]
pop edi
mov dword [eax], esi
pop esi
pop ebx
add esp, 0x18
ret
mov ecx, dword [esp + 0x38]
pop edi
mov dword [ecx], esi
pop esi
pop ebx
add esp, 0x18
ret
mov edx, dword [esp + 0x38]
pop edi
mov dword [edx], esi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x47bad0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, eax
mov eax, dword [esp + 0x40]
push edi
mov edi, dword [eax]
mov eax, dword [esp + 0x40]
movzx ecx, byte [eax]
movzx edx, byte [eax + 1]
inc eax
mov dword [esp + 0x14], eax
inc eax
inc eax
shl edx, 8
or ecx, edx
movzx edx, byte [eax - 1]
inc eax
movzx ebx, byte [eax + 1]
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax - 1]
inc eax
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax - 1]
inc eax
shl ebx, 8
or edx, ebx
movzx ebx, byte [eax + 1]
movzx eax, byte [eax]
shl ebx, 8
or ebx, eax
mov eax, ecx
shr eax, 8
mov byte [esp + 0x19], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x1a], al
shl ebx, 0x10
or edx, ebx
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x1b], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x1d], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x1e], al
mov eax, edx
shr eax, 0x18
mov ebp, esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov byte [esp + 0x18], cl
mov byte [esp + 0x1c], dl
mov byte [esp + 0x1f], al
test esi, esi
je 0x47bc6c
dec ebp
test edi, edi
jne 0x47bbeb
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
lea esi, [esp + 0x2c]
call fcn.0047a120
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ebx, eax
shr ebx, 8
mov byte [esp + 0x25], bl
mov ebx, eax
mov ecx, eax
mov byte [esp + 0x24], al
shr ebx, 0x10
shr eax, 0x18
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], al
mov eax, edx
mov ebx, eax
shr ebx, 8
mov byte [esp + 0x29], bl
mov ebx, eax
mov byte [esp + 0x28], al
shr ebx, 0x10
shr eax, 0x18
add esp, 0xc
inc dword [esp + 0x10]
mov byte [esp + 0x1e], bl
mov byte [esp + 0x1f], al
mov bl, byte [esp + edi + 0x18]
mov eax, dword [esp + 0x2c]
xor bl, byte [eax]
mov esi, dword [esp + 0x30]
inc edi
mov byte [esi], bl
inc esi
inc eax
and edi, 7
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], eax
test ebp, ebp
jne 0x47bb81
cmp dword [esp + 0x10], ebp
je 0x47bc5e
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x14]
mov byte [eax], cl
mov eax, ecx
shr eax, 8
mov byte [esi], al
inc esi
mov eax, ecx
shr eax, 0x10
mov byte [esi], al
inc esi
shr ecx, 0x18
mov byte [esi], cl
mov byte [esi + 1], dl
inc esi
inc esi
mov ecx, edx
shr ecx, 8
mov byte [esi], cl
mov ecx, dword [esp + 0x44]
inc esi
mov eax, edx
shr eax, 0x10
mov byte [esi], al
shr edx, 0x18
mov byte [esi + 1], dl
mov dword [ecx], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov edx, dword [esp + 0x44]
mov dword [edx], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x44]
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x486550
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x40
cmp dword [0x649674], 0
je 0x4865af
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x486578
mov dword [0x649674], eax
jmp 0x4865af
mov eax, dword [0x656b20]
test eax, eax
jne 0x48658b
mov eax, 0x649ce8
mov dword [0x656b20], eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4865a6
fldz
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x40]
push 8
push ecx
call eax
add esp, 0x10
cmp dword [0x649674], 0
jne 0x4865e7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x34], eax
mov eax, dword [0x656b20]
test eax, eax
jne 0x4865cc
mov eax, 0x649ce8
mov dword [0x656b20], eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4865e7
fldz
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0x3c]
push 4
push edx
call eax
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x48ae70
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, eax
cmp dword [esp + 0xc], esi
jne 0x48aef3
mov al, byte [ecx]
cmp al, 0x6a
je 0x48ae83
cmp al, 0x6b
jne 0x48aef3
lea edx, [ecx + 1]
cmp al, 0x6b
jne 0x48aec0
add esi, 0xfffffffd
xor ecx, ecx
test esi, esi
jle 0x48aea3
mov al, byte [edx]
inc edx
cmp al, 0xba
je 0x48aea3
cmp al, 0xbb
jne 0x48aea9
inc ecx
cmp ecx, esi
jl 0x48ae93
sub esi, ecx
test ecx, ecx
jne 0x48aec3
mov eax, 0x8a
push 4
lea ecx, [eax - 0xa]
call fcn.0045bab0
add esp, 4
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + edx], 0xcc
je 0x48aee0
mov eax, 0x8b
push 4
lea ecx, [eax - 0xb]
call fcn.0045bab0
add esp, 4
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esp + 8]
push esi
push edx
push eax
call fcn.00597e30
add esp, 0xc
mov eax, esi
pop esi
ret
mov eax, 0x89
push 4
lea ecx, [eax - 9]
call fcn.0045bab0
add esp, 4
or eax, 0xffffffff
pop esi
ret
Function at 0x48b390
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebp
mov ebp, dword [esp + 0x24]
dec ebp
lea eax, [ebp - 0x29]
cmp dword [esp + 0x2c], eax
jle 0x48b3bb
mov eax, 0x6e
push 4
lea ecx, [eax + 0xb]
call fcn.0045bab0
add esp, 4
xor eax, eax
pop ebp
add esp, 0x18
ret
cmp ebp, 0x29
jge 0x48b3d9
mov eax, 0x78
push 4
lea ecx, [eax + 1]
call fcn.0045bab0
add esp, 4
xor eax, eax
pop ebp
add esp, 0x18
ret
push ebx
push esi
push edi
lea esi, [ebp - 0x14]
mov edi, 0x37
mov ebx, str....._third_partiesopenssl_0.9.8kcrypto_rsa_rsa_oaep.c
mov dword [esp + 0x10], esi
call fcn.0045e7c0
mov dword [esp + 0x30], eax
test eax, eax
jne 0x48b414
push 4
lea eax, [edi + 0xa]
lea ecx, [edi + 0x42]
call fcn.0045bab0
add esp, 4
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x18
ret
mov esi, dword [esp + 0x2c]
mov byte [esi], 0
push 0
lea edi, [esi + 1]
add esi, 0x15
push esi
push 0
push 0
mov eax, 0x619bf8
call fcn.00465aa0
mov ebx, dword [esp + 0x48]
mov ecx, ebp
sub ecx, ebx
sub ecx, 0x29
push ecx
lea edx, [esi + 0x14]
push 0
push edx
call fcn.00597130
mov ecx, dword [esp + 0x50]
mov eax, esi
sub eax, ebx
add ebp, eax
push ebx
mov byte [ebp - 0x15], 1
push ecx
add ebp, 0xffffffec
push ebp
call fcn.00597e30
mov eax, dword [0x656b20]
add esp, 0x28
test eax, eax
jne 0x48b478
mov eax, 0x649ce8
mov dword [0x656b20], eax
mov eax, dword [eax + 4]
test eax, eax
je 0x48b40a
push 0x14
push edi
call eax
add esp, 8
test eax, eax
jle 0x48b40a
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x10]
push 0x619bf8
push 0x14
push edi
push edx
call fcn.0048b7c0
add esp, 0x10
test ebx, ebx
jle 0x48b4c1
mov ebp, dword [esp + 0x30]
mov eax, esi
sub ebp, esi
mov ecx, ebx
mov dl, byte [eax + ebp]
xor byte [eax], dl
inc eax
sub ecx, 1
jne 0x48b4b6
push 0x619bf8
push ebx
lea eax, [esp + 0x1c]
push esi
push eax
mov ebx, 0x14
call fcn.0048b7c0
lea ecx, [esp + 0x24]
lea esi, [esp + 0x25]
lea ebp, [esp + 0x26]
lea edx, [esp + 0x27]
sub ecx, edi
sub esi, edi
sub ebp, edi
sub edx, edi
lea ebx, [esp + 0x28]
add esp, 0x10
sub ebx, edi
mov eax, edi
mov dword [esp + 0x38], ebx
mov edi, 4
movzx ebx, byte [ecx + eax]
xor byte [eax], bl
movzx ebx, byte [esi + eax]
xor byte [eax + 1], bl
movzx ebx, byte [eax + ebp]
xor byte [eax + 2], bl
movzx ebx, byte [edx + eax]
xor byte [eax + 3], bl
mov ebx, dword [esp + 0x38]
movzx ebx, byte [ebx + eax]
xor byte [eax + 4], bl
add eax, 5
sub edi, 1
jne 0x48b503
mov eax, dword [0x656b30]
test eax, eax
je 0x48b545
mov ecx, dword [esp + 0x30]
push edi
push ecx
call eax
add esp, 8
mov edx, dword [esp + 0x30]
push edx
call dword [0x649fa0]
mov eax, dword [0x656b30]
add esp, 4
test eax, eax
je 0x48b565
push 1
push 0
call eax
add esp, 8
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
add esp, 0x18
ret
Function at 0x48b580
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
xor edi, edi
dec eax
cmp eax, 0x29
mov dword [esp + 0x14], edi
jl 0x48b76d
mov ecx, eax
sub ecx, dword [esp + 0x50]
mov dword [esp + 0x10], ecx
jns 0x48b5b3
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], edi
mov dword [esp + 0x50], eax
lea ebp, [eax - 0x14]
lea esi, [eax + ebp]
mov edi, 0x79
mov ebx, str....._third_partiesopenssl_0.9.8kcrypto_rsa_rsa_oaep.c
call fcn.0045e7c0
mov edi, eax
test edi, edi
jne 0x48b5e9
push 4
lea eax, [edi + 0x41]
lea ecx, [edi + 0x7a]
call fcn.0045bab0
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x30
ret
mov ebx, dword [esp + 0x10]
push ebx
lea esi, [edi + ebp]
push 0
push esi
call fcn.00597130
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
push eax
push ecx
lea edx, [esi + ebx]
push edx
call fcn.00597e30
push 0x619bf8
lea eax, [esi + 0x14]
push ebp
push eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x3c]
push eax
mov ebx, 0x14
call fcn.0048b7c0
mov edx, esi
lea eax, [esp + 0x40]
add esp, 0x28
xor ecx, ecx
sub edx, eax
lea eax, [esp + ecx + 0x18]
movzx ebx, byte [edx + eax]
xor byte [eax], bl
movzx ebx, byte [esi + ecx + 1]
xor byte [eax + 1], bl
movzx ebx, byte [esi + ecx + 2]
xor byte [eax + 2], bl
movzx ebx, byte [esi + ecx + 3]
xor byte [eax + 3], bl
movzx ebx, byte [esi + ecx + 4]
xor byte [eax + 4], bl
add ecx, 5
cmp ecx, 0x14
jl 0x48b636
push 0x619bf8
push 0x14
lea ecx, [esp + 0x20]
push ecx
push edi
mov ebx, ebp
call fcn.0048b7c0
add esp, 0x10
test ebp, ebp
jle 0x48b69b
mov ecx, dword [esp + 0x10]
mov eax, edi
sub ecx, edi
mov esi, ebp
lea ecx, [ecx]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
sub esi, 1
jne 0x48b690
push 0
lea eax, [esp + 0x30]
push eax
push 0
push 0
mov eax, 0x619bf8
call fcn.00465aa0
lea eax, [esp + 0x3c]
mov edx, edi
mov esi, eax
add esp, 0x10
mov ecx, 0x14
sub edx, esi
mov esi, dword [edx + eax]
cmp esi, dword [eax]
jne 0x48b76d
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x48b6c2
cmp dword [esp + 0x14], 0
jne 0x48b76d
mov eax, 0x14
cmp eax, ebp
jge 0x48b6fd
lea esp, [esp]
cmp byte [eax + edi], 0
jne 0x48b6fb
inc eax
cmp eax, ebp
jl 0x48b6f0
cmp eax, ebp
je 0x48b76d
cmp byte [eax + edi], 1
jne 0x48b76d
inc eax
sub ebp, eax
cmp dword [esp + 0x48], ebp
jge 0x48b725
mov eax, 0x6d
push 4
lea ecx, [eax + 0xd]
call fcn.0045bab0
add esp, 4
or ebp, 0xffffffff
jmp 0x48b736
mov ecx, dword [esp + 0x44]
push ebp
add eax, edi
push eax
push ecx
call fcn.00597e30
add esp, 0xc
mov eax, dword [0x656b30]
test eax, eax
je 0x48b747
push 0
push edi
call eax
add esp, 8
push edi
call dword [0x649fa0]
mov eax, dword [0x656b30]
add esp, 4
test eax, eax
je 0x48b763
push 1
push 0
call eax
add esp, 8
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, 0x79
push 4
lea ecx, [eax + 1]
call fcn.0045bab0
add esp, 4
test edi, edi
je 0x48b7b0
mov eax, dword [0x656b30]
test eax, eax
je 0x48b794
push 0
push edi
call eax
add esp, 8
push edi
call dword [0x649fa0]
mov eax, dword [0x656b30]
add esp, 4
test eax, eax
je 0x48b7b0
push 1
push 0
call eax
add esp, 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x30
ret
Function at 0x49b0b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x64786c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.004a85e0
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0049b040
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x49b11b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.0049ae30
mov eax, dword [ebp - 0x224]
jmp 0x49b1ac
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x49b181
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0049b0b0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x49b178
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.0049ae30
mov eax, dword [ebp - 0x228]
jmp 0x49b1ac
mov dword [ebp - 4], 0x100
jmp 0x49b122
lea ecx, [ebp - 0x14]
call fcn.0049af70
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.0049aeb0
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.0049ae30
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0059709c
mov esp, ebp
pop ebp
ret 4
Function at 0x49b7a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x49b7a9
xor ecx, ecx
jne 0x49b7a9
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x49b7ca
mov eax, 0xd
jmp 0x49b825
xor eax, eax
jne 0x49b7b1
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x49b7db
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8