joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b5be
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x481330]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x20
mov eax, 0x469cb1
call fcn.00452251
mov eax, dword [ebp + 0x80c]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x810]
mov esi, edx
mov dword [ebp - 0x14], ecx
xor edi, edi
mov dword [ebp - 0x2c], edi
xor ecx, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], esi
mov dword [eax + 0x18], 7
call fcn.004020b0
xor ebx, ebx
inc ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], edi
cmp esi, edi
je 0x40b6d4
xor eax, eax
push 0x7fe
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.00455920
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
push esi
push dword [ebp - 0x18]
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x1c], edi
call esi
cmp dword [ebp - 0x1c], ebx
je 0x40b664
cmp dword [ebp - 0x1c], 2
jne 0x40b6d4
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x40b6d4
cmp eax, 0x800
jbe 0x40b6a1
add eax, 2
push eax
call fcn.004513ee
mov ebx, eax
mov eax, dword [ebp - 0x10]
add eax, 2
push eax
push edi
push ebx
call fcn.00455920
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call esi
jmp 0x40b6b8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call esi
mov ebx, dword [ebp - 0x28]
mov edx, ebx
cmp ebx, edi
jne 0x40b6c1
lea edx, [ebp]
push dword [ebp - 0x24]
call fcn.004060e0
cmp ebx, edi
je 0x40b6d4
push ebx
call fcn.00451311
pop ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.00451137
add ebp, 0x804
leave
ret

Function at 0x40b748
Capabilities:
Check if file exists
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [ebp + 0x10], 3
jbe 0x40b75c
cmp dword [ebp + 0x10], esi
ja 0x40b7c7
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b7c7
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push 0xf003f
push esi
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x40b7bf
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push 1
push dword [ebp + 0x10]
push 2
push 0xf01ff
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
call fcn.0040b728
xor eax, eax
cmp dword [ebp - 8], esi
setne al
jmp 0x40b7c9
lea eax, [ebp - 0xc]
call fcn.0040b728
xor eax, eax
pop esi
leave
ret 0xc
Function at 0x40b7ce
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40b82d
push 0xf003f
push edi
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x40b825
push 0x10
push dword [ebp + 8]
lea esi, [ebp - 0xc]
call fcn.0040b6fa
cmp dword [ebp - 0xc], edi
je 0x40b825
push edi
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40b822
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x40b825
xor edi, edi
inc edi
lea eax, [ebp - 0xc]
call fcn.0040b728
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x40b899
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40b8e7
push 0xf003f
push edi
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x40b8df
push 0x10000
push dword [ebp + 8]
lea esi, [ebp - 0xc]
call fcn.0040b6fa
cmp dword [ebp - 0xc], edi
je 0x40b8df
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov edi, eax
lea eax, [ebp - 0xc]
call fcn.0040b728
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x40b8ef
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [ebp + 8], edi
je 0x40b954
push 4
push edi
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x40b94c
push 4
push dword [ebp + 8]
lea esi, [ebp - 0xc]
call fcn.0040b6fa
cmp dword [ebp - 0xc], edi
je 0x40b94c
push 6
mov dword [ebp - 0x28], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40b94c
cmp dword [ebp - 0x24], 4
jne 0x40b94c
inc ebx
lea eax, [ebp - 0xc]
call fcn.0040b728
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x40dd66
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x468614
call fcn.00452284
xor edi, edi
mov dword [ebp - 4], edi
push 0x18
mov byte [ebp - 4], 1
call fcn.00451743
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
cmp esi, edi
je 0x40ddb0
mov ecx, dword [ebp + 0x18]
cmp ecx, edi
jne 0x40dd9c
mov dword [esi + 0x10], edi
jmp 0x40ddb2
lea eax, [ebp + 8]
cmp ecx, eax
mov eax, dword [ecx]
jne 0x40dda8
push esi
jmp 0x40dda9
push edi
call dword [eax]
mov dword [esi + 0x10], eax
jmp 0x40ddb2
xor esi, esi
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push esi
push 0x40ddf2
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
or dword [ebp - 4], 0xffffffff
lea esi, [ebp + 8]
mov edi, eax
call fcn.004018a0
mov eax, edi
jmp 0x40ddec
call fcn.00452329
ret
Function at 0x40e0b9
Capabilities:
Delete registry value

Disassembly:
push 0x58
mov eax, 0x469eaa
call fcn.004522ba
lea eax, [ebp - 0x48]
push eax
mov edi, ecx
mov esi, edx
call fcn.0040b10a
pop ecx
and dword [ebp - 4], 0
cmp dword [ebp - 0x34], 0
je 0x40e178
test esi, esi
jne 0x40e0ea
mov esi, 0x46e674
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x40e0f6
lea eax, [ebp - 0x44]
push edi
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push str._s__hs__p
lea esi, [ebp - 0x2c]
call fcn.0040b494
add esp, 0x10
cmp byte [ebp + 8], 0
mov byte [ebp - 4], 1
je 0x40e153
lea ecx, [ebp - 0x64]
call fcn.0040aff9
cmp dword [eax + 0x18], 8
jb 0x40e12d
mov eax, dword [eax + 4]
jmp 0x40e130
add eax, 4
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x40e13c
lea ecx, [ebp - 0x28]
push ecx
mov esi, eax
mov edi, 0x4857a8
call fcn.0040b575
lea esi, [ebp - 0x64]
call fcn.00409790
jmp 0x40e170
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40e15f
lea eax, [ebp - 0x28]
push eax
push 0x4857a8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
lea esi, [ebp - 0x2c]
call fcn.00409790
lea esi, [ebp - 0x48]
call fcn.00409790
call fcn.0045233d
ret 4

Function at 0x40e3d6
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x481330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
cmp eax, 0xc6
ja 0x40e470
push ebx
mov esi, 0x4857a8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.00455920
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCatBuffW]
push edi
push 0x46e69c
push esi
call ebx
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push esi
call ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
call fcn.0040df10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00451137
leave
ret
Function at 0x40ec24
Capabilities:
Check if file exists
Copy file
Get common file path
Move file

Disassembly:
push 0x43c
mov eax, 0x46a420
call fcn.004522ba
call fcn.0040ac6a
mov dword [ebp - 0x444], eax
call fcn.0040a80d
mov dword [ebp - 0x448], eax
call fcn.0040ebac
mov dword [ebp - 0x440], eax
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.00455920
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x440]
call fcn.0040a712
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x420]
push eax
call edi
mov ebx, 0x104
test eax, eax
jne 0x40ecf3
cmp word [0x4859b0], ax
je 0x40eccc
push ebx
push 0x4859b0
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push dword [ebp - 0x440]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
push eax
call edi
test eax, eax
jne 0x40ecf3
lea eax, [ebp - 0x420]
push eax
push str.file_not_found:__s
call fcn.0040f921
pop ecx
pop ecx
xor eax, eax
jmp 0x40ee76
xor eax, eax
push esi
mov word [ebp - 0x218], ax
xor esi, esi
lea eax, [ebp - 0x216]
push esi
push eax
call fcn.00455920
add esp, 0xc
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, str.driverspoflt64.sys
cmp dword [ebp - 0x448], esi
jne 0x40ed2f
mov eax, str.driverspoflt32.sys
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
je 0x40ee4a
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x218]
call fcn.0040a471
test eax, eax
jne 0x40ee45
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call edi
mov ebx, eax
cmp ebx, esi
je 0x40ed95
push str.upgrade_poflt_driver_succeeded
call fcn.0040f5b1
pop ecx
jmp 0x40ee61
lea eax, [ebp - 0x218]
push eax
push str.overwrite__s_failed__rename_it
call fcn.0040f710
pop ecx
pop ecx
call fcn.0040aa55
push eax
lea eax, [ebp - 0x218]
push eax
push str._s._08x.dirty
lea esi, [ebp - 0x43c]
call fcn.0040b494
add esp, 0xc
and dword [ebp - 4], 0
cmp dword [ebp - 0x424], 8
mov eax, dword [ebp - 0x438]
jae 0x40ede1
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
lea eax, [ebp - 0x218]
je 0x40ee25
push 0
push eax
lea eax, [ebp - 0x420]
push eax
call edi
mov ebx, eax
test ebx, ebx
je 0x40ee17
push str.upgrade_poflt_driver_succeeded
call fcn.0040f5b1
jmp 0x40ee31
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.copy_poflt_driver_failed:__d
jmp 0x40ee2b
push eax
push str.rename__s_failed
call fcn.0040f710
pop ecx
or dword [ebp - 4], 0xffffffff
pop ecx
lea esi, [ebp - 0x43c]
call fcn.00409790
xor esi, esi
jmp 0x40ee61
xor ebx, ebx
inc ebx
jmp 0x40ee61
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
cmp dword [ebp - 0x444], esi
je 0x40ee74
push dword [ebp - 0x444]
call fcn.0040acaa
mov eax, ebx
call fcn.0045233d
ret
Function at 0x40ee7c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x481330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.0040a80d
mov ebx, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00455920
add esp, 0xc
call fcn.0040ebac
mov edi, eax
lea eax, [ebp - 0x210]
push eax
push edi
call fcn.0040a712
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x210]
push eax
call esi
test eax, eax
jne 0x40ef19
cmp word [0x4859b0], ax
je 0x40ef0c
push 0x104
push 0x4859b0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call esi
test eax, eax
je 0x40ef42
call fcn.0040ac6a
mov eax, str.poflt64.sys
test ebx, ebx
jne 0x40ef51
mov eax, 0x46e8b0
mov ecx, str.poflt32
push eax
lea edx, [ebp - 0x210]
call fcn.0041613a
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00451137
leave
ret
mov ecx, str.poflt64
jmp 0x40ef31

Function at 0x415b6f
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x481330]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.00455920
add esp, 0xc
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x470fb8
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x7c]
mov eax, esi
call fcn.00401860
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
mov eax, esi
call fcn.00451137
add ebp, 0x190
leave
ret

Function at 0x415c6e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.00409cc6
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x30]
lea edi, [ebp - 0x10]
lea esi, [ebp - 8]
mov dword [ebp - 0x10], eax
call fcn.0040c6f4
test al, al
jne 0x415ccd
call fcn.0040c6c9
cmp dword [eax + 0x18], 8
jb 0x415cb9
mov eax, dword [eax + 4]
jmp 0x415cbc
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [ebp - 8]
call fcn.0040d810
jmp 0x415c8e
lea eax, [ebp - 0x30]
push eax
call fcn.0040be2b
pop edi
pop esi
leave
ret
Function at 0x415fe3
Capabilities:
Check if file exists
Copy file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x481330]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
call fcn.0040ac6a
mov dword [ebp - 0x234], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.00455920
add esp, 0xc
push 0x104
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.drivers
lea eax, [ebp - 0x214]
push eax
call esi
lea ecx, [ebp - 0x214]
call fcn.00415c6e
push ebx
lea eax, [ebp - 0x214]
push eax
call esi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x416093
push eax
lea eax, [ebp - 0x214]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
neg edi
sbb edi, edi
and edi, 0xfffffff8
add edi, 8
jmp 0x41611e
push edi
lea ecx, [ebp - 0x214]
call fcn.0040a471
test eax, eax
jne 0x41611c
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
call esi
test eax, eax
jne 0x41611c
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x230]
call fcn.00415c48
cmp dword [ebp - 0x218], 8
mov eax, dword [ebp - 0x22c]
pop ecx
jae 0x4160e0
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x41610c
push 0
lea eax, [ebp - 0x214]
push eax
push edi
call esi
mov edi, eax
neg edi
sbb edi, edi
and edi, 0xfffffff8
add edi, 8
jmp 0x41610f
push 9
pop edi
lea esi, [ebp - 0x230]
call fcn.00409790
jmp 0x41611e
xor edi, edi
push dword [ebp - 0x234]
call fcn.0040acaa
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00451137
leave
ret

Function at 0x4168d4
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jge 0x4168ea
push 8
pop edi
push 2
call esi
test ax, ax
jge 0x4168f6
or edi, 2
push 1
call esi
test ax, ax
jge 0x416902
or edi, 1
push 0x10
call esi
test ax, ax
jge 0x41690e
or edi, 4
push 0x12
call esi
test ax, ax
jge 0x41691a
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret
Function at 0x4173af
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, eax
xor edi, edi
cmp dword [esi + 0x2dc], edi
jle 0x4173f2
mov eax, dword [esi + 0x2d8]
lea edx, [ebp + 0xf]
push edx
push dword [ebp + 0x10]
mov byte [ebp + 0xf], 0
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx]
push ebx
push dword [ebp + 8]
call dword [eax]
cmp byte [ebp + 0xf], 0
jne 0x417460
inc edi
cmp edi, dword [esi + 0x2dc]
jl 0x4173c7
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x4174c5
sub eax, 4
je 0x417464
dec eax
dec eax
jne 0x4174bc
cmp dword [esi + 0xe4], eax
je 0x4174bc
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
push ebx
stosw word es:[edi], ax
call fcn.00453406
pop ecx
mov ecx, dword [esi + 0xe4]
push 0x80000012
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push 0x41b8b6
call dword [eax + 0x110]
mov esi, eax
test esi, esi
je 0x4174bc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x104]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov al, 1
jmp 0x4174be
mov edx, dword [esi + 0xe8]
test edx, edx
je 0x4174bc
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xfc]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x100]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x20], edx
mov word [ebp - 0x10], bx
mov dword [ebp - 0x14], eax
call fcn.004168d4
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0xe8]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x11c]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp ebx, 9
jne 0x4174bc
cmp dword [esi + 0xe8], 0
je 0x417522
mov ecx, dword [esi + 0xe8]
mov eax, dword [ecx]
call dword [eax + 0xdc]
test al, al
je 0x417522
mov ecx, dword [esi + 0xe8]
mov eax, dword [ecx]
call dword [eax + 0xe8]
test al, al
je 0x417522
mov ecx, dword [esi + 0xe8]
mov eax, dword [ecx]
push str.RichEdit
call dword [eax + 0x10]
push eax
call fcn.00453985
pop ecx
pop ecx
test eax, eax
je 0x417522
mov eax, dword [esi + 0xe8]
cmp byte [eax + 0x699], 0
jne 0x4174bc
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setge al
movzx eax, al
push eax
call fcn.0041a024
jmp 0x417460
Function at 0x419bea
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_GetFocus]
cmp byte [ebp + 0xc], 0
je 0x419c29
mov ecx, dword [esi + 0x84]
cmp eax, ecx
je 0x419c29
cmp ebx, dword [esi + 0xe8]
je 0x419c29
cmp byte [esi + 0xe0], 0
jne 0x419c29
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0xe8]
cmp ebx, eax
je 0x419d08
test eax, eax
je 0x419c8c
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0x14
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0xe8]
lea edx, [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x11c]
push 1
xor edi, edi
push edi
push edi
push edi
push dword [esi + 0xe8]
mov ecx, str.killfocus
call fcn.0041a315
mov dword [esi + 0xe8], edi
test ebx, ebx
je 0x419d08
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
cmp eax, esi
jne 0x419d08
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xdc]
test al, al
je 0x419d08
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xe8]
test al, al
je 0x419d08
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esi + 0xe8], ebx
mov dword [esp + 0x10], 0x15
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0xe8]
lea edx, [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x11c]
push 1
xor eax, eax
push eax
push eax
push eax
push dword [esi + 0xe8]
mov ecx, str.setfocus
call fcn.0041a315
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41ca3e
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c8
mov eax, 0x469d21
call fcn.004522ba
mov eax, dword [ebp + 8]
mov edi, ecx
mov esi, edi
mov dword [ebp - 0x2d4], edi
mov dword [ebp - 0x2cc], eax
call fcn.0041cc67
push 0x4830b0
lea eax, [ebp - 0x98]
call fcn.0041bcb0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x483138]
cmp word [eax], bx
jne 0x41cb7d
push dword [ebp - 0x2cc]
lea eax, [ebp - 0x98]
push eax
call fcn.0041bf2c
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push ebx
cmp eax, 0xffffffff
jne 0x41cae5
push str.Error_opening_file
mov eax, edi
call fcn.0041d4a9
mov bl, al
lea ecx, [ebp - 0x98]
call fcn.0041bcd0
mov al, bl
call fcn.0045233d
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jne 0x41cafa
push ebx
push str.File_is_empty
jmp 0x41cac7
cmp esi, 0x400000
jbe 0x41cb0a
push ebx
push str.File_too_large
jmp 0x41cac7
push esi
mov dword [ebp - 0x2cc], ebx
call fcn.004526c5
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x2cc]
push eax
push esi
push edi
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2cc], esi
je 0x41cb62
push edi
call fcn.004526e6
mov esi, dword [ebp - 0x2d4]
pop ecx
call fcn.0041cc67
push ebx
push str.Could_not_read_file
mov eax, esi
jmp 0x41cac9
push esi
push edi
push dword [ebp - 0x2d4]
call fcn.0041c9b3
push edi
mov bl, al
call fcn.004526e6
pop ecx
jmp 0x41cad0
push eax
lea eax, [ebp - 0x98]
call fcn.0041bce1
cmp byte [0x48270f], bl
je 0x41cb99
mov esi, dword [0x485c40]
jmp 0x41cba7
push dword [ebp - 0x98]
call fcn.0042e687
pop ecx
mov esi, eax
cmp esi, ebx
jne 0x41cbb6
push ebx
push str.Error_opening_zip_file
jmp 0x41cac7
mov ecx, dword [ebp - 0x2cc]
lea eax, [ebp - 0x2c8]
push eax
push esi
lea edx, [ebp - 0x2d0]
call fcn.0042e6dd
pop ecx
pop ecx
test eax, eax
je 0x41cbe0
push ebx
push str.Could_not_find_ziped_file
jmp 0x41cac7
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x2cc], eax
cmp eax, ebx
je 0x41caf2
cmp eax, 0x400000
ja 0x41cb02
push eax
call fcn.004526c5
pop ecx
push dword [ebp - 0x2cc]
mov edi, eax
push edi
push dword [ebp - 0x2d0]
mov eax, esi
call fcn.0042e7af
add esp, 0xc
cmp eax, ebx
je 0x41cc4f
cmp eax, 0x600
je 0x41cc4f
push edi
call fcn.004526e6
pop ecx
cmp byte [0x48270f], bl
jne 0x41cc3e
call fcn.0042e7e1
mov eax, dword [ebp - 0x2d4]
push ebx
push str.Could_not_unzip_file
jmp 0x41cac9
cmp byte [0x48270f], bl
jne 0x41cc5c
call fcn.0042e7e1
push dword [ebp - 0x2cc]
jmp 0x41cb63
Function at 0x42980d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x694], ebx
je 0x429879
cmp dword [ebp + 8], 0x100
jne 0x429868
cmp word [ebp + 0xc], 0xd
jne 0x429868
cmp byte [edi + 0x69a], bl
jne 0x42984b
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x429868
cmp byte [edi + 0x69b], bl
je 0x429868
push esi
mov esi, dword [edi + 0x5c]
cmp esi, ebx
je 0x429863
push 1
push ebx
push ebx
push ebx
push edi
mov ecx, str.return
call fcn.0041a315
xor eax, eax
pop esi
jmp 0x42987c
mov eax, dword [edi + 0x694]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop edi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop ebx
pop ebp
ret 0x10