joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4771f0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.00476cf0
add esp, 4
test eax, eax
js 0x4773dc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0xf0]
xor ebx, ebx
shl edi, 2
test edi, edi
jle 0x477264
lea esi, [eax + 8]
add eax, 8
lea esi, [esi + edi*4]
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 0x477224
mov ebx, dword [ebp + 8]
mov edi, 1
cmp dword [ebx + 0xf0], edi
jle 0x4773d7
lea esi, [ebx + 2]
nop dword [eax + eax]
mov edx, dword [esi + 0xe]
lea esi, [esi + 0x10]
mov eax, edx
inc edi
shr eax, 0x18
movzx ecx, byte [eax*4 + 0x54d570]
movzx eax, byte [esi - 1]
mov ecx, dword [ecx*4 + 0x54c870]
movzx eax, byte [eax*4 + 0x54d570]
xor ecx, dword [eax*4 + 0x54d170]
movzx eax, byte [esi]
movzx eax, byte [eax*4 + 0x54d570]
xor ecx, dword [eax*4 + 0x54cd70]
movzx eax, dl
mov edx, dword [esi + 2]
movzx eax, byte [eax*4 + 0x54d570]
xor ecx, dword [eax*4 + 0x54d970]
mov eax, edx
shr eax, 0x18
mov dword [esi - 2], ecx
movzx ecx, byte [eax*4 + 0x54d570]
movzx eax, byte [esi + 3]
mov ecx, dword [ecx*4 + 0x54c870]
movzx eax, byte [eax*4 + 0x54d570]
xor ecx, dword [eax*4 + 0x54d170]
movzx eax, byte [esi + 4]
movzx eax, byte [eax*4 + 0x54d570]
xor ecx, dword [eax*4 + 0x54cd70]
movzx eax, dl
mov edx, dword [esi + 6]
movzx eax, byte [eax*4 + 0x54d570]
xor ecx, dword [eax*4 + 0x54d970]
mov eax, edx
shr eax, 0x18
mov dword [esi + 2], ecx
movzx ecx, byte [eax*4 + 0x54d570]
movzx eax, byte [esi + 7]
mov ecx, dword [ecx*4 + 0x54c870]
movzx eax, byte [eax*4 + 0x54d570]
xor ecx, dword [eax*4 + 0x54d170]
movzx eax, byte [esi + 8]
movzx eax, byte [eax*4 + 0x54d570]
xor ecx, dword [eax*4 + 0x54cd70]
movzx eax, dl
mov edx, dword [esi + 0xa]
movzx eax, byte [eax*4 + 0x54d570]
xor ecx, dword [eax*4 + 0x54d970]
mov eax, edx
shr eax, 0x18
mov dword [esi + 6], ecx
movzx ecx, byte [eax*4 + 0x54d570]
movzx eax, byte [esi + 0xb]
mov ecx, dword [ecx*4 + 0x54c870]
movzx eax, byte [eax*4 + 0x54d570]
xor ecx, dword [eax*4 + 0x54d170]
movzx eax, byte [esi + 0xc]
movzx eax, byte [eax*4 + 0x54d570]
xor ecx, dword [eax*4 + 0x54cd70]
movzx eax, dl
movzx eax, byte [eax*4 + 0x54d570]
xor ecx, dword [eax*4 + 0x54d970]
mov dword [esi + 0xa], ecx
cmp edi, dword [ebx + 0xf0]
jl 0x477280
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x47acf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x57b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x200
lea eax, [ebp - 0x204]
mov esi, edx
push 0
push eax
mov ebx, ecx
call fcn.004a64e0
add esp, 0xc
mov dword [ebp - 0x208], 0
lea eax, [ebp - 0x208]
push eax
push 0x20019
push 0
push str.SoftWareSogouInput
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x47ad5d
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 1
push eax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x20c], 0x200
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push esi
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x208]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x47ad4b
lea ecx, [ebp - 0x204]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47adb0
sub ecx, edx
lea esi, [ebx + 8]
sar ecx, 1
push edi
mov dword [ebx + 4], ecx
lea edi, [ecx + 1]
mov ecx, esi
push edi
call fcn.00462700
cmp byte [esi + 0x114], 0
je 0x47addf
add esi, 4
jmp 0x47ade1
mov esi, dword [esi]
lea eax, [edi + edi]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [esi + 4]
push eax
call fcn.004a5f60
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.004a35cb
mov esp, ebp
pop ebp
ret
Function at 0x47bec0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push str.SoftWareSogouInput
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x47bf43
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
push 0
push str.CheckCrash
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47bf3a
cmp dword [ebp - 8], eax
je 0x47bf3a
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 4
push 0
push str.CheckCrashRes
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x47c3c0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x47d360
mov dword [0x58632c], eax
call fcn.004a9354
push 0x47d360
call fcn.004a53b7
add esp, 8
xor eax, eax
mov word [0x586120], ax
push 0x103
push 0x586120
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push 0x586120
call fcn.004a550b
add esp, 8
test eax, eax
je 0x47bf9b
xor ecx, ecx
mov word [eax], cx
add eax, 2
push eax
push 0x586330
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x104
push 0x585f18
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x585f18
push 0x104
push 0x585d10
call fcn.004b3332
push 0x585d10
push 0x104
push 0x585900
call fcn.004b3332
push 0x585f18
push 0x104
push 0x585b08
call fcn.004b3332
add esp, 0x20
mov ecx, 0x585d10
call fcn.0047be10
mov ecx, 0x585900
call fcn.0047be10
push 0x2e
push 0x585f18
call fcn.004a550b
add esp, 0xc
test eax, eax
je 0x47c037
push 0x560594
add eax, 2
push 4
push eax
call fcn.004b3332
add esp, 0xc
jmp 0x47c062
push 0x5570a0
push 0x104
push 0x585f18
call fcn.004b2db6
push 0x560594
push 0x104
push 0x585f18
call fcn.004b2db6
add esp, 0x18
push 0x2e
push 0x585b08
call fcn.004a550b
add esp, 8
test eax, eax
je 0x47c08a
push 0x56058c
add eax, 2
push 4
push eax
call fcn.004b3332
add esp, 0xc
jmp 0x47c0b5
push 0x5570a0
push 0x104
push 0x585b08
call fcn.004b2db6
push 0x56058c
push 0x104
push 0x585b08
call fcn.004b2db6
add esp, 0x18
push 0x2e
push 0x585d10
call fcn.004a550b
add esp, 8
test eax, eax
je 0x47c0dd
push 0x560594
add eax, 2
push 4
push eax
call fcn.004b3332
add esp, 0xc
jmp 0x47c108
push 0x5570a0
push 0x104
push 0x585d10
call fcn.004b2db6
push 0x560594
push 0x104
push 0x585d10
call fcn.004b2db6
add esp, 0x18
push 0x2e
push 0x585900
call fcn.004a550b
add esp, 8
test eax, eax
je 0x47c141
push 0x56058c
add eax, 2
push 4
push eax
call fcn.004b3332
add esp, 0xc
mov dword [0x5858e8], 0
mov eax, 0x586560
mov esp, ebp
pop ebp
ret
push 0x5570a0
push 0x104
push 0x585900
call fcn.004b2db6
push 0x56058c
push 0x104
push 0x585900
call fcn.004b2db6
add esp, 0x18
mov dword [0x5858e8], 0
mov eax, 0x586560
mov esp, ebp
pop ebp
ret
Function at 0x47d430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x57c0ec]
cmp dword [eax*4 + 0x5858f4], 0
je 0x47d49c
cmp dword [0x5858e4], 0
je 0x47d49c
push esi
push str.extra:_n
call fcn.0047ce60
mov edx, dword [0x5858e4]
add esp, 4
mov eax, edx
mov dword [ebp - 4], 0
lea esi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47d470
sub eax, esi
lea ecx, [ebp - 4]
push 0
sar eax, 1
push ecx
add eax, eax
push eax
mov eax, dword [0x57c0ec]
push edx
push dword [eax*4 + 0x5858f4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47d960
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0xcc
je 0x47d98a
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x198]
cmp byte [eax + 8], 0
je 0x47da12
lea ebx, [esi + 0x78]
nop dword [eax]
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x47d9e6
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47d9c5
mov dword [ecx + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x60]
push esi
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [esi + 0x19c]
mov edi, dword [ebx]
push 0
push ebx
mov eax, dword [eax + 4]
push 0
push esi
call eax
mov eax, dword [ebx]
add esp, 0x10
cmp eax, edi
je 0x47da28
cmp eax, dword [esi + 0x60]
jb 0x47d9a7
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
add esp, 8
mov eax, dword [esi + 0x198]
cmp byte [eax + 8], 0
jne 0x47d9a0
xor eax, eax
cmp byte [esi + 0x41], al
pop edi
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov al, 1
pop esi
pop ebx
ret
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x4824e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, ecx
push esi
mov dword [esp + 0x1c], ebp
cmp dword [ebp + 0x4c], 1
mov ebx, dword [ebp + 0x1c0]
mov dword [esp + 0x20], ebx
jne 0x482507
mov esi, 0x1fe
mov byte [ebx + 0x1c], 1
jmp 0x48250d
xor esi, esi
mov byte [ebx + 0x1c], 0
push dword [ebp + 0x64]
mov ecx, dword [ebp + 4]
lea eax, [esi + 0x100]
push eax
push 1
push ebp
mov eax, dword [ecx + 8]
mov dword [esp + 0x20], esi
call eax
xor ecx, ecx
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
add esp, 0x10
mov dword [esp + 0x14], ecx
cmp dword [ebp + 0x64], ecx
jle 0x482620
push edi
nop
mov edi, dword [ebx + ecx*4 + 0x20]
cdq
idiv edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
test esi, esi
je 0x48255d
mov eax, dword [ebx + 0x18]
add dword [eax + ecx*4], 0xff
mov eax, dword [ebx + 0x18]
xor ebx, ebx
mov ebp, dword [eax + ecx*4]
lea eax, [edi + 0xfe]
lea ecx, [edi*2 - 2]
cdq
idiv ecx
xor esi, esi
mov edx, eax
nop dword [eax]
cmp esi, edx
jle 0x4825b6
mov ecx, dword [esp + 0x10]
lea edi, [edi*2 - 2]
imul eax, ebx, 0x1fe
add ecx, 0xfe
add ecx, eax
nop dword [eax]
add ecx, 0x1fe
inc ebx
mov eax, ecx
cdq
idiv edi
mov edx, eax
cmp esi, edx
jg 0x4825a0
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [esi + ebp], cl
inc esi
cmp esi, 0xff
jle 0x482580
mov esi, dword [esp + 0x14]
test esi, esi
je 0x482601
mov ecx, 1
lea edx, [ebp - 1]
nop
movzx eax, byte [ebp]
lea edx, [edx - 1]
mov byte [edx + 1], al
movzx eax, byte [ebp + 0xff]
mov byte [ecx + ebp + 0xff], al
inc ecx
cmp ecx, 0xff
jle 0x4825e0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [eax + 0x64]
mov eax, dword [esp + 0x1c]
jl 0x482540
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x4971d0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x57b070]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
mov esi, dword [ebp + 8]
mov eax, edx
mov dword [esp + 0x14], eax
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ecx
test eax, eax
je 0x49736a
test esi, esi
je 0x49736a
lea eax, [esi + esi]
mov dword [esp + 0x1c], 0
push eax
call fcn.004a3bb6
add esp, 4
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 0
mov edx, esi
push ecx
push ecx
mov ecx, dword [esp + 0x20]
push eax
call fcn.0049c640
mov ecx, eax
add esp, 0xc
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
test eax, eax
je 0x497312
cmp ecx, 0xffffffff
je 0x497312
xor esi, esi
call fcn.0049ce00
mov dword [esp + 0x24], eax
test eax, eax
je 0x49730c
push dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov ecx, eax
call fcn.0049d070
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x497300
mov eax, dword [esp + 0x14]
test al, 0xf
je 0x4972a1
shr eax, 4
inc eax
shl eax, 4
jmp 0x4972a4
add eax, 0x10
push eax
mov dword [esp + 0x1c], eax
call fcn.004a3bb6
mov esi, dword [esp + 0x1c]
push esi
push 0
push eax
mov dword [esp + 0x20], eax
call fcn.004a64e0
push dword [esp + 0x24]
push dword [esp + 0x34]
push dword [esp + 0x28]
call fcn.004a5f60
add esp, 0x1c
lea eax, [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
push eax
push esi
push 0
push 1
push 0
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [esp + 0x14]
push dword [esp + 0x1c]
mov dword [esp + 0x14], eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 0x20]
jmp 0x497314
xor esi, esi
push 1
push eax
call fcn.004a3815
push dword [esp + 0x18]
mov edx, esi
lea ecx, [esp + 0x3c]
call fcn.0049cc60
push 1
push esi
call fcn.004a3815
movups xmm0, xmmword [esp + 0x44]
mov dword [edi + 0x10], 0
add esp, 0x14
mov dword [edi + 0x14], 0
mov eax, edi
movups xmmword [edi], xmm0
movq xmm0, qword [esp + 0x40]
movq qword [edi + 0x10], xmm0
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret
push 0
mov dword [edi + 0x10], 0
mov ecx, edi
mov dword [edi + 0x14], 0xf
push 0x5147c0
mov byte [edi], 0
call fcn.0041c730
mov ecx, dword [esp + 0x5c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret
Function at 0x497be0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc6e1
mov eax, dword fs:[0]
push eax
sub esp, 0x5a4
mov eax, dword [0x57b070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x258]
mov ebx, dword [ebp + 0xc]
push 0
push 0
push 0
push 0
push 0
push 0x561074
call fcn.00462ac0
lea eax, [ebp - 0x258]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x134]
mov ecx, ebx
push eax
call fcn.00463100
cmp byte [ebp - 0x13c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x497c78
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x24c]
cmp eax, ecx
je 0x497c78
push eax
call fcn.004ac7ec
add esp, 4
push ecx
lea ecx, [ebp - 0x5b0]
call fcn.0046cdb0
mov dword [ebp - method.t_fileWrite.virtual_0], vtable.t_fileWrite.0
mov dword [ebp - method.t_fileWrite.1.virtual_0], vtable.t_fileWrite.1.0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x128]
cmp byte [ebp - 0x18], 0
push 0x80
cmove eax, dword [ebp - 0x12c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
lea eax, [ebp - 0x134]
push eax
push esi
lea ecx, [ebp - 0x5b0]
call fcn.0046cf10
test al, al
jne 0x497ce6
mov ecx, esi
call fcn.00464450
push 0x5603f0
jmp 0x497d99
push dword [edi + 0x10]
lea ecx, [ebp - 0x25c]
push dword [edi + 8]
push esi
call fcn.00473a70
test al, al
jne 0x497d0d
mov ecx, esi
call fcn.00464450
push 0x5610d8
jmp 0x497d99
lea ecx, [ebp - 0x5b0]
call fcn.0046d1d0
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
cmove eax, dword [ebp - 0x12c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x497d8d
shr eax, 4
not al
and al, 1
je 0x497d8d
push 0
push ebx
push esi
lea ecx, [ebp - 0x134]
call fcn.00463f20
test al, al
jne 0x497d62
mov ecx, esi
call fcn.00464450
push 0x5603f0
jmp 0x497d99
push dword [edi + 8]
call fcn.004ac7ec
add esp, 4
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov bl, 1
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
jmp 0x497da9
mov ecx, esi
call fcn.00464450
push 0x5610c0
push 0x558df8
push eax
call fcn.004623d0
add esp, 0xc
xor bl, bl
lea ecx, [ebp - 0x5b0]
mov dword [ebp - method.t_fileWrite.virtual_0], vtable.t_fileWrite.0
mov dword [ebp - method.t_byteStreamWrite.virtual_0], vtable.t_byteStreamWrite.0
call fcn.0046ce50
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x497df1
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x497df1
push eax
call fcn.004ac7ec
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret 8
Function at 0x497ff0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc12b
mov eax, dword fs:[0]
push eax
sub esp, 0x36c
mov eax, dword [0x57b070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x378], ecx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x370]
call fcn.0046cdb0
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [ebp - 0x1c], 0x5602b0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0
push esi
push edi
lea ecx, [ebp - 0x370]
mov dword [ebp - 4], 0
call fcn.0046cf10
test al, al
je 0x4980fe
lea eax, [ebp - 0x374]
mov dword [ebp - 0x374], 0
push eax
push dword [ebp - 0x36c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4980a5
call ebx
test eax, eax
je 0x4980a5
xor esi, esi
lea eax, [ebp - 0x374]
mov dword [ebp - 0x18], esi
push eax
push dword [ebp - 0x36c]
mov dword [ebp - 0x374], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4980d4
call ebx
test eax, eax
je 0x4980d4
xor esi, esi
mov ebx, dword [ebp - 0x378]
push esi
mov dword [ebx + 8], esi
call fcn.004b12a2
add esp, 4
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x1c]
push dword [ebx + 8]
push eax
push edi
call fcn.00473c30
test al, al
je 0x4980fe
mov bl, 1
jmp 0x49811a
mov ecx, edi
call fcn.00464450
push 0x558e90
push 0x558df8
push eax
call fcn.004623d0
add esp, 0xc
xor bl, bl
lea ecx, [ebp - 0x370]
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [ebp - 0x1c], vtable.t_byteStreamRead.0
call fcn.0046ce50
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret 8
Function at 0x49c9e0
Capabilities:
Encrypt or decrypt via wincrypt
Reference public rsa key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
mov dword [ebp - 4], edx
test edi, edi
je 0x49cb2b
cmp edx, 0xffffffff
je 0x49cb2b
push ebx
push esi
xor esi, esi
call fcn.0049ce00
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x49cb19
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push esi
push esi
push 0x94
push 0x550cc8
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x49cafe
push dword [ebp - 4]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push esi
push esi
push 1
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x49caf3
push dword [ebp - 0xc]
call fcn.004a3bb6
push dword [ebp - 4]
mov esi, eax
push edi
push esi
call fcn.004a5f60
add esp, 0x10
lea eax, [ebp - 4]
push dword [ebp - 0xc]
push eax
push esi
push 0
push 1
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x49cadd
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, dword [ebp - 4]
mov dword [eax], ebx
test ebx, 0xfffffffe
jbe 0x49cabf
mov edx, esi
nop dword [eax + eax]
mov al, byte [edx + ebx - 1]
lea edx, [edx - 1]
mov cl, byte [edi + esi]
mov byte [edi + esi], al
inc edi
mov eax, dword [ebp - 4]
mov byte [edx + eax], cl
mov ebx, dword [ebp - 4]
mov eax, ebx
shr eax, 1
cmp edi, eax
jb 0x49caa0
mov ebx, dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push esi
mov dword [eax], 0xfffffff5
call fcn.004a3611
add esp, 4
xor esi, esi
jmp 0x49cac2
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xfffffff4
jmp 0x49cac2
mov eax, dword [ebp + 0xc]
push 0
push ebx
mov dword [eax], 0xfffffff3
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xfffffff2
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
pop edi
mov dword [eax], 0xfffffff6
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x49cc60
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0x55555556
push esi
push edi
mov edi, edx
mov dword [ebp - 4], ecx
lea edx, [ebx*4]
imul edx
mov esi, edx
add edx, 0x10
shr esi, 0x1f
add esi, edx
lea eax, [esi + 1]
push eax
call fcn.004a3bb6
add esp, 4
mov ecx, eax
mov dword [ebp + 8], ecx
test edi, edi
je 0x49cdbd
test ecx, ecx
je 0x49cdbd
lea edx, [ebx + 2]
test edx, edx
js 0x49cdbd
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x40000000
jge 0x49cdbd
mov esi, ecx
cmp ebx, 2
jle 0x49cd51
lea ecx, [ebx - 3]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
inc edx
lea eax, [edx + edx*2]
sub ebx, eax
nop word [eax + eax]
movzx eax, byte [edi]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
movzx eax, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx ecx, byte [edi + 1]
movzx eax, byte [edi + 2]
and ecx, 0xf
shr eax, 6
movzx eax, byte [eax + ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
movzx eax, byte [edi + 2]
add edi, 3
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], al
add esi, 4
sub edx, 1
jne 0x49ccf0
mov ecx, dword [ebp + 8]
test ebx, ebx
je 0x49cdb8
movzx eax, byte [edi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
cmp ebx, 1
jle 0x49cd9d
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
movzx eax, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [ebp + 8]
mov byte [esi + 1], al
movzx eax, byte [edi + 1]
and eax, 0xf
movzx eax, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
mov byte [esi + 3], 0x3d
jmp 0x49cdb5
movzx eax, byte [edi]
and eax, 3
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
mov word [esi + 2], 0x3d3d
add esi, 4
mov byte [esi], 0
sub esi, ecx
mov ebx, dword [ebp - 4]
lea edx, [ecx + 1]
mov byte [ecx + esi], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49cdd8
mov esi, dword [ebp + 8]
sub ecx, edx
push ecx
push esi
mov ecx, ebx
call fcn.0041c730
push esi
call fcn.004a3611
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret