joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c06e8
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c08c9
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.004030e8
mov eax, dword [ebp - 4]
cmp word [eax + 0xa2], 0
je 0x4c0739
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x4c0753
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], eax
jmp 0x4c0758
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x80], 0
jne 0x4c076b
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x4c077c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
call fcn.004054b8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
call fcn.004054b8
push eax
mov eax, dword [ebp - 0x18]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.004bfc24
mov eax, dword [ebp - 0x24]
call fcn.004054b8
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
call fcn.004054b8
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004054b8
push eax
mov eax, dword [ebp - 4]
call fcn.004bfdd0
push eax
mov eax, dword [ebp - 4]
call fcn.004bfd8c
push eax
mov eax, dword [ebp - 4]
call fcn.004bfd24
push eax
push 0xf01ff
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004bfa6c
mov eax, dword [ebp - 0x28]
call fcn.004054b8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.004054b8
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x90], edx
cmp dword [ebp - 0x10], 0
jne 0x4c081c
call fcn.00411f44
xor eax, eax
push ebp
push 0x4c089f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4c0861
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp word [eax + 0xaa], 0
je 0x4c0857
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c0888
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c08a6
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x4c08d8
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x4c0904
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xb4]
call dword [ebx + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.004054b8
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4c092c
call fcn.00411f44
xor eax, eax
push ebp
push 0x4c0963
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x4c094c
call fcn.00411f44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c096a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x4c2b8c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4c2c9a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
push 0x4c2cac
push 0x4c2cb8
call sub.user32.dll_FindWindowA
mov ebx, eax
test ebx, ebx
jne 0x4c2c18
call fcn.004c2b6c
test al, al
je 0x4c2c14
lea eax, [ebp - 0x18]
call fcn.004c23b4
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 8]
mov ecx, 0x4c2cd4
call fcn.00405304
mov eax, dword [ebp - 8]
call fcn.0040b0b8
test al, al
je 0x4c2c14
push 1
mov eax, dword [ebp - 8]
call fcn.004054b8
push eax
call sub.kernel32.dll_WinExec
push 0x4c2cac
push 0x4c2cb8
call sub.user32.dll_FindWindowA
mov ebx, eax
test ebx, ebx
je 0x4c2c7c
mov eax, esi
call fcn.004052b8
mov edi, eax
inc edi
mov dword [ebp - 0x10], edi
mov eax, edi
call fcn.00402b84
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4c2c75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004054b8
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0040bc18
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x4a
push ebx
call sub.user32.dll_SendMessageA
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c2c7c
mov eax, dword [ebp - 0xc]
call fcn.00402bb4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c2ca1
lea eax, [ebp - 0x18]
call fcn.00404fdc
lea eax, [ebp - 8]
call fcn.00404fdc
ret

Function at 0x4c4434
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
push esi
mov eax, ebx
call fcn.004054b8
push eax
call sub.kernel32.dll_WinExec
cmp eax, 0x1f
seta al
pop esi
pop ebx
ret

Function at 0x4c4454
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
push esi
push 0
push 0
mov eax, ebx
call fcn.004054b8
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
pop esi
pop ebx
ret
Function at 0x4cd454
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004054a8
xor eax, eax
push ebp
push 0x4cd4dc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebx + 0xc]
mov edx, dword [ebp - 4]
call fcn.00405030
xor eax, eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x20], 1
mov dword [ebx + 0x1c], 1
mov eax, dword [ebx + 0xc]
call fcn.004052b8
mov esi, eax
mov dword [ebx + 0x28], esi
mov eax, esi
mov ecx, 0x64
cdq
idiv ecx
mov edx, eax
mov eax, 1
call fcn.0046c830
mov edi, eax
mov dword [ebx + 0x2c], edi
mov dword [ebx + 0x30], edi
mov eax, ebx
call fcn.004cd01c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cd4e3
lea eax, [ebp - 4]
call fcn.00404fdc
ret

Function at 0x4d6368
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 0x18], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d63c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.kernel32.dll_GetComputerNameA
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x14]
call fcn.0040be38
mov eax, dword [ebp - 0x18]
mov edx, ebx
call fcn.0040a204
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d63ca
lea eax, [ebp - 0x18]
call fcn.00404fdc
ret
Function at 0x4d65d8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x18], ebx
test dl, dl
je 0x4d65f5
add esp, 0xfffffff0
call fcn.00404404
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, dword [ebp - 8]
call fcn.004054a8
xor eax, eax
push ebp
push 0x4d6717
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.0040405c
cmp dword [ebp - 8], 0
jne 0x4d662a
lea eax, [ebp - 8]
call fcn.004c2400
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.004054b8
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov esi, eax
lea edx, [esi + 1]
lea eax, [ebx + 8]
call fcn.00405644
mov eax, dword [ebx + 8]
push eax
push esi
mov eax, dword [ebp - 0x10]
push eax
push edi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4d66f1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4d6740
mov eax, dword [ebx + 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4d66f1
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00408aa0
movzx eax, ax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x28]
mov ecx, 1
mov eax, 0x4d6764
call fcn.0040c3ec
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0xc]
call fcn.00405030
mov byte [ebx + 4], 1
xor edi, edi
mov esi, 0x61ff00
lea ecx, [ebp - 0x2c]
mov edx, dword [esi]
mov eax, ebx
call fcn.004d6798
mov edx, dword [ebp - 0x2c]
lea eax, [ebx + edi*4 + 0x10]
call fcn.00405030
inc edi
add esi, 4
cmp edi, 0xa
jne 0x4d66c9
mov eax, ebx
call fcn.004d69d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d671e
lea eax, [ebp - 0x2c]
call fcn.00404fdc
lea eax, [ebp - 0x18]
call fcn.00404fdc
lea eax, [ebp - 8]
call fcn.00404fdc
ret
Function at 0x4d98d0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4d98fe
mov eax, ebx
call fcn.004da384
cmp dword [ebx + 0x40], 0
je 0x4d98f7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4d996f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4d9961
cmp dword [ebx + 8], 0
je 0x4d9920
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4d9932
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4d9961
cmp dword [ebx + 8], 0
je 0x4d9913
cmp eax, 3
je 0x4d9945
dec eax
jne 0x4d9913
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4d9913
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4d9913
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4d998d
cmp dword [ebx + 0x14], 0xcc
je 0x4d998d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004d9998
pop ebx
ret
Function at 0x4ec1ec
Capabilities:
Get session user name
Query service configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ec35f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4ec2f2
push 0xf01ff
mov eax, dword [ebx + 0x30]
call fcn.004054b8
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
setne byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x4ec2e9
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceConfigA
mov eax, dword [ebp - 0x1c]
call fcn.0040a148
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4ec2d9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceConfigA
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x1c]
call fcn.004051d4
mov edx, 0x4ec378
mov eax, dword [ebp - 0x14]
call fcn.0040a32c
test eax, eax
jne 0x4ec2c1
lea eax, [ebp - 0x14]
mov edx, 0x4ec38c
call fcn.00405074
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ec2e0
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.00402bb4
ret
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
cmp byte [ebp - 1], 0
je 0x4ec344
mov dword [ebp - 0x1c], pe_nt_image_headers32
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.00405644
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.004054b8
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, dword [ebp - 0x10]
call fcn.004054b8
call fcn.0040bbc0
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00405644
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0040a32c
test eax, eax
sete byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ec366
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00405000
ret
Function at 0x4ec640
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ec712
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.004ec3d0
push 0xf01ff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x30]
call fcn.004054b8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4ec6a7
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 8]
call fcn.004c2a4c
mov eax, dword [ebp - 8]
call fcn.004ec4e8
pop ecx
jmp 0x4ec6fc
xor eax, eax
push ebp
push 0x4ec6f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x4ec6ce
mov eax, dword [ebp + 8]
push eax
call fcn.004ec59c
pop ecx
jmp 0x4ec6de
test bl, bl
je 0x4ec6de
mov eax, dword [ebp + 8]
push eax
xor eax, eax
call fcn.004ec4e8
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ec6fc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ec719
lea eax, [ebp - 8]
call fcn.00404fdc
ret

Function at 0x4ec720
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
call fcn.004ec394
test al, al
je 0x4ec747
mov eax, dword [ebp + 8]
push eax
xor eax, eax
call fcn.004ec640
pop ecx
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.004054b8
push eax
push 1
push 2
push 0x110
push 0xf01ff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x34]
call fcn.004054b8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x30]
call fcn.004054b8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
call sub.advapi32.dll_CreateServiceA
test eax, eax
jne 0x4ec7a5
mov eax, dword [ebp + 8]
push eax
call fcn.004ec59c
pop ecx
pop ebp
ret
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp + 8]
push eax
xor eax, eax
call fcn.004ec4e8
pop ecx
pop ebp
ret
Function at 0x4ed738
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ed919
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.004ed488
mov eax, dword [ebp - 0x10]
call fcn.0040b0b8
test al, al
jne 0x4ed7a9
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
lea eax, [ebp - 0x20]
push eax
push 0
mov ecx, 0x4ed934
mov dl, 1
mov eax, dword [0x40930c]
call fcn.0040ff08
call fcn.00404930
mov eax, dword [ebp - 0x10]
call fcn.004054b8
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4ed7c5
call fcn.00411f44
xor eax, eax
push ebp
push 0x4ed8a5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4ed948
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov esi, eax
test esi, esi
jne 0x4ed819
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
mov eax, 0x4ed960
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea eax, [ebp - 0x30]
push eax
push 1
mov ecx, 0x4ed978
mov dl, 1
mov eax, dword [0x40930c]
call fcn.0040ff08
call fcn.00404930
mov eax, dword [ebx + 0x30]
push eax
lea eax, [ebp - 0xc]
push eax
call esi
cmp dword [ebp - 0xc], 0
jne 0x4ed84f
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
lea eax, [ebp - 0x20]
push eax
push 0
mov ecx, 0x4ed99c
mov dl, 1
mov eax, dword [0x40930c]
call fcn.0040ff08
call fcn.00404930
mov dl, 1
mov eax, dword [0x4ece68]
call fcn.0040405c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 8
mov edx, dword [ebp - 0x14]
call fcn.00405030
mov eax, dword [ebp - 4]
add eax, 0xc
mov edx, dword [ebp - 0x18]
call fcn.00405030
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
add eax, 0x10
mov edx, dword [ebp - 0xc]
call fcn.00407074
mov edx, dword [ebp - 4]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x30]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ed8cb
push 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
lea eax, [ebp - 0x20]
push eax
call fcn.004eaadc
mov edx, 0x4ed9c8
pop ecx
call fcn.004eb4c4
mov eax, dword [ebx + 0x34]
mov edx, dword [ebp - 4]
call fcn.004ed344
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ed920
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00405000
lea eax, [ebp - 0xc]
call fcn.0040705c
ret

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

Disassembly:
and edx, edx
je 0x4ef8f6
and ecx, ecx
jle 0x4ef8f6
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 0x4ef8e1
pop ebx
ret
Function at 0x4efb64
Capabilities:
Encode data using xor

Disassembly:
and edx, edx
je 0x4efb87
and ecx, ecx
jle 0x4efb87
push ebx
push edi
xor ebx, ebx
lea edi, cs:[0x4efb8d]
mov bl, al
shr eax, 8
xor bl, byte [edx]
xor eax, dword [edi + ebx*4]
inc edx
dec ecx
jne 0x4efb77
pop edi
pop ebx
ret
Function at 0x5009c4
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 [0x641604]
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 [0x641604]
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.00500994
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.00500994
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x10]
xor esi, edi
movzx edx, word [ebx + 8]
mov eax, esi
call fcn.00500994
mov esi, eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x14]
add eax, esi
movzx edx, word [ebx + 0xa]
call fcn.00500994
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 0x500a12
movzx edx, word [ebx]
mov eax, edi
call fcn.00500994
mov word [ebp - 2], ax
mov ax, word [ebp - 0x10]
add ax, word [ebx + 2]
mov word [ebp - 4], ax
mov edi, dword [0x641604]
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.00500994
mov word [ebp - 4], ax
mov ebx, dword [0x641604]
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 0x50122c
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 0x501257
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x502d28
Capabilities:
Encrypt data using twofish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x502d3e
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x502d37
mov edx, esp
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov ebx, dword [ebp - 4]
shr ebx, 8
and ebx, 0xff
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
mov esi, dword [ebp - 4]
shr esi, 0x18
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
mov esi, dword [esi + 8]
cmp dword [esi - 4], 0x20
jne 0x502dc9
movzx ecx, byte [ecx + 0x62b1b8]
mov esi, dword [edx + 0xc]
and esi, 0xff
xor ecx, esi
movzx ebx, byte [ebx + 0x62b0b8]
mov esi, dword [edx + 0xc]
shr esi, 8
and esi, 0xff
xor ebx, esi
movzx eax, byte [eax + 0x62b0b8]
mov esi, dword [edx + 0xc]
shr esi, 0x10
and esi, 0xff
xor eax, esi
mov esi, dword [ebp - 8]
movzx esi, byte [esi + 0x62b1b8]
mov edi, dword [edx + 0xc]
shr edi, 0x18
xor esi, edi
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
mov esi, dword [esi + 8]
cmp dword [esi - 4], 0x18
jl 0x502e26
movzx ecx, byte [ecx + 0x62b1b8]
mov esi, dword [edx + 8]
and esi, 0xff
xor ecx, esi
movzx ebx, byte [ebx + 0x62b1b8]
mov esi, dword [edx + 8]
shr esi, 8
and esi, 0xff
xor ebx, esi
movzx eax, byte [eax + 0x62b0b8]
mov esi, dword [edx + 8]
shr esi, 0x10
and esi, 0xff
xor eax, esi
mov esi, dword [ebp - 8]
movzx esi, byte [esi + 0x62b0b8]
mov edi, dword [edx + 8]
shr edi, 0x18
xor esi, edi
mov dword [ebp - 8], esi
movzx ecx, byte [ecx + 0x62b0b8]
mov esi, dword [edx + 4]
and esi, 0xff
xor ecx, esi
movzx ebx, byte [ebx + 0x62b1b8]
mov esi, dword [edx + 4]
shr esi, 8
and esi, 0xff
xor ebx, esi
movzx eax, byte [eax + 0x62b0b8]
mov esi, dword [edx + 4]
shr esi, 0x10
and esi, 0xff
xor eax, esi
mov esi, dword [ebp - 8]
movzx esi, byte [esi + 0x62b1b8]
mov edi, dword [edx + 4]
shr edi, 0x18
xor esi, edi
mov dword [ebp - 8], esi
movzx ecx, byte [ecx + 0x62b0b8]
mov esi, dword [edx]
and esi, 0xff
xor ecx, esi
movzx ebx, byte [ebx + 0x62b0b8]
mov esi, dword [edx]
shr esi, 8
and esi, 0xff
xor ebx, esi
movzx eax, byte [eax + 0x62b1b8]
mov esi, dword [edx]
shr esi, 0x10
and esi, 0xff
xor eax, esi
mov esi, dword [ebp - 8]
movzx esi, byte [esi + 0x62b1b8]
mov edx, dword [edx]
shr edx, 0x18
xor esi, edx
mov dword [ebp - 8], esi
mov edx, dword [ecx*4 + 0x62b2b8]
xor edx, dword [ebx*4 + 0x62b6b8]
xor edx, dword [eax*4 + 0x62bab8]
mov eax, dword [ebp - 8]
xor edx, dword [eax*4 + 0x62beb8]
mov eax, edx
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x503028
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
and ecx, 0xff
imul ecx, ecx, 0x1010101
xor ebx, ebx
mov esi, dword [edx + ebx*4]
xor esi, ecx
mov dword [eax + ebx*4], esi
inc ebx
cmp ebx, 0x40
jne 0x503038
pop esi
pop ebx
ret