joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f5520
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x666c94
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], method.CTreeCtrl.virtual_0
lea ecx, [esi + 0xf4]
mov dword [esp + 0x18], 5
call fcn.00648585
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 4
mov dword [ecx], 0x6c2e48
call fcn.004fc400
lea ecx, [esi + 0xdc]
mov byte [esp + 0x18], 3
call fcn.0064b0bf
lea ecx, [esi + 0xd4]
mov dword [esp + 0xc], ecx
mov dword [ecx], method.CGdiObject.virtual_0
mov byte [esp + 0x18], 6
call fcn.00654c19
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 1
call fcn.00648585
lea edi, [esi + 0x3c]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x6c]
mov byte [esp + 0x18], 9
mov dword [ecx], 0x6c2e48
call fcn.004fc400
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 8
mov dword [ecx], 0x6c2e48
call fcn.004fc400
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 7
mov dword [ecx], 0x6c2e48
call fcn.004fc400
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 0
mov dword [ecx], 0x6c2e48
call fcn.004fc400
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00647b8a
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4f7fb0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4f8053
test eax, eax
jbe 0x4f8053
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4f8053
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4f7ffe
xor esi, esi
jmp 0x4f8004
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4f802f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00509070
add esi, eax
push esi
mov ebx, esi
call fcn.00509070
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4f8010
pop ebp
test edi, edi
pop edi
jne 0x4f8053
test ebx, ebx
je 0x4f8053
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0061fdf0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4f83a5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4f84bd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4f84bd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0064d375
mov esi, eax
test esi, esi
je 0x4f84bd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4f84bd
mov ecx, esi
call fcn.004f8260
cmp edi, eax
jge 0x4f84bd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4f8443
mov dword [esp + 0x34], 1
jmp 0x4f849e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4f84bd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004f3f50
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x5017d0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x667638
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x10]
call fcn.0061cfc4
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x38], 0
call fcn.0064b12d
lea ecx, [esp + 0x3c]
push 1
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call fcn.00644ad3
mov eax, dword [eax]
push 0x70898c
push eax
call fcn.0061f2b4
add esp, 8
lea ecx, [esp + 0x3c]
test eax, eax
setne bl
call fcn.0064b0bf
test bl, bl
je 0x501850
push 0x70898c
lea ecx, [esp + 0xc]
call fcn.0064b49b
push 0x708988
lea ecx, [esp + 0xc]
call fcn.0064b49b
mov edx, dword [esp + 8]
push 0
push edx
lea ecx, [esp + 0x18]
call fcn.0061d087
test eax, eax
je 0x501914
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov bl, 2
lea ecx, [esp + 0x18]
call fcn.0061d2a7
mov edi, eax
mov eax, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [eax + 0x38]
test eax, eax
je 0x5018d0
lea ecx, [esp + 0x18]
call fcn.0061d26e
test eax, eax
jne 0x5018d0
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0061d376
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x40], bl
call fcn.005017d0
mov byte [esp + 0x3c], 1
lea ecx, [esp + 0x44]
jmp 0x501905
lea ecx, [esp + 0x18]
call fcn.0061d26e
test eax, eax
jne 0x50190a
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x38]
test eax, eax
jne 0x50190a
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call fcn.0061d376
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x14]
call fcn.0064b0bf
test edi, edi
jne 0x501880
pop edi
pop ebp
lea ecx, [esp + 0x10]
call fcn.0061d03d
lea ecx, [esp + 8]
mov byte [esp + 0x34], 0
call fcn.0064b0bf
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.0061d001
mov ecx, dword [esp + 0x2c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x501a10
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x667666
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0x718fa8]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x15c], 0
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x164]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x160], 1
call fcn.0064b248
push str..
lea ecx, [esp + 0x10]
call fcn.0064b49b
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x501ab3
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call fcn.0064b0bf
lea ecx, [esp + 8]
mov dword [esp + 0x15c], 0xffffffff
call fcn.0064b0bf
xor eax, eax
jmp 0x501bf8
push ebp
mov ebp, dword [esp + 0x16c]
push edi
mov edi, dword [esp + 0x174]
lea edx, [esp + 0x48]
push 0x7089ac
push edx
call fcn.0061f2b4
add esp, 8
test eax, eax
je 0x501ba9
lea eax, [esp + 0x48]
push 0x7089a8
push eax
call fcn.0061f2b4
add esp, 8
test eax, eax
je 0x501ba9
test ebp, ebp
jne 0x501b15
lea ecx, [esp + 0x48]
push str.desktop.ini
push ecx
call fcn.0061f363
add esp, 8
test eax, eax
je 0x501ba9
push esi
lea ecx, [esp + 0x14]
call fcn.0064b248
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0064b4c2
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.0064b49b
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x501b55
mov ecx, dword [esp + 0x10]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [esp + 0x1c], 0x10
je 0x501b77
mov edx, dword [esp + 0x10]
push edi
push ebp
push edx
mov ecx, ebx
call fcn.00501a10
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x501ba9
test edi, edi
je 0x501b9e
lea ecx, [esp + 0x48]
push str.index.dat
push ecx
call fcn.0061f363
add esp, 8
test eax, eax
jne 0x501b9e
lea edx, [esp + 0x48]
mov ecx, ebx
push edx
push esi
call fcn.00501c20
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x501ac3
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0
call fcn.0064b0bf
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.0064b0bf
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x154]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 0xc
Function at 0x501c20
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x66767b
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.0061fcd0
mov eax, dword [0x718fa8]
push edi
mov dword [esp + 4], eax
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x272c]
push ecx
lea ecx, [esp + 8]
call fcn.0064b248
push 0x5c
lea ecx, [esp + 8]
call fcn.0064b4c2
mov edx, dword [esp + 0x2730]
lea ecx, [esp + 4]
push edx
call fcn.0064b49b
mov eax, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x501cc6
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call fcn.0064b0bf
xor eax, eax
jmp 0x501d43
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x501d21
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x501d13
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x2710
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x501ced
jmp 0x501d21
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call fcn.0064b0bf
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x271c]
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret 8
Function at 0x501d60
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x14
push ebp
push esi
mov esi, dword [esp + 0x24]
xor ebp, ebp
cmp esi, ebp
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebp
je 0x501e90
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x28]
push eax
push 0x40000
push ebp
push esi
push edi
call ebx
test eax, eax
jne 0x501e7f
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
push ecx
push 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
jne 0x501e7f
mov eax, dword [esp + 0x34]
test eax, eax
je 0x501e7a
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebp
push ecx
push 0x20019
push ebp
push esi
push edi
call ebx
test eax, eax
jne 0x501e7f
push eax
push eax
lea edx, [esp + 0x30]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x34]
push ebp
lea eax, [esp + 0x44]
push edx
push eax
push ebp
push ebp
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x501e7f
push 0x105
call fcn.0064adfa
mov esi, eax
mov eax, dword [esp + 0x30]
add esp, 4
xor edi, edi
test eax, eax
jbe 0x501e71
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edx, dword [esp + 0x10]
push 0x105
push esi
push edi
push edx
call ebx
test eax, eax
jne 0x501e61
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
push 1
push eax
push esi
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00501d60
jmp 0x501e68
cmp eax, 0x103
je 0x501e71
mov eax, dword [esp + 0x2c]
inc edi
cmp edi, eax
jb 0x501e37
push esi
call fcn.0064ae23
add esp, 4
mov ebp, 1
mov eax, dword [esp + 0x10]
pop edi
test eax, eax
pop ebx
je 0x501e90
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
pop esi
pop ebp
add esp, 0x14
ret 0x10

Function at 0x502370
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
xor esi, esi
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call edi
test eax, eax
jne 0x5023bc
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call edi
test eax, eax
jne 0x5023bc
pop edi
pop esi
add esp, 0x9c
ret
cmp dword [esp + 0x18], 2
jne 0x5023cf
cmp dword [esp + 0xc], 5
jb 0x5023cf
mov esi, 1
mov eax, esi
pop edi
pop esi
add esp, 0x9c
ret
Function at 0x505afa
Capabilities:
Create directory
Get common file path

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x104
push esi
mov esi, ecx
push 0
lea ecx, [esp + 8]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edx, dword [esp + 0x10c]
lea eax, [esp + 4]
push edx
push 0x708fb0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + eax + 0xc]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 4]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x505b4e
pop esi
add esp, 0x104
ret 8
lea eax, [esp + 4]
mov ecx, esi
push eax
push reloc.WS2_32.dll_htonl
call fcn.00505aa0
mov eax, 1
pop esi
add esp, 0x104
ret 8

Function at 0x505b7a
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x104
push esi
mov esi, ecx
push 0
lea ecx, [esp + 8]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edx, dword [esp + 0x10c]
lea eax, [esp + 4]
push edx
push 0x708fb0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + eax + 0xc]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 4]
mov ecx, esi
push 0
push 0
push edx
call fcn.00501a10
test eax, eax
jne 0x505bd1
pop esi
add esp, 0x104
ret 8
lea eax, [esp + 4]
push eax
call fcn.00621fe0
add esp, 4
test eax, eax
je 0x505bee
xor eax, eax
pop esi
add esp, 0x104
ret 8
lea ecx, [esp + 4]
push ecx
push reloc.WS2_32.dll_recv
mov ecx, esi
call fcn.00505aa0
mov eax, 1
pop esi
add esp, 0x104
ret 8

Function at 0x505c2b
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x66795b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
call fcn.0061cfc4
mov edi, dword [esp + 0x140]
push 0
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x138], 0
call fcn.0061d087
test eax, eax
lea ecx, [esp + 8]
jne 0x505c7e
call fcn.0061d03d
lea ecx, [esp + 8]
mov dword [esp + 0x130], 0xffffffff
call fcn.0061d001
xor eax, eax
jmp 0x505d15
call fcn.0061d03d
mov eax, dword [esp + 0x144]
push 0
lea ecx, [esp + 0x28]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edx, dword [esp + 0x13c]
mov eax, dword [esp + 0x138]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
lea edx, [esp + 0x30]
push str._s_s_s.lnk
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [esp + 0x24]
mov ecx, esi
push eax
push edi
call fcn.00505db0
test eax, eax
jne 0x505ceb
lea ecx, [esp + 8]
mov dword [esp + 0x130], 0xffffffff
call fcn.0061d001
xor eax, eax
jmp 0x505d15
lea ecx, [esp + 0x24]
push ecx
push reloc.WS2_32.dll_bind
mov ecx, esi
call fcn.00505aa0
lea ecx, [esp + 8]
mov dword [esp + 0x130], 0xffffffff
call fcn.0061d001
mov eax, 1
mov ecx, dword [esp + 0x128]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x12c
ret 0x10
Function at 0x505d3a
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x104
push esi
mov esi, ecx
push 0
lea ecx, [esp + 8]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edx, dword [esp + 0x110]
mov eax, dword [esp + 0x10c]
push edx
lea ecx, [esp + 8]
push eax
push ecx
lea edx, [esp + 0x10]
push str._s_s_s.lnk
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x505d8e
pop esi
add esp, 0x104
ret 0xc
lea ecx, [esp + 4]
push ecx
push reloc.WS2_32.dll_connect
mov ecx, esi
call fcn.00505aa0
mov eax, 1
pop esi
add esp, 0x104
ret 0xc

Function at 0x505db0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
lea eax, [esp]
push eax
push 0x6db510
push 1
push 0
push 0x6db500
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x505dde
xor eax, eax
add esp, 0x210
ret 8
mov eax, dword [esp]
mov edx, dword [esp + 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp]
lea edx, [esp + 4]
push edx
push 0x6db5b0
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x505e12
xor eax, eax
add esp, 0x210
ret 8
mov ecx, dword [esp + 0x218]
lea eax, [esp + 8]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push 2
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, 1
add esp, 0x210
ret 8
Function at 0x507b00
Capabilities:
Capture screenshot
Open clipboard
Write clipboard data

Disassembly:
sub esp, 0x10
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
push edi
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x507b28
xor eax, eax
pop edi
add esp, 0x10
ret 0xc
push ebx
push ebp
push esi
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, dword [edi]
mov ebx, dword [edi + 8]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
mov edi, dword [edi + 0xc]
push 8
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xa
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test ebp, ebp
jge 0x507b74
xor ebp, ebp
mov ecx, dword [esp + 0x24]
test ecx, ecx
jge 0x507b84
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x10]
cmp ebx, ecx
jle 0x507b8e
mov ebx, ecx
cmp edi, eax
jle 0x507b94
mov edi, eax
mov edx, dword [esp + 0x24]
sub ebx, ebp
sub edi, edx
push edi
push ebx
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x24]
push 0xcc0020
push edx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
push ebx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push edi
call esi
mov eax, dword [esp + 0x28]
pop esi
sub eax, 0
pop ebp
pop ebx
je 0x507c1c
dec eax
jne 0x507c33
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x507c33
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esp + 4]
push eax
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esp + 8], 1
jmp 0x507c33
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 4]
push ecx
mov ecx, dword [esp + 0x14]
push edx
call fcn.00507d30
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 8]
pop edi
add esp, 0x10
ret 0xc
Function at 0x507c50
Capabilities:
Capture screenshot

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x507c6c
xor eax, eax
pop edi
add esp, 8
ret 4
push ebx
push ebp
push esi
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, dword [edi]
mov ebx, dword [edi + 8]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 4]
mov edi, dword [edi + 0xc]
push 8
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xa
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test ebp, ebp
jge 0x507cb8
xor ebp, ebp
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jge 0x507cc8
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x14]
cmp ebx, ecx
jle 0x507cd2
mov ebx, ecx
cmp edi, eax
jle 0x507cd8
mov edi, eax
mov edx, dword [esp + 0x1c]
sub ebx, ebp
sub edi, edx
push edi
push ebx
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x1c]
push 0xcc0020
push edx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
push ebx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push edi
call esi
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 4
Function at 0x5099e0
Capabilities:
Enumerate network shares

Disassembly:
push 0xffffffffffffffff
push 0x667ba8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x64]
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], ebx
call fcn.0064b12d
push 0x400
mov dword [esp + 0x60], ebx
call fcn.0061ffd7
mov ebp, eax
mov eax, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x30], ebp
cmp dword [eax - 8], ebx
jne 0x509a3e
push ebp
mov ecx, esi
call fcn.00509e40
mov ebx, eax
jmp 0x509a72
push 0x104
mov ebx, 1
call fcn.0061ffd7
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebp], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x2000
call fcn.0061ffd7
add esp, 4
mov esi, eax
test ebx, ebx
mov dword [esp + 0x2c], esi
jle 0x509bbe
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebx
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x34]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp]
mov eax, 2
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x34]
push edx
push ecx
push eax
push 1
push eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x48], 1
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
jne 0x509b98
mov ecx, 0x800
xor eax, eax
mov edi, esi
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x28], 0x2000
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x68]
push esi
push ecx
push edx
call sub.MPR.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x509b8e
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], 0
test eax, eax
jbe 0x509ad9
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x10]
lea ebp, [esi + 0x20]
lea ebx, [eax + ecx*4]
push 0x104
call fcn.0061ffd7
mov edx, eax
or ecx, 0xffffffff
mov dword [ebx], edx
mov edi, dword [esi + 0x14]
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add ebx, 4
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov esi, ebp
inc ecx
inc eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x64]
add ebp, 0x20
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x509b2e
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x1c]
jmp 0x509ad9
mov ecx, dword [esp + 0x18]
push ecx
call sub.MPR.dll_WNetCloseEnum
mov edx, dword [ebp]
push edx
call fcn.0061feee
mov eax, dword [esp + 0x24]
add esp, 4
add ebp, 4
dec eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
jne 0x509a95
mov ebp, dword [esp + 0x30]
push ebp
call fcn.0061feee
push esi
call fcn.0061feee
add esp, 8
lea ecx, [esp + 0x24]
mov dword [esp + 0x5c], 0xffffffff
call fcn.0064b0bf
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 8