joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48e4e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, esi
mov edx, dword [0x54d6c4]
mov edx, dword [edx]
call fcn.00403c40
cmp dword [ebx + 0x33c], 0xffffffff
je 0x48e554
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx + 0x33c]
push eax
call sub.wsock32.dll_getsockname
push esi
mov bx, word [ebp - 0x12]
mov eax, ebx
and ax, 0xff
movzx eax, ax
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
shr bx, 8
movzx eax, bx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x24]
mov ecx, 1
mov eax, 0x48e564
call fcn.00409f10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48f344
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48f3ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x2c8]
mov edx, dword [0x54d6c4]
mov edx, dword [edx]
call fcn.00403f34
jne 0x48f3a8
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx + 0x33c]
push eax
call sub.wsock32.dll_getsockname
push dword [ebp - 0x10]
call sub.wsock32.dll_inet_ntoa
mov ebx, eax
mov edx, esi
mov eax, ebx
call fcn.004099c8
jmp 0x48f3b5
mov eax, esi
mov edx, dword [ebx + 0x2c8]
call fcn.00403c40
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [esi]
mov ecx, 0x48f404
mov edx, 0x48f410
call fcn.004532e0
mov edx, dword [ebp - 0x18]
mov eax, esi
call fcn.00403c40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f3f3
lea eax, [ebp - 0x18]
call fcn.00403ba8
ret

Function at 0x48f4c8
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
mov ebx, edx
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
lea eax, [ebp - 0x10]
xor ecx, ecx
mov edx, 0x10
call fcn.00402bd8
lea eax, [ebp - 0x22]
mov edx, 0x48f554
call fcn.0040987c
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0xc], eax
mov word [ebp - 0x10], 2
push ebx
call sub.wsock32.dll_htons
mov word [ebp - 0xe], ax
push 0x10
lea eax, [ebp - 0x10]
push eax
push esi
call sub.wsock32.dll_bind
test eax, eax
sete bl
xor bl, 1
test bl, bl
jne 0x48f53c
push 1
push esi
call sub.wsock32.dll_listen
test eax, eax
sete bl
xor bl, 1
push esi
call sub.wsock32.dll_closesocket
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48fb88
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x58
call fcn.00402bd8
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
pop ebp
ret
Function at 0x490714
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.00402bd8
pop ebp
ret
Function at 0x4aa668
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x4aa6d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 1
mov ebx, 0x54fe4c
lea eax, [ebp - 4]
mov edx, esi
add dl, 0x40
call fcn.00403d4c
lea eax, [ebp - 4]
mov edx, 0x4aa6e4
call fcn.00403e2c
mov eax, dword [ebp - 4]
call fcn.00403fe8
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebx], eax
inc esi
add ebx, 4
cmp esi, 0x1a
jne 0x4aa687
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa6d7
lea eax, [ebp - 4]
call fcn.00403ba8
ret

Function at 0x4ac174
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x15c], ebx
mov ebx, ecx
test ebx, ebx
js 0x4ac19b
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x4ac194
mov edx, esp
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403fd8
mov ecx, dword [ebp - 0xc]
inc ecx
mov eax, dword [ebp - 8]
mov edx, dword [0x4010c4]
call fcn.00404650
xor eax, eax
push ebp
push 0x4ac329
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x4ac2f1
inc eax
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 4]
push 0x4ac350
push dword [esi]
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00403ee4
mov eax, dword [ebp - 0x158]
call fcn.00403fe8
push eax
call sub.kernel32.dll_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4ac2e5
mov eax, dword [ebp - 0x154]
test al, 0x10
jne 0x4ac2ca
test al, 2
jne 0x4ac2ca
xor eax, eax
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push 0x4ac350
lea eax, [ebp - 0x15c]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.00403dd4
push dword [ebp - 0x15c]
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00403ee4
mov eax, dword [ebp - 0x158]
lea edx, [ebp - 0x10]
call fcn.00465e78
call fcn.00463720
test al, al
je 0x4ac288
or edi, 0xffffffff
jmp 0x4ac297
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.0046607c
mov edi, eax
mov eax, dword [ebp - 0x10]
call fcn.00465dd8
lea eax, [ebp - 0x158]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.00403dd4
mov edx, dword [ebp - 0x158]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax]
mov ecx, edi
mov edi, dword [eax]
call dword [edi + 0x38]
lea eax, [ebp - 0x154]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4ac21d
push ebx
call sub.kernel32.dll_FindClose
add esi, 4
dec dword [ebp - 0x14]
jne 0x4ac1e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ac330
lea eax, [ebp - 0x15c]
mov edx, 2
call fcn.00403bcc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
inc ecx
mov edx, dword [0x4010c4]
call fcn.00404538
lea eax, [ebp - 4]
call fcn.00403ba8
ret
Function at 0x4ad47c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ad57c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x14]
mov edx, dword [0x54d6c4]
mov edx, dword [edx]
call fcn.00403f34
je 0x4ad4c2
mov eax, esi
mov edx, dword [ebx + 0x14]
call fcn.00403c40
jmp 0x4ad563
lea edx, [ebp - 0x164]
mov eax, ebx
call fcn.004ad58c
mov edx, dword [ebp - 0x164]
lea eax, [ebx + 0x14]
call fcn.00403bfc
cmp dword [ebx + 0x14], 0
jne 0x4ad534
lea eax, [ebp - 0x160]
xor ecx, ecx
mov edx, 0x160
call fcn.00402bd8
push 0x208
push 0x160
lea eax, [ebp - 0x160]
push eax
push 0
mov eax, ebx
call fcn.004ad418
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x4ad534
lea eax, [ebp - 0x154]
call fcn.0040978c
mov ecx, eax
lea edx, [ebp - 0x154]
lea eax, [ebx + 0x14]
call fcn.00403c8c
mov eax, ebx
call fcn.004ad39c
test al, al
je 0x4ad559
mov eax, dword [ebx + 0x14]
call fcn.00403e24
mov edx, eax
sub edx, 3
lea eax, [ebx + 0x14]
mov ecx, 4
call fcn.00404068
mov eax, esi
mov edx, dword [ebx + 0x14]
call fcn.00403c40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ad583
lea eax, [ebp - 0x164]
call fcn.00403ba8
ret
Function at 0x4b187c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b192b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x358], 0
jne 0x4b18ca
push 0x465
mov eax, dword [ebp - 4]
call fcn.00447134
mov ecx, eax
mov dl, 1
mov eax, dword [0x4adf18]
call fcn.004adf84
mov edx, dword [ebp - 4]
mov dword [edx + 0x358], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x358]
call fcn.004ae450
lea eax, [ebp - 8]
mov edx, 0x4b1940
call fcn.00403c40
call sub.kernel32.dll_GetLogicalDrives
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x4b1915
test bl, 1
je 0x4b190e
lea eax, [ebp - 8]
call fcn.00403ff4
lea edx, [esi + 0x41]
mov byte [eax], dl
push ebp
mov eax, dword [ebp - 8]
call fcn.004b1810
pop ecx
shr ebx, 1
inc esi
test ebx, ebx
jne 0x4b18f2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1932
lea eax, [ebp - 8]
call fcn.00403ba8
ret

Function at 0x4b2468
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00403fd8
xor eax, eax
push ebp
push 0x4b257a
push dword fs:[eax]
mov dword fs:[eax], esp
push 3
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4b254d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 4]
call fcn.00403fe8
push eax
call sub.kernel32.dll_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4b252a
test byte [ebp - 0x14c], 0x10
jne 0x4b250d
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.00403dd4
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x150]
call fcn.00408990
mov edx, dword [ebp - 0x150]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0x14c]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4b24d0
push ebx
call sub.kernel32.dll_FindClose
mov byte [ebp - 5], 1
jmp 0x4b2536
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
sete byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2554
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4b94cc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov al, byte [ebx + 4]
sub al, 1
jb 0x4b94dd
je 0x4b94e3
jmp 0x4b9509
mov eax, dword [ebx + 0xc]
pop ebx
pop ebp
ret
cmp dword [ebx + 0xc], 0
jne 0x4b9503
lea eax, [ebx + 0xc]
push eax
xor eax, eax
mov al, byte [ebx + 0x10]
push eax
mov eax, dword [0x54d5d4]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, dword [ebx + 0xc]
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4c08bc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4c08c5
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 1], cl
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c0ad1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 2], 0
mov eax, dword [ebx + 0x350]
mov edx, esi
call fcn.00403f34
jne 0x4c0907
cmp byte [ebx + 0x378], 0
je 0x4c0aae
mov byte [ebp - 2], 1
lea eax, [ebx + 0x350]
mov edx, esi
call fcn.00403bfc
mov byte [ebx + 0x378], 0
mov eax, ebx
call fcn.004c005c
test eax, eax
jne 0x4c0945
mov eax, esi
call fcn.004091d4
test al, al
je 0x4c0aae
mov eax, esi
call fcn.004092cc
jmp 0x4c0aae
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, esi
call fcn.00403fe8
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4c0aae
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetFilePointer_1
cmp byte [ebp - 1], 0
je 0x4c098d
mov eax, ebx
call fcn.004bf1b4
mov eax, ebx
call fcn.004c005c
mov edi, eax
dec edi
test edi, edi
jl 0x4c0aa5
inc edi
xor esi, esi
cmp byte [ebp - 1], 0
je 0x4c09c8
cmp byte [ebp - 1], 0
je 0x4c0a9d
mov edx, esi
mov eax, dword [ebx + 0x37c]
call fcn.00410c60
cmp byte [eax], 0
je 0x4c0a9d
mov edx, esi
mov eax, ebx
call fcn.004c0248
and eax, 0xff
lea edx, [ebp - 0x14]
call fcn.00408e4c
push dword [ebp - 0x14]
push 0x4c0aec
mov edx, esi
mov eax, ebx
call fcn.004c0228
and eax, 0xff
lea edx, [ebp - 0x18]
call fcn.00408e4c
push dword [ebp - 0x18]
push 0x4c0aec
lea ecx, [ebp - 0x1c]
mov edx, esi
mov eax, ebx
call fcn.004c03f8
push dword [ebp - 0x1c]
push 0x4c0aec
lea ecx, [ebp - 0x20]
mov edx, esi
mov eax, ebx
call fcn.004c04bc
push dword [ebp - 0x20]
push 0x4c0aec
lea ecx, [ebp - 0x24]
mov edx, esi
mov eax, ebx
call fcn.004c01a4
push dword [ebp - 0x24]
push 0x4c0aec
lea ecx, [ebp - 0x28]
mov edx, esi
mov eax, ebx
call fcn.004c01cc
push dword [ebp - 0x28]
push 0x4c0aec
mov edx, esi
mov eax, ebx
call fcn.004c01f4
push edx
push eax
lea eax, [ebp - 0x2c]
call fcn.00408e7c
push dword [ebp - 0x2c]
push 0x4c0af8
lea eax, [ebp - 8]
mov edx, 0xe
call fcn.00403ee4
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00403e24
push eax
lea eax, [ebp - 8]
call fcn.00403ff4
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
inc esi
dec edi
jne 0x4c09a2
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0ad8
lea eax, [ebp - 0x2c]
mov edx, 7
call fcn.00403bcc
lea eax, [ebp - 8]
call fcn.00403ba8
ret
Function at 0x4c5b84
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, dword [ebp + 8]
mov edi, esi
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
lodsb al, byte [esi]
xor al, bl
rol ebx, 1
add ebx, 0x139a1fc4
stosb byte es:[edi], al
loop 0x4c5b93
popal
pop ebp
ret 0xc

Function at 0x4c5ba8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4c5c31
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x4c5c48
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
jne 0x4c5bfa
push 0x4c5c48
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
je 0x4c5bfa
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
add eax, 0x87654321
adc edx, 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jne 0x4c5c1b
cmp dword [ebp - 0x18], 0xffffffff
jbe 0x4c5c24
jmp 0x4c5c1d
jle 0x4c5c24
mov ebx, dword [ebp - 0x18]
inc ebx
dec ebx
jmp 0x4c5c27
mov ebx, dword [ebp - 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c5c3d
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dc648
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0044755c
test al, al
je 0x4dc70e
mov eax, dword [ebp - 4]
call fcn.004dc5d8
test eax, eax
jle 0x4dc70e
xor edx, edx
push ebp
push 0x4dc707
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xd], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov byte [eax + 0x30], 1
mov eax, dword [eax + 0x40]
mov ebx, dword [eax + 8]
dec ebx
cmp ebx, 0
jl 0x4dc6ce
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.004da2a8
call fcn.004dc038
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.004da2a8
call fcn.00402f44
dec ebx
cmp ebx, 0xffffffff
jne 0x4dc69e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x40]
mov bx, 0xffff
call fcn.00403120
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dc70e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov byte [eax + 0x30], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0xd], 0
ret
pop ebx
pop ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e8dd0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [0x54d6c4]
mov edx, dword [edx]
call fcn.00403c40
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
movzx eax, byte [edx + eax]
mov edx, dword [ebp + 8]
add eax, dword [edx - 4]
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
mov eax, dword [ebp + 8]
inc dword [eax - 4]
mov eax, dword [ebp + 8]
mov edi, dword [eax - 4]
mov eax, dword [ebp + 8]
mov ebx, dword [eax - 0xc]
sub ebx, edi
jl 0x4e8d3c
inc ebx
lea eax, [ebp - 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov dl, byte [edx + edi]
call fcn.00403d4c
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.00403e2c
inc edi
dec ebx
jne 0x4e8d1c
mov eax, dword [ebp - 4]
mov edx, dword [0x54d6c4]
mov edx, dword [edx]
call fcn.00403c40
mov eax, dword [ebp - 8]
call fcn.00403e24
mov esi, eax
mov eax, dword [ebp - 8]
call fcn.00403e24
mov ebx, eax
test ebx, ebx
jle 0x4e8da7
mov edi, 1
imul eax, esi, 0x8088405
mov esi, eax
inc esi
mov eax, esi
shr eax, 0x18
mov edx, dword [ebp - 8]
movzx edx, byte [edx + edi - 1]
xor eax, edx
mov edx, dword [ebp + 8]
mov dword [edx - 0x10], eax
lea eax, [ebp - 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x10]
call fcn.00403d4c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00403e2c
mov eax, dword [ebp - 4]
inc edi
dec ebx
jne 0x4e8d69
mov eax, dword [ebp - 8]
call fcn.00403e24
mov edx, dword [ebp + 8]
add dword [edx - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8dd7
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403bcc
ret
Function at 0x4e9520
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403fd8
xor eax, eax
push ebp
push 0x4e95a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [0x54d6c4]
mov edx, dword [edx]
call fcn.00403c40
mov eax, dword [ebp - 4]
call fcn.00403e24
mov ebx, eax
test ebx, ebx
jle 0x4e958b
mov edi, 1
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
mov dl, byte [edx + edi - 1]
xor dl, 0xc8
call fcn.00403d4c
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00403e2c
inc edi
dec ebx
jne 0x4e956b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e95ad
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403bcc
ret
Function at 0x504d84
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0050490c
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x44], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x34], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2c], 0
je 0x504ec8
jmp 0x504e22
mov eax, dword [ebp - 4]
cmp byte [eax + 0x45], 0
je 0x504dde
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x3c]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x38]
ja 0x504ede
mov edx, dword [ebp - 4]
cmp byte [edx + 0x2d], 7
je 0x504ede
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
cmp byte [edx + 0x4ba], 7
jne 0x504e10
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x2d]
cmp al, 6
je 0x504ede
cmp al, 5
je 0x504ede
push 0x64
call sub.kernel32.dll_Sleep
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.0049b57c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x34], 0
jne 0x504ede
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d], 0
jne 0x504dbe
jmp 0x504ede
xor edx, edx
push ebp
push 0x504ebe
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x45], 0
je 0x504e71
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x3c]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x38]
jbe 0x504e71
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x504ede
mov edx, dword [ebp - 4]
cmp byte [edx + 0x2d], 7
je 0x504e97
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
cmp byte [edx + 0x4ba], 7
jne 0x504ea1
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x2d]
cmp al, 6
je 0x504e97
cmp al, 5
jne 0x504ea1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x504ede
push 0x64
call sub.kernel32.dll_Sleep
mov eax, dword [0x54d5d4]
mov eax, dword [eax]
call fcn.0043b290
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x504ec8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x34], 0
jne 0x504ede
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d], 0
jne 0x504e3d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x45], 0
je 0x504f01
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x3c]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x38]
jbe 0x504f01
mov eax, dword [ebp - 4]
mov byte [eax + 0x44], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x40b8], 0x190
jl 0x504f35
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x40b8]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x40bc]
mov dl, 1
mov eax, dword [0x5022d4]
call fcn.00502d44
call fcn.0040361c
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret