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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x47a750
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0047a62c
test al, al
je 0x47a732
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00405214
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x47a732
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004055e4
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.004055e4
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040531c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x47a6eb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a757
lea eax, [ebp - 0x2c]
call fcn.00405124
lea eax, [ebp - 0xc]
call fcn.00405124
ret

Function at 0x47a760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x47a818
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0047a62c
test al, al
je 0x47a7fa
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00405214
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x47a7fa
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004055e4
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0xc]
call fcn.004055e4
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040531c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x47a7b3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a81f
lea eax, [ebp - 0x2c]
call fcn.00405124
lea eax, [ebp - 0xc]
call fcn.00405124
ret

Function at 0x47a828
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 8
call fcn.00403a70
lea eax, [ebx + 4]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
mov eax, edi
call fcn.004055e4
push eax
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 1]
mov eax, dword [ebp - 8]
call fcn.0047a1d8
mov byte [ebx], al
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x47aa50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0047a160
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004055e4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x47aaae
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5134a0]
mov dl, 1
mov eax, dword [0x479fdc]
call fcn.00410ec0
call fcn.00404ab4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x47aab8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004055e4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x47ab10
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5137cc]
mov dl, 1
mov eax, dword [0x479fdc]
call fcn.00410ec0
call fcn.00404ab4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0047a1d8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4a9d90
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x4a9e41
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp word [eax + 0x42], 0
je 0x4a9dcb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x34]
mov esi, dword [ebp - 4]
mov edx, ebx
mov eax, dword [esi + 0x44]
call dword [esi + 0x40]
mov byte [ebx + 0x1d4], 1
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x51]
mov byte [ebx + 0x255], al
mov eax, dword [ebp - 4]
mov dl, byte [eax + 0x50]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x190]
mov byte [ebx + 0x1c4], 0
mov cl, 1
mov edx, 0x64
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x27c]
mov eax, dword [ebx + 0x17c]
call fcn.0049dc48
mov eax, ebx
call fcn.00493030
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9e48
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
je 0x4a9e40
call fcn.004042d4
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x34], edx
ret
Function at 0x4a9f78
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x4aa09b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x54]
mov byte [ebx + 0x21a], al
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x53]
mov byte [ebx + 0x1c0], al
mov byte [ebx + 0x1b0], 0
mov byte [ebx + 0x1b1], 0
mov eax, dword [ebx + 0x17c]
call fcn.0049ed4c
mov eax, dword [ebx + 0x17c]
call fcn.0049ecb4
mov eax, dword [ebx + 0x17c]
call fcn.0049dc48
cmp byte [ebx + 0x254], 0
je 0x4aa03c
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x90]
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x38]
test esi, esi
je 0x4aa035
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x208]
test al, al
je 0x4aa014
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x38]
mov eax, ebx
call fcn.004944ec
jmp 0x4aa01b
mov eax, ebx
call fcn.00493ad8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x38]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x218]
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x38], edx
jmp 0x4aa03c
mov eax, ebx
call fcn.00493ad8
mov eax, ebx
call fcn.00493030
xor ecx, ecx
mov edx, 0x64
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x27c]
mov byte [ebx + 0x1c4], 0
cmp byte [ebx + 0x1c3], 0
je 0x4aa06b
mov eax, ebx
call fcn.004a1550
mov eax, ebx
call fcn.00493d80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa0a2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
je 0x4aa09a
call fcn.004042d4
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x34], edx
ret
Function at 0x4adf04
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ae075
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ae050
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.0040530c
lea eax, [ebp - 0x118]
mov edx, 0x4ae08c
call fcn.004053ec
mov eax, dword [ebp - 0x118]
call fcn.004055e4
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4adfc2
lea eax, [ebp - 0x111]
call fcn.0040d680
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00405214
jmp 0x4adfc9
mov eax, esi
call fcn.00405124
cmp bl, 0x61
jae 0x4adfea
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.00411c74
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00405178
jmp 0x4ae004
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.00411be8
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00405178
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x4ae098
call fcn.0040ddc0
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00405178
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae057
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4b4320
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004055d4
xor eax, eax
push ebp
push 0x4b437e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.004b44a4
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x4b4366
lea eax, [ebp - 4]
call fcn.004b44a4
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x4b4368
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4385
lea eax, [ebp - 4]
call fcn.00405124
ret

Function at 0x4b438c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004055d4
xor eax, eax
push ebp
push 0x4b43f0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xe
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 4]
call fcn.004b44a4
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040d8a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b43f7
lea eax, [ebp - 4]
call fcn.00405124
ret
Function at 0x4b43fc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004055d4
xor eax, eax
push ebp
push 0x4b4460
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
push eax
push 0
push 0x4b446c
lea eax, [ebp - 4]
call fcn.004b44a4
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.004b41e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4467
lea eax, [ebp - 4]
call fcn.00405124
ret

Function at 0x4b4e0c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004055d4
xor eax, eax
push ebp
push 0x4b4f05
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [esi + 4]
mov word [ebx + 4], ax
mov ax, word [esi + 6]
mov word [ebx + 6], ax
mov ax, word [esi + 8]
mov word [ebx + 8], ax
mov ax, word [esi + 0xa]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.004b3c48
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
mov ax, word [esi + 0x20]
mov word [ebx + 0x22], ax
mov ax, word [esi + 0x22]
mov word [ebx + 0x24], ax
mov ax, word [esi + 0x24]
mov word [ebx + 0x26], ax
mov eax, dword [esi + 0x26]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040d09c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004b5fe8
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040cf80
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004b605c
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4f0c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405148
ret
Function at 0x4b4f14
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004055d4
xor eax, eax
push ebp
push 0x4b501d
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
mov ax, word [esi + 4]
mov word [ebx + 6], ax
mov ax, word [esi + 6]
mov word [ebx + 8], ax
mov ax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.004b3c48
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
cmp dword [ebp - 4], 0
je 0x4b4fe3
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040d09c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004b5fe8
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040cf80
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004b605c
jmp 0x4b4ff5
xor edx, edx
mov eax, ebx
call fcn.004b5fe8
xor edx, edx
mov eax, ebx
call fcn.004b605c
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b5024
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405148
ret

Function at 0x4bc7fc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x170]
mov edx, ebx
mov eax, edi
call fcn.004bca38
mov esi, eax
mov dword [edi + 0x170], esi
and esi, 0xff
add dword [edi + 0x174], esi
imul esi, dword [edi + 0x174], 0x8088405
inc esi
mov dword [edi + 0x174], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x178]
mov eax, edi
call fcn.004bca38
mov dword [edi + 0x178], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4bc874
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4bc89c
inc esi
mov eax, edi
call fcn.004bc858
xor byte [ebx], al
mov dl, byte [ebx]
mov eax, edi
call fcn.004bc7fc
inc ebx
dec esi
jne 0x4bc886
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4bc92c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.004055d4
xor eax, eax
push ebp
push 0x4bc9a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.004bc8a4
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.004bc858
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.004bc7fc
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x4bc96c
mov bl, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bc9a8
lea eax, [ebp - 4]
call fcn.00405124
ret
Function at 0x4bd748
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4bd92c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x4bd8e8
mov eax, dword [ebp - 4]
call fcn.004bf22c
cmp ebx, eax
jge 0x4bd8e8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.004b1aa4
mov edx, dword [0x4b48a0]
call fcn.00404490
mov esi, eax
mov eax, esi
call fcn.004b5f50
test al, al
je 0x4bd8de
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x4bd8d2
xor eax, eax
push ebp
push 0x4bd8cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004bde58
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.004246a8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00405770
mov eax, dword [ebp - 8]
call fcn.0040563c
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
mov al, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004bdac4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
mov dl, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bd916
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x4bd8ca
mov eax, dword [ebp - 4]
call fcn.004bdee0
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0040d8a8
jmp 0x4bd916
mov eax, dword [ebp - 8]
call fcn.00405124
jmp 0x4bd916
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.0040c994
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x41f380]
call fcn.00410e04
call fcn.00404ab4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bd933
lea eax, [ebp - 0x54]
call fcn.00405124
ret
Function at 0x4c7b28
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
mov ebx, eax
call fcn.004c7998
test al, al
je 0x4c7b55
lea edx, [ebp - 0x3c]
mov eax, ebx
call fcn.004c7a90
test al, al
jne 0x4c7b4d
call fcn.00412604
mov eax, dword [ebp - 0x38]
imul dword [ebp - 0x34]
jmp 0x4c7b81
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, ebx
call fcn.004055e4
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
jne 0x4c7b7b
call fcn.00412604
mov eax, dword [ebp - 4]
imul dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4cd8c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
push ebx
push esi
mov esi, edx
mov ebx, eax
cmp dword [ebx + 0x1e0], 0
je 0x4cd8e7
mov eax, dword [ebx + 0x1e0]
call fcn.004b3ec0
test al, al
jne 0x4cd907
lea eax, [ebp - 0x12d]
push eax
push 0x12d
call sub.kernel32.dll_GetTempPathA
mov edx, esi
lea eax, [ebp - 0x12d]
call fcn.004b41e8
jmp 0x4cd914
mov eax, esi
mov edx, dword [ebx + 0x1e0]
call fcn.00405178
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4cf4a4
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
and edx, edx
je 0x4cf4c2
and ecx, ecx
jle 0x4cf4c2
push ebx
xor al, byte [edx]
imul eax, eax, 0x8088405
inc eax
mov ebx, eax
shr ebx, 0x18
mov byte [edx], bl
inc edx
dec ecx
jne 0x4cf4ad
pop ebx
ret

Function at 0x4cf730
Capabilities:
Encode data using xor

Disassembly:
and edx, edx
je 0x4cf753
and ecx, ecx
jle 0x4cf753
push ebx
push edi
xor ebx, ebx
lea edi, cs:[0x4cf759]
mov bl, al
shr eax, 8
xor bl, byte [edx]
xor eax, dword [edi + ebx*4]
inc edx
dec ecx
jne 0x4cf743
pop edi
pop ebx
ret
Function at 0x4e0520
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov edi, dword [0x5136cc]
mov edi, dword [edi]
mov esi, dword [ebp - 8]
mov eax, dword [esi]
call edi
mov dword [ebp - 4], eax
movzx edi, word [ebp - 2]
movzx eax, word [ebp - 4]
mov dword [ebp - 0xc], eax
mov edx, dword [0x5136cc]
mov edx, dword [edx]
mov eax, dword [esi + 4]
call edx
mov dword [ebp - 4], eax
movzx eax, word [ebp - 2]
mov dword [ebp - 0x10], eax
movzx eax, word [ebp - 4]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 4], eax
movzx edx, word [ebx]
mov eax, edi
call fcn.004e04f0
mov edi, eax
movzx eax, word [ebx + 2]
add dword [ebp - 0xc], eax
movzx eax, word [ebx + 4]
add dword [ebp - 0x10], eax
movzx edx, word [ebx + 6]
mov eax, dword [ebp - 0x14]
call fcn.004e04f0
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x10]
xor esi, edi
movzx edx, word [ebx + 8]
mov eax, esi
call fcn.004e04f0
mov esi, eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x14]
add eax, esi
movzx edx, word [ebx + 0xa]
call fcn.004e04f0
add esi, eax
xor edi, eax
xor dword [ebp - 0x14], esi
xor esi, dword [ebp - 0xc]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
add ebx, 0xc
inc dword [ebp - 4]
cmp dword [ebp - 4], 8
jne 0x4e056e
movzx edx, word [ebx]
mov eax, edi
call fcn.004e04f0
mov word [ebp - 2], ax
mov ax, word [ebp - 0x10]
add ax, word [ebx + 2]
mov word [ebp - 4], ax
mov edi, dword [0x5136cc]
mov edi, dword [edi]
mov eax, dword [ebp - 4]
call edi
mov esi, dword [ebp - 8]
mov dword [esi], eax
mov ax, word [ebp - 0xc]
add ax, word [ebx + 4]
mov word [ebp - 2], ax
movzx edx, word [ebx + 6]
mov eax, dword [ebp - 0x14]
call fcn.004e04f0
mov word [ebp - 4], ax
mov ebx, dword [0x5136cc]
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call ebx
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e0d88
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
add eax, 0x100
mov dword [ebp - 8], eax
mov ecx, 1
xor ebx, ebx
mov eax, ecx
and al, 0xff
mov edx, dword [ebp - 4]
mov byte [edx], al
mov eax, ecx
and eax, 0xff
mov edx, dword [ebp - 8]
lea eax, [edx + eax]
push eax
pop eax
mov byte [eax], bl
lea eax, [ecx + ecx*4]
lea eax, [eax + eax*8]
mov ecx, 0x101
cdq
idiv ecx
mov ecx, edx
inc dword [ebp - 4]
inc ebx
cmp ebx, 0x100
jne 0x4e0db3
pop ebx
pop ecx
pop ecx
pop ebp
ret