joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43bd75
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 0x43bd9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43bda5
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret
lea ecx, [esi + 0xc]
call fcn.00406f68
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004411f7
int3

Function at 0x43be53
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
je 0x43be9a
push 0x597190
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43bea9
push str.MoveFileTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x43bea9
push dword [esi]
mov ecx, edi
push 2
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x595a54]
call edi
jmp 0x43beab
cmp dword [esi + 4], ebx
je 0x43bea9
pop edi
pop esi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileW]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x43c103
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x43c114
xor eax, eax
jmp 0x43c130
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 0x43c135
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.00406f68
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004411f7
int3

Function at 0x43c210
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 [0x595a54]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x43c243
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.00406f68
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004411f7
int3

Function at 0x43c318
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 0x43c343
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 0x43c349
cmp dword [ebp - 4], esi
jne 0x43c360
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.00406f68
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004411f7
lea ecx, [edi + 0xc]
call fcn.00406f68
push eax
push 0xffffffffffffffff
push 0xd
call fcn.00440e4d
int3
Function at 0x4407e1
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 0x440837
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x440810
call fcn.00425fc4
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x440825
call fcn.00425fc4
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x440837
call fcn.00425fc4
call fcn.00428738
cmp dword [eax + 0x3c], 0
je 0x44084c
push esi
mov ecx, ebx
call fcn.0043ff13
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.00440a36
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x440875
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x440881
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 0x44b673
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5ee000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040d391
mov edi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], edi
push eax
push dword [esi + 0x20]
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0x21
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x20
mov ebx, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, esi
mov dword [ebp - 0x1c], eax
call fcn.00411738
mov esi, eax
push 2
pop eax
test edi, 0x1000
je 0x44b6e8
cmp esi, 3
push eax
cmove esi, eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x44b6e5
xor eax, eax
jmp 0x44b73c
push 2
pop eax
push 0xa
pop edi
cmp esi, edi
jl 0x44b6f4
cmp esi, 0x11
jle 0x44b6f9
cmp esi, 4
jne 0x44b73a
test dword [ebp - 0x18], 0x800
jne 0x44b73c
mov eax, dword [ebp - 0x1c]
neg ebx
push ebx
neg eax
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
test dword [ebp - 0x18], 0x200
je 0x44b73a
mov eax, esi
sub eax, 4
je 0x44b77b
sub eax, 9
je 0x44b76b
sub eax, 1
je 0x44b75b
dec eax
sub eax, 1
je 0x44b74d
sub eax, 1
je 0x44b77b
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055ab65
leave
ret 8
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 8]
push 0xf
pop ecx
cmovg edi, ecx
jmp 0x44b777
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, dword [ebp - 0x10]
setl al
add eax, 0xb
jmp 0x44b73c
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x10]
push 0xc
pop eax
cmovl edi, eax
mov eax, edi
jmp 0x44b73c
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 8]
push 0xb
pop eax
push 0xf
pop edx
cmovg eax, edx
jmp 0x44b73c

Function at 0x44cbcb
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x5851af
call fcn.0055ae26
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00407a4b
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x44cc29
call fcn.00428786
cmp eax, 1
jne 0x44cc29
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.0040c58e
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00408035
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00407117
inc esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00407117
mov eax, esi
call fcn.0055adf4
ret 0x10
Function at 0x44cc50
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x5851af
call fcn.0055ae26
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00407a4b
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x44ccae
call fcn.00428786
cmp eax, 1
jne 0x44ccae
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.0040c58e
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00408035
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00407117
inc esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00407117
mov eax, esi
call fcn.0055adf4
ret 0x14
Function at 0x4528f8
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xddc
mov eax, dword [0x5ee000]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test edx, edx
je 0x452b1f
test ebx, ebx
je 0x452b1f
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
xor edi, edi
movlpd qword [ebp - 0x644], xmm0
movlpd qword [ebp - 0x63c], xmm0
movlpd qword [ebp - 0x634], xmm0
movlpd qword [ebp - 0x874], xmm0
movlpd qword [ebp - 0x86c], xmm0
movlpd qword [ebp - 0x864], xmm0
sub eax, edi
je 0x452ae8
sub eax, 1
je 0x45297b
sub eax, 1
je 0x452a4c
sub eax, 1
jne 0x452b1b
lea eax, [ebp - 0x20c]
push eax
push dword [edx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x452ae3
push edi
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004419a7
test eax, eax
je 0x452ae3
lea eax, [ebp - 0x414]
push eax
push dword [ebx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x452ade
push edi
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004419a7
test eax, eax
je 0x452ade
xor edx, edx
inc edx
cmp dword [ebp + 0x10], edx
jne 0x452aa7
test byte [ebp - 0x624], 0x10
jne 0x452ae3
test byte [ebp - 0x854], 0x10
jne 0x452a45
mov ecx, dword [ebp - 0x858]
mov eax, dword [ebp - 0x85c]
cmp dword [ebp - 0x628], ecx
ja 0x452a45
jb 0x452ae3
cmp dword [ebp - 0x62c], eax
jb 0x452ae3
cmp dword [ebp - 0x628], ecx
jb 0x452b1b
ja 0x452a45
cmp dword [ebp - 0x62c], eax
jbe 0x452b1b
mov edi, edx
jmp 0x452b1b
mov esi, 0x408
lea eax, [ebp - 0xddc]
push esi
push 0x2b4
push eax
push edi
push dword [edx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x452b1b
push esi
push 0x2b4
lea eax, [ebp - 0xb28]
push eax
push edi
push dword [ebx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x452b1b
lea eax, [ebp - 0x914]
push eax
lea eax, [ebp - 0xbc8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, eax
jmp 0x452b1b
mov ecx, dword [ebp - 0x868]
mov eax, dword [ebp - 0x86c]
cmp dword [ebp - 0x638], ecx
jg 0x452a45
jl 0x452ae3
cmp dword [ebp - 0x63c], eax
jb 0x452ae3
cmp dword [ebp - 0x638], ecx
jl 0x452b1b
jg 0x452a45
cmp dword [ebp - 0x63c], eax
jmp 0x452a3f
xor edi, edi
inc edi
jmp 0x452b1b
or edi, 0xffffffff
jmp 0x452b1b
mov ecx, dword [edx]
push dword [ebx + 8]
push dword [edx + 8]
mov eax, dword [ecx]
push edi
push ecx
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x595a54]
call esi
test eax, eax
jns 0x452b18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055ab65
leave
ret 0xc
movsx edi, ax
mov eax, edi
jmp 0x452b07
call fcn.00419557
int3
Function at 0x453105
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x5ee000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x453124
or eax, 0xffffffff
jmp 0x453150
push esi
push 0xc009
push 0x2b4
lea ecx, [ebp - 0x2b8]
or esi, 0xffffffff
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
cmovne esi, dword [ebp - 0x2b4]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055ab65
leave
ret 8

Function at 0x45315e
Capabilities:
Get file system object information

Disassembly:
push 0x6f8
mov eax, 0x5885a5
call fcn.0055ae59
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x700], edi
test ecx, ecx
je 0x4532e6
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x4532b8
sub eax, 1
je 0x4531dd
sub eax, 1
je 0x4531b5
sub eax, 1
je 0x4531dd
push 0x5960f0
mov ecx, edi
call fcn.00407a4b
mov eax, edi
call fcn.0055ae08
ret 0x10
push 0x408
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x45319f
lea eax, [ebp - 0x4e8]
push eax
jmp 0x4531a4
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x45319f
push esi
lea eax, [ebp - 0x448]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x218]
movlpd qword [ebp - 0x448], xmm0
push eax
movlpd qword [ebp - 0x440], xmm0
movlpd qword [ebp - 0x438], xmm0
call fcn.004419a7
test eax, eax
je 0x45319f
lea ecx, [ebp - 0x700]
call fcn.00407af5
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x45326e
test byte [ebp - 0x428], 0x18
jne 0x453290
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
push dword [ebp - 0x42c]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x430]
call dword [0x595a54]
mov ecx, ebx
call esi
jmp 0x453290
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
lea ecx, [ebp - 0x440]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x595a54]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x700]
add eax, 0xfffffff0
push eax
call fcn.004084e8
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.00407117
jmp 0x4531ab
push 0x208
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x45319f
lea eax, [ebp - 0x6f0]
jmp 0x4531da
call fcn.00419557
int3

Function at 0x45344b
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.004687a2
call fcn.0042878c
cmp dword [eax + 0x14], 0
jne 0x453466
mov ecx, esi
pop esi
jmp fcn.00452760
pop esi
ret
Function at 0x45357d
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.0040cf81
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 0x4535b9
call fcn.0045379a
mov dword [esi + 0xc], 1
jmp 0x4535be
call fcn.0045379a
cmp dword [esi], 0
je 0x453609
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 0x4535e4
push edi
call fcn.00411b98
lea ecx, [edi + 1]
push ecx
jmp 0x4535f3
push 0xff
call fcn.00409583
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040bd5d
pop edi
jmp 0x45362d
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 0x45362d
push dword [esi]
push dword [ebp - 4]
call fcn.0042746e
pop esi
leave
ret 0xc

Function at 0x4536f1
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.0045379a
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x453739
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00411b98
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040bd5d
jmp 0x453744
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0042746e
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x45455f
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x4546a4
mov ecx, 0x5f55a0
call fcn.004280ac
mov esi, eax
test esi, esi
je 0x454699
mov ebx, dword [ebp + 8]
xor eax, eax
cmp word [esi + 8], ax
jne 0x454664
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x454625
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, 0x3ff
and ax, cx
add ecx, 0xfffffffd
cmp ax, 0x11
jne 0x4545ef
push 0x5a17e8
call fcn.004546e2
pop ecx
mov ecx, 0x3fc
test eax, eax
je 0x4545ef
cmp dword [ebp + 0x10], 0
lea eax, [ecx - 0xe]
push 0xfc11
cmovne eax, ecx
push eax
push 5
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x454609
mov ecx, 0x3fc
cmp dword [ebp + 0x10], 0
mov eax, 0x3ee
push 5
cmovne eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x454625
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x454628
push edi
push ebx
push eax
call fcn.0043d224
add esp, 0xc
jmp 0x454628
mov edi, dword [ebp + 0xc]
mov eax, dword [ebx]
push 2
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.00427b1d
pop ecx
pop ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x45469e
mov eax, dword [ebx]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.00429a75
mov ax, word [edi]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
mov edi, dword [esi + 4]
test edi, edi
je 0x454672
push edi
call fcn.005668e8
pop ecx
push eax
push edi
mov ecx, ebx
call fcn.00409aff
mov eax, dword [ebp + 0xc]
mov edx, 0xffff
movzx ecx, word [esi + 8]
pop edi
pop esi
mov word [eax], cx
xor eax, eax
cmp cx, dx
pop ebx
setne al
pop ebp
ret 0xc
call fcn.00419557
call fcn.00419571
int3
Function at 0x4655e2
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x5ee000]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x465641
cmp dword [ebp + 0xc], 0
mov edx, 0xc009
mov eax, 0x400b
cmove eax, edx
push eax
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
or ecx, 0xffffffff
test eax, eax
cmovne ecx, dword [ebp - 0x2b4]
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055ab65
leave
ret 8
call fcn.00419557
int3

Function at 0x465647
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x5ee000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2bc], esi
test eax, eax
je 0x4656b1
push 0x208
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, esi
test eax, eax
je 0x465696
lea eax, [ebp - 0x2ac]
push eax
jmp 0x46569b
push 0x5a4a70
call fcn.00407a4b
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0055ab65
leave
ret 8
call fcn.00419557
int3

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

Disassembly:
push esi
mov esi, ecx
call fcn.00403420
call fcn.0042878c
cmp dword [eax + 0x14], 0
jne 0x465baa
mov ecx, esi
pop esi
jmp fcn.004653f2
pop esi
ret
Function at 0x46fd68
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 0x46fd81
call fcn.00428738
mov esi, dword [eax + 0xc]
push 0x5a5da4
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x46fdc3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46fdc3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x46fdc3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0046fdcc
jmp 0x46fdc5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x497615
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 0x49779c
je 0x4977c3
sub eax, 0xa1
je 0x4977c3
sub eax, 1
je 0x4977c3
dec eax
sub eax, 1
je 0x4977c3
sub eax, 1
je 0x4977c3
dec eax
sub eax, 1
je 0x4977c3
sub eax, 1
je 0x4977c3
sub eax, 0x58
jne 0x497801
cmp dword [edi + 0xc0], 0xffffffff
je 0x4977c3
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4977c3
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x4976f1
sub eax, 1
jne 0x4977c3
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x4976e0
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 [0x595a54]
mov ecx, edi
call esi
test eax, eax
jne 0x49773d
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x4976b6
jmp 0x49781b
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x49781b
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 [0x595a54]
mov ecx, edi
call esi
test eax, eax
jne 0x49773d
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x497708
jmp 0x49781b
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x595a54]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x595a54]
mov ecx, edi
call esi
mov ecx, eax
call fcn.0040d8cf
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x595a54]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x49781b
sub eax, 0x200
je 0x4977c3
sub eax, 1
je 0x4977c3
sub eax, 1
je 0x4977c3
dec eax
sub eax, 1
je 0x4977c3
sub eax, 1
je 0x4977c3
dec eax
sub eax, 1
je 0x4977c3
sub eax, 1
jne 0x497801
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x4977e2
cmp dword [eax + 0x20], ebx
je 0x4977e2
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 0x497801
cmp dword [eax + 0x20], ebx
je 0x497801
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 4], 0x203
jne 0x497820
lea eax, [edi + 0x2250]
test eax, eax
je 0x497817
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x497820
xor eax, eax
inc eax
jmp 0x497828
push esi
mov ecx, edi
call fcn.0048f778
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x498cce
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 0x498cfb
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x498d10
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x498d10
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.00411b4a
jmp 0x498de1
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00411b4a
cmp eax, edi
jne 0x498deb
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 0x498d7d
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 0x498dc1
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x498deb
cmp eax, 0x205
je 0x498deb
cmp eax, 0x201
je 0x498deb
cmp eax, 0x204
je 0x498deb
cmp eax, 0x100
jne 0x498da9
cmp dword [ebp - 0x18], 0x1b
je 0x498deb
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 0x498de1
ja 0x498dda
cmp eax, dword [0x5f63f4]
jbe 0x498de1
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x498d32
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4