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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4d7b65
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 0x4d7d6e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 2], 0
mov eax, dword [ebx + 0x3ac]
mov edx, esi
call fcn.00403f98
jne 0x4d7ba7
cmp byte [ebx + 0x3e0], 0
je 0x4d7d4b
mov byte [ebp - 2], 1
lea eax, [ebx + 0x3ac]
mov edx, esi
call fcn.00403c60
mov byte [ebx + 0x3e0], 0
mov eax, ebx
call fcn.004d72f0
test eax, eax
jne 0x4d7be5
mov eax, esi
call fcn.004092ac
test al, al
je 0x4d7d4b
mov eax, esi
call fcn.004093b8
jmp 0x4d7d4b
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 0x4d7d4b
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetFilePointer_1
mov eax, ebx
call fcn.004d72f0
mov edi, eax
dec edi
test edi, edi
jl 0x4d7d42
inc edi
xor esi, esi
cmp byte [ebp - 1], 0
je 0x4d7c5b
cmp byte [ebp - 1], 0
je 0x4d7d3a
mov edx, esi
mov eax, dword [ebx + 0x3e4]
call fcn.00410e4c
cmp byte [eax], 0
je 0x4d7d3a
mov edx, esi
mov eax, ebx
call fcn.004d74dc
and eax, 0xff
lea edx, [ebp - 0x14]
call fcn.00408f24
push dword [ebp - 0x14]
push 0x4d7d88
mov edx, esi
mov eax, ebx
call fcn.004d74bc
and eax, 0xff
lea edx, [ebp - 0x18]
call fcn.00408f24
push dword [ebp - 0x18]
push 0x4d7d88
push 0x4d7d94
lea ecx, [ebp - 0x1c]
mov edx, esi
mov eax, ebx
call fcn.004d74fc
push dword [ebp - 0x1c]
push 0x4d7d88
push 0x4d7d94
lea ecx, [ebp - 0x20]
mov edx, esi
mov eax, ebx
call fcn.004d7524
push dword [ebp - 0x20]
push 0x4d7d88
lea ecx, [ebp - 0x24]
mov edx, esi
mov eax, ebx
call fcn.004d7438
push dword [ebp - 0x24]
push 0x4d7d88
lea ecx, [ebp - 0x28]
mov edx, esi
mov eax, ebx
call fcn.004d7460
push dword [ebp - 0x28]
push 0x4d7d88
mov edx, esi
mov eax, ebx
call fcn.004d7488
push edx
push eax
lea eax, [ebp - 0x2c]
call fcn.00408f54
push dword [ebp - 0x2c]
push 0x4d7da0
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 0x4d7c35
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 0x4d7d75
lea eax, [ebp - 0x2c]
mov edx, 7
call fcn.00403c30
lea eax, [ebp - 8]
call fcn.00403c0c
ret
Function at 0x4da17c
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 0x4da19b
add esp, 0xfffffff0
call fcn.004032d4
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4da23c
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.00418788
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.00453458
mov eax, dword [ebp - 0x168]
call fcn.0040404c
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [ebp - 0x160]
mov dword [0x589da8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4da243
lea eax, [ebp - 0x168]
call fcn.00403c0c
ret

Function at 0x4da7d8
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 0x4da904
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jl 0x4da810
mov eax, dword [ebx + 0x24]
cmp esi, dword [eax + 8]
jl 0x4da862
lea eax, [ebp - 0x164]
push eax
lea edx, [ebp - 0x168]
mov eax, 0x4da004
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 [0x4da00c]
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 0x4da8da
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 0x4da8bd
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 0x4da8c8
mov eax, dword [0x589da8]
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 0x4da90b
lea eax, [ebp - 0x168]
mov edx, 2
call fcn.00403c30
ret
Function at 0x4de1f8
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 0x4de207
popal
pop ebp
ret 0xc
Function at 0x4e19d0
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 0x4e1a8a
cmp byte [ebp - 1], 0
jne 0x4e1a07
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x1f8]
cmp eax, 0x3e8
jbe 0x4e1a8a
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x1f8], eax
mov esi, dword [ebx + 0x234]
mov eax, dword [ebx + 0x1f4]
mov eax, dword [eax + 0xc]
test eax, eax
jle 0x4e1a7b
mov edx, eax
dec edx
mov edi, dword [ebx + 0x248]
cmp edx, edi
jge 0x4e1a36
xor eax, eax
jmp 0x4e1a3a
mov eax, edx
sub eax, edi
mov edi, eax
sub edx, edi
jl 0x4e1a7b
inc edx
mov dword [ebp - 8], edx
mov edx, edi
mov eax, dword [ebx + 0x1f4]
call fcn.004e0228
mov edx, dword [eax]
mov eax, esi
call fcn.00457f20
mov esi, eax
mov edx, edi
mov eax, dword [ebx + 0x1f4]
call fcn.004e0228
mov edx, dword [eax + 4]
mov eax, esi
call fcn.00457f20
mov esi, eax
inc edi
dec dword [ebp - 8]
jne 0x4e1a44
mov edx, esi
mov eax, ebx
call fcn.004e1cd0
mov dword [ebx + 0x230], eax
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4e5afc
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.004e5684
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 0x4e5c40
jmp 0x4e5b9a
mov eax, dword [ebp - 4]
cmp byte [eax + 0x45], 0
je 0x4e5b56
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 0x4e5c56
mov edx, dword [ebp - 4]
cmp byte [edx + 0x2d], 7
je 0x4e5c56
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
cmp byte [edx + 0x4ba], 7
jne 0x4e5b88
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x2d]
cmp al, 6
je 0x4e5c56
cmp al, 5
je 0x4e5c56
push 0x64
call sub.kernel32.dll_Sleep
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.004b0130
mov eax, dword [ebp - 4]
cmp byte [eax + 0x34], 0
jne 0x4e5c56
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d], 0
jne 0x4e5b36
jmp 0x4e5c56
xor edx, edx
push ebp
push 0x4e5c36
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x45], 0
je 0x4e5be9
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 0x4e5be9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e5c56
mov edx, dword [ebp - 4]
cmp byte [edx + 0x2d], 7
je 0x4e5c0f
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
cmp byte [edx + 0x4ba], 7
jne 0x4e5c19
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x2d]
cmp al, 6
je 0x4e5c0f
cmp al, 5
jne 0x4e5c19
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e5c56
push 0x64
call sub.kernel32.dll_Sleep
mov eax, dword [0x585d88]
mov eax, dword [eax]
call fcn.0043b2e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e5c40
mov eax, dword [ebp - 4]
cmp byte [eax + 0x34], 0
jne 0x4e5c56
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d], 0
jne 0x4e5bb5
mov eax, dword [ebp - 4]
cmp byte [eax + 0x45], 0
je 0x4e5c79
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 0x4e5c79
mov eax, dword [ebp - 4]
mov byte [eax + 0x44], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x40b8], 0x190
jl 0x4e5cad
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 [0x4e304c]
call fcn.004e3abc
call fcn.00403680
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4e64fc
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 0x4e656f
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 0x4e6588
sub al, 2
jb 0x4e658f
jmp 0x4e6594
mov ebx, 2
jmp 0x4e6594
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 0x4e6676
test edi, edi
jle 0x4e65f0
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 0x4e666a
test edi, edi
jge 0x4e6636
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 0x4e666a
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 0x4e65ac
mov al, byte [ebp - 1]
sub al, 1
jb 0x4e6686
sub al, 2
jb 0x4e66bf
jmp 0x4e6706
cmp edi, 2
jne 0x4e668c
dec ebx
mov eax, ebx
sub eax, 2
jl 0x4e6706
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 [0x584fa0]
mov dl, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x4e669c
jmp 0x4e6706
cmp edi, 2
jne 0x4e66c5
dec ebx
test ebx, ebx
jle 0x4e6701
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 [0x584fa4]
mov dl, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x4e66d1
jmp 0x4e6701
inc ebx
mov eax, esi
call fcn.00404058
mov byte [eax + ebx - 1], 0x3d
test bl, 3
jne 0x4e66f4
mov eax, esi
mov edx, ebx
call fcn.004041b8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x501498
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 0x50155e
mov eax, dword [ebp - 4]
call fcn.00501428
test eax, eax
jle 0x50155e
xor edx, edx
push ebp
push 0x501557
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 0x50151e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.004ff0f8
call fcn.00500e88
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.004ff0f8
call fcn.00402fa8
dec ebx
cmp ebx, 0xffffffff
jne 0x5014ee
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 0x50155e
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 0x50f154
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 0x50f268
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [0x585ebc]
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 0x50f1d4
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 0x50f1b4
mov eax, dword [ebp - 4]
mov edx, dword [0x585ebc]
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 0x50f23f
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 0x50f201
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 0x50f26f
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403c30
ret
Function at 0x50f978
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 0x50f9fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [0x585ebc]
mov edx, dword [edx]
call fcn.00403ca4
mov eax, dword [ebp - 4]
call fcn.00403e88
mov ebx, eax
test ebx, ebx
jle 0x50f9e3
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 0x50f9c3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50fa05
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403c30
ret
Function at 0x511590
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.0051175f
mov eax, esi
call fcn.00511785
shr eax, 1
dec eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x5115c6
mov byte [esi], 0
jmp 0x511758
lea eax, [ebp - 0x118]
mov dword [ebp - 0x14], eax
mov edi, dword [ebp - 8]
test edi, edi
jl 0x511605
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 0x5115da
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 [0x589f48], 0xcf671
mov edi, dword [ebp - 8]
test edi, edi
jl 0x511681
inc edi
xor ebx, ebx
xor eax, eax
mov al, byte [esi + ebx]
mov word [ebp - 4], ax
mov eax, 8
call fcn.0051179a
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 0x51164c
mov dword [0x589f48], 0x3039
mov ebx, pe_nt_image_headers32
mov edi, dword [ebp - 8]
inc edi
mov eax, edi
call fcn.0051179a
lea eax, [esi + eax]
push eax
mov eax, edi
call fcn.0051179a
lea eax, [esi + eax]
pop edx
call fcn.005117b0
dec ebx
jne 0x511690
mov dword [0x589f48], 0xa564
mov edi, dword [ebp - 8]
test edi, edi
jl 0x5116e7
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.0051179a
xor word [ebp - 4], ax
mov al, byte [ebp - 4]
mov byte [esi + ebx], al
inc ebx
dec edi
jne 0x5116c6
mov dword [0x589f48], 0xd431
mov edi, dword [ebp - 8]
test edi, edi
jl 0x511738
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.0051179a
movzx edx, word [ebp - 4]
add edx, 0x100
sub edx, eax
and edx, 0x800000ff
jns 0x51172a
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 0x5116fb
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x10]
mov edx, dword [ebp - 8]
inc edx
mov eax, esi
call fcn.005117bb
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
je 0x511758
mov byte [esi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
imul edx, dword [0x589f48], 0x8088405
inc edx
mov dword [0x589f48], edx
mul edx
mov eax, edx
ret
Function at 0x5117bb
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, 0x511800
mov ecx, dword [ebp - 0xc]
or ecx, ecx
je 0x5117f4
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 0x5117e1
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x54837c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040403c
xor eax, eax
push ebp
push 0x548422
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.0040404c
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x54840c
push 2
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer_1
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
mov edx, 0x548438
call fcn.00403e90
mov eax, dword [ebp + 8]
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00403e88
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
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 0x548429
lea eax, [ebp - 4]
call fcn.00403c0c
ret
Function at 0x5546e0
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 0x55481b
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 0x5547eb
push esi
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x7cc]
call fcn.004d68e0
cmp dword [esi], 0xffffffff
je 0x5547eb
cmp dword [esi], 0xffffffff
jle 0x5547d0
mov edx, dword [esi]
mov eax, dword [ebx + 0x7cc]
call fcn.004d74bc
and eax, 0xff
cmp edi, eax
jne 0x5547d0
lea ecx, [ebp - 0x14]
mov edx, dword [esi]
mov eax, dword [ebx + 0x7cc]
call fcn.004d7460
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00403f98
jne 0x5547d0
lea ecx, [ebp - 0x14]
mov edx, dword [esi]
mov eax, dword [ebx + 0x7cc]
call fcn.004d7524
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
call fcn.00403f98
jne 0x5547d0
lea ecx, [ebp - 0x14]
mov edx, dword [esi]
mov eax, dword [ebx + 0x7cc]
call fcn.004d74fc
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
call fcn.00403f98
jne 0x5547d0
mov byte [ebp - 9], 0
jmp 0x5547eb
push esi
mov ecx, dword [esi]
inc ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x7cc]
call fcn.004d68e0
cmp dword [esi], 0xffffffff
jne 0x554758
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x554822
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