joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aa4b8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x4aa520
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 1
mov ebx, 0x54ee4c
lea eax, [ebp - 4]
mov edx, esi
add dl, 0x40
call fcn.00403d4c
lea eax, [ebp - 4]
mov edx, 0x4aa534
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 0x4aa4d7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa527
lea eax, [ebp - 4]
call fcn.00403ba8
ret

Function at 0x4abfc4
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 0x4abfeb
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x4abfe4
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 0x4ac179
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x4ac141
inc eax
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 4]
push 0x4ac1a0
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 0x4ac135
mov eax, dword [ebp - 0x154]
test al, 0x10
jne 0x4ac11a
test al, 2
jne 0x4ac11a
xor eax, eax
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push 0x4ac1a0
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.00465c90
call fcn.00463538
test al, al
je 0x4ac0d8
or edi, 0xffffffff
jmp 0x4ac0e7
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.00465e8c
mov edi, eax
mov eax, dword [ebp - 0x10]
call fcn.00465bf0
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 0x4ac06d
push ebx
call sub.kernel32.dll_FindClose
add esi, 4
dec dword [ebp - 0x14]
jne 0x4ac030
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ac180
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 0x4ad2c4
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 0x4ad3c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x14]
mov edx, dword [0x54c6b8]
mov edx, dword [edx]
call fcn.00403f34
je 0x4ad30a
mov eax, esi
mov edx, dword [ebx + 0x14]
call fcn.00403c40
jmp 0x4ad3ab
lea edx, [ebp - 0x164]
mov eax, ebx
call fcn.004ad3d4
mov edx, dword [ebp - 0x164]
lea eax, [ebx + 0x14]
call fcn.00403bfc
cmp dword [ebx + 0x14], 0
jne 0x4ad37c
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.004ad260
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x4ad37c
lea eax, [ebp - 0x154]
call fcn.004097fc
mov ecx, eax
lea edx, [ebp - 0x154]
lea eax, [ebx + 0x14]
call fcn.00403c8c
mov eax, ebx
call fcn.004ad1e4
test al, al
je 0x4ad3a1
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 0x4ad3cb
lea eax, [ebp - 0x164]
call fcn.00403ba8
ret
Function at 0x4b16c4
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 0x4b1773
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x358], 0
jne 0x4b1712
push 0x465
mov eax, dword [ebp - 4]
call fcn.004471a4
mov ecx, eax
mov dl, 1
mov eax, dword [0x4add60]
call fcn.004addcc
mov edx, dword [ebp - 4]
mov dword [edx + 0x358], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x358]
call fcn.004ae298
lea eax, [ebp - 8]
mov edx, 0x4b1788
call fcn.00403c40
call sub.kernel32.dll_GetLogicalDrives
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x4b175d
test bl, 1
je 0x4b1756
lea eax, [ebp - 8]
call fcn.00403ff4
lea edx, [esi + 0x41]
mov byte [eax], dl
push ebp
mov eax, dword [ebp - 8]
call fcn.004b1658
pop ecx
shr ebx, 1
inc esi
test ebx, ebx
jne 0x4b173a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b177a
lea eax, [ebp - 8]
call fcn.00403ba8
ret

Function at 0x4b22b0
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 0x4b23c2
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 0x4b2395
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 0x4b2372
test byte [ebp - 0x14c], 0x10
jne 0x4b2355
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 0x4b2318
push ebx
call sub.kernel32.dll_FindClose
mov byte [ebp - 5], 1
jmp 0x4b237e
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 0x4b239c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4b92f8
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 0x4b9309
je 0x4b930f
jmp 0x4b9335
mov eax, dword [ebx + 0xc]
pop ebx
pop ebp
ret
cmp dword [ebx + 0xc], 0
jne 0x4b932f
lea eax, [ebx + 0xc]
push eax
xor eax, eax
mov al, byte [ebx + 0x10]
push eax
mov eax, dword [0x54c5c8]
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 0x4c05ac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4c05b5
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 0x4c07c1
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 0x4c05f7
cmp byte [ebx + 0x378], 0
je 0x4c079e
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.004bfd90
test eax, eax
jne 0x4c0635
mov eax, esi
call fcn.004091e0
test al, al
je 0x4c079e
mov eax, esi
call fcn.004092d8
jmp 0x4c079e
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 0x4c079e
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 0x4c067d
mov eax, ebx
call fcn.004beff0
mov eax, ebx
call fcn.004bfd90
mov edi, eax
dec edi
test edi, edi
jl 0x4c0795
inc edi
xor esi, esi
cmp byte [ebp - 1], 0
je 0x4c06b8
cmp byte [ebp - 1], 0
je 0x4c078d
mov edx, esi
mov eax, dword [ebx + 0x37c]
call fcn.00410cd0
cmp byte [eax], 0
je 0x4c078d
mov edx, esi
mov eax, ebx
call fcn.004bff40
and eax, 0xff
lea edx, [ebp - 0x14]
call fcn.00408e4c
push dword [ebp - 0x14]
push 0x4c07dc
mov edx, esi
mov eax, ebx
call fcn.004bff20
and eax, 0xff
lea edx, [ebp - 0x18]
call fcn.00408e4c
push dword [ebp - 0x18]
push 0x4c07dc
lea ecx, [ebp - 0x1c]
mov edx, esi
mov eax, ebx
call fcn.004c00f0
push dword [ebp - 0x1c]
push 0x4c07dc
lea ecx, [ebp - 0x20]
mov edx, esi
mov eax, ebx
call fcn.004c01b4
push dword [ebp - 0x20]
push 0x4c07dc
lea ecx, [ebp - 0x24]
mov edx, esi
mov eax, ebx
call fcn.004bfe9c
push dword [ebp - 0x24]
push 0x4c07dc
lea ecx, [ebp - 0x28]
mov edx, esi
mov eax, ebx
call fcn.004bfec4
push dword [ebp - 0x28]
push 0x4c07dc
mov edx, esi
mov eax, ebx
call fcn.004bfeec
push edx
push eax
lea eax, [ebp - 0x2c]
call fcn.00408e7c
push dword [ebp - 0x2c]
push 0x4c07e8
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 0x4c0692
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 0x4c07c8
lea eax, [ebp - 0x2c]
mov edx, 7
call fcn.00403bcc
lea eax, [ebp - 8]
call fcn.00403ba8
ret
Function at 0x4c5874
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 0x4c5883
popal
pop ebp
ret 0xc

Function at 0x4c5898
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 0x4c5921
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 0x4c5938
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
jne 0x4c58ea
push 0x4c5938
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
je 0x4c58ea
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 0x4c590b
cmp dword [ebp - 0x18], 0xffffffff
jbe 0x4c5914
jmp 0x4c590d
jle 0x4c5914
mov ebx, dword [ebp - 0x18]
inc ebx
dec ebx
jmp 0x4c5917
mov ebx, dword [ebp - 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c592d
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dc2b4
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.004475cc
test al, al
je 0x4dc37a
mov eax, dword [ebp - 4]
call fcn.004dc244
test eax, eax
jle 0x4dc37a
xor edx, edx
push ebp
push 0x4dc373
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 0x4dc33a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.004d9f14
call fcn.004dbca4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.004d9f14
call fcn.00402f44
dec ebx
cmp ebx, 0xffffffff
jne 0x4dc30a
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 0x4dc37a
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 0x4e8a88
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 0x4e8b9c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [0x54c6b8]
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 0x4e8b08
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 0x4e8ae8
mov eax, dword [ebp - 4]
mov edx, dword [0x54c6b8]
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 0x4e8b73
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 0x4e8b35
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 0x4e8ba3
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403bcc
ret
Function at 0x4e92ec
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 0x4e9372
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [0x54c6b8]
mov edx, dword [edx]
call fcn.00403c40
mov eax, dword [ebp - 4]
call fcn.00403e24
mov ebx, eax
test ebx, ebx
jle 0x4e9357
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 0x4e9337
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e9379
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403bcc
ret
Function at 0x504a4c
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.005045d4
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 0x504b90
jmp 0x504aea
mov eax, dword [ebp - 4]
cmp byte [eax + 0x45], 0
je 0x504aa6
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 0x504ba6
mov edx, dword [ebp - 4]
cmp byte [edx + 0x2d], 7
je 0x504ba6
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
cmp byte [edx + 0x4ba], 7
jne 0x504ad8
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x2d]
cmp al, 6
je 0x504ba6
cmp al, 5
je 0x504ba6
push 0x64
call sub.kernel32.dll_Sleep
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.0049b44c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x34], 0
jne 0x504ba6
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d], 0
jne 0x504a86
jmp 0x504ba6
xor edx, edx
push ebp
push 0x504b86
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x45], 0
je 0x504b39
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 0x504b39
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x504ba6
mov edx, dword [ebp - 4]
cmp byte [edx + 0x2d], 7
je 0x504b5f
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
cmp byte [edx + 0x4ba], 7
jne 0x504b69
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x2d]
cmp al, 6
je 0x504b5f
cmp al, 5
jne 0x504b69
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x504ba6
push 0x64
call sub.kernel32.dll_Sleep
mov eax, dword [0x54c5c8]
mov eax, dword [eax]
call fcn.0043b300
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x504b90
mov eax, dword [ebp - 4]
cmp byte [eax + 0x34], 0
jne 0x504ba6
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d], 0
jne 0x504b05
mov eax, dword [ebp - 4]
cmp byte [eax + 0x45], 0
je 0x504bc9
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 0x504bc9
mov eax, dword [ebp - 4]
mov byte [eax + 0x44], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x40b8], 0x190
jl 0x504bfd
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 [0x501f9c]
call fcn.00502a0c
call fcn.0040361c
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x50544c
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.00404154
mov eax, esi
call fcn.00403ff4
push eax
mov edx, ebx
add edx, 2
xor ecx, ecx
pop eax
call fcn.00402bd8
cmp byte [ebp - 1], 0
jne 0x5054bf
mov eax, esi
call fcn.00403ff4
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 0x5054d8
sub al, 2
jb 0x5054df
jmp 0x5054e4
mov ebx, 2
jmp 0x5054e4
mov ebx, 1
mov eax, esi
call fcn.00403ff4
mov byte [eax + ebx - 1], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jge 0x5055c6
test edi, edi
jle 0x505540
mov eax, esi
call fcn.00403ff4
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.00403ff4
mov byte [eax + ebx - 1], 0
jmp 0x5055ba
test edi, edi
jge 0x505586
mov eax, edi
cdq
xor eax, edx
sub eax, edx
mov edi, eax
mov eax, esi
call fcn.00403ff4
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 0x5055ba
mov eax, esi
call fcn.00403ff4
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.00403ff4
mov byte [eax + ebx - 1], 0
mov edi, 2
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jl 0x5054fc
mov al, byte [ebp - 1]
sub al, 1
jb 0x5055d6
sub al, 2
jb 0x50560f
jmp 0x505656
cmp edi, 2
jne 0x5055dc
dec ebx
mov eax, ebx
sub eax, 2
jl 0x505656
inc eax
mov dword [ebp - 0x14], eax
mov edi, 2
mov eax, esi
call fcn.00403ff4
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x54c0b4]
mov dl, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x5055ec
jmp 0x505656
cmp edi, 2
jne 0x505615
dec ebx
test ebx, ebx
jle 0x505651
mov dword [ebp - 0x14], ebx
mov edi, 1
mov eax, esi
call fcn.00403ff4
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x54c0b8]
mov dl, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x505621
jmp 0x505651
inc ebx
mov eax, esi
call fcn.00403ff4
mov byte [eax + ebx - 1], 0x3d
test bl, 3
jne 0x505644
mov eax, esi
mov edx, ebx
call fcn.00404154
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x50e904
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00403fd8
xor eax, eax
push ebp
push 0x50e9c4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 0x50e9d8
call fcn.00403c40
mov eax, dword [0x54f1ac]
call fcn.004091e0
test al, al
je 0x50e991
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [0x54f1ac]
call fcn.00403e70
call fcn.004c7aa4
test al, al
je 0x50e977
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403fe8
push eax
push 0
mov eax, dword [0x54c78c]
mov eax, dword [eax]
call eax
jmp 0x50e9a9
push 1
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00403fe8
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x50e9a9
push 1
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00403fe8
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e9cb
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403bcc
ret
Function at 0x51d6e4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00403fd8
xor eax, eax
push ebp
push 0x51d789
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x54f4f4], 0
je 0x51d773
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov eax, dword [0x54f538]
call fcn.00403fe8
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x51d773
push 2
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer_1
lea eax, [ebp - 4]
mov edx, 0x51d7a0
call fcn.00403e2c
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00403e24
push eax
lea eax, [ebp - 4]
call fcn.00403ff4
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51d790
lea eax, [ebp - 4]
call fcn.00403ba8
ret