joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430988
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x43c510]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call fcn.0040bb20
add esp, 8
test eax, eax
jne 0x404cb9
mov eax, 0x80004005
jmp 0x404e17
call dword [0x43c4f0]
mov edi, dword [ebp + 0x20]
xor esi, esi
cmp edi, esi
mov ebx, eax
mov dword [ebp - 0x20], ebx
jne 0x404cd2
mov dword [ebp - 0x14], esi
jmp 0x404d00
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x404ce8
mov dword [ebp - 0x14], esi
jmp 0x404d00
lea esi, [eax + eax]
mov eax, esi
call fcn.0042fbf0
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.00404310
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 0x14]
push edx
call fcn.004043e0
mov esi, eax
add esp, 4
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x1c], esi
call fcn.0040c790
mov edi, dword [ebp + 0x18]
push edi
push esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call fcn.0040c490
test al, al
jne 0x404d4a
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c070
mov eax, 1
jmp 0x404e17
test edi, edi
jne 0x404d52
xor eax, eax
jmp 0x404d7f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x404d67
xor eax, eax
jmp 0x404d7f
lea esi, [eax + eax]
mov eax, esi
call fcn.0042fbf0
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.00404310
mov esi, dword [ebp - 0x1c]
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404e06
mov eax, dword [ebp - 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404da4
mov edi, dword [ebp + 0x1c]
sub eax, edx
test edi, edi
mov ebx, eax
je 0x404dc9
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x404dcd
xor eax, eax
jmp 0x404de5
lea esi, [eax + eax]
mov eax, esi
call fcn.0042fbf0
mov edx, dword [ebp - 0x20]
mov eax, esp
push edx
push esi
push edi
push eax
call fcn.00404310
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
add ebx, 1
push ebx
push ecx
push 3
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c070
xor eax, eax
lea esp, [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042fac4
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x405240
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push esi
push edi
call fcn.0040bb20
add esp, 8
test eax, eax
jne 0x405262
pop edi
mov eax, 0x80004005
pop esi
ret 0x18
push ebx
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00408e80
add esp, 8
test al, al
jne 0x405284
pop ebx
pop edi
mov eax, 0x57
pop esi
ret 0x18
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x24]
push edx
push ebx
push esi
push edi
push eax
mov eax, dword [ecx + 0x60]
call eax
test eax, eax
jne 0x4052b3
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
add eax, 1
pop ebx
pop edi
pop esi
ret 0x18

Function at 0x4052c0
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.0040bb20
add esp, 8
test eax, eax
jne 0x4052e8
mov eax, 0x80004005
pop ecx
ret 0x1c
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xc]
push edx
push eax
call fcn.00408e80
add esp, 8
test al, al
jne 0x405307
mov eax, 0x57
pop ecx
ret 0x1c
mov edx, dword [esp + 0xc]
lea ecx, [esp]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x405325
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ecx
ret 0x1c
cmp dword [esp + 0x20], 0
jne 0x405341
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp]
mov dword [ecx], edx
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
xor eax, eax
pop ecx
ret 0x1c
cmp dword [esp], 0
je 0x405350
mov eax, 1
pop ecx
ret 0x1c
cmp eax, 0x7fffffff
ja 0x405347
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
xor eax, eax
pop ecx
ret 0x1c
Function at 0x405370
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call fcn.0040bb20
add esp, 8
test eax, eax
jne 0x405390
mov eax, 0x80004005
pop ecx
ret 0x1c
mov eax, dword [esp + 0x14]
lea edx, [esp]
push edx
push eax
call fcn.00408e80
add esp, 8
test al, al
jne 0x4053ae
mov eax, 0x57
pop ecx
ret 0x1c
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
push esi
je 0x405441
mov esi, dword [esp + 0x28]
test esi, esi
je 0x405441
push ebx
mov ebx, dword [esp + 0x24]
push ebx
push 0
push 0x11
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
test eax, eax
mov dword [esi], eax
jne 0x4053e6
pop ebx
pop esi
mov eax, 0x80004005
pop ebp
pop ecx
ret 0x1c
push edi
lea ecx, [esp + 0x1c]
push ecx
push eax
xor edi, edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x405437
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push ebp
push ebx
push edx
push eax
mov dword [ebp], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40541b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
test edi, edi
je 0x405437
mov edx, dword [esi]
push edx
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov dword [esi], 0
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret 0x1c
pop esi
mov eax, 0x57
pop ebp
pop ecx
ret 0x1c

Function at 0x405450
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call fcn.0040bb20
add esp, 8
test eax, eax
jne 0x405470
mov eax, 0x80004005
pop ecx
ret 0x18
mov eax, dword [esp + 0x14]
lea edx, [esp]
push edx
push eax
call fcn.00408e80
add esp, 8
test al, al
jne 0x40548e
mov eax, 0x57
pop ecx
ret 0x18
push ebx
mov ebx, dword [esp + 0x20]
test ebx, ebx
push esi
je 0x405504
mov esi, dword [esp + 0x20]
test esi, esi
je 0x405504
cmp word [esi], 1
jne 0x4054f9
cmp dword [esi + 4], 1
jne 0x4054f9
cmp dword [esi + 0x14], 0
jne 0x4054f9
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov edi, eax
test edi, edi
jne 0x4054f2
mov ecx, dword [esp + 0xc]
push eax
mov dword [ebx], eax
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x1c]
push ebx
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4054e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret 0x18
pop esi
mov eax, 0x80004005
pop ebx
pop ecx
ret 0x18
pop esi
mov eax, 0x57
pop ebx
pop ecx
ret 0x18
Function at 0x405510
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4309e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x43c510]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
call dword [0x43c4f0]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
call fcn.0040bb20
add esp, 8
test eax, eax
jne 0x40556a
mov eax, 0x80004005
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 0x10
mov esi, dword [esp + 0x40]
xor edi, edi
cmp esi, edi
je 0x4055e0
lea ecx, [esp + 0xc]
call fcn.0040c790
push edi
push 1
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], edi
call fcn.0040c520
test al, al
jne 0x4055ba
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040c070
lea eax, [edi + 1]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4055cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040c070
jmp 0x4055e5
mov edi, 1
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 0x10

Function at 0x405600
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x430a48
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43c510]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
call dword [0x43c4f0]
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
push ebp
push edi
call fcn.0040bb20
add esp, 8
test eax, eax
jne 0x40564d
mov eax, 0x80004005
jmp 0x40571a
lea ecx, [esp + 0x14]
call fcn.0040c790
mov eax, dword [esp + 0x4c]
push 0
push 1
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], 0
call fcn.0040c520
test al, al
je 0x405704
mov ecx, dword [esp + 0x50]
push 0
push 1
push ecx
lea ecx, [esp + 0x20]
call fcn.0040c520
test al, al
je 0x405704
mov ebx, dword [esp + 0x48]
mov eax, dword [ebx]
mov esi, dword [esp + 0x3c]
mov edx, dword [esi]
mov ecx, dword [edx + 0x30]
push eax
push ebp
push edi
push esi
call ecx
mov edi, eax
test edi, edi
jne 0x4056ef
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
push edx
push eax
call dword [sym.imp.MSVCR80.dll__wrename]
add esp, 8
mov edi, eax
test edi, edi
push ebx
push 1
jne 0x4056dc
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x48]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x2c]
push edx
push ebp
push eax
push esi
call ecx
mov edi, eax
jmp 0x4056ef
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x48]
mov edx, dword [esi]
mov edx, dword [edx + 0x2c]
push eax
push ebp
push ecx
push esi
call edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], 0xffffffff
call fcn.0040c070
mov eax, edi
jmp 0x40571a
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], 0xffffffff
call fcn.0040c070
mov eax, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x18
Function at 0x4057f0
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x4309e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x43c510]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
call dword [0x43c4f0]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
call fcn.0040bb20
add esp, 8
test eax, eax
jne 0x40584a
mov eax, 0x80004005
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 0x10
mov esi, dword [esp + 0x40]
xor edi, edi
cmp esi, edi
je 0x4058bf
lea ecx, [esp + 0xc]
call fcn.0040c790
push edi
push edi
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], edi
call fcn.0040c520
test al, al
jne 0x405899
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040c070
lea eax, [edi + 1]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4058ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040c070
jmp 0x4058c4
mov edi, 1
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 0x10

Function at 0x4058e0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4309e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x43c510]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
call dword [0x43c4f0]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
call fcn.0040bb20
add esp, 8
test eax, eax
jne 0x40593a
mov eax, 0x80004005
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 0x10
mov esi, dword [esp + 0x40]
xor edi, edi
cmp esi, edi
je 0x4059f0
lea ecx, [esp + 0xc]
call fcn.0040c790
push 1
push edi
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], edi
call fcn.0040c520
test al, al
jne 0x40598e
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040c070
lea eax, [edi + 1]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 0x10
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x405993
sub eax, edx
sar eax, 1
je 0x4059d8
movzx ecx, word [esi + eax*2 - 2]
cmp cx, 0x2e
je 0x4059d8
cmp eax, 1
jbe 0x4059c2
cmp word [esi + eax*2 - 4], 0x2e
jne 0x4059c2
cmp cx, 0x5c
je 0x4059d8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4059dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4059dd
mov edi, 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040c070
jmp 0x4059f5
mov edi, 1
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 0x10
Function at 0x405e30
Capabilities:
Set registry value

Disassembly:
push ecx
call dword [0x43c4f0]
mov ecx, dword [esp + 0xc]
lea eax, [esp]
push eax
push ecx
call fcn.00408ec0
add esp, 8
test al, al
jne 0x405e55
mov eax, 0x57
pop ecx
ret 0x10
mov eax, dword [esp + 0x10]
mov ecx, dword [esp]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
neg eax
pop ecx
ret 0x10

Function at 0x405e80
Capabilities:
Set registry value

Disassembly:
sub esp, 8
call dword [0x43c4f0]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
push ecx
call fcn.00408ec0
add esp, 8
test al, al
jne 0x405eaa
mov eax, 0x57
add esp, 8
ret 0x14
push esi
push edi
mov edi, dword [esp + 0x24]
test edi, edi
je 0x405f27
mov esi, dword [esp + 0x20]
test esi, esi
je 0x405f27
cmp word [esi], 1
jne 0x405f1a
cmp dword [esi + 4], 1
jne 0x405f1a
cmp dword [esi + 0x14], 0
jne 0x405f1a
lea edx, [esp + 8]
push edx
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x405f2c
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
push edi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x405f09
pop edi
mov eax, 1
pop esi
add esp, 8
ret 0x14
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
pop edi
xor eax, eax
pop esi
add esp, 8
ret 0x14
pop edi
mov eax, 0x80004005
pop esi
add esp, 8
ret 0x14
mov eax, 0x57
pop edi
pop esi
add esp, 8
ret 0x14

Function at 0x405f40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
call dword [0x43c4f0]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 4]
push eax
push ecx
call fcn.00408ec0
add esp, 8
test al, al
jne 0x405f6a
mov eax, 0x57
add esp, 0x10
ret 0x10
lea edx, [esp]
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x405fa1
mov eax, 1
add esp, 0x10
ret 0x10
cmp dword [esp + 8], 4
jne 0x405f96
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xc]
mov dword [ecx], edx
xor eax, eax
add esp, 0x10
ret 0x10
Function at 0x405fc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
call dword [0x43c4f0]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 4]
push eax
push ecx
call fcn.00408ec0
add esp, 8
test al, al
jne 0x405fea
mov eax, 0x57
add esp, 0xc
ret 0x14
push edi
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x405ffd
lea eax, [edi + 0x57]
pop edi
add esp, 0xc
ret 0x14
push esi
mov esi, dword [esp + 0x24]
test esi, esi
mov dword [esp + 8], 0
jne 0x406045
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 8]
push edx
push esi
push esi
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406038
mov edx, dword [esp + 8]
pop esi
mov dword [edi], edx
pop edi
add esp, 0xc
ret 0x14
pop esi
mov eax, 1
pop edi
add esp, 0xc
ret 0x14
mov eax, dword [edi]
push eax
push 0
push 0x11
mov dword [esp + 0x14], eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
test eax, eax
mov dword [esi], eax
jne 0x406069
pop esi
mov eax, 0x80004005
pop edi
add esp, 0xc
ret 0x14
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x4060a0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x10]
push eax
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esi]
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
pop esi
xor eax, eax
pop edi
add esp, 0xc
ret 0x14

Function at 0x4060b0
Capabilities:
Delete registry value

Disassembly:
push ecx
call dword [0x43c4f0]
mov ecx, dword [esp + 0xc]
lea eax, [esp]
push eax
push ecx
call fcn.00408ec0
add esp, 8
test al, al
jne 0x4060d5
mov eax, 0x57
pop ecx
ret 0xc
mov edx, dword [esp + 0x10]
mov eax, dword [esp]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor eax, eax
pop ecx
ret 0xc
Function at 0x406450
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xa48
mov eax, dword [0x43c510]
xor eax, esp
mov dword [esp + 0xa44], eax
mov eax, dword [esp + 0xa54]
mov ecx, dword [esp + 0xa50]
push ebx
mov ebx, dword [esp + 0xa64]
push esi
mov esi, dword [esp + 0xa64]
push edi
mov edi, dword [esp + 0xa64]
push eax
push ecx
call fcn.0040bb20
add esp, 8
test eax, eax
je 0x4065ac
push 0x3c
lea edx, [esp + 0x14]
push 0
push edx
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0xa7c]
lea ecx, [esp + 0x58]
push ecx
push 0
push 0
push 0
push esi
mov dword [esp + 0x30], 0x3c
mov dword [esp + 0x34], 0x100
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x2c], 0x400
call dword [sym.imp.MSVCR80.dll__wsplitpath]
add esp, 0x20
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x254]
push eax
push str.open
lea ecx, [esp + 0x58]
push ecx
push 9
push 0
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
test eax, eax
jne 0x4065ac
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.MSVCR80.dll_wcsncmp]
push edx
lea eax, [esp + 0x254]
push str.WinWord
push eax
call esi
add esp, 0xc
test eax, eax
je 0x406599
mov ecx, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x254]
push str.Excel
push edx
call esi
add esp, 0xc
test eax, eax
je 0x406599
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x254]
push str.OUTLOOK
push ecx
call esi
add esp, 0xc
test eax, eax
je 0x406599
mov edx, dword [esp + 0xc]
push edx
lea eax, [esp + 0x254]
push 0x432c9c
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x4065ac
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4065ac
xor eax, eax
jmp 0x4065b1
mov eax, 0x80004005
mov ecx, dword [esp + 0xa50]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042fac4
add esp, 0xa48
ret 0x1c

Function at 0x4065d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x254
mov eax, dword [0x43c510]
xor eax, esp
mov dword [esp + 0x250], eax
mov eax, dword [esp + 0x260]
mov ecx, dword [esp + 0x25c]
push esi
mov esi, dword [esp + 0x268]
push eax
push ecx
call fcn.0040bb20
add esp, 8
test eax, eax
jne 0x406625
mov eax, 0x80004005
pop esi
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0042fac4
add esp, 0x254
ret 0x10
lea edx, [esp + 4]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x406641
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x406652
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov esi, ecx
mov ecx, dword [esp + 0x254]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0042fac4
add esp, 0x254
ret 0x10
Function at 0x406670
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x874
mov eax, dword [0x43c510]
xor eax, esp
mov dword [esp + 0x870], eax
push ebx
push ebp
mov ebp, dword [esp + 0x884]
push esi
mov esi, dword [sym.imp.MSVCR80.dll_wcscat_s]
push edi
mov edi, dword [esp + 0x888]
push 0x432cfc
push 0x104
push edi
mov dword [esp + 0x20], ebp
mov ebx, 1
call esi
push 0x432cfc
push 0x104
push ebp
call esi
mov ebp, dword [sym.imp.MSVCR80.dll_wcscpy_s]
push edi
lea eax, [esp + 0x694]
push 0x104
push eax
call ebp
push 0x432cf4
lea ecx, [esp + 0x6a0]
push 0x104
push ecx
call esi
add esp, 0x30
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x67c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x40670f
xor eax, eax
jmp 0x4068b3
test eax, eax
je 0x4068a6
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4068a6
push edi
lea eax, [esp + 0x474]
push 0x104
push eax
call ebp
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x480]
push 0x104
push edx
call esi
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x284]
push 0x104
push ecx
call ebp
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x290]
push 0x104
push eax
call esi
add esp, 0x30
lea ecx, [esp + 0x268]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4067a3
and eax, 0xfffffffe
push eax
lea edx, [esp + 0x26c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [esp + 0x18], 0x10
jne 0x4067d1
push 0
lea eax, [esp + 0x26c]
push eax
lea ecx, [esp + 0x478]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x406717
xor ebx, ebx
jmp 0x406717
mov ecx, 0x432cf0
lea eax, [esp + 0x44]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406806
test dx, dx
je 0x406802
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406806
add eax, 4
add ecx, 4
test dx, dx
jne 0x4067e0
xor eax, eax
jmp 0x40680b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406717
mov ecx, 0x432ce8
lea eax, [esp + 0x44]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406846
test dx, dx
je 0x406842
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406846
add eax, 4
add ecx, 4
test dx, dx
jne 0x406820
xor eax, eax
jmp 0x40684b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406717
push 0
lea edx, [esp + 0x26c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test ebx, ebx
jne 0x40687f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406717
mov ebx, 1
lea eax, [esp + 0x268]
push eax
lea ecx, [esp + 0x474]
push ecx
call fcn.00406670
add esp, 8
test eax, eax
jne 0x406717
xor ebx, ebx
jmp 0x406717
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov ecx, dword [esp + 0x880]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042fac4
add esp, 0x874
ret