joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10048000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x30
call fcn.10079f60
mov eax, dword [0x100ce750]
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 0x100481dd
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 0x1004816d
push dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push dword [esp + 0x24]
push dword [esp + 0x30]
push eax
call fcn.10046140
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 0x10048100
test edi, edi
mov edi, dword [esp + 0x24]
je 0x100481c4
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.1007ba40
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.1007ba40
add esp, 0x30
ret
Function at 0x10049930
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.10079f60
mov eax, dword [0x100ce750]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
push ebx
push ebp
movzx ebx, byte [eax]
lea ebp, [eax + 1]
mov edx, ebp
shl ebx, 0x18
push esi
push edi
mov edi, dword [esp + 0x50]
movzx eax, byte [edx]
movzx ecx, byte [edx + 3]
shl eax, 0x10
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 1]
shl eax, 8
or ebx, eax
mov esi, dword [edi]
movzx eax, byte [edx + 2]
or ebx, eax
mov dword [esp + 0x14], edi
movzx eax, byte [edx + 4]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x28], ebp
movzx eax, byte [edx + 6]
mov dword [esp + 0x2c], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [esp + 0x2c]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x18], ebx
mov eax, ebx
mov byte [esp + 0x2f], bl
shr eax, 0x18
or edx, ecx
mov byte [esp + 0x2c], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x32], al
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x33], dl
test eax, eax
je 0x10049af5
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x3c]
sub ecx, edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
lea esp, [esp]
dec eax
mov dword [esp + 0x44], eax
test esi, esi
jne 0x10049a85
push dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
call fcn.10048f60
mov ebx, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0x1c]
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x2c], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
inc ebp
mov byte [esp + 0x2f], bl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
mov al, byte [esp + esi + 0x2c]
inc esi
xor al, byte [edi]
and esi, 7
mov byte [ecx + edi], al
inc edi
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x10049a20
test ebp, ebp
mov ebp, dword [esp + 0x28]
je 0x10049adc
mov ecx, dword [esp + 0x24]
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp], al
mov eax, ebx
shr eax, 8
mov byte [ebp + 1], al
mov eax, edx
shr eax, 0x18
mov byte [ebp + 2], bl
mov byte [ebp + 3], al
mov eax, edx
shr eax, 0x10
mov byte [ebp + 4], al
mov eax, edx
shr eax, 8
mov byte [ebp + 5], al
mov byte [ebp + 6], dl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1007ba40
add esp, 0x28
ret
mov ecx, dword [esp + 0x34]
mov dword [edi], esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1007ba40
add esp, 0x28
ret
Function at 0x10049e50
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, 0x80
mov byte [ebx], 0
cmp eax, edi
cmovg eax, edi
test ebp, ebp
jg 0x10049e78
mov ebp, 0x400
jmp 0x10049e82
mov ecx, 0x400
cmp ebp, ecx
cmovg ebp, ecx
test eax, eax
jle 0x10049ea2
sub dword [esp + 0x1c], ebx
mov edx, ebx
mov ebx, dword [esp + 0x1c]
mov esi, eax
mov cl, byte [ebx + edx]
lea edx, [edx + 1]
mov byte [edx - 1], cl
dec esi
jne 0x10049e92
mov ebx, dword [esp + 0x14]
movzx edx, byte [ebx + eax - 1]
cmp eax, 0x80
jge 0x10049ed0
mov esi, ebx
sub esi, eax
movzx ecx, byte [esi + eax]
add ecx, edx
and ecx, 0xff
movzx edx, byte [ecx + 0x100cc0f8]
mov byte [eax + ebx], dl
inc eax
cmp eax, 0x80
jl 0x10049eb2
lea eax, [ebp + 7]
mov edx, 0xff
sar eax, 3
neg ebp
sub edi, eax
mov dword [esp + 0x14], eax
movzx eax, byte [edi + ebx]
lea esi, [edi + ebx]
and ebp, 7
mov ecx, ebp
sar edx, cl
and edx, eax
movzx ecx, byte [edx + 0x100cc0f8]
mov byte [esi], cl
test edi, edi
je 0x10049f1a
mov edx, dword [esp + 0x14]
movzx eax, byte [esi + edx - 1]
lea esi, [esi - 1]
xor eax, ecx
movzx ecx, byte [eax + 0x100cc0f8]
mov byte [esi], cl
dec edi
jne 0x10049f04
lea esi, [ebx + 0xfc]
mov edi, 0x40
lea edx, [ebx + 0x7e]
jmp 0x10049f30
movzx ecx, byte [edx + 1]
lea esi, [esi - 4]
movzx eax, byte [edx]
lea edx, [edx - 2]
shl ecx, 8
or ecx, eax
and ecx, 0xffff
mov dword [esi + 4], ecx
dec edi
jne 0x10049f30
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1004a9f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.10079f60
mov eax, dword [0x100ce750]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
push ebx
push ebp
movzx ebx, byte [eax]
lea ebp, [eax + 1]
mov edx, ebp
mov dword [esp + 0x20], ebp
push esi
push edi
mov edi, dword [esp + 0x50]
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
mov esi, dword [edi]
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebx, eax
mov dword [esp + 0x14], edi
movzx eax, byte [edx + 4]
shl eax, 8
or ecx, eax
mov dword [esp + 0x18], ebx
movzx eax, byte [edx + 5]
mov dword [esp + 0x2c], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [esp + 0x2c]
shl ecx, 8
or ecx, eax
mov byte [esp + 0x2c], bl
mov eax, ebx
shl ecx, 0x10
shr eax, 8
or edx, ecx
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x2e], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x2f], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x32], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x33], al
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x30], dl
test eax, eax
je 0x1004abb1
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x3c]
sub ecx, edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
lea esp, [esp]
dec eax
mov dword [esp + 0x44], eax
test esi, esi
jne 0x1004ab45
push dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
call fcn.1004a680
mov ebx, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0x1c]
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2d], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x2e], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x2f], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x32], al
mov eax, edx
shr eax, 0x18
inc ebp
mov byte [esp + 0x2c], bl
mov byte [esp + 0x30], dl
mov byte [esp + 0x33], al
mov al, byte [esp + esi + 0x2c]
inc esi
xor al, byte [edi]
and esi, 7
mov byte [ecx + edi], al
inc edi
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x1004aae0
test ebp, ebp
mov ebp, dword [esp + 0x28]
je 0x1004ab98
mov eax, dword [esp + 0x24]
mov byte [eax], bl
mov eax, ebx
shr eax, 8
mov byte [ebp], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp + 1], al
mov eax, edx
shr ebx, 0x18
mov byte [ebp + 2], bl
shr eax, 8
mov byte [ebp + 3], dl
mov byte [ebp + 4], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [ebp + 5], al
mov byte [ebp + 6], dl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1007ba40
add esp, 0x28
ret
mov ecx, dword [esp + 0x34]
mov dword [edi], esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1007ba40
add esp, 0x28
ret
Function at 0x1004b740
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
push ebp
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.1004b940
add esp, 0xc
test eax, eax
js 0x1004b930
push ebx
push esi
push edi
mov edi, dword [ebp + 0xf0]
xor ebx, ebx
shl edi, 2
test edi, edi
jle 0x1004b7c0
lea esi, [ebp + 8]
lea esi, [esi + edi*4]
lea eax, [ebp + 8]
lea esp, [esp]
mov edx, dword [eax - 8]
lea eax, [eax + 0x10]
mov ecx, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [eax - 0x18], ecx
add ebx, 4
mov ecx, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [eax - 0x14]
mov dword [eax - 0x14], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [eax - 0x10]
mov dword [eax - 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [eax - 0xc]
mov dword [eax - 0xc], ecx
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x1004b780
mov edi, 1
cmp dword [ebp + 0xf0], edi
jle 0x1004b92b
lea esi, [ebp + 2]
mov edx, dword [esi + 0xe]
lea esi, [esi + 0x10]
mov eax, edx
inc edi
shr eax, 0x18
movzx ecx, byte [eax*4 + 0x100aee58]
movzx eax, byte [esi - 1]
mov ecx, dword [ecx*4 + 0x100afa58]
movzx eax, byte [eax*4 + 0x100aee58]
xor ecx, dword [eax*4 + 0x100b0258]
movzx eax, dl
mov edx, dword [esi + 2]
movzx eax, byte [eax*4 + 0x100aee58]
xor ecx, dword [eax*4 + 0x100b0658]
movzx eax, byte [esi]
movzx eax, byte [eax*4 + 0x100aee58]
xor ecx, dword [eax*4 + 0x100afe58]
mov eax, edx
shr eax, 0x18
mov dword [esi - 2], ecx
movzx ecx, byte [eax*4 + 0x100aee58]
movzx eax, byte [esi + 3]
mov ecx, dword [ecx*4 + 0x100afa58]
movzx eax, byte [eax*4 + 0x100aee58]
xor ecx, dword [eax*4 + 0x100b0258]
movzx eax, byte [esi + 4]
movzx eax, byte [eax*4 + 0x100aee58]
xor ecx, dword [eax*4 + 0x100afe58]
movzx eax, dl
mov edx, dword [esi + 6]
movzx eax, byte [eax*4 + 0x100aee58]
xor ecx, dword [eax*4 + 0x100b0658]
mov eax, edx
shr eax, 0x18
mov dword [esi + 2], ecx
movzx ecx, byte [eax*4 + 0x100aee58]
movzx eax, byte [esi + 7]
mov ecx, dword [ecx*4 + 0x100afa58]
movzx eax, byte [eax*4 + 0x100aee58]
xor ecx, dword [eax*4 + 0x100b0258]
movzx eax, byte [esi + 8]
movzx eax, byte [eax*4 + 0x100aee58]
xor ecx, dword [eax*4 + 0x100afe58]
movzx eax, dl
mov edx, dword [esi + 0xa]
movzx eax, byte [eax*4 + 0x100aee58]
xor ecx, dword [eax*4 + 0x100b0658]
mov eax, edx
shr eax, 0x18
mov dword [esi + 6], ecx
movzx ecx, byte [eax*4 + 0x100aee58]
movzx eax, byte [esi + 0xb]
mov ecx, dword [ecx*4 + 0x100afa58]
movzx eax, byte [eax*4 + 0x100aee58]
xor ecx, dword [eax*4 + 0x100b0258]
movzx eax, byte [esi + 0xc]
movzx eax, byte [eax*4 + 0x100aee58]
xor ecx, dword [eax*4 + 0x100afe58]
movzx eax, dl
movzx eax, byte [eax*4 + 0x100aee58]
xor ecx, dword [eax*4 + 0x100b0658]
mov dword [esi + 0xa], ecx
cmp edi, dword [ebp + 0xf0]
jl 0x1004b7d4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x1005cba0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x68
call fcn.10079f60
mov eax, dword [0x100ce750]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x6c]
push ebx
push ebp
mov ebp, dword [esp + 0x84]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x7c]
push esi
mov dword [esp + 0x1c], eax
xor esi, esi
lea eax, [esp + 0x20]
mov dword [esp + 0x18], ebp
push edi
push eax
call fcn.100319d0
mov edi, dword [esp + 0x84]
add esp, 4
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x18], eax
test edi, edi
jle 0x1005ccb0
jmp 0x1005cc00
mov eax, ebx
mov byte [esp + 0x13], bl
sar eax, 0x18
mov byte [esp + 0x10], al
mov eax, ebx
sar eax, 0x10
mov byte [esp + 0x11], al
mov eax, ebx
sar eax, 8
push 0
mov byte [esp + 0x16], al
lea eax, [esp + 0x28]
push ebp
push eax
call fcn.10031790
push dword [esp + 0x94]
lea eax, [esp + 0x34]
push dword [esp + 0x30]
push eax
call fcn.10031840
push 4
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.10031840
mov ebp, dword [esp + 0x3c]
add esp, 0x24
add ebp, esi
push 0
cmp ebp, edi
jg 0x1005cc79
mov eax, dword [esp + 0x18]
add eax, esi
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.10031720
add esp, 0xc
mov esi, ebp
jmp 0x1005cca3
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.10031720
mov eax, edi
sub eax, esi
push eax
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x28]
add eax, esi
push eax
call fcn.10078a50
add esp, 0x18
mov esi, edi
mov ebp, dword [esp + 0x1c]
inc ebx
cmp esi, edi
jl 0x1005cc00
lea eax, [esp + 0x24]
push eax
call fcn.10031850
mov ecx, dword [esp + 0x78]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1007ba40
add esp, 0x68
ret
Function at 0x1005d5c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x1005d689
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x1005d5e1
cmp al, 0x6b
jne 0x1005d689
inc ecx
cmp al, 0x6b
jne 0x1005d64b
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x1005d602
nop
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x1005d602
cmp dl, 0xbb
jne 0x1005d62b
inc eax
cmp eax, esi
jl 0x1005d5f0
sub esi, eax
test eax, eax
jne 0x1005d64e
push 0x83
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.100265e0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push 0x7b
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.100265e0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x1005d677
push 0x8b
push str..crypto_rsa_rsa_x931.c
push 0x8b
push 0x80
push 4
call fcn.100265e0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push esi
push ecx
push dword [esp + 0x10]
call fcn.10078a50
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x70
push str..crypto_rsa_rsa_x931.c
push 0x89
push 0x80
push 4
call fcn.100265e0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
Function at 0x10069be0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov eax, dword [ebp + 4]
cmp eax, dword [ecx + 4]
jge 0x10069bf7
mov ebx, ecx
jmp 0x10069bfb
mov ebx, ebp
mov ebp, ecx
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 4]
cmp eax, dword [esi + 8]
jg 0x10069c0b
mov eax, esi
jmp 0x10069c15
push eax
push esi
call fcn.1002d660
add esp, 8
test eax, eax
jne 0x10069c1d
pop esi
pop ebp
pop ebx
ret
push edi
xor edi, edi
cmp dword [ebp + 4], edi
jle 0x10069c3b
mov eax, dword [ebx]
mov ecx, dword [ebp]
mov edx, dword [eax + edi*4]
mov eax, dword [esi]
xor edx, dword [ecx + edi*4]
mov dword [eax + edi*4], edx
inc edi
cmp edi, dword [ebp + 4]
jl 0x10069c25
cmp edi, dword [ebx + 4]
jge 0x10069c50
mov eax, dword [ebx]
mov ecx, dword [esi]
mov eax, dword [eax + edi*4]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, dword [ebx + 4]
jl 0x10069c40
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
pop edi
test ecx, ecx
jle 0x10069c74
mov eax, dword [esi]
sub eax, 4
lea ecx, [eax + ecx*4]
mov eax, dword [ecx]
lea ecx, [ecx - 4]
test eax, eax
jne 0x10069c74
dec dword [esi + 4]
cmp dword [esi + 4], eax
jg 0x10069c63
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x1006eca5
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
test edi, edi
je 0x1006ecc2
mov dword [edi], esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x1006eccb
mov dword [ebx], esi
push esi
push 0x80
push 3
push esi
push esi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x1006ecf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1006ed58
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x1006ed0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1006ed4c
push edi
call fcn.1007869f
mov dword [ebp - 0xc], eax
pop ecx
test eax, eax
jne 0x1006ed20
push 8
pop esi
jmp 0x1006ed4c
mov ebx, dword [ebp - 0x10]
add eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push esi
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006ed49
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
sub edi, dword [ebp - 8]
jne 0x1006ed23
mov ebx, dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 0xc]
test esi, esi
jne 0x1006ed6e
test edi, edi
je 0x1006ed65
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
test ebx, ebx
je 0x1006ed6e
mov eax, dword [ebp - 4]
mov dword [ebx], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1006ed77
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 1
push esi
push esi
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1006edaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1006ede4
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x1006eddc
mov eax, esi
add eax, dword [ebp + 0xc]
lea ecx, [ebp - 4]
push esi
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1006eddc
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
sub edi, dword [ebp - 4]
jne 0x1006edb9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10070428
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x10070435
xor eax, eax
pop ebp
ret
push esi
push 0x18
call fcn.1007869f
mov esi, eax
pop ecx
test esi, esi
je 0x1007049e
push 0x18
push 0
push esi
call fcn.10078750
add esp, 0xc
call fcn.100702c0
mov dword [esi + 8], eax
push esi
test eax, eax
jne 0x10070465
call fcn.10078667
jmp 0x1007049d
mov eax, dword [ebp + 0xc]
push 4
push esi
push dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
push 0
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
push 0
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x100704a2
push dword [esi + 8]
call fcn.10070300
push esi
call fcn.10078667
pop ecx
pop ecx
xor eax, eax
jmp 0x100704a4
mov eax, esi
pop esi
pop ebp
ret

Function at 0x100704a7
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x100704b3
pop ebp
ret
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
inc eax
pop ebp
ret

Function at 0x100704d8
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x100704e4
pop ebp
ret
push 0xffffffffffffffff
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
neg eax
sbb eax, eax
neg eax
pop ebp
ret
Function at 0x100721ed
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x24]
mov esi, dword [edi + 0x34]
mov ecx, dword [edi + 0x64]
sub esi, ecx
sub esi, dword [edi + 0x6c]
mov dword [ebp - 8], esi
jne 0x1007221b
test ecx, ecx
jne 0x10072225
cmp dword [edi + 0x6c], ecx
jne 0x10072225
mov esi, ebx
jmp 0x100722a2
cmp esi, 0xffffffff
jne 0x10072225
push 0xfffffffffffffffe
pop esi
jmp 0x100722a2
mov eax, dword [edi + 0x24]
add eax, 0xfffffefa
add eax, ebx
cmp ecx, eax
jb 0x100722a2
mov ecx, dword [edi + 0x30]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.10078a50
mov ecx, dword [edi + 0x44]
add esp, 0xc
mov eax, dword [edi + 0x3c]
mov esi, ecx
sub dword [edi + 0x68], ebx
sub dword [edi + 0x64], ebx
sub dword [edi + 0x54], ebx
mov dword [ebp - 4], ecx
lea edi, [eax + ecx*2]
lea edi, [edi - 2]
xor ecx, ecx
movzx edx, word [edi]
mov eax, edx
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
dec esi
jne 0x1007225b
mov edi, dword [ebp + 8]
mov esi, ebx
mov eax, dword [edi + 0x38]
lea edi, [eax + ebx*2]
lea edi, [edi - 2]
xor ecx, ecx
movzx edx, word [edi]
mov eax, edx
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
dec esi
jne 0x10072280
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
add esi, ebx
mov ecx, dword [edi]
cmp dword [ecx + 4], 0
je 0x100722fb
mov eax, dword [edi + 0x6c]
add eax, dword [edi + 0x64]
add eax, dword [edi + 0x30]
push esi
push eax
push ecx
call fcn.10072a32
add dword [edi + 0x6c], eax
add esp, 0xc
cmp dword [edi + 0x6c], 3
jb 0x100722e6
mov edx, dword [edi + 0x64]
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x50]
movzx esi, byte [edx + eax]
mov dword [edi + 0x40], esi
movzx eax, byte [edx + eax + 1]
shl esi, cl
xor esi, eax
and esi, dword [edi + 0x4c]
mov dword [edi + 0x40], esi
cmp dword [edi + 0x6c], 0x106
jae 0x100722fb
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x100721fb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret