joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c6130
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebx
xor ebx, ebx
push ebp
push edi
cmp dword [esi + 0x34], ebx
ja 0x4c6144
cmp dword [esi + 0x30], 0x40
jbe 0x4c6248
mov edi, dword [esi + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x40
push edi
call ebp
test eax, eax
jne 0x4c624d
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x4c624d
mov byte [esi + 0x38], 1
mov eax, dword [edi + 0x3c]
mov edi, dword [esi + 0x34]
xor ecx, ecx
lea edx, [eax + 0xf8]
cmp edi, ecx
jb 0x4c6248
ja 0x4c618f
mov ecx, dword [esi + 0x30]
cmp ecx, edx
jbe 0x4c6248
mov edx, dword [esi + 0x28]
add eax, edx
push 0xf8
push eax
mov dword [esi + 0x24], eax
call ebp
test eax, eax
jne 0x4c624d
mov eax, dword [esi + 0x24]
cmp dword [eax], 0x4550
jne 0x4c624d
mov ecx, 0x2000
test word [eax + 0x16], cx
jne 0x4c61c5
mov byte [esi + 0x44], 1
mov edx, eax
movzx eax, word [edx + 0x18]
mov ecx, 0x10b
cmp ax, cx
jne 0x4c61e1
mov dword [esi + 0x40], 1
add edx, 0x78
jmp 0x4c61f8
mov ecx, 0x20b
cmp ax, cx
jne 0x4c61fb
mov dword [esi + 0x40], 2
add edx, 0x88
mov dword [esi + 0x20], edx
cmp dword [esi + 0x20], ebx
je 0x4c624d
mov eax, dword [esi + 0x24]
movzx ecx, word [eax + 6]
mov dword [esi + 0x3c], ecx
test ecx, ecx
je 0x4c624d
movzx edx, word [eax + 0x14]
mov ebx, dword [esi + 0x34]
lea ecx, [ecx + ecx*4]
add ecx, ecx
add ecx, ecx
add ecx, ecx
sub ecx, dword [esi + 0x28]
add ecx, edx
lea edi, [ecx + eax + 0x18]
xor ecx, ecx
cmp ebx, ecx
jb 0x4c6248
ja 0x4c6236
mov ecx, dword [esi + 0x30]
cmp ecx, edi
jbe 0x4c6248
pop edi
mov ebx, 1
lea edx, [edx + eax + 0x18]
pop ebp
mov eax, ebx
mov dword [esi + 0x1c], edx
pop ebx
ret
mov ebx, 2
pop edi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x4c739c
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52952f
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x57bf70]
xor eax, esp
mov dword [esp + 0x264], eax
push esi
push edi
mov eax, dword [0x57bf70]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
and dword [esp + 0x1c], 0
push 0x24c
lea eax, [esp + 0x24]
push 0
push eax
call fcn.005038f0
lea eax, [esp + 0x20]
push str..
push eax
mov esi, edi
call fcn.004e8983
add esp, 0x14
and dword [esp + 0x280], 0
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
or dword [esp + 0x280], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00434d80
cmp dword [esp + 0x10], 0xffffffff
je 0x4c751c
lea eax, [esp + 0x48]
push 0x55908c
push eax
call fcn.005042b6
pop ecx
pop ecx
test eax, eax
je 0x4c74fb
lea eax, [esp + 0x48]
push 0x559090
push eax
call fcn.005042b6
pop ecx
pop ecx
test eax, eax
je 0x4c74fb
lea eax, [esp + 0x18]
push 0x559098
push eax
mov esi, edi
call fcn.004e8983
mov dword [esp + 0x288], 1
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
call fcn.004e8983
add esp, 0x10
mov byte [esp + 0x280], 3
lea ecx, [esp + 0x18]
call fcn.00434d80
test byte [esp + 0x1c], 0x10
je 0x4c74d1
push dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
call fcn.004c739c
pop ecx
pop ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0x80
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [esp + 0x280], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00434d80
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4c743e
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0xc], 0
je 0x4c752a
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.00418014
mov esp, ebp
pop ebp
ret
Function at 0x4cd40c
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 8
mov eax, 0x5288b7
call fcn.00505841
mov dword [ebp - 4], 3
lea eax, [ebp - 0x10]
push eax
push 0x55899c
xor ebx, ebx
push 1
push ebx
push 0x5589cc
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4cd4ae
mov eax, dword [ebp - 0x10]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], ebx
je 0x4cd46c
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push ebx
push eax
push ecx
call dword [edx + 0x44]
mov eax, dword [ebp + 0x14]
cmp dword [eax - 0xc], ebx
je 0x4cd47e
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x2c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x5589dc
push eax
call dword [ecx]
test eax, eax
jl 0x4cd4ae
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4cd4ae
mov ecx, dword [eax]
push 1
push dword [ebp + 0xc]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.00434d80
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00434d80
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x10]
call fcn.00434d80
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00434d80
call fcn.00505919
ret
Function at 0x4ce14e
Capabilities:
Get common file path

Disassembly:
push 0x7c
mov eax, 0x522013
call fcn.00505874
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebp + 0xc]
call fcn.004926b0
test eax, eax
je 0x4ce31d
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 8]
lea ecx, [esi + 4]
xor edi, edi
push eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], ecx
call fcn.004b0b1b
test eax, eax
je 0x4ce194
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.00413928
mov esi, 0x104
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.00405d47
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.004f173d
lea ecx, [ebp - 0x14]
call fcn.00413928
xor ebx, ebx
inc ebx
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00405d47
push eax
push edi
push 0x53eeec
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.004f173d
push edi
push 0x4000100
push 2
push edi
push edi
push 0xc0000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xffffffff
je 0x4ce307
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0047b7db
push edi
push 0x1000
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.0041d151
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x88]
mov dword [eax + 0x20], ebx
mov eax, dword [ecx]
push edx
mov byte [ebp - 4], 4
call dword [eax + 8]
lea ecx, [ebp - 0x88]
call fcn.0043d498
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x88]
mov dword [eax + 0x20], edi
mov byte [ebp - 4], 3
call fcn.004d1564
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004ec987
mov ecx, dword [ebp - 0x24]
lea eax, [ebp + 8]
push eax
mov dword [ebp - 4], ebx
call fcn.00466ba1
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov dword [eax], esi
call fcn.00471a40
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00471a40
mov eax, ebx
jmp 0x4ce31f
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00471a40
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00471a40
xor eax, eax
call fcn.00505919
ret 8
Function at 0x4d72ed
Capabilities:
Set registry value

Disassembly:
push 4
mov eax, 0x52a0dc
call fcn.00505841
lea eax, [ebp - 0x10]
push eax
call fcn.00449760
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
add eax, eax
push eax
lea esi, [ebp - 0x10]
call fcn.0043df51
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push eax
push 1
push str.InstallDir
mov ebx, str.SoftwareAdvancedSystemRepairPro
push ebx
push SysReAllocString
call edi
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
add eax, eax
push eax
call fcn.0043df51
push eax
push 1
push str.InstallDir
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00434d80
call fcn.00505919
ret
Function at 0x4debd9
Capabilities:
Delete file

Disassembly:
push 0xc
mov eax, 0x52a898
call fcn.00505841
lea eax, [ebp - 0x10]
push eax
call fcn.004ceed1
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.004e8983
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.00434d80
lea eax, [ebp - 0x14]
push str._wal
push eax
call fcn.004e8983
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.00434d80
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00434d80
call fcn.00505919
ret
Function at 0x4e25d9
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov eax, SysReAllocString
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
je 0x4e2609
push esi
lea ecx, [ebp - 4]
push ecx
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x4e262f
mov eax, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
je 0x4e2632
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
jne 0x4e2622
jmp 0x4e2624
Function at 0x4e49f0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0x54
mov eax, 0x51c754
call fcn.00505874
mov esi, ecx
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], ebx
call fcn.00445c95
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00445615
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00470042
mov edi, vtable.CBitmap.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], edi
push dword [esi + 0x54]
lea eax, [ebp - 0x60]
push dword [esi + 0x50]
lea ecx, [ebp - 0x20]
push eax
mov byte [ebp - 4], 3
call fcn.004e694a
cmp eax, ebx
jne 0x4e4a87
push 0xffffffffffffffff
push ebx
push 0x3e8a
call fcn.004f9533
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], edi
call fcn.004312ac
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.004451d4
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
call fcn.004e31ed
xor eax, eax
call fcn.00505919
ret 4
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00483d8e
mov ecx, dword [esi + 0x50]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x40], eax
push 0x57fb74
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x44], ecx
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
call fcn.004497db
push ebx
push ecx
push ecx
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], esp
push eax
mov ecx, esi
call fcn.004600f6
push 0xff
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x3c]
push ebx
push ebx
push eax
mov ecx, esi
call fcn.004aa3b7
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.0040536d
push dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
call fcn.00483d8e
call fcn.004d3fca
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4e4a4a
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x4e4b39
push 0xffffffffffffffff
push ebx
push 0x3e8a
call fcn.004f9533
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4e4a57
lea ecx, [ebp - 0x20]
call fcn.0041d639
push eax
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
cmp eax, ebx
jne 0x4e4b5b
push 0xffffffffffffffff
push ebx
push 0x3e8a
call fcn.004f9533
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], edi
call fcn.004312ac
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.004451d4
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
call fcn.004e31ed
xor eax, eax
inc eax
jmp 0x4e4a7f
Function at 0x4e926e
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 0x4e92ee
cmp dword [ebp + 0xc], ecx
jne 0x4e92ee
cmp dword [ebx + 0x94], ecx
jne 0x4e92ee
mov eax, dword [ebx + 0x20]
cmp eax, ecx
je 0x4e92e4
cmp eax, 0xffffffff
je 0x4e92e4
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.004da621
mov dword [ebx + 0x9c], eax
test eax, eax
jne 0x4e92ee
xor eax, eax
jmp 0x4e942e
mov dword [ebx + 0x9c], 1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xec]
test eax, eax
je 0x4e9329
cmp dword [ebp + 0xc], 0
jne 0x4e9329
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.004da621
test eax, eax
jne 0x4e92dd
xor ecx, ecx
cmp dword [ebx + 0x9c], ecx
jne 0x4e934f
mov eax, dword [ebx + 0x20]
cmp eax, ecx
jbe 0x4e934f
cmp eax, 0xffffffff
je 0x4e934f
cmp dword [ebx + 0x90], ecx
jne 0x4e934f
cmp dword [ebx + 0xa8], ecx
je 0x4e92dd
push dword [ebx + 0x6c]
push 0x57a438
call fcn.004544e7
lea esi, [ebx + 0x8c]
mov dword [ebp - 4], eax
mov eax, dword [esi]
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
je 0x4e9388
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 0x4e93ee
push edi
jmp 0x4e93e9
push dword [ebx + 0x6c]
push 0x579304
call fcn.004544e7
pop ecx
pop ecx
cmp dword [ebp + 0xc], edi
je 0x4e93b4
cmp eax, edi
je 0x4e93b4
cmp dword [0x57fd5c], edi
jne 0x4e93b4
push 1
push ebx
mov ecx, eax
call fcn.00439143
jmp 0x4e93e1
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x4e93cc
push edi
call fcn.0043a198
cmp eax, edi
je 0x4e93cc
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 0x4e92dd
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x4e93ee
push ebx
call fcn.00443bb8
cmp dword [ebx + 0x6c], edi
je 0x4e942b
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.004a6899
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 0x4eace3
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x84]
xor edx, edx
div ecx
mov dword [ebp - 8], eax
test edx, edx
je 0x4ead02
inc dword [ebp - 8]
mov eax, dword [ebp + 0x1c]
sub eax, dword [ebp + 0x14]
mov ecx, dword [esi + 0x88]
xor edx, edx
div ecx
push ebx
mov ebx, eax
test edx, edx
je 0x4ead1a
inc ebx
and dword [ebp - 4], 0
cmp dword [ebp - 8], 0
jle 0x4ead68
push edi
xor edi, edi
test ebx, ebx
jle 0x4ead5c
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x84]
push 0xcc0020
push 0
push 0
push dword [ebp + 0xc]
push eax
imul eax, edi
push ecx
imul ecx, dword [ebp - 4]
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_BitBlt]
inc edi
cmp edi, ebx
jl 0x4ead2b
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x4ead25
pop edi
pop ebx
leave
ret 0x18

Function at 0x4f3122
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52aa8a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x57bf70]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebx, ebx
xor esi, esi
inc ebx
mov dword [esp + 0x10], esi
cmp dword [ebp + 0xc], esi
je 0x4f3161
mov ecx, dword [ebp + 0xc]
jmp 0x4f3176
lea eax, [esp + 0x18]
push eax
call fcn.00488df7
pop ecx
mov dword [esp + 0x30], esi
mov ecx, dword [eax]
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x14]
push eax
call fcn.00449760
mov dword [esp + 0x30], 2
test byte [esp + 0x10], bl
je 0x4f319c
and dword [esp + 0x10], 0xfffffffe
lea ecx, [esp + 0x18]
call fcn.00434d80
cmp byte [ebp + 8], 0
je 0x4f3247
push dword [esp + 0x14]
push dword [ebp + 8]
call fcn.004f394c
pop ecx
pop ecx
test al, al
jne 0x4f3252
lea eax, [esp + 0x20]
push eax
mov ecx, 0x5597c4
call fcn.00449760
mov byte [esp + 0x30], 3
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
push ecx
mov esi, eax
call fcn.0043fc75
mov byte [esp + 0x38], 4
lea ecx, [esp + 0x20]
push str.___minimize
push ecx
mov esi, eax
call fcn.004e8983
add esp, 0x10
mov byte [esp + 0x30], 6
lea ecx, [esp + 0x1c]
call fcn.00434d80
mov byte [esp + 0x30], 7
lea ecx, [esp + 0x20]
call fcn.00434d80
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push ebx
push 0x5590e4
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x18]
call fcn.00434d80
jmp 0x4f3274
push dword [ebp + 0xc]
push esi
call fcn.004f394c
pop ecx
pop ecx
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov edi, 0x5590e4
push edi
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push esi
push SysReAllocString
call ebx
push edi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00434d80
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50012b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
mov dword [ebp - 8], edi
cmp eax, ecx
jb 0x5001ba
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00503970
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x50017a
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x50019c
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x500278
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
cmp ecx, edx
jbe 0x5001e2
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x5001ed
xor eax, eax
jmp 0x500239
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x50020a
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.00500a7b
jmp 0x50021a
cmp ecx, 2
jne 0x500223
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.005023ad
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.00503970
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x500264
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x500278
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x500138
pop edi
pop ebx
leave
ret
Function at 0x5028d9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x57bf70]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x502971
push 0x533b84
push 4
push eax
call fcn.00504465
push eax
call fcn.004369c9
add esp, 0x10
push ebx
push edi
call fcn.005059cc
mov edi, dword [eax]
call fcn.005059cc
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00505969
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.005059cc
cmp dword [eax], ebx
je 0x502988
call fcn.005059cc
push dword [eax]
call fcn.0047b630
pop ecx
jmp 0x50298f
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x50291c
jmp 0x502a16
call fcn.005059cc
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x502a12
cmp dword [ebp - 0x234], esi
jae 0x502a12
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.005038f0
add esp, 0xc
push 0x533798
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x502a01
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x502a01
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x502a01
push ebx
push ebx
push esi
jmp 0x502a0a
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x502a14
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00418014
leave
ret