joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42665f
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x5731cc
call fcn.0054f364
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov edi, dword [ebp + 0xc]
push dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
push edi
push ebx
call fcn.00426750
and dword [ebp - 4], 0
mov dword [esi], vtable.CHttpConnection.0
call fcn.0041a104
push eax
lea ecx, [esi + 0x18]
call fcn.00402020
mov byte [ebp - 4], 1
test edi, edi
jne 0x4266a7
xor eax, eax
jmp 0x4266ae
push edi
call fcn.005583a4
pop ecx
push eax
push edi
lea ecx, [esi + 0x18]
call fcn.00405120
push dword [esi + 8]
push dword [ebp + 0x10]
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
push dword [ebx + 8]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
je 0x4266f2
push dword [esi + 0xc]
mov ecx, 0x5e0bc4
push eax
call fcn.00427805
mov eax, esi
call fcn.0054f32d
ret 0x1c
push 0
push dword [esi + 8]
call fcn.00426e0b
int3

Function at 0x42686f
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x426898
call fcn.0042574f
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
je 0x4268c5
push esi
push eax
mov ecx, 0x5e0bc4
call fcn.00427805
mov eax, esi
pop esi
pop ebp
ret 0x18
push 0
push dword [esi + 4]
call fcn.00426e0b
int3

Function at 0x427a6b
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.00424902
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 0x427aa7
call fcn.00427c86
mov dword [esi + 0xc], 1
jmp 0x427aac
call fcn.00427c86
cmp dword [esi], 0
je 0x427af5
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x427acf
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00415593
jmp 0x427ae0
push 0xff
mov ecx, esi
call fcn.00402280
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00415084
jmp 0x427b19
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 0x427b19
push dword [esi]
push dword [ebp - 4]
call fcn.0042a12e
pop esi
leave
ret 0xc
Function at 0x427bdd
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.00427c86
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x427c25
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00415593
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00415084
jmp 0x427c30
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0042a12e
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x428ccb
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x5732cf
call fcn.0054f3cf
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 0x428dcd
cmp edi, dword [ebx + 0xc]
jge 0x428dcd
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x428d22
cmp edi, dword [esi + 8]
jl 0x428dbb
cmp dword [ebp + 0xc], 0
je 0x428dbb
xor edi, edi
jmp 0x428d54
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.004287af
mov esi, eax
test esi, esi
je 0x428d3c
mov dword [esi], vtable.CThreadData.0
jmp 0x428d3e
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x14]
mov dword [esi + ecx], eax
mov dword [ebx + 0x14], esi
cmp dword [esi + 0xc], edi
jne 0x428d6f
push 4
push dword [ebx + 0xc]
call fcn.00419f98
pop ecx
pop ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x428d87
push 2
push 4
push dword [ebx + 0xc]
call fcn.00419f98
pop ecx
pop ecx
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x428df4
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.005516b0
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 0x428dcd
cmp edi, dword [esi + 8]
jge 0x428dcd
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0054f32d
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00419c2c
int3
Function at 0x43b9b6
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 0x43b9cf
call fcn.0042574f
mov esi, dword [eax + 0xc]
push 0x587430
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x43ba11
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x43ba11
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x43ba11
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0043ba1a
jmp 0x43ba13
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x498e62
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 0x498f16
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x498f12
mov eax, dword [eax + 0x20]
test eax, eax
je 0x498f12
cmp dword [ebx], eax
jne 0x498f12
mov eax, dword [ebx + 4]
sub eax, 1
je 0x498ee1
sub eax, 1
je 0x498eaf
sub eax, 1
jne 0x498f12
mov edi, 0x428e
jmp 0x498ee6
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x498ee6
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x580a08]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x498ee6
add edi, 3
jmp 0x498ee6
mov edi, 0x3ea0
push edi
call fcn.004265b1
test eax, eax
je 0x498f16
push edi
push eax
mov ecx, 0x5e1ff4
call fcn.00404cf0
test eax, eax
je 0x498f16
mov eax, dword [0x5e1ff4]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x498f0b
call fcn.00419c12
int3

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5d9ff4]
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 0x4a16b7
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x4a16e4
cmp dword [0x5e0d0c], 0
jne 0x4a16e4
lea eax, [esi - 0x41]
cmp eax, 0x19
jbe 0x4a16e0
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jb 0x4a16e0
push esi
call fcn.0055fdc5
pop ecx
jmp 0x4a1757
mov eax, esi
jmp 0x4a1757
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.005516b0
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x4a1767
call fcn.0041c8ea
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
push 2
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push esi
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]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0054eba5
leave
ret 4
call fcn.00419c12
int3
Function at 0x4c0ece
Capabilities:
Get disk information

Disassembly:
push 0x268
mov eax, 0x579590
call fcn.0054f398
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x264], eax
test eax, eax
je 0x4c1095
test ebx, ebx
je 0x4c1095
lea ecx, [ebp - 0x268]
mov esi, 0x104
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x4c0f3e
push 0xffffffffffffffff
push ebx
push esi
push dword [ebp - 0x264]
call fcn.005593d1
push eax
call fcn.00404c60
add esp, 0x14
push ebx
push edi
call fcn.004c0e8c
xor eax, eax
call fcn.0054f342
ret 0xc
cmp eax, esi
jb 0x4c0f60
test edi, edi
je 0x4c0f34
push ebx
mov dword [edi + 8], 3
call fcn.005583a4
pop ecx
push eax
push ebx
lea ecx, [edi + 0x10]
call fcn.00405120
jmp 0x4c0f34
call fcn.0041a104
push eax
lea ecx, [ebp - 0x26c]
call fcn.00402020
and dword [ebp - 4], 0
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x264]
call fcn.004c07f8
mov esi, dword [ebp - 0x26c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x4c1060
xor ecx, ecx
lea eax, [ebp - 0x270]
push ecx
push ecx
push eax
lea eax, [ebp - 0x274]
push eax
push ecx
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x4c0fd0
push ebx
push edi
call fcn.004c0e8c
lea ecx, [esi - 0x10]
call fcn.00402130
jmp 0x4c0f34
mov eax, dword [ebp - 0x270]
test al, 2
jne 0x4c0fec
push dword [ebp - 0x264]
call dword [sym.imp.USER32.dll_CharUpperW]
mov eax, dword [ebp - 0x270]
test al, 4
jne 0x4c1060
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4c1060
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x4c0fbc
cmp eax, dword [ebp - 0x264]
jbe 0x4c0fbc
lea eax, [ebp - 0x234]
push eax
call fcn.005583a4
mov edx, dword [ebp - 0x268]
sub edx, dword [ebp - 0x264]
sar edx, 1
pop ecx
add eax, edx
mov ecx, 0x104
cmp eax, ecx
jge 0x4c1070
lea eax, [ebp - 0x234]
sub ecx, edx
push eax
push ecx
push dword [ebp - 0x268]
call fcn.00559186
push eax
call fcn.00404c60
add esp, 0x10
lea ecx, [esi - 0x10]
call fcn.00402130
xor eax, eax
inc eax
jmp 0x4c0f36
test edi, edi
je 0x4c0fc3
push ebx
mov dword [edi + 8], 3
call fcn.005583a4
pop ecx
push eax
push ebx
lea ecx, [edi + 0x10]
call fcn.00405120
jmp 0x4c0fc3
call fcn.00419c12
int3
Function at 0x4c34f3
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 0x4c3549
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4c3522
call fcn.0041abfa
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4c3537
call fcn.0041abfa
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4c3549
call fcn.0041abfa
call fcn.0042574f
cmp dword [eax + 0x3c], 0
je 0x4c355e
push edi
mov ecx, ebx
call fcn.004c2c22
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004c3744
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4c3587
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4c3593
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 0x4c4c4d
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5d9ff4]
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.005516b0
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.005593d1
push eax
call fcn.00404c60
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x595840]
je 0x4c4db7
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 0x4c4dcb
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4c4dcb
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 0x4c4ce6
mov eax, edi
jmp 0x4c4d15
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4c4d03
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.004c49f2
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x28]
jmp 0x4c4d0c
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
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.004c4f0e
test eax, eax
je 0x4c4d3a
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.00426902
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4c4d3e
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.004c4f0e
test eax, eax
je 0x4c4d65
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.00426902
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4c4d69
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.004c4f0e
test eax, eax
je 0x4c4d91
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.00426902
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x4c4d93
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x4c4da5
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4c4db7
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.0054eba5
leave
ret 4
xor eax, eax
jmp 0x4c4dba

Function at 0x4d7a61
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
cmp dword [eax - 0xc], 0
je 0x4d7a97
call fcn.00406669
test eax, eax
je 0x4d7a79
mov eax, dword [eax + 0x20]
push 1
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 0x14]
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jb 0x4d7a97
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4e689d
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 0x4e6a30
je 0x4e6a56
cmp eax, 0xa1
jb 0x4e6a94
cmp eax, 0xa2
jbe 0x4e6a56
cmp eax, 0xa3
jbe 0x4e6a94
cmp eax, 0xa5
jbe 0x4e6a56
cmp eax, 0xa6
jbe 0x4e6a94
cmp eax, 0xa8
jbe 0x4e6a56
cmp eax, 0x100
jne 0x4e6a94
cmp dword [edi + 0xc0], 0xffffffff
je 0x4e6a56
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x4e6a56
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x4e6985
sub eax, 1
jne 0x4e6a56
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x4e6974
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 [0x580a08]
mov ecx, edi
call esi
test eax, eax
jne 0x4e69d1
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x4e694a
jmp 0x4e6aae
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x4e6aae
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 [0x580a08]
mov ecx, edi
call esi
test eax, eax
jne 0x4e69d1
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x4e699c
jmp 0x4e6aae
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x580a08]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x580a08]
mov ecx, edi
call esi
mov ecx, eax
call fcn.00425200
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x580a08]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x4e6aae
cmp eax, 0x200
jb 0x4e6a94
cmp eax, 0x202
jbe 0x4e6a56
cmp eax, 0x203
jbe 0x4e6a94
cmp eax, 0x205
jbe 0x4e6a56
add eax, 0xfffffdf9
cmp eax, 1
ja 0x4e6a94
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x4e6a75
cmp dword [eax + 0x20], ebx
je 0x4e6a75
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 0x4e6a94
cmp dword [eax + 0x20], ebx
je 0x4e6a94
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 4], 0x203
jne 0x4e6ab3
lea eax, [edi + 0x2250]
test eax, eax
je 0x4e6aaa
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x4e6ab3
xor eax, eax
inc eax
jmp 0x4e6abb
push esi
mov ecx, edi
call fcn.00477b21
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x5115f3
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x575002
call fcn.0054f364
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x5116d9
mov edi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x5116d9
cmp edi, 0x43
je 0x511638
cmp edi, 0x2d
jne 0x5116d9
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x5116d9
call dword [sym.imp.USER32.dll_EmptyClipboard]
call fcn.0041a104
push eax
lea ecx, [ebp - 0x10]
call fcn.00402020
movzx eax, byte [esi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [esi + 0xe5]
push eax
movzx eax, byte [esi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push 0x5a15a8
push eax
call fcn.004023d0
mov esi, dword [ebp - 0x10]
add esp, 0x14
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00402130
mov esi, dword [ebp - 0x14]
push ebx
mov ecx, esi
call fcn.0041db79
call fcn.0054f32d
ret 4
Function at 0x514cc7
Capabilities:
Get file system object information

Disassembly:
push 0x6f4
mov eax, 0x57c207
call fcn.0054f398
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x700], edi
test ecx, ecx
je 0x514e5e
mov eax, dword [ebp + 0x10]
xor esi, esi
sub eax, esi
je 0x514e30
sub eax, 1
je 0x514d46
sub eax, 1
je 0x514d1e
sub eax, 1
je 0x514d46
push 0x5bb540
mov ecx, edi
call fcn.00405af0
mov eax, edi
call fcn.0054f342
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 0x514d08
lea eax, [ebp - 0x4e8]
push eax
jmp 0x514d0d
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x514d08
push esi
lea eax, [ebp - 0x448]
mov dword [ebp - 0x448], esi
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x444], esi
push eax
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x434], esi
call fcn.004c4dcf
test eax, eax
je 0x514d08
call fcn.0041a104
push eax
lea ecx, [ebp - 0x700]
call fcn.00402020
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x514de6
test byte [ebp - 0x428], 0x18
jne 0x514e08
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 [0x580a08]
mov ecx, ebx
call esi
jmp 0x514e08
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 [0x580a08]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x700]
add eax, 0xfffffff0
push eax
call fcn.00405250
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.00402130
jmp 0x514d14
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 0x514d08
lea eax, [ebp - 0x6f0]
jmp 0x514d43
call fcn.00419c12
int3

Function at 0x514ff1
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0054a98a
call fcn.004257a3
cmp dword [eax + 0x14], 0
jne 0x51500c
mov ecx, esi
pop esi
jmp fcn.005142e9
pop esi
ret

Function at 0x5150ec
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.005620ee
pop ecx
test eax, eax
jne 0x51512e
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.00415343
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5150f4
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret
Function at 0x531065
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00401f00
call fcn.004257a3
cmp dword [eax + 0x14], 0
jne 0x531080
mov ecx, esi
pop esi
jmp fcn.005308c7
pop esi
ret

Function at 0x56a2a1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00569f52

Function at 0x56a2ac
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056a0dc
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x70b176a1
nop
nop
nop
nop
test eax, eax
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x13186fbb
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
jmp 0x431219