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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x4309a8]
push ebx
movzx eax, byte [ecx]
mov byte [0x4308f8], al
movzx eax, byte [ecx + 1]
mov byte [0x4308f9], al
movzx eax, byte [ecx + 2]
mov byte [0x4308fa], al
movzx eax, byte [ecx + 3]
mov byte [0x4308fb], al
movzx eax, byte [ecx + 4]
mov byte [0x4308fc], al
movzx eax, byte [ecx + 5]
mov byte [0x4308fd], al
movzx eax, byte [ecx + 6]
mov byte [0x4308fe], al
movzx eax, byte [ecx + 7]
mov byte [0x4308ff], al
movzx eax, byte [ecx + 8]
mov byte [0x430900], al
movzx eax, byte [ecx + 9]
mov byte [0x430901], al
movzx eax, byte [ecx + 0xa]
mov byte [0x430902], al
movzx eax, byte [ecx + 0xb]
mov byte [0x430903], al
movzx eax, byte [ecx + 0xc]
mov byte [0x430904], al
movzx eax, byte [ecx + 0xd]
mov byte [0x430905], al
movzx eax, byte [ecx + 0xe]
mov byte [0x430906], al
movzx eax, byte [ecx + 0xf]
mov byte [0x430907], al
mov ebx, 4
mov eax, 0x430905
mov cl, byte [eax]
mov ch, byte [eax + 1]
mov dh, byte [eax + 2]
mov dl, byte [eax - 1]
mov byte [ebp - 2], cl
mov byte [ebp - 1], ch
mov byte [ebp - 3], dh
test bl, 3
jne 0x41b90d
movzx ecx, cl
movzx edx, dl
mov cl, byte [ecx + str.cw]
mov dh, byte [edx + str.cw]
mov byte [ebp - 4], cl
movzx ecx, byte [ebp - 1]
mov dl, byte [ebp - 4]
mov cl, byte [ecx + str.cw]
mov byte [ebp - 2], cl
movzx ecx, byte [ebp - 3]
mov cl, byte [ecx + str.cw]
mov byte [ebp - 1], cl
mov ecx, ebx
shr ecx, 2
xor dl, byte [ecx + 0x422258]
mov ch, byte [ebp - 1]
mov cl, byte [eax - 0xd]
xor cl, dl
mov byte [eax + 3], cl
mov cl, byte [eax - 0xc]
xor cl, byte [ebp - 2]
inc ebx
mov byte [eax + 4], cl
mov cl, byte [eax - 0xb]
xor cl, ch
mov byte [eax + 5], cl
mov cl, byte [eax - 0xa]
xor cl, dh
mov byte [eax + 6], cl
add eax, 4
cmp ebx, 0x2c
jb 0x41b8b4
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402a4c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423ff0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402ae0
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a9d
cmp dword [ebp + 0x10], ebx
jne 0x402ad4
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a4c
test eax, eax
jne 0x402aaf
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a84
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
call fcn.00405ee0
cmp eax, ebx
je 0x402ae7
push ebx
push dword [0x423ff0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ae0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x423ff0], ebx
jne 0x402add
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402add
jmp 0x402ae0
Function at 0x402e71
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402e8e
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402e9d
mov ebx, 0x40f0e0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402eb2
mov ecx, dword [0x423f98]
add ecx, eax
push ecx
call fcn.00403096
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403064
test eax, eax
je 0x40300f
test byte [ebp + 0x17], 0x80
je 0x402ff8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40b050
mov dword [ebp - 0xc], eax
call fcn.00405fbd
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40305a
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402f02
mov esi, dword [ebp + 0x14]
mov edi, 0x40b0e0
push esi
push edi
call fcn.00403064
test eax, eax
je 0x40300f
sub dword [ebp + 0x14], esi
mov dword [0x40b068], edi
mov dword [0x40b06c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40b050
mov dword [0x40b070], ebx
mov dword [0x40b074], eax
call fcn.00405fdd
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x402ff0
mov esi, dword [0x40b070]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x423ff4], 1
mov edi, eax
je 0x402fa4
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402f71
cmp dword [ebp + 0x14], 0
jne 0x402fa4
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404e40
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x402fe5
cmp dword [ebp + 0x10], eax
jne 0x402fcd
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402ff4
cmp dword [ebp - 0x10], esi
jne 0x402ff4
add dword [ebp - 4], esi
jmp 0x402fd9
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40b070]
cmp dword [ebp - 0x14], 1
jne 0x402f25
jmp 0x40305a
cmp dword [ebp + 0x14], eax
jg 0x402ef5
jmp 0x40305a
push 0xfffffffffffffffc
jmp 0x403011
push 0xfffffffffffffffe
jmp 0x403011
test edi, edi
je 0x40304f
cmp dword [ebp + 0x14], esi
jge 0x403004
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403064
test eax, eax
jne 0x403057
push 0xfffffffffffffffd
pop eax
jmp 0x40305d
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40301f
mov esi, dword [ebp + 0x14]
mov edi, 0x40b0e0
push esi
push edi
call fcn.00403064
test eax, eax
je 0x40300f
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402ff4
cmp esi, dword [ebp + 0x10]
jne 0x402ff4
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403014
jmp 0x40305a
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405302
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x407310
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x407300
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405353
xor eax, eax
jmp 0x40537a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x40537a
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x40534f
call esi
pop esi
leave
ret 4

Function at 0x4053b4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x422540], 0x44
push eax
xor eax, eax
push 0x422540
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4053ef
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x405479
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405728
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4054ad
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423fc8], eax
jmp 0x405641
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4054cb
test eax, eax
je 0x4055ec
test byte [ebp + 0xc], 2
je 0x4055ec
mov esi, 0x421540
push edi
push esi
call fcn.00405b54
test ebx, ebx
je 0x4054e8
push 0x4093dc
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4054ee
push edi
call fcn.0040568e
cmp byte [edi], 0
jne 0x4054fc
cmp byte [0x421540], 0x5c
jne 0x405507
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4055e2
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405672
cmp byte [eax], 0
je 0x40554d
cmp byte [ebp - 0x18], 0
je 0x40554d
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405563
mov al, byte [esi + 1]
test al, al
je 0x4055c1
cmp al, 0x2e
jne 0x405563
cmp byte [esi + 2], 0
je 0x4055c1
push esi
push ebx
call fcn.00405b54
test byte [ebp - 0x148], 0x10
je 0x405588
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055c1
push dword [ebp + 0xc]
push edi
call fcn.00405479
jmp 0x4055c1
push edi
call fcn.0040580c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4055b9
test byte [ebp + 0xc], 4
je 0x4055b1
push edi
push 0xfffffffffffffff1
call fcn.00404e40
push 0
push edi
call fcn.004058a2
jmp 0x4055c1
inc dword [0x423fc8]
jmp 0x4055c1
push edi
push 0xfffffffffffffff2
call fcn.00404e40
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40552b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4055ec
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405641
cmp dword [ebp - 8], esi
jne 0x405601
inc dword [0x423fc8]
jmp 0x405641
push edi
call fcn.00405e4f
test eax, eax
je 0x405641
push edi
call fcn.00405647
push edi
call fcn.0040580c
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405639
test byte [ebp + 0xc], 4
je 0x4055f9
push edi
push 0xfffffffffffffff1
call fcn.00404e40
push esi
push edi
call fcn.004058a2
jmp 0x405641
push edi
push 0xffffffffffffffe5
call fcn.00404e40
pop edi
pop esi
leave
ret 8
Function at 0x405728
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421940
push esi
call fcn.00405b54
push esi
call fcn.004056db
mov edi, eax
test edi, edi
jne 0x405749
xor eax, eax
jmp 0x40579b
push edi
call fcn.00405db6
test byte [0x423f58], 0x80
je 0x405762
mov al, byte [edi]
test al, al
je 0x405745
cmp al, 0x5c
je 0x405745
sub edi, esi
jmp 0x40577a
call fcn.00405e4f
test eax, eax
je 0x405774
test byte [eax], 0x10
je 0x405745
push esi
call fcn.0040568e
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405766
call fcn.00405647
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40580c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405828
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40582b
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40585a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40589e
test edi, edi
jne 0x405865
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405898
Function at 0x4058a2
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
call fcn.00405ee0
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4058c6
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x4059ff
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x4226c8], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x4226c8
je 0x40590a
push 1
push 0
push esi
call fcn.0040582b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405a05
cmp eax, edi
jg 0x405a05
mov esi, 0x422140
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405a05
cmp eax, edi
jg 0x405a05
push esi
push ebp
push str._s_s_r_n
push 0x421d40
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423f50]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405b76
push 4
push 0xc0000000
push esi
call fcn.0040582b
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x4059ff
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4059f8
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4059f8
cmp edi, dword [esp + 0x18]
jne 0x4059f8
push str._Rename__r_n
push esi
call fcn.004057a0
test eax, eax
jne 0x405a0c
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405b54
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421d40
push eax
call fcn.004057ec
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423fd0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x4093e4
push eax
call fcn.004057a0
test eax, eax
je 0x4059c3
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405a33
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405a28
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4059c5
Function at 0x405a3b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405aac
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405a9b
cmp dword [ebp + 0x14], 1
je 0x405a9d
cmp dword [ebp + 0x14], 2
je 0x405a9d
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405e76
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x405e9a
xor eax, eax
test eax, eax
je 0x405eac
cmp byte [ebp + eax - 0x121], 0x5c
je 0x405eac
xor ecx, ecx
jmp 0x405eaf
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409010]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
leave
ret 4

Function at 0x405f4f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422acc], 0
push esi
jne 0x405f86
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f60
mov dword [ecx*4 + 0x422ac8], eax
inc ecx
cmp ecx, 0x100
jl 0x405f5b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405fb7
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422ac8]
xor eax, esi
inc ecx
dec edx
jne 0x405f99
pop edi
not eax
pop esi
ret 0xc
Function at 0x54e060
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x566bc8], 0
mov byte [0x566bcc], 0
mov esi, dword [0x566bbc]
add esi, 0xfffffac9
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov dword [0x566bc0], ecx
mov dword [0x566bc4], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x566bbc], 0x1cb3
mov eax, dword [0x566bc4]
add eax, 1
mov dword [0x566bc4], eax
cmp eax, 0x100
mov dword [ebp - 0x20], eax
jl 0x54e0b3
xor eax, eax
mov dword [0x566bbc], 0x1549
mov dword [0x566bc4], 0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov ecx, 0x100
mov dword [0x566bd0], 0
mov edx, dword [0x566bc8]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x28], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x566bd0], edi
mov dword [0x566bbc], 0x15b
mov eax, edi
cdq
idiv ecx
mov dword [0x566bc8], edx
mov dword [0x566bc0], 0xffffff07
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
mov cl, byte [ecx + edi]
mov byte [0x566bcc], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov ecx, dword [0x566bc0]
add ecx, 0xffffdd45
mov dword [0x566bbc], ecx
mov cl, byte [0x566bcc]
mov edx, dword [0x566bc8]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov edx, dword [0x566bc4]
add edx, 1
mov dword [0x566bc4], edx
cmp edx, 0x100
mov dword [ebp - 0x24], edx
jl 0x54e0fc
mov dword [0x566bc0], 0x18f5
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x54e290
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [0x566bbc]
add edi, 0xffffe881
mov dword [0x566bc0], edi
mov dword [0x566bc4], 0
mov dword [0x566bc8], 0
mov dword [0x566bd4], 0
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jne 0x54e2fa
mov dword [0x566bc0], 0x13b3
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x54e30b
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x566bbc], 0x1751
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x566bc4], edx
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x566bc8], edx
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x566bcc], cl
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x566bcc]
mov edx, dword [0x566bc8]
mov byte [edi + edx], cl
mov edx, dword [0x566bc4]
movzx edx, byte [edi + edx]
mov ebx, dword [0x566bc8]
movzx ebx, byte [edi + ebx]
add ebx, edx
mov dword [0x566bc0], 0x26fd
and ebx, 0xff
mov dword [0x566bd4], ebx
mov dword [0x566bbc], 0x267e
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
mov ch, byte [edx + ebx]
mov dl, cl
add dl, byte [0x566bd9]
mov byte [0x566bd8], dl
mov byte [0x566bd9], ch
mov byte [0x566bda], cl
mov dword [0x566bc0], 0x1b66
xor ch, cl
mov dword [0x566bbc], 0x1174
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], ch
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x38], ebx
je 0x54e41c
mov eax, dword [0x566bc4]
mov ecx, dword [0x566bc8]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], edx
jmp 0x54e30b
jmp 0x54e2e8
Function at 0x54ebd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov dword [0x566bbc], 0x1994
mov dword [ebp - 0x10], eax
call fcn.0054e600
mov ecx, eax
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + edx + 0x78]
mov dword [0x566bbc], 0x2010
mov edx, eax
add edx, 0x20
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
add ecx, dword [ecx + edx]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ebx, dword [esi + edi + 0x18]
cmp ebx, 0
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
je 0x54ed39
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax + ecx + 0x24]
mov dword [ebp - 0x2c], edx
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov esi, dword [ebp - 0x24]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
mov ecx, eax
mov edx, dword [ebp - 0x40]
add ecx, edx
mov esi, dword [ebp - 0x14]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov bl, cl
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x49], bh
mov byte [ebp - 0x4a], cl
mov byte [ebp - 0x4b], bl
je 0x54ecdc
mov eax, dword [ebp - 0x48]
add eax, 1
mov cl, byte [ebp - 0x49]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x4a]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x51], ch
mov al, byte [ebp - 0x51]
test al, 1
mov ecx, dword [ebp - 0x50]
mov dl, byte [ebp - 0x4a]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 0x4b], dl
jne 0x54ec73
jmp 0x54ecdc
mov al, byte [ebp - 0x4b]
test al, 1
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x58], ecx
jne 0x54ed0d
mov eax, dword [ebp - 0x3c]
add eax, 2
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov edx, dword [ebp - 0x20]
cmp ecx, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
jb 0x54ec59
jmp 0x54ed32
mov eax, dword [ebp - 0x58]
movzx eax, word [eax]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
add ecx, dword [ecx + edx + 0x1c]
mov esi, dword [ebp - 0x14]
add esi, dword [ecx + eax*4]
mov dword [0x566bc0], 0x2690
mov dword [ebp - 0x28], esi
jmp 0x54ed39
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x54ed39
mov eax, dword [ebp - 0x28]
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret