joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4233a4
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
mov eax, dword [esp + 0x14]
mov dword [0x6c7ea0], eax
mov dword [section..data], 0xd00095
mov dword [section..data], 0xd00096
mov edx, dword [0x6c7ea0]
push edx
push edx
push 0x104
call fcn.0052acf0
add dword [0x6c7ea0], 2
lea eax, [esp + 8]
push eax
call fcn.0052dc20
mov dword [section..data], 0xd00097
lea eax, [esp]
push eax
push dword [esp + 0x14]
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
mov ebx, eax
and ebx, ebx
jne 0x4234da
mov dword [section..data], 0xd00098
mov eax, dword [esp + 4]
push eax
push dword [esp + 4]
call sub.SHELL32.dll_SHGetPathFromIDListW
and eax, eax
je 0x4234a4
mov dword [section..data], 0xd00099
mov edx, dword [0x6c7ea0]
push edx
push edx
push 1
push dword [esp + 0x10]
call fcn.0052bac0
add dword [0x6c7ea0], 2
mov edx, 0x5f8c54
pop ecx
mov dword [0x6c7ea0], ecx
add ecx, dword [0x6bd980]
call fcn.004d4330
jne 0x42349a
mov dword [section..data], 0xd0009a
mov edx, dword [esp + 4]
push dword [0x6c7ea0]
push edx
call fcn.0052dca0
mov edx, 0x5f8c54
push edx
call fcn.0052dca0
lea eax, [esp + 8]
push eax
call fcn.0052dc20
mov dword [section..data], 0xd0009b
mov dword [section..data], 0xd0009c
mov dword [section..data], 0xd0009d
cmp dword [esp], 0
je 0x4234d0
mov dword [section..data], 0xd0009e
push dword [esp]
call sub.ole32.dll_CoTaskMemFree
mov dword [section..data], 0xd0009f
mov dword [section..data], 0xd000a0
mov dword [section..data], 0xd000a1
mov edx, dword [0x6c7ea0]
push edx
push edx
push dword [esp + 0xc]
call fcn.0052b480
pop eax
add eax, dword [0x6bd980]
jmp 0x423522
push dword [esp + 4]
call fcn.0052dd00
add esp, 8
pop ebx
ret 4
Function at 0x46642f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
xor eax, eax
push eax
mov dword [section..data], 0x193
mov dword [section..data], 0x196
mov eax, str.ntdll.dll
push eax
push 0
call fcn.004f872a
and eax, eax
je 0x46648e
mov dword [section..data], 0x197
mov eax, str.DbgUiRemoteBreakin
push eax
push 0
call fcn.004f8784
mov dword [0x6c2614], eax
mov dword [section..data], 0x198
push 0
call fcn.004f866a
mov dword [section..data], 0x199
mov dword [section..data], 0x19a
mov eax, str.kernel32.dll
push eax
push 0
call fcn.004f872a
and eax, eax
je 0x4664e9
mov dword [section..data], 0x19b
mov eax, 0x601e08
push eax
push 0
call fcn.004f8784
mov dword [0x6c2630], eax
mov dword [section..data], 0x19c
push 0
call fcn.004f866a
mov dword [section..data], 0x19d
mov dword [section..data], 0x19e
lea eax, [esp]
push eax
push 0x40
push 6
push dword [0x6c2614]
call sub.KERNEL32.dll_VirtualProtect
mov dword [section..data], 0x19f
push 0x68
mov ebx, dword [0x6c2614]
mov eax, ebx
call fcn.004d4310
mov dword [section..data], 0x1a0
push dword [0x6c2630]
mov ebx, dword [0x6c2614]
inc ebx
mov eax, ebx
call fcn.004d4320
mov dword [section..data], 0x1a1
push 0xc3
mov ebx, dword [0x6c2614]
add ebx, 5
mov eax, ebx
call fcn.004d4310
mov dword [section..data], 0x1a2
lea eax, [esp]
push eax
push dword [esp + 4]
push 6
push dword [0x6c2614]
call sub.KERNEL32.dll_VirtualProtect
mov dword [section..data], 0x1a3
xor eax, eax
add esp, 4
pop ebx
ret
Function at 0x4d512f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
xor ebx, ebx
push esi
mov esi, ebx
test eax, eax
je 0x4d52d5
cmp word [eax], bx
je 0x4d52d5
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
je 0x4d52d1
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
jle 0x4d52c6
push edi
push dword [esp + 0x20]
call fcn.004d56ef
mov edi, eax
test edi, edi
je 0x4d52c5
cmp dword [esp + 0x20], 0xffffffff
mov ebx, dword [esp + 0x18]
jne 0x4d51a5
push 2
jmp 0x4d51a9
push dword [esp + 0x20]
push ebx
call fcn.004d5b7e
mov esi, eax
test esi, esi
je 0x4d52be
cmp ebx, 0xffffffff
jne 0x4d51c0
mov ebx, esi
mov eax, dword [esi + 4]
mov dword [esi + 0x30], ebx
lea ebx, [ebp + 8]
mov dword [esi + 0x38], eax
xor eax, eax
push ebx
push eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x14], eax
push dword [0x6c2520]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x28], eax
test eax, eax
je 0x4d5201
mov dword [eax + 4], ebx
mov eax, dword [esi + 0x28]
and dword [eax], 0
mov eax, dword [esi + 0x28]
add eax, 8
mov dword [esi + 0x44], eax
cmp dword [esp + 0x20], 0xffffffff
je 0x4d520f
mov dword [esi + 0x34], 1
push esi
push edi
call fcn.00534930
pop ecx
pop ecx
xor ebx, ebx
mov ecx, 0x4000
mov dword [esp + 0x20], ecx
test ebp, ebp
jle 0x4d52ba
lea eax, [ecx + ebx]
cmp eax, ebp
jle 0x4d523a
mov ecx, ebp
sub ecx, ebx
mov dword [esp + 0x20], ecx
push ecx
push edi
call fcn.00534150
mov dword [esp + 0x20], eax
pop ecx
pop ecx
test eax, eax
je 0x4d52ac
push 0
lea ecx, [esp + 0x20]
push ecx
push dword [esp + 0x28]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x1c]
add ebx, eax
cmp dword [esi + 0x14], 0
jne 0x4d527e
push eax
push dword [esp + 0x1c]
call fcn.004d579a
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x1c]
cmp ebx, ebp
jl 0x4d5286
push 1
jmp 0x4d5288
push 0
push eax
push edi
call fcn.00534590
add esp, 0xc
test eax, eax
je 0x4d52a0
mov ecx, dword [esp + 0x20]
cmp ebx, ebp
jl 0x4d522b
jmp 0x4d52ba
push edi
call fcn.00534400
pop ecx
mov dword [esi + 0x18], eax
jmp 0x4d52b3
mov dword [esi + 0x18], 1
push edi
push esi
call fcn.004d5854
and dword [esi + 0x2c], 0
push edi
call fcn.005346d0
pop ecx
pop edi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov eax, esi
jmp 0x4d52d7
xor eax, eax
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x4d9d1a
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x4d9d6f
push dword [esp + 0x10]
push 0x4d9c99
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x6c2dc0]
test esi, esi
je 0x4d9dc8
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4d9d67
cmp byte [esi + 0x10], 0
je 0x4d9d67
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4d9d43
jmp 0x4d9dc8
mov esi, dword [0x6c2dc0]
test esi, esi
je 0x4d9dc8
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x4d9dc1
cmp byte [esi + 0x11], 0
je 0x4d9d9d
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x4d9db4
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x6c2dc0
call fcn.0052db12
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x4d9d7c
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x4f4161
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x6c7ee8]
call fcn.0052d287
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x4f4261
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x4f41b7
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x4f41af
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x4f41f7
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x4f4239
push 0x22
pop edx
cmp cx, dx
je 0x4f41e9
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4f41d9
xor ecx, ecx
cmp word [eax], cx
je 0x4f4239
mov ecx, eax
add eax, 2
jmp 0x4f423b
test dx, dx
je 0x4f4241
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x4f41e9
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x4f422f
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x4f4239
cmp cx, dx
je 0x4f422c
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4f421c
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x4f4201
jmp 0x4f41e9
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x4f4243
xor edx, edx
cmp dword [ebp], ebx
jne 0x4f424c
test edi, edi
jne 0x4f4269
test edx, edx
je 0x4f4251
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x4f41a5
test edi, edi
jne 0x4f427a
mov eax, ebx
jmp 0x4f427e
test esi, esi
je 0x4f427a
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x4f427e
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x4f4ab8
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x4f4b77
cmp dword [esp + 0x24], 2
je 0x4f4b77
push 0x2000
push ebp
push dword [0x6c2520]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x4f4b46
cmp dword [esp + 0x18], 2
jne 0x4f4b62
cmp dword [esp + 0x28], 0xffffffff
je 0x4f4b0a
cmp ebp, dword [esp + 0x28]
jae 0x4f4b62
add ebp, 2
test ebx, ebx
jne 0x4f4b2f
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x6c2520]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x4f4b62
cmp ax, 0xd
je 0x4f4b46
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4f4af6
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.005c7130
jmp 0x4f4c09
push eax
push 0
push dword [0x6c2520]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x4f4b95
cmp ebp, dword [esp + 0x28]
jae 0x4f4bed
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f4bed
cmp dword [esp + 0x18], 1
jne 0x4f4bed
inc ebp
test ebx, ebx
jne 0x4f4bda
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x6c2520]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x4f4bed
cmp al, 0xd
je 0x4f4b88
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x4f4b88
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x4f4c04
call fcn.005c6fa0
jmp 0x4f4c09
call fcn.005c6f40
push esi
push 0
push dword [0x6c2520]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x4f607a
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x4f60dc
cmp word [esi], di
je 0x4f60dc
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00554bb0
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.00554dc0
add esp, 0x10
test eax, eax
jne 0x4f60db
push 0x24
push 8
push dword [0x6c2520]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x14], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 8], 1
mov dword [ecx + 0x20], eax
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10

Function at 0x4f6af7
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x4f6a46
push 0x10
push 0x2c
call fcn.0052d964
push 0
push 0
push 8
mov dword [0x6c2ff4], eax
call fcn.0052d28e
cmp word [0x6c2fec], 0
mov dword [0x6c7f7c], eax
jne 0x4f6bdc
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x4f6b4f
mov word [0x6c2fec], di
jmp 0x4f6b57
xor eax, eax
mov word [0x6c2fec], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x6c3008], eax
test eax, eax
je 0x4f6bdb
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x6c3008]
mov dword [0x6c2ff8], eax
call esi
push str.getnameinfo
push dword [0x6c3008]
mov dword [0x6c2ffc], eax
call esi
push str.WSAStringToAddressA
push dword [0x6c3008]
mov dword [0x6c3000], eax
call esi
cmp dword [0x6c2ff8], 0
mov dword [0x6c3004], eax
pop esi
je 0x4f6bdb
cmp dword [0x6c2ffc], 0
je 0x4f6bdb
cmp dword [0x6c3000], 0
je 0x4f6bdb
test eax, eax
je 0x4f6bdb
mov dword [0x6c2ff0], edi
pop edi
add esp, 0x190
ret

Function at 0x4f88fa
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push ebp
push edi
xor edi, edi
mov ebp, edi
test eax, eax
je 0x4f8995
cmp word [eax], di
je 0x4f8995
push esi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4f8990
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x6c2520]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x4f8988
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], ebx
jne 0x4f8979
push dword [esp + 0x1c]
push ebx
push edi
push dword [esp + 0x20]
call fcn.004f9773
mov ebp, eax
push edi
push 0
push dword [0x6c2520]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, ebp
pop esi
jmp 0x4f8997
xor eax, eax
pop edi
pop ebp
ret 0xc
Function at 0x4fb560
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 1
call edi
mov ebx, 0x8000
test bx, ax
je 0x4fb57a
inc esi
push 2
call edi
test bx, ax
je 0x4fb586
or esi, 2
push 4
call edi
test bx, ax
je 0x4fb592
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4fb9d9
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetMessagePos]
mov edi, dword [esp + 0x20]
mov esi, eax
push 0xfffffffffffffff4
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [edi]
mov dword [esp + 0x14], eax
call fcn.00512b28
push eax
call fcn.005153ee
push dword [0x6c30ec]
mov dword [esp + 0x24], eax
call fcn.0052d3e4
mov ebp, eax
movsx ecx, si
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
push dword [edi]
shr esi, 0x10
movsx ecx, si
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
mov edi, 0x8000
test di, ax
je 0x4fba4d
inc ebx
push 0x12
call esi
test di, ax
je 0x4fba59
or ebx, 2
push 0x11
call esi
test di, ax
je 0x4fba65
or ebx, 4
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], eax
call fcn.004fb560
push 0x4fbaba
push ebp
push dword [esp + 0x2c]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x34]
push dword [esp + 0x2c]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x3c]
push dword [esp + 0x20]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x44]
movzx eax, ax
push 0x332c
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x18], eax
call fcn.005177b2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x4fbfb0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x4fbfec
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x4fc340
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0x6c7fa8]
call fcn.0052d8bb
test eax, eax
je case.0x4fc36e.3
mov ecx, dword [esp + 8]
add ecx, 0xfffffffe
cmp ecx, 0x17
ja case.0x4fc36e.3
movzx ecx, byte [ecx + 0x4fc478]
jmp dword [ecx*4 + 0x4fc460]
cmp dword [eax + 4], 0
je 0x4fc38b
push 2
push 0x5dd6c8
push eax
call fcn.004fc610
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 2
push 0x5dd6c8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x4fc3ba
push 3
push 0x5dceb0
push eax
call fcn.004fc610
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 3
push 0x5dceb0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x4fc3e9
push 2
push 0x5dd6cc
push eax
call fcn.004fc610
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 2
push 0x5dd6cc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x4fc418
push 4
push 0x5dd6d0
push eax
call fcn.004fc610
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 4
push 0x5dd6d0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x4fc447
push 4
push 0x5dd6d8
push eax
call fcn.004fc610
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 4
push 0x5dd6d8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x4fc490
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x4fc4f5
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4fc4ed
push dword [esp + 0x10]
push dword [0x6c7fa8]
call fcn.0052d8bb
test eax, eax
je 0x4fc4e3
cmp dword [eax + 4], 0
je 0x4fc4d2
push edi
push esi
push eax
call fcn.004fc610
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc
Function at 0x4fc500
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x4fc608
cmp word [edx], 0
je 0x4fc608
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x4fc52e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x4fc58d
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x4fc560
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fc540
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.004fc610
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fc560
sub ecx, edi
lea eax, [esp + 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 0x14]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.004fc720
mov edi, eax
test edi, edi
je 0x4fc583
cmp dword [esi + 4], 0
je 0x4fc5db
push dword [esp + 0x14]
push edi
push esi
call fcn.004fc610
push edi
push 0
push dword [0x6c2520]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x6c2520]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc
Function at 0x4fc610
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp dword [esi + 0x1c], 0
jne 0x4fc717
cmp dword [esi + 0x14], 1
jne 0x4fc65b
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x4fc6d8
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x4fc6c3
dec eax
je 0x4fc6ac
sub eax, 2
je 0x4fc697
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.004fbfb0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x4fc705
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
push edi
push dword [esp + 0x20]
add ecx, eax
jmp 0x4fc681
xor eax, eax
pop esi
add esp, 0xc
ret 0xc

Function at 0x4fe2ea
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 1
call edi
mov ebx, 0x8000
test bx, ax
je 0x4fe304
inc esi
push 2
call edi
test bx, ax
je 0x4fe310
or esi, 2
push 4
call edi
test bx, ax
je 0x4fe31c
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4fe8b2
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x4fe8ea
push dword [edi]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [esp + 0x10], 1
push dword [edi]
push esi
call fcn.00512d14
test byte [edi + 0x14], 8
mov dword [esp + 0x14], eax
je 0x4fe9db
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [edi], eax
jne 0x4fe9db
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
sub ebp, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x4fea09
test ebp, ebp
jle 0x4fea09
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x4fea09
push ebp
push dword [esp + 0x30]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x30], eax
test eax, eax
je 0x4fe9d2
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x10], 0
je 0x4fe97c
push 4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi + 0x10]
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x4fe991
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push 2
pop eax
add dword [esp + 0x18], eax
add dword [esp + 0x1c], eax
sub dword [esp + 0x20], eax
sub dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
push 0xcc0020
xor eax, eax
push eax
push eax
push ebx
push ebp
push dword [esp + 0x40]
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x4fea09
cmp dword [edi + 0x10], ebx
je 0x4fe9f5
push 4
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [edi + 0x10]
push ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x4fea09
push ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
push dword [esp + 0x14]
push esi
call fcn.00512cf2
cmp dword [esp + 0x10], 0
je 0x4fea23
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret