joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405615
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040b565
pop ecx
pop ecx
test eax, eax
jne 0x405635
mov eax, 0x80004005
leave
ret 0x18
push esi
push dword [ebp + 0x14]
call fcn.004054d7
pop ecx
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0040c202
push dword [ebp + 0x18]
lea ecx, [ebp - 0x18]
push esi
call fcn.0040be01
test al, al
jne 0x405669
xor esi, esi
inc esi
lea ecx, [ebp - 0x18]
call fcn.0040bd78
mov eax, esi
pop esi
jmp 0x405631
lea eax, [ebp + 0x10]
push eax
push 0xf003f
push 0
push dword [ebp + 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405697
push dword [ebp + 0x1c]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x40565c

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp - 4]
push eax
push 0xf003f
xor esi, esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405772
push edi
mov edi, 0xff
push 0x1fe
mov dword [ebp - 8], edi
call dword [sym.imp.MSVCR100.dll_malloc]
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x405768
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x1c]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 8]
push ecx
push eax
jmp 0x405750
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40575d
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.0040569b
pop ecx
pop ecx
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40575d
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
je 0x40575d
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push esi
push dword [ebp - 4]
mov dword [ebp - 8], edi
call ebx
test eax, eax
je 0x4056f7
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
leave
ret
Function at 0x405781
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43c4b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040b565
pop ecx
pop ecx
test eax, eax
jne 0x4057be
mov eax, 0x80004005
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e764
leave
ret 0x1c
push dword [ebp + 0x14]
call fcn.004054d7
pop ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xc], eax
call fcn.0040c202
mov ebx, dword [ebp + 0x18]
push ebx
push dword [ebp - 0xc]
lea ecx, [ebp - 0x24]
call fcn.0040be01
xor esi, esi
test al, al
jne 0x4057f4
inc esi
lea ecx, [ebp - 0x24]
call fcn.0040bd78
mov eax, esi
jmp 0x4057aa
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp ebx, esi
je 0x405809
push ebx
call edi
inc eax
cmp eax, 0x3fffffff
jle 0x40580d
xor eax, eax
jmp 0x405825
lea esi, [eax + eax]
mov eax, esi
call fcn.0042ea70
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.004053bb
xor esi, esi
push esi
lea ecx, [ebp - 8]
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4057e8
cmp dword [ebp + 0x1c], esi
je 0x405853
push dword [ebp + 0x1c]
call edi
inc eax
cmp eax, 0x3fffffff
jle 0x405857
xor eax, eax
jmp 0x405871
lea esi, [eax + eax]
mov eax, esi
call fcn.0042ea70
mov eax, esp
push 3
push esi
push dword [ebp + 0x1c]
push eax
call fcn.004053bb
xor esi, esi
push 4
lea ecx, [ebp + 0x20]
push ecx
push 4
push esi
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4057e8
Function at 0x405892
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43c4b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040b565
pop ecx
pop ecx
test eax, eax
jne 0x4058cf
mov eax, 0x80004005
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e764
leave
ret 0x1c
push dword [ebp + 0x14]
call fcn.004054d7
pop ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xc], eax
call fcn.0040c202
mov edi, dword [ebp + 0x18]
push edi
push dword [ebp - 0xc]
lea ecx, [ebp - 0x24]
call fcn.0040be01
xor ebx, ebx
test al, al
jne 0x405905
inc ebx
lea ecx, [ebp - 0x24]
call fcn.0040bd78
mov eax, ebx
jmp 0x4058bb
cmp edi, ebx
je 0x405918
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x40591c
xor eax, eax
jmp 0x405932
lea esi, [eax + eax]
mov eax, esi
call fcn.0042ea70
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.004053bb
push ebx
lea ecx, [ebp - 8]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4058f9
mov eax, dword [ebp + 0x20]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405954
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x20]
push 1
push ebx
push dword [ebp + 0x1c]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4058f9
Function at 0x405988
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x43c4b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040b565
pop ecx
pop ecx
test eax, eax
je 0x405ae3
push dword [ebp + 0x14]
call fcn.004054d7
pop ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xc], eax
call fcn.0040c202
push dword [ebp + 0x18]
lea ecx, [ebp - 0x28]
push dword [ebp - 0xc]
call fcn.0040be01
test al, al
jne 0x4059e8
xor esi, esi
inc esi
lea ecx, [ebp - 0x28]
call fcn.0040bd78
mov eax, esi
jmp 0x405ae8
mov esi, dword [ebp + 0x20]
test esi, esi
jne 0x4059f4
push 0x57
pop esi
jmp 0x4059d9
cmp word [esi], 1
jne 0x405adb
cmp dword [esi + 4], 1
jne 0x405adb
cmp dword [esi + 0x14], 0
jne 0x405adb
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
je 0x405a25
mov esi, eax
jmp 0x4059d9
cmp dword [ebp + 0x18], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, 0x3fffffff
je 0x405a40
push dword [ebp + 0x18]
call edi
inc eax
cmp eax, ebx
jle 0x405a44
xor eax, eax
jmp 0x405a5f
lea esi, [eax + eax]
mov eax, esi
call fcn.0042ea70
mov eax, esp
push 3
push esi
push dword [ebp + 0x18]
push eax
call fcn.004053bb
mov esi, dword [ebp + 0x20]
xor ecx, ecx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x405ac8
cmp dword [ebp + 0x1c], eax
je 0x405aab
push dword [ebp + 0x1c]
call edi
inc eax
cmp eax, ebx
jle 0x405a90
xor eax, eax
jmp 0x405aab
lea esi, [eax + eax]
mov eax, esi
call fcn.0042ea70
mov eax, esp
push 3
push esi
push dword [ebp + 0x1c]
push eax
call fcn.004053bb
mov esi, dword [ebp + 0x20]
push dword [esi + 0x10]
push dword [ebp - 0x10]
push 3
push 0
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
lea ecx, [ebp - 0x28]
call fcn.0040bd78
xor eax, eax
jmp 0x405ae8
lea ecx, [ebp - 0x28]
call fcn.0040bd78
mov eax, 0x80004005
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e764
leave
ret 0x1c
Function at 0x405afc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x43c4b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040b565
pop ecx
pop ecx
test eax, eax
jne 0x405b39
mov eax, 0x80004005
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e764
leave
ret 0x1c
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
xor esi, esi
mov ebx, 0x3fffffff
cmp dword [ebp + 0x20], esi
je 0x405b55
push dword [ebp + 0x20]
call edi
inc eax
cmp eax, ebx
jle 0x405b5a
mov dword [ebp - 8], esi
jmp 0x405b77
lea esi, [eax + eax]
mov eax, esi
call fcn.0042ea70
mov eax, esp
push 3
push esi
push dword [ebp + 0x20]
push eax
call fcn.004053bb
mov dword [ebp - 8], eax
xor esi, esi
push dword [ebp + 0x14]
call fcn.004054d7
pop ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xc], eax
call fcn.0040c202
push dword [ebp + 0x18]
lea ecx, [ebp - 0x28]
push dword [ebp - 0xc]
call fcn.0040be01
test al, al
jne 0x405baf
xor esi, esi
inc esi
lea ecx, [ebp - 0x28]
call fcn.0040bd78
mov eax, esi
jmp 0x405b25
cmp dword [ebp + 0x18], esi
je 0x405bbe
push dword [ebp + 0x18]
call edi
inc eax
cmp eax, ebx
jle 0x405bc2
xor eax, eax
jmp 0x405bdc
lea esi, [eax + eax]
mov eax, esi
call fcn.0042ea70
mov eax, esp
push 3
push esi
push dword [ebp + 0x18]
push eax
call fcn.004053bb
xor esi, esi
push esi
lea ecx, [ebp - 0x10]
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x405ba0
cmp dword [ebp + 0x1c], esi
je 0x405c21
push dword [ebp + 0x1c]
call edi
inc eax
cmp eax, ebx
jg 0x405c21
lea esi, [eax + eax]
mov eax, esi
call fcn.0042ea70
mov eax, esp
push 3
push esi
push dword [ebp + 0x1c]
push eax
call fcn.004053bb
mov esi, eax
push 0
push SysReAllocString
push dword [ebp - 8]
call fcn.00405463
add esp, 0xc
inc eax
push eax
push dword [ebp - 8]
push 3
push 0
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x405ba0
Function at 0x405fbd
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040b565
pop ecx
pop ecx
test eax, eax
jne 0x405fd9
mov eax, 0x80004005
jmp 0x406020
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push dword [esi + 8]
call fcn.00408c27
add esp, 0xc
test al, al
jne 0x405ff8
push 0x57
pop eax
jmp 0x40601f
push dword [ebp + 0x1c]
mov eax, dword [esi]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [eax + 0x60]
test eax, eax
jne 0x40601f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
inc eax
pop esi
leave
ret 0x18

Function at 0x406024
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0x10]
and dword [ebp - 4], 0
push dword [ebp + 0xc]
call fcn.0040b565
pop ecx
pop ecx
test eax, eax
jne 0x406044
mov eax, 0x80004005
jmp 0x4060a5
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.00408c27
add esp, 0xc
test al, al
jne 0x406062
push 0x57
pop eax
jmp 0x4060a5
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x40607c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4060a5
cmp dword [ebp + 0x20], 0
jne 0x40608c
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
jmp 0x40609e
cmp dword [ebp - 4], 0
je 0x406097
xor eax, eax
inc eax
jmp 0x4060a5
cmp eax, 0x7fffffff
ja 0x406092
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor eax, eax
leave
ret 0x1c

Function at 0x4060a9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040b565
pop ecx
pop ecx
test eax, eax
jne 0x4060c8
mov eax, 0x80004005
jmp 0x406169
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.00408c27
add esp, 0xc
test al, al
jne 0x4060e9
push 0x57
pop eax
jmp 0x406169
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x406163
mov esi, dword [ebp + 0x20]
cmp esi, edi
je 0x406163
push dword [ebp + 0x18]
push edi
push 0x11
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov dword [esi], eax
cmp eax, edi
jne 0x406115
mov eax, 0x80004005
jmp 0x406166
lea ecx, [ebp + 0x10]
push ecx
push eax
mov dword [ebp + 0x14], edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x40615e
push edi
push ebx
push dword [ebp + 0x18]
mov dword [ebx], edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406147
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x14], eax
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
cmp dword [ebp + 0x14], edi
je 0x40615e
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov dword [esi], edi
mov eax, dword [ebp + 0x14]
jmp 0x406166
push 0x57
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x40616d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040b565
pop ecx
pop ecx
test eax, eax
jne 0x40618d
mov eax, 0x80004005
jmp 0x406214
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.00408c27
add esp, 0xc
test al, al
jne 0x4061ab
push 0x57
pop eax
jmp 0x406214
cmp dword [ebp + 0x1c], 0
push esi
je 0x406210
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x406210
cmp word [esi], 1
jne 0x406209
cmp dword [esi + 4], 1
jne 0x406209
cmp dword [esi + 0x14], 0
jne 0x406209
lea eax, [ebp + 0x10]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov edi, eax
test edi, edi
jne 0x406213
mov eax, dword [ebp + 0x1c]
and dword [eax], edi
push edi
push eax
push dword [esi + 0x10]
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4061fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov eax, edi
jmp 0x406213
mov eax, 0x80004005
jmp 0x406213
push 0x57
pop eax
pop esi
pop edi
leave
ret 0x18

Function at 0x40645f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040b565
pop ecx
pop ecx
test eax, eax
jne 0x406480
mov eax, 0x80004005
jmp 0x40650d
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp esi, ebx
je 0x406506
lea ecx, [ebp - 0x18]
call fcn.0040c202
push 1
push ebx
push esi
lea ecx, [ebp - 0x18]
call fcn.0040be74
test al, al
jne 0x4064b0
lea ecx, [ebp - 0x18]
call fcn.0040bd78
xor eax, eax
inc eax
jmp 0x40650b
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4064b5
sub eax, edx
sar eax, 1
je 0x4064f9
movzx ecx, word [esi + eax*2 - 2]
cmp ecx, 0x2e
je 0x4064f9
cmp eax, 1
jbe 0x4064e2
cmp word [esi + eax*2 - 4], 0x2e
jne 0x4064e2
cmp ecx, 0x5c
je 0x4064f9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4064fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x4064fc
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x18]
call fcn.0040bd78
jmp 0x406509
xor ebx, ebx
inc ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10

Function at 0x406798
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.00408c59
add esp, 0xc
test al, al
jne 0x4067b9
push 0x57
pop eax
jmp 0x4067d5
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
neg eax
pop ebp
ret 0x10
Function at 0x4067d9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.00408c59
add esp, 0xc
test al, al
jne 0x4067fa
push 0x57
pop eax
jmp 0x40685d
cmp dword [ebp + 0x18], 0
push esi
je 0x406859
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x406859
cmp word [esi], 1
jne 0x406852
cmp dword [esi + 4], 1
jne 0x406852
cmp dword [esi + 0x14], 0
jne 0x406852
lea eax, [ebp + 0xc]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x40685c
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push 1
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x406847
xor eax, eax
inc eax
jmp 0x40685c
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
xor eax, eax
jmp 0x40685c
mov eax, 0x80004005
jmp 0x40685c
push 0x57
pop eax
pop esi
pop ebp
ret 0x14

Function at 0x406861
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.00408c59
add esp, 0xc
test al, al
jne 0x406884
push 0x57
pop eax
jmp 0x4068be
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4068ae
xor eax, eax
inc eax
jmp 0x4068be
cmp dword [ebp - 4], 4
jne 0x4068a9
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
xor eax, eax
leave
ret 0x10

Function at 0x4068c2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.00408c59
add esp, 0xc
test al, al
jne 0x4068e7
push 0x57
pop eax
jmp 0x406972
push ebx
push edi
mov edi, dword [ebp + 0x18]
xor ebx, ebx
cmp edi, ebx
jne 0x4068f7
push 0x57
pop eax
jmp 0x406970
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp + 0xc], ebx
cmp esi, ebx
jne 0x406925
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406920
mov eax, dword [ebp + 0xc]
mov dword [edi], eax
jmp 0x40696d
xor eax, eax
inc eax
jmp 0x40696f
mov eax, dword [edi]
push eax
push ebx
push 0x11
mov dword [ebp + 0xc], eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov dword [esi], eax
cmp eax, ebx
jne 0x406941
mov eax, 0x80004005
jmp 0x40696f
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x40696d
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 4]
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 0x14
Function at 0x406976
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.00408c59
add esp, 0xc
test al, al
jne 0x406997
push 0x57
pop eax
jmp 0x4069a5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor eax, eax
pop ebp
ret 0xc

Function at 0x406daa
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4c
mov eax, dword [0x43c4b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x18]
push ecx
push eax
mov dword [ebp - 0xa10], edx
call fcn.0040b565
pop ecx
pop ecx
test eax, eax
je 0x406f09
push edi
push 0x3c
xor edi, edi
lea eax, [ebp - 0xa4c]
push edi
push eax
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0xa10]
mov dword [ebp - 0xa34], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xa30], eax
lea eax, [ebp - 0x208]
push eax
push edi
push edi
push edi
push esi
mov dword [ebp - 0xa4c], 0x3c
mov dword [ebp - 0xa48], 0x100
mov dword [ebp - 0xa44], edi
mov dword [ebp - 0xa40], ebx
mov dword [ebp - 0xa3c], esi
mov dword [ebp - 0xa38], edi
mov dword [ebp - 0xa0c], 0x400
call dword [sym.imp.MSVCR100.dll__wsplitpath]
add esp, 0x20
lea eax, [ebp - 0xa0c]
push eax
lea eax, [ebp - 0xa08]
push eax
push str.open
lea eax, [ebp - 0x208]
push eax
push 9
push edi
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
pop edi
test eax, eax
jne 0x406f09
push dword [ebp - 0xa0c]
mov esi, dword [sym.imp.MSVCR100.dll_wcsncmp]
lea eax, [ebp - 0xa08]
push str.WinWord
push eax
call esi
add esp, 0xc
test eax, eax
je 0x406ef4
push dword [ebp - 0xa0c]
lea eax, [ebp - 0xa08]
push str.Excel
push eax
call esi
add esp, 0xc
test eax, eax
je 0x406ef4
push dword [ebp - 0xa0c]
lea eax, [ebp - 0xa08]
push str.OUTLOOK
push eax
call esi
add esp, 0xc
test eax, eax
je 0x406ef4
push dword [ebp - 0xa0c]
lea eax, [ebp - 0xa08]
push str.POWERPNT
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x406f09
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x406f09
xor eax, eax
jmp 0x406f0e
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e764
leave
ret 0x1c

Function at 0x406f1e
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x43c4b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push ecx
push eax
call fcn.0040b565
pop ecx
pop ecx
test eax, eax
jne 0x406f4f
mov eax, 0x80004005
jmp 0x406f80
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x406f6d
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x406f7d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc eax
neg eax
sbb eax, eax
inc eax
movzx esi, ax
movzx eax, si
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042e764
leave
ret 0x10
Function at 0x406f8f
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x406fa4
xor eax, eax
pop ebp
ret
and eax, 0xfffffffe
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
neg eax
sbb eax, eax
neg eax
pop ebp
ret