joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4232b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x45a910], 0
jne 0x4233b6
movzx eax, byte [0x45a86a]
test eax, eax
jne 0x4233b6
cmp dword [0x45a914], 0
jne 0x4232e9
push str.Wintrust.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x45a914], eax
push str.CryptCATAdminAcquireContext
mov ecx, dword [0x45a914]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45a8f8], eax
push str.CryptCATAdminCalcHashFromFileHandle
mov edx, dword [0x45a914]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45a8fc], eax
push str.CryptCATAdminEnumCatalogFromHash
mov eax, dword [0x45a914]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45a900], eax
push str.CryptCATCatalogInfoFromContext
mov ecx, dword [0x45a914]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45a904], eax
push str.CryptCATAdminReleaseCatalogContext
mov edx, dword [0x45a914]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45a908], eax
push str.CryptCATAdminReleaseContext
mov eax, dword [0x45a914]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45a90c], eax
push str.WinVerifyTrust
mov ecx, dword [0x45a914]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45a910], eax
cmp dword [0x45a910], 0
je 0x4233a9
cmp dword [0x45a8f8], 0
je 0x4233a9
cmp dword [0x45a90c], 0
je 0x4233a9
mov byte [ebp - 1], 0
jmp 0x4233ad
mov byte [ebp - 1], 1
mov dl, byte [ebp - 1]
mov byte [0x45a86a], dl
movzx eax, byte [0x45a86a]
neg eax
sbb eax, eax
add eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x423560
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x4566e4]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0x44d614
push 0
mov eax, dword [ebp + 0x10]
push eax
call fcn.00403650
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x423641
lea ecx, [ebp - 0x260]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x264], eax
cmp dword [ebp - 0x264], 0xffffffff
je 0x423629
lea eax, [ebp - 0x260]
push eax
mov ecx, dword [ebp - 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x42361c
mov edx, dword [ebp - 0x260]
and edx, 0x12
jne 0x42361a
lea eax, [ebp - 0x234]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00403650
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42361a
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp + 0xc]
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x268], ecx
mov edx, dword [ebp - 0x268]
push edx
call fcn.0040564f
add esp, 4
jmp 0x4235b3
mov eax, dword [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x26c], ecx
mov edx, dword [ebp - 0x26c]
push edx
call fcn.0040564f
add esp, 4
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00403b8c
mov esp, ebp
pop ebp
ret
Function at 0x4297f0
Capabilities:
Check internet connectivity via wininet
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.0040bcb0
mov eax, dword [0x4566e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x101c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x1018], 0xffffffff
mov dword [ebp - 0x1014], 0x84400000
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x42984a
mov dword [ebp - 0xc], 0x61a82
cmp dword [ebp - 0xc], 0
jne 0x429879
push 0
push 0
push 0
push 0
push str.Microsoft_Symbol_Server_6.7.0005.1
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x101c], eax
cmp dword [ebp - 0x101c], 0
jne 0x429879
mov dword [ebp - 0xc], 0x61a82
cmp dword [ebp - 0xc], 0
jne 0x4298af
push 0
mov ecx, dword [ebp - 0x1014]
push ecx
push 0
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x101c]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4298af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4298e6
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1018], eax
cmp dword [ebp - 0x1018], 0xffffffff
jne 0x4298e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42996a
lea edx, [ebp - 0x1024]
push edx
push 0x1000
lea eax, [ebp - 0x1010]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x429953
cmp dword [ebp - 0x1024], 0
jbe 0x429953
push 0
lea edx, [ebp - 0x1020]
push edx
mov eax, dword [ebp - 0x1024]
push eax
lea ecx, [ebp - 0x1010]
push ecx
mov edx, dword [ebp - 0x1018]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x1020]
cmp eax, dword [ebp - 0x1024]
je 0x429951
mov dword [ebp - 0xc], 0x70
jmp 0x429953
jmp 0x4298ec
mov ecx, dword [ebp - 0x1018]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1018], 0xffffffff
cmp dword [ebp - 0x1018], 0xffffffff
je 0x429980
mov edx, dword [ebp - 0x1018]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x429990
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x101c], 0
je 0x4299a6
mov ecx, dword [ebp - 0x101c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403b8c
mov esp, ebp
pop ebp
ret
Function at 0x429dc0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0x40
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea edx, [ebp - 0x20]
push edx
push 2
lea eax, [ebp - 4]
push eax
call dword [sym.imp.Ntdll.dll_NtOpenKey]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x429e29
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.Ntdll.dll_NtDeleteValueKey]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.Ntdll.dll_NtClose]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x429e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0
mov byte [ebp - 9], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x429e8f
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx]
test edx, edx
je 0x429e8f
lea eax, [ebp - 8]
push eax
mov ecx, dword [0x45a5e8]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
xor ecx, ecx
cmp dword [ebp - 4], 0
sete cl
mov byte [ebp - 9], cl
cmp dword [ebp - 4], 0
jne 0x429ef8
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], 0
je 0x429ef8
mov ecx, dword [ebp - 0x10]
add ecx, 2
push ecx
push 8
mov edx, dword [0x45a5e0]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x429ef8
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
movzx edx, byte [ebp - 9]
test edx, edx
je 0x429f0a
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x429f20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 8], ax
xor ecx, ecx
mov word [ebp - 6], cx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x19], 0
cmp dword [ebp + 0x10], 0
jne 0x429f66
lea eax, [ebp - 8]
mov dword [ebp - 0x38], eax
jmp 0x429f6c
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0xc], 0
je 0x429fcc
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
je 0x429fcc
mov dword [ebp - 0x34], 0x18
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], 0x40
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [0x45a5e8]
push edx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.Ntdll.dll_NtOpenKey]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
setge cl
mov byte [ebp - 0x19], cl
cmp dword [ebp - 0x14], 0
jl 0x42a030
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push 1
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.Ntdll.dll_NtQueryValueKey]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0xc], 0
je 0x42a030
mov edx, dword [ebp - 0xc]
add edx, 2
push edx
push 8
mov eax, dword [0x45a5e0]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42a030
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
push 1
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.Ntdll.dll_NtQueryValueKey]
mov dword [ebp - 0x14], eax
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x42a042
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.Ntdll.dll_NtClose]
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret

Function at 0x42a050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.Ntdll.dll_NtEnumerateValueKey]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x42a0c6
mov edx, dword [ebp - 4]
add edx, 2
push edx
push 8
mov eax, dword [0x45a5e0]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42a0c6
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.Ntdll.dll_NtEnumerateValueKey]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x42a0d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.Ntdll.dll_NtEnumerateKey]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x42a146
mov edx, dword [ebp - 4]
add edx, 2
push edx
push 8
mov eax, dword [0x45a5e0]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42a146
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.Ntdll.dll_NtEnumerateKey]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x42a470
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [0x45a5e8]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42a4bb
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x42a4d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42a541
mov edx, dword [ebp - 0xc]
and edx, 0x10
je 0x42a4e5
mov eax, 0x3ee
jmp 0x42a541
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42a53e
push 0
mov eax, dword [ebp + 0x10]
push eax
call fcn.00431c40
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp + 8]
add ecx, 0xc
push ecx
mov edx, dword [0x45a5e8]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x42a550
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x4566e4]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x268], 1
push 0x104
mov eax, dword [ebp + 8]
push eax
call fcn.00431c40
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42a66d
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401650
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call fcn.0040540f
add esp, 4
mov dword [ebp - 0x264], eax
push 0x4519e4
mov eax, dword [ebp - 4]
push eax
call fcn.00405562
add esp, 8
lea ecx, [ebp - 0x260]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0xffffffff
je 0x42a655
cmp dword [ebp - 0x268], 0
je 0x42a648
mov eax, dword [ebp - 0x260]
and eax, 0x10
jne 0x42a62c
lea ecx, [ebp - 0x234]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00405590
add esp, 8
mov eax, dword [ebp - 0x264]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042a150
add esp, 0xc
movzx eax, al
test eax, eax
je 0x42a62c
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x260]
push edx
mov eax, dword [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x268], eax
jmp 0x42a5dd
mov ecx, dword [ebp - 0x26c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x270], edx
mov eax, dword [ebp - 0x270]
push eax
call fcn.0040564f
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00403b8c
mov esp, ebp
pop ebp
ret
Function at 0x42acf0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 8], 0
mov dword [ebp - 0x2c], 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0x40
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x2c]
push edx
push 8
lea eax, [ebp - 8]
push eax
call dword [sym.imp.Ntdll.dll_NtOpenKey]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xc0000022
jne 0x42ad69
push 0xf003f
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042ac20
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
push 8
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.Ntdll.dll_NtOpenKey]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x42adc9
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.0042a0d0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42adbf
mov eax, dword [ebp - 4]
mov cx, word [eax + 0xc]
mov word [ebp - 0x10], cx
mov dx, word [ebp - 0x10]
mov word [ebp - 0xe], dx
mov eax, dword [ebp - 4]
add eax, 0x10
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0042acf0
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x42adbd
jmp 0x42adbf
jmp 0x42ad6f
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.Ntdll.dll_NtClose]
lea ecx, [ebp - 0x2c]
push ecx
push 0x10000
lea edx, [ebp - 8]
push edx
call dword [sym.imp.Ntdll.dll_NtOpenKey]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xc0000022
jne 0x42ae13
push 0xf003f
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042ac20
add esp, 0xc
lea edx, [ebp - 0x2c]
push edx
push 0x10000
lea eax, [ebp - 8]
push eax
call dword [sym.imp.Ntdll.dll_NtOpenKey]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x42ae30
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.Ntdll.dll_NtDeleteKey]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.Ntdll.dll_NtClose]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x42b330
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 8], 0
je 0x42b3d5
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x42b356
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0xffffffffffffffff
call dword [sym.imp.Ntdll.dll_NtUnmapViewOfSection]
mov eax, dword [ebp + 8]
mov dword [eax], 0
cmp dword [ebp + 0xc], 0
je 0x42b3c2
cmp dword [ebp + 0x10], 0
je 0x42b3c2
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.Ntdll.dll_NtWriteFile]
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
push 0x14
push 8
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.Ntdll.dll_NtSetInformationFile]
mov ecx, dword [ebp + 8]
push ecx
push 0
mov edx, dword [0x45a5e0]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esp, ebp
pop ebp
ret

Function at 0x42b570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
or ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42b5f0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x42b5f0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42b5f0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42b5f0
cmp dword [ebp + 0x14], 0
je 0x42b5eb
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov eax, dword [ebp - 0xc]
jmp 0x42b5f2
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x42bb30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [str..backup]
push eax
call fcn.0040540f
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00431c40
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42bbfb
mov eax, dword [str..backup]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00405562
add esp, 8
push 0
push 0
push 2
push 0
push 1
push 2
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x42bbde
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x18]
je 0x42bbd2
mov dword [ebp - 4], 0x70
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42bbe7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0040564f
add esp, 4
jmp 0x42bc02
mov dword [ebp - 4], 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret