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

Disassembly:
push 0x10
mov eax, 0x1053de1e
call fcn.1051de0e
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 0x103f474f
cmp edi, dword [ebx + 0xc]
jge 0x103f474f
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x103f46af
cmp edi, dword [esi + 8]
jl 0x103f473d
cmp dword [ebp + 0xc], 0
je 0x103f473d
xor edi, edi
jmp 0x103f46e1
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.103f426a
mov esi, eax
test esi, esi
je 0x103f46c9
mov dword [esi], vtable.CThreadData.0
jmp 0x103f46cb
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.103e795c
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x103f46fd
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x103f4709
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x103f4776
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.1051f940
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 0x103f474f
cmp edi, dword [esi + 8]
jge 0x103f474f
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.1051dd73
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.103e7611
int3
Function at 0x103f53c0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1059f000]
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 [0x105a5c74]
mov dword [ebp - 0x20], ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
test eax, eax
jne 0x103f5419
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x103f543e
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 [0x105a5c74], eax
jmp 0x103f5422
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x103f543e
mov eax, dword [ebp - 0x18]
mov ecx, esi
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [0x1054c9a0]
call esi
jmp 0x103f5580
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.103f5839
lea eax, [ebp - 0x14]
push eax
call fcn.10525bc4
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.1052677d
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.103f5839
lea eax, [ebp - 0x14]
push eax
call fcn.10525bc4
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.1052677d
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.103f5839
lea eax, [ebp - 0x14]
push eax
call fcn.10525bc4
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.1052677d
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.103f5839
lea eax, [ebp - 0x14]
push eax
call fcn.10525bc4
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.1052677d
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push 7
push eax
add edi, esi
inc dword [ebx]
push 0x800
call fcn.103f5839
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.10525bc4
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.1052677d
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.1051d602
leave
ret
Function at 0x10407d45
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x10407d5e
call fcn.103eb9ed
mov esi, dword [eax + 0xc]
push 0x10580a50
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x10407da0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10407da0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x10407da0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.10407da9
jmp 0x10407da2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10425e91
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 0x10425fef
push esi
push edi
push 0x1055f888
call fcn.103f41ae
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
je 0x10425f2a
mov edi, dword [ebx + 0x168]
jmp 0x10425f16
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 0x10425f16
push esi
call fcn.103edf9a
push eax
push 0x1059e5b0
call fcn.103f410f
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x10425f16
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1a0]
mov ecx, esi
call dword [0x1054c9a0]
mov ecx, dword [ebp - 0xc]
call esi
test eax, eax
jle 0x10425f16
push 4
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
jne 0x10425ec5
lea ecx, [ebx + 0x164]
call fcn.103d76db
jmp 0x10425fed
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10425fed
lea eax, [ebx + 0xc8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.103d7476
mov edi, dword [eax]
test edi, edi
jne 0x10425f56
xor esi, esi
jmp 0x10425f59
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 0x10425fdd
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x10425fdd
cmp dword [ebp - 0x10], 0
jne 0x10425fb2
push edi
push 0x1059e5b0
call fcn.103f410f
mov edi, eax
pop ecx
pop ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1a8]
mov ecx, esi
call dword [0x1054c9a0]
mov ecx, edi
call esi
push eax
push 0x10555cb0
call fcn.103f410f
pop ecx
pop ecx
test eax, eax
je 0x10425fdd
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.10425002
test eax, eax
jne 0x10425fdd
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.10423138
cmp dword [ebp - 0xc], 0
lea eax, [ebx + 0xc8]
jne 0x10425f41
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10465f40
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 0x10465fdf
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x10465fdb
mov eax, dword [eax + 0x20]
test eax, eax
je 0x10465fdb
cmp dword [ebx], eax
jne 0x10465fdb
mov eax, dword [ebx + 4]
sub eax, 1
je 0x10465fb5
sub eax, 1
je 0x10465f85
sub eax, 1
jne 0x10465fdb
mov edi, 0x428e
jmp 0x10465fba
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x10465fba
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x1054c9a0]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x10465fba
add edi, 3
jmp 0x10465fba
mov edi, 0x3ea0
push edi
mov ecx, 0x105a701c
call fcn.103d37d0
test eax, eax
je 0x10465fdf
mov eax, dword [0x105a701c]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x10465fd4
call fcn.103e75f7
int3

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1059f000]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x1046e9d3
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1046e9fe
cmp dword [0x105a5d34], 0
jne 0x1046e9fe
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x1046e9fa
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x1046e9fa
push edi
call fcn.10528650
pop ecx
jmp 0x1046ea75
mov eax, edi
jmp 0x1046ea75
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.1051f940
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x1046ea84
push esi
call fcn.103ea3c4
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.1051d602
leave
ret 4
call fcn.103e75f7
int3

Function at 0x1048db3c
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 0x1048db66
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1048db6c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret
lea ecx, [esi + 0xc]
call fcn.103d40d0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.104964e0
int3
Function at 0x1048de47
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x1048de58
xor eax, eax
jmp 0x1048de74
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 0x1048de79
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.103d40d0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.104964e0
int3

Function at 0x1048deeb
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 [0x1054c9a0]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1048df1e
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.103d40d0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.104964e0
int3

Function at 0x1048dff7
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 0x1048e022
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 0x1048e028
cmp dword [ebp - 4], esi
jne 0x1048e03f
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.103d40d0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.104964e0
lea ecx, [edi + 0xc]
call fcn.103d40d0
push eax
push 0xffffffffffffffff
push 0xd
call fcn.10496136
int3

Function at 0x1048ed2a
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.103f2f1f
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 0x1048ed66
call fcn.1048ef47
mov dword [esi + 0xc], 1
jmp 0x1048ed6b
call fcn.1048ef47
cmp dword [esi], 0
je 0x1048edb6
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x1048ed91
push edi
call fcn.103e7d12
lea ecx, [edi + 1]
push ecx
jmp 0x1048eda0
push 0xff
call fcn.103d3e70
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.103e3afb
pop edi
jmp 0x1048edda
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 0x1048edda
push dword [esi]
push dword [ebp - 4]
call fcn.103f5acb
pop esi
leave
ret 0xc
Function at 0x1048ee9e
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.1048ef47
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x1048eee6
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.103e7d12
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.103e3afb
jmp 0x1048eef1
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.103f5acb
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x104921d4
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 0x1049222a
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10492203
call fcn.103e86fd
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x10492218
call fcn.103e86fd
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x1049222a
call fcn.103e86fd
call fcn.103eb9ed
cmp dword [eax + 0x3c], 0
je 0x1049223f
push esi
mov ecx, ebx
call fcn.104918f0
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.10492429
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x10492268
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x10492274
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 0x1049690b
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x1059f000]
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.1051f940
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.105269cb
push eax
call fcn.103d3740
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x105604f0]
je 0x10496a6c
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 0x10496a80
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10496a80
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 0x104969c7
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x104969bb
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.104966bc
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x104969c2
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x104969c9
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.10496bc2
test eax, eax
je 0x104969f5
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.10496543
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
jmp 0x104969fa
mov dword [esi], edi
mov dword [esi + 4], edi
lea eax, [ebp - 0x40]
push eax
call fcn.10496bc2
test eax, eax
je 0x10496a22
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.10496543
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
jmp 0x10496a28
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
lea eax, [ebp - 0x48]
push eax
call fcn.10496bc2
test eax, eax
je 0x10496a4a
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.10496543
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x10496a4c
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x10496a5e
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x10496a6c
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.1051d602
leave
ret 4
xor eax, eax
jmp 0x10496a6f
Function at 0x104a4d27
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 0x104a4d54
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x104a4d69
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x104a4d69
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.103edf9a
jmp 0x104a4e3a
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.103edf9a
cmp eax, edi
jne 0x104a4e44
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 0x104a4dd6
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 0x104a4e1a
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x104a4e44
cmp eax, 0x205
je 0x104a4e44
cmp eax, 0x201
je 0x104a4e44
cmp eax, 0x204
je 0x104a4e44
cmp eax, 0x100
jne 0x104a4e02
cmp dword [ebp - 0x18], 0x1b
je 0x104a4e44
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 0x104a4e3a
ja 0x104a4e33
cmp eax, dword [0x105a73ec]
jbe 0x104a4e3a
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x104a4d8b
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x104a5e3d
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x104a5e73
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.103d4cdf
test eax, eax
je 0x104a5e5b
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 0x104ad38e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x1059e828], 0
push esi
push edi
je 0x104ad416
cmp dword [0x1059e948], 0xfffffffe
jne 0x104ad402
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x104ad416
mov edi, 0x105a741c
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x105a7434], 0
jne 0x104ad41a
push 0
push 0
push 0x104ad420
call fcn.10526bd4
add esp, 0xc
mov dword [0x105a7434], eax
test eax, eax
je 0x104ad3f2
cmp eax, 0xffffffff
je 0x104ad3f2
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x1059e948], esi
jmp 0x104ad3f9
and dword [0x105a7434], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x104ad416
mov eax, dword [ebp + 8]
mov dword [0x1059e948], eax
cmp eax, 0xffffffff
jne 0x104ad416
and dword [0x105a7434], 0
pop edi
pop esi
pop ebp
ret
call fcn.103e75f7
int3