joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006b2a4
Capabilities:
Capture webcam image
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x10087d94]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x50], eax
push edi
mov dword [ebp - 0x48], ebx
call fcn.1006b868
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x54], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x419
push dword [ebx + 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
lea esi, [ebp - 0x34]
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x24]
push 2
push eax
push 0
push dword [ebx + 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
jne 0x1006b315
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::ThrowLastError_void_]
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
sub eax, edi
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x24]
mov ecx, dword [ecx]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
sub ebx, esi
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x20]
add edi, ecx
mov ecx, dword [ebp - 0x50]
cdq
sub eax, edx
mov dword [ebp - 0x14], edi
sar eax, 1
mov ecx, dword [ecx + 4]
sub ecx, eax
mov eax, dword [ebp - 0x54]
add esi, ecx
add eax, edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
lea eax, [esi + ebx]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
call fcn.1006b8d0
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x48]
push 1
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
test eax, eax
je 0x1006b30f
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 0x28]
call dword [sym.imp.USER32.dll_SetFocus]
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
xor esi, esi
test cx, ax
je 0x1006b41e
lea eax, [ebp - 0x44]
push eax
push esi
push 0x419
push dword [ebx + 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 1
lea eax, [ebp - 0x4c]
push eax
push dword [ebx + 0x28]
push esi
call dword [sym.imp.USER32.dll_MapWindowPoints]
push dword [ebp - 0x48]
lea eax, [ebp - 0x44]
push dword [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x1006b41e
movzx ecx, word [ebp - 0x48]
movzx eax, word [ebp - 0x4c]
shl ecx, 0x10
or ecx, eax
push ecx
push esi
push 0x201
push dword [ebx + 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
push esi
push 0x400
push dword [ebx + 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [ebx + 0x48], eax
xor ecx, ebp
pop ebx
call fcn.10074c00
mov esp, ebp
pop ebp
ret 8
Function at 0x1006b699
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 4]
push 8
push 0x115
push dword [esi + 0x50]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1006b6c9
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x54], 0
je 0x1006b6f2
push dword [esi + 0x54]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1006b6f2
push dword [esi + 0x54]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x1006b6f2
push dword [esi + 0x54]
call dword [sym.imp.USER32.dll_SetFocus]
xor eax, eax
pop esi
ret 4

Function at 0x1006ced1
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push edi
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 4], edx
mov edi, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1006cef5
push 0x19
pop ecx
int 0x29
test byte [ebp - 0xc], 0x44
je 0x1006cf3f
push ebx
push esi
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x40]
xor edx, edx
lea ecx, [ebx - 1]
mov eax, ecx
lea esi, [ebx - 1]
and ecx, dword [ebp - 4]
and eax, edi
add eax, ebx
dec ecx
add eax, ecx
not esi
div ebx
xor edx, edx
and esi, edi
mov ecx, eax
mov eax, dword [ebp - 4]
div ebx
add ecx, eax
je 0x1006cf3d
xor eax, eax
lock or dword [esi], eax
add esi, ebx
sub ecx, 1
jne 0x1006cf31
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x1006d2b7
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x10088ac8]
push esi
push edi
test eax, eax
jne 0x1006d2d0
call fcn.1006d38c
test eax, eax
je 0x1006d31c
mov eax, dword [0x10088ac8]
cmp eax, 1
jne 0x1006d2ec
push 0xd
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1006d31c
jmp 0x1006d362
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov ecx, eax
test ecx, ecx
je 0x1006d305
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, ecx
jmp 0x1006d362
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1006d320
xor eax, eax
jmp 0x1006d362
mov eax, dword [esi]
push dword [0x10088ac8]
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov edi, eax
test edi, edi
je 0x1006d346
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x1006d362
lea edi, [esi + 0xff0]
push esi
push dword [0x10088ac8]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1006d34c
mov eax, esi
pop edi
pop esi
ret
Function at 0x1006e30b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc
mov eax, 0x1007a93f
call fcn.100756f9
mov esi, ecx
and dword [ebp - 4], 0
push 0x10005cac
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1006e33a
mov eax, 0x80004005
jmp 0x1006e3da
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1006e330
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x1006e330
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x1006e330
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
mov ecx, ebx
call fcn.1006f03a
test eax, eax
jns 0x1006e398
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1006e330
add eax, 8
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x10089918]
call esi
jmp 0x1006e330
mov edi, dword [ebp - 0x18]
push dword [ebp + 0xc]
add edi, 8
push 0x10004c80
push edi
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x10089918]
call esi
mov esi, dword [edi]
mov ebx, eax
mov byte [ebp - 4], 0
push edi
mov ecx, dword [esi + 8]
call dword [0x10089918]
call dword [esi + 8]
test ebx, ebx
jns 0x1006e3d8
mov eax, ebx
jmp 0x1006e3da
xor eax, eax
call fcn.1007564b
ret 8
Function at 0x10070a12
Capabilities:
Timestomp file

Disassembly:
push 8
mov eax, 0x1007ac62
call fcn.1007568d
mov ebx, edx
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
mov esi, dword [ecx]
push eax
push 0x80028000
push ecx
mov ecx, dword [esi + 0x14]
call dword [0x10089918]
call dword [esi + 0x14]
mov esi, eax
test esi, esi
js 0x10070a9f
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push 0xc0000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10070a75
call fcn.100644c4
mov esi, eax
test esi, esi
js 0x10070a9f
xor esi, esi
cmp byte [ebp + 8], 0
push ebx
push esi
push esi
push edi
je 0x10070a87
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x10070a8d
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x10070a98
call fcn.100644c4
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
call fcn.1002c4f4
ret 4
Function at 0x10071f13
Capabilities:
Get file version info

Disassembly:
push 0x2c
mov eax, 0x1007ae18
call fcn.1007568d
mov ebx, ecx
test ebx, ebx
jne 0x10071f30
push 0x80004003
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
cmp word [0x10088ae0], 0
jne 0x10072034
push 0x10009640
lea ecx, [ebp - 0x14]
call fcn.1002c207
and dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
push 0x10006514
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x10071f6a
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::ThrowLastError_void_]
and dword [ebp - 0x1c], 0
push 1
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.PhotoBase.dll_void____cdecl_BasePrivate::New_unsigned_int__bool_]
pop ecx
pop ecx
mov edi, eax
push edi
push esi
push 0
push 0x10006514
mov dword [ebp - 0x1c], edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x10071f64
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x10006dc4
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x10071fb7
push 0x80004005
jmp 0x10071f2a
mov esi, dword [ebp - 0x20]
call dword [sym.imp.PhotoBase.dll_public:_static_class_ATL::CAtlStringMgr____stdcall_Base::String::GetBaseStringManager_void_]
push eax
lea ecx, [ebp - 0x18]
call fcn.1000fe1b
mov byte [ebp - 4], 2
movzx eax, word [esi + 0x14]
push eax
movzx eax, word [esi + 0x16]
push eax
movzx eax, word [esi + 0x10]
push eax
movzx eax, word [esi + 0x12]
push eax
lea eax, [ebp - 0x18]
push 0x100096f0
push eax
call fcn.1003efc0
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
add esp, 0x18
push dword [esi - 0xc]
push esi
call fcn.1002c0d5
push dword [ebp - 0x14]
mov ecx, 0x10088ae0
push 0x50
pop edx
call fcn.1005eb81
lea ecx, [esi - 0x10]
call fcn.1000fe6d
test edi, edi
je 0x10072025
push edi
call dword [sym.imp.PhotoBase.dll_void___cdecl_BasePrivate::Delete_void__]
pop ecx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1000fe6d
mov esi, dword [ebx]
lea edi, [ebp - 0x38]
xor eax, eax
stosd dword es:[edi], eax
push 0x1f
mov ecx, dword [esi + 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x38]
push eax
push 0x100096c0
push ebx
mov dword [ebp - 0x30], 0x10088ae0
call dword [0x10089918]
call dword [esi + 0x1c]
test eax, eax
jns 0x1007206d
push eax
jmp 0x10071f2a
call fcn.1007563c
ret

Function at 0x1007323e
Capabilities:
Delete file

Disassembly:
mov edi, edi
push esi
mov esi, ecx
lea ecx, [esi + 4]
mov dword [esi], 0x10002e74
cmp dword [ecx], 0xffffffff
je 0x10073256
call fcn.10049bc4
cmp byte [esi + 0xd], 0
jne 0x1007326b
cmp byte [esi + 0xc], 0
je 0x1007326b
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, esi
pop esi
jmp fcn.10049b0a
Function at 0x100732c9
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 8
mov eax, 0x1007b0f6
call fcn.1007565a
mov ebx, ecx
cmp byte [ebx + 0xc], 0
jne 0x100733d7
mov ecx, dword [ebx + 8]
sub ecx, 0x10
call fcn.1002c357
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.100573a9
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
je 0x10073312
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10073358
push 0x104
lea ecx, [ebp - 0x10]
call fcn.1000fbd2
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10073336
cmp eax, 0x104
jbe 0x10073345
push 1
push 0x10009750
lea ecx, [ebp - 0x10]
call fcn.1002c18e
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.1000dd7d
push eax
lea ecx, [ebp - 0x10]
call fcn.1000fc33
mov ecx, dword [ebx + 8]
sub ecx, 0x10
call fcn.1002c357
add eax, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.1002c2fe
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], 0
jne 0x10073390
push 3
push 0x10009754
lea ecx, [ebp - 0x14]
call fcn.1002c18e
mov edi, dword [ebp - 0x14]
push 0x104
lea ecx, [ebx + 8]
call fcn.1000fbd2
push eax
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x100733b2
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::ThrowLastError_void_]
mov ecx, dword [ebx + 8]
call fcn.1000dd7d
push eax
lea ecx, [ebx + 8]
call fcn.1000fc33
lea ecx, [edi - 0x10]
mov byte [ebx + 0xc], 1
call fcn.1000fe6d
lea ecx, [esi - 0x10]
call fcn.1000fe6d
call fcn.10075628
ret
Function at 0x10074310
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x14
push ebx
mov ebx, 0x100
push edi
cmp eax, ebx
jb 0x1007432b
mov eax, ebx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0x18]
sub ebx, eax
mov edi, dword [ebp + 0x1c]
mov edx, ecx
shr edx, 2
and ecx, 3
mov dword [ebp - 0x14], edx
mov dword [ebp + 0x18], ecx
test edi, edi
je 0x10074451
push esi
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], esi
test edx, edx
je 0x100743f2
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 4]
mov esi, dword [esi]
mov ecx, 0xffff00ff
mov edx, dword [edx]
mov edi, esi
shr edi, 8
and edi, ecx
imul edi, eax
mov eax, edx
shr eax, 8
and eax, ecx
mov ecx, esi
imul eax, ebx
and ecx, 0xff00ff
imul ecx, dword [ebp + 8]
shr esi, 8
add edi, eax
mov eax, edx
and eax, 0xff00ff
shr edx, 8
imul eax, ebx
add ecx, eax
mov eax, dword [ebp + 8]
shr ecx, 8
xor edi, ecx
mov ecx, 0xff00ff
and esi, ecx
and edx, ecx
imul esi, eax
and edi, ecx
mov ecx, dword [ebp - 8]
imul edx, ebx
add esi, edx
mov edx, dword [ebp - 4]
xor edi, esi
add edx, 4
mov esi, dword [ebp - 0xc]
mov dword [ecx], edi
add esi, 4
add ecx, 4
mov dword [ebp - 0xc], esi
sub dword [ebp - 0x10], 1
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
jne 0x1007436d
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x1c]
jmp 0x100743f5
mov edx, dword [ebp - 4]
test ecx, ecx
je 0x1007442f
sub edx, esi
mov dword [ebp - 0x10], ecx
sub dword [ebp - 8], esi
mov dword [ebp - 4], edx
mov edx, dword [ebp + 8]
mov edi, dword [ebp - 4]
movzx ecx, byte [edi + esi]
movzx eax, byte [esi]
imul ecx, ebx
imul eax, edx
add ecx, eax
mov eax, dword [ebp - 8]
shr ecx, 8
mov byte [eax + esi], cl
inc esi
sub dword [ebp - 0x10], 1
jne 0x1007440a
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
add dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x24]
add dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x28]
add dword [ebp + 0x14], eax
sub edi, 1
mov edx, dword [ebp - 0x14]
mov dword [ebp + 0x1c], edi
jne 0x1007434a
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x24

Function at 0x10075050
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1007508e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10075086
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10075090
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10075076
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10075160
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10075176
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x10075191
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x40144c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00402218
test esi, esi
jne 0x401482
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004022dc
jmp 0x4014a0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00401360
mov edi, eax
test esi, esi
je 0x4014a0
cmp dword [ebx], 0
je 0x4014a0
dec esi
jmp 0x401489
add esp, 0x108
pop edi
pop esi
pop ebx
ret
Function at 0x402c30
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x402e60
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x402cb3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x402e60
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x402cb3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x402e7c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402d3c
xor eax, eax
push ebp
push 0x402d35
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00402a78
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x402d1a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x402e9c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x402d1a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402d3c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x402e56
cmp byte [ebp - 0xd], 0
jne 0x402d83
cmp byte [ebp - 0x12], 0
je 0x402e56
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x402d9c
dec ebx
cmp byte [ebx], 0x2e
je 0x402dab
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x402d9b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x402e56
inc ebx
cmp byte [ebp - 0x12], 0
je 0x402de8
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x402e56
cmp byte [ebp - 0xd], 0
je 0x402e56
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x402e56
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4077b8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00402558
xor eax, eax
push ebp
push 0x4078a9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00402568
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x407880
xor eax, eax
push ebp
push 0x407879
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004078d8
mov ebx, eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize_1
mov esi, eax
sub esi, ebx
sub esi, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer_1
lea eax, [ebp - 0x10]
mov edx, esi
call fcn.00402644
push 0
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x10]
call fcn.004025b4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407880
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.0040226c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4078b0
lea eax, [ebp - 0x10]
call fcn.00402218
lea eax, [ebp - 4]
call fcn.00402218
ret

Function at 0x407ec0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, eax
push esp
call sub.user32.dll_GetCursorPos
mov eax, dword [esp]
mov ebx, eax
xor esi, esi
cmp edi, esi
jle 0x407f09
push esp
call sub.user32.dll_GetCursorPos
mov eax, dword [esp]
cmp eax, ebx
jge 0x407eee
add ebx, esi
sub ebx, eax
mov esi, ebx
jmp 0x407ef9
cmp ebx, eax
jge 0x407ef9
lea edx, [eax + esi]
sub edx, ebx
mov esi, edx
mov ebx, eax
mov eax, 0xa
call fcn.00407f10
cmp edi, esi
jg 0x407ed9
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4087cc
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
push ebx
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00402558
mov eax, dword [ebp - 8]
call fcn.00402558
xor eax, eax
push ebp
push 0x40894c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x158]
mov ecx, 0x408960
mov edx, dword [ebp - 4]
call fcn.004023bc
mov eax, dword [ebp - 0x158]
call fcn.00402568
push eax
call sub.kernel32.dll_FindFirstFileA_1
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x40884e
cmp dword [ebp - 0x10], 0xffffffff
je 0x408919
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.00402358
mov ebx, dword [ebp - 0x154]
mov eax, dword [ebp - 0x14]
mov edx, 0x40896c
call fcn.004024b4
je 0x4088f2
mov eax, dword [ebp - 0x14]
mov edx, 0x408978
call fcn.004024b4
je 0x4088f2
test bl, 0x10
je 0x4088bb
push dword [ebp - 4]
push dword [ebp - 0x14]
push 0x408984
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00402430
mov eax, dword [ebp - 0x15c]
mov edx, dword [ebp - 8]
call fcn.004087cc
jmp 0x4088f2
push 1
call sub.kernel32.dll_Sleep
lea edx, [ebp - 0x160]
mov eax, dword [ebp - 0x14]
call fcn.00408718
mov edx, dword [ebp - 0x160]
mov eax, dword [ebp - 8]
call fcn.004024b4
jne 0x4088f2
mov eax, 0x40d9ec
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.004023bc
jmp 0x408910
lea eax, [ebp - 0x154]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x408854
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408953
lea eax, [ebp - 0x160]
mov edx, 3
call fcn.0040223c
lea eax, [ebp - 0x14]
call fcn.00402218
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040223c
ret

Function at 0x4091dc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
call sub.kernel32.dll_GetTickCount
mov esi, eax
push edi
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, esi
mov edx, edi
sub edx, 0x64
cmp edx, eax
jbe 0x409202
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
ret