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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x30110d3d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x188
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x10], esp
call fcn.3002bab4
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.30009bb2
xor eax, eax
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], 0x30025bd0
call fcn.30009bd0
mov eax, dword [edi]
push 1
mov ecx, edi
mov dword [ebp - 4], 1
call dword [eax + 0x30]
mov esi, dword [ebp + 0x10]
push edi
push 0x102
push 8
push esi
push esi
lea ecx, [ebp - 0x198]
mov byte [ebp - 4], 2
call fcn.30029883
lea ecx, [ebp - 0x198]
mov byte [ebp - 4], 3
call fcn.30009579
push 0xd
push esi
push esi
push edi
lea ecx, [ebp - 0x198]
call fcn.300246a4
lea ecx, [ebp - 0x198]
call fcn.30031516
mov ebx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov edx, dword [esi]
mov edi, eax
mov eax, dword [esi + 4]
sub ecx, edx
sub ebx, eax
imul ebx, ecx
add ebx, edi
call dword [sym.imp.GDI32.dll_GdiFlush]
jmp 0x300313d2
mov byte [edi], 0xa
mov edx, edi
inc edi
cmp edx, ebx
ja 0x300313d9
cmp byte [edi], 0xff
jne 0x300313cb
jmp 0x300313c8
mov edi, dword [ebp + 8]
push 0xd
push esi
lea eax, [ebp - 0x198]
push esi
push eax
mov ecx, edi
call fcn.300246a4
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
call fcn.30009579
mov ecx, dword [ebp + 0x14]
push 0xd
push ecx
push esi
push edi
mov ecx, ebx
call fcn.300246a4
lea ecx, [ebp - 0x198]
call fcn.30031516
mov ebx, dword [esi + 0xc]
mov edx, dword [esi + 4]
mov ecx, dword [esi]
sub ebx, edx
mov edx, dword [esi + 8]
mov edi, eax
sub edx, ecx
imul ebx, edx
add ebx, edi
call dword [sym.imp.GDI32.dll_GdiFlush]
jmp 0x30031437
mov eax, edi
inc edi
cmp eax, ebx
ja 0x30031441
cmp byte [edi], 0xa
jne 0x30031430
mov byte [edi], 0xff
jmp 0x30031430
push 0xd
push esi
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x198]
push ecx
mov ecx, esi
call fcn.300246a4
lea ecx, [ebp - 0x198]
mov byte [ebp - 4], 2
call fcn.3003f0a3
mov edx, dword [esi]
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call dword [edx + 0x34]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.300095f2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x30031520
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x30110cd1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x1c]
push edi
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x14], esi
call fcn.30024318
lea edi, [esi + 0x44]
xor ebp, ebp
mov ecx, edi
mov dword [esp + 0x18], ebp
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], ebp
mov dword [esi + 0x38], ebp
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x40], ebp
mov dword [esp + 0x24], edi
call fcn.30009bb2
push 0xffffffffffffffff
push ebp
mov ecx, edi
mov byte [esp + 0x20], 1
mov dword [edi + 0x18], ebp
mov dword [edi], 0x30025bd0
call fcn.30009a32
mov ecx, dword [esp + 0x10]
mov dword [esi], 0x30030430
mov dword [esi + 0xc], 0x40
mov dword [esi + 0x10], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x10
ret 8

Function at 0x30033069
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x30109905
call fcn.300088d4
sub esp, 0x10
mov dword [ebp - 0x1c], ecx
push 0x30155b10
lea ecx, [ebp - 0x10]
call fcn.300219f0
and dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x30155b30
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x300330a7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x1c]
jne 0x30050af6
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x300330ba
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 8], 2
je 0x30050b06
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], 4
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_SetEvent]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.30021a06
push 0x1388
mov eax, dword [ebp - 0x1c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x30050b16
push 0x30155b10
lea ecx, [ebp - 0x18]
call fcn.300219f0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
and dword [eax + 0x10], 0
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
and dword [eax + 0x14], 0
mov eax, dword [ebp - 0x1c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
and dword [eax], 0
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
and dword [eax + 0x18], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.30021a06
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
add eax, 0x1c
mov dword [ebp - 0x14], eax
jmp 0x30033091
mov eax, dword [ebp - 0x1c]
push dword [eax]
call fcn.300c32b3
pop ecx
jmp 0x300330dd
push 1
mov eax, dword [ebp - 0x1c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x30033104
Function at 0x3003397d
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.30019822
cmp dword [0x30154734], 1
mov esi, dword [esp + 0x10]
je 0x30050d04
mov dword [0x30154730], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x3015472c], bl
jne 0x300339f0
cmp dword [0x30159218], 0
je 0x300339de
mov edi, dword [0x30159214]
sub edi, 4
cmp dword [0x30159218], edi
ja 0x300339de
mov eax, dword [edi]
test eax, eax
je 0x300339d3
call eax
sub edi, 4
cmp dword [0x30159218], edi
jbe 0x300339cb
push 0x301507d0
push 0x301507c8
call fcn.300197a7
add esp, 8
push 0x301507d8
push 0x301507d4
call fcn.300197a7
add esp, 8
test ebx, ebx
jne 0x30050d17
mov dword [0x30154734], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x30033996
call fcn.30019842
pop edi
pop esi
pop ebx
ret
Function at 0x3005becd
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push dword [ebp + 8]
lea ecx, [ebp - 0x21c]
call fcn.3001fba4
mov ecx, dword [ebp + 0xc]
push 2
call fcn.30008f21
push eax
lea ecx, [ebp - 0x21c]
call fcn.30008f21
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x3005bf35
mov ecx, dword [ebp + 0xc]
call fcn.30008f21
push eax
lea ecx, [ebp - 0x21c]
call fcn.30008f21
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x3005bf35
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.3005b8ed
pop ecx
pop ecx
leave
ret

Function at 0x3005c286
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [eax]
test ebx, ebx
jle 0x3005c2eb
push edi
push esi
mov esi, 0xfffe
cmp ebx, esi
jbe 0x3005c2ee
sub ebx, esi
mov edi, esi
lea eax, [ebp + 0xc]
push 0
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x3005c2de
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x3005c2ce
push 0
push eax
call fcn.3005b8ed
pop ecx
pop ecx
cmp dword [ebp + 0xc], edi
jae 0x3005c2de
push 0
push 0x70
call fcn.3005b8ed
pop ecx
pop ecx
test ebx, ebx
jle 0x3005c2e9
add dword [ebp + 0x10], esi
test ebx, ebx
jg 0x3005c29a
pop esi
pop edi
pop ebx
pop ebp
ret
movzx edi, bx
xor ebx, ebx
jmp 0x3005c2a2
Function at 0x3005c780
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1110
call fcn.3003f441
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x8a0]
call fcn.3001fba4
push dword [ebp + 0xc]
lea ecx, [ebp - 0x24c]
call fcn.3001fba4
xor eax, eax
cmp dword [ebp - 0x898], eax
jne 0x3005c7c6
xor ecx, ecx
cmp dword [ebp - 0x244], eax
sete cl
mov eax, ecx
pop edi
pop esi
leave
ret
cmp dword [ebp - 0x244], eax
je 0x3005c993
lea ecx, [ebp - 0x468]
call fcn.3001fa3d
lea ecx, [ebp - 0x684]
call fcn.3001fa3d
lea eax, [ebp - 0x8a0]
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.3005c9b0
pop ecx
lea eax, [ebp - 0x24c]
pop ecx
push eax
lea eax, [ebp - 0x684]
push eax
call fcn.3005c9b0
pop ecx
lea eax, [ebp - 0x684]
pop ecx
push eax
lea ecx, [ebp - 0x468]
call fcn.300ff9a3
test eax, eax
jne 0x3005c993
lea eax, [ebp - 0x8a0]
lea ecx, [ebp - 0x468]
push eax
call fcn.300ffb58
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 0x684]
push eax
call fcn.300ffb58
lea eax, [ebp - 0x468]
push eax
call fcn.3005c722
pop ecx
lea eax, [ebp - 0x684]
push eax
call fcn.3005c722
pop ecx
lea eax, [ebp - 0x684]
push eax
lea ecx, [ebp - 0x468]
call fcn.300ff9a3
test eax, eax
je 0x3005c98b
lea ecx, [ebp - 0xcd8]
call fcn.3001facc
lea ecx, [ebp - 0xabc]
call fcn.3001facc
lea eax, [ebp - 0xcd8]
push eax
push dword [ebp + 8]
call fcn.3005bf37
pop ecx
test eax, eax
pop ecx
je 0x3005c8de
lea eax, [ebp - 0xabc]
push eax
push dword [ebp + 0xc]
call fcn.3005bf37
pop ecx
test eax, eax
pop ecx
je 0x3005c8de
lea eax, [ebp - 0xabc]
push eax
lea eax, [ebp - 0xcd8]
push eax
call fcn.3005bbc8
pop ecx
pop ecx
jmp 0x3005c7c2
lea ecx, [ebp - 0x30]
call fcn.3005c99a
lea ecx, [ebp - 0x18]
call fcn.3005c99a
lea eax, [ebp - 0x8a0]
lea ecx, [ebp - 0xef4]
push eax
call fcn.300185c4
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 0x1110]
push eax
call fcn.300185c4
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xef4]
push eax
call fcn.3001840d
pop ecx
test eax, eax
pop ecx
je 0x3005c993
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1110]
push eax
call fcn.3001840d
pop ecx
test eax, eax
pop ecx
je 0x3005c993
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x18]
jne 0x3005c993
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 8]
jne 0x3005c993
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x14]
jne 0x3005c993
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 4]
jne 0x3005c993
lea ecx, [ebp - 0x8a0]
call fcn.30008f21
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call esi
lea ecx, [ebp - 0x24c]
mov edi, eax
call fcn.30008f21
push eax
call esi
cmp edi, 0xffffffff
je 0x3005c993
cmp edi, eax
jne 0x3005c993
push 1
pop eax
jmp 0x3005c7c2
xor eax, eax
jmp 0x3005c7c2
Function at 0x3005cb36
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x30108fea
call fcn.300088d4
push ecx
sub esp, 0x328
push ebx
push esi
xor ebx, ebx
push edi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
jne 0x3005cb9e
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push ebx
push ebx
jne 0x3005cb70
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
call esi
mov edi, eax
push edi
call fcn.3000882f
pop ecx
mov dword [ebp - 0x14], eax
push eax
push edi
call esi
cmp eax, edi
jb 0x3005cb95
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
call fcn.3005b8ed
pop ecx
pop ecx
cmp dword [ebp + 0xc], ebx
je 0x3005cc51
mov ecx, dword [ebp + 0xc]
call fcn.30008f21
lea ecx, [ebp - 0x11c]
push ecx
push ebx
push 0x30150df0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
cmp eax, ebx
jne 0x3005cbcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
call fcn.3005b8ed
pop ecx
pop ecx
cmp dword [ebp + 0x10], ebx
je 0x3005cbf2
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, ebx
jne 0x3005cbf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
call fcn.3005b8ed
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x11c]
push 1
push eax
lea ecx, [ebp - 0x338]
mov dword [ebp - 0x334], ebx
mov dword [ebp - 0x330], ebx
mov dword [ebp - 0x32c], ebx
mov dword [ebp - 0x338], 0x3001fa60
call fcn.300216b5
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x338]
push eax
call fcn.3001fdc8
cmp dword [ebp + 0xc], ebx
jne 0x3005cc40
push dword [ebp - 0x14]
call fcn.30008a6e
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
mov eax, dword [ebp - 0x14]
jmp 0x3005cba6
Function at 0x3005d95d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x544
mov ecx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0xff
mov dword [ebp - 4], edi
call fcn.30008f21
push eax
push dword [ebp + 0xc]
call fcn.30063933
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.30008eca
push eax
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ole32.dll_StringFromCLSID]
push edi
mov esi, 0x3000f670
push 1
push str.CLSID_
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x230], esi
call fcn.300216b5
push 3
lea ecx, [ebp - 0x444]
push dword [ebp - 8]
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x444], esi
call fcn.30008ed9
lea eax, [ebp - 0x444]
lea ecx, [ebp - 0x230]
push eax
call fcn.30016785
push dword [ebp - 8]
call fcn.3005d904
pop ecx
push str.VersionIndependentProgId
lea ecx, [ebp - 0x230]
call fcn.300ffb6e
lea eax, [ebp - 4]
lea ecx, [ebp - 0x230]
push eax
call fcn.30008f21
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
cmp esi, edi
jne 0x3005da78
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x544]
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov esi, eax
cmp esi, edi
jne 0x3005da78
lea eax, [ebp - 0x544]
push eax
push dword [ebp + 0xc]
call fcn.30063933
pop ecx
pop ecx
cmp dword [ebp - 4], edi
je 0x3005da86
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, edi
pop edi
pop esi
sete al
leave
ret

Function at 0x3005f8b8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
cmp dword [ecx + 4], 0
jne 0x3005f8cd
xor eax, eax
leave
ret 8
lea eax, [ebp - 0xc]
push edi
push eax
push 0
push 0
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 4], 0x100
push eax
push dword [ebp + 8]
push dword [ecx + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [ebp + 0xc]
mov edi, eax
lea eax, [ebp - 0x10c]
push eax
call fcn.30016adf
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x3005f8c9

Function at 0x3005f911
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x3005f92a
xor eax, eax
pop esi
leave
ret 8
lea eax, [ebp - 4]
mov ecx, dword [ebp + 8]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0
mov dword [ebp - 4], 0x100
call fcn.30008e07
push eax
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp + 0xc]
mov esi, eax
lea eax, [ebp - 0x104]
push eax
call fcn.30016adf
xor eax, eax
test esi, esi
sete al
jmp 0x3005f925
Function at 0x30063c1e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x30063c34
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
call fcn.30008f21
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ecx, dword [ebp + 0x10]
call fcn.30063c72
push eax
push 0
mov ecx, dword [ebp + 0x10]
call fcn.30008e07
push eax
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop ebp
ret
Function at 0x300642ac
Capabilities:
Set registry value

Disassembly:
mov eax, 0x30109ac7
call fcn.300088d4
sub esp, 0x22c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x300642cf
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 1
push str..pps
lea ecx, [ebp - 0x234]
call fcn.30005264
push dword [ebp + 8]
push 0xf003f
push 0
lea ecx, [ebp - 0x234]
call fcn.30008f21
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
push 0xf003f
push 0
lea ecx, [ebp - 0x234]
call fcn.30008f21
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x30064358
push dword [ebp + 8]
lea ecx, [ebp - 0x234]
call fcn.30008f21
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x30064358
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
push 0
push 1
push str.PowerPoint.SlideShow.8
lea ecx, [ebp - 0x20]
call fcn.3001fae4
and dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.30063c72
push eax
push 0
lea ecx, [ebp - 0x20]
call fcn.30008e07
push eax
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x238], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.3001f90d
mov eax, dword [ebp - 0x238]
jmp 0x3006434c

Function at 0x300643b0
Capabilities:
Set registry value

Disassembly:
mov eax, 0x30109ada
call fcn.300088d4
sub esp, 0x22c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x300643d3
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 1
push 0x30151580
lea ecx, [ebp - 0x234]
call fcn.30005264
push dword [ebp + 8]
push 0xf003f
push 0
lea ecx, [ebp - 0x234]
call fcn.30008f21
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
push 0xf003f
push 0
lea ecx, [ebp - 0x234]
call fcn.30008f21
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x3006445c
push dword [ebp + 8]
lea ecx, [ebp - 0x234]
call fcn.30008f21
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x3006445c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
push 0
push 1
push 0x30151588
lea ecx, [ebp - 0x20]
call fcn.3001fae4
and dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.30063c72
push eax
push 0
lea ecx, [ebp - 0x20]
call fcn.30008e07
push eax
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x238], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.3001f90d
mov eax, dword [ebp - 0x238]
jmp 0x30064450
Function at 0x30065b01
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x30109bb1
call fcn.300088d4
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
push edi
push dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x14], esi
push dword [ebp + 8]
call fcn.3006cee0
mov eax, dword [ebp + 0x18]
mov ebx, 0x30155b70
mov dword [ebp - 4], edi
push ebx
mov word [esi + 0x40], di
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], 0x20106
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov word [esi + 0x7c], 0x7530
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov dword [esi], 0x30118b50
mov byte [ebp - 4], 1
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ax, word [ebp + 0x14]
push 5
mov word [esi + 0x30], ax
mov byte [ebp - 4], 2
movzx eax, word [ebp + 0x10]
push eax
push dword [0x30155c48]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x30065c9c
push eax
push dword [0x30155c48]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [ebp + 0x14], eax
je 0x30065c41
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, edi
je 0x30065c97
cmp dword [esi + 0x38], 3
jne 0x30065c79
mov ecx, dword [esi + 0xc]
call fcn.30009208
cmp dword [0x301555d8], edi
push esi
push 0x30065a12
push eax
push ebx
push dword [0x30155c40]
je 0x30065c87
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
cmp eax, edi
mov dword [esi + 8], eax
je 0x30065c97
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
cmp word [esi + 0x30], di
jne 0x30065c92
and ah, 0xfb
push eax
push 0xffffffffffffffec
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ebx, 0x30155b70
cmp dword [esi + 0x50], edi
jne 0x30065c4d
mov ecx, esi
call fcn.30066172
mov ecx, esi
call fcn.3006d079
mov ecx, esi
call fcn.3006d454
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14
push dword [esi + 0xc]
call fcn.3001ace6
pop ecx
jmp 0x30065bea
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
jmp 0x30065c0a
or ah, 4
jmp 0x30065c27
inc dword [esi + 0x50]
jmp 0x30065c33
inc dword [esi + 0x50]
jmp 0x30065c41
Function at 0x30065cd9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x30109bcb
call fcn.300088d4
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
push edi
push dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x14], esi
push dword [ebp + 8]
call fcn.3006cee0
mov eax, dword [ebp + 0x1c]
mov ebx, 0x30155b70
mov dword [ebp - 4], edi
push ebx
mov word [esi + 0x40], di
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], 0x20106
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov word [esi + 0x7c], 0x7530
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov dword [esi], 0x30118b50
mov byte [ebp - 4], 1
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ax, word [ebp + 0x18]
push 5
mov word [esi + 0x30], ax
mov byte [ebp - 4], 2
movzx eax, word [ebp + 0x10]
push eax
push dword [0x30155c48]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x30065e44
push eax
push dword [0x30155c48]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [ebp + 0x18], eax
je 0x30065e44
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
je 0x30065dd6
cmp dword [0x301555d8], edi
push esi
push 0x30065a12
push dword [ebp + 0x14]
push eax
push dword [0x30155c40]
je 0x30065e17
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
cmp eax, edi
mov dword [esi + 8], eax
jne 0x30065e1f
inc dword [esi + 0x50]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x50], edi
jne 0x30065deb
mov ecx, esi
call fcn.30066172
mov ecx, esi
call fcn.3006d079
mov ecx, esi
call fcn.3006d454
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x18
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
jmp 0x30065dcc
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
cmp word [esi + 0x30], di
jne 0x30065e3f
and ah, 0xfb
push eax
push 0xffffffffffffffec
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp 0x30065dd6
or ah, 4
jmp 0x30065e31
inc dword [esi + 0x50]
jmp 0x30065ddf