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

Disassembly:
mov eax, 0x42742c
call fcn.0041eb94
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, 0x42a3b8
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x18], ebx
mov dword [ebp - 0x14], esi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0xc], edi
mov dword [esi + 0x28], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x38], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x2c], edi
lea ecx, [esi + 0x3c]
mov dword [ebp - 0x10], ecx
mov dword [ecx + 0xc], ebx
mov byte [ebp - 4], 3
call fcn.004030c4
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
lea ecx, [esi + 0x4c]
mov dword [ebp - 0x10], ecx
mov dword [ecx + 0xc], ebx
mov byte [ebp - 4], 5
call fcn.004030c4
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
lea ecx, [esi + 0x5c]
mov dword [ebp - 0x10], ecx
mov dword [ecx + 0xc], ebx
mov byte [ebp - 4], 7
call fcn.004030c4
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
lea ecx, [esi + 0x6c]
mov dword [ebp - 0x10], ecx
mov dword [ecx + 0xc], ebx
mov byte [ebp - 4], 9
call fcn.004030c4
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
lea ecx, [esi + 0x7c]
mov dword [ebp - 0x10], ecx
mov dword [ecx + 0xc], ebx
mov byte [ebp - 4], 0xb
call fcn.004030c4
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
lea ecx, [esi + 0x8c]
mov dword [ebp - 0x10], ecx
mov dword [ecx + 0xc], ebx
mov byte [ebp - 4], 0xd
call fcn.004030c4
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
lea ecx, [esi + 0x9c]
mov dword [ebp - 0x10], ecx
mov dword [ecx + 0xc], ebx
mov byte [ebp - 4], 0xf
call fcn.004030c4
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
lea ecx, [esi + 0xac]
mov dword [ebp - 0x10], ecx
mov dword [ecx + 0xc], ebx
mov byte [ebp - 4], 0x11
call fcn.004030c4
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
lea ecx, [esi + 0xbc]
mov byte [ebp - 4], 0x12
call fcn.004087cb
lea ecx, [esi + 0xcc]
mov byte [ebp - 4], 0x13
call fcn.004087cb
lea ecx, [esi + 0xdc]
mov byte [ebp - 4], 0x14
call fcn.004087cb
lea ecx, [esi + 0xf0]
mov byte [ebp - 4], 0x15
mov byte [esi + 0xec], bl
call fcn.004087cb
lea ecx, [esi + 0x100]
mov byte [ebp - 4], 0x16
call fcn.004087cb
lea ecx, [esi + 0x110]
mov byte [ebp - 4], 0x17
call fcn.004087cb
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x120], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4033f4
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x42758c
call fcn.0041eb94
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00403444
mov al, byte [ebp + 0xc]
and dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov byte [esi + 0x70], al
test al, al
mov dword [esi + 0x6c], ecx
jne 0x403433
push 0
push ecx
mov ecx, esi
call fcn.00409266
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x403534
Capabilities:
Hide graphical window

Disassembly:
cmp byte [ecx + 0x70], 0
jne 0x403545
push 0
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x403ae9
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x42766c
call fcn.0041eb94
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x10], ebx
call fcn.0041f0ad
mov eax, 0x42ae60
lea edi, [ebx + 0x10]
mov esi, eax
xor ecx, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x20]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x34], ecx
mov ecx, ebx
mov dword [ebx], 0x42a4cc
mov dword [ebx + 0xc], eax
call fcn.00403bd7
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x403b49
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x427680
call fcn.0041eb94
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x10], ebx
call fcn.0041f0ad
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
mov dword [ebx], 0x42a4cc
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
push dword [esi + 0x30]
call fcn.0041f2c0
inc eax
push eax
call fcn.0041f2b0
mov dword [ebx + 0x30], eax
push dword [esi + 0x30]
push eax
call fcn.0041f1c0
push dword [esi + 0x34]
call fcn.0041f2c0
inc eax
push eax
call fcn.0041f2b0
mov dword [ebx + 0x34], eax
push dword [esi + 0x34]
push eax
call fcn.0041f1c0
add esp, 0x20
add esi, 0x20
lea edi, [ebx + 0x20]
mov eax, dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x10]
lea edi, [ebx + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x405d9c
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x427a1a
call fcn.0041eb94
sub esp, 0x2f0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x40], 0x42a3b8
mov eax, dword [0x434e60]
push 0x70
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
push dword [eax + 8]
call fcn.00401316
lea eax, [ebp - 0x40]
push ebx
push eax
lea ecx, [ebp - 0xfc]
call fcn.00418285
cmp dword [ebp - 0xa4], ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xfc]
jne 0x405e19
call fcn.00403eb5
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.0040886d
xor al, al
jmp 0x405fb0
call fcn.00403eb5
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.0040886d
jmp 0x405e33
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 4
push eax
push 0x20019
push ebx
push str.SoftwareInstallShieldUpdate_Service
push 0x80000001
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x405f2b
lea ecx, [ebp - 0x18]
call fcn.00405fbf
mov ecx, dword [ebp - 0x1c]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
jne 0x405f2b
lea eax, [ebp - 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
or dword [ebp - 0x20], 0xffffffff
push eax
lea eax, [ebp - 0x24]
push ebx
push eax
mov edi, str.IsConnected
push ebx
push edi
push ecx
mov dword [ebp - 0x1c], 0x200
mov dword [ebp - 0x24], ebx
call esi
cmp eax, ebx
jne 0x405f2b
cmp dword [ebp - 0x24], 1
je 0x405edc
cmp dword [ebp - 0x24], 7
je 0x405edc
cmp dword [ebp - 0x24], 2
je 0x405edc
lea eax, [ebp - 0x2c]
or dword [ebp - 0x20], 0xffffffff
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push edi
mov dword [ebp - 0x28], ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x2c], 4
call esi
jmp 0x405f0c
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x200
push eax
lea eax, [ebp - 0x2fc]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push edi
mov dword [ebp - 0x28], ebx
push dword [ebp - 0x18]
call esi
lea eax, [ebp - 0x2fc]
push eax
call fcn.0041f33b
pop ecx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x405f2b
cmp dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x18]
setne bl
or dword [ebp - 4], 0xffffffff
call fcn.00405fbf
mov al, bl
jmp 0x405fb0
call fcn.00411518
cmp eax, 2
je 0x405f3f
cmp eax, 1
je 0x405f3f
mov byte [ebp - 0x11], bl
jmp 0x405f9f
cmp byte [0x434f7c], bl
mov byte [ebp - 0x11], 1
jne 0x405f9f
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x84]
add eax, 0x2c
push eax
call fcn.0041a75f
push ebx
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 6
call fcn.00405fd6
mov al, byte [ebp - 0x44]
mov byte [ebp - 0x11], al
jmp 0x405f8d
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 4
call fcn.0041a79e
cmp dword [ebp - 0x18], ebx
je 0x405fad
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x406006
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x427a34
call fcn.0041eb94
sub esp, 0x268
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], ebx
push 0x20019
push str.SoftwareInstallShieldUpdate_Service
push 0x80000001
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.004061a4
test eax, eax
jne 0x4060ff
lea eax, [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
or dword [ebp - 0x1c], 0xffffffff
lea eax, [ebp - 0x20]
push ebx
push eax
mov edi, str.IsConnected
push ebx
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x24], 0x200
mov dword [ebp - 0x20], ebx
call esi
cmp eax, ebx
jne 0x4060ff
cmp dword [ebp - 0x20], 1
je 0x4060ac
cmp dword [ebp - 0x20], 7
je 0x4060ac
cmp dword [ebp - 0x20], 2
je 0x4060ac
lea eax, [ebp - 0x30]
or dword [ebp - 0x1c], 0xffffffff
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push edi
mov dword [ebp - 0x28], ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x30], 4
call esi
jmp 0x4060dc
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x200
push eax
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push edi
mov dword [ebp - 0x28], ebx
push dword [ebp - 0x18]
call esi
lea eax, [ebp - 0x274]
push eax
call fcn.0041f33b
pop ecx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4060ff
cmp dword [ebp - 0x1c], ebx
setne byte [ebp + 0xb]
cmp dword [ebp - 0x18], ebx
je 0x4060f7
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp + 0xb]
jmp 0x406193
call fcn.00411518
cmp eax, 2
je 0x406113
cmp eax, 1
je 0x406113
mov byte [ebp - 0x11], bl
jmp 0x406182
cmp byte [0x434f7c], bl
mov byte [ebp - 0x11], 1
jne 0x406182
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x74]
add eax, 0x2c
push eax
call fcn.0041a75f
sub esp, 0x10
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x2c], esp
push dword [ebp + 8]
call fcn.00408837
lea ecx, [ebp - 0x74]
call fcn.004061e2
push ebx
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.00405fd6
mov al, byte [ebp - 0x34]
mov byte [ebp - 0x11], al
jmp 0x406177
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], ebx
call fcn.0041a79e
cmp dword [ebp - 0x18], ebx
je 0x406190
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x40a185
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4280c8
call fcn.0041eb94
sub esp, 0x228
push ebx
push esi
push edi
push dword [0x434eac]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor esi, esi
mov dword [0x434eac], esi
mov dword [ebp - 0x14], esi
push 0x20019
push str..htm
push 0x80000000
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.004061a4
test eax, eax
jne 0x40a2b2
lea eax, [ebp - 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x10]
push eax
mov ebx, 0x434e80
push esi
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x104
mov dword [ebp - 0x10], esi
call edi
cmp eax, esi
jne 0x40a2b2
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x130]
lea ecx, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.00408810
mov esi, 0x432b18
mov byte [ebp - 4], 2
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040a344
lea ecx, [ebp - 0x2c]
call fcn.0040cb2c
push 0x20019
lea ecx, [ebp - 0x10]
push dword [ebp - 0x28]
push 0x80000000
call fcn.004061a4
test eax, eax
jne 0x40a295
and dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push ebx
mov dword [ebp - 0x18], 0x104
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x40a295
lea eax, [ebp - 0x234]
mov ecx, 0x434ea0
push eax
call fcn.004088ab
mov ecx, 0x434eac
call fcn.0040a436
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040886d
cmp dword [ebp - 0x10], 0
je 0x40a2b0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
cmp dword [ebp - 0x14], esi
pop edi
pop esi
pop ebx
je 0x40a2c3
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x40ab1a
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.0040cb2c
mov esi, dword [esi + 4]
xor eax, eax
push 5
push eax
push eax
push esi
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov al, cl
pop esi
ret 4
Function at 0x40af46
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x42829f
call fcn.0041eb94
sub esp, 0x3c
push ebx
push esi
push dword [ebp + 0x18]
xor ebx, ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], ebx
call fcn.00408810
push 1
mov dword [ebp - 0x10], ebx
pop esi
mov dword [ebp - 4], esi
push 0x20019
lea ecx, [ebp - 0x10]
push dword [ebp + 0x10]
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
call fcn.004061a4
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], 0x42a3b8
mov eax, 0x200
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
call fcn.0040b14b
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0040b24e
lea ecx, [ebp - 0x14]
mov dword [ebp + 0x18], ebx
push ecx
push eax
lea eax, [ebp + 0x18]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
lea ecx, [ebp - 0x48]
sete byte [ebp + 0x1b]
mov byte [ebp - 4], 3
call fcn.0040b227
cmp byte [ebp + 0x1b], bl
je 0x40aff5
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x38]
push eax
call fcn.00409130
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
call fcn.00408837
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040886d
cmp dword [ebp - 0x10], ebx
je 0x40b021
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.0040886d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14

Function at 0x40b49b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0xc]
test ebx, ebx
jne 0x40b4b4
xor esi, esi
jmp 0x40b4e1
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0041ebc0
xor eax, eax
mov esi, esp
push eax
push eax
and byte [esi], 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40b4ff
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x64
jl 0x40b4a6
lea esp, [ebp - 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c1a5
Capabilities:
Get common file path
Move file

Disassembly:
mov eax, 0x42843f
call fcn.0041eb94
sub esp, 0x254
and dword [ebp - 0x10], 0
push ebx
push esi
lea eax, [ebp - 0x15c]
push edi
push eax
mov edi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ebx, [edi + 8]
lea eax, [ebp - 0x58]
push eax
mov ecx, ebx
call fcn.0040c32e
mov esi, eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.0040cb2c
mov esi, dword [esi + 4]
lea eax, [ebp - 0x260]
push eax
push 0
lea eax, [ebp - 0x15c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0040c731
lea eax, [ebp - 0x260]
push 0xffffffffffffffff
push eax
call fcn.004032bb
pop ecx
mov dword [ebp - 0x14], eax
pop ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 2
call fcn.004030c4
mov esi, 0x42a4dc
mov dword [ebp - 0x20], esi
cmp byte [edi + 0x1c], 0
mov dword [ebp - 4], 3
je 0x40c2f8
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x20]
push eax
call fcn.0040c32e
mov edi, eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0040cb2c
push dword [edi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x15c]
push eax
call edi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.0040c731
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
call fcn.0040c437
mov ebx, eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.0040cb2c
push dword [ebx + 4]
lea eax, [ebp - 0x15c]
push eax
call edi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.0040c731
lea eax, [ebp - 0x15c]
lea ecx, [ebp - 0x30]
push eax
call fcn.0040c6d4
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x20]
push eax
mov byte [ebp - 4], 6
call fcn.00409130
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0040c731
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.0040c6fb
mov dword [edi], esi
mov dword [ebp - 0x10], 1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0040c731
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40cf5d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 4]
xor esi, esi
mov ecx, dword [ecx]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x40cf91
mov edi, dword [ebp - 4]
xor eax, eax
cmp eax, esi
mov ebx, eax
jne 0x40cfb4
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
cmp edi, esi
je 0x40cfbf
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc
Function at 0x40cfc8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 8]
xor esi, esi
push eax
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
jne 0x40d04d
xor eax, eax
cmp dword [ebp - 4], esi
je 0x40d009
push dword [ebp - 4]
call edi
mov ecx, dword [ebp - 8]
cmp eax, esi
mov dword [ebp - 4], ecx
jne 0x40d04d
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x10]
push 1
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
lea ecx, [ebp - 4]
push dword [ebp + 8]
push str.CLSID
call fcn.0040cf5d
cmp dword [ebp - 4], esi
je 0x40d049
push dword [ebp - 4]
call edi
xor eax, eax
jmp 0x40d06b
cmp eax, esi
push ebx
jle 0x40d05c
and eax, 0xffff
or eax, 0x80070000
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x40d068
push dword [ebp - 4]
call edi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x40d15f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x4284ec
call fcn.0041eb94
sub esp, 0x114
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.004061a4
mov edi, eax
cmp edi, esi
je 0x40d1a9
cmp dword [ebp - 0x10], esi
je 0x40d1a2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40d246
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x40d21a
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040d15f
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x40d207
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x40d1cc
cmp dword [ebp - 0x10], esi
je 0x40d215
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x40d246
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40d22d
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x40d244
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40d2de
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x88], eax
jne 0x40d2fd
xor al, al
jmp 0x40d317
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x40d31b
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ecx
ret
Function at 0x40e26f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
jne 0x40e289
xor esi, esi
jmp 0x40e2b7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0041ebc0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x40e2f4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40e2df
call esi
mov esi, eax
jmp 0x40e389
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40e389
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x40e325
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x40e338
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40e380
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x40e33c
jmp 0x40e307
call esi
jmp 0x40e37e
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
cmp byte [esi + eax], bl
je 0x40e372
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.0041ebc0
lea eax, [esi + 1]
mov edi, esp
push eax
push dword [ebp + 8]
push edi
call fcn.0041ec40
add esp, 0xc
mov byte [edi + esi], bl
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push edi
call fcn.0040e3f0
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10