joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45923a
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5796af
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.00549d00
mov eax, dword [0x5db040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x201c], edi
mov dword [ebp - 0x2024], eax
cmp dword [ecx + 0x58], ebx
je 0x45936b
push ebx
push edx
call fcn.004593b8
mov ebx, eax
test ebx, ebx
jne 0x4592a2
push esi
jmp 0x459393
lea ecx, [ebp - 0x2014]
call fcn.00401fe0
xor ecx, ecx
lea eax, [ebp - 0x2018]
push eax
push ecx
lea eax, [ebp - 0x2020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x2024]
mov dword [ebp - 0x2020], ecx
push ebx
mov dword [ebp - 0x2018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x201c], eax
test eax, eax
jne 0x45932a
mov eax, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2014]
shr eax, 1
push eax
call fcn.0040a281
lea ecx, [ebp - 0x2018]
push ecx
push eax
lea eax, [ebp - 0x2020]
push eax
push 0
push dword [ebp - 0x2024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2014]
mov dword [ebp - 0x201c], eax
call fcn.0040f979
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x201c], 0
jne 0x459358
mov esi, dword [ebp - 0x2014]
add esi, 0xfffffff0
push esi
call fcn.00413266
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.0040a30b
jmp 0x45939a
push esi
mov ecx, edi
call fcn.00409c01
mov ecx, dword [ebp - 0x2014]
lea ecx, [ecx - 0x10]
jmp 0x459351
test esi, esi
jne 0x459374
mov esi, 0x586f84
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x2010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2010]
push eax
mov ecx, edi
call fcn.00409c01
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00549495
leave
ret 0x10

Function at 0x45dee0
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.00557ed5
pop ecx
test eax, eax
jne 0x45df22
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x59028c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00409240
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45dee8
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 0x466175
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0xe4]
test ecx, ecx
je 0x4662d3
push esi
push edi
push 0x58a2f0
call fcn.0041ea39
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
je 0x46620e
mov edi, dword [ebx + 0x168]
jmp 0x4661fa
mov esi, dword [edi + 8]
mov edi, dword [edi]
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4661fa
push esi
call fcn.0040d173
push eax
push 0x5da7b8
call fcn.0041e99a
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x4661fa
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1a0]
mov ecx, esi
call dword [0x5869a0]
mov ecx, dword [ebp - 0xc]
call esi
test eax, eax
jle 0x4661fa
push 4
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
jne 0x4661a9
lea ecx, [ebx + 0x164]
call fcn.00415ff6
jmp 0x4662d1
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4662d1
lea eax, [ebx + 0xc8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.0040d470
mov edi, dword [eax]
test edi, edi
jne 0x46623a
xor esi, esi
jmp 0x46623d
mov esi, dword [edi + 0x20]
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4662c1
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4662c1
cmp dword [ebp - 0x10], 0
jne 0x466296
push edi
push 0x5da7b8
call fcn.0041e99a
mov edi, eax
pop ecx
pop ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1a8]
mov ecx, esi
call dword [0x5869a0]
mov ecx, edi
call esi
push eax
push 0x58cba8
call fcn.0041e99a
pop ecx
pop ecx
test eax, eax
je 0x4662c1
mov esi, dword [ebp - 4]
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea eax, [ebp - 8]
lea esi, [ebx + 0x164]
push eax
mov ecx, esi
call fcn.004652e8
test eax, eax
jne 0x4662c1
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.0046341e
cmp dword [ebp - 0xc], 0
lea eax, [ebx + 0xc8]
jne 0x466225
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4962c9
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 0x496450
je 0x496477
sub eax, 0xa1
je 0x496477
sub eax, 1
je 0x496477
dec eax
sub eax, 1
je 0x496477
sub eax, 1
je 0x496477
dec eax
sub eax, 1
je 0x496477
sub eax, 1
je 0x496477
sub eax, 0x58
jne 0x4964b5
cmp dword [edi + 0xc0], 0xffffffff
je 0x496477
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x496477
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x4963a5
sub eax, 1
jne 0x496477
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x496394
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 [0x5869a0]
mov ecx, edi
call esi
test eax, eax
jne 0x4963f1
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x49636a
jmp 0x4964cf
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x4964cf
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 [0x5869a0]
mov ecx, edi
call esi
test eax, eax
jne 0x4963f1
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x4963bc
jmp 0x4964cf
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x5869a0]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x5869a0]
mov ecx, edi
call esi
mov ecx, eax
call fcn.0041291b
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x5869a0]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x4964cf
sub eax, 0x200
je 0x496477
sub eax, 1
je 0x496477
sub eax, 1
je 0x496477
dec eax
sub eax, 1
je 0x496477
sub eax, 1
je 0x496477
dec eax
sub eax, 1
je 0x496477
sub eax, 1
jne 0x4964b5
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x496496
cmp dword [eax + 0x20], ebx
je 0x496496
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 0x4964b5
cmp dword [eax + 0x20], ebx
je 0x4964b5
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 4], 0x203
jne 0x4964d4
lea eax, [edi + 0x2250]
test eax, eax
je 0x4964cb
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x4964d4
xor eax, eax
inc eax
jmp 0x4964dc
push esi
mov ecx, edi
call fcn.004d21ac
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x49d76d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x57db09
call fcn.0054978f
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 0x49d864
cmp edi, dword [ebx + 0xc]
jge 0x49d864
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x49d7c4
cmp edi, dword [esi + 8]
jl 0x49d852
cmp dword [ebp + 0xc], 0
je 0x49d852
xor edi, edi
jmp 0x49d7f6
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.0049d377
mov esi, eax
test esi, esi
je 0x49d7de
mov dword [esi], vtable.CThreadData.0
jmp 0x49d7e0
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.0041ece4
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x49d812
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x49d81e
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x49d88b
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.0054ea40
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 0x49d864
cmp edi, dword [esi + 8]
jge 0x49d864
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.005496f4
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004099df
int3
Function at 0x4a0265
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5db040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [0x5e2b48]
mov dword [ebp - 0x20], ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
test eax, eax
jne 0x4a02be
push 0x58884c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4a02e3
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5e2b48], eax
jmp 0x4a02c7
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x4a02e3
mov eax, dword [ebp - 0x18]
mov ecx, esi
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [0x5869a0]
call esi
jmp 0x4a0425
and dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ebx, ax
lea eax, [ebp - 0x14]
push 7
push eax
push ebx
call fcn.004a06de
lea eax, [ebp - 0x14]
push eax
call fcn.0055682b
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.0055621b
mov eax, dword [ebp - 0x20]
lea edi, [esi + 1]
push 7
and ebx, 0x3ff
inc dword [eax]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.004a06de
lea eax, [ebp - 0x14]
push eax
call fcn.0055682b
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx + edi*2]
push ecx
call fcn.0055621b
mov eax, dword [ebp - 0x20]
add esp, 0x38
add edi, esi
inc dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ebx, ax
lea eax, [ebp - 0x14]
push 7
push eax
push ebx
call fcn.004a06de
lea eax, [ebp - 0x14]
push eax
call fcn.0055682b
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0055621b
mov eax, dword [ebp - 0x20]
add edi, esi
push 7
and ebx, 0x3ff
inc dword [eax]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.004a06de
lea eax, [ebp - 0x14]
push eax
call fcn.0055682b
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0055621b
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push 7
push eax
add edi, esi
inc dword [ebx]
push 0x800
call fcn.004a06de
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.0055682b
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0055621b
mov ecx, dword [ebp - 0x1c]
lea eax, [edi + esi]
add esp, 0x10
xor edx, edx
inc dword [ebx]
mov word [ecx + eax*2 + 2], dx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00549495
leave
ret
Function at 0x4a221a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], ebx
test byte [edi + 4], 1
mov esi, dword [edi + 0xc]
jne 0x4a2270
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4a2249
call fcn.00420bf4
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4a225e
call fcn.00420bf4
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4a2270
call fcn.00420bf4
call fcn.0042010a
cmp dword [eax + 0x3c], 0
je 0x4a2285
push esi
mov ecx, ebx
call fcn.004a1940
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.004a246b
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4a22ae
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4a22ba
mov esi, ebx
mov dword [eax + 0x88], ebx
or dword [edi + 4], 1
mov dword [edi + 0xc], esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4ab5d4
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x4ab60a
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.0040b9e9
test eax, eax
je 0x4ab5f2
mov eax, dword [eax + 0x20]
push 1
push edi
push ebx
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4af929
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5db040]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x4af955
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4af980
cmp dword [0x5e1d74], 0
jne 0x4af980
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x4af97c
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x4af97c
push edi
call fcn.0055e7ec
pop ecx
jmp 0x4af9f7
mov eax, edi
jmp 0x4af9f7
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0054ea40
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x4afa06
push esi
call fcn.004233c9
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push esi
push 1
push 2
lea ecx, [ebp - 0x108]
push ecx
lea ecx, [ebp - 0x104]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
xor eax, eax
mov word [ebp - 0x106], ax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
movzx eax, word [ebp - 0x108]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00549495
leave
ret 4
call fcn.004099c5
int3
Function at 0x4b4013
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4b403d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4b4043
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret
lea ecx, [esi + 0xc]
call fcn.00409caf
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004fc7ab
int3

Function at 0x4b431e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x4b432f
xor eax, eax
jmp 0x4b434b
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b4350
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.00409caf
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004fc7ab
int3

Function at 0x4b43c2
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x5869a0]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4b43f5
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.00409caf
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004fc7ab
int3

Function at 0x4b44ce
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x4b44f9
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b44ff
cmp dword [ebp - 4], esi
jne 0x4b4516
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.00409caf
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004fc7ab
lea ecx, [edi + 0xc]
call fcn.00409caf
push eax
push 0xffffffffffffffff
push 0xd
call fcn.004fc401
int3
Function at 0x4e458e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4e45bb
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x4e45d0
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4e45d0
or dword [esi + 0x3c], 2
or dword [esi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0040d173
jmp 0x4e46a1
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0040d173
cmp eax, edi
jne 0x4e46ab
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4e463d
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4e4681
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x4e46ab
cmp eax, 0x205
je 0x4e46ab
cmp eax, 0x201
je 0x4e46ab
cmp eax, 0x204
je 0x4e46ab
cmp eax, 0x100
jne 0x4e4669
cmp dword [ebp - 0x18], 0x1b
je 0x4e46ab
push dword [ebp - 8]
lea eax, [esi + 0x24]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, ebx
sbb edx, dword [ebp - 4]
test edx, edx
jb 0x4e46a1
ja 0x4e469a
cmp eax, dword [0x5e3430]
jbe 0x4e46a1
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x4e45f2
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4e7a61
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x5da600], 0
push esi
push edi
je 0x4e7ae9
cmp dword [0x5da978], 0xfffffffe
jne 0x4e7ad5
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x4e7ae9
mov edi, 0x5e344c
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5e3464], 0
jne 0x4e7aed
push 0
push 0
push 0x4e7af3
call fcn.00556d54
add esp, 0xc
mov dword [0x5e3464], eax
test eax, eax
je 0x4e7ac5
cmp eax, 0xffffffff
je 0x4e7ac5
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x5da978], esi
jmp 0x4e7acc
and dword [0x5e3464], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4e7ae9
mov eax, dword [ebp + 8]
mov dword [0x5da978], eax
cmp eax, 0xffffffff
jne 0x4e7ae9
and dword [0x5e3464], 0
pop edi
pop esi
pop ebp
ret
call fcn.004099c5
int3
Function at 0x4fcb91
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5db040]
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.0054ea40
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.005566fe
push eax
call fcn.00402340
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x59bcf8]
je 0x4fccef
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 0x4fcd03
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4fcd03
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
je 0x4fcc4d
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4fcc41
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.004fc942
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x4fcc48
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4fcc4f
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.004fce42
test eax, eax
je 0x4fcc76
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.004fc7c9
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4fcc7a
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.004fce42
test eax, eax
je 0x4fcca1
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.004fc7c9
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4fcca5
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.004fce42
test eax, eax
je 0x4fcccd
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.004fc7c9
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x4fcccf
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x4fcce1
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4fccef
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00549495
leave
ret 4
xor eax, eax
jmp 0x4fccf2