joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ded88
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4ded91
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 0x4def9a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 2], 0
mov eax, dword [ebx + 0x3a4]
mov edx, esi
call fcn.00403f98
jne 0x4dedd3
cmp byte [ebx + 0x3d8], 0
je 0x4def77
mov byte [ebp - 2], 1
lea eax, [ebx + 0x3a4]
mov edx, esi
call fcn.00403c60
mov byte [ebx + 0x3d8], 0
mov eax, ebx
call fcn.004de544
test eax, eax
jne 0x4dee11
mov eax, esi
call fcn.004092ac
test al, al
je 0x4def77
mov eax, esi
call fcn.004093b8
jmp 0x4def77
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, esi
call fcn.0040404c
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4def77
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetFilePointer_1
mov eax, ebx
call fcn.004de544
mov edi, eax
dec edi
test edi, edi
jl 0x4def6e
inc edi
xor esi, esi
cmp byte [ebp - 1], 0
je 0x4dee87
cmp byte [ebp - 1], 0
je 0x4def66
mov edx, esi
mov eax, dword [ebx + 0x3dc]
call fcn.00410e4c
cmp byte [eax], 0
je 0x4def66
mov edx, esi
mov eax, ebx
call fcn.004de730
and eax, 0xff
lea edx, [ebp - 0x14]
call fcn.00408f24
push dword [ebp - 0x14]
push 0x4defb4
mov edx, esi
mov eax, ebx
call fcn.004de710
and eax, 0xff
lea edx, [ebp - 0x18]
call fcn.00408f24
push dword [ebp - 0x18]
push 0x4defb4
push 0x4defc0
lea ecx, [ebp - 0x1c]
mov edx, esi
mov eax, ebx
call fcn.004de750
push dword [ebp - 0x1c]
push 0x4defb4
push 0x4defc0
lea ecx, [ebp - 0x20]
mov edx, esi
mov eax, ebx
call fcn.004de778
push dword [ebp - 0x20]
push 0x4defb4
lea ecx, [ebp - 0x24]
mov edx, esi
mov eax, ebx
call fcn.004de68c
push dword [ebp - 0x24]
push 0x4defb4
lea ecx, [ebp - 0x28]
mov edx, esi
mov eax, ebx
call fcn.004de6b4
push dword [ebp - 0x28]
push 0x4defb4
mov edx, esi
mov eax, ebx
call fcn.004de6dc
push edx
push eax
lea eax, [ebp - 0x2c]
call fcn.00408f54
push dword [ebp - 0x2c]
push 0x4defcc
lea eax, [ebp - 8]
mov edx, 0x10
call fcn.00403f48
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00403e88
push eax
lea eax, [ebp - 8]
call fcn.00404058
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
inc esi
dec edi
jne 0x4dee61
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 0x4defa1
lea eax, [ebp - 0x2c]
mov edx, 7
call fcn.00403c30
lea eax, [ebp - 8]
call fcn.00403c0c
ret
Function at 0x4e13a8
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 0x4e13c7
add esp, 0xfffffff0
call fcn.004032d4
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4e1468
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.004186f8
mov dl, 1
mov eax, dword [0x40f0c8]
call fcn.00402f78
mov esi, eax
mov dword [ebx + 0x24], esi
mov edx, 0x3e8
mov eax, esi
call fcn.00411100
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.00453480
mov eax, dword [ebp - 0x168]
call fcn.0040404c
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [ebp - 0x160]
mov dword [0x585f48], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e146f
lea eax, [ebp - 0x168]
call fcn.00403c0c
ret

Function at 0x4e1a04
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 0x4e1b30
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jl 0x4e1a3c
mov eax, dword [ebx + 0x24]
cmp esi, dword [eax + 8]
jl 0x4e1a8e
lea eax, [ebp - 0x164]
push eax
lea edx, [ebp - 0x168]
mov eax, 0x4e1230
call fcn.00405c64
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x170], 0xe
mov byte [ebp - 0x16c], 0
lea edx, [ebp - 0x170]
xor ecx, ecx
call fcn.00409ffc
mov ecx, dword [ebp - 0x164]
mov dl, 1
mov eax, dword [0x4e1238]
call fcn.0040bb58
call fcn.00403680
mov eax, dword [ebx + 0x24]
mov eax, dword [eax + 4]
mov eax, dword [eax + esi*4]
cmp dword [eax + 0x38], 0xffffffff
jne 0x4e1b06
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 0x4e1ae9
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.0040404c
push eax
call sub.shell32.dll_SHGetFileInfoA
jmp 0x4e1af4
mov eax, dword [0x585f48]
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 0x4e1b37
lea eax, [ebp - 0x168]
mov edx, 2
call fcn.00403c30
ret
Function at 0x4e5424
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 0x4e5433
popal
pop ebp
ret 0xc
Function at 0x4e8bfc
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 + 0x23e], 0
jne 0x4e8cb6
cmp byte [ebp - 1], 0
jne 0x4e8c33
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x1f8]
cmp eax, 0x3e8
jbe 0x4e8cb6
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x1f8], eax
mov esi, dword [ebx + 0x234]
mov eax, dword [ebx + 0x1f4]
add byte [eax], al
Function at 0x4eba68
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.004eb5f0
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 0x4ebbac
jmp 0x4ebb06
mov eax, dword [ebp - 4]
cmp byte [eax + 0x45], 0
je 0x4ebac2
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 0x4ebbc2
mov edx, dword [ebp - 4]
cmp byte [edx + 0x2d], 7
je 0x4ebbc2
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
cmp byte [edx + 0x4ba], 7
jne 0x4ebaf4
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x2d]
cmp al, 6
je 0x4ebbc2
cmp al, 5
je 0x4ebbc2
push 0x64
call sub.kernel32.dll_Sleep
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.004b7534
mov eax, dword [ebp - 4]
cmp byte [eax + 0x34], 0
jne 0x4ebbc2
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d], 0
jne 0x4ebaa2
jmp 0x4ebbc2
xor edx, edx
push ebp
push 0x4ebba2
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x45], 0
je 0x4ebb55
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 0x4ebb55
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ebbc2
mov edx, dword [ebp - 4]
cmp byte [edx + 0x2d], 7
je 0x4ebb7b
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
cmp byte [edx + 0x4ba], 7
jne 0x4ebb85
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x2d]
cmp al, 6
je 0x4ebb7b
cmp al, 5
jne 0x4ebb85
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ebbc2
push 0x64
call sub.kernel32.dll_Sleep
mov eax, dword [0x581ca8]
mov eax, dword [eax]
call fcn.0043b27c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ebbac
mov eax, dword [ebp - 4]
cmp byte [eax + 0x34], 0
jne 0x4ebbc2
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d], 0
jne 0x4ebb21
mov eax, dword [ebp - 4]
cmp byte [eax + 0x45], 0
je 0x4ebbe5
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 0x4ebbe5
mov eax, dword [ebp - 4]
mov byte [eax + 0x44], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x40b8], 0x190
jl 0x4ebc19
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 [0x4e8fb8]
call fcn.004e9a28
call fcn.00403680
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4ec468
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.004041b8
mov eax, esi
call fcn.00404058
push eax
mov edx, ebx
add edx, 2
xor ecx, ecx
pop eax
call fcn.00402c18
cmp byte [ebp - 1], 0
jne 0x4ec4db
mov eax, esi
call fcn.00404058
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 0x4ec4f4
sub al, 2
jb 0x4ec4fb
jmp 0x4ec500
mov ebx, 2
jmp 0x4ec500
mov ebx, 1
mov eax, esi
call fcn.00404058
mov byte [eax + ebx - 1], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jge 0x4ec5e2
test edi, edi
jle 0x4ec55c
mov eax, esi
call fcn.00404058
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.00404058
mov byte [eax + ebx - 1], 0
jmp 0x4ec5d6
test edi, edi
jge 0x4ec5a2
mov eax, edi
cdq
xor eax, edx
sub eax, edx
mov edi, eax
mov eax, esi
call fcn.00404058
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 0x4ec5d6
mov eax, esi
call fcn.00404058
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.00404058
mov byte [eax + ebx - 1], 0
mov edi, 2
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jl 0x4ec518
mov al, byte [ebp - 1]
sub al, 1
jb 0x4ec5f2
sub al, 2
jb 0x4ec62b
jmp 0x4ec672
cmp edi, 2
jne 0x4ec5f8
dec ebx
mov eax, ebx
sub eax, 2
jl 0x4ec672
inc eax
mov dword [ebp - 0x14], eax
mov edi, 2
mov eax, esi
call fcn.00404058
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x58101c]
mov dl, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x4ec608
jmp 0x4ec672
cmp edi, 2
jne 0x4ec631
dec ebx
test ebx, ebx
jle 0x4ec66d
mov dword [ebp - 0x14], ebx
mov edi, 1
mov eax, esi
call fcn.00404058
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x581020]
mov dl, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x4ec63d
jmp 0x4ec66d
inc ebx
mov eax, esi
call fcn.00404058
mov byte [eax + ebx - 1], 0x3d
test bl, 3
jne 0x4ec660
mov eax, esi
mov edx, ebx
call fcn.004041b8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x506e98
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.00447548
test al, al
je 0x506f5e
mov eax, dword [ebp - 4]
call fcn.00506e28
test eax, eax
jle 0x506f5e
xor edx, edx
push ebp
push 0x506f57
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 0x506f1e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.00504af8
call fcn.00506888
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.00504af8
call fcn.00402fa8
dec ebx
cmp ebx, 0xffffffff
jne 0x506eee
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x40]
mov bx, 0xffff
call fcn.00403184
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 0x506f5e
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 0x514380
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 0x514494
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [0x581dd8]
mov edx, dword [edx]
call fcn.00403ca4
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 0x514400
inc ebx
lea eax, [ebp - 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov dl, byte [edx + edi]
call fcn.00403db0
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.00403e90
inc edi
dec ebx
jne 0x5143e0
mov eax, dword [ebp - 4]
mov edx, dword [0x581dd8]
mov edx, dword [edx]
call fcn.00403ca4
mov eax, dword [ebp - 8]
call fcn.00403e88
mov esi, eax
mov eax, dword [ebp - 8]
call fcn.00403e88
mov ebx, eax
test ebx, ebx
jle 0x51446b
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.00403db0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00403e90
mov eax, dword [ebp - 4]
inc edi
dec ebx
jne 0x51442d
mov eax, dword [ebp - 8]
call fcn.00403e88
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 0x51449b
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403c30
ret
Function at 0x514ba4
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.0040403c
xor eax, eax
push ebp
push 0x514c2a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [0x581dd8]
mov edx, dword [edx]
call fcn.00403ca4
mov eax, dword [ebp - 4]
call fcn.00403e88
mov ebx, eax
test ebx, ebx
jle 0x514c0f
mov edi, 1
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
mov dl, byte [edx + edi - 1]
xor dl, 0xc8
call fcn.00403db0
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00403e90
inc edi
dec ebx
jne 0x514bef
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x514c31
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403c30
ret
Function at 0x5167bc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
mov esi, eax
lea eax, [ebp - 0x118]
mov edx, esi
call fcn.0051698b
mov eax, esi
call fcn.005169b1
shr eax, 1
dec eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x5167f2
mov byte [esi], 0
jmp 0x516984
lea eax, [ebp - 0x118]
mov dword [ebp - 0x14], eax
mov edi, dword [ebp - 8]
test edi, edi
jl 0x516831
inc edi
xor ebx, ebx
push edx
mov eax, dword [ebp - 0x14]
mov dx, word [eax]
mov al, dl
sub al, 0x30
aam 0x10
aad 9
shl al, 4
mov dl, al
mov al, dh
sub al, 0x30
aam 0x10
aad 9
add al, dl
mov byte [esi + ebx], al
add dword [ebp - 0x14], 2
inc ebx
dec edi
jne 0x516806
pop edx
mov eax, dword [ebp - 8]
mov al, byte [esi + eax - 3]
mov byte [ebp - 0xc], al
mov eax, dword [ebp - 8]
mov al, byte [esi + eax - 2]
mov byte [ebp - 0xb], al
mov eax, dword [ebp - 8]
mov al, byte [esi + eax - 1]
mov byte [ebp - 0xa], al
mov eax, dword [ebp - 8]
mov al, byte [esi + eax]
mov byte [ebp - 9], al
sub dword [ebp - 8], 4
mov eax, dword [ebp - 8]
mov byte [esi + eax + 1], 0
mov dword [0x5860dc], 0xcf671
mov edi, dword [ebp - 8]
test edi, edi
jl 0x5168ad
inc edi
xor ebx, ebx
xor eax, eax
mov al, byte [esi + ebx]
mov word [ebp - 4], ax
mov eax, 8
call fcn.005169c6
mov byte [ebp - 1], al
push ax
push cx
mov cl, byte [ebp - 1]
mov ax, word [ebp - 4]
rol al, cl
mov word [ebp - 4], ax
pop cx
pop ax
mov al, byte [ebp - 4]
mov byte [esi + ebx], al
inc ebx
dec edi
jne 0x516878
mov dword [0x5860dc], 0x3039
mov ebx, pe_nt_image_headers32
mov edi, dword [ebp - 8]
inc edi
mov eax, edi
call fcn.005169c6
lea eax, [esi + eax]
push eax
mov eax, edi
call fcn.005169c6
lea eax, [esi + eax]
pop edx
call fcn.005169dc
dec ebx
jne 0x5168bc
mov dword [0x5860dc], 0xa564
mov edi, dword [ebp - 8]
test edi, edi
jl 0x516913
inc edi
xor ebx, ebx
xor eax, eax
mov al, byte [esi + ebx]
mov word [ebp - 4], ax
mov eax, pe_nt_image_headers32
call fcn.005169c6
xor word [ebp - 4], ax
mov al, byte [ebp - 4]
mov byte [esi + ebx], al
inc ebx
dec edi
jne 0x5168f2
mov dword [0x5860dc], 0xd431
mov edi, dword [ebp - 8]
test edi, edi
jl 0x516964
inc edi
xor ebx, ebx
xor eax, eax
mov al, byte [esi + ebx]
mov word [ebp - 4], ax
mov eax, pe_nt_image_headers32
call fcn.005169c6
movzx edx, word [ebp - 4]
add edx, 0x100
sub edx, eax
and edx, 0x800000ff
jns 0x516956
dec edx
or edx, 0xffffff00
inc edx
mov word [ebp - 4], dx
mov al, byte [ebp - 4]
mov byte [esi + ebx], al
inc ebx
dec edi
jne 0x516927
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x10]
mov edx, dword [ebp - 8]
inc edx
mov eax, esi
call fcn.005169e7
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
je 0x516984
mov byte [esi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5169c6
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x5860dc], 0x8088405
inc edx
mov dword [0x5860dc], edx
mul edx
mov eax, edx
ret
Function at 0x5169e7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
push edi
push esi
push ebx
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov esi, 0x516a2c
mov ecx, dword [ebp - 0xc]
or ecx, ecx
je 0x516a20
xor ebx, ebx
mov bl, al
shr eax, 8
xor bl, byte [edi]
inc edi
shl ebx, 2
xor eax, dword [esi + ebx]
dec ecx
jne 0x516a0d
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x54cb0c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040403c
xor eax, eax
push ebp
push 0x54cbb7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 0x15
mov eax, ebx
call fcn.0056baac
test al, al
je 0x54cba1
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov eax, dword [0x58665c]
call fcn.0040404c
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x54cba1
push 2
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer_1
lea eax, [ebp - 4]
mov edx, 0x54cbcc
call fcn.00403e90
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00403e88
push eax
lea eax, [ebp - 4]
call fcn.00404058
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 0x54cbbe
lea eax, [ebp - 4]
call fcn.00403c0c
ret
Function at 0x558230
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040403c
mov eax, dword [ebp - 8]
call fcn.0040403c
mov eax, dword [ebp + 0x10]
call fcn.0040403c
mov eax, dword [ebp + 0xc]
call fcn.0040403c
lea esi, [ebp - 0x10]
xor eax, eax
push ebp
push 0x55836b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 1
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x55833b
push esi
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x7d4]
call fcn.004ddb9c
cmp dword [esi], 0xffffffff
je 0x55833b
cmp dword [esi], 0xffffffff
jle 0x558320
mov edx, dword [esi]
mov eax, dword [ebx + 0x7d4]
call fcn.004de710
and eax, 0xff
cmp edi, eax
jne 0x558320
lea ecx, [ebp - 0x14]
mov edx, dword [esi]
mov eax, dword [ebx + 0x7d4]
call fcn.004de6b4
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00403f98
jne 0x558320
lea ecx, [ebp - 0x14]
mov edx, dword [esi]
mov eax, dword [ebx + 0x7d4]
call fcn.004de778
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
call fcn.00403f98
jne 0x558320
lea ecx, [ebp - 0x14]
mov edx, dword [esi]
mov eax, dword [ebx + 0x7d4]
call fcn.004de750
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
call fcn.00403f98
jne 0x558320
mov byte [ebp - 9], 0
jmp 0x55833b
push esi
mov ecx, dword [esi]
inc ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x7d4]
call fcn.004ddb9c
cmp dword [esi], 0xffffffff
jne 0x5582a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x558372
lea eax, [ebp - 0x14]
call fcn.00403c0c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403c30
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00403c30
ret
Function at 0x563dd0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4cc]
mov edx, 0x80000005
call fcn.00451f48
mov dl, 1
mov eax, dword [0x41a558]
call fcn.00421e48
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x563f30
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x164]
xor ecx, ecx
mov edx, 0x160
call fcn.00402c18
push 0x4101
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0x90
mov eax, dword [0x5862b0]
call fcn.0040404c
push eax
call sub.shell32.dll_SHGetFileInfoA
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp - 4]
call fcn.004221ec
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4cc]
mov edx, dword [ebp - 4]
call fcn.00451b78
lea eax, [ebp - 0x164]
xor ecx, ecx
mov edx, 0x160
call fcn.00402c18
push 0x4103
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0x90
mov eax, dword [0x5862b0]
call fcn.0040404c
push eax
call sub.shell32.dll_SHGetFileInfoA
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp - 4]
call fcn.004221ec
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4cc]
mov edx, dword [ebp - 4]
call fcn.00451b78
lea eax, [ebp - 0x164]
xor ecx, ecx
mov edx, 0x160
call fcn.00402c18
push 0xc101
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0x90
mov eax, dword [0x5862b0]
call fcn.0040404c
push eax
call sub.shell32.dll_SHGetFileInfoA
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp - 4]
call fcn.004221ec
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4cc]
mov edx, dword [ebp - 4]
call fcn.00451b78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x563f37
mov eax, dword [ebp - 4]
call fcn.00402fa8
ret