joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48175c
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push 0x1c
push 0x5329f8
call fcn.004d778c
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp + 0xc], ebx
cmp eax, ebx
je 0x48177c
mov dword [eax], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp edi, ebx
je 0x4818bb
cmp dword [sym.imp.KERNEL32.dll_CloseHandle], ebx
je 0x4818bb
push 1
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
call esi
mov dword [ebp - 0x1c], eax
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call edi
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
je 0x4817ed
push ebx
push ebx
push ebx
push 0x1000002
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x4817ed
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp + 0xc], eax
cmp eax, ebx
je 0x4817ed
mov dword [ebp - 0x28], eax
push dword [ebp - 0x1c]
call esi
mov edi, dword [ebp - 0x28]
cmp edi, ebx
je 0x481871
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x481865
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x481865
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x481865
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x481865
movzx ecx, word [eax]
cmp ecx, dword [ebp - 0x1c]
ja 0x48185e
mov dword [ebp - 0x1c], ecx
add ecx, 3
and ecx, 0xfffffffc
mov dword [ebp - 0x1c], ecx
cmp dword [eax + 0x28], 0xfeef04bd
je 0x481868
jmp 0x48185e
mov dword [ebp - 0x20], 0xd
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xfffffffe
jmp 0x481878
mov dword [ebp - 0x20], 0xd
cmp dword [ebp + 0xc], ebx
je 0x481886
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x24], ebx
je 0x481894
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], 0xffffffff
je 0x4818a3
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + eax + 4]
neg eax
sbb eax, eax
and eax, ecx
jmp 0x4818bd
xor eax, eax
call fcn.004d77d1
ret
Function at 0x4818c3
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push 0x20
push 0x5329d8
call fcn.004d778c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp esi, ebx
je 0x4818fd
cmp dword [sym.imp.KERNEL32.dll_CloseHandle], ebx
je 0x4818fd
cmp dword [ebp + 0xc], 2
jae 0x481905
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
call fcn.004d77d1
ret
push 1
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
call edi
mov dword [ebp - 0x24], eax
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call esi
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x48195c
push ebx
push ebx
push ebx
push 0x1000002
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x48195c
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x48195c
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x24]
call edi
cmp dword [ebp - 0x1c], ebx
je 0x4819ef
push 0x10
xor edi, edi
inc edi
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x4819ec
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x4819ec
mov dword [ebp - 4], ebx
movzx esi, word [eax]
mov dword [ebp - 0x24], esi
lea edx, [esi + esi + 4]
mov ecx, dword [ebp + 0xc]
cmp edx, ecx
jbe 0x4819ae
shr ecx, 1
sub ecx, 4
mov esi, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x24], edi
jmp 0x4819b1
mov dword [ebp - 0x24], ebx
push esi
push eax
mov edi, dword [ebp + 0x10]
push edi
call fcn.004d5790
add esp, 0xc
mov dword [esi + edi], 0x58324546
cmp dword [ebp - 0x24], ebx
je 0x4819ce
mov word [edi], si
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x4819ef
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x28], ebx
je 0x4819fd
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x2c], ebx
je 0x481a0b
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], 0xffffffff
je 0x481a1a
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
jmp 0x4818ff
Function at 0x489298
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x244
mov eax, dword [0x5466b0]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
push esi
push edi
mov esi, 0x11c
push esi
mov dword [ebp - 0x1cc], eax
lea eax, [ebp - 0xac]
push 0
push eax
call fcn.004d7710
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [ebp - 0xac]
push eax
mov dword [ebp - 0xac], esi
call edi
test eax, eax
jne 0x489303
lea eax, [ebp - 0xac]
push eax
mov dword [ebp - 0xac], 0x114
call edi
test eax, eax
je 0x48940d
cmp dword [ebp - 0xa8], 6
jne 0x48936c
cmp dword [ebp - 0xa4], 2
jb 0x48936c
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x48936c
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x48936c
push esi
lea eax, [ebp - 0x1c8]
push 0
push eax
call fcn.004d7710
add esp, 0xc
lea eax, [ebp - 0x1c8]
push eax
mov dword [ebp - 0x1c8], esi
call edi
test eax, eax
jl 0x48936c
push 0x47
pop ecx
lea esi, [ebp - 0x1c8]
lea edi, [ebp - 0xac]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x9c]
dec eax
je 0x4893de
dec eax
jne 0x48940a
cmp dword [ebp - 0xa8], 4
jne 0x4893d6
push str.Service_Pack_6
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4893d6
lea eax, [ebp - 0x1d0]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4893c2
mov dword [ebx], 6
jmp 0x4893c8
movzx eax, word [ebp + 0x68]
mov dword [ebx], eax
push dword [ebp - 0x1d0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4893e1
movzx eax, word [ebp + 0x68]
mov dword [ebx], eax
jmp 0x4893e1
and dword [ebx], 0
movzx eax, word [ebp - 0xa0]
push eax
push dword [ebp - 0xa4]
push dword [ebp - 0xa8]
push str._d._d._d
push 0x64
push dword [ebp - 0x1cc]
call fcn.004ce95e
add esp, 0x18
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x70]
pop edi
xor ecx, ebp
pop esi
call fcn.004cb38b
add ebp, 0x74
leave
ret 4
Function at 0x48fd70
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x5466b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x140
xor edi, edi
lea eax, [ebp - 0x148]
push edi
push eax
mov esi, ecx
call fcn.004d7710
add esp, 0xc
lea eax, [ebp - 0x148]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x48fdd6
cmp byte [ebp - 0x11c], 0x2e
je 0x48fdbd
inc edi
lea eax, [ebp - 0x148]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x48fdb3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004cb38b
leave
ret
Function at 0x492eb0
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
sub esp, 0x310
lea ebp, [esp - 4]
mov eax, dword [0x5466b0]
xor eax, ebp
mov dword [ebp + 0x310], eax
push 0xc
mov eax, 0x4f4619
call fcn.004d2f7d
cmp dword [ebp + 0x31c], 3
mov edi, dword [ebp + 0x320]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], 1
jne 0x492f57
mov esi, 0x104
push esi
xor ebx, ebx
lea eax, [ebp + 0x20c]
push ebx
push eax
call fcn.004d7710
add esp, 0xc
push esi
lea eax, [ebp + 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x493021
push 0x54cfe0
push 0x10
mov byte [ebp + 0x20d], bl
call fcn.004cba2a
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x492f4a
mov dword [esi], ebx
lea ebx, [ebp + 0x20c]
call fcn.0040c040
jmp 0x492f4c
xor esi, esi
or dword [ebp - 4], 0xffffffff
mov ecx, edi
jmp 0x493015
cmp dword [ebp + 0x31c], 4
jne 0x49301d
push 0x105
xor ebx, ebx
lea eax, [ebp + 0x104]
push ebx
push eax
call fcn.004d7710
add esp, 0xc
lea eax, [ebp + 0x104]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x493021
push esi
lea eax, [ebp]
push ebx
push eax
call fcn.004d7710
lea ecx, [ebp + 0x104]
mov eax, ecx
add esp, 0xc
lea edi, [ebp]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x492fb2
jmp 0x492fde
mov al, byte [ecx]
mov byte [edi], al
mov eax, ecx
inc edi
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x492fc5
sub eax, esi
lea ecx, [ecx + eax + 1]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x492fd7
sub eax, esi
jne 0x492fbb
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 1
cmp esi, ebx
je 0x49300c
mov dword [esi], ebx
lea ebx, [ebp]
call fcn.0040c040
jmp 0x49300e
xor esi, esi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
push esi
call fcn.0040ed50
jmp 0x493021
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x310]
xor ecx, ebp
call fcn.004cb38b
add ebp, 0x314
leave
ret 8
Function at 0x493360
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f455e
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push esi
mov eax, dword [0x5466b0]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
xor esi, esi
inc esi
cmp dword [ebp + 8], esi
jne 0x4933db
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x49343b
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov dword [esp + 8], eax
and dword [esp + 0x98], 0
test eax, eax
je 0x493424
push dword [esp + 0x18]
push dword [esp + 0x18]
jmp 0x49341d
cmp dword [ebp + 8], 2
jne 0x493439
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x50], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x49343b
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov dword [esp + 8], eax
mov dword [esp + 0x98], esi
test eax, eax
je 0x493424
push dword [esp + 0x60]
push dword [esp + 0x60]
call fcn.00431080
jmp 0x493426
xor eax, eax
mov ecx, dword [ebp + 0xc]
or dword [esp + 0x98], 0xffffffff
push eax
call fcn.0040ed50
jmp 0x49343b
xor esi, esi
mov eax, esi
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x49c325
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
xor ebx, ebx
push edi
mov edi, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
cmp edi, ebx
jne 0x49c3a7
lea eax, [ebp - 0x34]
push eax
call fcn.0045c056
lea eax, [ebp - 0x34]
push eax
push 0x49be6e
push 0xe
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
test eax, eax
jne 0x49c375
lea esi, [ebp - 0x34]
call fcn.0045c2de
push dword [ebp - 0x34]
call fcn.004cb380
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
sar eax, 2
cmp eax, ebx
je 0x49c35d
ja 0x49c389
call fcn.004cb4f7
mov eax, dword [ebp - 0x28]
push dword [eax]
call fcn.004ce851
pop ecx
lea esi, [ebp - 0x34]
mov edi, eax
call fcn.0045c2de
push dword [ebp - 0x34]
call fcn.004cb380
pop ecx
cmp dword [ebp + 8], ebx
je 0x49c36e
cmp edi, ebx
je 0x49c36e
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x49c4e0
movzx eax, di
push 0xe
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x49c4e0
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x49c4e0
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x49c4e0
mov edi, dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call edi
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x49c4ca
movzx eax, word [ebp + 0x10]
push ebx
push esi
push dword [ebp + 0x14]
push eax
push 0xe
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
test eax, eax
je 0x49c4ca
and dword [ebp - 8], 0
xor eax, eax
cmp ax, word [esi + 4]
jae 0x49c4b4
add esi, 0x12
movzx eax, word [esi]
push 3
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 4], eax
call edi
test eax, eax
je 0x49c495
push dword [ebp - 0x14]
push eax
push dword [ebp + 0x14]
movzx eax, word [esi]
push eax
push 3
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
test eax, eax
je 0x49c4a2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 4]
inc dword [ebp - 8]
add esi, 0xe
cmp dword [ebp - 8], eax
jl 0x49c449
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
test eax, eax
je 0x49c4ca
mov dword [ebp - 0x10], 1
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_FreeResource]
call esi
cmp dword [ebp - 4], 0
je 0x49c4e0
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x10]
jmp 0x49c370
Function at 0x49ccba
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f4264
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5466b0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x49ce9a
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49ce9a
mov eax, dword [ebp + 8]
xor edi, edi
inc edi
mov dword [esp + 0x14], edi
cmp eax, edi
jne 0x49cd56
xor edi, edi
cmp ecx, 2
jb 0x49cd2d
mov ecx, dword [esi + 0x10]
mov esi, dword [esi + 4]
call fcn.0040c5b0
push eax
mov ecx, esi
call fcn.0040c5b0
push eax
call dword [sym.imp.USER32.dll_SetCursorPos]
mov edi, eax
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x18], ecx
xor eax, eax
mov dword [esp + 0x28], eax
cmp ecx, eax
je 0x49ce7f
mov eax, edi
jmp 0x49ce7a
push 5
pop ebx
cmp eax, ebx
jne 0x49cdad
push 0x54cfe0
push 0x10
test ecx, ecx
jbe 0x49cd93
call fcn.004cba2a
pop ecx
pop ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], edi
test eax, eax
je 0x49cde2
mov ecx, dword [esi + 4]
call fcn.0040c5b0
push eax
call dword [sym.imp.USER32.dll_ShowCursor]
mov ecx, dword [esp + 0x18]
jmp 0x49ce7a
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], 2
jmp 0x49ce74
cmp eax, 6
jne 0x49cde9
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], 3
test eax, eax
je 0x49cde2
mov ecx, dword [esi + 4]
call fcn.0040c5b0
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
jmp 0x49cd8a
xor eax, eax
jmp 0x49ce7f
cmp eax, 7
jne 0x49ce8f
cmp ecx, ebx
jb 0x49ce5c
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x34]
mov edi, dword [esi + 0x28]
mov ebx, dword [esi + 0x1c]
mov esi, dword [esi + 4]
mov dword [esp + 0x18], eax
call fcn.0040c5b0
push eax
mov ecx, edi
call fcn.0040c5b0
push eax
mov ecx, ebx
call fcn.0040c5b0
mov ecx, dword [esp + 0x20]
push eax
call fcn.0040c5b0
push eax
mov ecx, esi
call fcn.0040c5b0
push eax
call dword [sym.imp.USER32.dll_mouse_event]
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x18], ecx
xor eax, eax
mov dword [esp + 0x28], 4
test ecx, ecx
je 0x49ce7f
inc eax
jmp 0x49ce7a
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], ebx
xor eax, eax
test ecx, ecx
je 0x49ce7f
call fcn.0040c000
mov ecx, dword [ebp + 0x14]
or dword [esp + 0x28], 0xffffffff
push eax
call fcn.0040ed50
jmp 0x49ce94
and dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
jmp 0x49ce9c
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x49d15f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f418e
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5466b0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x49d286
cmp dword [ebp + 0x10], 0
je 0x49d286
cmp dword [ebp + 8], 1
jne 0x49d1f3
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov dword [esp + 0x10], eax
and dword [esp + 0x20], 0
test eax, eax
je 0x49d1db
mov ecx, dword [esi + 4]
call fcn.0040c5b0
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [esp + 0x10]
cwde
call fcn.0040c000
jmp 0x49d1dd
xor eax, eax
mov ecx, dword [ebp + 0x14]
or dword [esp + 0x20], 0xffffffff
push eax
call fcn.0040ed50
xor eax, eax
inc eax
jmp 0x49d288
push 2
pop edi
cmp dword [ebp + 8], edi
jne 0x49d286
cmp dword [ebp + 0x10], 4
jb 0x49d25f
mov ecx, dword [esi + 0x28]
mov edi, dword [esi + 0x1c]
mov ebx, dword [esi + 0x10]
mov esi, dword [esi + 4]
call fcn.0040c5b0
push eax
mov ecx, edi
call fcn.0040c5b0
push eax
mov ecx, ebx
call fcn.0040c5b0
movzx eax, al
push eax
mov ecx, esi
call fcn.0040c5b0
movzx eax, al
push eax
call dword [sym.imp.USER32.dll_keybd_event]
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x10], ecx
xor eax, eax
inc eax
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x49d1db
jmp 0x49d1d4
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], edi
test ecx, ecx
je 0x49d1db
xor eax, eax
jmp 0x49d1d4
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4a31b3
Capabilities:
Print debug messages

Disassembly:
push 0x1c
mov eax, 0x4f5e46
call fcn.004d2f7d
lea eax, [ebp - 0x10]
push eax
mov ecx, str._script__dump_global_var_
call fcn.00417170
and dword [ebp - 4], 0
push dword [ebx]
lea edi, [ebp - 0x10]
push 0x51f090
call fcn.00446c40
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x1c]
pop ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 4]
pop ecx
lea edi, [ebp - 0x18]
lea esi, [ebp - 0x20]
mov dword [ebp - 0x18], eax
call fcn.0047c948
test al, al
jne 0x4a325b
call fcn.004a1ded
cmp dword [eax + 8], 0
je 0x4a3253
call fcn.004a1ded
mov eax, dword [eax + 8]
lea edx, [ebp - 0x14]
mov ecx, eax
call fcn.004310b0
mov edi, eax
mov byte [ebp - 4], 1
call fcn.004a1ded
push dword [edi]
push dword [eax]
push str._global__s:_s
lea edi, [ebp - 0x10]
call fcn.00446c40
add esp, 0xc
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0042afc0
lea esi, [ebp - 0x20]
call fcn.00463422
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 4]
lea edi, [ebp - 0x28]
lea esi, [ebp - 0x20]
mov dword [ebp - 0x28], eax
call fcn.0047c948
test al, al
jne 0x4a32a9
call fcn.004a1ded
cmp dword [eax + 8], 0
je 0x4a3253
call fcn.004a1ded
mov eax, dword [eax + 8]
lea edx, [ebp - 0x14]
mov ecx, eax
call fcn.004310b0
mov edi, eax
mov byte [ebp - 4], 2
call fcn.004a1ded
push dword [edi]
push dword [eax]
push str._n_script__s:_s
jmp 0x4a323c
lea eax, [ebp - 0x10]
push eax
mov edx, 0x51aa6c
call fcn.004338e0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x10]
call fcn.0042afc0
call fcn.004d3057
ret

Function at 0x4a501a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
push 0
push str.AutoConfigURL
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a5080
cmp dword [ebp + 8], 1
je 0x4a5058
cmp dword [ebp + 8], 2
je 0x4a5058
push 0xd
pop eax
jmp 0x4a5080
mov eax, dword [ebp - 4]
test edi, edi
je 0x4a507a
test eax, eax
je 0x4a5075
test al, 1
jne 0x4a5053
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x4a507a
jmp 0x4a5053
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 4