joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fa1b6
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x32c0
call fcn.00405ecb
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x3284], eax
mov dword [ebp - 0x3280], ebx
cmp dword [eax + 0x1a0], ebx
je 0x4fa361
mov eax, dword [eax + 0x48]
mov ecx, dword [eax]
lea edx, [ebp - 0x3280]
push edx
push 0x667884
push 0x670254
push eax
call dword [ecx + 0xf4]
test eax, eax
js 0x4fa351
xor eax, eax
mov esi, 0x1046
push esi
mov word [ebp - 0x1054], ax
lea eax, [ebp - 0x1052]
push ebx
push eax
call fcn.00402394
mov eax, dword [ebp - 0x3280]
mov ecx, dword [eax]
add esp, 0xc
mov edi, 0x824
push edi
lea edx, [ebp - 0x1054]
push edx
push eax
call dword [ecx + 0x14]
push 0x3c
lea eax, [ebp - 0x32c0]
push ebx
push eax
call fcn.00402394
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0x30e4], ax
lea eax, [ebp - 0x30e2]
push ebx
push eax
mov dword [ebp - 0x32c0], 0x3c
call fcn.00402394
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0x209c], ax
lea eax, [ebp - 0x209a]
push ebx
push eax
call fcn.00402394
lea eax, [ebp - 0x30e4]
mov dword [ebp - 0x32b0], eax
lea eax, [ebp - 0x209c]
mov dword [ebp - 0x3294], eax
lea eax, [ebp - 0x1054]
add esp, 0xc
mov dword [ebp - 0x32ac], edi
mov dword [ebp - 0x3290], edi
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4fa2c7
sub eax, ecx
lea ecx, [ebp - 0x32c0]
push ecx
sar eax, 1
push ebx
push eax
lea eax, [ebp - 0x1054]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x4fa30b
cmp dword [ebp - 0x32b4], 3
je 0x4fa351
cmp dword [ebp - 0x32b4], 4
je 0x4fa351
cmp dword [ebp - 0x32b4], 1
je 0x4fa351
lea edi, [ebp - 0x327c]
call fcn.005048c4
push 0x20
push 0x63814c
push 0x6704c4
mov esi, edi
call fcn.005049f8
mov eax, dword [ebp - 0x3284]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_BringWindowToTop]
call fcn.0050498b
mov eax, dword [ebp - 0x3280]
cmp eax, ebx
je 0x4fa34d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x4fa364
mov eax, dword [ebp - 0x3280]
cmp eax, ebx
je 0x4fa361
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret 4
Function at 0x4fa375
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x4fa397
xor eax, eax
jmp 0x4fa483
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x4fa3aa
xor eax, eax
inc eax
jmp 0x4fa483
and dword [ebp - 0x214], 0
mov eax, ebx
push esi
mov esi, ebx
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4fa3b9
sub eax, ecx
sar eax, 1
cmp eax, 0x104
jbe 0x4fa3d6
xor eax, eax
jmp 0x4fa482
xor eax, eax
push edi
cmp ax, word [ebx]
je 0x4fa47b
push 0x6403a4
push esi
call fcn.005e8146
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4fa408
push 0x6377d4
push esi
call fcn.005e8146
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4fa47b
mov esi, edi
sub esi, ebx
sar esi, 1
test esi, esi
jle 0x4fa46d
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00402394
push esi
push ebx
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.004190f0
add esp, 0x1c
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x4fa467
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x214], 1
cmp eax, 0xb7
je 0x4fa46d
mov dword [ebp - 0x214], esi
lea esi, [edi + 2]
xor eax, eax
cmp ax, word [esi]
jne 0x4fa3e2
mov eax, dword [ebp - 0x214]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret 4

Function at 0x4fb3d3
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00402394
push 0x2454
push 0
push esi
call fcn.00402394
lea eax, [esi + 8]
mov dword [ebp - 0x38], eax
lea eax, [esi + 0x2148]
mov dword [ebp - 0x2c], eax
lea eax, [esi + 0x48]
mov dword [ebp - 0x10], eax
mov eax, 0x800
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [esi + 0x2348]
lea ecx, [esi + 0x1048]
mov dword [ebp - 0x20], eax
mov eax, 0x80
mov dword [ebp - 8], ecx
lea ecx, [esi + 0x2048]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
add esp, 0x18
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 0x20
mov dword [ebp - 0x28], 0x100
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4fb457
sub eax, ecx
lea ecx, [ebp - 0x3c]
push ecx
push 0x10000000
sar eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x4fb4b3
mov eax, dword [ebp - 0x30]
cmp eax, 3
je 0x4fb48f
cmp eax, 4
je 0x4fb48f
cmp eax, 1
jne 0x4fb4b3
mov cx, word [ebp - 0x24]
and dword [esi + 0x2448], 0
and dword [esi + 0x244c], 0
or dword [esi + 0x2450], 0xffffffff
mov dword [esi + 4], eax
xor eax, eax
mov word [esi], cx
inc eax
jmp 0x4fb4b5
xor eax, eax
leave
ret 4
Function at 0x4fb6dd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x208
push esi
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00402394
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x41c]
push eax
push str.Path
xor ebx, ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
inc ebx
push 0x80000002
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x420], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x4fb74a
mov eax, ebx
jmp 0x4fb7b3
push edi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x418]
call fcn.004243de
push 0xc
push str.360safe.exe
lea eax, [ebp - 0x418]
call fcn.00449618
push esi
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00402394
mov esi, dword [ebp - 0x418]
add esp, 0xc
lea edi, [ebp - 0x20c]
call fcn.00569ea3
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4fb797
sub eax, ecx
sar eax, 1
jne 0x4fb7c1
lea eax, [esi - 0x10]
call fcn.0040ace0
mov eax, ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret
lea eax, [ebp - 0x20c]
push str.9.0.0.0
push eax
call fcn.004d2b68
pop ecx
pop ecx
test eax, eax
js 0x4fb7e6
mov edi, ebx
lea eax, [esi - 0x10]
call fcn.0040ace0
mov eax, edi
jmp 0x4fb7b2
xor edi, edi
jmp 0x4fb7da
Function at 0x501585
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
push ebx
push esi
push 0x60
push eax
call dword [ecx + 0x24]
xor eax, eax
mov dword [ebp - 4], eax
push ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, esp
mov dword [eax], str.NEW_SKIN
push ecx
mov eax, esp
lea esi, [ebp - 0xc]
mov dword [eax], str.SKIN
call fcn.0043affa
push dword [ebp - 8]
push dword [0x6d08a8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0xc]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [0x6d200c]
mov edx, dword [ecx]
lea esi, [ebp - 4]
push esi
mov esi, 0x64fea0
push esi
push ebx
push eax
push 0x670ee8
push ecx
call dword [edx + 0x14]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
lea eax, [edi + 0x30]
push eax
push esi
push str.root
push ecx
call dword [edx + 0xb4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea ebx, [edi + 0x34]
push ebx
push esi
push str.rootgrid
push eax
call dword [ecx + 0xb4]
mov eax, dword [ebx]
mov ecx, dword [eax]
xor esi, esi
push esi
push 0x392
push eax
call dword [ecx + 0x78]
cmp dword [ebx], esi
je 0x501651
lea esi, [ebp - 0x14]
mov eax, ebx
call fcn.004e39a5
mov ecx, dword [eax]
mov dword [edi + 0xc8], ecx
mov eax, dword [eax + 4]
mov dword [edi + 0xcc], eax
xor esi, esi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push esi
push dword [edi + 0x28]
push 0x1450
push eax
call dword [ecx + 0x44]
mov eax, dword [edi + 0x30]
mov ecx, dword [eax]
push esi
push dword [edi + 0x5c]
push 0x13e5
push eax
call dword [ecx + 0x44]
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
push 2
push eax
call dword [ecx + 0x1c]
mov eax, dword [edi + 0x24]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
push esi
push 0xa
push 0x64
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [ebp - 0xc], esi
je 0x5016a8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x5016b5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x50829b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa7c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.00507d27
and dword [ebp - 0xa60], 0
mov ebx, eax
xor eax, eax
lea edi, [ebp - 0xa5c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xa60]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0xa54]
sub ecx, dword [ebp - 0xa5c]
mov eax, dword [ebp - 0xa58]
sub eax, dword [ebp - 0xa60]
sub ecx, 0x28
push ecx
sub eax, 0x28
push eax
mov ecx, ebx
call fcn.00507e0d
mov dword [ebp - 0xa64], eax
xor eax, eax
mov ebx, 0x208
push ebx
push eax
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push eax
call fcn.00402394
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
mov esi, 0x104
push esi
call edi
xor eax, eax
push ebx
push eax
mov word [ebp - 0x638], ax
lea eax, [ebp - 0x636]
push eax
call fcn.00402394
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x428]
push eax
push str._s_d.bmp
lea eax, [ebp - 0x638]
push esi
push eax
call fcn.004e147f
mov ecx, dword [ebp - 0xa64]
add esp, 0x14
lea eax, [ebp - 0x638]
push eax
call fcn.00508178
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.00402394
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
push esi
call edi
xor eax, eax
push ebx
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00402394
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x428]
push eax
push str._s_d.ini
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004e147f
lea eax, [ebp - 0xa68]
add esp, 0x14
push eax
mov dword [ebp - 0xa78], 0x671590
mov dword [ebp - 0xa74], 0x671628
mov dword [ebp - 0xa70], str._aN_aN
mov dword [ebp - 0xa6c], 0x671750
call fcn.004432bd
and dword [ebp - 0xa68], 3
mov eax, dword [ebp - 0xa68]
pop ecx
push dword [ebp + eax*4 - 0xa78]
lea eax, [ebp - 0xa64]
call fcn.004243de
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xa64]
mov edi, str.Share
push str.Text_Line1
push edi
call esi
mov eax, dword [ebp - 0xa64]
add eax, 0xfffffff0
call fcn.0040ace0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x638]
push eax
push str.Pic_File1
push edi
call esi
lea eax, [ebp - 0x218]
push eax
push 0x665524
push str.DeletePic
push edi
call esi
lea eax, [ebp - 0x218]
push eax
push 0x665524
push str.DeleteIni
push edi
call esi
xor eax, eax
push 0x410
push eax
mov word [ebp - 0xa50], ax
lea eax, [ebp - 0xa4e]
push eax
call fcn.00402394
add esp, 0xc
push 1
mov esi, 0x6d09e0
push esi
call fcn.004910a5
push esi
call fcn.004968bb
push eax
lea eax, [ebp - 0x218]
push eax
push str.__Share:Ini:_s____Share:Handle:_d____Share:To:_d_
lea eax, [ebp - 0xa50]
push ebx
push eax
call fcn.00508575
lea eax, [ebp - 0xa50]
push eax
call fcn.005085b5
add esp, 0x1c
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret
Function at 0x508ae9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push ebx
lea ebx, [edi + 0x38]
mov eax, dword [ebx]
push esi
xor esi, esi
cmp eax, esi
je 0x508b07
mov dword [ebx], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ecx
mov eax, esp
mov dword [eax], str.NEW_SKIN
push ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov eax, esp
lea esi, [esp + 0x20]
mov dword [eax], str.SKIN
call fcn.0043affa
push dword [esp + 0x1c]
push dword [0x6d08a8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push esi
push eax
push dword [edi + 0x34]
call fcn.004e3593
mov ecx, dword [ebx]
mov eax, dword [edi + 0x24]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x18]
xor eax, eax
push eax
push dword [edi + 0x40]
push dword [edi + 0x3c]
push eax
push eax
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea ecx, [edi + 4]
call fcn.004a513c
mov eax, edi
call fcn.00508caa
mov eax, dword [ebx]
and dword [esp + 0x14], 0
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x64fea0
push str.Title
push eax
call dword [ecx + 0xb4]
test eax, eax
js 0x508bdb
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push 0x3e9
push eax
call dword [ecx + 0x28]
push dword [esp + 0x28]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebx]
and dword [esp + 0x10], 0
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
mov esi, 0x64fea0
push esi
push 0x67191c
push eax
call dword [ecx + 0xb4]
test eax, eax
js 0x508c13
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
push dword [edi + 0x58]
push 0x13a3
push eax
call dword [ecx + 0x44]
mov eax, dword [ebx]
and dword [esp + 0xc], 0
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push esi
push str.Client
push eax
call dword [ecx + 0xb4]
test eax, eax
js 0x508c51
lea esi, [esp + 0x20]
lea eax, [esp + 0xc]
call fcn.004e39a5
mov ecx, dword [eax]
mov dword [edi + 0x48], ecx
mov eax, dword [eax + 4]
mov dword [edi + 0x4c], eax
mov dword [edi + 0x50], 1
mov ebx, dword [ebx]
mov eax, dword [ebx]
push 0
push dword [edi + 0x54]
push 0x1450
push ebx
call dword [eax + 0x44]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x508c71
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x508c7f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x508c8d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [esp + 0x18], 0
je 0x508c9e
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50b051
Capabilities:
Check if file exists
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x50b0b2
and dword [ebp - 0x2b8], 0
push 0x2b0
lea eax, [ebp - 0x2b4]
push 0
push eax
call fcn.00402394
add esp, 0xc
push 0x100
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x50b0b2
mov eax, dword [ebp - 0x2b8]
jmp 0x50b0b4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403fc1
leave
ret
Function at 0x513011
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
sub eax, dword [esi + 0xb8]
sub ecx, dword [esi + 0xbc]
cdq
xor eax, edx
sub eax, edx
push edi
cmp eax, 2
jg 0x513040
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jle 0x5130fd
lea ebx, [esi + 0x24]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x78]
test eax, eax
je 0x5130fd
push dword [esi + 0xb8]
mov edi, dword [esi + 0xbc]
mov eax, esi
call fcn.00512306
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x80]
sub edx, ecx
sar edx, 2
dec edx
cmp eax, edx
ja 0x5130fd
xor edi, edi
lea eax, [ecx + eax*4]
mov eax, dword [eax]
cmp dword [esi + 0x5c], edi
je 0x5130f8
cmp eax, edi
je 0x5130f8
mov ecx, dword [esi + 0x5c]
mov edx, dword [ecx]
push eax
mov dword [0x6b7e90], 1
call dword [edx + 0x20]
push dword [esi + 4]
mov dword [0x6b7e90], edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5130f8
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x5130f8
mov esi, ebx
jmp 0x5130ce
mov esi, eax
cmp eax, edi
je 0x5130d1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp + 8], edi
mov eax, dword [esi]
lea ecx, [ebp + 8]
push ecx
push esi
call dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x5130c2
push dword [esi - 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x5130f8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
jmp 0x5130ff
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x513513
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x51352f
xor eax, eax
jmp 0x513671
push ebx
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00513fda
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x7c]
jmp 0x513632
mov eax, dword [edi]
test eax, eax
je 0x513556
lea esi, [eax - 0x24]
mov dword [ebp - 0xc], esi
jmp 0x51355d
and dword [ebp - 0xc], 0
mov esi, dword [ebp - 0xc]
lea eax, [esi + 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
test eax, eax
je 0x51362c
mov eax, dword [esi + 0x40]
sub eax, 0x10
call fcn.0040ae97
lea ebx, [eax + 0x10]
cmp dword [ebx - 0xc], 0
mov dword [ebp - 4], ebx
jne 0x513592
lea eax, [ebx - 0x10]
call fcn.0040ace0
jmp 0x51362c
push 0
lea eax, [ebp + 0xc]
xor ecx, ecx
push eax
inc ecx
lea eax, [ebp - 4]
call fcn.004da81e
lea eax, [ebp + 0xc]
call fcn.00462c4e
mov edi, dword [ebp - 0x10]
lea eax, [ebp + 0xc]
push eax
mov ecx, edi
call fcn.00441a22
test eax, eax
je 0x513645
push 0x66554c
xor ecx, ecx
lea esi, [ebp - 4]
call fcn.004ef532
cmp eax, 0xffffffff
je 0x513616
mov ecx, dword [ebx - 0xc]
dec ecx
cmp eax, ecx
je 0x513616
inc eax
push eax
lea eax, [ebp - 0x14]
xor ecx, ecx
push eax
inc ecx
mov eax, esi
call fcn.004da81e
lea edi, [ebp + 0xc]
call fcn.004435b7
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040ace0
mov eax, edi
call fcn.00462c4e
mov ecx, dword [ebp - 0x10]
mov eax, edi
push eax
call fcn.00441a22
test eax, eax
je 0x513675
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040ace0
lea eax, [ebx - 0x10]
call fcn.0040ace0
mov edi, dword [ebp - 8]
mov eax, dword [ebp + 8]
add edi, 4
mov dword [ebp - 8], edi
cmp edi, dword [eax + 0x80]
jne 0x513548
xor esi, esi
jmp 0x513696
push 0
push 1
mov eax, esi
call fcn.00512774
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040ace0
lea eax, [ebx - 0x10]
call fcn.0040ace0
lea eax, [edi - 0x10]
call fcn.0040ace0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ebp - 0xc]
xor esi, esi
push 0
inc esi
push esi
call fcn.00512774
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040ace0
lea eax, [ebx - 0x10]
call fcn.0040ace0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040ace0
mov eax, esi
jmp 0x51366e
Function at 0x513e86
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [ebp + 8], edi
je 0x513f48
cmp dword [esi + 0x74], edi
je 0x513eb9
push edi
push edi
call fcn.00513e86
push 0x2c
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.00402394
add esp, 0xc
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0x30
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x513f62
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
mov dword [esp + 0x18], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x513f5f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esp + 0xc], eax
je 0x513f5f
cmp dword [esp + 0xc], edi
je 0x513f5f
cmp ebx, edi
je 0x513f5f
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x513f5f
push dword [esp + 0xc]
push edi
push 0x513e1f
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [esi + 0x74], eax
mov dword [0x6b7e98], ebx
jmp 0x513f5f
mov eax, dword [esi + 0x74]
cmp eax, edi
je 0x513f56
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [esi + 0x74], edi
mov dword [0x6b7e98], edi
xor eax, eax
inc eax
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00403fc1
mov esp, ebp
pop ebp
ret 8
Function at 0x51c854
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xa0], 0
push edi
jne 0x51c9e2
and dword [esp + 0x10], 0
xor eax, eax
lea edi, [esp + 0x14]
stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0xa8]
sub eax, dword [esp + 0x14]
push ecx
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x10], eax
lea edi, [esi + 0xa4]
fild dword [esp + 0x10]
fstp dword [esp]
call fcn.0049d6f7
mov eax, dword [edi]
sub eax, dword [esp + 0x14]
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esp]
fstp qword [esp + 0x1c]
call fcn.0049d6f7
fadd qword [esp + 0x1c]
pop ecx
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
call fcn.006033a6
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fcomp dword [0x68bf80]
fnstsw ax
test ah, 0x41
jne 0x51c9e2
xor ebx, ebx
inc ebx
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x51c9e2
cmp dword [esi + 0x18], ebx
jne 0x51c92e
push dword [esi + 0xac]
call fcn.0051d5f6
test eax, eax
je 0x51c9e2
mov eax, dword [edi]
cmp eax, dword [esp + 0x10]
jne 0x51c946
mov eax, dword [esi + 0xa8]
cmp eax, dword [esp + 0x14]
je 0x51c9e2
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x51c9e2
push dword [esi + 0xac]
push esi
call fcn.0051c9f4
push dword [esi + 0xac]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
push eax
push esi
call fcn.0051d8e8
cmp dword [esi + 0x18], 2
mov dword [esi + 0xa0], ebx
jne 0x51c9bd
xor eax, eax
lea edi, [esp + 0x1c]
stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_GetMessagePos]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [esp + 0x1c], eax
sub eax, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
sub ecx, dword [esp + 0x24]
push eax
push ecx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
lea eax, [esp + 0x18]
push eax
jmp 0x51c9be
push edi
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x14]
mov edi, esi
push dword [esi + 0xac]
call fcn.0051cb72
and dword [esi + 0xa0], 0
and dword [esi + 0x9c], 0
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00403fc1
mov esp, ebp
pop ebp
ret