joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c3d4c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4c3d7a
mov eax, ebx
call fcn.004c4800
cmp dword [ebx + 0x40], 0
je 0x4c3d73
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4c3deb
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4c3ddd
cmp dword [ebx + 8], 0
je 0x4c3d9c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4c3dae
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4c3ddd
cmp dword [ebx + 8], 0
je 0x4c3d8f
cmp eax, 3
je 0x4c3dc1
dec eax
jne 0x4c3d8f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4c3d8f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4c3d8f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4c3e09
cmp dword [ebx + 0x14], 0xcc
je 0x4c3e09
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004c3e14
pop ebx
ret

Function at 0x4d59e4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4d5a35
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4d5a1c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4d5a0c
jmp 0x4d5a35
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4d5a1d
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e3a58
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4e3b15
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push 5
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.00407500
test eax, eax
je 0x4e3afa
lea eax, [ebp - 8]
mov edx, 0x104
call fcn.004049d8
mov eax, dword [ebp - 8]
call fcn.0040484c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, dword [ebp - 8]
call fcn.0040484c
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404584
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040464c
mov edx, eax
mov ecx, 1
mov eax, dword [ebp - 8]
call fcn.004048ac
mov eax, dword [ebp - 0xc]
mov edx, 0x4e3b2c
call fcn.00404798
je 0x4e3af0
lea eax, [ebp - 8]
mov edx, 0x4e3b2c
call fcn.00404654
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004043e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e3b1c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004043b0
ret
Function at 0x4e3bd8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040483c
lea eax, [ebp - 0x28]
mov edx, dword [0x4e3124]
call fcn.00404d44
xor eax, eax
push ebp
push 0x4e3cdd
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x40
mov eax, dword [ebp - 4]
call fcn.004090dc
mov ebx, eax
test ebx, ebx
jle 0x4e3c55
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
call sub.kernel32.dll_GetFileTime
push 0
push ebx
call sub.kernel32.dll_GetFileSize
test eax, eax
jns 0x4e3c47
add eax, 0x3ff
sar eax, 0xa
inc eax
mov dword [ebp - 0x24], eax
mov eax, ebx
call fcn.004091f0
cmp dword [ebp - 0xc], 0
jne 0x4e3c70
cmp dword [ebp - 8], 0
jne 0x4e3c70
lea eax, [ebp - 0x20]
mov edx, 0x4e3cf4
call fcn.00404424
jmp 0x4e3c86
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0xc]
call fcn.004e314c
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
call fcn.00404424
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.00409688
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
call fcn.00404424
mov eax, esi
lea edx, [ebp - 0x28]
mov ecx, dword [0x4e3124]
call fcn.00405078
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e3ce4
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004043b0
lea eax, [ebp - 0x28]
mov edx, dword [0x4e3124]
call fcn.00404e14
lea eax, [ebp - 4]
call fcn.0040438c
ret

Function at 0x4e3cfc
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040483c
lea eax, [ebp - 0x28]
mov edx, dword [0x4e3124]
call fcn.00404d44
xor eax, eax
push ebp
push 0x4e3e01
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00409688
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
call fcn.00404424
mov edx, 0x40
mov eax, dword [ebp - 4]
call fcn.004090dc
mov ebx, eax
test ebx, ebx
jle 0x4e3d8f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
call sub.kernel32.dll_GetFileTime
push 0
push ebx
call sub.kernel32.dll_GetFileSize
test eax, eax
jns 0x4e3d81
add eax, 0x3ff
sar eax, 0xa
inc eax
mov dword [ebp - 0x24], eax
mov eax, ebx
call fcn.004091f0
cmp dword [ebp - 0xc], 0
jne 0x4e3daa
cmp dword [ebp - 8], 0
jne 0x4e3daa
lea eax, [ebp - 0x20]
mov edx, 0x4e3e18
call fcn.00404424
jmp 0x4e3dc0
lea edx, [ebp - 0x30]
lea eax, [ebp - 0xc]
call fcn.004e314c
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x20]
call fcn.00404424
mov eax, esi
lea edx, [ebp - 0x28]
mov ecx, dword [0x4e3124]
call fcn.00405078
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e3e08
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004043b0
lea eax, [ebp - 0x28]
mov edx, dword [0x4e3124]
call fcn.00404e14
lea eax, [ebp - 4]
call fcn.0040438c
ret
Function at 0x4eb3f0
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x58
call fcn.00402f08
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret

Function at 0x4fb810
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4fb818
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4fba0a
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4fba20
mov eax, esi
call fcn.004f969c
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004043e0
lea ecx, [ebp - 0x10]
mov edx, 0x4fba34
mov eax, esi
call fcn.004f969c
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004043e0
lea ecx, [ebp - 0x14]
mov edx, 0x4fba4c
mov eax, esi
call fcn.004f969c
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004043e0
lea ecx, [ebp - 0x18]
mov edx, 0x4fba68
mov eax, esi
call fcn.004f969c
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004043e0
lea ecx, [ebp - 0x1c]
mov edx, 0x4fba84
mov eax, esi
call fcn.004f969c
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004043e0
lea ecx, [ebp - 0x24]
mov edx, 0x4fba9c
mov eax, esi
call fcn.004f969c
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408af0
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408ed0
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4fbab4
mov eax, esi
call fcn.004f969c
mov eax, dword [ebp - 0x28]
call fcn.004f3174
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4fbac4
mov eax, esi
call fcn.004f969c
mov eax, dword [ebp - 0x2c]
call fcn.004f3174
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4fbadc
mov eax, esi
call fcn.004f969c
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408ed0
inc eax
je 0x4fb9ad
lea ecx, [ebp - 0x34]
mov edx, 0x4fbadc
mov eax, esi
call fcn.004f969c
mov eax, dword [ebp - 0x34]
call fcn.00408e94
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a7c8
fstp qword [ebp - 0x3c]
wait
call fcn.0040ab9c
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4fb9c8
lea ecx, [ebp - 0x40]
mov edx, 0x4fbadc
mov eax, esi
call fcn.004f969c
mov eax, dword [ebp - 0x40]
call fcn.004f3174
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4fbaec
mov eax, esi
call fcn.004f969c
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004043e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fba11
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004043b0
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004043b0
ret
Function at 0x50279c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x5027f6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0050278c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004f1de0
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004f19e0
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5027fd
lea eax, [ebp - 4]
call fcn.0040438c
ret

Function at 0x508e9c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040483c
xor eax, eax
push ebp
push 0x508ef5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4401
push 0x160
push 0x5191e4
push 0
mov eax, dword [ebp - 4]
call fcn.0040484c
push eax
call sub.shell32.dll_SHGetFileInfoA
mov ebx, dword [0x5191e8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x508efc
lea eax, [ebp - 4]
call fcn.0040438c
ret
Function at 0x572dac
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
cmp byte [eax], 0
je 0x572dd3
jmp 0x572dbc
mov cl, byte [eax]
movzx edx, cl
mov dl, byte [edx + 0x5f93c8]
xor dl, cl
mov byte [eax], dl
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x572dbc
ret
Function at 0x59495c
Capabilities:
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
mov eax, ecx
mov ecx, dword [esp + 0xc]
push ebx
mov dword [eax + 4], ecx
xor ecx, ecx
mov dword [eax + 0xc], edx
mov edx, dword [esp + 8]
push esi
mov dword [eax], 0x5fa1f8
mov dword [eax + 8], ecx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
xor ebx, ebx
lea esi, [eax + 0x43c]
mov edx, ebx
shr edx, 1
test bl, 1
je 0x59499d
xor edx, 0xedb88320
test dl, 1
je 0x5949ac
shr edx, 1
xor edx, 0xedb88320
jmp 0x5949ae
shr edx, 1
test dl, 1
je 0x5949bd
shr edx, 1
xor edx, 0xedb88320
jmp 0x5949bf
shr edx, 1
test dl, 1
je 0x5949ce
shr edx, 1
xor edx, 0xedb88320
jmp 0x5949d0
shr edx, 1
test dl, 1
je 0x5949df
shr edx, 1
xor edx, 0xedb88320
jmp 0x5949e1
shr edx, 1
test dl, 1
je 0x5949f0
shr edx, 1
xor edx, 0xedb88320
jmp 0x5949f2
shr edx, 1
test dl, 1
je 0x594a01
shr edx, 1
xor edx, 0xedb88320
jmp 0x594a03
shr edx, 1
test dl, 1
je 0x594a12
shr edx, 1
xor edx, 0xedb88320
jmp 0x594a14
shr edx, 1
mov dword [esi], edx
inc ebx
add esi, 4
cmp ebx, 0x100
jb 0x59498e
pop esi
mov byte [eax + 0x93b], cl
pop ebx
ret 0xc

Function at 0x594a8c
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [ecx + 0x10]
test edx, edx
push ebx
push ebp
push esi
push edi
je 0x594b7d
mov edi, dword [ecx + 8]
mov ebp, dword [ecx + 0xc]
lea esi, [edi + 4]
cmp esi, ebp
jae 0x594b7d
xor eax, eax
mov dword [ecx + 8], esi
mov ah, byte [edi + edx]
movzx ebx, byte [edi + edx + 2]
mov al, byte [edi + edx + 1]
movzx edi, byte [edi + edx + 3]
shl eax, 8
or eax, ebx
shl eax, 8
or edi, eax
lea eax, [esi + 4]
cmp eax, ebp
jae 0x594b7d
xor ebx, ebx
mov dword [ecx + 8], eax
mov bh, byte [esi + edx]
movzx eax, byte [esi + edx + 2]
mov bl, byte [esi + edx + 1]
movzx edx, byte [esi + edx + 3]
shl ebx, 8
or ebx, eax
mov eax, dword [esp + 0x18]
shl ebx, 8
or ebx, edx
mov dword [eax], ebx
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
lea edx, [eax + edi + 4]
cmp edx, esi
mov dword [esp + 0x10], ebx
jae 0x594b7d
mov esi, 0xfffffffc
or edx, 0xffffffff
cmp edi, esi
jle 0x594b42
mov ebx, dword [ecx + 0x10]
lea ebp, [eax + ebx]
xor ebx, ebx
mov bl, byte [esi + ebp]
xor ebx, edx
and ebx, 0xff
shr edx, 8
xor edx, dword [ecx + ebx*4 + 0x43c]
inc esi
cmp esi, edi
jl 0x594b22
mov ebx, dword [esp + 0x10]
mov ebp, dword [ecx + 0x10]
lea esi, [eax + edi]
movzx ecx, byte [esi + ebp + 2]
xor eax, eax
mov ah, byte [esi + ebp]
add esi, ebp
not edx
mov al, byte [esi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 3]
shl eax, 8
or eax, ecx
cmp edx, eax
jne 0x594b7d
cmp ebx, 0x49454e44
je 0x594b7d
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 4
Function at 0x596bbc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x7c]
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
mov eax, esi
imul eax, ecx
lea eax, [eax + eax*2]
cmp eax, case.0x56e7d6.32
jae 0x596c02
cmp ecx, 0xb40
jg 0x596c02
cmp esi, 0xb40
jle 0x596c16
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov esi, eax
jmp 0x596be3
cmp ecx, 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], ecx
jl 0x596d2f
cmp esi, 1
jl 0x596d2f
mov esi, dword [esp + 0x64]
mov ecx, esi
mov dword [esi + 0x264], 1
call fcn.005e9bbc
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
xor ebp, ebp
push ebp
push 7
push ebp
push 6
push ecx
push edx
mov ecx, esi
call dword [eax + 0x3c]
push eax
lea ecx, [esp + 0x3c]
call fcn.0062595c
cmp dword [esp + 0x3c], ebp
je 0x596d26
lea ecx, [esp + 0x20]
call fcn.006251ac
test eax, eax
je 0x596d26
lea ecx, [esp + 0x20]
lea edi, [esi + 0x15c]
push ecx
mov ecx, edi
call fcn.005b0dfc
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x68]
mov ecx, dword [ebx + 0x54]
push 2
lea edx, [esp + 0x14]
push edx
push eax
push ecx
mov ecx, edi
call fcn.005b1b3c
mov dword [esi + 0x250], ebp
mov dword [esi + 0x254], ebp
mov edx, dword [ebx + 0x54]
mov ecx, edi
mov dword [esi + 0x268], edx
call fcn.005b0e9c
mov eax, dword [esi + 0x588]
push eax
mov ecx, edi
mov dword [esi + 0x268], ebp
call fcn.005b0dfc
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x8c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x90]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x80]
call fcn.00636fdc
lea ecx, [esp + 0x20]
call fcn.006251cc
mov dword [esi + 0x264], ebp
lea ecx, [esp + 0x20]
call fcn.006259ac
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
Function at 0x5a1d8c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x38]
mov ebx, dword [eax + 0x90]
test ebx, ebx
push edi
mov dword [ebp - 4], ebx
je 0x5a1fa7
mov edi, dword [ebp + 0xc]
mov edx, dword [esi + 0xc]
mov ecx, edi
shl ecx, 8
mov dword [ebp - 0x14], ecx
mov ecx, dword [edx + 0xec]
shl ecx, 8
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], ecx
push edx
mov ecx, edx
push ecx
add eax, 0x20
push eax
call fcn.005755dc
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx + 0x20]
sar eax, 8
xor edx, edx
add esp, 0xc
cmp eax, edx
mov dword [ebp - 8], eax
jne 0x5a1ea9
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 0x10]
xor edx, edx
mov dl, byte [ecx + 0x94]
sar eax, 0xf
add eax, 0x80
sub esi, edi
and edx, 0xc
push edx
push eax
call fcn.005a19fc
movzx dx, byte [ebx + eax*4 + 2]
movzx cx, byte [ebx + eax*4 + 3]
lea eax, [ebx + eax*4]
mov word [ebp - 8], dx
movzx dx, byte [eax]
mov word [ebp - 6], cx
movzx cx, byte [eax + 1]
mov word [ebp - 0xc], dx
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
add esp, 8
test eax, eax
mov word [ebp - 0xa], cx
mov dword [ebp + 8], eax
je 0x5a1e71
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
movq mm0, qword [ebp - 0xc]
movq qword [edi], mm0
movq qword [edi + 8], mm0
movq qword [edi + 0x10], mm0
movq qword [edi + 0x18], mm0
add edi, 0x20
sub ecx, 1
jne 0x5a1e58
emms
mov ecx, eax
neg ecx
lea ecx, [esi + ecx*4]
mov esi, dword [ebp + 0x14]
shl eax, 5
add esi, eax
test ecx, ecx
je 0x5a1fa7
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
lea ecx, [ecx*8 - 5]
shr ecx, 2
lea edi, [esi + 8]
mov dword [esi], edx
mov dword [esi + 4], eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ecx + 0x94]
shr ecx, 2
mov dword [ebp + 8], ecx
mov dword [ebp - 0x2c], 0x80
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], pe_nt_image_headers32
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 0xff
mov dword [ebp - 0x18], edx
push ebx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
sub ebx, eax
test ebx, ebx
je 0x5a1fa4
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0x14]
pxor mm0, mm0
movq mm1, qword [ebp - 0x2c]
movq mm2, qword [ebp - 0x24]
cmp dword [ebp + 8], 0
je 0x5a1f7c
movq mm4, qword [ebp - 0x1c]
cmp dword [ebp + 8], 1
je 0x5a1f3c
movd mm3, edx
psrad mm3, 0xf
paddd mm3, mm1
pand mm3, mm4
pextrw eax, mm3, 0
movd mm3, dword [esi + eax*4]
punpcklbw mm3, mm0
movq qword [edi], mm3
add edx, ecx
add edi, 8
sub ebx, 1
jne 0x5a1f0c
jmp 0x5a1fa4
movd mm3, edx
psrad mm3, 0xf
paddd mm3, mm1
pshufw mm5, mm3, 0xe4
pand mm5, mm2
pcmpeqd mm5, mm2
pxor mm3, mm5
pand mm3, mm4
pextrw eax, mm3, 0
movd mm3, dword [esi + eax*4]
punpcklbw mm3, mm0
movq qword [edi], mm3
add edx, ecx
add edi, 8
sub ebx, 1
jne 0x5a1f3c
jmp 0x5a1fa4
movd mm3, edx
psrad mm3, 0xf
paddd mm3, mm1
pminsw mm3, mm2
pmaxsw mm3, mm0
pextrw eax, mm3, 0
movd mm3, dword [esi + eax*4]
punpcklbw mm3, mm0
movq qword [edi], mm3
add edx, ecx
add edi, 8
sub ebx, 1
jne 0x5a1f7c
pop ebx
emms
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5a1fbc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x38]
mov esi, dword [eax + 0x90]
test esi, esi
je 0x5a213c
mov edx, dword [edi + 0xc]
push ebp
mov ebp, dword [esp + 0x24]
mov ecx, ebp
shl ecx, 8
mov dword [esp + 0xc], ecx
mov ecx, dword [edx + 0xec]
shl ecx, 8
mov dword [esp + 0x10], ecx
mov cl, byte [0x680ed1]
add eax, 0x20
lea edx, [esp + 0xc]
test cl, cl
mov ecx, edx
je 0x5a2012
push edx
call fcn.0059865c
add esp, 4
jmp 0x5a201d
push ecx
push edx
push eax
call fcn.005755dc
add esp, 0xc
mov eax, dword [edi + 0x38]
mov edi, dword [esp + 0x28]
push ebx
mov ebx, dword [eax + 0x20]
sar ebx, 8
sub edi, ebp
test ebx, ebx
jne 0x5a20ae
movzx eax, byte [eax + 0x94]
mov ecx, dword [esp + 0x10]
and eax, 0xc
sar ecx, 0xf
push eax
add ecx, 0x80
push ecx
call fcn.005a19fc
movzx dx, byte [esi + eax*4 + 3]
movzx cx, byte [esi + eax*4 + 2]
lea eax, [esi + eax*4]
mov word [esp + 0x26], dx
movzx dx, byte [eax + 1]
movzx ax, byte [eax]
add esp, 8
test edi, edi
mov word [esp + 0x1c], cx
mov word [esp + 0x1a], dx
mov word [esp + 0x18], ax
je 0x5a213a
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esi], ecx
lea ecx, [edi*8 - 5]
pop ebx
lea edi, [esi + 8]
mov dword [esi + 4], edx
shr ecx, 2
pop ebp
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
add esp, 0x10
ret
test edi, edi
je 0x5a213a
mov ecx, dword [esp + 0x30]
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov edx, dword [edx + 0x38]
movzx edx, byte [edx + 0x94]
mov eax, ebp
sar eax, 0xf
and edx, 0xc
add eax, 0x80
cmp edx, 4
je 0x5a20f9
cmp edx, 8
je 0x5a2103
cmp eax, 0x100
jle 0x5a20f1
mov eax, pe_nt_image_headers32
jmp 0x5a2108
test eax, eax
jge 0x5a2108
xor eax, eax
jmp 0x5a2108
test ah, 1
je 0x5a2103
xor eax, 0xff
and eax, 0xff
movzx dx, byte [esi + eax*4 + 3]
mov word [ecx + 6], dx
movzx dx, byte [esi + eax*4 + 2]
mov word [ecx + 4], dx
movzx dx, byte [esi + eax*4 + 1]
mov word [ecx + 2], dx
movzx ax, byte [esi + eax*4]
mov word [ecx], ax
add ebp, ebx
add ecx, 8
dec edi
mov dword [esp + 0x10], ebp
jne 0x5a20be
pop ebx
pop ebp
pop edi
pop esi
add esp, 0x10
ret
Function at 0x5a2a7c
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [0x680ed0]
test al, al
je 0x5a2ab4
mov edx, dword [esp + 4]
mov ecx, dword [edx + 0x38]
mov eax, dword [ecx]
cmp eax, 0x13
mov dword [esp + 4], edx
jne 0x5a2a9c
jmp fcn.005a214c
cmp eax, 0x12
jne 0x5a2aaf
test byte [ecx + 0x94], 0xc
jne 0x5a2a97
jmp fcn.005a279c
jmp fcn.005a1d8c
mov ecx, dword [esp + 4]
mov edx, dword [ecx + 0x38]
mov eax, dword [edx]
cmp eax, 0x13
mov dword [esp + 4], ecx
jne 0x5a2acb
jmp fcn.005a24ec
cmp eax, 0x12
jne 0x5a2ad5
jmp fcn.005a28fc
jmp fcn.005a1fbc
Function at 0x5a949c
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
mov dword [eax], ecx
shr ecx, 2
and ebx, 3
test ecx, ecx
push esi
jbe 0x5a94de
push edi
mov edi, ecx
movzx ecx, word [edx]
mov esi, dword [eax]
add esi, ecx
mov ecx, esi
mov dword [eax], esi
shl ecx, 0x10
xor ecx, esi
add edx, 2
mov dword [eax], ecx
movzx esi, word [edx]
shl esi, 0xb
xor esi, ecx
mov dword [eax], esi
mov ecx, esi
shr esi, 0xb
add esi, ecx
add edx, 2
dec edi
mov dword [eax], esi
jne 0x5a94af
pop edi
mov ecx, ebx
dec ecx
je 0x5a9522
dec ecx
je 0x5a950d
dec ecx
jne 0x5a9538
movzx ecx, word [edx]
mov esi, dword [eax]
add esi, ecx
mov ecx, esi
shl ecx, 0x10
xor ecx, esi
mov dword [eax], ecx
movzx edx, byte [edx + 2]
shl edx, 0x12
xor edx, ecx
mov ecx, edx
shr ecx, 0xb
add ecx, edx
mov dword [eax], ecx
jmp 0x5a9538
movzx edx, word [edx]
mov ecx, dword [eax]
add edx, ecx
mov ecx, edx
shl ecx, 0xb
xor ecx, edx
mov edx, ecx
shr edx, 0x11
jmp 0x5a9534
movzx ecx, byte [edx]
mov edx, dword [eax]
add edx, ecx
mov ecx, edx
shl ecx, 0xa
xor ecx, edx
mov edx, ecx
shr edx, 1
add edx, ecx
mov dword [eax], edx
mov edx, dword [eax]
lea ecx, [edx*8]
xor ecx, edx
mov edx, ecx
shr edx, 5
add edx, ecx
lea ecx, [edx*4]
xor ecx, edx
mov edx, ecx
shr edx, 0xf
add ecx, edx
mov edx, ecx
shl edx, 0xa
xor edx, ecx
pop esi
mov dword [eax], edx
pop ebx
ret