joyce8/EMBER2024-capa huggingface dataset:
Function at 0x482bd4
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, eax
push esi
call sub.user32.dll_IsIconic
test eax, eax
je 0x482bf1
push 9
push esi
call sub.user32.dll_ShowWindow
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
je 0x482cf2
mov eax, dword [0x4eb664]
cmp dword [eax], 2
jne 0x482c12
mov eax, dword [0x4eb1f0]
cmp dword [eax], 4
jg 0x482c46
mov eax, dword [0x4eb664]
cmp dword [eax], 1
jne 0x482cda
mov eax, dword [0x4eb1f0]
cmp dword [eax], 4
jg 0x482c46
mov eax, dword [0x4eb1f0]
cmp dword [eax], 4
jne 0x482cda
mov eax, dword [0x4eb494]
cmp dword [eax], 0
jle 0x482cda
xor ebx, ebx
push 0
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov edi, eax
push 0
push esi
call sub.user32.dll_GetWindowThreadProcessId
mov dword [ebp - 4], eax
push 0xffffffffffffffff
push edi
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_AttachThreadInput
test eax, eax
je 0x482c94
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
push 0
push edi
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_AttachThreadInput
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
sete bl
test bl, bl
jne 0x482ce6
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x2000
call sub.user32.dll_SystemParametersInfoA
push 2
push 0
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoA
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
push 2
mov eax, dword [ebp - 8]
push eax
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoA
jmp 0x482ce6
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
sete bl
jmp 0x482cf4
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x482e48
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
mov ebx, edx
sub al, 0xa
je 0x482e67
dec al
je 0x482e91
dec al
je 0x482ebb
jmp 0x482eed
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
test eax, eax
jne 0x482eed
mov esi, 0x482f08
lea edi, [ebp - 0x105]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x482eed
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
jne 0x482eed
mov esi, 0x482f08
lea edi, [ebp - 0x105]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x482eed
lea eax, [ebp - 0x105]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
test eax, eax
jne 0x482ee5
mov esi, 0x482f08
lea edi, [ebp - 0x105]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x482eed
mov byte [ebp + eax - 0x106], 0
mov eax, ebx
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404db4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x483088
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
mov ebx, edx
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x4830d4
lea eax, [ebp - 0x109]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, ebx
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.00404db4
mov eax, dword [ebp - 4]
push eax
call sub.ole32.dll_CoTaskMemFree
jmp 0x4830db
mov eax, ebx
call fcn.00404b44
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4831f0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x48323c
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
jne 0x48323c
lea eax, [ebp - 8]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
mov dword [ebp - 0xc], eax
test bl, bl
je 0x48330f
xor eax, eax
push ebp
push 0x483308
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x400
call fcn.00402aa0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x400
mov eax, dword [ebp - 0xc]
push eax
push 2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_GetTokenInformation
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
test bl, bl
je 0x4832ec
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x4e0880]
push eax
mov eax, dword [0x4e087c]
push eax
push 2
push 0x4e0874
call sub.advapi32.dll_AllocateAndInitializeSid
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
dec ebx
test ebx, ebx
jl 0x4832e3
inc ebx
xor esi, esi
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + esi*8 + 4]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x4832df
mov byte [ebp - 1], 1
jmp 0x4832e3
inc esi
dec ebx
jne 0x4832c4
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_FreeSid
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48330f
cmp dword [ebp - 0xc], 0
je 0x483307
mov eax, dword [ebp - 0xc]
call fcn.00402ad0
ret
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4873a8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x487436
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00409910
test al, al
je 0x4873e4
lea eax, [ebp - 4]
mov edx, esi
call fcn.00404bdc
jmp 0x4873ec
lea eax, [ebp - 4]
call fcn.00487374
lea eax, [ebp - 0x108]
push eax
xor bl, 1
xor eax, eax
mov al, bl
push eax
push 0x487444
mov eax, dword [ebp - 4]
call fcn.00405004
push eax
call sub.kernel32.dll_GetTempFileNameA
mov eax, edi
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00404db4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48743d
lea eax, [ebp - 4]
call fcn.00404b44
ret

Function at 0x4874b4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x487570
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00409f14
mov edx, dword [ebp - 4]
mov eax, 0x487588
call fcn.0042ee74
test al, al
je 0x4874fd
lea eax, [ebp - 4]
mov ecx, 8
mov edx, 1
call fcn.004050a4
jmp 0x487520
mov edx, dword [ebp - 4]
mov eax, 0x48759c
call fcn.0042ee74
test al, al
je 0x487520
lea eax, [ebp - 4]
mov ecx, 4
mov edx, 1
call fcn.004050a4
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00409e00
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0040e03c
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.00404bdc
mov eax, dword [ebp - 4]
call fcn.00405004
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487577
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404b68
ret

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

Disassembly:
push ebx
push esi
push ecx
mov dword [esp], edx
mov edx, dword [eax]
dec ecx
test ecx, ecx
jl 0x488391
inc ecx
mov ebx, edx
mov esi, dword [esp]
xor bl, byte [esi]
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x4e0ac4]
shr edx, 8
and edx, 0xffffff
xor ebx, edx
mov edx, ebx
inc dword [esp]
dec ecx
jne 0x48836a
mov dword [eax], edx
pop edx
pop esi
pop ebx
ret

Function at 0x4890d4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push ecx
mov dword [esp], edx
mov edx, dword [eax]
sub ecx, 1
jno 0x4890e6
call fcn.00403cf4
test ecx, ecx
jl 0x48910f
inc ecx
mov ebx, edx
mov esi, dword [esp]
xor bl, byte [esi]
and ebx, 0xff
mov esi, dword [0x4eafec]
mov ebx, dword [esi + ebx*4]
shr edx, 8
xor ebx, edx
mov edx, ebx
add dword [esp], 1
dec ecx
jne 0x4890eb
mov dword [eax], edx
pop edx
pop esi
pop ebx
ret
Function at 0x48ad04
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48ad4a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x30]
call fcn.0048a14c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ad51
lea eax, [ebp - 4]
call fcn.00404b44
ret

Function at 0x4937b0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x493982
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0048a2c0
cmp ebx, eax
jl 0x493817
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x18]
push eax
push 0
lea edx, [ebp - 0x1c]
mov eax, dword [0x4eb4e0]
call fcn.00406b90
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x416810]
call fcn.0040d328
call fcn.00404558
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0048a2a8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x6a]
sub al, 2
jne 0x493842
mov dl, 1
mov eax, dword [0x485ab4]
call fcn.00487038
call fcn.00404558
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x6a], 1
jne 0x49388c
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x20]
call fcn.00404e04
cmp eax, 0x64
jge 0x49387b
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x10]
call fcn.004916a0
mov eax, dword [ebp - 0x24]
call fcn.00404e04
cmp eax, 0x64
jl 0x49388c
mov dl, 1
mov eax, dword [0x485ab4]
call fcn.00487038
call fcn.00404558
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x10]
test al, al
je 0x4938a5
mov eax, dword [ebp - 8]
call fcn.004872a0
jmp 0x49393e
push 0xffff
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x417054]
call fcn.0041b2a4
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x49390c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4938fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 0xc]
mov edx, ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x493902
mov eax, dword [ebp - 0xc]
call fcn.00403db8
ret
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x48]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [ebp - 8]
call fcn.00488654
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.0048870c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x493989
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404b68
ret
Function at 0x493990
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x493ab6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi + 0x30]
call fcn.0048a2c0
cmp ebx, eax
jl 0x4939ee
mov dword [ebp - 8], ebx
mov byte [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push 0
lea edx, [ebp - 0xc]
mov eax, dword [0x4eb4e0]
call fcn.00406b90
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x416810]
call fcn.0040d328
call fcn.00404558
mov edx, ebx
mov eax, dword [esi + 0x30]
call fcn.0048a2a8
mov ebx, eax
mov al, byte [ebx + 0x6a]
sub al, 2
jne 0x493a12
mov dl, 1
mov eax, dword [0x485ab4]
call fcn.00487038
call fcn.00404558
cmp byte [ebx + 0x6a], 1
jne 0x493a57
lea edx, [ebp - 0x10]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00404e04
cmp eax, 0x64
jge 0x493a46
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.004916a0
mov eax, dword [ebp - 0x14]
call fcn.00404e04
cmp eax, 0x64
jl 0x493a57
mov dl, 1
mov eax, dword [0x485ab4]
call fcn.00487038
call fcn.00404558
mov eax, dword [ebx + 0xac]
shl eax, 9
cdq
add eax, dword [ebx + 0xa0]
adc edx, dword [ebx + 0xa4]
push edx
push eax
mov eax, dword [esi + 4]
call fcn.0041ae10
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x24]
cmp edx, 0
jne 0x493a86
cmp eax, 0
je 0x493a9b
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x24]
push edx
push eax
mov edx, dword [esi + 4]
mov eax, edi
call fcn.0041b08c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x493abd
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404b68
ret
Function at 0x494940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x10], eax
cmp esi, dword [ebp - 4]
jle 0x49495e
inc dword [ebp - 0x10]
mov eax, dword [ebx + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp - 4]
dec edx
test edx, edx
jl 0x4949ac
inc edx
shl eax, 5
mov ecx, dword [ebp - 0x10]
movzx ecx, byte [ecx + 2]
xor eax, ecx
and eax, 0x3fff
mov ecx, dword [ebp - 0x10]
and ecx, dword [ebx + 0x58]
mov edi, dword [ebp - 8]
lea ecx, [edi + ecx*4]
push ecx
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + eax*4]
pop edi
mov dword [edi], ecx
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov dword [ecx + eax*4], edi
inc dword [ebp - 0x10]
dec edx
jne 0x494976
mov edx, dword [ebp - 8]
mov dword [ebx + 0x18], edx
mov edx, dword [ebp - 0xc]
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x28], eax
cmp byte [ebx + 4], 0
je 0x4949e4
add dword [ebx + 0x44], esi
add dword [ebx + 0x48], esi
cmp byte [ebx + 0x34], 0
je 0x494a02
mov eax, dword [ebx + 0x44]
cmp eax, dword [ebx + 0x40]
jb 0x494a02
mov eax, ebx
call fcn.00494da4
jmp 0x494a02
mov eax, dword [ebp - 0x10]
sub eax, dword [ebx + 0x44]
cmp eax, dword [ebx + 0x5c]
jl 0x494a02
mov byte [ebx + 4], 1
mov eax, dword [ebp - 0x10]
sub eax, dword [ebx + 0x5c]
sub eax, dword [ebx + 0x44]
add dword [ebx + 0x44], eax
add dword [ebx + 0x48], eax
cmp word [ebx + 0x3a], 0
je 0x494a35
add dword [ebx + 0x10], esi
mov esi, dword [ebx + 0x10]
test esi, 0xfff
jne 0x494a35
mov dword [ebp - 0x14], esi
fild dword [ebp - 0x14]
fmul dword [0x494a4c]
fild dword [ebx + 0x50]
fdivp st(1)
call fcn.004030b4
mov edx, eax
mov eax, dword [ebx + 0x3c]
call dword [ebx + 0x38]
mov eax, dword [ebx + 0x44]
cmp eax, dword [ebx + 0x40]
jb 0x494a44
mov eax, ebx
call fcn.00494da4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x497008
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
lea esi, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [esi], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [esi + 8], eax
mov dword [ebp - 0xc], edx
mov ebx, dword [ebp - 8]
dec ebx
test ebx, ebx
jl 0x49709c
inc ebx
mov eax, dword [esi + 8]
and eax, 0xffff
or eax, 2
mov edx, dword [ebp - 0xc]
mov dl, byte [edx]
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor dl, cl
mov eax, dword [ebp - 0xc]
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
mov edx, dword [esi]
call fcn.00488398
mov edi, eax
mov dword [esi], edi
and edi, 0xff
add dword [esi + 4], edi
imul edi, dword [esi + 4], 0x8088405
inc edi
mov dword [esi + 4], edi
mov eax, edi
shr eax, 0x18
mov edx, dword [esi + 8]
call fcn.00488398
mov dword [esi + 8], eax
inc dword [ebp - 0xc]
dec ebx
jne 0x497040
mov eax, dword [ebp - 4]
mov edx, dword [esi]
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov edx, dword [esi + 4]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
mov edx, dword [esi + 8]
mov dword [eax + 0x10], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov edx, ecx
mov eax, ebx
call fcn.00497150
mov dword [ebp - 8], 0xc
mov edi, dword [ebp - 4]
lea esi, [ebp - 0x14]
mov eax, dword [ebx + 0x10]
and eax, 0xffff
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
shr edx, 8
xor dl, byte [edi]
mov byte [esi], dl
mov edx, dword [ebx + 8]
mov al, byte [esi]
call fcn.00488398
mov dword [ebx + 8], eax
mov eax, dword [ebx + 8]
and eax, 0xff
add dword [ebx + 0xc], eax
imul eax, dword [ebx + 0xc], 0x8088405
inc eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0xc]
shr eax, 0x18
mov edx, dword [ebx + 0x10]
call fcn.00488398
mov dword [ebx + 0x10], eax
inc esi
inc edi
dec dword [ebp - 8]
jne 0x4970e4
mov al, byte [ebp + 0xb]
cmp al, byte [ebp - 9]
sete al
mov byte [ebx + 4], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x497150
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebx + 8], 0x12345678
mov dword [ebx + 0xc], 0x23456789
mov dword [ebx + 0x10], 0x34567890
mov eax, dword [ebp - 4]
call fcn.00404e04
mov esi, eax
test esi, esi
jle 0x4971c1
mov edi, 1
mov eax, dword [ebp - 4]
mov al, byte [eax + edi - 1]
mov edx, dword [ebx + 8]
call fcn.00488398
mov dword [ebx + 8], eax
mov eax, dword [ebx + 8]
and eax, 0xff
add dword [ebx + 0xc], eax
imul eax, dword [ebx + 0xc], 0x8088405
inc eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0xc]
shr eax, 0x18
mov edx, dword [ebx + 0x10]
call fcn.00488398
mov dword [ebx + 0x10], eax
inc edi
dec esi
jne 0x497184
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4bf9d6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
jmp 0x4bfa8e
mov eax, dword [ebp + 8]
add dword [ebp + 8], 4
mov eax, dword [eax]
cdq
xor eax, edx
sub eax, edx
mov ecx, eax
shr ecx, 9
add eax, ecx
cmp eax, 0x100
jae 0x4bfa26
movsx edx, byte [eax + 0x4e6eac]
mov ecx, 9
sub ecx, edx
shl eax, cl
and eax, 0xff
movzx eax, byte [eax + 0x4e6fac]
shl edx, 8
add eax, edx
add ebx, eax
jmp 0x4bfa8e
cmp eax, 0x10000
jae 0x4bfa3e
mov edx, eax
shr edx, 8
movsx edx, byte [edx + 0x4e6eac]
add edx, 8
jmp 0x4bfa65
cmp eax, 0x1000000
jae 0x4bfa56
mov ecx, eax
shr ecx, 0x10
movsx edx, byte [ecx + 0x4e6eac]
add edx, 0x10
jmp 0x4bfa65
mov ecx, eax
shr ecx, 0x18
movsx edx, byte [ecx + 0x4e6eac]
add edx, 0x18
lea ecx, [edx - 9]
shr eax, cl
and eax, 0xff
movzx eax, byte [eax + 0x4e6fac]
mov ecx, edx
shl ecx, 8
add eax, ecx
mov edx, eax
add ebx, eax
test esi, esi
je 0x4bfa8e
cmp esi, edx
jg 0x4bfa8e
or eax, 0xffffffff
jmp 0x4bfa9f
mov edx, dword [ebp + 0xc]
add dword [ebp + 0xc], 0xffffffff
test edx, edx
jne 0x4bf9e5
mov eax, ebx
pop esi
pop ebx
pop ebp
ret

Function at 0x4c6fcc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x4c6ffb
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x4c707a
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.004c5880
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4c7048
mov cx, word [esp]
sub cx, si
jmp 0x4c704a
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4c7031
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4c7070
mov cx, word [esp]
sub cx, si
jmp 0x4c7072
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4c7059
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4c70d7
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.004c6ca0
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x4c70c2
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x4c70d7
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4c6fd6
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4cd61c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4ecf70
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x4cd63e
shr eax, 1
xor eax, 0xedb88320
jmp 0x4cd640
shr eax, 1
dec edx
jne 0x4cd62c
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4cd625
mov byte [0x4ed370], 1
pop esi
pop ebx
ret

Function at 0x4cd65c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x4ed370], 0
jne 0x4cd676
call fcn.004cd61c
mov eax, edi
dec eax
test eax, eax
jl 0x4cd69f
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4ecf70]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4cd680
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret