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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x48a426
cmp dword [edi + 0x54], 0
jne 0x48a426
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040a8a5
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00401879
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x48ad05
Capabilities:
Enumerate processes

Disassembly:
push 0x254
mov eax, 0x52a4e4
call fcn.0050552a
xor ebx, ebx
push 0x228
lea eax, [ebp - 0x23c]
push ebx
push eax
mov dword [ebp - 0x240], ebx
call fcn.00503570
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x250], esi
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
je 0x48ae4d
lea eax, [ebp - 0x240]
push eax
push esi
mov dword [ebp - 0x240], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x48ae45
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00425ed1
mov byte [ebp - 4], 1
lea eax, [ebp - 0x244]
call fcn.00437518
push str.advancedsystemrepairpro.exe
lea esi, [ebp - 0x244]
call fcn.0045403b
cmp eax, 0xffffffff
je 0x48ae24
push dword [ebp - 0x238]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x254], edi
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x48ae15
push 0x5590d4
push ebx
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, ebx
je 0x48adf6
lea ecx, [ebp - 0x248]
push ecx
push 0x1388
push 1
push ebx
push ebx
push 0x864
push eax
mov dword [ebp - 0x248], ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
lea esi, [ebp - 0x260]
call fcn.004bb1ea
push ebx
push edi
call dword [eax + 8]
cmp eax, ebx
je 0x48ae15
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x48ae24
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x244]
call fcn.004cdfac
mov esi, dword [ebp - 0x24c]
lea eax, [ebp - 0x240]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x48ad6f
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x48ae5c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
call fcn.005055ad
ret
Function at 0x48ee27
Capabilities:
Get common file path

Disassembly:
push 0x30
mov eax, 0x529502
call fcn.0050552a
mov eax, dword [ebp + 8]
and dword [ebp - 0x34], 0
push 0x400
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], eax
call fcn.0042fbf5
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x48ee5f
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x48ee77
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004e225a
mov byte [ebp - 4], 2
push dword [ebp - 0x38]
mov esi, eax
push edi
call fcn.0044907a
pop ecx
pop ecx
mov dword [ebp - 0x34], ebx
mov byte [ebp - 4], bl
lea eax, [ebp - 0x30]
push eax
call fcn.00452614
mov byte [ebp - 4], 0
push 0
push ebx
lea esi, [ebp - 0x2c]
call fcn.004ab552
mov eax, edi
call fcn.005055ad
ret
Function at 0x48f048
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x20a
push esi
mov esi, ecx
jne 0x48f092
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x48f092
call fcn.0043266f
test eax, eax
je 0x48f092
push dword [ebx + 0xc]
mov eax, dword [esi + 0x54]
push dword [ebx + 8]
mov ecx, dword [eax + 0xb4]
push dword [ebx + 4]
call fcn.0044c655
xor eax, eax
inc eax
jmp 0x48f2aa
cmp dword [ebx + 4], 0x100
push edi
jne 0x48f2a1
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call edi
test ax, ax
jl 0x48f18f
push 0x11
call edi
test ax, ax
jl 0x48f18f
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x48f18f
mov eax, dword [ebx + 8]
cmp eax, 0xd
je 0x48f102
cmp eax, 0x20
jbe 0x48f18f
cmp eax, 0x24
jbe 0x48f0f5
cmp eax, 0x26
je 0x48f0f5
cmp eax, 0x28
jne 0x48f18f
call fcn.0043266f
test eax, eax
je 0x48f18f
mov ecx, esi
call fcn.004a5355
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
call fcn.0043266f
test eax, eax
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
je 0x48f137
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.0044c655
jmp 0x48f29c
call fcn.0043358e
test eax, eax
je 0x48f29c
mov eax, dword [esi + 0x54]
add eax, 0xb8
push eax
mov ecx, esi
call fcn.00499d5f
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x48f165
xor edi, edi
jmp 0x48f168
mov edi, dword [eax + 0x20]
mov esi, dword [esi + 0x54]
mov ecx, dword [esi + 0xb4]
movzx esi, word [esi + 0x20]
call fcn.0043358e
push edi
push esi
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x48f29c
mov eax, dword [ebx + 8]
sub eax, 9
je 0x48f26b
sub eax, 0x12
je 0x48f243
sub eax, 0xb
je 0x48f1b1
dec eax
dec eax
jne 0x48f2a1
push 0x12
call edi
test ax, ax
jl 0x48f2a1
push 0x11
call edi
test ax, ax
jl 0x48f2a1
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x48f2a1
call fcn.0043266f
test eax, eax
jne 0x48f29c
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
push 1
call fcn.004f0d6e
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
push dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.00414b33
test eax, eax
je 0x48f29c
mov esi, dword [esi + 0x54]
lea ebx, [esi + 0x90]
mov esi, dword [esi + 0xb4]
push dword [esi + 0x20]
call edi
push eax
call fcn.00414b33
push 1
push ebx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x48f29c
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x48f257
push 0
call fcn.004f0d6e
mov ecx, esi
call fcn.0040ae25
test eax, eax
je 0x48f2a1
mov ecx, esi
call fcn.0040ae25
jmp 0x48f295
push dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.00414b33
test eax, eax
je 0x48f2a1
push dword [esi + 0x20]
call edi
push eax
call fcn.00414b33
push 0
push esi
mov ecx, eax
call fcn.00402978
mov ecx, eax
call fcn.004a5355
xor eax, eax
inc eax
jmp 0x48f2a9
push ebx
mov ecx, esi
call fcn.004be930
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x49161c
Capabilities:
Get token privileges

Disassembly:
push 0x24
mov eax, 0x528e5f
call fcn.005054c1
lea eax, [ebp - 0x14]
push eax
xor edi, edi
push 0x28
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4916dc
lea eax, [ebp - 0x30]
push eax
call fcn.0040e3d7
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
jne 0x491661
call fcn.00503de8
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
push ecx
sub eax, esi
push eax
push esi
push 3
push dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4916a8
xor ecx, ecx
cmp dword [esi], edi
jbe 0x491698
lea eax, [esi + 0xc]
mov dword [eax], 2
inc ecx
add eax, 0xc
cmp ecx, dword [esi]
jb 0x49168a
push edi
push edi
push dword [ebp - 0x18]
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 1
cmp dword [ebp - 0x24], edi
je 0x4916c6
push dword [ebp - 0x24]
call fcn.0042bcd0
pop ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x30]
push eax
call fcn.00416a20
call fcn.00505599
ret

Function at 0x491792
Capabilities:
Delete file

Disassembly:
push 0xc
mov eax, 0x52a4a8
call fcn.005054c1
lea eax, [ebp - 0x10]
push eax
call fcn.00411778
pop ecx
and dword [ebp - 4], 0
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
lea eax, [ebp - 0x14]
push str._shm
push eax
lea esi, [ebp - 0x10]
call fcn.0047dc46
pop ecx
pop ecx
mov byte [ebp - 4], 1
push dword [eax]
call edi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004cdfac
lea eax, [ebp - 0x14]
push str._wal
push eax
call fcn.0047dc46
pop ecx
pop ecx
mov byte [ebp - 4], 2
push dword [eax]
call edi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004cdfac
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004cdfac
call fcn.00505599
ret
Function at 0x497a45
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x497a5d
mov edi, dword [esi + 0xc]
jmp 0x497a9d
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x497a76
call fcn.0042bcdb
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x497a8b
call fcn.0042bcdb
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x497a9d
call fcn.0042bcdb
call fcn.0040a8a5
cmp dword [eax + 0x3c], 0
je 0x497ab2
push edi
mov ecx, ebx
call fcn.00419ee9
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004d7feb
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x497ad0
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x497adc
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x497c41
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetCursorPos]
xor ecx, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
mov dword [ebx + 0x9c], ecx
cmp dword [ebx + 0x90], ecx
je 0x497cc1
cmp dword [ebp + 0xc], ecx
jne 0x497cc1
cmp dword [ebx + 0x94], ecx
jne 0x497cc1
mov eax, dword [ebx + 0x20]
cmp eax, ecx
je 0x497cb7
cmp eax, 0xffffffff
je 0x497cb7
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call edi
push dword [ebp - 4]
lea ecx, [ebx + 0xc8]
push dword [ebp - 8]
call fcn.0043bdcb
mov dword [ebx + 0x9c], eax
test eax, eax
jne 0x497cc1
xor eax, eax
jmp 0x497e01
mov dword [ebx + 0x9c], 1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xec]
test eax, eax
je 0x497cfc
cmp dword [ebp + 0xc], 0
jne 0x497cfc
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call edi
push dword [ebp - 4]
lea ecx, [ebx + 0xd8]
push dword [ebp - 8]
call fcn.0043bdcb
test eax, eax
jne 0x497cb0
xor ecx, ecx
cmp dword [ebx + 0x9c], ecx
jne 0x497d22
mov eax, dword [ebx + 0x20]
cmp eax, ecx
jbe 0x497d22
cmp eax, 0xffffffff
je 0x497d22
cmp dword [ebx + 0x90], ecx
jne 0x497d22
cmp dword [ebx + 0xa8], ecx
je 0x497cb0
push dword [ebx + 0x6c]
push 0x57a438
call fcn.0048267c
lea esi, [ebx + 0x8c]
mov dword [ebp - 4], eax
mov eax, dword [esi]
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
je 0x497d5b
mov dword [eax + 0xf8], edi
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x60]
mov ecx, dword [ebp - 4]
mov dword [esi], edi
cmp ecx, edi
je 0x497dc1
push edi
jmp 0x497dbc
push dword [ebx + 0x6c]
push 0x579304
call fcn.0048267c
pop ecx
pop ecx
cmp dword [ebp + 0xc], edi
je 0x497d87
cmp eax, edi
je 0x497d87
cmp dword [0x57fd5c], edi
jne 0x497d87
push 1
push ebx
mov ecx, eax
call fcn.0047860d
jmp 0x497db4
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x497d9f
push edi
call fcn.0046c9b9
cmp eax, edi
je 0x497d9f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x58]
push dword [ebp + 8]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test eax, eax
je 0x497cb0
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x497dc1
push ebx
call fcn.004d5c6a
cmp dword [ebx + 0x6c], edi
je 0x497dfe
lea esi, [ebx + 0x54]
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004021d1
mov eax, dword [eax + 0x94]
push eax
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push 0x401
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0x6c]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_RedrawWindow]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4a2c54
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [0x57fc58], 0
mov dword [ebp - 4], ecx
jne 0x4a2c6a
xor eax, eax
jmp 0x4a2ca4
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x4a2c7a
call fcn.0040a8a5
mov esi, dword [eax + 0xc]
push edi
push dword [0x57f778]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4a2ca0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4a2ca8
xor eax, eax
pop edi
pop esi
leave
ret 8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4a2cc6
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4a2ca2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00457523
mov esi, eax
jmp 0x4a2cb8

Function at 0x4ab180
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x528bda
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x57bf70]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
mov eax, dword [0x5837a8]
mov edx, dword [eax + 0xc]
mov ecx, 0x5837a8
call edx
mov edi, dword [esp + 0x2c]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x24], esi
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ebp
push esi
push 0xfde9
mov dword [esp + 0x38], 1
call ebx
cmp eax, 1
jle 0x4ab2a8
lea ecx, [esp + 0x14]
push ecx
mov edi, eax
call fcn.0048b4f0
mov dword [esp + 0x24], 2
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
xor edi, edi
push edi
push edi
push eax
push ecx
push 0xffffffffffffffff
push ebp
push edi
push 0xfde9
call ebx
cmp eax, 1
jle 0x4ab260
mov edx, dword [esi]
mov byte [edx + eax - 1], 0
mov ebx, dword [esi]
cmp ebx, edi
jne 0x4ab248
xor eax, eax
push eax
push ebx
mov ebx, dword [esp + 0x34]
mov ecx, ebx
call fcn.004a244f
jmp 0x4ab264
push ebx
call fcn.00503c00
add esp, 4
push eax
push ebx
mov ebx, dword [esp + 0x34]
mov ecx, ebx
call fcn.004a244f
jmp 0x4ab264
mov ebx, dword [esp + 0x2c]
mov byte [esp + 0x24], 0
add dword [esi + 8], 0xffffffff
jne 0x4ab292
cmp dword [esi + 4], edi
je 0x4ab285
mov eax, dword [esi]
push edi
push eax
call fcn.00503955
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], edi
push esi
call fcn.0042bcd0
add esp, 4
mov dword [esp + 0x14], edi
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4b0c1b
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ebx, 0xf0000000
push ebx
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
push edi
call esi
test eax, eax
je 0x4b0c43
cmp dword [edi], 0
jne 0x4b0c55
push ebx
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
push 0
push edi
call esi
cmp dword [edi], 0
je 0x4b0c79
push dword [ebp + 0xc]
lea esi, [ebp - 8]
push dword [ebp + 8]
call fcn.0040bbef
lea eax, [edi + 4]
push eax
push 0
push 0
push dword [ebp - 4]
push dword [ebp - 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4b0ca7
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
xor eax, eax
inc eax
push 0
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], eax
lea eax, [ebp + 0xc]
push eax
push 3
push ecx
call esi
push 0
lea eax, [ebp + 8]
push eax
push 4
push dword [edi + 4]
call esi
pop esi
pop ebx
leave
ret 8
Function at 0x4b57a8
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x522def
call fcn.005054c1
xor edi, edi
cmp dword [0x579e58], edi
je 0x4b5871
cmp dword [0x57a3a0], 0xfffffffe
jne 0x4b585e
cmp dword [ebp + 8], 0xffffffff
je 0x4b5871
test byte [0x581884], 1
mov esi, 0x581864
jne 0x4b5807
or dword [0x581884], 1
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.004cb0f1
push 0x52c741
call fcn.00503f1f
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, esi
call fcn.004dd79f
cmp dword [0x581860], edi
je 0x4b581b
call fcn.004dbf49
push edi
push edi
push 0x4dd99d
call fcn.00508b10
add esp, 0xc
mov dword [0x581860], eax
cmp eax, edi
jbe 0x4b584b
cmp eax, 0xffffffff
je 0x4b584b
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp + 8]
mov dword [0x57a3a0], eax
jmp 0x4b5851
mov dword [0x581860], edi
push 0x58186c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4b5871
mov eax, dword [ebp + 8]
mov dword [0x57a3a0], eax
cmp eax, 0xffffffff
jne 0x4b5871
mov dword [0x581860], edi
call fcn.00505599
ret

Function at 0x4b6b22
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4b6b69
call fcn.0040a8a5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4b6b69
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4b6b85
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0046e66f
mov esi, eax
test edi, edi
je 0x4b6b83
test ebx, ebx
je 0x4b6b83
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4bcf07
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0x10
mov eax, 0x52a3c2
call fcn.005054c1
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
push 0x23
push edi
mov dword [ebp - 0x10], esi
call fcn.004d3675
pop ecx
pop ecx
mov dword [ebp - 4], esi
xor ebx, ebx
push 0x94
lea eax, [ebp - 0x1c]
inc ebx
push eax
mov dword [ebp - 0x10], ebx
call fcn.004c83f8
mov esi, eax
mov dword [ebp - 4], ebx
push 0x90
lea eax, [ebp - 0x18]
push eax
call fcn.004c83f8
mov byte [ebp - 4], 2
push esi
lea ecx, [ebp - 0x14]
push ecx
mov esi, eax
call fcn.004c2fad
pop ecx
pop ecx
mov byte [ebp - 4], 3
push edi
call fcn.0048afed
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.004cdfac
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.004cdfac
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004cdfac
push dword [edi]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
test eax, eax
jne 0x4bcfb2
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [edi]
call fcn.00488156
pop ecx
push 0x95
lea eax, [ebp - 0x14]
push eax
call fcn.004c83f8
mov esi, eax
mov dword [ebp - 4], 4
push 0x90
lea eax, [ebp - 0x18]
push eax
call fcn.004c83f8
mov byte [ebp - 4], 5
push esi
lea ecx, [ebp - 0x1c]
push ecx
mov esi, eax
call fcn.004c2fad
pop ecx
pop ecx
mov byte [ebp - 4], 6
push edi
call fcn.0048afed
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call fcn.004cdfac
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.004cdfac
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004cdfac
push dword [edi]
call ebx
test eax, eax
jne 0x4bd032
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [edi]
call fcn.00488156
pop ecx
mov eax, edi
call fcn.00505599
ret
Function at 0x4c511a
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
mov esi, ecx
mov ecx, 0x104
cmp eax, ecx
ja 0x4c5274
je 0x4c529a
cmp eax, 0xa1
jb 0x4c52c6
cmp eax, 0xa2
jbe 0x4c529a
cmp eax, 0xa3
jbe 0x4c52c6
cmp eax, 0xa5
jbe 0x4c529a
cmp eax, 0xa6
jbe 0x4c52c6
cmp eax, 0xa8
jbe 0x4c529a
cmp eax, 0x100
jne 0x4c52c6
cmp dword [esi + 0x80], 0xffffffff
je 0x4c529a
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4c529a
mov eax, dword [edi + 8]
sub eax, 0x21
je 0x4c5240
dec eax
jne 0x4c529a
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x7c]
lea edi, [eax + 1]
add ecx, eax
cmp edi, ecx
jge 0x4c5238
mov eax, edi
cdq
idiv dword [esi + 0x7c]
mov eax, dword [esi]
mov ecx, esi
push edx
mov dword [ebp + 8], edx
call dword [eax + 0x254]
test eax, eax
jne 0x4c51f9
mov eax, dword [esi + 0x7c]
add eax, dword [esi + 0x80]
inc edi
cmp edi, eax
jl 0x4c51d1
jmp 0x4c5238
push dword [ebp + 8]
mov eax, dword [esi]
mov ecx, esi
mov dword [esi + 0x1e4], 1
call dword [eax + 0x1ec]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1e8]
mov ecx, eax
call fcn.004a5355
push dword [esi + 0x80]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x248]
and dword [esi + 0x1e4], 0
xor eax, eax
inc eax
jmp 0x4c52ce
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x7c]
lea edi, [ecx + eax - 1]
cmp edi, eax
jle 0x4c5238
mov eax, edi
cdq
idiv dword [esi + 0x7c]
mov eax, dword [esi]
mov ecx, esi
push edx
mov dword [ebp + 8], edx
call dword [eax + 0x254]
test eax, eax
jne 0x4c51f9
dec edi
cmp edi, dword [esi + 0x80]
jg 0x4c5251
jmp 0x4c5238
cmp eax, 0x200
jb 0x4c52c6
cmp eax, 0x202
jbe 0x4c529a
cmp eax, 0x203
jbe 0x4c52c6
cmp eax, 0x205
jbe 0x4c529a
add eax, 0xfffffdf9
cmp eax, 1
ja 0x4c52c6
mov ecx, dword [esi + 0xbc]
test ecx, ecx
je 0x4c52b0
cmp dword [ecx + 0x20], 0
je 0x4c52b0
push edi
call fcn.004cfd40
mov ecx, dword [esi + 0xb8]
test ecx, ecx
je 0x4c52c6
cmp dword [ecx + 0x20], 0
je 0x4c52c6
push edi
call fcn.004cfd40
push edi
mov ecx, esi
call fcn.00481823
pop edi
pop esi
pop ebp
ret 4