joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b230
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x110]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [esp + 0x11c]
push str.Empty
push ecx
lea edx, [esp + 0x20]
push str._sEmpty__08d__08d__08d
push edx
call fcn.0041198f
mov edi, dword [esp + 0x234]
add esp, 0x1c
xor esi, esi
mov eax, dword [edi + 8]
test eax, eax
mov dword [esp + 8], eax
jle 0x40b31e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 4
push 0
push 0
lea eax, [esp + 0x28]
push 0xc0000000
push eax
call ebp
cmp eax, 0xffffffff
je 0x40b313
push eax
call ebx
mov ecx, dword [edi + 4]
push 0
push 0
push 0x240
mov edx, dword [ecx + esi*4]
lea eax, [esp + 0x20]
push edx
push 0
push eax
push 0
push 0
call dword [sym.imp.SETUPAPI.dll_SetupInstallFileA]
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x40b2d1
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x20c
ret

Function at 0x40b330
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46a9eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
mov byte [esp + 0x11c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11d]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x11c]
push ecx
push str._sOCular
push edx
call fcn.0041198f
add esp, 0xc
lea ecx, [esp + 4]
call fcn.0045c634
lea eax, [esp + 4]
lea ecx, [esp + 0x11c]
push eax
push 0x40b410
push ecx
mov dword [esp + 0x234], 0
call fcn.00405d20
lea edx, [esp + 0x10]
push edx
call fcn.0040b230
add esp, 0x10
lea ecx, [esp + 4]
mov dword [esp + 0x228], 0xffffffff
call fcn.0045c667
mov ecx, dword [esp + 0x220]
pop edi
mov dword fs:[0], ecx
add esp, 0x228
ret
Function at 0x40e150
Capabilities:
Delete directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46acd9
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
push esi
push edi
xor ebx, ebx
xor ebp, ebp
call fcn.0040e0c0
test eax, eax
jne 0x40e22b
call fcn.0040d7d0
test eax, eax
je 0x40e246
push 0x58
call fcn.0045e1f2
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, ebx
mov dword [esp + 0x128], ebx
je 0x40e1fc
mov ecx, esi
call fcn.00444630
lea edi, [esi + 0x20]
push ebx
mov ecx, edi
mov byte [esp + 0x12c], 1
call fcn.0040fcfd
mov dword [edi], 0x46e8f4
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esp + 0x14]
mov dword [esi], 0x46e968
mov dword [esi + 0x40], eax
mov dword [esi + 0x4c], 0x40d170
mov dword [esi + 0x44], 0x3e8
mov dword [esi + 0x48], 1
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
jmp 0x40e1fe
xor esi, esi
cmp esi, ebx
mov dword [esp + 0x128], 0xffffffff
je 0x40e261
mov ecx, esi
mov dword [esi + 0x18], 0xa
call fcn.00444720
call fcn.0040daa0
test eax, eax
je 0x40e27c
mov ebp, 1
jmp 0x40e295
push str.InstallTpacketvModule_100
push str.InstTpacketV
push 0xffffffffffffffff
push 0x4858f4
call fcn.0040c750
add esp, 0x10
jmp 0x40e29d
push str.InstallTpacketvModule_1
push str.InstTpacketV
push 0xffffffffffffffff
push 0x4858f4
call fcn.0040c750
add esp, 0x10
jmp 0x40e29d
push str.InstallTpacketvModule_2
push str.InstTpacketV
push 0xffffffffffffffff
push 0x4858f4
call fcn.0040c750
add esp, 0x10
jmp 0x40e29d
push str.InstallTpacketvModule_3
push str.InstTpacketV
push 0xffffffffffffffff
push 0x4858f4
call fcn.0040c750
add esp, 0x10
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.C:TpacketV
lea eax, [esp + 0x24]
push 0x47fa5c
push eax
call fcn.0041198f
lea ecx, [esp + 0x2c]
push ecx
call fcn.0040a760
add esp, 0x10
push str.C:TpacketV
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x120]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret

Function at 0x40e5a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push esi
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 8], 0x94
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40e606
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x40e5e0
pop edi
pop esi
add esp, 0x94
ret
cmp eax, 2
jne 0x40e606
mov eax, dword [esp + 0xc]
cmp eax, 4
jne 0x40e5fc
pop edi
mov eax, 2
pop esi
add esp, 0x94
ret
cmp eax, 5
mov eax, 3
je 0x40e608
mov eax, esi
pop edi
pop esi
add esp, 0x94
ret
Function at 0x40e860
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x6c
lea eax, [esp]
push 0
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SYSTEMCurrentControlSetServicesTPacket
push SysFreeString
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40ea16
mov eax, dword [esp]
test eax, eax
je 0x40ea16
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
push edi
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push str.Type
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 1
call ebx
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
push 0x47fc94
push eax
call ebx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push 4
push ecx
push 4
push 0
push str.ErrorControl
push edx
call ebx
mov ecx, dword [0x47fe48]
mov eax, dword [str.Extended_Base]
mov dword [esp + 0x30], ecx
mov edx, dword [0x47fe4c]
mov ecx, 0xa
mov esi, str.SystemRootSystem32Drivers_tpacket.sys
lea edi, [esp + 0x4c]
mov dword [esp + 0x2c], eax
mov ax, word [0x47fe50]
mov dword [esp + 0x34], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [str.TPacket_Driver]
mov edx, dword [0x47fe18]
mov word [esp + 0x38], ax
mov eax, dword [0x47fe1c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], ecx
mov cx, word [0x47fe20]
lea eax, [esp + 0x2c]
push 0xe
push eax
mov word [esp + 0x50], cx
mov ecx, dword [esp + 0x14]
push 1
mov dword [esp + 0x4c], edx
mov dl, byte [0x47fe22]
push 0
push str.Group
push ecx
movsb byte es:[edi], byte [esi]
mov byte [esp + 0x62], dl
call ebx
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x4c]
push 0x29
push edx
push 2
push 0
push str.ImagePath
push eax
call ebx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x3c]
push 0xf
push ecx
push 1
push 0
push str.DisplayName
push edx
call ebx
mov eax, dword [str.NDIS]
mov cl, byte [0x47fe00]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push 5
push eax
mov byte [esp + 0x28], cl
mov byte [esp + 0x30], cl
mov ecx, dword [esp + 0x14]
push 1
push 0
push str.DependOnGroup
push ecx
call ebx
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x24]
push 5
push edx
push 1
push 0
push str.DependOnService
push eax
call ebx
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x6c
ret
xor eax, eax
add esp, 0x6c
ret
Function at 0x40ea20
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x208
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40eb71
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
js 0x40eb71
cmp ecx, 0x104
jge 0x40eb71
lea eax, [esp + ecx + 0xb]
mov cl, byte [esp + ecx + 0xb]
cmp cl, 0x5c
jne 0x40ea86
mov byte [eax], 0
mov edi, str.Drivers_tpacket.sys
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x110], al
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0x111]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x218]
test eax, eax
je 0x40eaef
push 0x103
push eax
lea eax, [esp + 0x118]
push eax
call fcn.0041137e
add esp, 0xc
jmp 0x40eb52
lea ecx, [esp + 0x110]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40eb71
lea edx, [esp + 0x110]
push 0x5c
push edx
call fcn.00411daf
add esp, 8
test eax, eax
je 0x40eb21
mov byte [eax], 0
mov edi, str._tpacket.sys
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x110]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0xc]
push 0
lea ecx, [esp + 0x114]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
add esp, 0x208
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x208
ret

Function at 0x40eb80
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push 0
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SystemCurrentControlSetServicesVxDTPACKET
push SysFreeString
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40ec04
mov eax, dword [esp]
test eax, eax
je 0x40ec04
mov edx, dword [0x47feac]
mov ecx, dword [str.TPacket.vxd]
mov dword [esp + 8], edx
lea edx, [esp + 4]
push 0xc
push edx
push 1
mov dword [esp + 0x10], ecx
mov ecx, dword [0x47feb0]
push 0
push 0x47fdf0
push eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x10
ret
xor eax, eax
add esp, 0x10
ret
Function at 0x40ec10
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x208
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40ed7c
lea edi, [esp + 0x110]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
js 0x40ed7c
cmp ecx, 0x104
jge 0x40ed7c
lea eax, [esp + ecx + 0x10f]
mov cl, byte [esp + ecx + 0x10f]
cmp cl, 0x5c
jne 0x40ec88
mov byte [eax], 0
mov edi, str._tpacket.vxd
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x110]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0xc], al
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0xd]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x218]
test eax, eax
je 0x40eceb
push 0x103
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0041137e
add esp, 0xc
jmp 0x40ed5d
lea ecx, [esp + 0xc]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40ed7c
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40ed7c
cmp ecx, 0x104
jge 0x40ed7c
lea edx, [esp + 0xc]
push 0x5c
push edx
call fcn.00411daf
add esp, 8
test eax, eax
je 0x40ed2f
mov byte [eax], 0
mov edi, str._tpacket.vxd
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x110]
push 0
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
add esp, 0x208
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x208
ret
Function at 0x420e20
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x420e43
mov ebp, dword [esp + 0x14]
push 0x20019
push eax
push ebp
call fcn.00420d10
add esp, 0xc
mov esi, eax
jmp 0x420e49
mov ebp, dword [esp + 0x14]
mov esi, ebp
test esi, esi
je 0x420eae
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x420ea1
cmp dword [esp + 0x14], 4
jne 0x420ea1
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
push eax
push 0
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x420ea1
cmp esi, ebp
je 0x420e97
push esi
call fcn.00420d60
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
cmp esi, ebp
je 0x420eae
push esi
call fcn.00420d60
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4213c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
je 0x4213e4
push 0x20019
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00420d10
add esp, 0xc
mov ebx, eax
jmp 0x4213e7
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x42159e
call fcn.00444f40
test eax, eax
je 0x4214d1
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x421408
mov dword [ebp + 0x10], eax
jmp 0x42143b
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00412e70
mov ecx, dword [ebp + 0x10]
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp + 0x10], edi
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 4]
push 0
push eax
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x421590
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x421475
cmp eax, 2
je 0x421475
cmp eax, 6
je 0x421475
cmp eax, 7
jne 0x421590
mov edx, dword [ebp + 0xc]
add edx, 2
push edx
call fcn.0045e1f2
mov esi, eax
mov eax, dword [ebp + 0xc]
mov edi, esi
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push esi
push 0
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push esi
jne 0x42157b
mov ecx, dword [ebp + 0x14]
call fcn.00429640
cmp ebx, dword [ebp + 8]
je 0x421563
jmp 0x42155a
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 4]
push 0
push eax
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x421590
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x42150b
cmp eax, 2
je 0x42150b
cmp eax, 6
je 0x42150b
cmp eax, 7
jne 0x421590
mov edx, dword [ebp + 0xc]
add edx, 2
push edx
call fcn.0045e1f2
mov esi, eax
mov eax, dword [ebp + 0xc]
mov edi, esi
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push esi
push 0
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push esi
jne 0x42157b
mov ecx, dword [ebp + 0x14]
call fcn.00429710
cmp ebx, dword [ebp + 8]
je 0x421563
push ebx
call fcn.00420d60
add esp, 4
push esi
call fcn.0045e21b
add esp, 4
mov eax, 1
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0045e21b
mov ecx, dword [ebp + 0x14]
add esp, 4
push 0x4858e0
call fcn.00429710
cmp ebx, dword [ebp + 8]
je 0x42159e
push ebx
call fcn.00420d60
add esp, 4
lea esp, [ebp - 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421c10
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
push esi
test eax, eax
push edi
je 0x421c31
mov edi, dword [esp + 0xc]
push 0x20006
push eax
push edi
call fcn.00420da0
add esp, 0xc
mov esi, eax
jmp 0x421c37
mov edi, dword [esp + 0xc]
mov esi, edi
test esi, esi
je 0x421c78
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 4
push eax
push 4
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x421c6b
cmp esi, edi
je 0x421c63
push esi
call fcn.00420d60
add esp, 4
pop edi
mov eax, 1
pop esi
ret
cmp esi, edi
je 0x421c78
push esi
call fcn.00420d60
add esp, 4
pop edi
xor eax, eax
pop esi
ret

Function at 0x421e40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46b878
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x421e78
push 0x20006
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00420da0
add esp, 0xc
mov edi, eax
jmp 0x421e7b
mov edi, dword [ebp + 8]
test edi, edi
je 0x421f67
call fcn.00444f40
test eax, eax
je 0x421efe
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x421e97
xor ebx, ebx
jmp 0x421ec7
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00412e70
mov ecx, dword [ebp + 0x10]
mov ebx, esp
push esi
push ebx
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [ebp + 0x14]
push esi
call fcn.00410fb4
add esp, 4
lea edx, [eax + eax + 2]
push edx
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x421f59
cmp edi, dword [ebp + 8]
je 0x421ef7
push edi
call fcn.00420d60
add esp, 4
mov eax, 1
jmp 0x421f69
mov eax, dword [ebp + 0x14]
lea ecx, [ebp + 0x14]
push eax
call fcn.00423200
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax - 8]
inc ecx
push ecx
mov ecx, dword [ebp + 0x10]
push eax
push 1
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x421f4a
cmp edi, dword [ebp + 8]
je 0x421f34
push edi
call fcn.00420d60
add esp, 4
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.00423a00
mov eax, 1
jmp 0x421f69
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.00423a00
cmp edi, dword [ebp + 8]
je 0x421f67
push edi
call fcn.00420d60
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422050
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xc
test eax, eax
je 0x422074
push 0x20006
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.00420da0
add esp, 0xc
mov dword [esp], eax
jmp 0x42207c
mov ecx, dword [esp + 0x10]
mov dword [esp], ecx
mov eax, dword [esp]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x4221c5
mov ebp, dword [esp + 0x2c]
mov esi, 1
xor edi, edi
mov dword [esp + 0x24], esi
mov eax, dword [ebp + 8]
test eax, eax
jle 0x4220d1
lea edx, [esp + 0x2c]
push edi
push edx
mov ecx, ebp
call fcn.004221d0
mov eax, dword [eax]
mov ecx, dword [eax - 8]
lea edx, [esi + ecx + 1]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], edx
call fcn.0045db21
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x24]
inc edi
cmp edi, eax
jl 0x4220a2
push esi
call fcn.0045e1f2
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x18], ebx
je 0x4221c5
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x2c], 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
test eax, eax
jle 0x42216c
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, ebp
call fcn.004221d0
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.0045db21
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x2c]
not ecx
dec ecx
inc eax
mov dword [esp + 0x2c], eax
lea ebx, [ebx + ecx + 1]
mov ecx, dword [ebp + 8]
cmp eax, ecx
jl 0x42210b
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x14]
push ebx
push 7
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4221ab
cmp esi, dword [esp + 0x20]
je 0x422195
push esi
call fcn.00420d60
add esp, 4
push ebx
call fcn.0045e21b
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push ebx
call fcn.0045e21b
mov eax, dword [esp + 0x24]
add esp, 4
cmp esi, eax
je 0x4221c5
push esi
call fcn.00420d60
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret