joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4071a0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417088
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x424d98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], edi
cmp dword [ebx], edi
jne 0x4071de
xor esi, esi
jmp 0x4071e1
lea esi, [ebx + 4]
cmp esi, edi
je 0x407263
test esi, esi
je 0x407218
sub esi, ebx
sub esi, 3
lea eax, [esi - 1]
cmp eax, 0x1f3
ja 0x407218
mov ecx, dword [ebx]
cmp esi, ecx
jae 0x407204
lea esi, [esi + ebx + 4]
jmp 0x407206
xor esi, esi
cmp eax, ecx
jae 0x40721a
cmp eax, 0xffffffff
je 0x40721a
mov edi, dword [ebx + eax*4 + 0x1f8]
jmp 0x40721c
xor esi, esi
xor edi, edi
push 0x31
lea ecx, [ebp - 0x18]
call fcn.00406670
mov edx, dword [ebp - 0x18]
mov eax, str.SystemCurrentControlSetControlMediaCategories_
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407230
mov eax, dword [edi + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.00406e10
mov edi, dword [ebp - 0x18]
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x40725f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x4071e9
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x407280
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040d43e
push edi
call fcn.0040d43e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407ee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x424d98]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x418]
push eax
push 0x20119
push 0
push 0x41db78
mov esi, 1
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x41c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407f9f
lea ecx, [ebp - 0x41c]
push ecx
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x420]
push eax
push 0
push str.Locale
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407f92
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x414]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x407f87
test ax, ax
je 0x407f83
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x407f87
add ecx, 4
add edx, 4
test ax, ax
jne 0x407f61
xor eax, eax
jmp 0x407f8c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x407f92
xor esi, esi
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040d820
mov esp, ebp
pop ebp
ret 4
Function at 0x408cb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x408ccb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408d02
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x408cfe
jmp 0x408cf0
cmp esi, eax
jae 0x408d02
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x408cf0
cmp esi, eax
jb 0x408d09
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x408ed0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x424d98]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x408f16
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x408f27
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d820
mov esp, ebp
pop ebp
ret
push esi
jmp 0x408f30
lea ecx, [ebp - 0x20c]
push 0x41df34
push ecx
call fcn.0040ea8b
add esp, 8
test eax, eax
je 0x408f5b
lea edx, [ebp - 0x230]
push edx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x408f30
jmp 0x408f92
mov eax, dword [ebp - 0x228]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x408f82
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d820
mov esp, ebp
pop ebp
ret
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop edi
call fcn.0040d820
mov esp, ebp
pop ebp
ret
Function at 0x408fb0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x20119
push 0
push str.SoftwareConexant
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40904c
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push eax
push eax
mov eax, dword [ebp - 8]
push str.CallApps
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409003
inc dword [ebp - 4]
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0x20106
push 0
push 0
push 0
push str.SoftwareConexant
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x409042
push 4
lea edx, [ebp - 4]
push edx
push 4
push eax
mov eax, dword [ebp - 8]
push str.CallApps
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x40ad40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417400
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x424d98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0xc]
mov eax, 0x80004004
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test ebx, ebx
je 0x40ae5d
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x40ae5d
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x40ae5d
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x40ae5d
push esi
push edi
xor eax, eax
push ebx
push 0x4249d0
mov word [ecx], ax
call fcn.0040a840
add esp, 0x10
cmp eax, 1
je 0x40add5
push esi
push edi
push ebx
push 0x424510
call fcn.0040a840
add esp, 0x10
cmp eax, 1
jne 0x40ae3e
lea ecx, [ebp + 0xc]
push ecx
push 0x20119
push 0
push edi
push ebx
mov dword [ebp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ae3e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40ae3e
mov ecx, dword [ebp + 0x18]
lea edx, [ebp + 0x14]
push edx
push ecx
lea edx, [ebp + 0x10]
push edx
push 0
push esi
mov edi, 4
push eax
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40ae3e
cmp dword [ebp + 0x10], edi
jne 0x40ae3e
cmp dword [ebp + 0x14], edi
jne 0x40ae3e
mov edx, dword [ebp + 0x1c]
or ecx, 0xffffffff
mov word [edx], cx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40ae80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417420
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x424d98]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov eax, 0x80004004
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], 0
test esi, esi
je 0x40b026
test edi, edi
je 0x40b026
test ebx, ebx
je 0x40b026
test edx, edx
je 0x40b026
test ecx, ecx
je 0x40b026
push ebx
push edi
xor eax, eax
push esi
push 0x4249d0
mov word [ecx], ax
call fcn.0040a840
add esp, 0x10
cmp eax, 1
je 0x40af39
push ebx
push edi
push esi
push 0x424510
call fcn.0040a840
add esp, 0x10
cmp eax, 1
jne 0x40b016
lea ecx, [ebp - 0x418]
push ecx
push 0x20119
push 0
push edi
push esi
mov dword [ebp - 0x418], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b016
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x40b016
lea edx, [ebp - 0x420]
push edx
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x41c]
push edx
push 0
push ebx
mov edi, 1
push eax
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x420], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40b016
cmp dword [ebp - 0x41c], edi
jne 0x40b016
cmp dword [ebp - 0x420], 0x400
ja 0x40b016
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x430], esi
test esi, esi
jne 0x40afed
push 0x8007000e
call fcn.00401270
mov edx, dword [ebp - 0x424]
push edx
lea ecx, [ebp - 0x430]
call fcn.004090b0
test eax, eax
jne 0x40b00f
mov ecx, dword [ebp - 0x42c]
or eax, 0xffffffff
mov word [ecx], ax
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x40b026
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040d820
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40b050
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417450
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x424d98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0xc]
mov eax, 0x80004004
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test edi, edi
je 0x40b15e
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40b15e
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x40b15e
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x40b15e
push ebx
push esi
xor eax, eax
push edi
push 0x424510
mov word [ecx], ax
call fcn.0040a840
add esp, 0x10
cmp eax, 1
jne 0x40b13f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp + 0x10]
push edx
push esi
push edi
push eax
mov eax, dword [ecx + 0x24]
mov dword [ebp + 0x10], 0
call eax
cmp word [ebp + 0x10], 0xffff
jne 0x40b13f
lea ecx, [ebp + 0xc]
push ecx
push 0x20106
push 0
push esi
push edi
mov dword [ebp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b13f
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40b13f
push 4
lea edx, [ebp + 0x18]
push edx
push 4
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40b13f
mov edx, dword [ebp + 0x1c]
or ecx, 0xffffffff
mov word [edx], cx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40b180
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417470
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x424d98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0xc]
mov eax, 0x80004004
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test edi, edi
je 0x40b2c1
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40b2c1
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x40b2c1
cmp dword [ebp + 0x18], 0
je 0x40b2c1
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x40b2c1
push ebx
push esi
xor eax, eax
push edi
push 0x424510
mov word [ecx], ax
call fcn.0040a840
add esp, 0x10
cmp eax, 1
jne 0x40b2a2
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp + 0x10]
push edx
push esi
push edi
push eax
mov eax, dword [ecx + 0x24]
mov dword [ebp + 0x10], 0
call eax
cmp word [ebp + 0x10], 0xffff
jne 0x40b2a2
lea ecx, [ebp + 0xc]
push ecx
push 0x20106
push 0
push esi
push edi
mov dword [ebp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b2a2
cmp dword [ebp + 0xc], eax
je 0x40b2a2
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
jne 0x40b26a
push 0x8007000e
call fcn.00401270
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
mov eax, dword [ebp + 0xc]
push esi
push 1
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp + 0xc]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x40b29b
mov eax, dword [ebp + 0x1c]
or edx, 0xffffffff
mov word [eax], dx
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40d820
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424d98]
jne 0x40d82a
repz ret
jmp fcn.004105ff

Function at 0x415b19
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x424d98]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00411ee0
and dword [ebp - 0x14], 0
cmp dword [0x42709c], 0
mov dword [ebp - 0x18], eax
jne 0x415bcc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x415c74
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41fb6c
push ebx
call edi
test eax, eax
je 0x415c74
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42709c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4270a0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4270a4], eax
call edi
push eax
call esi
mov dword [0x4270ac], eax
test eax, eax
je 0x415bcc
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4270a8], eax
mov eax, dword [0x4270a8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x415c25
cmp dword [0x4270ac], ecx
je 0x415c25
push eax
call esi
push dword [0x4270ac]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x415c25
test ebx, ebx
je 0x415c25
call edi
test eax, eax
je 0x415c1c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x415c1c
test byte [ebp - 8], 1
jne 0x415c25
or dword [ebp + 0x10], 0x200000
jmp 0x415c58
mov eax, dword [0x4270a0]
cmp eax, dword [ebp - 0x18]
je 0x415c58
push eax
call esi
test eax, eax
je 0x415c58
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x415c58
mov eax, dword [0x4270a4]
cmp eax, dword [ebp - 0x18]
je 0x415c58
push eax
call esi
test eax, eax
je 0x415c58
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42709c]
call esi
test eax, eax
je 0x415c74
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x415c76
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d820
leave
ret
Function at 0x85f370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x85f38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x888074
push ecx
mov edi, eax
call fcn.00873198
mov esi, eax
add esp, 8
test esi, esi
jne 0x85f3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0087302e
push esi
call fcn.00872fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x862850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x8628ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x88d720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x8628ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.008731e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x8628ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x88d720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x86292a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00874082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x862957
mov word [eax], si
add eax, 2
push eax
call fcn.00874030
add esp, 4
jmp 0x862959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x8628ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x8628b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x862ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x863080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x8630c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x888458
push ecx
call fcn.008731e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.008731e1
add esp, 0x10
jmp 0x8630d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0087320b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00872dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00863050
mov eax, dword [0x88d728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x86313b
push esi
call fcn.00862fb0
add esp, 4
mov dword [0x88d728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x86314c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00862ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x866440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x8664b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x86648e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x866471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x86647e
add edx, ecx
cmp ebx, edx
jb 0x86648a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x866467
xor ecx, ecx
jmp 0x8664a2
test eax, eax
jne 0x866492
xor ecx, ecx
jmp 0x8664a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.008663c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x8668f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x866921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x866946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x86696e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x866993
push ecx
push esi
call fcn.008664c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret