joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401187
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push 0x3ff
push 0x40b640
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4011b8
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
push 0x40b640
call section..text
pop ecx
mov dword [ebp - 4], eax
push 0x40ba50
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x40b640
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2c], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x2c], 0xffffffff
je 0x40138b
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
push 2
push 0
push 0xfffffffffffffff0
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
push 0
lea eax, [ebp - 8]
push eax
push 4
push 0x40ba48
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
cmp dword [ebp - 0xc], 0x221c
jne 0x40136c
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
mov eax, dword [ebp - 0x14]
mov dword [0x40500c], eax
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
mov eax, dword [ebp - 0x18]
mov dword [0x405008], eax
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
jmp 0x401374
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4013ad
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
leave
ret
Function at 0x40143e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
and dword [ebp - 0x44c], 0
mov dword [0x41a4c4], 0x64d8
push 0x64d8
call fcn.00403720
pop ecx
mov dword [0x41a4bc], eax
push 0x64d8
push 0x405020
push dword [0x41a4bc]
call fcn.00401925
add esp, 0xc
push 0x100
call fcn.00403720
pop ecx
mov dword [0x41a4c0], eax
push 0x100
push 0x40b4fc
push dword [0x41a4c0]
call fcn.00401925
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov dword [0x40ba4c], eax
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x40ba58], eax
cmp dword [0x40ba58], 0
jne 0x4014d1
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.VirtualProtect
push dword [0x40ba58]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40ba44], eax
cmp dword [0x40ba44], 0
jne 0x4014f8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0040103e
test eax, eax
je 0x401509
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
push dword [0x41a4c4]
call fcn.00403720
pop ecx
mov dword [0x40ba40], eax
and dword [ebp - 0x30c], 0
jmp 0x40153d
mov eax, dword [ebp - 0x30c]
inc eax
mov dword [ebp - 0x30c], eax
mov eax, dword [ebp - 0x30c]
cmp eax, dword [0x41a4c4]
jae 0x401589
push 0x40ba50
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [0x41a4bc]
add eax, dword [ebp - 0x30c]
mov al, byte [eax]
mov byte [ebp - 0x208], al
movzx eax, byte [ebp - 0x208]
mov ecx, dword [0x40ba40]
add ecx, dword [ebp - 0x30c]
mov edx, dword [0x41a4c0]
mov al, byte [edx + eax]
mov byte [ecx], al
jmp 0x401530
mov eax, dword [0x405018]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x405018], eax
push dword [0x41a4c4]
push 0x40ba5c
push dword [0x40ba40]
call fcn.00402269
add esp, 0xc
mov dword [ebp - 0x448], eax
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
mov dword [0x40ba40], 0x40ba5c
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
mov eax, dword [ebp - 0x448]
mov dword [0x41a4c4], eax
jmp loc.0041bfd8
Function at 0x402a31
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
movzx ecx, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
and dword [ebp - 0x14], 0
jmp 0x402a78
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
add eax, 0x28
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x14], eax
jge 0x402c0e
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x402b6e
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x402b5d
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 4
push 0x1000
push dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov eax, dword [0x405018]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x405018], eax
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
push dword [ebp - 4]
push 0
push dword [ebp - 0xc]
call fcn.00401963
add esp, 0xc
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
jmp 0x402a68
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
push 4
push 0x1000
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
push ecx
push dword [ebp - 0xc]
call fcn.00401925
add esp, 0xc
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
jmp 0x402a68
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
leave
ret
Function at 0x403790
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4037b9
cmp al, 0x22
je 0x4037b1
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4037a5
cmp byte [esi], 0x22
jne 0x4037c3
inc esi
jmp 0x4037c3
cmp al, 0x20
jle 0x4037c3
inc esi
cmp byte [esi], 0x20
jg 0x4037bd
mov al, byte [esi]
test al, al
je 0x4037cd
cmp al, 0x20
jle 0x4037b6
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040383b
push 0x405004
push section..data
call fcn.00403821
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x4037fd
movzx eax, word [ebp - 0x14]
jmp 0x403800
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
jmp section..htext
Function at 0x403c3c
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.00402218
ret
Function at 0x403de4
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x403f91
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
call fcn.00403c3c
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x403f5c
xor eax, eax
push ebp
push 0x403f55
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x403f19
xor eax, eax
push ebp
push 0x403f12
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x403eda
xor eax, eax
push ebp
push 0x403ed3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize
mov ecx, eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
call fcn.00403c70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403efb
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
test bl, bl
je 0x403efb
mov eax, dword [ebp - 8]
mov edi, eax
mov esi, 0x453060
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x403f7b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403f3e
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret
test bl, bl
je 0x403f3e
call sub.kernel32.dll_GetLastError
cmp eax, 0x3ee
je 0x403f3e
mov eax, dword [ebp - 8]
mov edi, eax
mov esi, 0x453060
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x403f7b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403f70
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
test bl, bl
je 0x403f70
mov eax, dword [ebp - 8]
mov edi, eax
mov esi, 0x453060
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x403f7b
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x6c]
call fcn.00403cf4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403f98
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__UStrClr_qqrpv
ret
Function at 0x4044a8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
test dl, dl
je 0x4044c2
add esp, 0xfffffff0
call sub.rtl120.bpl__System__ClassCreate_qqrp17System_TMetaClasso
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x4045f4
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [edi + 0x1c], eax
mov byte [edi + 0x19], 0
mov byte [edi + 0x18], 0
xor ecx, ecx
xor edx, edx
mov eax, edi
call sub.rtl120.bpl__Inifiles_TMemIniFile__bctr_qqrx20System_UnicodeString
mov eax, dword [edi + 8]
mov dword [edi + 0x14], eax
lea eax, [edi + 0x10]
mov edx, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
cmp dword [edi + 0x10], 0
je 0x4045d0
mov edx, dword [edi + 0x10]
mov eax, edi
call fcn.004042b4
mov eax, dword [edi + 0x14]
mov dword [eax + 0x34], edi
mov dword [eax + 0x30], 0x4044a0
mov eax, dword [edi + 0x10]
call sub.rtl120.bpl__Sysutils_FileExists_qqrx20System_UnicodeString
test al, al
jne 0x4045c6
lea edx, [ebp - 4]
mov eax, dword [edi + 0x10]
call sub.rtl120.bpl__Sysutils_ExtractFileDir_qqrx20System_UnicodeString
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__EnsureUnicodeString_qqrr20System_UnicodeString
call sub.rtl120.bpl__System__UStrLen_qqrx20System_UnicodeString
test eax, eax
jle 0x40455d
mov eax, dword [ebp - 4]
call fcn.0040437c
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
mov eax, dword [edi + 0x10]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x4045c6
cmp dword [ebp + 8], 0
je 0x4045c0
mov eax, dword [ebp + 8]
mov dword [edi + 0xc], eax
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 8]
call sub.rtl120.bpl__System__DynArrayLength_qqrv
test eax, eax
jle 0x4045c0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call sub.rtl120.bpl__System__DynArrayLength_qqrv
push eax
mov eax, dword [ebp - 8]
push eax
push esi
call sub.kernel32.dll_WriteFile
push esi
call sub.kernel32.dll_CloseHandle
cmp dword [edi + 0x1c], 0
je 0x4045d0
mov byte [edi + 0x19], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4045fb
lea eax, [ebp - 8]
mov edx, dword [sym.imp.rtl120.bpl___xp_15Sysutils_TBytes]
call sub.rtl120.bpl__System__DynArrayClear_qqrrpvpv
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__UStrClr_qqrpv
ret

Function at 0x404c38
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, eax
push esp
push 0xff
call sub.kernel32.dll_GetTempPathW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
add esp, 0x200
pop ebx
ret
Function at 0x405bf4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, dword [ebp + 8]
mov eax, ebx
xor edx, edx
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push 0
push edi
lea eax, [ebp - 0x20a]
push eax
push esi
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, ebx
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405c3c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, edx
push 0xff
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
add esp, 0x200
pop ebx
ret

Function at 0x405c6c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, edx
push esp
push 0xff
call sub.kernel32.dll_GetTempPathW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
add esp, 0x200
pop ebx
ret

Function at 0x405c98
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, edx
push 0xff
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
add esp, 0x200
pop ebx
ret

Function at 0x405cc8
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
mov ebx, eax
mov eax, ebx
xor edx, edx
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov dword [ebp - 4], 0x104
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x405d05
mov eax, ebx
lea edx, [ebp - 0x20c]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405d0c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
xor edx, edx
mov dword [ebp - 0x20c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x405d88
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
test eax, eax
jbe 0x405d6f
push ebx
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov eax, dword [ebp - 0x20c]
mov ecx, 2
mov edx, 1
call sub.rtl120.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d8f
lea eax, [ebp - 0x20c]
call sub.rtl120.bpl__System__UStrClr_qqrpv
ret
Function at 0x4067f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x406953
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40686e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x23
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, dword [ebp - 4]
add eax, 8
lea edx, [ebp - 0x212]
mov ecx, 0x105
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x406899
xor eax, eax
push ebp
push 0x4068db
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x1a
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, dword [ebp - 4]
add eax, 4
lea edx, [ebp - 0x212]
mov ecx, 0x105
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x406906
lea edx, [ebp - 0x224]
xor eax, eax
call sub.rtl120.bpl__System_ParamStr_qqri
mov eax, dword [ebp - 0x224]
lea edx, [ebp - 0x220]
call sub.rtl120.bpl__Sysutils_ExtractFilePath_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 4]
add eax, 0xc
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40695a
lea eax, [ebp - 0x224]
mov edx, 4
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
ret

Function at 0x408df4
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408e70
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xff
mov edx, dword [ebp - 8]
inc edx
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__WStrSetLength_qqrr17System_WideStringi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__WStrToPWChar_qqrx17System_WideString
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x408e51
mov edx, dword [ebp - 8]
dec edx
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__WStrSetLength_qqrr17System_WideStringi
mov eax, ebx
mov edx, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrFromWStr_qqrr20System_UnicodeStringx17System_WideString
jmp 0x408e5a
mov eax, ebx
xor edx, edx
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e77
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__WStrClr_qqrpv
ret
Function at 0x40a238
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, eax
push 0xff
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
add esp, 0x200
pop ebx
ret

Function at 0x411420
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
cmp byte [0x45612c], 0
jne 0x41142c
xor eax, eax
ret
call sub.kernel32.dll_GetTickCount
sub eax, dword [0x4533a4]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x7d0
jle 0x411462
push 0x91
call sub.user32.dll_GetKeyState
cmp ax, 1
sete byte [0x4533a8]
call sub.kernel32.dll_GetTickCount
mov dword [0x4533a4], eax
movzx eax, byte [0x4533a8]
ret

Function at 0x4137a4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
dec ecx
test ecx, ecx
jl 0x413813
inc ecx
xor ebx, ebx
mov eax, dword [ebp - 0x10]
and eax, 0xff
movzx edx, byte [esi + ebx]
xor eax, edx
mov edx, dword [eax*8 + 0x4538b4]
mov eax, dword [eax*8 + 0x4538b0]
push edx
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
shrd eax, edx, 8
shr edx, 8
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
inc ebx
dec ecx
jne 0x4137c8
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x413824
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
dec ecx
test ecx, ecx
jl 0x41384c
inc ecx
xor ebx, ebx
movzx esi, byte [edx + ebx]
xor esi, eax
and esi, 0xff
mov esi, dword [esi*4 + 0x4534b0]
shr eax, 8
xor esi, eax
mov eax, esi
inc ebx
dec ecx
jne 0x41382e
pop esi
pop ebx
ret