joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405df0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 8], 4
test esi, esi
je 0x405ee0
cmp esi, 0xffffffff
je 0x405ee0
cmp dword [esi], 0x8000000
jne 0x405ee0
mov eax, dword [ebp + 0xc]
dec eax
push edi
cmp eax, 0x3f
ja case.0x405e36.3
movzx eax, byte [eax + 0x405f04]
jmp dword [eax*4 + 0x405ee8]
mov edi, dword [esi + 0x58]
jmp 0x405e59
mov edi, dword [esi + 0x6c]
jmp 0x405e59
mov edi, dword [esi + 0x5c]
jmp 0x405e59
mov edi, dword [esi + 0x70]
jmp 0x405e59
mov edi, dword [esi + 0x60]
jmp 0x405e59
mov edi, dword [esi + 0x74]
test edi, edi
jne 0x405e65
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x405ea3
mov eax, dword [esi + 0x64]
test eax, eax
je 0x405e87
cmp eax, 0xffffffff
je 0x405e87
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x64], 0
mov edx, dword [esi + 0x78]
lea ecx, [ebp - 4]
push ecx
push edx
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405ed7
mov edi, dword [ebp - 4]
mov dword [esi + 0x64], edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push eax
push edi
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405ed7
cmp dword [ebp - 8], 4
jne 0x405ed7
mov eax, dword [ebp - 0xc]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405f50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
test esi, esi
je 0x406076
cmp esi, 0xffffffff
je 0x406076
cmp dword [esi], 0x8000000
jne 0x406076
mov eax, dword [ebp + 0xc]
dec eax
push edi
cmp eax, 0x3f
ja case.0x405f8d.3
movzx eax, byte [eax + 0x40609c]
jmp dword [eax*4 + 0x406080]
mov edi, dword [esi + 0x58]
jmp 0x405fb0
mov edi, dword [esi + 0x6c]
jmp 0x405fb0
mov edi, dword [esi + 0x5c]
jmp 0x405fb0
mov edi, dword [esi + 0x70]
jmp 0x405fb0
mov edi, dword [esi + 0x60]
jmp 0x405fb0
mov edi, dword [esi + 0x74]
test edi, edi
jne 0x405fbc
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x405ffa
mov eax, dword [esi + 0x64]
test eax, eax
je 0x405fde
cmp eax, 0xffffffff
je 0x405fde
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x64], 0
mov edx, dword [esi + 0x78]
lea ecx, [ebp - 4]
push ecx
push edx
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406040
mov edi, dword [ebp - 4]
mov dword [esi + 0x64], edi
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
test eax, eax
je 0x406049
test ebx, ebx
je 0x406049
cmp dword [ebx], 0
je 0x406049
mov ecx, dword [ebp + 0x14]
push ebx
push eax
lea eax, [ebp + 8]
push eax
push 0
push ecx
push edi
mov dword [ebp + 8], 7
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406040
cmp dword [ebp + 8], 7
jne 0x406040
mov edx, dword [ebp + 0x18]
pop ebx
pop edi
mov dword [esi + 0x68], edx
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov ecx, dword [esi + 0x24]
push ebx
push eax
push edi
push ecx
call fcn.00405800
add esp, 0x10
mov dword [esi + 0x68], eax
test eax, eax
je 0x40606c
test ebx, ebx
je 0x40606c
mov edx, dword [ebx]
add edx, edx
mov dword [ebx], edx
mov eax, dword [esi + 0x68]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4060e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
test esi, esi
je 0x4061be
cmp esi, 0xffffffff
je 0x4061be
cmp dword [esi], 0x8000000
jne 0x4061be
mov eax, dword [ebp + 0xc]
dec eax
push edi
cmp eax, 0x3f
ja case.0x40611d.3
movzx eax, byte [eax + 0x4061e4]
jmp dword [eax*4 + 0x4061c8]
mov edi, dword [esi + 0x58]
jmp 0x406140
mov edi, dword [esi + 0x6c]
jmp 0x406140
mov edi, dword [esi + 0x5c]
jmp 0x406140
mov edi, dword [esi + 0x70]
jmp 0x406140
mov edi, dword [esi + 0x60]
jmp 0x406140
mov edi, dword [esi + 0x74]
test edi, edi
jne 0x40614c
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x40619b
mov eax, dword [esi + 0x64]
test eax, eax
je 0x40616e
cmp eax, 0xffffffff
je 0x40616e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x64], 0
mov edx, dword [esi + 0x78]
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push edx
push 0
push 0
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x406195
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 4]
mov dword [esi + 0x64], edi
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push eax
push ecx
push 7
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
pop ebx
sbb eax, eax
pop edi
inc eax
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406230
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
test esi, esi
je 0x406334
cmp esi, 0xffffffff
je 0x406334
cmp dword [esi], 0x8000000
jne 0x406334
mov eax, dword [ebp + 0xc]
dec eax
push edi
cmp eax, 0x3f
ja case.0x40626d.3
movzx eax, byte [eax + 0x406358]
jmp dword [eax*4 + 0x40633c]
mov edi, dword [esi + 0x58]
jmp 0x406290
mov edi, dword [esi + 0x6c]
jmp 0x406290
mov edi, dword [esi + 0x5c]
jmp 0x406290
mov edi, dword [esi + 0x70]
jmp 0x406290
mov edi, dword [esi + 0x60]
jmp 0x406290
mov edi, dword [esi + 0x74]
test edi, edi
jne 0x40629c
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4062e2
mov eax, dword [esi + 0x64]
test eax, eax
je 0x4062be
cmp eax, 0xffffffff
je 0x4062be
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x64], 0
mov edx, dword [esi + 0x78]
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push edx
push 0
push 0
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x406312
mov edi, dword [ebp - 4]
mov dword [esi + 0x64], edi
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x40631b
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call ebx
test eax, eax
je 0x40631b
push esi
call ebx
mov ecx, dword [ebp + 0x14]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x406328
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x40630e
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4063a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
test esi, esi
je 0x40647c
cmp esi, 0xffffffff
je 0x40647c
cmp dword [esi], 0x8000000
jne 0x40647c
mov eax, dword [ebp + 0xc]
dec eax
push edi
cmp eax, 0x3f
ja case.0x4063dd.3
movzx eax, byte [eax + 0x4064a0]
jmp dword [eax*4 + 0x406484]
mov edi, dword [esi + 0x58]
jmp 0x406400
mov edi, dword [esi + 0x6c]
jmp 0x406400
mov edi, dword [esi + 0x5c]
jmp 0x406400
mov edi, dword [esi + 0x70]
jmp 0x406400
mov edi, dword [esi + 0x60]
jmp 0x406400
mov edi, dword [esi + 0x74]
test edi, edi
jne 0x40640c
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x40645b
mov eax, dword [esi + 0x64]
test eax, eax
je 0x40642e
cmp eax, 0xffffffff
je 0x40642e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x64], 0
mov edx, dword [esi + 0x78]
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push edx
push 0
push 0
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x406455
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 4]
mov dword [esi + 0x64], edi
mov ecx, dword [ebp + 0x14]
push 4
lea eax, [ebp + 0x18]
push eax
push 4
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
pop ebx
sbb eax, eax
pop edi
inc eax
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x41398c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push ebx
xor esi, esi
push edi
mov dword [ebp - 0x40c], esi
mov dword [ebp - 0x408], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x406527
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c2f4
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x408]
push eax
push 0x10008
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
cmp ecx, esi
je 0x406560
sub eax, 2
neg eax
pop edi
sbb eax, eax
pop esi
and eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c2f4
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x408]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x40c]
push ecx
lea edx, [ebp - 0x404]
push edx
push 0
push eax
mov dword [ebp - 0x40c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x4065b4
mov edx, dword [ebp - 0x408]
lea ecx, [ebp - 0x404]
push ecx
push edx
call fcn.004064e0
mov esi, eax
add esp, 8
test esi, esi
je 0x406560
jmp 0x4065be
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [ebp - 0x408]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c2f4
mov esp, ebp
pop ebp
ret
Function at 0x4065e0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x41398c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x410], ebx
mov dword [ebp - 0x40c], 1
mov dword [ebp - 0x428], 0x80000002
mov dword [ebp - 0x424], 0x80000001
mov dword [ebp - 0x420], ebx
cmp eax, ebx
je 0x406795
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call edi
cmp eax, 0xff
jg 0x406795
cmp esi, ebx
je 0x406666
push esi
call edi
cmp eax, 0xff
jg 0x406795
push esi
lea eax, [ebp - 0x404]
push eax
jmp 0x406674
mov ecx, dword [str.Apache_Software_Foundation]
push ecx
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [0x4134a4]
push eax
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov esi, dword [ebp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [ebp - 0x428]
or esi, 0x20019
mov dword [ebp - 0x414], edx
mov dword [ebp - 0x41c], esi
mov eax, 0x80000002
mov edx, dword [str.SOFTWARE_]
lea ecx, [ebp - 0x408]
push ecx
push esi
push ebx
push edx
push eax
mov dword [ebp - 0x408], ebx
call edi
test eax, eax
je 0x4066db
mov dword [ebp - 0x40c], ebx
jmp 0x406765
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x410]
push eax
mov eax, dword [ebp - 0x408]
or ecx, 0x10008
push ecx
push ebx
lea edx, [ebp - 0x404]
push edx
push eax
call edi
test eax, eax
jne 0x40673f
mov ecx, dword [ebp - 0x418]
mov edx, dword [ebp - 0x410]
push ecx
push edx
call fcn.004064e0
mov esi, eax
mov eax, dword [ebp - 0x410]
add esp, 8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
cmp esi, ebx
mov esi, dword [ebp - 0x41c]
sete cl
mov dword [ebp - 0x410], ebx
or dword [ebp - 0x40c], ecx
cmp dword [ebp + 0x14], ebx
je 0x406758
mov eax, dword [ebp - 0x408]
lea edx, [ebp - 0x404]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 0x408]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x414]
add eax, 4
mov dword [ebp - 0x414], eax
mov eax, dword [eax]
cmp eax, ebx
jne 0x4066b3
mov eax, dword [ebp - 0x40c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c2f4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040c2f4
mov esp, ebp
pop ebp
ret
Function at 0x4067b0
Capabilities:
Query or enumerate registry value
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60c
mov eax, dword [0x41398c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4067e6
mov eax, dword [str.JAVA_HOME]
push eax
push ebx
call fcn.00408720
add esp, 8
test eax, eax
jne 0x40690c
mov ecx, dword [str.CurrentVersion]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ecx
lea edx, [ebp - 0x604]
push edx
call esi
test edi, edi
je 0x406810
mov eax, dword [str.SOFTWAREJavaSoftJava_Runtime_Environment_]
push eax
lea ecx, [ebp - 0x404]
push ecx
jmp 0x40681e
mov edx, dword [str.SOFTWAREJavaSoftJava_Development_Kit_]
push edx
lea eax, [ebp - 0x404]
push eax
call esi
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [ebp - 0x608]
push edx
push 0x20019
lea edi, [ebp + eax*2 - 0x404]
push 0
lea eax, [ebp - 0x404]
push eax
push 0x80000002
mov dword [ebp - 0x60c], 0xff
call esi
test eax, eax
jne 0x406893
mov edx, dword [str.CurrentVersion]
lea ecx, [ebp - 0x60c]
push ecx
push edi
push eax
push eax
mov eax, dword [ebp - 0x608]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4068a6
mov ecx, dword [ebp - 0x608]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c2f4
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x608]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call edi
lea eax, [ebp - 0x608]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x404]
push ecx
push 0x80000002
call esi
test eax, eax
jne 0x406893
mov edx, dword [str.JavaHome]
mov eax, dword [ebp - 0x608]
push edx
push eax
push ebx
call fcn.00405780
mov esi, eax
add esp, 0xc
test esi, esi
je 0x406900
mov ecx, dword [str.JAVA_HOME]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov edx, dword [ebp - 0x608]
push edx
call edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040c2f4
mov esp, ebp
pop ebp
ret
Function at 0x406920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x41398c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str.SOFTWAREJavaSoftJava_Runtime_Environment_]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push eax
lea ecx, [ebp - 0x404]
mov esi, 0x100
push ecx
mov dword [ebp - 0x40c], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [ebp + eax*2 - 0x404]
lea eax, [ebp - 0x408]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x404]
push ecx
mov dword [ebp - 0x40c], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x80000002
call esi
test eax, eax
jne 0x4069c5
mov ecx, dword [ebp - 0x408]
lea edx, [ebp - 0x40c]
push edx
push edi
push eax
push eax
mov eax, dword [str.CurrentVersion]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4069d8
mov edx, dword [ebp - 0x408]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c2f4
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x408]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
lea ecx, [ebp - 0x408]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x404]
push edx
push 0x80000002
call esi
test eax, eax
jne 0x4069c5
mov eax, dword [str.RuntimeLib]
mov ecx, dword [ebp - 0x408]
push eax
push ecx
push ebx
call fcn.00405780
mov edx, dword [ebp - 0x408]
add esp, 0xc
push edx
mov esi, eax
call edi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c2f4
mov esp, ebp
pop ebp
ret

Function at 0x406a40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41398c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [eax + eax]
push esi
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x208], 1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0xff
jg 0x406b24
mov edx, dword [str.SYSTEMCurrentControlSetServices_]
push edx
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [ebp - 0x20c]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x204]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406b24
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x20c]
push edi
lea edx, [ebp - 0x208]
push edx
push eax
mov eax, dword [str.Description]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x20c]
test eax, eax
je 0x406b04
cmp eax, 0xffffffff
je 0x406b04
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x406b24
cmp dword [ebp - 0x208], 1
jne 0x406b24
pop edi
lea eax, [esi + 1]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c2f4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0040c2f4
mov esp, ebp
pop ebp
ret
Function at 0x406b40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41398c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [eax + eax]
push esi
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x208], 1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0xff
jg 0x406c24
mov edx, dword [str.SYSTEMCurrentControlSetServices_]
push edx
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [ebp - 0x20c]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x204]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406c24
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x20c]
push edi
lea edx, [ebp - 0x208]
push edx
push eax
mov eax, dword [str.ObjectName]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x20c]
test eax, eax
je 0x406c04
cmp eax, 0xffffffff
je 0x406c04
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x406c24
cmp dword [ebp - 0x208], 1
jne 0x406c24
pop edi
lea eax, [esi + 1]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c2f4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0040c2f4
mov esp, ebp
pop ebp
ret

Function at 0x406ed0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, eax
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
imul esi, dword [ebx + 0x18]
test byte [ebx], 1
je 0x406f4c
test esi, esi
je 0x406f4c
mov ecx, dword [ebx + 0x38]
push 0
lea eax, [ebp - 8]
push eax
push esi
push edi
push ecx
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406f4c
mov eax, dword [ebp - 8]
add dword [ebp - 4], eax
cmp eax, esi
jae 0x406f42
push 0
lea edx, [ebp - 8]
push edx
sub esi, eax
lea edi, [edi + eax*2]
mov eax, dword [ebx + 0x38]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x406f14
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406f60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov esi, eax
xor eax, eax
mov edi, ecx
mov dword [ebp - 4], eax
cmp edi, eax
je 0x406fb3
cmp esi, eax
je 0x406fb3
test byte [ebx], 1
je 0x406faa
mov dword [ebp - 8], eax
mov ecx, dword [ebx + 0x38]
push 0
lea eax, [ebp - 8]
push eax
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406faa
mov eax, dword [ebp - 8]
add dword [ebp - 4], eax
cmp eax, esi
jae 0x406faa
sub esi, eax
add edi, eax
test byte [ebx], 1
jne 0x406f81
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406fc0
Capabilities:
Create pipe

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0x6c]
xor ebx, ebx
push ebx
push eax
lea edi, [esi + 0x38]
push edi
lea ecx, [esi + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push ebx
test eax, eax
jne 0x406ffd
push 0x10e
push str......_src_rprocess.c
push 1
push 3
push 0
call fcn.00404a50
add esp, 0x18
pop edi
pop esi
mov eax, ebx
pop ebx
ret
mov edx, dword [edi]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
test eax, eax
jne 0x407015
push 0x113
jmp 0x406fe4
mov eax, dword [esi + 0x6c]
push eax
lea ecx, [esi + 0x30]
push ecx
lea edi, [esi + 0x3c]
push edi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push 0
test eax, eax
jne 0x407034
push 0x11a
jmp 0x406fe4
mov edx, dword [edi]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
test eax, eax
jne 0x40704c
push 0x120
jmp 0x406fe4
mov eax, dword [esi + 0x6c]
lea edi, [esi + 0x40]
push eax
add esi, 0x34
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push 0
test eax, eax
jne 0x40706e
push 0x127
jmp 0x406fe4
mov ecx, dword [edi]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x407088
push eax
push 0x12d
jmp 0x406fe4
pop edi
pop esi
mov eax, 1
pop ebx
ret