joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e16e
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x5894e3
call fcn.005664e2
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x45e270
cmp edi, dword [ebx + 0xc]
jge 0x45e270
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x45e1c5
cmp edi, dword [esi + 8]
jl 0x45e25e
cmp dword [ebp + 0xc], 0
je 0x45e25e
xor edi, edi
jmp 0x45e1f7
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.0045dc52
mov esi, eax
test esi, esi
je 0x45e1df
mov dword [esi], vtable.CThreadData.0
jmp 0x45e1e1
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x14]
mov dword [esi + ecx], eax
mov dword [ebx + 0x14], esi
cmp dword [esi + 0xc], edi
jne 0x45e212
push 4
push dword [ebx + 0xc]
call fcn.0042767d
pop ecx
pop ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x45e22a
push 2
push 4
push dword [ebx + 0xc]
call fcn.0042767d
pop ecx
pop ecx
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x45e297
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.00568930
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x45e270
cmp edi, dword [esi + 8]
jge 0x45e270
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00566440
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0042688c
int3

Function at 0x45ec8a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x586d91
call fcn.00566477
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x45ecb0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x45ed10
call fcn.004277e9
push eax
lea ecx, [ebp - 0x10]
call fcn.0041cb4f
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x5959e4]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.005729df
push eax
call fcn.0041cf51
add esp, 0x14
test esi, esi
je 0x45ed03
push esi
call fcn.00572175
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00416850
mov eax, ebx
call fcn.00566440
ret 8
Function at 0x46ea2e
Capabilities:
Get disk information

Disassembly:
push 0x268
mov eax, 0x589f5d
call fcn.005664ab
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x264], eax
test eax, eax
je 0x46ebf5
test ebx, ebx
je 0x46ebf5
lea ecx, [ebp - 0x268]
mov esi, 0x104
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x46ea9e
push 0xffffffffffffffff
push ebx
push esi
push dword [ebp - 0x264]
call fcn.005729df
push eax
call fcn.0041cf51
add esp, 0x14
push ebx
push edi
call fcn.0046e9ec
xor eax, eax
call fcn.00566455
ret 0xc
cmp eax, esi
jb 0x46eac0
test edi, edi
je 0x46ea94
push ebx
mov dword [edi + 8], 3
call fcn.00572175
pop ecx
push eax
push ebx
lea ecx, [edi + 0x10]
call fcn.0041e151
jmp 0x46ea94
call fcn.004277e9
push eax
lea ecx, [ebp - 0x26c]
call fcn.0041cb4f
and dword [ebp - 4], 0
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x264]
call fcn.0046e358
mov esi, dword [ebp - 0x26c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x46ebc0
xor ecx, ecx
lea eax, [ebp - 0x270]
push ecx
push ecx
push eax
lea eax, [ebp - 0x274]
push eax
push ecx
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x46eb30
push ebx
push edi
call fcn.0046e9ec
lea ecx, [esi - 0x10]
call fcn.00416850
jmp 0x46ea94
mov eax, dword [ebp - 0x270]
test al, 2
jne 0x46eb4c
push dword [ebp - 0x264]
call dword [sym.imp.USER32.dll_CharUpperW]
mov eax, dword [ebp - 0x270]
test al, 4
jne 0x46ebc0
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x46ebc0
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x46eb1c
cmp eax, dword [ebp - 0x264]
jbe 0x46eb1c
lea eax, [ebp - 0x234]
push eax
call fcn.00572175
mov edx, dword [ebp - 0x268]
sub edx, dword [ebp - 0x264]
sar edx, 1
pop ecx
add eax, edx
mov ecx, 0x104
cmp eax, ecx
jge 0x46ebd0
lea eax, [ebp - 0x234]
sub ecx, edx
push eax
push ecx
push dword [ebp - 0x268]
call fcn.005729ea
push eax
call fcn.0041cf51
add esp, 0x10
lea ecx, [esi - 0x10]
call fcn.00416850
xor eax, eax
inc eax
jmp 0x46ea96
test edi, edi
je 0x46eb23
push ebx
mov dword [edi + 8], 3
call fcn.00572175
pop ecx
push eax
push ebx
lea ecx, [edi + 0x10]
call fcn.0041e151
jmp 0x46eb23
call fcn.00426872
int3

Function at 0x483e41
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x84], ebx
test ebx, 0xffff0000
jne 0x483e6c
cmp dword [edi + 0x80], 0
jne 0x483e6c
movzx eax, bx
mov dword [edi + 0x80], eax
call fcn.00427ceb
push 5
push ebx
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.004840e5
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x483e99
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call fcn.00427ceb
push 5
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x483ecc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push edi
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.00483edf
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x485fcb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x486021
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x485ffa
call fcn.0046c8e0
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x48600f
call fcn.0046c8e0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x486021
call fcn.0046c8e0
call fcn.00427ceb
cmp dword [eax + 0x3c], 0
je 0x486036
push edi
mov ecx, ebx
call fcn.004856fb
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0048621c
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x48605f
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x48606b
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x48a3b0
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
cmp dword [eax - 0xc], 0
je 0x48a3e6
call fcn.0041cf7b
test eax, eax
je 0x48a3c8
mov eax, dword [eax + 0x20]
push 1
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 0x14]
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jb 0x48a3e6
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4cc297
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov ecx, 0x104
mov eax, dword [esi + 4]
cmp eax, ecx
ja 0x4cc42a
je 0x4cc450
cmp eax, 0xa1
jb 0x4cc48e
cmp eax, 0xa2
jbe 0x4cc450
cmp eax, 0xa3
jbe 0x4cc48e
cmp eax, 0xa5
jbe 0x4cc450
cmp eax, 0xa6
jbe 0x4cc48e
cmp eax, 0xa8
jbe 0x4cc450
cmp eax, 0x100
jne 0x4cc48e
cmp dword [edi + 0xc0], 0xffffffff
je 0x4cc450
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x4cc450
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x4cc37f
sub eax, 1
jne 0x4cc450
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x4cc36e
mov eax, ebx
cdq
idiv ecx
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x5959e4]
mov ecx, edi
call esi
test eax, eax
jne 0x4cc3cb
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x4cc344
jmp 0x4cc4a8
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x4cc4a8
mov eax, ebx
cdq
idiv dword [edi + 0xbc]
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x5959e4]
mov ecx, edi
call esi
test eax, eax
jne 0x4cc3cb
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x4cc396
jmp 0x4cc4a8
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x5959e4]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x5959e4]
mov ecx, edi
call esi
mov ecx, eax
call fcn.0045f165
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x5959e4]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x4cc4a8
cmp eax, 0x200
jb 0x4cc48e
cmp eax, 0x202
jbe 0x4cc450
cmp eax, 0x203
jbe 0x4cc48e
cmp eax, 0x205
jbe 0x4cc450
add eax, 0xfffffdf9
cmp eax, 1
ja 0x4cc48e
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x4cc46f
cmp dword [eax + 0x20], ebx
je 0x4cc46f
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0xf8]
test eax, eax
je 0x4cc48e
cmp dword [eax + 0x20], ebx
je 0x4cc48e
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 4], 0x203
jne 0x4cc4ad
lea eax, [edi + 0x2250]
test eax, eax
je 0x4cc4a4
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x4cc4ad
xor eax, eax
inc eax
jmp 0x4cc4b5
push esi
mov ecx, edi
call fcn.004c67c0
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4e6322
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x4e63d6
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x4e63d2
mov eax, dword [eax + 0x20]
test eax, eax
je 0x4e63d2
cmp dword [ebx], eax
jne 0x4e63d2
mov eax, dword [ebx + 4]
sub eax, 1
je 0x4e63a1
sub eax, 1
je 0x4e636f
sub eax, 1
jne 0x4e63d2
mov edi, 0x428e
jmp 0x4e63a6
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x4e63a6
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x5959e4]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x4e63a6
add edi, 3
jmp 0x4e63a6
mov edi, 0x3ea0
push edi
call fcn.00427464
test eax, eax
je 0x4e63d6
push edi
push eax
mov ecx, 0x5f58c8
call fcn.0041d9c3
test eax, eax
je 0x4e63d6
mov eax, dword [0x5f58c8]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x4e63cb
call fcn.00426872
int3
Function at 0x4f6b7c
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5ed004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x230
xor edi, edi
push edi
push esi
call fcn.00568930
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.005729df
push eax
call fcn.0041cf51
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x59bb9c]
je 0x4f6ce6
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4f6cfa
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4f6cfa
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
jne 0x4f6c15
mov eax, edi
jmp 0x4f6c44
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4f6c32
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.004f6921
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x28]
jmp 0x4f6c3b
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
lea eax, [ecx + 1]
neg eax
sbb eax, eax
and eax, ecx
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.004f5b3e
test eax, eax
je 0x4f6c69
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.004f5657
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4f6c6d
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.004f5b3e
test eax, eax
je 0x4f6c94
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.004f5657
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4f6c98
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.004f5b3e
test eax, eax
je 0x4f6cc0
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.004f5657
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x4f6cc2
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x4f6cd4
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4f6ce6
mov eax, edi
mov dword [esi + 0x10], eax
mov eax, ecx
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00565da9
leave
ret 4
xor eax, eax
jmp 0x4f6ce9
Function at 0x516404
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0045e8a2
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x516440
call fcn.0051661f
mov dword [esi + 0xc], 1
jmp 0x516445
call fcn.0051661f
cmp dword [esi], 0
je 0x51648e
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x516468
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.004274d6
jmp 0x516479
push 0xff
mov ecx, esi
call fcn.0041dc0c
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00422fb3
jmp 0x5164b2
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x5164b2
push dword [esi]
push dword [ebp - 4]
call fcn.004692cf
pop esi
leave
ret 0xc

Function at 0x516576
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0051661f
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x5165be
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004274d6
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00422fb3
jmp 0x5165c9
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004692cf
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x517923
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.00576c73
pop ecx
test eax, eax
jne 0x517965
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0042323e
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x51792b
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret
Function at 0x551bc6
Capabilities:
Get file system object information

Disassembly:
push 0x6f4
mov eax, 0x59323c
call fcn.005664ab
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x700], edi
test ecx, ecx
je 0x551d5d
mov eax, dword [ebp + 0x10]
xor esi, esi
sub eax, esi
je 0x551d2f
sub eax, 1
je 0x551c45
sub eax, 1
je 0x551c1d
sub eax, 1
je 0x551c45
push 0x5c799c
mov ecx, edi
call fcn.0041cb88
mov eax, edi
call fcn.00566455
ret 0x10
push 0x408
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x551c07
lea eax, [ebp - 0x4e8]
push eax
jmp 0x551c0c
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x551c07
push esi
lea eax, [ebp - 0x448]
mov dword [ebp - 0x448], esi
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x444], esi
push eax
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x434], esi
call fcn.004f6cfe
test eax, eax
je 0x551c07
call fcn.004277e9
push eax
lea ecx, [ebp - 0x700]
call fcn.0041cb4f
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x551ce5
test byte [ebp - 0x428], 0x18
jne 0x551d07
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
push dword [ebp - 0x42c]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x430]
call dword [0x5959e4]
mov ecx, ebx
call esi
jmp 0x551d07
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
lea ecx, [ebp - 0x440]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x5959e4]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x700]
add eax, 0xfffffff0
push eax
call fcn.0041d136
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.00416850
jmp 0x551c13
push 0x208
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x551c07
lea eax, [ebp - 0x6f0]
jmp 0x551c42
call fcn.00426872
int3

Function at 0x551ef0
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0056252b
call fcn.00427d3f
cmp dword [eax + 0x14], 0
jne 0x551f0b
mov ecx, esi
pop esi
jmp fcn.005511e8
pop esi
ret

Function at 0x552dc6
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.004234c7
call fcn.00427d3f
cmp dword [eax + 0x14], 0
jne 0x552de1
mov ecx, esi
pop esi
jmp fcn.00552628
pop esi
ret
Function at 0x556aa1
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x588c26
call fcn.00566477
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x556b87
mov edi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x556b87
cmp edi, 0x43
je 0x556ae6
cmp edi, 0x2d
jne 0x556b87
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x556b87
call dword [sym.imp.USER32.dll_EmptyClipboard]
call fcn.004277e9
push eax
lea ecx, [ebp - 0x10]
call fcn.0041cb4f
movzx eax, byte [esi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [esi + 0xe5]
push eax
movzx eax, byte [esi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push 0x5be560
push eax
call fcn.0042032c
mov esi, dword [ebp - 0x10]
add esp, 0x14
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00416850
mov esi, dword [ebp - 0x14]
push ebx
mov ecx, esi
call fcn.004d971f
call fcn.00566440
ret 4
Function at 0x100016b8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x68
xor eax, eax
lea ecx, [esp + 0x60]
lea edx, [esp + 0x58]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], eax
jmp 0x10001709
mov eax, esp
mov dword [eax], 0x1d494c
mov eax, dword [sym.imp.ole32.dll_RevokeDragDrop]
call eax
sub esp, 4
mov ecx, esp
mov dword [ecx], 0x2f
mov ecx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov dword [esp + 0x48], eax
call ecx
sub esp, 4
mov word [esp + 0x46], ax
jmp 0x1000175a
mov eax, dword [esp + 0x4c]
xor ecx, ecx
mov edx, esp
mov dword [edx], 0x2e5433
mov edx, dword [sym.imp.SHLWAPI.dll_SHRegDuplicateHKey]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
call edx
sub esp, 4
xor ecx, ecx
mov edx, dword [esp + 0x40]
sub edx, 0x29
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edx
je 0x100016d9
jmp 0x10001743
mov eax, dword [esp + 0x40]
sub eax, 0xa
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
jne 0x100017a3
jmp 0x1000175a
mov eax, dword [sym.imp.USER32.dll_GetFocus]
call eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x5c], 0x36
mov eax, esp
lea ecx, [esp + 0x5c]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0xeea
mov dword [eax + 4], 0x58
mov dword [eax], 0xeed368
mov eax, dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
call eax
sub esp, 0x14
mov dword [esp + 0x20], eax
jmp 0x10001818
mov eax, dword [esp + 0x28]
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov ecx, esp
mov edx, dword [esp + 0x54]
mov dword [ecx], edx
mov ecx, dword [sym.imp.ADVAPI32.dll_FreeEncryptionCertificateHashList]
mov dword [esp + 0x1c], eax
call ecx
sub esp, 4
mov eax, esp
mov dword [eax + 4], 0xeaa
mov dword [eax], 0x3ef00c
mov eax, dword [sym.imp.GDI32.dll_SetTextAlign]
call eax
sub esp, 8
mov ecx, esp
mov dword [ecx], 0x3011e7
mov ecx, dword [sym.imp.GDI32.dll_WidenPath]
mov dword [esp + 0x18], eax
call ecx
sub esp, 4
mov ecx, dword [esp + 0x1c]
add ecx, 1
cmp ecx, 0xa
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ecx
jne 0x100017a3
mov eax, dword [esp + 0x40]
add eax, 1
cmp eax, 0x6e
mov dword [esp + 0x4c], eax
jne 0x10001709
mov esp, ebp
pop ebp
ret