joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52421c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.00406ddc
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, edi
call fcn.00406e68
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x5242db
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00406e68
mov edi, eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
cmp dword [ebp - 0xc], 0
je 0x5242d2
mov eax, dword [ebp - 0xc]
call fcn.0040323c
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x5242cb
mov eax, dword [ebp - 0x10]
dec eax
sub eax, 2
jb 0x5242b4
sub eax, 4
jne 0x5242bf
mov eax, ebx
mov edx, esi
call fcn.00406f88
jmp 0x5242cb
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov edx, esi
call fcn.00406f18
mov eax, esi
call fcn.00403270
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5242e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, edi
call fcn.00406e68
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x524370
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00406e68
mov esi, eax
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
cmp dword [ebp - 0xc], 0
je 0x524367
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x524367
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffc
sub eax, 2
jae 0x524367
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x524928
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x5249a2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_GetUserDefaultUILanguage
mov ecx, 0x5249bc
mov edx, 0x59
call fcn.00477a78
push dword [ebp - 4]
push 0x5249d0
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetUserDefaultUILanguage
mov ecx, 0x5249e0
mov edx, 0x5a
call fcn.00477a78
push dword [ebp - 8]
mov eax, ebx
mov edx, 3
call fcn.00407280
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5249a9
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406dd4
ret
Function at 0x5249e8
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
mov dword [esp], 0x104
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameW
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.00406fdc
add esp, 0x20c
pop ebx
ret

Function at 0x524a1c
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
mov dword [esp], 0x104
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x524a4d
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.00406fdc
jmp 0x524a56
mov eax, ebx
xor edx, edx
call fcn.00406ddc
add esp, 0x20c
pop ebx
ret

Function at 0x524aac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
xor edx, edx
mov dword [ebp - 0x20c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x524b20
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x1a
lea eax, [ebp - 0x208]
push eax
mov eax, dword [0x737b20]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.00406fdc
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.00479b20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524b27
lea eax, [ebp - 0x20c]
call fcn.00406dcc
ret

Function at 0x524b2c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
xor edx, edx
mov dword [ebp - 0x20c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x524ba0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x23
lea eax, [ebp - 0x208]
push eax
mov eax, dword [0x737b20]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.00406fdc
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.00479b20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524ba7
lea eax, [ebp - 0x20c]
call fcn.00406dcc
ret

Function at 0x524bac
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
xor edx, edx
mov dword [ebp - 0x20c], edx
mov dword [ebp - 0x210], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x524c41
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x26
lea eax, [ebp - 0x208]
push eax
mov eax, dword [0x737b20]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
lea eax, [ebp - 0x210]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.00406fdc
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
call fcn.00479b20
mov edx, dword [ebp - 0x20c]
mov eax, ebx
mov ecx, 0x524c5c
call fcn.004071b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524c48
lea eax, [ebp - 0x210]
mov edx, 2
call fcn.00406dd4
ret
Function at 0x524c78
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
xor edx, edx
mov dword [ebp - 0x210], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x524ce7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20a]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathW
lea eax, [ebp - 0x210]
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406fdc
mov eax, dword [ebp - 0x210]
mov edx, ebx
call fcn.00479b20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524cee
lea eax, [ebp - 0x210]
call fcn.00406dcc
ret

Function at 0x524cf4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x524d7f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406ddc
lea eax, [ebp - 4]
push eax
push ebx
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, 0x80000000
sete al
test al, al
je 0x524d69
mov eax, 0x104
call fcn.00472a84
mov ebx, eax
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
test eax, eax
je 0x524d62
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00472a58
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00479b20
mov eax, ebx
call fcn.00472ac4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524d86
lea eax, [ebp - 8]
call fcn.00406dcc
ret
Function at 0x525068
Capabilities:
Check for time delay via gettickcount
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406dc4
xor eax, eax
push ebp
push 0x52524d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x11], 0
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x5250ba
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x5250ba
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00405f7c
test eax, eax
je 0x5250c3
sub eax, 4
mov eax, dword [eax]
lea ebx, [eax + 1]
mov eax, ebx
call fcn.00472a84
mov dword [ebp - 0x10], eax
mov edx, ebx
add edx, edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
call fcn.00403cd8
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.00472778
lea eax, [ebp - 0x5c]
xor ecx, ecx
mov edx, 0x44
call fcn.00403cd8
lea eax, [ebp - 0x6c]
xor ecx, ecx
mov edx, 0x10
call fcn.00403cd8
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x30], 1
movzx eax, word [ebp - 8]
mov word [ebp - 0x2c], ax
xor edx, edx
push ebp
push 0x525230
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x525165
call fcn.0040568c
jmp 0x525237
cmp dword [ebp + 0xc], 0
je 0x525173
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x64]
mov dword [eax], edx
test esi, esi
jbe 0x5251d7
cmp byte [ebp + 0x10], 0
je 0x5251c2
call sub.kernel32.dll_GetTickCount_1
mov edi, eax
push 0
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov ebx, eax
push 0xa
call sub.kernel32.dll_Sleep_2
mov eax, dword [0x733a48]
mov eax, dword [eax]
call fcn.004fc390
cmp ebx, 0xffffffff
jne 0x5251ad
mov byte [ebp - 0x11], 0
call sub.kernel32.dll_GetTickCount_1
sub eax, edi
cmp esi, eax
jbe 0x5251d7
cmp ebx, 0x102
je 0x525184
jmp 0x5251d7
push esi
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5251d7
mov byte [ebp - 0x11], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x525237
cmp byte [ebp - 0x11], 0
jne 0x5251f2
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x52520d
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x52521a
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x525227
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
call fcn.00472ac4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x525254
lea eax, [ebp - 4]
call fcn.00406dcc
ret
Function at 0x526c80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov eax, 0x14
call fcn.0040323c
mov ebx, eax
mov eax, 0x526d0c
call fcn.00472a98
mov dword [ebx], eax
mov eax, esi
call fcn.00406e68
call fcn.00472a98
mov dword [ebx + 4], eax
mov eax, edi
call fcn.00406e68
call fcn.00472a98
mov dword [ebx + 8], eax
mov eax, dword [ebp - 4]
call fcn.00406e68
call fcn.00472a98
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 8]
call fcn.00406e68
call fcn.00472a98
mov dword [ebx + 0x10], eax
lea eax, [ebp - 8]
push eax
push 0
push ebx
push 0x526b3c
push 0
push 0
call sub.kernel32.dll_CreateThread_1
push eax
call sub.kernel32.dll_CloseHandle_1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x52ffb0
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00530b68
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret

Function at 0x530a64
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff20
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x40
jle 0x530aa9
lea eax, [ebp - 0x60]
call fcn.0052ffb0
mov edx, ebx
lea eax, [ebp - 0x60]
mov ecx, dword [ebp + 0xc]
call fcn.0052ffd8
lea edx, [ebp - 0x60]
mov eax, dword [ebp + 8]
call fcn.005300ac
mov dword [ebp + 0xc], 0x10
mov esi, dword [ebp + 8]
jmp 0x530aab
mov esi, ebx
xor ecx, ecx
lea eax, [ebp - 0xa0]
lea edx, [ebp - 0xe0]
lea ebx, [ecx + 1]
cmp ebx, dword [ebp + 0xc]
jg 0x530ad4
movzx ebx, byte [esi]
xor bl, 0x36
mov byte [eax], bl
movzx ebx, byte [esi]
xor bl, 0x5c
mov byte [edx], bl
inc esi
jmp 0x530ada
mov byte [eax], 0x36
mov byte [edx], 0x5c
inc ecx
inc edx
inc eax
cmp ecx, 0x40
jne 0x530ab9
lea eax, [ebp - 0x60]
call fcn.0052ffb0
lea edx, [ebp - 0xa0]
lea eax, [ebp - 0x60]
mov ecx, 0x40
call fcn.0052ffd8
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x60]
mov ecx, dword [ebp - 8]
call fcn.0053094c
lea edx, [ebp - 0x60]
mov eax, dword [ebp + 8]
call fcn.005300ac
lea eax, [ebp - 0x60]
call fcn.0052ffb0
lea edx, [ebp - 0xe0]
lea eax, [ebp - 0x60]
mov ecx, 0x40
call fcn.0052ffd8
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x60]
mov ecx, 0x10
call fcn.0052ffd8
lea edx, [ebp - 0x60]
mov eax, dword [ebp + 8]
call fcn.005300ac
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x53bc18
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x53bc21
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x53bde7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0053bf7c
xor eax, eax
push ebp
push 0x53bdb8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 8
je 0x53bc71
call fcn.0040568c
jmp 0x53bdbf
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 8
je 0x53bd46
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 1
je 0x53bcc6
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x53bcc6
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0053bb6c
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push ebx
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407280
mov eax, dword [ebp - 0xc]
push eax
mov edi, dword [ebp - 4]
movzx ecx, byte [ebp - 5]
mov edx, esi
mov eax, dword [edi + 0x3c]
call dword [edi + 0x38]
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 4
je 0x53bd05
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0053bb6c
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push ebx
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00407280
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
call fcn.00406e68
push eax
call sub.kernel32.dll_OutputDebugStringW
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 2
je 0x53bda2
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.0053bb6c
push dword [ebp - 0x24]
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push ebx
push 0x53be04
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00407280
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0053bb8c
jmp 0x53bda2
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 1
je 0x53bd69
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x53bd69
push ebx
mov edi, dword [ebp - 4]
movzx ecx, byte [ebp - 5]
mov edx, esi
mov eax, dword [edi + 0x3c]
call dword [edi + 0x38]
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 4
je 0x53bd7f
mov eax, ebx
call fcn.00406e68
push eax
call sub.kernel32.dll_OutputDebugStringW
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 2
je 0x53bda2
lea eax, [ebp - 0x28]
mov ecx, 0x53be04
mov edx, ebx
call fcn.004071b0
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0053bb8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53bdbf
mov eax, dword [ebp - 4]
call fcn.0053bf84
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53bdee
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00406dd4
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00406dd4
ret
Function at 0x540150
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, ecx
mov dword [esp], edx
mov ebp, eax
xor esi, esi
mov ebx, dword [esp]
jmp 0x540164
inc ebx
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
test edx, edx
jg 0x540163
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
mov ebx, eax
mov eax, edi
xor ecx, ecx
mov edx, ebx
call fcn.0040674c
xor ebx, ebx
cmp esi, dword [esp]
jge 0x5402c8
inc ebx
mov eax, edi
call fcn.004064e0
movzx edx, byte [ebp + esi]
and dl, 0xfc
movzx edx, dl
shr edx, 2
movzx edx, byte [edx + 0x71c5c8]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 1]
cmp eax, dword [esp]
jge 0x540281
inc ebx
mov eax, edi
call fcn.004064e0
movzx edx, byte [ebp + esi]
and dl, 3
movzx edx, dl
shl edx, 4
movzx ecx, byte [ebp + esi + 1]
and cl, 0xf0
movzx ecx, cl
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + 0x71c5c8]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 2]
cmp eax, dword [esp]
jge 0x540250
inc ebx
mov eax, edi
call fcn.004064e0
movzx edx, byte [ebp + esi + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx ecx, byte [ebp + esi + 2]
and cl, 0xc0
movzx ecx, cl
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + 0x71c5c8]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.004064e0
movzx edx, byte [ebp + esi + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + 0x71c5c8]
mov byte [eax + ebx - 1], dl
jmp 0x5402bc
inc ebx
mov eax, edi
call fcn.004064e0
movzx edx, byte [ebp + esi + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx edx, byte [edx + 0x71c5c8]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.004064e0
mov byte [eax + ebx - 1], 0x3d
jmp 0x5402bc
inc ebx
mov eax, edi
call fcn.004064e0
movzx edx, byte [ebp + esi]
and dl, 3
movzx edx, dl
shl edx, 4
movzx edx, byte [edx + 0x71c5c8]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.004064e0
mov byte [eax + ebx - 1], 0x3d
inc ebx
mov eax, edi
call fcn.004064e0
mov byte [eax + ebx - 1], 0x3d
add esi, 3
cmp esi, dword [esp]
jl 0x540198
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x541504
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov esi, 0x30
mov edi, 0x71c724
mov ecx, dword [esp]
lea edx, [esp + 0xc]
movzx ebx, byte [edi]
movzx ebx, byte [eax + ebx - 1]
xor bl, byte [ecx]
mov byte [edx], bl
inc edx
inc ecx
inc edi
dec esi
jne 0x541523
mov esi, 1
mov edx, 0x71c82c
mov ecx, esi
dec ecx
mov eax, ecx
add eax, eax
lea eax, [eax + eax*2]
add ecx, ecx
add ecx, ecx
movzx ebx, byte [esp + eax + 0xc]
mov edi, ebx
add edi, edi
movzx ebx, byte [esp + eax + 0x11]
add edi, ebx
movzx ebx, byte [esp + eax + 0xd]
add ebx, ebx
add ebx, ebx
add ebx, ebx
movzx ebp, byte [esp + eax + 0xe]
add ebp, ebp
add ebp, ebp
add ebx, ebp
movzx ebp, byte [esp + eax + 0xf]
add ebp, ebp
add ebx, ebp
movzx eax, byte [esp + eax + 0x10]
add ebx, eax
mov dword [esp + 8], ebx
mov eax, 1
mov ebx, eax
dec ebx
je 0x54159c
dec ebx
je 0x5415be
dec ebx
je 0x5415e0
dec ebx
je 0x541601
jmp 0x54161b
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 8
movzx ebx, bl
shr ebx, 3
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x54161b
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 4
movzx ebx, bl
shr ebx, 2
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x54161b
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 2
movzx ebx, bl
shr ebx, 1
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x54161b
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 1
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
inc eax
cmp eax, 5
jne 0x54158c
inc esi
add edx, 0x40
cmp esi, 9
jne 0x54153f
mov esi, 0x20
mov eax, 0x71c754
mov edx, dword [esp + 4]
movzx ecx, byte [eax]
movzx ecx, byte [esp + ecx + 0x3b]
mov byte [edx], cl
inc edx
inc eax
dec esi
jne 0x541640
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x54167c
Capabilities:
Encrypt data using des

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], ecx
mov esi, eax
movzx eax, dl
movzx ebx, byte [eax + 0x71c7db]
test bl, bl
jbe 0x5416ad
lea eax, [esi + 0x3e0]
call fcn.00541658
lea eax, [esi + 0x3fc]
call fcn.00541658
dec bl
jne 0x541693
mov cl, 0x30
mov edi, 0x71c7ac
mov eax, dword [esp]
movzx edx, byte [edi]
cmp dl, 0x1c
ja 0x5416ce
movzx edx, dl
movzx edx, byte [esi + edx + 0x3df]
mov byte [eax], dl
jmp 0x5416db
movzx edx, dl
movzx edx, byte [esi + edx + 0x3df]
mov byte [eax], dl
inc eax
inc edi
dec cl
jne 0x5416b7
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x5416e8
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbdc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov bl, 1
lea esi, [ebp - 0x421]
mov eax, edi
mov edx, ebx
call fcn.0054149c
mov byte [esi], al
inc ebx
inc esi
cmp bl, 0x41
jne 0x541704
mov bl, 0x1c
mov esi, str.91__
lea edi, [ebp - 0x41]
movzx edx, byte [esi]
mov eax, dword [ebp - 8]
call fcn.0054149c
mov byte [edi], al
movzx edx, byte [esi + 0x1c]
mov eax, dword [ebp - 8]
call fcn.0054149c
mov byte [edi + 0x1c], al
inc edi
inc esi
dec bl
jne 0x541720
mov bl, 1
lea esi, [ebp - 0x3a1]
mov ecx, esi
lea eax, [ebp - 0x421]
mov edx, ebx
call fcn.0054167c
inc ebx
add esi, 0x30
cmp bl, 0x11
jne 0x54174a
mov bl, 1
mov eax, 0x71c6a4
lea edx, [ebp - 0xa1]
cmp bl, 0x20
ja 0x541783
movzx ecx, byte [eax]
movzx ecx, byte [ebp + ecx - 0x422]
mov byte [edx], cl
jmp 0x541790
movzx ecx, byte [eax]
movzx ecx, byte [ebp + ecx - 0x422]
mov byte [edx], cl
inc ebx
inc edx
inc eax
cmp bl, 0x41
jne 0x54176f
mov byte [ebp - 9], 1
lea esi, [ebp - 0x3a1]
cmp byte [ebp + 8], 0
je 0x5417ba
lea ecx, [ebp - 0x61]
mov edx, esi
lea eax, [ebp - 0x81]
call fcn.00541504
jmp 0x5417e1
movzx eax, byte [ebp - 9]
mov edx, 0x11
sub edx, eax
mov eax, edx
add eax, eax
lea eax, [eax + eax*2]
lea edx, [ebp + eax*8 - 0x3d1]
lea ecx, [ebp - 0x61]
lea eax, [ebp - 0x81]
call fcn.00541504
mov bl, 0x20
lea eax, [ebp - 0xa1]
movzx edx, byte [eax]
xor byte [eax + 0x40], dl
inc eax
dec bl
jne 0x5417e9
push esi
lea esi, [ebp - 0x81]
lea edi, [ebp - 0xa1]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
lea esi, [ebp - 0x61]
lea edi, [ebp - 0x81]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
inc byte [ebp - 9]
add esi, 0x30
cmp byte [ebp - 9], 0x11
jne 0x5417a2
mov bl, 0x40
mov esi, 0x71c6e4
lea eax, [ebp - 0x3e1]
movzx edx, byte [esi]
cmp dl, 0x20
ja 0x54184f
movzx edx, dl
movzx edx, byte [ebp + edx - 0x82]
mov byte [eax], dl
jmp 0x54185c
movzx edx, dl
movzx edx, byte [ebp + edx - 0xc2]
mov byte [eax], dl
inc eax
inc esi
dec bl
jne 0x541838
mov bl, 1
lea esi, [ebp - 0x3e1]
movzx ecx, byte [esi]
mov eax, dword [ebp - 4]
mov edx, ebx
call fcn.005414c4
inc ebx
inc esi
cmp bl, 0x41
jne 0x54186a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4