joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e8b2
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
push ebx
push dword [ebp + 8]
xor eax, eax
mov ebx, 0x104
mov word [ebp - 4], ax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004600c8
add esp, 0xc
test al, al
je 0x45e9ed
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004600a0
add esp, 0xc
test al, al
je 0x45e9ed
push 0x401540
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004600a0
add esp, 0xc
test al, al
je 0x45e9ed
push esi
push edi
push 0x250
xor esi, esi
lea eax, [ebp - 0x45c]
push esi
push eax
call fcn.0045ff61
add esp, 0xc
lea eax, [ebp - 0x45c]
push esi
push esi
push 1
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45e9eb
xor eax, eax
mov word [ebp - 0x460], ax
mov word [ebp - 0x668], ax
test byte [ebp - 0x45c], 0x10
je 0x45e9d2
cmp word [ebp - 0x228], 0
lea eax, [ebp - 0x430]
lea esi, [ebp - 0x228]
cmove esi, eax
push esi
call fcn.0045edcc
pop ecx
test al, al
jne 0x45e9d2
push dword [ebp + 8]
lea eax, [ebp - 0x668]
push ebx
push eax
call fcn.004600c8
add esp, 0xc
test al, al
je 0x45e9d2
push esi
lea eax, [ebp - 0x668]
push ebx
push eax
call fcn.004600a0
add esp, 0xc
test al, al
je 0x45e9d2
lea eax, [ebp - 0x668]
push eax
call fcn.0045ef0c
pop ecx
lea eax, [ebp - 0x45c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45e96e
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45ea95
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
xor eax, eax
push esi
mov word [ebp - 4], ax
mov esi, 0x104
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x45eae5
cmp eax, esi
jae 0x45eae5
xor esi, esi
push dword [esi + 0x401548]
lea eax, [ebp - 0x20c]
push eax
call fcn.0045e8b2
add esi, 4
pop ecx
pop ecx
cmp esi, 8
jb 0x45eac9
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x45ecc4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
xor eax, eax
push esi
push edi
mov word [ebp - 4], ax
mov edi, 0x104
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x45ed15
cmp eax, edi
jae 0x45ed15
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call fcn.0045e76c
add esp, 0xc
test al, al
je 0x45ed15
mov al, 1
jmp 0x45ed68
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, edi
jae 0x45ed66
test eax, eax
je 0x45ed66
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00460005
pop ecx
pop ecx
lea ecx, [ebp - 0x20c]
cmp eax, ecx
je 0x45ed66
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
and dword [esi], ecx
and dword [esi + 4], ecx
push esi
push dword [ebp + 0xc]
push eax
call fcn.0045e76c
add esp, 0xc
jmp 0x45ed68
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45ef0c
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x104
push ebx
push esi
call fcn.00460105
push 0x401534
push ebx
push esi
mov dword [ebp + 8], eax
call fcn.004600a0
add esp, 0x14
test al, al
je 0x45efea
push edi
push 0x250
lea eax, [ebp - 0x250]
push 0
push eax
call fcn.0045ff61
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45efd8
cmp word [ebp - 0x1c], 0
lea eax, [ebp - 0x224]
lea ebx, [ebp - 0x1c]
cmove ebx, eax
push ebx
call fcn.0045edcc
pop ecx
test al, al
jne 0x45efbf
mov eax, dword [ebp + 8]
mov ecx, esi
inc eax
push eax
call fcn.0045ff44
push ebx
push 0x104
push esi
call fcn.004600a0
add esp, 0xc
test al, al
je 0x45efbf
test byte [ebp - 0x250], 0x10
push esi
je 0x45efb9
call fcn.0045ef0c
pop ecx
jmp 0x45efbf
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45ef6c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
mov ecx, esi
call fcn.0045ff44
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45f03b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push edi
push 0x40
xor edi, edi
mov dword [ebp - 0x58], 0x44
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.0045ff61
add esp, 0xc
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
movups xmmword [ebp - 0x14], xmm0
push eax
lea eax, [ebp - 0x58]
push eax
push edi
push edi
push 0x8000000
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x45f094
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x6a
jmp 0x45f0e5
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [ebp - 0x14]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x45f0d6
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x45f0d6
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov dword [eax + 4], edi
jmp 0x45f0ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x6b
mov dword [ecx + 4], eax
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x460232
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push dword [esi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x46024c
xor al, al
jmp 0x4602bc
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x46025e
xor al, al
jmp 0x4602bb
push ebx
push dword [esi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4602ab
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x4602af
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4602ba
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
setne al
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4604e0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push 0x40184c
push 1
push ebx
mov dword [ebp - 0xc], ebx
push 0x40d3b0
mov dword [ebp - 8], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x460580
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp - 8]
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
jb 0x46051c
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xc]
call fcn.0042a130
mov ecx, dword [esi]
lea edx, [ebp - 4]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [eax]
push esi
call dword [ecx + 0xc]
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.0042a150
test esi, esi
pop esi
js 0x460573
cmp byte [ebp + 8], bl
je 0x460562
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x460573
mov ecx, dword [ebp + 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
mov bl, 1
mov dword [ebp - 4], eax
mov dword [ecx], edx
jmp 0x460576
mov eax, dword [ebp - 4]
test eax, eax
je 0x460580
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x46058d
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461592
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [ebp - 0x1c]
push 0x4032b8
mov dword [ebp - 4], ebx
call fcn.0041c2b0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x50]
call fcn.0041c310
lea eax, [ebp - 0x50]
push eax
call fcn.004793a2
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x38], eax
call fcn.0041ddb0
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x4616b5
push 0x401768
push 0x4044c8
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4616b5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4616b5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4616b5
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0x1c]
push ebx
push eax
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
call fcn.0041ded0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push 0x4032e8
push eax
call fcn.0043c360
add esp, 0xc
lea ecx, [ebp - 0x1c]
push eax
call fcn.004286e0
xor ebx, ebx
lea ecx, [ebp - 0x34]
push ebx
push 1
call fcn.0041ddb0
push ebx
push ecx
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
push eax
call fcn.00423a80
lea eax, [ebp - 0x34]
push eax
call fcn.00429c10
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00421af0
mov ecx, dword [ebp + 8]
add esp, 0x14
push eax
call fcn.00422a40
lea ecx, [ebp - 0x70]
call fcn.004219a0
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.0041d9f0
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.0041ddb0
lea ecx, [ebp - 0x50]
call fcn.0045e65d
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461b30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x4c]
push esi
mov dword [ebp - 4], ebx
call fcn.0041c180
lea eax, [ebp - 0x4c]
push eax
push 2
call fcn.0042d7d0
pop ecx
pop ecx
test al, al
jne 0x461b60
xor bl, bl
jmp 0x461c62
lea ecx, [ebp - 0x34]
call fcn.0041c180
and dword [ebp - 0xc], ebx
xor eax, eax
mov word [ebp - 0x1c], ax
mov esi, 0x104
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], 7
push esi
push eax
call fcn.00428450
pop ecx
pop ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x461bbc
cmp eax, esi
jae 0x461bbc
push ecx
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
push eax
call fcn.00423a50
lea ecx, [ebp - 0x64]
call fcn.00426480
push eax
lea ecx, [ebp - 0x34]
call fcn.00426500
lea ecx, [ebp - 0x64]
jmp 0x461be7
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00426c40
mov ecx, eax
call fcn.00426c40
push eax
lea ecx, [ebp - 0x34]
call fcn.00426500
lea ecx, [ebp - 0x64]
call fcn.0041c080
lea ecx, [ebp - 0x7c]
call fcn.0041c080
push 0x56
mov esi, 0x403010
push esi
call fcn.0041b4c0
pop ecx
pop ecx
cmp eax, 1
jl 0x461c32
push 0xffffffffffffffff
push 0x363
xor ebx, ebx
lea ecx, [ebp - 0x12c]
push esi
inc ebx
call fcn.0041b540
lea ecx, [ebp - 0x34]
add eax, 8
push ecx
push 0x4033ac
push eax
call fcn.004200c0
pop ecx
pop ecx
push eax
call fcn.00460b8f
pop ecx
pop ecx
test bl, 1
je 0x461c42
lea ecx, [ebp - 0x12c]
call fcn.0041b6f0
lea eax, [ebp - 0x34]
push eax
call fcn.0042cf20
pop ecx
push 0
push 1
lea ecx, [ebp - 0x1c]
mov bl, al
call fcn.0041d9f0
lea ecx, [ebp - 0x34]
call fcn.0041c080
lea ecx, [ebp - 0x4c]
call fcn.0041c080
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4622f2
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
mov edi, 0x4043ac
push edi
call fcn.00422070
test al, al
je 0x4624a3
push edi
mov bl, 1
mov dword [ebp - 8], edi
call fcn.0041a600
pop ecx
mov dword [ebp - 4], eax
mov ecx, esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00422190
push 0x4043cc
mov ecx, esi
call fcn.00422070
xor edi, edi
test al, al
je 0x4623ca
mov eax, 0x4043cc
push eax
mov dword [ebp - 0x10], eax
call fcn.0041a600
pop ecx
mov dword [ebp - 0xc], eax
mov ecx, esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00422210
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 4], edi
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0042ed60
pop ecx
pop ecx
test al, al
je 0x4623bb
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
call fcn.0042dff0
pop ecx
pop ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.0042e180
xor ecx, ecx
movzx ebx, bl
test al, al
cmovne ebx, ecx
lea ecx, [ebp - 0x10]
call fcn.0042df50
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.0041d9f0
test bl, bl
je 0x4623d5
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push ecx
push ecx
mov esi, esp
mov eax, 0x403128
push eax
mov dword [esi], eax
call fcn.0041a5d0
pop ecx
mov dword [esi + 4], eax
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00426c40
mov ecx, eax
call fcn.00426e30
push eax
call fcn.0042b8a0
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
call fcn.0041c080
lea ecx, [ebp - 0x58]
call fcn.0041c080
lea eax, [ebp - 0x40]
push 1
push eax
call fcn.0042b8a0
pop ecx
pop ecx
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.00426c40
mov ecx, eax
call fcn.00426d80
mov edi, 0x403140
mov esi, eax
push edi
call fcn.0041a5d0
pop ecx
push eax
push edi
push dword [esi + 0x10]
mov ecx, esi
push 0
call fcn.00424730
mov ebx, eax
lea ecx, [ebp - 0x58]
neg ebx
sbb bl, bl
call fcn.0041c080
lea ecx, [ebp - 0x28]
call fcn.0041c080
add bl, 1
je 0x462499
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x40]
call fcn.00426c40
cmp dword [eax + 0x14], 8
jb 0x46248a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x58]
call fcn.0041c080
lea ecx, [ebp - 0x40]
call fcn.0041c080
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462b09
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push 0x4018e0
lea ecx, [ebp - 0x18]
call fcn.0041c120
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
cmovae eax, dword [ebp - 0x18]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, dword [ebp + 8]
mov ecx, esi
push eax
call fcn.0042d100
push dword [esi]
call fcn.0042b5d0
pop ecx
test al, al
je 0x462b5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x462b5c
mov bl, 1
jmp 0x462b5e
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x18]
call fcn.0041d9f0
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x463d82
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
xor ebx, ebx
push edi
push 0x60
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x40c], ebx
call esi
mov edi, eax
test edi, edi
jne 0x463dca
push 2
push ebx
push dword [ebp + 8]
call esi
mov edi, eax
test edi, edi
jne 0x463dca
call fcn.004617c3
mov esi, eax
jmp 0x463e62
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x463de4
call fcn.004617c3
jmp 0x463e55
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x463ddd
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x463e0a
mov esi, 0x8007000e
jmp 0x463e57
push eax
lea ecx, [ebp - 0x40c]
call fcn.004611f6
cmp dword [ebp - 0x40c], 0
je 0x463e03
push esi
push dword [ebp - 0x40c]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x463ddd
mov eax, dword [ebp - 0x40c]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 8]
push dword [ebp - 0x40c]
call fcn.00463c74
mov esi, eax
test edi, edi
je 0x463e62
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x408]
cmp dword [ebp - 0x40c], eax
je 0x463e7b
lea ecx, [ebp - 0x40c]
call fcn.00462106
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4654f9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x46550c
push 0xd
pop eax
jmp 0x465550
push esi
xor eax, eax
push edi
mov dword [ebp + 0xc], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp + 0xc]
jne 0x46551f
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x465517
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x465557
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x465569
push 0xd
pop eax
jmp 0x46559b
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x465572
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x46982a
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x18], edi
push eax
push ebx
movups xmmword [ebp - 0x38], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebp - 0x2c]
mov esi, eax
sub ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push ecx
push eax
push edi
mov dword [ebp - 4], esi
call ebx
push eax
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xe
push esi
push 0x318
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
push eax
push dword [ebp + 8]
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebp - 0x1c]
mov edi, eax
sub ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
push ecx
push eax
push esi
mov dword [ebp - 8], edi
call ebx
push eax
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea esi, [ebp - 0x28]
mov ebx, eax
lea edi, [ebp - 0x48]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x48]
push 2
push eax
push dword [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 4]
sub eax, dword [ebp - 0x24]
push 0xcc0020
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push esi
push eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
push eax
push edi
push edi
mov edi, dword [ebp - 8]
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
push dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp + 8]
test eax, eax
je 0x469949
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebx, dword [sym.imp.GDI32.dll_DeleteDC]
test edi, edi
je 0x469956
push edi
call ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x469964
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test esi, esi
je 0x46996b
push esi
call ebx
lea ecx, [ebp - 0x18]
call fcn.004694fc
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4699e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
push esi
push edi
cmp byte [0x4d4504], bl
jne 0x469a1e
lea eax, [ebp - 8]
mov byte [0x4d4504], 1
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 1
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x20], ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
call sub.gdiplus.dll_GdiplusStartup
mov eax, dword [ebp + 8]
shr eax, 0x10
test ax, ax
je 0x469a5d
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x469b5e
lea eax, [ebp - 4]
mov dword [esi], 0x4035a0
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call sub.gdiplus.dll_GdipCreateBitmapFromFile
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
jmp 0x469b60
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x469b3f
cmp eax, 2
je 0x469b3f
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
mov dword [ebp - 0xc], ebx
call fcn.0046a6f6
mov edi, dword [ebp - 0x10]
test al, al
je 0x469ae7
push dword [ebp - 0xc]
push dword [0x4d7aa0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x469ae7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.004ad220
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 1
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jns 0x469af9
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x469af2
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x469b86
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x469b27
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push ecx
push eax
mov dword [esi], 0x4035a0
mov dword [ebp - 0xc], ebx
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
jmp 0x469b29
mov esi, ebx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test edi, edi
je 0x469b60
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x469b60
push 0x10
call sub.gdiplus.dll_GdipAlloc
test eax, eax
je 0x469b5e
push dword [ebp + 8]
mov ecx, eax
push dword [0x4d7aa0]
call fcn.0046938f
mov esi, eax
jmp 0x469b60
mov esi, ebx
test esi, esi
je 0x469af2
push ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x469b7b
mov dword [esi + 8], eax
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret