joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d780
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523828
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x616718]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x10]
call fcn.0041bdb0
mov esi, dword [ebp - 0x10]
mov ebx, 1
mov ecx, ebx
mov dword [ebp - 4], 0
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x200
or eax, ecx
jge 0x41d7e0
push 0x200
lea ecx, [ebp - 0x10]
call fcn.0041d640
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], 0x200
jl 0x41d9ae
push 0x200
xor eax, eax
mov dword [esi - 0xc], 0x200
push esi
push eax
mov word [esi + 0x400], ax
call dword [0x53d1a0]
mov eax, dword [esi - 8]
mov ecx, ebx
sub ecx, dword [esi - 4]
sub eax, 0x200
or eax, ecx
jge 0x41d82b
push 0x200
lea ecx, [ebp - 0x10]
call fcn.0041d640
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], 0x200
jl 0x41d9ae
xor eax, eax
mov dword [esi - 0xc], 0x200
push esi
mov word [esi + 0x400], ax
call dword [0x61a7d8]
push dword [esi - 8]
push esi
call dword [0x53e6a8]
add esp, 8
test eax, eax
js 0x41d9ae
cmp eax, dword [esi - 8]
jg 0x41d9ae
mov dword [esi - 0xc], eax
xor ecx, ecx
mov ebx, str.__register_pdfopenflags
mov word [esi + eax*2], cx
mov edi, dword [esi - 0xc]
sub ebx, esi
push 0x17
push str.__register_pdfopenflags
sar ebx, 1
mov dword [ebp - 0x18], edi
call dword [0x53e6a8]
mov ecx, 0x7fffffff
mov dword [ebp - 0x1c], eax
sub ecx, eax
add esp, 8
cmp ecx, edi
jl 0x41d9ae
add edi, eax
js 0x41d9ae
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x41d8cc
push edi
lea ecx, [ebp - 0x10]
call fcn.0041d640
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
lea edx, [esi + ebx*2]
cmp ebx, eax
jbe 0x41d8db
mov edx, str.__register_pdfopenflags
mov ecx, dword [ebp - 0x1c]
lea eax, [esi + eax*2]
add ecx, ecx
je 0x41d917
test eax, eax
je 0x41d905
push ecx
test edx, edx
je 0x41d8fa
push edx
push eax
call fcn.00520dbc
add esp, 0xc
jmp 0x41d917
push 0
push eax
call fcn.00520dc2
add esp, 0xc
call dword [0x53e5f8]
mov dword [eax], 0x16
call dword [0x53e600]
cmp edi, dword [esi - 8]
jg 0x41d9ae
xor eax, eax
mov dword [esi - 0xc], edi
push eax
mov word [esi + edi*2], ax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [0x61a6a4]
test eax, eax
jne 0x41d97d
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push str.05B9D3CC_88B5_41B0_9638_6CE89883FC11
push dword [ebp - 0x14]
call dword [0x61a694]
push dword [ebp - 0x14]
call dword [0x61a6a8]
test eax, eax
jne 0x41d9b8
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41d99c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0040b5b0
push 0x80004005
call fcn.0040b5b0
int3
Function at 0x485650
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52f001
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x616718]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
push edi
call fcn.004414d0
lea eax, [edi + 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebx + 0x18]
call fcn.004414d0
lea eax, [edi + 0x30]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebx + 0x30]
call fcn.004414d0
lea eax, [edi + 0x48]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebx + 0x48]
call fcn.004414d0
lea esi, [ebx + 0x60]
mov byte [ebp - 4], 3
mov dword [ebp + 8], esi
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.0051f6e8
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
push dword [ebp + 8]
lea eax, [edi + 0x60]
mov byte [ebp - 4], 4
push eax
mov ecx, esi
call fcn.00485060
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x485720
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52f049
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x616718]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 7
mov word [edi + 0x18], ax
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], 7
mov word [edi + 0x30], ax
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], 7
mov word [edi + 0x48], ax
lea esi, [edi + 0x60]
mov byte [ebp - 4], 3
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0051f6e8
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4aeb90
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ebx, [esi - 0x7ff80000]
cmp esi, 0x7ff80000
ja 0x4aebac
mov ebx, 0x10000
lea edi, [esi + 0x7ff80000]
cmp esi, 0x80000000
jb 0x4aebbf
mov edi, 0xfff80000
mov eax, dword [0x61bb3c]
mov ecx, dword [0x61bb38]
test eax, eax
jne 0x4aebd9
test ecx, ecx
je 0x4aebec
mov eax, ecx
mov dword [0x61bb3c], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x4aebec
cmp edx, ebx
jb 0x4aebec
cmp edx, edi
jbe 0x4aecf0
mov eax, ecx
mov dword [0x61bb3c], eax
test ecx, ecx
je 0x4aec1a
test eax, eax
je 0x4aec0e
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4aec0e
cmp ecx, ebx
jb 0x4aec0e
cmp ecx, edi
jbe 0x4aecf0
mov eax, dword [eax + 4]
mov dword [0x61bb3c], eax
test eax, eax
jne 0x4aebfb
and esi, 0xffff0000
cmp esi, 0x40000000
jbe 0x4aec42
lea eax, [esi - 0x40000000]
push eax
push ebx
call fcn.004aea00
add esp, 8
test eax, eax
jne 0x4aecac
cmp esi, 0x40000000
jae 0x4aec58
lea eax, [esi + 0x40000000]
push edi
push eax
call fcn.004aeac0
add esp, 8
test eax, eax
jne 0x4aecac
cmp esi, 0x40000000
jbe 0x4aec7a
lea eax, [esi - 0x40000000]
push esi
push eax
call fcn.004aeac0
add esp, 8
test eax, eax
jne 0x4aecac
cmp esi, 0x40000000
jae 0x4aec90
lea eax, [esi + 0x40000000]
push eax
push esi
call fcn.004aea00
add esp, 8
test eax, eax
jne 0x4aecac
push esi
push ebx
call fcn.004aea00
add esp, 8
test eax, eax
jne 0x4aecac
push edi
push esi
call fcn.004aeac0
add esp, 8
test eax, eax
je 0x4aed18
mov dword [eax], 0x52727464
xor edx, edx
mov dword [eax + 8], 0
mov esi, 0x38b
mov ecx, dword [0x61bb38]
mov dword [eax + 4], ecx
lea ecx, [eax + 0xffa8]
mov dword [0x61bb3c], eax
mov dword [0x61bb38], eax
lea esp, [esp]
mov dword [ecx + 0x40], edx
mov edx, ecx
sub ecx, 0x48
sub esi, 1
jne 0x4aece0
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, ebx
jb 0x4aed18
cmp esi, edi
ja 0x4aed18
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [eax + 8], ecx
call fcn.00520dc2
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4aed80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5f46b8
push 0x52004a
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x616718]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [0x53d084]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x4aee25
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x4aee25
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp dword [ebp + 0xc], eax
jb 0x4aee25
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x4aee25
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bf880
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ecx]
cmp esi, 0x10
je 0x4bf897
cmp esi, 0x20
jne 0x4bfa6b
shr esi, 2
mov edx, 4
cmp esi, edx
mov dword [ebp - 0xc], esi
mov eax, esi
cmovb eax, edx
push edi
mov edi, dword [ebp + 8]
lea eax, [eax*4 + 0x1c]
mov dword [ebp - 8], eax
test edi, edi
je 0x4bfa6a
mov dword [edi], 0x10
push ebx
mov dword [edi + 4], eax
xor ebx, ebx
add edi, 8
test esi, esi
je 0x4bf902
lea edx, [ecx + 5]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [edi + ebx*4], ecx
inc ebx
cmp ebx, esi
jl 0x4bf8d5
mov eax, dword [ebp - 8]
mov ebx, dword [edi + ebx*4 - 4]
mov ecx, esi
cmp esi, eax
jge 0x4bf9ea
mov dword [ebp + 8], 0
mov dword [ebp - 4], edi
lea ebx, [ebx]
mov eax, ecx
cdq
idiv esi
test edx, edx
jne 0x4bf980
mov eax, dword [ebp + 8]
cdq
idiv esi
mov dl, byte [eax + 0x56a190]
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx esi, byte [eax + 0x567f90]
movzx eax, dl
xor esi, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl esi, 8
movzx eax, byte [eax + 0x567f90]
xor esi, eax
movzx eax, bl
shl esi, 8
shr ebx, 0x18
movzx eax, byte [eax + 0x567f90]
xor esi, eax
movzx ebx, byte [ebx + 0x567f90]
shl esi, 8
xor ebx, esi
mov esi, dword [ebp - 0xc]
jmp 0x4bf9cd
cmp esi, 6
jbe 0x4bf9cd
cmp edx, 4
jne 0x4bf9cd
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x567f90]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x567f90]
shl eax, 8
xor edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x567f90]
xor edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + 0x567f90]
xor ebx, edx
mov eax, dword [ebp - 4]
inc dword [ebp + 8]
xor ebx, dword [eax]
add eax, 4
mov dword [edi + ecx*4], ebx
inc ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp ecx, eax
jl 0x4bf920
xor esi, esi
sub ecx, 1
js 0x4bfa69
lea eax, [edi + eax*4]
mov dword [ebp + 8], eax
mov ebx, dword [edi + ecx*4]
cmp esi, 4
jl 0x4bfa59
cmp ecx, 4
jb 0x4bfa59
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x567f90]
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x569590]
movzx eax, byte [eax + 0x567f90]
xor edx, dword [eax*4 + 0x569990]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x567f90]
xor edx, dword [eax*4 + 0x569190]
movzx eax, bl
movzx eax, byte [eax + 0x567f90]
xor edx, dword [eax*4 + 0x569d90]
mov eax, dword [ebp + 8]
jmp 0x4bfa5b
mov edx, ebx
mov dword [eax], edx
inc esi
add eax, 4
sub ecx, 1
mov dword [ebp + 8], eax
jns 0x4bf9f7
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4bfe00
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 8
push ebx
push esi
push edi
test ecx, ecx
je 0x4bffd8
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4bffd8
test bl, 3
jne 0x4bffd8
lea eax, [ebx - 1]
xor edx, edx
add eax, ecx
mov dword [ebp - 8], edx
cmp byte [eax], 0x3d
jne 0x4bfe4a
inc edx
dec eax
mov dword [ebp - 8], edx
cmp edx, 2
ja 0x4bffd8
cmp byte [eax], 0x3d
je 0x4bfe37
shr ebx, 2
xor edi, edi
mov dword [ebp + 8], edi
mov dword [ebp + 0x10], ebx
test ebx, ebx
je 0x4bffcd
lea esi, [ecx + 2]
mov dword [ebp - 4], esi
mov al, byte [esi - 2]
lea ecx, [eax - 0x41]
cmp cl, 0x19
ja 0x4bfe72
sub al, 0x41
jmp 0x4bfea1
lea ecx, [eax - 0x61]
cmp cl, 0x19
ja 0x4bfe7e
sub al, 0x47
jmp 0x4bfea1
lea ecx, [eax - 0x30]
cmp cl, 9
ja 0x4bfe8a
add al, 4
jmp 0x4bfea1
cmp al, 0x2b
jne 0x4bfe92
mov al, 0x3e
jmp 0x4bfea1
cmp al, 0x2f
jne 0x4bfe9a
mov al, 0x3f
jmp 0x4bfea1
cmp al, 0x3d
sete al
sub al, 1
mov dl, byte [esi - 1]
lea ecx, [edx - 0x41]
cmp cl, 0x19
ja 0x4bfeb1
sub dl, 0x41
jmp 0x4bfee5
lea ecx, [edx - 0x61]
cmp cl, 0x19
ja 0x4bfebe
sub dl, 0x47
jmp 0x4bfee5
lea ecx, [edx - 0x30]
cmp cl, 9
ja 0x4bfecb
add dl, 4
jmp 0x4bfee5
cmp dl, 0x2b
jne 0x4bfed4
mov dl, 0x3e
jmp 0x4bfee5
cmp dl, 0x2f
jne 0x4bfedd
mov dl, 0x3f
jmp 0x4bfee5
cmp dl, 0x3d
sete dl
dec dl
mov bl, byte [esi]
lea ecx, [ebx - 0x41]
cmp cl, 0x19
ja 0x4bfef4
sub bl, 0x41
jmp 0x4bff28
lea ecx, [ebx - 0x61]
cmp cl, 0x19
ja 0x4bff01
sub bl, 0x47
jmp 0x4bff28
lea ecx, [ebx - 0x30]
cmp cl, 9
ja 0x4bff0e
add bl, 4
jmp 0x4bff28
cmp bl, 0x2b
jne 0x4bff17
mov bl, 0x3e
jmp 0x4bff28
cmp bl, 0x2f
jne 0x4bff20
mov bl, 0x3f
jmp 0x4bff28
cmp bl, 0x3d
sete bl
dec bl
mov ah, byte [esi + 1]
mov cl, ah
sub cl, 0x41
cmp cl, 0x19
ja 0x4bff3a
sub ah, 0x41
jmp 0x4bff72
mov cl, ah
sub cl, 0x61
cmp cl, 0x19
ja 0x4bff49
sub ah, 0x47
jmp 0x4bff72
mov cl, ah
sub cl, 0x30
cmp cl, 9
ja 0x4bff58
add ah, 4
jmp 0x4bff72
cmp ah, 0x2b
jne 0x4bff61
mov ah, 0x3e
jmp 0x4bff72
cmp ah, 0x2f
jne 0x4bff6a
mov ah, 0x3f
jmp 0x4bff72
cmp ah, 0x3d
sete ah
dec ah
cmp al, 0xff
je 0x4bffd8
cmp dl, 0xff
je 0x4bffd8
cmp bl, 0xff
je 0x4bffd8
cmp ah, 0xff
je 0x4bffd8
mov esi, dword [ebp + 0xc]
mov cl, dl
shl al, 2
shr cl, 4
or cl, al
shl dl, 4
mov byte [edi + esi], cl
mov al, bl
mov ecx, esi
shr al, 2
mov esi, dword [ebp - 4]
or al, dl
shl bl, 6
add esi, 4
or bl, ah
mov dword [ebp - 4], esi
mov byte [edi + ecx + 1], al
mov eax, dword [ebp + 8]
inc eax
mov byte [edi + ecx + 2], bl
add edi, 3
mov dword [ebp + 8], eax
cmp eax, dword [ebp + 0x10]
jb 0x4bfe63
mov edx, dword [ebp - 8]
sub edi, edx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c02d0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
push edi
je 0x4c0443
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4c0443
mov eax, 0xaaaaaaab
mov ecx, edi
mul edi
push ebx
mov ebx, edx
shr ebx, 1
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebx + ebx*2]
sub ecx, eax
mov eax, 0
mov dword [ebp - 4], ecx
setne al
add eax, ebx
shl eax, 2
mov dword [ebp - 8], eax
test esi, esi
je 0x4c043c
xor eax, eax
test ebx, ebx
je 0x4c03a0
mov edi, dword [ebp + 8]
add edi, 2
lea ebx, [ebx]
movzx ecx, byte [edi - 2]
lea edi, [edi + 3]
shr ecx, 2
movzx ecx, byte [ecx + 0x56a1d8]
mov byte [eax + esi], cl
movzx edx, byte [edi - 5]
movzx ecx, byte [edi - 4]
and edx, 3
shr ecx, 4
shl edx, 4
or edx, ecx
movzx ecx, byte [edx + 0x56a1d8]
mov byte [eax + esi + 1], cl
movzx edx, byte [edi - 4]
movzx ecx, byte [edi - 3]
and edx, 0xf
shr ecx, 6
shl edx, 2
or edx, ecx
movzx ecx, byte [edx + 0x56a1d8]
mov byte [eax + esi + 2], cl
movzx ecx, byte [edi - 3]
and ecx, 0x3f
movzx ecx, byte [ecx + 0x56a1d8]
mov byte [eax + esi + 3], cl
add eax, 4
sub ebx, 1
jne 0x4c0330
mov ecx, dword [ebp - 4]
mov edi, dword [ebp + 0x10]
sub ecx, 1
je 0x4c0407
sub ecx, 1
jne 0x4c0439
mov ebx, dword [ebp + 8]
movzx ecx, byte [ebx + edi - 2]
shr ecx, 2
movzx ecx, byte [ecx + 0x56a1d8]
mov byte [eax + esi], cl
movzx edx, byte [ebx + edi - 2]
movzx ecx, byte [ebx + edi - 1]
and edx, 3
shr ecx, 4
shl edx, 4
or edx, ecx
movzx ecx, byte [edx + 0x56a1d8]
mov byte [eax + esi + 1], cl
lea ecx, [eax + 2]
movzx eax, byte [ebx + edi - 1]
and eax, 0xf
mov al, byte [eax*4 + 0x56a1d8]
mov byte [ecx + esi], al
mov eax, dword [ebp - 8]
mov byte [ecx + esi + 1], 0x3d
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + edi - 1]
shr ecx, 2
movzx ecx, byte [ecx + 0x56a1d8]
mov byte [eax + esi], cl
movzx ecx, byte [edx + edi - 1]
and ecx, 3
shl ecx, 4
movzx ecx, byte [ecx + 0x56a1d8]
mov byte [eax + esi + 1], cl
mov word [eax + esi + 2], 0x3d3d
mov eax, dword [ebp - 8]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4cf360
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
xor dl, dl
mov ecx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 8], eax
push ebp
push esi
push edi
test bl, 3
jne 0x4cf491
test al, 3
jne 0x4cf491
mov edi, ecx
mov dword [esp + 0x10], 0
shr edi, 2
xor esi, esi
test edi, edi
je 0x4cf44c
cmp edi, 8
jb 0x4cf415
mov ebp, dword [esp + 0x20]
mov edx, edi
mov dword [esp + 0x14], ebx
and edx, 0xfffffff8
add eax, 0x10
xorps xmm3, xmm3
sub dword [esp + 0x14], ebp
xorps xmm2, xmm2
mov ebp, dword [esp + 0x14]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ebx + esi*4]
add esi, 8
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [eax + ebp - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp esi, edx
jb 0x4cf3c4
mov eax, dword [esp + 0x20]
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd dword [esp + 0x10], xmm2
cmp esi, edi
jae 0x4cf450
mov ebp, ebx
lea edx, [eax + esi*4]
sub ebp, eax
mov dword [esp + 0x14], ebp
mov ebp, edi
mov ebx, dword [esp + 0x14]
sub ebp, esi
mov esi, edi
mov edi, dword [esp + 0x10]
mov eax, dword [edx + ebx]
lea edx, [edx + 4]
xor eax, dword [edx - 4]
or edi, eax
sub ebp, 1
jne 0x4cf432
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], edi
jmp 0x4cf454
xor edi, edi
jmp 0x4cf454
mov edi, dword [esp + 0x10]
shl esi, 2
sub ecx, esi
jne 0x4cf468
test edi, edi
pop edi
pop esi
pop ebp
sete al
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
add ebx, esi
mov ebp, dword [esp + 0x20]
mov edx, eax
shr eax, 0x10
add ebp, esi
shr edx, 0x18
or dl, al
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x10]
shr eax, 8
or dl, al
mov eax, ebp
or dl, byte [esp + 0x10]
xor edi, edi
test ecx, ecx
je 0x4cf554
cmp ecx, 0x20
jb 0x4cf535
mov esi, ecx
add eax, 0x10
and esi, 0xffffffe0
xorps xmm3, xmm3
mov dword [esp + 0x1c], esi
xorps xmm2, xmm2
mov esi, ebx
sub esi, dword [esp + 0x14]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
nop dword [eax + eax]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [edi + ebx]
add edi, 0x20
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [eax + ebp - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp edi, esi
jb 0x4cf4d0
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd eax, xmm2
or dl, al
mov ebp, dword [esp + 0x14]
cmp edi, ecx
jae 0x4cf554
sub ebx, ebp
lea esi, [edi + ebp]
sub ecx, edi
mov al, byte [ebx + esi]
lea esi, [esi + 1]
xor al, byte [esi - 1]
or dl, al
sub ecx, 1
jne 0x4cf544
pop edi
pop esi
test dl, dl
pop ebp
sete al
pop ebx
add esp, 8
ret
Function at 0x4e6460
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x616718]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov byte [ebp - 7], 0
mov byte [ebp - 0x84], 0x73
mov byte [ebp - 0x83], 0x32
mov byte [ebp - 0x82], 0x31
mov byte [ebp - 0x81], 0x30
mov byte [ebp - 0x80], 0x37
mov byte [ebp - 0x7f], 0x36
mov byte [ebp - 0x7e], 0x35
mov byte [ebp - 0x7d], 0x34
mov byte [ebp - 0x7c], 0x3b
mov byte [ebp - 0x7b], 0x39
mov byte [ebp - 0x7a], 0x38
mov byte [ebp - 0x79], 0x3f
mov byte [ebp - 0x78], 0x3e
mov byte [ebp - 0x77], 0x3d
mov byte [ebp - 0x76], 0x23
mov byte [ebp - 0x75], 0x22
mov byte [ebp - 0x74], 0x21
mov byte [ebp - 0x73], 0x27
mov byte [ebp - 0x72], 0x26
mov byte [ebp - 0x71], 0x25
mov byte [ebp - 0x70], 0x24
mov byte [ebp - 0x6f], 0x2b
mov byte [ebp - 0x6e], 0x2a
mov byte [ebp - 0x6d], 0x41
mov byte [ebp - 0x6c], 0x40
mov byte [ebp - 0x6b], 0x47
mov byte [ebp - 0x6a], 0x45
mov byte [ebp - 0x69], 0x44
mov byte [ebp - 0x68], 0x4b
mov ebx, dword [ebp + 0xc]
mov byte [ebp - 0x67], 0x4a
mov al, byte [ebp - 0x83]
mov byte [ebp - 0x66], 0
mov byte [ebp - 0x65], 0
cmp byte [ebp - 0x65], 0
jne 0x4e6540
mov byte [ebp - 0x65], 1
xor edx, edx
jmp 0x4e6520
mov al, byte [ebp + edx - 0x83]
mov cl, byte [ebp - 0x84]
xor cl, al
mov byte [ebp + edx - 0x83], cl
inc edx
cmp edx, 0x1d
jb 0x4e6520
mov byte [ebp - 0x66], 0
mov ecx, 7
lea esi, [ebp - 0x83]
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
push 0x40
lea eax, [ebp - 0x64]
push 0
push eax
movsb byte es:[edi], byte [esi]
call fcn.00520dc2
add esp, 0xc
mov edi, 0x18
xor edx, edx
xor esi, esi
lea ebx, [ebx]
imul ecx, dword [ebp + esi*4 - 0x64], 0x1d
add ecx, edx
mov eax, ecx
cdq
and edx, 0xff
add edx, eax
sar edx, 8
and ecx, 0x800000ff
jns 0x4e6595
dec ecx
or ecx, 0xffffff00
inc ecx
mov dword [ebp + esi*4 - 0x64], ecx
inc esi
cmp esi, 0x10
jl 0x4e6570
mov ecx, dword [ebp + 8]
xor eax, eax
movzx edx, word [ecx + edi*2]
jmp 0x4e65b0
movzx ecx, byte [ebp + eax - 0x24]
cmp cx, dx
je 0x4e65c0
inc eax
cmp eax, 0x1d
jl 0x4e65b0
cmp eax, 0x1d
je 0x4e6620
xor edx, edx
test eax, eax
je 0x4e65f2
add eax, dword [ebp + edx*4 - 0x64]
mov dword [ebp + edx*4 - 0x64], eax
cmp eax, 0x100
jl 0x4e65ea
add eax, 0xffffff00
mov dword [ebp + edx*4 - 0x64], eax
mov eax, 1
jmp 0x4e65ec
xor eax, eax
inc edx
cmp edx, 0x10
jl 0x4e65c7
sub edi, 1
jns 0x4e6566
xor ecx, ecx
lea ecx, [ecx]
mov al, byte [ebp + ecx*4 - 0x64]
mov byte [ebx + ecx], al
inc ecx
cmp ecx, 0x10
jl 0x4e6600
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051f6a1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051f6a1
mov esp, ebp
pop ebp
ret
Function at 0x4e6780
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
xor ecx, ecx
lea esp, [esp]
movzx eax, byte [ecx + esi + 1]
movzx edx, byte [ecx + esi]
add ecx, 2
imul eax, eax, 0x9e3779b1
imul edx, edx, 0x9e3779b1
shr eax, 0x18
shr edx, 0x18
xor al, dl
xor bl, al
cmp ecx, 0xe
jl 0x4e6790
pop esi
mov al, bl
pop ebx
pop ebp
ret

Function at 0x4e76c0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5365cc
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x616718]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x80], edi
lea esi, [edi + 0x10]
mov dword [ebp - 0x84], edi
push 0x18
mov dword [ebp - 0x80], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0051f6e8
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x18], 0
xor eax, eax
mov dword [ebp - 4], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 7
mov word [edi + 0x1c], ax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.004e9230
push 3
push 0x55feac
lea ecx, [ebp - 0x7c]
call fcn.004e9ec0
lea ecx, [ebp - 0x7c]
call fcn.004e9260
test eax, eax
je 0x4e7783
mov ecx, dword [eax]
mov dword [edi], ecx
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
mov ecx, dword [eax + 0xc]
mov dword [edi + 0xc], ecx
jmp 0x4e77a2
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
call dword [0x53e5f8]
mov dword [eax], 0x16
call dword [0x53e600]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051f6a1
mov esp, ebp
pop ebp
ret

Function at 0x4e9230
Capabilities:
Hash data with md5

Disassembly:
mov byte [ecx + 0x68], 0
mov eax, ecx
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret