joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002760
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xor dl, dl
mov dword [ebp - 4], ecx
test eax, eax
je 0x1000286f
test eax, 0xffff0000
jne 0x1000286f
push ebx
push edi
movzx edi, ax
push edi
call fcn.10007142
mov ebx, eax
test ebx, ebx
je 0x1000286b
mov eax, edi
shr eax, 4
push 6
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x1000286b
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000286b
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000286a
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x100027f9
cmp esi, ecx
jae 0x1000286a
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x100027e3
cmp esi, ecx
jae 0x1000286a
movzx eax, word [esi]
test ax, ax
je 0x1000286a
push 0
push 0
push 0
push 0
push eax
lea ecx, [esi + 2]
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x10002877
mov ebx, dword [ebp - 4]
mov ecx, 1
mov edx, dword [ebx]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x10002842
push edi
mov ecx, ebx
call fcn.100029e0
mov edx, dword [ebx]
movzx eax, word [esi]
push 0
push 0
push edi
push edx
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x10002877
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
mov byte [edi + eax], 0
pop esi
pop edi
mov dl, 1
pop ebx
mov al, dl
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.10002b00
int3

Function at 0x10004390
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.10010126

Function at 0x10005b28
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x101587a8
call fcn.1013b51c
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x10005b4e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x10005bae
call fcn.10007529
push eax
lea ecx, [ebp - 0x10]
call fcn.10002430
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 [0x10166964]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.10142b3b
push eax
call fcn.100058c4
add esp, 0x14
test esi, esi
je 0x10005ba1
push esi
call fcn.10142ab0
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.100028f0
mov eax, ebx
call fcn.1013b4e5
ret 8
Function at 0x1000a3df
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x1000a41e
call fcn.10015d44
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1000a41e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000a426
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.10012d30
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x1000ae1c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x1000aea8
cmp dword [esi + 0x20], 0
je 0x1000aea8
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1000aea8
cmp dword [ebp + 8], 0
je 0x1000aea8
xor edi, edi
mov ebx, edi
call fcn.10015d44
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
test eax, eax
je 0x1000ae8c
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000aea8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.1001bb3c
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1000aea4
mov ecx, esi
call fcn.1000abbe
mov eax, edi
jmp 0x1000aeaa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1001017e
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.10015d44
push 5
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100101b1
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.100101c4
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1001447e
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x100144d1
push esi
push dword [ebp + 8]
call fcn.1001466a
mov edi, eax
test edi, edi
je 0x100144cc
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x100144cc
mov eax, dword [ebp - 8]
jmp 0x100144e3
mov eax, dword [ebp + 0x10]
jmp 0x100144e3
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc
Function at 0x100144e9
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10158ea4
mov eax, dword fs:[0]
push eax
mov eax, 0x1018
call fcn.1013b6f0
mov eax, dword [0x101b1e38]
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
cmp dword [ecx + 0x58], 0
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x101c], edi
mov dword [ebp - 0x1024], eax
je 0x1001461d
push 0
push edx
call fcn.1001466a
mov ebx, eax
test ebx, ebx
jne 0x10014551
push esi
jmp 0x10014645
call fcn.10007529
push eax
lea ecx, [ebp - 0x1014]
call fcn.10002430
xor ecx, ecx
lea eax, [ebp - 0x1018]
push eax
push ecx
lea eax, [ebp - 0x1020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x1024]
mov dword [ebp - 0x1020], ecx
push ebx
mov dword [ebp - 0x1018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x101c], eax
test eax, eax
jne 0x100145dc
push dword [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
call fcn.10002a40
lea ecx, [ebp - 0x1018]
push ecx
push eax
lea eax, [ebp - 0x1020]
push eax
push 0
push dword [ebp - 0x1024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x101c], eax
call fcn.100071ca
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x101c], 0
jne 0x1001460a
mov esi, dword [ebp - 0x1014]
add esi, 0xfffffff0
push esi
call fcn.10004ae0
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.100028f0
jmp 0x1001464c
push esi
mov ecx, edi
call fcn.10002cb0
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0x10]
jmp 0x10014603
test esi, esi
jne 0x10014626
mov esi, 0x10166c74
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x1010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, edi
call fcn.10002cb0
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.1013ac66
leave
ret 0x10
Function at 0x10015854
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x10158fd8
call fcn.1013b587
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [esi + 0x1c]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
test ebx, ebx
jle 0x1001595e
cmp ebx, dword [esi + 0xc]
jge 0x1001595e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x100158ab
cmp ebx, dword [edi + 8]
jl 0x1001594c
cmp dword [ebp + 0xc], 0
je 0x1001594c
xor ebx, ebx
jmp 0x100158e5
xor ebx, ebx
push 0x10
mov dword [ebp - 4], ebx
call fcn.100152b2
mov edi, eax
test edi, edi
je 0x100158c5
mov dword [edi], vtable.CThreadData.0
jmp 0x100158c7
mov edi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x14]
push edi
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call fcn.10015780
mov ecx, dword [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x14], edi
mov esi, dword [ebp - 0x14]
cmp dword [edi + 0xc], ebx
jne 0x10015900
push 4
push dword [esi + 0xc]
call fcn.10007378
pop ecx
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x10015918
push 2
push 4
push dword [esi + 0xc]
call fcn.10007378
pop ecx
pop ecx
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x10015985
mov ecx, dword [edi + 8]
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push ebx
push eax
call fcn.1013c7b0
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [edi + 8], eax
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x1001595e
cmp ebx, dword [edi + 8]
jge 0x1001595e
mov eax, dword [ebp + 0xc]
mov dword [ecx + ebx*4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.1013b4e5
ret 8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.10006f2f
int3
Function at 0x1001e5b5
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 0x1001e60b
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x1001e5e4
call fcn.1001192b
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x1001e5f9
call fcn.1001192b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x1001e60b
call fcn.1001192b
call fcn.10015d44
cmp dword [eax + 0x3c], 0
je 0x1001e620
push edi
mov ecx, ebx
call fcn.1001dce5
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.1001e7f2
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x1001e649
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x1001e655
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 0x100361fe
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.10005a51
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x1003623a
call fcn.10036419
mov dword [esi + 0xc], 1
jmp 0x1003623f
call fcn.10036419
cmp dword [esi], 0
je 0x10036288
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x10036262
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.100071a7
jmp 0x10036273
push 0xff
mov ecx, esi
call fcn.10002a40
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.100071ca
jmp 0x100362ac
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x100362ac
push dword [esi]
push dword [ebp - 4]
call fcn.1001cbc5
pop esi
leave
ret 0xc

Function at 0x10036370
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.10036419
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x100363b8
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.100071a7
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.100071ca
jmp 0x100363c3
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.1001cbc5
pop edi
pop esi
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x101b1e38]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esi - 0x60]
cmp eax, 9
ja 0x100432d0
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x100432fd
cmp dword [0x101b82c4], 0
jne 0x100432fd
lea eax, [esi - 0x41]
cmp eax, 0x19
jbe 0x100432f9
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jb 0x100432f9
push esi
call fcn.10149bdc
pop ecx
jmp 0x1004336a
mov eax, esi
jmp 0x1004336a
xor eax, eax
mov word [ebp - 0x10c], ax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
call fcn.10005079
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push esi
call dword [sym.imp.USER32.dll_ToAsciiEx]
mov al, byte [ebp - 0x10c]
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 0x107], 0
call dword [sym.imp.USER32.dll_CharUpperA]
movsx eax, byte [ebp - 0x108]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1013ac66
leave
ret 4
Function at 0x1006c9a3
Capabilities:
Get file system object information

Disassembly:
push 0x394
mov eax, 0x1015d74b
call fcn.1013b550
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3a0], edi
test ecx, ecx
je 0x1006cb3a
mov eax, dword [ebp + 0x10]
xor esi, esi
sub eax, esi
je 0x1006cb0c
sub eax, 1
je 0x1006ca22
sub eax, 1
je 0x1006c9fa
sub eax, 1
je 0x1006ca22
push 0x10166c74
mov ecx, edi
call fcn.10002cb0
mov eax, edi
call fcn.1013b4fa
ret 0x10
push 0x408
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x1006c9e4
lea eax, [ebp - 0x28c]
push eax
jmp 0x1006c9e9
lea eax, [ebp - 0x114]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x1006c9e4
push esi
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x238], esi
push eax
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
call fcn.100c108d
test eax, eax
je 0x1006c9e4
call fcn.10007529
push eax
lea ecx, [ebp - 0x3a0]
call fcn.10002430
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x1006cac2
test byte [ebp - 0x21c], 0x18
jne 0x1006cae4
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
push dword [ebp - 0x220]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x224]
call dword [0x10166964]
mov ecx, ebx
call esi
jmp 0x1006cae4
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
lea ecx, [ebp - 0x234]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x10166964]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x3a0]
add eax, 0xfffffff0
push eax
call fcn.10004ae0
pop ecx
mov ecx, dword [ebp - 0x3a0]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.100028f0
jmp 0x1006c9f0
push 0x208
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x1006c9e4
lea eax, [ebp - 0x390]
jmp 0x1006ca1f
call fcn.10006f15
int3

Function at 0x1006cccd
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.10111ad4
call fcn.10015d98
cmp dword [eax + 0x14], 0
jne 0x1006cce8
mov ecx, esi
pop esi
jmp fcn.1006bff2
pop esi
ret

Function at 0x10073cab
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 0x10073cc4
call fcn.10015d44
mov esi, dword [eax + 0xc]
push 0x10171548
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x10073d06
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10073d06
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x10073d06
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.10073d0f
jmp 0x10073d08
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1009cf61
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 0x1009d0f4
je 0x1009d11a
cmp eax, 0xa1
jb 0x1009d158
cmp eax, 0xa2
jbe 0x1009d11a
cmp eax, 0xa3
jbe 0x1009d158
cmp eax, 0xa5
jbe 0x1009d11a
cmp eax, 0xa6
jbe 0x1009d158
cmp eax, 0xa8
jbe 0x1009d11a
cmp eax, 0x100
jne 0x1009d158
cmp dword [edi + 0xc0], 0xffffffff
je 0x1009d11a
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1009d11a
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x1009d049
sub eax, 1
jne 0x1009d11a
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x1009d038
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 [0x10166964]
mov ecx, edi
call esi
test eax, eax
jne 0x1009d095
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x1009d00e
jmp 0x1009d172
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x1009d172
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 [0x10166964]
mov ecx, edi
call esi
test eax, eax
jne 0x1009d095
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x1009d060
jmp 0x1009d172
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x10166964]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x10166964]
mov ecx, edi
call esi
mov ecx, eax
call fcn.10005d80
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x10166964]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x1009d172
cmp eax, 0x200
jb 0x1009d158
cmp eax, 0x202
jbe 0x1009d11a
cmp eax, 0x203
jbe 0x1009d158
cmp eax, 0x205
jbe 0x1009d11a
add eax, 0xfffffdf9
cmp eax, 1
ja 0x1009d158
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x1009d139
cmp dword [eax + 0x20], ebx
je 0x1009d139
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 0xf8]
test eax, eax
je 0x1009d158
cmp dword [eax + 0x20], ebx
je 0x1009d158
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esi + 4], 0x203
jne 0x1009d177
lea eax, [edi + 0x2250]
test eax, eax
je 0x1009d16e
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x1009d177
xor eax, eax
inc eax
jmp 0x1009d17f
push esi
mov ecx, edi
call fcn.1009757f
pop edi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push esi
mov esi, ecx
call fcn.10001c00
call fcn.10015d98
cmp dword [eax + 0x14], 0
jne 0x100b958a
mov ecx, esi
pop esi
jmp fcn.100b8de3
pop esi
ret
Function at 0x100c0f0b
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x101b1e38]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x128
xor edi, edi
push edi
push esi
call fcn.1013c7b0
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.10142b3b
push eax
call fcn.100058c4
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x1016bcb4]
je 0x100c1075
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 0x100c1089
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x100c1089
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 0x100c0fa4
mov eax, edi
jmp 0x100c0fd3
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x100c0fc1
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.100c0d06
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x28]
jmp 0x100c0fca
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
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.100c11cb
test eax, eax
je 0x100c0ff8
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.100c0b92
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x100c0ffc
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.100c11cb
test eax, eax
je 0x100c1023
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.100c0b92
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x100c1027
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.100c11cb
test eax, eax
je 0x100c104f
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.100c0b92
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x100c1051
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x100c1063
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x100c1075
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.1013ac66
leave
ret 4
xor eax, eax
jmp 0x100c1078
Function at 0x100d7fba
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.1014ada0
pop ecx
test eax, eax
jne 0x100d7ffc
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.100149aa
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100d7fc2
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret