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

Disassembly:
mov eax, 0x100131e0
call fcn.1000c71c
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.10003235
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 0x100027cd
lea eax, [ebp + 0xb]
push 1
push eax
mov ecx, ebx
mov byte [ebp + 0xb], 0x68
call fcn.10004d87
mov esi, eax
jmp 0x100028dc
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 0x10002844
lea eax, [ebp - 0x244]
push 0x1001a394
push eax
call esi
test eax, eax
je 0x10002844
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.1000313a
lea eax, [ebp - 0x494]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100027d3
cmp dword [ebp - 0x20], edi
mov esi, 0x218
jne 0x1000286b
mov dword [ebp + 8], edi
jmp 0x10002879
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 0x100028c6
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 0x100028a6
mov ebx, dword [ebp - 0x2c]
push dword [ebp - 0x28]
mov ecx, ebx
push edi
call fcn.10004d87
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.10008857
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x100028fb
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 0x1000294c
xor al, al
jmp 0x100029ce
push edi
mov edi, str._s_s
cmp word [ebp - 0x228], 0x2e
je 0x100029a4
test byte [ebp - 0x254], 0x10
lea eax, [ebp - 0x228]
push eax
push ebx
push edi
je 0x1000298b
lea eax, [ebp - 0x45c]
push eax
call esi
mov ecx, dword [ebp - 4]
add esp, 0x10
lea eax, [ebp - 0x45c]
push eax
call fcn.100028fb
jmp 0x100029a4
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 0x10002952
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 0x100029d4
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 0x10002a21
xor eax, eax
jmp 0x10002a9b
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.10004d87
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 0x10002aa1
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 0x10002ac0
call fcn.10002b64
xor eax, eax
jmp 0x10002b5d
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 0x10002b5d
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 0x10002b4b
mov ecx, dword [ebp - 4]
add eax, 9
push eax
push esi
call fcn.10004d87
mov dword [ebp - 4], eax
jmp 0x10002b53
mov ecx, dword [ebp - 4]
call fcn.10002b64
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 0x10002c61
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x10013208
call fcn.1000c71c
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 0x10002cab
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 0x10002ce9
xor al, al
jmp 0x10002db3
push edi
mov edi, str._s_s_s
cmp word [ebp - 0x24c], 0x2e
je 0x10002d8f
lea eax, [ebp - 0x24c]
test byte [ebp - 0x278], 0x10
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
push edi
je 0x10002d30
lea eax, [ebp - 0x890]
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x890]
mov ecx, ebx
push eax
call fcn.10002c61
jmp 0x10002d8f
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.100031a9
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.10003284
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.1000314b
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x24]
call fcn.100031a9
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10002cef
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 0x10002f81
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.10004d87
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10004191
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 0x100042ae
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 0x100042ae
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 0x100042ae
lea eax, [ebp - 0x270]
push 0x1001a29c
push eax
call sub.MSVCRT.dll_wcsstr
pop ecx
cmp eax, ebx
pop ecx
je 0x100042ae
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 0x10004284
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 0x100042ae
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor al, al
pop ebx
leave
ret
Function at 0x10004340
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.10009c15
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 0x100043d2
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 0x10004404
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 0x100043f4
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 0x10004c54
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.10005745
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x214]
push eax
call fcn.10009c15
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 0x10004d1e
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 0x10004d09
mov eax, ebx
xor word [eax], 0x60
inc eax
inc eax
dec ecx
jne 0x10004d00
mov ecx, dword [ebp - 0xc]
push esi
push ebx
call fcn.10004c0a
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 0x10005312
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x100133bc
call fcn.1000c71c
sub esp, 0x18
push ebx
push esi
mov esi, ecx
call fcn.1000c455
test al, al
je 0x100053a6
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 0x1000534b
call fcn.1000c2a5
mov ecx, eax
jmp 0x1000534d
xor ecx, ecx
mov eax, dword [esi + 0x20]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
mov dword [esi + 0x14], ecx
je 0x10005366
mov edx, dword [esi + 0x24]
cmp edx, ebx
je 0x10005366
push edx
push eax
jmp 0x1000539a
push 0x120
push 0x160
call fcn.1000c51d
test al, al
mov byte [ebp - 0xd], al
jne 0x100053ad
mov ecx, dword [esi + 0x14]
push 0x90
push 0xb0
call fcn.1000c51d
test al, al
mov byte [ebp - 0xd], al
jne 0x100053ad
mov ecx, dword [esi + 0x14]
push ebx
push ebx
call fcn.1000c51d
test al, al
mov byte [ebp - 0xd], al
jne 0x100053ad
xor al, al
jmp 0x10005432
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 0x100053ef
call fcn.1000550d
jmp 0x100053f1
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.10005440
test al, al
jne 0x10005427
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x10005418
mov eax, dword [ecx]
push 1
call dword [eax]
and dword [esi + 0x18], 0
inc ebx
add edi, 4
cmp ebx, 4
jb 0x100053cd
jmp 0x1000542e
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 0x1000560f
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 0x10005638
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 0x10005708
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 0x10005687
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
add edx, ecx
cmp eax, edx
jae 0x10005708
cmp eax, ecx
jb 0x10005708
sub eax, ecx
jmp 0x100056d2
mov ecx, dword [esi + 0x20]
mov dword [ebp + 8], edi
add ecx, ebx
cmp dword [esi + 0x18], edi
jbe 0x1000573e
mov dword [ebp - 4], ecx
jmp 0x100056a0
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 0x100056c5
inc dword [ebp + 8]
add dword [ebp - 4], 4
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x18]
jb 0x1000569d
jmp 0x1000573e
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 0x1000573e
cmp edi, esi
jb 0x1000573e
mov eax, dword [ebp - 8]
add eax, esi
cmp edi, eax
jae 0x1000573e
mov al, byte [edi]
mov ebx, edi
test al, al
je 0x10005708
cmp al, 0x2e
je 0x10005700
mov al, byte [ebx + 1]
inc ebx
jmp 0x100056f2
mov esi, ebx
sub esi, edi
test esi, esi
jg 0x1000570c
xor eax, eax
jmp 0x10005740
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.10005638
pop ecx
mov edi, eax
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005e7d
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 0x10006018
push ebx
push esi
call fcn.10009842
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 0x1000600b
mov eax, dword [ebp + 8]
mov dword [ebp + 8], ebx
lea edi, [eax + 8]
mov eax, dword [edi - 4]
cmp eax, 0x200
jb 0x10005f2f
cmp eax, 0x208
ja 0x10005f2f
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 0x10005f9f
je 0x10005f8e
sub ecx, 0x100
je 0x10005f8a
dec ecx
je 0x10005f75
sub ecx, 3
je 0x10005f8a
dec ecx
je 0x10005f75
sub ecx, 0xfc
je 0x10005f6a
dec ecx
jne 0x10005ffc
push esi
push esi
push esi
push esi
push 4
jmp 0x10005ff9
push esi
push esi
push esi
push esi
push 2
jmp 0x10005ff9
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 0x10005ffc
push esi
push esi
jmp 0x10005f78
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 0x10005ff9
sub ecx, 0x204
je 0x10005ff3
dec ecx
je 0x10005feb
dec ecx
je 0x10005fda
dec ecx
je 0x10005fd2
dec ecx
je 0x10005fca
dec ecx
dec ecx
jne 0x10005ffc
mov eax, dword [edi]
push esi
shr eax, 0x10
movsx eax, ax
push eax
push esi
push esi
push 0x800
jmp 0x10005ff9
push esi
push esi
push esi
push esi
push 0x40
jmp 0x10005ff9
push esi
push esi
push esi
push esi
push 0x20
jmp 0x10005ff9
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 0x10005ff9
push esi
push esi
push esi
push esi
push 0x10
jmp 0x10005ff9
push esi
push esi
push esi
push esi
push 8
call dword [ebp + 0xc]
add edi, 0x1c
dec dword [ebp + 8]
jne 0x10005efe
mov edi, dword [ebp - 0x10]
cmp edi, esi
pop esi
pop ebx
je 0x10006018
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
leave
ret 8
Function at 0x1000601d
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1000607b
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 0x10006074
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 0x1000607e
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 0x100060fa
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
test ebx, ebx
jne 0x100060a6
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x100060fa
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.10004d87
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret