joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4db4e4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4db725
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1e7], 0
jne 0x4db707
mov eax, dword [ebp - 4]
mov byte [eax + 0x330], 1
xor edx, edx
push ebp
push 0x4db700
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebp - 5], 0
jne 0x4db558
lea edx, [ebp - 0x14]
mov eax, 0x4d1dd4
call fcn.00405c9c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.005a9738
mov eax, dword [ebp - 4]
inc dword [eax + 0x334]
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x331]
xor al, 1
and al, byte [ebp - 5]
je 0x4db56f
mov esi, 0x2710
jmp 0x4db58d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x331], 0
jne 0x4db588
cmp byte [ebp - 5], 0
jne 0x4db588
mov esi, 0x3e8
jmp 0x4db58d
mov esi, 0x1388
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x268], 0
je 0x4db6c0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x334], 0
je 0x4db6c0
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x224]
call fcn.00403d34
mov eax, dword [ebp - 4]
movsx ebx, word [eax + 0x1e4]
push 0
push 1
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004d82f0
mov eax, dword [ebp - 4]
movsx edi, word [eax + 0x1e4]
mov edx, dword [ebp - 4]
movsx edx, word [edx + 0x1e4]
cmp ebx, edx
je 0x4db6b0
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x1e4]
cmp ax, 0xc8
je 0x4db61a
cmp ax, 0x1f4
jne 0x4db6b0
mov eax, dword [ebp - 4]
dec dword [eax + 0x334]
mov eax, dword [ebp - 4]
cmp word [eax + 0x1e4], 0x1f4
jne 0x4db664
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x224]
mov eax, 0x4db73c
call fcn.00404200
test eax, eax
jg 0x4db659
mov edx, dword [ebp - 0xc]
mov eax, 0x4db73c
call fcn.00404200
test eax, eax
jle 0x4db664
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x334], edx
mov eax, dword [ebp - 4]
add eax, 0x224
mov edx, dword [ebp - 0xc]
call fcn.00403cf0
mov eax, dword [ebp - 4]
mov word [eax + 0x1e4], bx
cmp edi, 0xc8
jne 0x4db69e
mov eax, dword [ebp - 4]
cmp byte [eax + 0x331], 0
jne 0x4db69e
mov dx, 0x64
mov eax, dword [ebp - 4]
call fcn.005acc80
cmp byte [ebp - 5], 0
je 0x4db6c0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x334], 0
je 0x4db6c0
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x10]
cmp esi, eax
jae 0x4db595
cmp byte [ebp - 5], 0
jne 0x4db6e8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x331], 0
je 0x4db6e8
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x10]
cmp esi, eax
jae 0x4db6e8
mov eax, dword [ebp - 4]
mov byte [eax + 0x331], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4db707
mov eax, dword [ebp - 4]
mov byte [eax + 0x330], 0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4db72c
lea eax, [ebp - 0x14]
call fcn.00403c9c
lea eax, [ebp - 0xc]
call fcn.00403c9c
ret
Function at 0x4ef8ac
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x4ef914
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 1
mov ebx, 0x5c0ef0
lea eax, [ebp - 4]
mov edx, esi
add dl, 0x40
call fcn.00403e40
lea eax, [ebp - 4]
mov edx, 0x4ef928
call fcn.00403f20
mov eax, dword [ebp - 4]
call fcn.004040dc
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebx], eax
inc esi
add ebx, 4
cmp esi, 0x1b
jne 0x4ef8cb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ef91b
lea eax, [ebp - 4]
call fcn.00403c9c
ret

Function at 0x4f1374
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 0x4f139b
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x4f1394
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.004040cc
mov ecx, dword [ebp - 0xc]
inc ecx
mov eax, dword [ebp - 8]
mov edx, dword [0x4010c4]
call fcn.004046d8
xor eax, eax
push ebp
push 0x4f1529
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x4f14f1
inc eax
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 4]
push 0x4f1550
push dword [esi]
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00403fd8
mov eax, dword [ebp - 0x158]
call fcn.004040dc
push eax
call sub.kernel32.dll_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4f14e5
mov eax, dword [ebp - 0x154]
test al, 0x10
jne 0x4f14ca
test al, 2
jne 0x4f14ca
xor eax, eax
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push 0x4f1550
lea eax, [ebp - 0x15c]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.00403ec8
push dword [ebp - 0x15c]
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00403fd8
mov eax, dword [ebp - 0x158]
lea edx, [ebp - 0x10]
call fcn.004cc7b4
call fcn.0049495c
test al, al
je 0x4f1488
or edi, 0xffffffff
jmp 0x4f1497
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.004cc9b8
mov edi, eax
mov eax, dword [ebp - 0x10]
call fcn.004cc714
lea eax, [ebp - 0x158]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.00403ec8
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 0x4f141d
push ebx
call sub.kernel32.dll_FindClose
add esi, 4
dec dword [ebp - 0x14]
jne 0x4f13e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f1530
lea eax, [ebp - 0x15c]
mov edx, 2
call fcn.00403cc0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
inc ecx
mov edx, dword [0x4010c4]
call fcn.004045c0
lea eax, [ebp - 4]
call fcn.00403c9c
ret
Function at 0x4f2690
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 0x4f2790
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x14]
mov edx, dword [0x5bc024]
mov edx, dword [edx]
call fcn.00404028
je 0x4f26d6
mov eax, esi
mov edx, dword [ebx + 0x14]
call fcn.00403d34
jmp 0x4f2777
lea edx, [ebp - 0x164]
mov eax, ebx
call fcn.004f27a0
mov edx, dword [ebp - 0x164]
lea eax, [ebx + 0x14]
call fcn.00403cf0
cmp dword [ebx + 0x14], 0
jne 0x4f2748
lea eax, [ebp - 0x160]
xor ecx, ecx
mov edx, 0x160
call fcn.00402c18
push 0x208
push 0x160
lea eax, [ebp - 0x160]
push eax
push 0
mov eax, ebx
call fcn.004f262c
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x4f2748
lea eax, [ebp - 0x154]
call fcn.00409918
mov ecx, eax
lea edx, [ebp - 0x154]
lea eax, [ebx + 0x14]
call fcn.00403d80
mov eax, ebx
call fcn.004f25b0
test al, al
je 0x4f276d
mov eax, dword [ebx + 0x14]
call fcn.00403f18
mov edx, eax
sub edx, 3
lea eax, [ebx + 0x14]
mov ecx, 4
call fcn.0040415c
mov eax, esi
mov edx, dword [ebx + 0x14]
call fcn.00403d34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f2797
lea eax, [ebp - 0x164]
call fcn.00403c9c
ret
Function at 0x4f6a24
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.004040cc
xor eax, eax
push ebp
push 0x4f6aa9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004040dc
push eax
call sub.kernel32.dll_GetDriveTypeA
sub eax, 3
je 0x4f6a81
dec eax
je 0x4f6a5f
sub eax, 2
je 0x4f6a81
jmp 0x4f6a93
mov eax, dword [ebp - 4]
mov al, byte [eax]
call fcn.004cddfc
test al, al
je 0x4f6a93
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 4]
mov bx, 0xffa3
call fcn.00403194
jmp 0x4f6a93
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 4]
mov bx, 0xffa3
call fcn.00403194
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f6ab0
lea eax, [ebp - 4]
call fcn.00403c9c
ret

Function at 0x4f6ab4
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 0x4f6b63
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x360], 0
jne 0x4f6b02
push 0x465
mov eax, dword [ebp - 4]
call fcn.0045abd4
mov ecx, eax
mov dl, 1
mov eax, dword [0x4f30b8]
call fcn.004f3124
mov edx, dword [ebp - 4]
mov dword [edx + 0x360], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x360]
call fcn.004f35f0
lea eax, [ebp - 8]
mov edx, 0x4f6b78
call fcn.00403d34
call sub.kernel32.dll_GetLogicalDrives
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x4f6b4d
test bl, 1
je 0x4f6b46
lea eax, [ebp - 8]
call fcn.004040e8
lea edx, [esi + 0x41]
mov byte [eax], dl
push ebp
mov eax, dword [ebp - 8]
call fcn.004f6a24
pop ecx
shr ebx, 1
inc esi
test ebx, ebx
jne 0x4f6b2a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f6b6a
lea eax, [ebp - 8]
call fcn.00403c9c
ret
Function at 0x4f7724
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.004040cc
xor eax, eax
push ebp
push 0x4f7836
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 0x4f7809
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 4]
call fcn.004040dc
push eax
call sub.kernel32.dll_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4f77e6
test byte [ebp - 0x14c], 0x10
jne 0x4f77c9
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.00403ec8
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x150]
call fcn.00408afc
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 0x4f778c
push ebx
call sub.kernel32.dll_FindClose
mov byte [ebp - 5], 1
jmp 0x4f77f2
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 0x4f7810
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x5088f0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x168], ebx
test dl, dl
je 0x50890f
add esp, 0xfffffff0
call fcn.004032e4
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x5089b0
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.00418828
mov dl, 1
mov eax, dword [0x40f168]
call fcn.00402f88
mov esi, eax
mov dword [ebx + 0x24], esi
mov edx, 0x3e8
mov eax, esi
call fcn.004111a0
lea eax, [ebp - 0x164]
xor ecx, ecx
mov edx, 0x160
call fcn.00402c18
push 0x4010
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0x90
lea eax, [ebp - 0x168]
call fcn.00466ef8
mov eax, dword [ebp - 0x168]
call fcn.004040dc
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [ebp - 0x160]
mov dword [0x5c0f8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5089b7
lea eax, [ebp - 0x168]
call fcn.00403c9c
ret

Function at 0x508f4c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe90
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x509078
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jl 0x508f84
mov eax, dword [ebx + 0x24]
cmp esi, dword [eax + 8]
jl 0x508fd6
lea eax, [ebp - 0x164]
push eax
lea edx, [ebp - 0x168]
mov eax, 0x508778
call fcn.00405c9c
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x170], 0xe
mov byte [ebp - 0x16c], 0
lea edx, [ebp - 0x170]
xor ecx, ecx
call fcn.0040a09c
mov ecx, dword [ebp - 0x164]
mov dl, 1
mov eax, dword [0x508780]
call fcn.0040bbf8
call fcn.00403710
mov eax, dword [ebx + 0x24]
mov eax, dword [eax + 4]
mov eax, dword [eax + esi*4]
cmp dword [eax + 0x38], 0xffffffff
jne 0x50904e
lea eax, [ebp - 0x160]
xor ecx, ecx
mov edx, 0x160
call fcn.00402c18
mov eax, dword [ebx + 0x24]
mov eax, dword [eax + 4]
mov edi, dword [eax + esi*4]
cmp byte [edi], 3
jne 0x509031
push 0x4010
push 0x160
lea eax, [ebp - 0x160]
push eax
push 0x80
mov eax, dword [ebx + 0x24]
mov eax, dword [eax + 4]
mov eax, dword [edi + 4]
call fcn.004040dc
push eax
call sub.shell32.dll_SHGetFileInfoA
jmp 0x50903c
mov eax, dword [0x5c0f8c]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebx + 0x24]
mov eax, dword [eax + 4]
mov eax, dword [eax + esi*4]
mov edx, dword [ebp - 0x15c]
mov dword [eax + 0x38], edx
mov eax, dword [ebx + 0x24]
mov eax, dword [eax + 4]
mov eax, dword [eax + esi*4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50907f
lea eax, [ebp - 0x168]
mov edx, 2
call fcn.00403cc0
ret
Function at 0x50c51c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov byte [ebp - 1], dl
mov ebx, eax
cmp byte [ebx + 0x24a], 0
jne 0x50c5d6
cmp byte [ebp - 1], 0
jne 0x50c553
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x204]
cmp eax, 0x3e8
jbe 0x50c5d6
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x204], eax
mov esi, dword [ebx + 0x240]
mov eax, dword [ebx + 0x1f4]
mov eax, dword [eax + 0xc]
test eax, eax
jle 0x50c5c7
mov edx, eax
dec edx
mov edi, dword [ebx + 0x254]
cmp edx, edi
jge 0x50c582
xor eax, eax
jmp 0x50c586
mov eax, edx
sub eax, edi
mov edi, eax
sub edx, edi
jl 0x50c5c7
inc edx
mov dword [ebp - 8], edx
mov edx, edi
mov eax, dword [ebx + 0x1f4]
call fcn.0050acdc
mov edx, dword [eax]
mov eax, esi
call fcn.0046b5a8
mov esi, eax
mov edx, edi
mov eax, dword [ebx + 0x1f4]
call fcn.0050acdc
mov edx, dword [eax + 4]
mov eax, esi
call fcn.0046b5a8
mov esi, eax
inc edi
dec dword [ebp - 8]
jne 0x50c590
mov edx, esi
mov eax, ebx
call fcn.0050c81c
mov dword [ebx + 0x23c], eax
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x51094c
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.005104d4
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 0x510a90
jmp 0x5109ea
mov eax, dword [ebp - 4]
cmp byte [eax + 0x45], 0
je 0x5109a6
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 0x510aa6
mov edx, dword [ebp - 4]
cmp byte [edx + 0x2d], 7
je 0x510aa6
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
cmp byte [edx + 0x4ba], 7
jne 0x5109d8
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x2d]
cmp al, 6
je 0x510aa6
cmp al, 5
je 0x510aa6
push 0x64
call sub.kernel32.dll_Sleep
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.004dda6c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x34], 0
jne 0x510aa6
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d], 0
jne 0x510986
jmp 0x510aa6
xor edx, edx
push ebp
push 0x510a86
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x45], 0
je 0x510a39
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 0x510a39
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x510aa6
mov edx, dword [ebp - 4]
cmp byte [edx + 0x2d], 7
je 0x510a5f
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
cmp byte [edx + 0x4ba], 7
jne 0x510a69
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x2d]
cmp al, 6
je 0x510a5f
cmp al, 5
jne 0x510a69
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x510aa6
push 0x64
call sub.kernel32.dll_Sleep
mov eax, dword [0x5bbee4]
mov eax, dword [eax]
call fcn.0044ed80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x510a90
mov eax, dword [ebp - 4]
cmp byte [eax + 0x34], 0
jne 0x510aa6
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d], 0
jne 0x510a05
mov eax, dword [ebp - 4]
cmp byte [eax + 0x45], 0
je 0x510ac9
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 0x510ac9
mov eax, dword [ebp - 4]
mov byte [eax + 0x44], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x40b8], 0x190
jl 0x510afd
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 [0x50de9c]
call fcn.0050e90c
call fcn.00403710
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x51134c
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
shl eax, 2
mov ecx, 3
cdq
idiv ecx
mov ebx, eax
mov edx, ebx
add edx, 4
mov eax, esi
call fcn.00404248
mov eax, esi
call fcn.004040e8
push eax
mov edx, ebx
add edx, 2
xor ecx, ecx
pop eax
call fcn.00402c18
cmp byte [ebp - 1], 0
jne 0x5113bf
mov eax, esi
call fcn.004040e8
mov dl, byte [ebp - 0xc]
dec edx
and dl, 0x3f
add dl, 0x21
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
add eax, 2
mov ecx, 3
cdq
idiv ecx
lea eax, [eax + eax*2]
mov dword [ebp - 0xc], eax
mov edi, 2
xor eax, eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov al, byte [ebp - 1]
sub al, 1
jb 0x5113d8
sub al, 2
jb 0x5113df
jmp 0x5113e4
mov ebx, 2
jmp 0x5113e4
mov ebx, 1
mov eax, esi
call fcn.004040e8
mov byte [eax + ebx - 1], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jge 0x5114c6
test edi, edi
jle 0x511440
mov eax, esi
call fcn.004040e8
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shl eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
and eax, edx
mov ecx, edi
shr eax, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
sub edi, 6
inc ebx
mov eax, esi
call fcn.004040e8
mov byte [eax + ebx - 1], 0
jmp 0x5114ba
test edi, edi
jge 0x511486
mov eax, edi
cdq
xor eax, edx
sub eax, edx
mov edi, eax
mov eax, esi
call fcn.004040e8
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shr eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
and al, byte [edx + ecx]
mov ecx, edi
shl al, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
mov eax, 8
sub eax, edi
mov edi, eax
inc dword [ebp - 0x10]
jmp 0x5114ba
mov eax, esi
call fcn.004040e8
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov dl, byte [edx + ecx]
and dl, 0x3f
mov ecx, dword [esi]
mov cl, byte [ecx + ebx - 1]
or dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
inc dword [ebp - 0x10]
mov eax, esi
call fcn.004040e8
mov byte [eax + ebx - 1], 0
mov edi, 2
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jl 0x5113fc
mov al, byte [ebp - 1]
sub al, 1
jb 0x5114d6
sub al, 2
jb 0x51150f
jmp 0x511556
cmp edi, 2
jne 0x5114dc
dec ebx
mov eax, ebx
sub eax, 2
jl 0x511556
inc eax
mov dword [ebp - 0x14], eax
mov edi, 2
mov eax, esi
call fcn.004040e8
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x5bb000]
mov dl, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x5114ec
jmp 0x511556
cmp edi, 2
jne 0x511515
dec ebx
test ebx, ebx
jle 0x511551
mov dword [ebp - 0x14], ebx
mov edi, 1
mov eax, esi
call fcn.004040e8
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x5bb004]
mov dl, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x511521
jmp 0x511551
inc ebx
mov eax, esi
call fcn.004040e8
mov byte [eax + ebx - 1], 0x3d
test bl, 3
jne 0x511544
mov eax, esi
mov edx, ebx
call fcn.00404248
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x52cce8
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.0045affc
test al, al
je 0x52cdae
mov eax, dword [ebp - 4]
call fcn.0052cc78
test eax, eax
jle 0x52cdae
xor edx, edx
push ebp
push 0x52cda7
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 0x52cd6e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.0052a948
call fcn.0052c6d8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.0052a948
call fcn.00402fb8
dec ebx
cmp ebx, 0xffffffff
jne 0x52cd3e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x40]
mov bx, 0xffff
call fcn.00403194
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 0x52cdae
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 0x53a9a8
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 0x53aabc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [0x5bc024]
mov edx, dword [edx]
call fcn.00403d34
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 0x53aa28
inc ebx
lea eax, [ebp - 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov dl, byte [edx + edi]
call fcn.00403e40
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.00403f20
inc edi
dec ebx
jne 0x53aa08
mov eax, dword [ebp - 4]
mov edx, dword [0x5bc024]
mov edx, dword [edx]
call fcn.00403d34
mov eax, dword [ebp - 8]
call fcn.00403f18
mov esi, eax
mov eax, dword [ebp - 8]
call fcn.00403f18
mov ebx, eax
test ebx, ebx
jle 0x53aa93
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.00403e40
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00403f20
mov eax, dword [ebp - 4]
inc edi
dec ebx
jne 0x53aa55
mov eax, dword [ebp - 8]
call fcn.00403f18
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 0x53aac3
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403cc0
ret
Function at 0x53b1cc
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.004040cc
xor eax, eax
push ebp
push 0x53b252
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [0x5bc024]
mov edx, dword [edx]
call fcn.00403d34
mov eax, dword [ebp - 4]
call fcn.00403f18
mov ebx, eax
test ebx, ebx
jle 0x53b237
mov edi, 1
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
mov dl, byte [edx + edi - 1]
xor dl, 0xc8
call fcn.00403e40
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00403f20
inc edi
dec ebx
jne 0x53b217
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53b259
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403cc0
ret