joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45aa80
Capabilities:
Check os version

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x45ab24
push 0x94
mov edi, 1
call fcn.00490201
mov esi, eax
add esp, 4
test esi, esi
je 0x45ab97
push 0x94
push 0
push esi
call fcn.0048f850
add esp, 0xc
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x45aae5
push esi
lea edi, [eax + 1]
call fcn.00490330
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 5
jne 0x45ab8e
cmp dword [esi + 8], 0
jne 0x45ab05
push esi
lea edi, [eax + 1]
call fcn.00490330
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 5
jne 0x45ab8e
cmp dword [esi + 8], edi
jne 0x45ab8e
push esi
lea edi, [eax + 2]
call fcn.00490330
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp al, 4
jae 0x45ab2d
pop edi
xor eax, eax
pop esi
ret
push 0x94
mov edi, 2
call fcn.00490201
mov esi, eax
add esp, 4
test esi, esi
je 0x45ab97
push 0x94
push 0
push esi
call fcn.0048f850
add esp, 0xc
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x45ab8e
cmp dword [esi + 8], 0xa
jne 0x45ab81
push esi
lea edi, [eax - 1]
call fcn.00490330
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 4
jne 0x45ab8e
cmp dword [esi + 8], 0x5a
jne 0x45ab8e
mov edi, eax
push esi
call fcn.00490330
add esp, 4
mov eax, edi
pop edi
pop esi
ret

Function at 0x45ade0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x138
mov eax, dword [0x4ecba0]
xor eax, esp
mov dword [esp + 0x134], eax
cmp dword [0x4f5b10], 0
jne 0x45aee9
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftPlus_ThemesCurrent
push SysReAllocString
mov dword [0x4f5b10], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45aee9
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 4]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0xc]
push eax
push 0
push 0
push ecx
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45aedf
mov edx, dword [str.Windows_Classic.theme]
mov eax, dword [0x4cccd4]
mov ecx, dword [0x4cccd8]
mov dword [esp + 0xc], edx
mov edx, dword [0x4cccdc]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], eax
mov eax, dword [0x4ccce0]
mov dword [esp + 0x1c], ecx
mov cx, word [0x4ccce4]
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], cx
call edi
mov esi, eax
lea eax, [esp + 0x14]
push eax
call edi
cmp esi, eax
jl 0x45aedd
lea ecx, [esp + 0x14]
push ecx
mov edx, ecx
push edx
call edi
sub esi, eax
lea eax, [esp + esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x45aedd
mov dword [0x4f5b0c], 1
pop edi
pop esi
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x134]
mov eax, dword [0x4f5b0c]
xor ecx, esp
call fcn.0048f35c
add esp, 0x138
ret
Function at 0x45b490
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.00477002
movzx ebx, word [esp + 0x14]
mov edi, dword [eax + 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 2
push ebx
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x45b4c8
push 2
push ebx
xor edi, edi
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x45b4c8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x45b4c1
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x45b4c1
push eax
call fcn.0045ada0
add esp, 4
push ebx
movzx ebp, ax
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp bp, 0x10
jne 0x45b4c1
push 0
push esi
push edi
call fcn.0047c2c6
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4617a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx eax, word [esp + 4]
mov dword [esp + 4], eax
jmp method.BCMenu.virtual_24
Function at 0x46a690
Capabilities:
Enumerate system firmware tables
Get system firmware table

Disassembly:
sub esp, 0x204
mov eax, dword [0x4ecba0]
xor eax, esp
mov dword [esp + 0x200], eax
call fcn.0046d74a
test eax, eax
jne 0x46a6b7
push 0x80004005
call fcn.00402240
mov edx, dword [eax]
push esi
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
push 0x1ff
lea ecx, [esp + 0xd]
mov esi, eax
push 0
push ecx
add esi, 0x10
mov byte [esp + 0x14], 0
call fcn.0048f850
add esp, 0xc
push 0x200
lea edx, [esp + 0xc]
push edx
push 0x41435049
call dword [sym.imp.KERNEL32.dll_EnumSystemFirmwareTables]
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
push 0
push 0
push 0x4746434d
push 0x41435049
call edi
push eax
lea eax, [esp + 0xc]
push eax
push 0x4746434d
push 0x41435049
call edi
mov eax, dword [esp + 0xc]
add eax, 0xffffffd4
shr eax, 4
cmp eax, 0x10
jbe 0x46a731
mov eax, 0x10
mov dword [0x4f5f20], eax
shl eax, 4
push eax
lea ecx, [esp + 0x38]
push ecx
push 0x4f5f28
call fcn.00490450
lea eax, [esi - 0x10]
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
pop edi
pop esi
test ecx, ecx
jg 0x46a76a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x200]
xor ecx, esp
mov eax, 0x4f5f28
call fcn.0048f35c
add esp, 0x204
ret

Function at 0x46f8de
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x46f926
call fcn.00477002
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x46f926
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x46f969
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x46f952
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x46f952
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x46f966
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x470a67
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4b13e8
call fcn.00492c5d
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x470a8c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x470ad2
lea ecx, [ebp - 0x10]
call fcn.00457390
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0046d173
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402310
mov eax, esi
call fcn.00492d35
ret 8

Function at 0x47663e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x476685
call fcn.00477002
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x476685
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4766a1
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004761b8
mov esi, eax
test edi, edi
je 0x47669f
test ebx, ebx
je 0x47669f
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x47b8e5
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x47b917
push dword [ebp + 8]
call edi
push eax
call fcn.0048b1d0
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x47b942
test byte [ebp - 4], 1
je 0x47b942
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x47b942
push dword [ebp + 8]
call edi
push eax
call fcn.0048b1d0
lea eax, [ebx + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x47b9fc
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.0047b847
pop ecx
lea eax, [ebx + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x47b978
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.0047b847
pop ecx
lea eax, [ebp - 0x10]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebx]
or eax, dword [ebx + 4]
je 0x47b98e
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.0047b847
pop ecx
pop ecx
lea esi, [ebp - 0x18]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x47b9bb
push dword [ebp + 8]
call edi
push eax
call fcn.0048b1d0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x47b9e7
call edi
push ebx
mov dword [ebp - 8], eax
call esi
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.0048b1d0
push ebx
call esi
test eax, eax
jne 0x47b9f9
push dword [ebp + 8]
call edi
push eax
call fcn.0048b1d0
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x47ba24
test byte [ebp - 4], 1
jne 0x47ba24
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x47ba24
push dword [ebp + 8]
call edi
push eax
call fcn.0048b1d0
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x47d15b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.00477002
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x47d188
xor eax, eax
jmp 0x47d22e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x47d181
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x47d181
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046a881
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x47d1df
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x47d1ce
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.0047bea8
push edi
mov ebx, eax
call fcn.0046a8b0
pop ecx
test ebx, ebx
je 0x47d221
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.0047c570
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.0047c624
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4
Function at 0x48f35c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ecba0]
jne 0x48f366
repz ret
jmp fcn.00499d1c

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x492003
call fcn.00491f6d
mov dword [eax], esi
call fcn.00491f5a
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00496f9f
add esp, 0x14
push 0x16
pop eax
jmp 0x492058
test dword [ebp + 0xc], 0xfffffff9
jne 0x491fdf
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x492030
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00491f80
pop ecx
call fcn.00491f5a
mov eax, dword [eax]
jmp 0x492058
test al, 0x10
jne 0x492056
test al, 1
je 0x492056
test byte [ebp + 0xc], 2
je 0x492056
call fcn.00491f6d
mov dword [eax], 5
call fcn.00491f5a
mov dword [eax], 0xd
jmp 0x492027
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4a3814
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004996f7
and dword [ebp - 4], 0
cmp dword [0x4f8950], 0
mov ebx, eax
jne 0x4a38c5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4a3976
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4d3c7c
push edi
call esi
test eax, eax
je 0x4a3976
push eax
call fcn.00499685
mov dword [esp], 0x4d3c6c
push edi
mov dword [0x4f8950], eax
call esi
push eax
call fcn.00499685
mov dword [esp], 0x4d3c58
push edi
mov dword [0x4f8954], eax
call esi
push eax
call fcn.00499685
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4f8958], eax
call esi
push eax
call fcn.00499685
pop ecx
mov dword [0x4f8960], eax
test eax, eax
je 0x4a38c5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00499685
pop ecx
mov dword [0x4f895c], eax
mov eax, dword [0x4f895c]
cmp eax, ebx
je 0x4a391d
cmp dword [0x4f8960], ebx
je 0x4a391d
push eax
call fcn.00499700
push dword [0x4f8960]
mov esi, eax
call fcn.00499700
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4a391d
test edi, edi
je 0x4a391d
call esi
test eax, eax
je 0x4a3914
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4a3914
test byte [ebp - 0xc], 1
jne 0x4a391d
or dword [ebp + 0x10], 0x200000
jmp 0x4a3956
mov eax, dword [0x4f8954]
cmp eax, ebx
je 0x4a3956
push eax
call fcn.00499700
pop ecx
test eax, eax
je 0x4a3956
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4a3956
mov eax, dword [0x4f8958]
cmp eax, ebx
je 0x4a3956
push eax
call fcn.00499700
pop ecx
test eax, eax
je 0x4a3956
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4f8950]
call fcn.00499700
pop ecx
test eax, eax
je 0x4a3976
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4a3978
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401100
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x405004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, 0x403168
mov eax, edx
nop
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x401140
test cl, cl
je 0x40113c
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x401140
add eax, 2
add esi, 2
test cl, cl
jne 0x401120
xor eax, eax
jmp 0x401145
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4011d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0xff
mov esi, eax
lea eax, [ebp - 0x208]
push eax
push 0x400
push esi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea eax, [ebp - 0x208]
push eax
push edi
lea eax, [ebp - 0x108]
push str._s:__s
push eax
call fcn.00401010
add esp, 0x10
lea eax, [ebp - 0x108]
push 0x10
push str.LoadLibraryOne
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x20c], 0xbb8
push eax
lea ecx, [ebp - 0x218]
call fcn.00401620
mov ecx, eax
call fcn.00401640
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push edx
push edi
lea eax, [ebp - 0x108]
push str._s:__s
push eax
call fcn.00401010
add esp, 0x10
lea eax, [ebp - 0x108]
push 0x10
push str.LoadLibraryOne
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x20c], 0xbb8
push eax
lea ecx, [ebp - 0x218]
call fcn.00401620
mov ecx, eax
call fcn.00401640
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x401fbc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401ffb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401ffb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401ffb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401ffb
cmp dword [ecx + 0x74], 0xe
jbe 0x401ffb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40742e
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jne 0x4075be
lea eax, [ebp - 4]
push eax
push 0x411500
push 1
push ebx
push 0x411380
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x4075b8
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x4117e0
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jne 0x4075af
push esi
lea eax, [ebp - 0x418]
push 0x104
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push eax
call fcn.004073e7
pop ecx
mov esi, eax
mov eax, dword [ebp - 4]
pop ecx
lea edx, [ebp - 0x210]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004073e7
pop ecx
mov esi, eax
mov eax, dword [ebp - 4]
pop ecx
lea edx, [ebp - 0x210]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004073e7
mov esi, eax
push esi
call fcn.0040c5ae
mov ecx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ecx]
push eax
lea eax, [ebp - 0x210]
push eax
push ecx
call dword [edx + 0x44]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004073e7
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004073e7
mov esi, eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040c5ae
mov ecx, dword [ebp - 4]
add esp, 0x14
and eax, 7
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x3c]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004073e7
mov esi, eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040c5ae
add esp, 0xc
cmp al, bl
je 0x40756c
mov ecx, dword [ebp - 4]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x34]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004073e7
mov eax, dword [ebp - 4]
pop ecx
pop ecx
lea edx, [ebp - 0x210]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x2c]
push dword [ebp + 8]
call fcn.0040bf56
mov eax, dword [ebp - 8]
pop ecx
lea edx, [ebp - 0x418]
push ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop esi
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop ebx
leave
ret
Function at 0x407ba2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [0x416778], esi
je 0x407d1d
cmp dword [ebp + 0x1c], esi
je 0x407bdc
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x1c]
push eax
mov eax, dword [ebp + 8]
push esi
push 6
push esi
push esi
push esi
push dword [ebp + 0x10]
push dword [eax*4 + 0x413030]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x407bf6
lea eax, [ebp + 0x1c]
push eax
mov eax, dword [ebp + 8]
push 0x1f
push esi
push dword [ebp + 0x10]
push dword [eax*4 + 0x413030]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x407d3e
mov esi, dword [ebp + 0x18]
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
mov ebx, eax
inc ebx
cmp dword [ebp + 0xc], 3
jne 0x407c23
push esi
call fcn.0040c523
pop ecx
mov dword [esi], eax
push 4
pop ebx
jmp 0x407c4a
cmp dword [ebp + 0xc], 2
jne 0x407c74
mov eax, dword [ebp + 0x18]
xor ebx, ebx
cmp byte [eax], bl
je 0x407c47
push esi
call edi
push esi
lea ebx, [ebx + eax + 1]
call edi
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x407c32
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
push ebx
push esi
push dword [eax*4 + 0x413044]
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
jmp 0x407d3e
cmp dword [ebp + 0xc], 4
jne 0x407c4a
xor ebx, ebx
mov edi, esi
and byte [ebp + 0x1b], bl
cmp byte [esi], bl
mov dword [ebp + 0x10], ebx
mov dword [ebp + 8], esi
je 0x407c4a
movsx eax, byte [edi]
push eax
call fcn.0040c2d8
mov byte [edi], al
cmp dword [0x4141ac], 1
pop ecx
jle 0x407caf
movsx eax, al
push 4
push eax
call fcn.0040c4ae
pop ecx
pop ecx
jmp 0x407cbe
mov ecx, dword [str.________________________________H]
movsx eax, al
mov al, byte [ecx + eax*2]
and eax, 4
test eax, eax
jne 0x407ccc
mov al, byte [edi]
cmp al, 0x41
jl 0x407d0e
cmp al, 0x46
jg 0x407d0e
cmp dword [ebp + 0x10], 0
mov al, byte [edi]
je 0x407cfa
cmp al, 0x39
movsx eax, al
jg 0x407ce0
sub eax, 0x30
jmp 0x407ce3
sub eax, 0x37
mov cl, byte [ebp + 0x1b]
shl cl, 4
or cl, al
mov eax, dword [ebp + 8]
inc dword [ebp + 8]
inc ebx
and dword [ebp + 0x10], 0
mov byte [eax], cl
jmp 0x407d0e
cmp al, 0x39
jg 0x407d02
sub al, 0x30
jmp 0x407d04
sub al, 0x37
mov byte [ebp + 0x1b], al
mov dword [ebp + 0x10], 1
inc edi
cmp byte [edi], 0
jne 0x407c8b
jmp 0x407c4a
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
jne 0x407d3e
cmp dword [ebp + 8], esi
jne 0x407d3e
push esi
push dword [ebp + 0x18]
push 1
push dword [ebp + 0x10]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
pop esi
pop ebp
ret