joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418063
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0040387a
xor esi, esi
inc esi
cmp dword [0x44759c], esi
pop ecx
je 0x41cbfc
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x447598], esi
mov byte [0x447594], al
jne 0x4180e5
mov ecx, dword [0x446e5c]
test ecx, ecx
je 0x4180c6
mov eax, dword [0x446e58]
sub eax, 4
cmp eax, ecx
mov dword [0x446e58], eax
jb 0x4180c6
mov eax, dword [eax]
test eax, eax
je 0x4180b6
call eax
mov eax, dword [0x446e58]
sub eax, 4
cmp eax, dword [0x446e5c]
jmp 0x4180a7
mov eax, 0x447578
mov esi, 0x447580
cmp eax, esi
mov edi, eax
jae 0x4180e5
mov eax, dword [edi]
test eax, eax
je 0x4180de
call eax
add edi, 4
cmp edi, esi
jb 0x4180d6
mov eax, 0x447584
mov esi, 0x44758c
cmp eax, esi
mov edi, eax
jae 0x418104
mov eax, dword [edi]
test eax, eax
je 0x4180fd
call eax
add edi, 4
cmp edi, esi
jb 0x4180f5
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x41cc11
push dword [ebp + 8]
mov dword [0x44759c], 1
call fcn.00418127
jmp 0x41cc18
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x41807f
push 8
call fcn.0040389c
pop ecx
pop ebp
ret

Function at 0x418127
Capabilities:
Terminate process

Disassembly:
push 0x418168
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x41814c
push 0x418158
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41814c
push dword [esp + 4]
call eax
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x418307
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x441f50
call fcn.004036d1
sub esp, 0x10c
mov eax, dword [0x446a0c]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
mov edi, ecx
call dword [0x446f78]
test byte [edi + 0x58], 4
mov ebx, eax
jne 0x4183d3
push 0x416b1c
push 0x104
lea eax, [ebp - 0x118]
push eax
mov esi, 0x416b0c
push esi
push 0x416b04
push 0x4183fc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x41b232
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push 2
push edi
call dword [eax + 0x14]
test eax, eax
jne 0x4183c6
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.0040366c
mov eax, esp
push ebx
push esi
lea ecx, [ebp - 0x118]
push ecx
push eax
call fcn.0040cd05
push eax
push dword [ebp - 0x14]
call fcn.00410fa4
test eax, eax
pop ecx
pop ecx
je 0x41b245
or dword [edi + 0x58], 4
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 0x58]
shr eax, 3
and eax, 1
lea esp, [ebp - 0x124]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
call fcn.004037c0
pop edi
pop esi
pop ebx
leave
ret
push esi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x418368
or dword [edi + 0x58], 8
jmp 0x4183c2
Function at 0x41efd8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x446a0c]
xor eax, dword [ebp + 4]
push esi
mov esi, ecx
cmp dword [esi + 4], 0
mov dword [ebp - 4], eax
je 0x41f048
lea eax, [ebp - 0x40c]
push eax
push 0x400
push 0
push dword [esi]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41f048
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x4138f4
lea eax, [ebp - 0x40c]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41f048
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x10]
mov esi, dword [esi + 4]
cmp eax, esi
jb 0x41f043
jne 0x41f048
cmp dword [ecx + 0x14], 0x20001
jne 0x41f048
xor eax, eax
inc eax
jmp 0x41f04a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.004037c0
leave
ret

Function at 0x4206ec
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x420706
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 0xc

Function at 0x42072f
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x42073a
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x446a0c]
xor eax, dword [ebp + 4]
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
mov dword [ebp - 4], eax
mov edi, ecx
je 0x4211ba
push 0x200
lea eax, [ebp - 0x204]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4211b6
lea eax, [ebp + 8]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4211a6
push dword [ebp + 8]
mov ecx, edi
call fcn.0042113e
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x42115d
xor eax, eax
jmp 0x4211bf
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
call fcn.004037c0
leave
ret 4
Function at 0x421373
Capabilities:
Access the windows event log

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x28c
mov eax, dword [0x446a0c]
xor eax, dword [ebp + 0x70]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x64], esi
call dword [0x446f78]
xor ebx, ebx
cmp dword [esi + 0x274], ebx
je 0x4213f8
lea eax, [esi + 0x150]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov edi, eax
cmp edi, ebx
je 0x4213f8
mov eax, dword [ebp + 0x78]
shr eax, 0x1e
cmp eax, 3
jne 0x4213c5
xor eax, eax
inc eax
jmp 0x4213d3
xor ecx, ecx
cmp eax, 2
setne cl
lea ecx, [ecx + ecx + 2]
mov eax, ecx
lea ecx, [ebp + 0x7c]
push ecx
mov ecx, dword [ebp + 0x7c]
push ebx
neg ecx
sbb ecx, ecx
and ecx, 4
push ecx
push ebx
push ebx
push dword [ebp + 0x78]
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
cmp byte [ebp + 0x74], bl
jne 0x421409
cmp dword [esi + 0x274], ebx
jne 0x42155e
mov eax, dword [esi + 0x34]
push ebx
push 0x80
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push dword [ebp + 0x78]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x42155e
cmp dword [esi + 0x274], ebx
jne 0x421545
push 0x104
lea eax, [ebp - 0x220]
push eax
push dword [0x446e70]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x421545
lea eax, [ebp - 0x220]
push 0x5c
push eax
call fcn.00413de1
cmp eax, ebx
pop ecx
pop ecx
jne 0x421476
lea eax, [ebp - 0x220]
jmp 0x421477
inc eax
lea edi, [ebp - 0x220]
mov byte [eax], bl
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x421480
mov esi, 0x421590
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x220]
push 0x42158c
push eax
movsd dword es:[edi], dword [esi]
call fcn.00436b6c
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp + 0x78], eax
je 0x421542
lea eax, [ebp - 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4214b3
sub eax, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x11c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x4214f5
lea edx, [ebp - 0x11c]
dec edx
mov cl, byte [edx + eax]
cmp cl, 0xa
je 0x4214f2
cmp cl, 0xd
je 0x4214f2
cmp cl, 0xc
jne 0x4214f5
dec eax
jne 0x4214e0
cmp dword [ebp + 0x7c], ebx
lea eax, [ebp + eax - 0x11c]
je 0x421514
push dword [ebp + 0x7c]
push 0x421578
push eax
call fcn.0040c98d
add esp, 0xc
jmp 0x421528
mov byte [eax], bl
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x421517
mov edi, eax
mov esi, 0x421574
movsw word es:[edi], word [esi]
push dword [ebp + 0x78]
lea eax, [ebp - 0x11c]
push eax
call fcn.00436a84
push dword [ebp + 0x78]
call fcn.00436a25
add esp, 0xc
mov esi, dword [ebp + 0x64]
cmp byte [ebp + 0x74], bl
je 0x42155e
push 0x200000
add esi, 0x50
push esi
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp + 0x68]
xor ecx, dword [ebp + 0x70]
pop edi
pop esi
pop ebx
call fcn.004037c0
add ebp, 0x6c
leave
ret 0xc
Function at 0x42180d
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x446a0c]
xor eax, dword [ebp + 4]
push esi
push edi
mov dword [ebp - 4], eax
mov eax, ecx
push 0xe
pop ecx
mov esi, 0x41d460
lea edi, [ebp - 0x108]
add eax, 0x150
rep movsd dword es:[edi], dword [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42183c
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x42184c
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x108]
push eax
and ecx, 3
push 0x80000002
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
pop edi
pop esi
jle 0x421886
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004037c0
leave
ret

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

Disassembly:
mov eax, 0x43ded8
call fcn.004036d1
sub esp, 0x114
mov eax, dword [0x446a0c]
xor eax, dword [ebp + 4]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
mov ebx, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
push 0x2001f
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
push dword [ebx]
call fcn.004206b7
cmp eax, esi
jne 0x421da5
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x421d6e
lea eax, [ebp - 0x120]
push eax
call fcn.00421d18
cmp eax, esi
jne 0x421da4
lea eax, [ebp - 0x20]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x18], pe_nt_image_headers32
call edi
test eax, eax
lea ecx, [ebp - 0x14]
je 0x421d5e
call fcn.00420652
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00420652
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
mov eax, esi
pop esi
pop ebx
call fcn.004037c0
leave
ret 4
Function at 0x421fe4
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x446a0c]
xor eax, dword [ebp + 4]
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0xf003f
push dword [ebp + 8]
mov esi, ecx
call fcn.00418401
test eax, eax
jne 0x422024
push dword [ebp - 8]
mov ecx, esi
call fcn.0042113e
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 8], 0
push 0xa
pop ecx
mov esi, 0x4184b8
lea edi, [ebp - 0x208]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
je 0x42207e
lea edi, [ebp - 0x208]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x422042
mov eax, dword [ebp + 8]
mov esi, 0x4138f4
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422056
lea edi, [ebp - 0x208]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x422066
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x208]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, dword [ebp + 4]
pop edi
and eax, 0x80004005
pop esi
call fcn.004037c0
leave
ret 4
Function at 0x4220aa
Capabilities:
Delete registry value
Delete service
Persist via run registry key
Stop service

Disassembly:
mov eax, 0x43e0b8
call fcn.004036d1
sub esp, 0x28
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], ebx
call fcn.004044c3
cmp eax, 4
jne 0x422153
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
push ebx
push ebx
mov edi, 0x2001f
push edi
push ebx
push ebx
push 0x41d50c
mov esi, 0x80000002
push esi
lea ecx, [ebp - 0x14]
call fcn.00420669
test eax, eax
jne 0x422107
push 0x41d504
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 1
push ebx
push ebx
push edi
push ebx
push ebx
push 0x41d4d4
push esi
lea ecx, [ebp + 8]
call fcn.00420669
test eax, eax
jne 0x422133
push 0x41d504
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00420652
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00420652
jmp 0x4221c4
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x4221b3
push 0x10020
add esi, 0x150
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, ebx
je 0x4221a2
lea eax, [ebp - 0x34]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
mov dword [ebp - 0x10], eax
call esi
jmp 0x4221a9
mov dword [ebp - 0x10], 1
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x10], ebx
jne 0x4221c4
mov ecx, dword [ebp - 0x18]
push ebx
push 0xc0001001
push dword [ebp + 8]
call fcn.00421373
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4221d8
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov eax, 0x43e100
call fcn.004036d1
sub esp, 0xc
mov dword [ebp - 0x18], ecx
call fcn.004044c3
cmp eax, 4
jne 0x42227a
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
push ebx
push ebx
mov edi, 0x2001f
push edi
push ebx
push ebx
push 0x41d50c
mov esi, 0x80000002
push esi
lea ecx, [ebp - 0x14]
call fcn.00420669
test eax, eax
jne 0x422232
mov eax, dword [ebp - 0x18]
add eax, 0x50
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 1
push ebx
push ebx
push edi
push ebx
push ebx
push 0x41d4d4
push esi
lea ecx, [ebp - 0x10]
call fcn.00420669
test eax, eax
jne 0x422260
mov eax, dword [ebp - 0x18]
add eax, 0x50
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.00420652
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00420652
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x4230ca
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x43e840
call fcn.004036d1
sub esp, 0x18
push esi
push edi
xor edi, edi
push edi
push edi
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x423234
push ebx
call dword [0x446f78]
and byte [ebp - 0xd], 0
lea eax, [ebp - 0x18]
push eax
push 0x20006
mov ecx, esi
call fcn.004211d0
test eax, eax
jne 0x4231c7
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x20]
push eax
lea ebx, [esi + 0x30]
push 0x1130
mov ecx, ebx
call fcn.0040b0e4
test eax, eax
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
jne 0x42319c
lea eax, [ebp - 0x1c]
push eax
push 0x1131
mov ecx, ebx
call fcn.0040b0e4
test eax, eax
jne 0x42319c
and dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.00431e49
test eax, eax
jne 0x42317a
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call fcn.00432013
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.004331af
test eax, eax
jl 0x423193
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
call edi
push 0x41d568
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [ebp - 4], 0
push dword [ebp - 0x1c]
call edi
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x20]
call edi
xor edi, edi
mov ecx, esi
call fcn.00421598
push edi
push 1
mov ecx, esi
call fcn.00422e85
test eax, eax
mov ecx, esi
setne byte [ebp + 0xb]
call fcn.00421893
mov ebx, eax
neg ebx
sbb bl, bl
mov ecx, esi
inc bl
call fcn.004212bc
neg eax
sbb al, al
push 0x70000
inc al
push 0x24fa0000
mov byte [ebp - 0xe], al
call fcn.00433b1f
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp byte [ebp - 0xd], 0
je 0x42322c
cmp byte [ebp + 0xb], 0
je 0x42322c
test bl, bl
je 0x42322c
cmp byte [ebp - 0xe], 0
je 0x42322c
xor eax, eax
jmp 0x423231
mov eax, 0x643
pop ebx
jmp 0x423239
mov eax, 0x643
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x424fd5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x43f843
call fcn.004036d1
sub esp, 0x420
mov eax, dword [0x446a0c]
xor eax, dword [ebp + 4]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
call dword [0x446f78]
mov ebx, eax
mov dword [ebp - 0x18], esi
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x420], edi
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
jne 0x42501a
xor eax, eax
jmp 0x425044
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.0040366c
mov dword [ebp - 0x10], esp
mov eax, esp
push ebx
push esi
push dword [ebp + 8]
push eax
call fcn.0040cd49
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
mov dword [ebp - 0x424], ebx
cmp ebx, edi
jne 0x425066
call fcn.00420592
mov esi, eax
jmp 0x425118
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, edi
je 0x42508b
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
cmp eax, edi
jne 0x425092
call fcn.00420592
jmp 0x42510a
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
mov byte [ebp - 4], 1
lea eax, [ebx + 1]
push eax
lea ecx, [ebp - 0x420]
call fcn.00421ef6
jmp 0x4250c5
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0x420]
test edi, edi
jne 0x4250d9
mov esi, 0x8007000e
jmp 0x42510c
mov ecx, ebx
mov esi, dword [ebp - 0x428]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x420]
and byte [ebx + eax], 0
push dword [ebp + 0x14]
push dword [ebp - 0x420]
lea ecx, [ebp - 0x1c]
call fcn.0042433e
mov esi, eax
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x425135
lea ecx, [ebp - 0x420]
call fcn.00420fd6
mov eax, esi
lea esp, [ebp - 0x438]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp + 4]
call fcn.004037c0
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x42540a
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x43f8f8
call fcn.004036d1
sub esp, 0x14
and byte [ebp - 0xd], 0
push ebx
push esi
push edi
xor edi, edi
push edi
push 1
mov esi, ecx
mov eax, dword [esi]
push 0x64
push esi
call dword [eax + 0x1c]
test eax, eax
jl 0x425513
lea eax, [ebp - 0x20]
push eax
push 0x20006
mov ecx, esi
call fcn.004211d0
test eax, eax
jne 0x425513
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x20]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, 0x425568
push edi
push eax
mov dword [ebp - 0x14], eax
call ebx
cmp dword [esi + 0x274], 0
je 0x42548d
push 1
lea eax, [esi + 0x150]
push eax
push edi
lea ecx, [ebp - 0x14]
call fcn.00420706
push 0x425560
push dword [ebp - 0x14]
call ebx
and dword [ebp - 0x1c], 0
mov byte [ebp - 4], 1
and dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1c]
push eax
lea edi, [esi + 0x30]
push 0x1130
mov ecx, edi
call fcn.0040b0e4
test eax, eax
jne 0x4254df
lea eax, [ebp - 0x18]
push eax
push 0x1131
mov ecx, edi
call fcn.0040b0e4
test eax, eax
jne 0x4254df
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.004331af
test eax, eax
jl 0x4254df
mov byte [ebp - 0xd], 1
cmp byte [ebp + 8], 0
je 0x4254ef
push 0x41d568
push dword [ebp - 0x14]
call ebx
mov byte [ebp - 4], 1
push dword [ebp - 0x18]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
and byte [ebp - 4], 0
push dword [ebp - 0x1c]
call edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00420652
movzx eax, byte [ebp + 0xc]
push 0
push eax
mov ecx, esi
xor bl, bl
call fcn.00425340
test eax, eax
jl 0x425529
inc bl
mov ecx, esi
call fcn.00421893
neg eax
sbb al, al
inc al
cmp byte [ebp - 0xd], 0
je 0x425548
test bl, bl
je 0x425548
test al, al
je 0x425548
xor eax, eax
jmp 0x42554d
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4262e5
Capabilities:
Set registry value

Disassembly:
mov eax, 0x43fe48
call fcn.004036d1
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov esi, ecx
push ebx
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, eax
cmp edi, ebx
jl 0x42646a
cmp dword [ebp + 8], ebx
mov ecx, esi
setne al
mov byte [ebp - 0xd], bl
push eax
push 1
call fcn.0042540a
test eax, eax
jl 0x426329
mov byte [ebp - 0xd], 1
push 1
call fcn.0042b8fc
push 1
call fcn.0042b97c
lea eax, [ebp - 0x14]
push eax
push 0x20006
push 0x416af4
mov ecx, esi
call fcn.0042107d
test eax, eax
jne 0x426416
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
pop edi
push edi
lea ecx, [ebp - 0x18]
push ecx
push edi
push ebx
push 0x4264d8
push eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x18], ebx
call esi
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push 0x4264cc
push dword [ebp + 8]
mov dword [ebp - 0x18], ebx
call esi
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push 0x4264c4
push dword [ebp + 8]
mov dword [ebp - 0x18], ebx
call esi
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push 0x4264b8
push dword [ebp + 8]
mov dword [ebp - 0x18], ebx
call esi
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push 0x4264ac
push dword [ebp + 8]
mov dword [ebp - 0x18], ebx
call esi
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push 0x42649c
push dword [ebp + 8]
mov dword [ebp - 0x18], ebx
call esi
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push 0x426490
push dword [ebp + 8]
mov dword [ebp - 0x18], ebx
call esi
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push 0x426480
push dword [ebp + 8]
mov dword [ebp - 0x18], ebx
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00420652
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.00421598
push ebx
push dword [esi + 0x274]
mov ecx, esi
call fcn.00422e85
push 0x70000
test eax, eax
push 0x24fa0000
setne byte [ebp + 0xb]
call fcn.00433b1f
mov ecx, esi
call fcn.004212bc
neg eax
sbb al, al
inc al
cmp byte [ebp + 0xb], bl
je 0x42645f
cmp byte [ebp - 0xd], bl
je 0x42645f
cmp al, bl
je 0x42645f
xor edi, edi
jmp 0x426464
mov edi, 0x80004005
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4