joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404dfe
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 4]
call fcn.0040171e
mov eax, dword [ebp - 4]
xor esi, esi
inc esi
mov ecx, 0x104
mov edx, dword [eax - 8]
sub esi, dword [eax - 4]
sub edx, ecx
or esi, edx
jge 0x404e32
push ecx
lea ecx, [ebp - 4]
call fcn.00401901
mov eax, dword [ebp - 4]
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
mov esi, eax
call fcn.004040c5
test esi, esi
jne 0x404e54
mov edi, 0x80004005
jmp 0x404efa
push ebx
push ecx
push ecx
lea ecx, [ebp - 4]
call fcn.00405043
push 0
push 0x5c
lea ecx, [ebp - 4]
call fcn.00405014
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x404e7a
mov ecx, dword [ebp - 4]
mov eax, dword [ecx - 0xc]
jmp 0x404e7c
mov eax, ebx
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
call fcn.00403fd2
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.00403148
test al, al
jne 0x404eb9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x404eb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x50
je 0x404eb9
cmp edi, 0xb7
jne 0x404ed8
cmp ebx, 0xffffffff
je 0x404eef
lea eax, [ebx + 1]
push eax
push 0x5c
lea ecx, [ebp - 4]
call fcn.00405014
lea ecx, [esi - 0x10]
mov ebx, eax
call fcn.004016ae
jmp 0x404e6d
test edi, edi
jle 0x404ee5
movzx edi, di
or edi, 0x80070000
lea ecx, [esi - 0x10]
call fcn.004016ae
jmp 0x404ef9
lea ecx, [esi - 0x10]
call fcn.004016ae
xor edi, edi
pop ebx
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.004016ae
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x404f5f
Capabilities:
Move file

Disassembly:
push esi
push edi
mov edi, edx
mov esi, ecx
call fcn.00403148
test al, al
jne 0x404f75
mov eax, 0x80070002
jmp 0x404f9b
mov ecx, esi
call fcn.00403184
movzx eax, al
xor eax, 1
add eax, 4
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x404f99
pop edi
pop esi
jmp fcn.0040931b
xor eax, eax
pop edi
pop esi
ret
Function at 0x40520d
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
test edi, edi
jle 0x405325
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp edi, 2
jle 0x40528d
sub edx, 4
js 0x405325
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
and ecx, 0xf
shr eax, 6
mov al, byte [eax + ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
movzx eax, byte [ebx + 2]
add ebx, 3
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], al
add esi, 4
sub edi, 3
jmp 0x405225
sub edi, 1
je 0x4052e9
sub edi, 1
jne 0x40531e
sub edx, 3
js 0x405325
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx eax, byte [ebx + 1]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
lea eax, [edx - 1]
test eax, eax
js 0x405325
mov byte [esi + 3], 0x3d
jmp 0x40531b
sub edx, 2
js 0x405325
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx eax, byte [ebx]
and eax, 3
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
lea eax, [edx - 2]
test eax, eax
js 0x405325
mov word [esi + 2], 0x3d3d
add esi, 4
sub esi, dword [ebp + 8]
mov eax, esi
jmp 0x405327
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4058f6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
lea ecx, [ebp - 0x24]
mov ebx, edx
call fcn.004032bd
xor esi, esi
mov dword [ebp - 0x6c], 0x44
push 0x3c
lea eax, [ebp - 0x64]
mov dword [ebp - 0x68], esi
push esi
push eax
call fcn.00416d80
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x6c]
add esp, 0xc
mov dword [ebp - 0x40], 0x80
push edi
push eax
push esi
cmp dword [ebp + 8], esi
jne 0x40593d
push esi
push esi
jmp 0x405945
push dword [ebp + 8]
push 0x400
push dword [ebp + 0xc]
push esi
push esi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40595f
call fcn.0040931b
mov esi, eax
jmp 0x4059a0
movzx ecx, byte [0x43dec9]
neg ecx
sbb ecx, ecx
and ecx, 0x43ded0
je 0x4059a0
xor eax, eax
mov dword [ebp - 0x14], ecx
inc eax
mov dword [ebp - 0x10], 7
push eax
push ecx
mov dword [ebp - 0xc], eax
call fcn.00406431
push dword [edi + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push str._Started_process___u_
push eax
call fcn.004031cb
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.00403317
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4059b5
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x4059d0
mov al, 1
jmp 0x405a13
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.00416d80
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x405a0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4358c8
call fcn.00409508
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4059cc
mov eax, dword [ebp - 0x38]
shr eax, 0xa
and al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00416002
leave
ret

Function at 0x405a20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SoftwareBraveSoftwareUpdateDev_
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405a4e
xor al, al
jmp 0x405a96
push esi
push edi
push 4
pop edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], edi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push ebx
push str.IsEnabledLogToFile
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x405a92
cmp dword [ebp - 8], edi
jne 0x405a92
cmp dword [ebp - 0xc], ebx
je 0x405a92
mov bl, 1
pop edi
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x405dce
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00405a20
mov byte [ebx + 0x77], al
mov ecx, ebx
lea eax, [ebp - 4]
push eax
call fcn.0040686b
mov edi, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x14], edi
cmp dword [edi - 0xc], 0
je 0x405e59
push edi
push 1
push str.EnableLogging
push str.LoggingSettings
call esi
push edi
push 1
test eax, eax
push str.ShowTime
setne al
push str.LoggingSettings
mov byte [ebx + 0x74], al
call esi
push edi
push 0
test eax, eax
push str.LogToOutputDebug
setne al
push str.LoggingSettings
mov byte [ebx + 0x76], al
call esi
push edi
push 1
test eax, eax
push str.AppendToFile
setne al
push str.LoggingSettings
mov byte [ebx + 0x78], al
call esi
test eax, eax
setne al
jmp 0x405e67
mov byte [ebx + 0x74], 1
mov al, 1
mov byte [ebx + 0x76], 1
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x79], al
cmp byte [ebx + 0x75], 0
je 0x405e74
mov byte [ebx + 0x76], 1
xor eax, eax
mov byte [ebx], 1
mov dword [ebx + 4], 7
mov edi, esi
mov dword [ebp - 4], eax
mov edx, dword [eax + 0x43cb10]
mov ecx, dword [eax + 0x43cb14]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
test edx, edx
je 0x405ee0
cmp ecx, 9
ja 0x405ee0
lea eax, [ebp - 8]
mov ecx, ebx
push eax
call fcn.0040686b
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x405ec3
push esi
push 1
push dword [ebp - 0xc]
push str.LoggingLevel
call edi
jmp 0x405ec6
xor eax, eax
inc eax
mov edx, dword [ebp - 0x10]
test eax, eax
setne cl
mov byte [ebx + edx*8], cl
lea ecx, [esi - 0x10]
mov dword [ebx + edx*8 + 4], eax
call fcn.004016ae
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
cmp eax, 0x48
jb 0x405e85
call fcn.004058c6
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], edx
lea ecx, [ecx - 0x10]
call fcn.004016ae
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405f0c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea ecx, [ebp - 4]
call fcn.0040171e
mov esi, dword [ebp - 4]
xor ecx, ecx
inc ecx
mov edx, 0x104
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x405f3c
push edx
lea ecx, [ebp - 4]
call fcn.00401901
mov esi, dword [ebp - 4]
push esi
xor eax, eax
push eax
push eax
push 0x23
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x405f75
mov ecx, dword [ebp + 8]
push 0x432be0
call fcn.00404066
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.004040c5
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.004016ae
mov eax, dword [ebp + 8]
jmp 0x405faf
push str.BraveSoftwareUpdateLog
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x405f4e
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004018a1
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
add eax, 0x10
push 0xffffffffffffffff
mov dword [esi], eax
call fcn.004040c5
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.004016ae
mov eax, esi
pop esi
leave
ret 4
Function at 0x40605c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
cmp byte [ebx + 0x77], 0
je 0x406124
cmp dword [ebx + 0xcc], 0
push esi
push edi
jne 0x406110
lea eax, [ebp - 4]
push eax
call fcn.00405fb4
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x4060bb
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00409154
mov edi, dword [ebp - 8]
mov ecx, edi
call fcn.00403148
test al, al
jne 0x4060c5
mov ecx, edi
call fcn.00404dfe
test eax, eax
jns 0x4060c5
lea ecx, [edi - 0x10]
call fcn.004016ae
lea ecx, [esi - 0x10]
call fcn.004016ae
jmp 0x406122
mov al, byte [ebx + 0x79]
push 0x20
mov byte [ebp - 8], al
call fcn.0042a97c
pop ecx
push dword [ebp - 8]
mov ecx, eax
push esi
call fcn.00406953
mov dword [ebx + 0xcc], eax
test eax, eax
jne 0x406100
push esi
push dword [ebx + 0x54]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
call fcn.00409508
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [edi - 0x10]
call fcn.004016ae
lea ecx, [esi - 0x10]
call fcn.004016ae
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x406122
push eax
mov ecx, ebx
call fcn.004067f8
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4065da
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, ecx
push edi
test esi, esi
je 0x40668e
cmp dword [ebp + 8], 0
jne 0x4065ff
cmp dword [ebp + 0x10], 2
jg 0x40668e
lea ecx, [ebp - 4]
call fcn.0040171e
lea ecx, [ebp + 0x14]
call fcn.0040171e
xor edi, edi
inc edi
mov eax, dword [ebx + 0x58]
lea ecx, [ebx + 0x58]
push 0
mov eax, dword [eax + 0xc]
call eax
test al, al
jne 0x406633
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x14
jle 0x406612
jmp 0x40665d
push dword [ebp + 0x18]
lea eax, [ebp + 0x14]
mov ecx, ebx
push esi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004064f2
mov eax, dword [ebx + 0x58]
lea ecx, [ebx + 0x58]
call dword [eax + 8]
cmp edi, 0x14
jle 0x406678
push str.LOG_SYSTEM:_Couldnt_acquire_lock__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
push 0x435e68
call esi
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.004016ae
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004016ae
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x406953
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0xc]
push ebx
mov ebx, ecx
push edi
lea ecx, [ebx + 0xc]
mov dword [ebx], fcn.00406b14
mov dword [ebx + 4], 0x989680
mov word [ebx + 8], 0
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], 1
call fcn.0040171e
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x10], edi
call fcn.00404066
lea ecx, [ebx + 0x1c]
mov dword [ebx + 0x18], edi
call fcn.0040171e
movzx eax, byte [0x43dec9]
neg eax
sbb eax, eax
and eax, 0x43ded0
mov dword [ebp + 8], eax
je 0x406a1b
push esi
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.0040686b
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], edi
je 0x4069f6
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0x989680
push str.MaxLogFileSize
push str.LoggingSettings
call edi
mov dword [ebx + 4], eax
xor eax, eax
push esi
inc eax
push eax
push str.LogFileWide
push str.LoggingSettings
call edi
test eax, eax
setne al
jmp 0x406a00
xor eax, eax
mov dword [ebx + 4], 0x989680
inc eax
mov byte [ebx + 0xb], al
lea ecx, [ebx + 0x1c]
mov eax, dword [ebp + 8]
add eax, 0x54
push eax
call fcn.004016c6
lea ecx, [esi - 0x10]
call fcn.004016ae
pop esi
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 8

Function at 0x406a7c
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 8], 0
jne 0x406b10
mov byte [esi + 8], 1
call fcn.00406b40
lea ebx, [esi + 0x10]
cmp dword [ebx], 0
je 0x406b10
mov edi, ebx
test al, al
je 0x406aa9
mov byte [esi + 0xa], 1
lea edi, [esi + 0x10]
mov ecx, esi
call fcn.00407279
test al, al
jne 0x406ad0
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.00409508
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x406b10
mov ecx, esi
call fcn.00406d64
cmp dword [esi + 0x18], 0
jne 0x406afd
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.00409508
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x406aff
mov edi, ebx
cmp dword [edi], 0
mov byte [esi + 9], 1
je 0x406b10
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebx
ret
Function at 0x406a7d
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 8], 0
jne 0x406b10
mov byte [esi + 8], 1
call fcn.00406b40
lea ebx, [esi + 0x10]
cmp dword [ebx], 0
je 0x406b10
mov edi, ebx
test al, al
je 0x406aa9
mov byte [esi + 0xa], 1
lea edi, [esi + 0x10]
mov ecx, esi
call fcn.00407279
test al, al
jne 0x406ad0
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.00409508
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x406b10
mov ecx, esi
call fcn.00406d64
cmp dword [esi + 0x18], 0
jne 0x406afd
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.00409508
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x406aff
mov edi, ebx
cmp dword [edi], 0
mov byte [esi + 9], 1
je 0x406b10
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebx
ret
Function at 0x406d64
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x70], 0
lea edx, [ebp - 0x70]
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 0x14]
mov ecx, dword [ebx]
call fcn.00404f9e
mov eax, dword [ebp - 0x70]
cmp eax, dword [edi + 4]
jbe 0x406d9c
mov ecx, edi
call fcn.00406f3b
xor eax, eax
cmp byte [edi + 0xa], al
setne al
xor esi, esi
push esi
push 0x80
lea eax, [eax*2 + 2]
push eax
push esi
push 3
push 0x40000000
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x18], eax
cmp eax, 0xffffffff
jne 0x406dd6
mov dword [edi + 0x18], esi
xor al, al
jmp 0x406ed3
mov edx, ebx
lea ecx, [ebp - 0x70]
call fcn.00409154
mov esi, dword [ebp - 0x70]
lea edx, [ebp - 0x69]
mov ecx, esi
mov byte [ebp - 0x69], 1
call fcn.00404f0b
cmp byte [ebp - 0x69], 0
jne 0x406ea1
mov ecx, dword [edi + 0x18]
call fcn.004059b5
test al, al
jne 0x406ea1
lea ecx, [ebp - 0x90]
call fcn.00402154
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x68]
push 0x435220
push eax
call fcn.00401cee
add esp, 0x10
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x90]
push 0xc0010000
push eax
call fcn.004021c1
lea ecx, [ebp - 0x68]
mov bl, al
call fcn.00401dbf
test bl, bl
je 0x406e64
push ecx
mov ecx, dword [edi + 0x14]
lea eax, [ebp - 0x90]
push eax
call fcn.00403065
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x406e91
cmp byte [edi + 0xb], 0
je 0x406e91
and dword [ebp - 0x70], 0
lea eax, [ebp - 0x70]
push 0
push eax
push 2
push 0x433d48
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x90]
call fcn.0040219a
xor ebx, ebx
inc ebx
jmp 0x406ec9
push dword [ebx]
push dword [edi + 0x1c]
push str.LOG_SYSTEM:___s_:_ERROR___Log_path__s_has_a_reparse_point
call fcn.00409508
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x18], 0
xor bl, bl
lea ecx, [esi - 0x10]
call fcn.004016ae
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416002
leave
ret

Function at 0x406ee2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 0x80
push 5
push ebx
push 3
push 0x40000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esi + 0x18], 0xffffffff
mov edi, eax
jne 0x406f12
xor al, al
jmp 0x406f36
cmp byte [esi + 0xb], bl
je 0x406f2d
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 2
push 0x433d48
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406fb3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x18
mov dword [ebp - 0x70], ecx
lea edi, [ebp - 0x68]
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlSession_Manager
lea eax, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
xor ebx, ebx
lea eax, [ebp - 0x68]
push ebx
push eax
push 0x80000002
movsw word es:[edi], word [esi]
mov dword [ebp - 0x74], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4070de
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x6c]
push 7
pop esi
push eax
push ebx
lea eax, [ebp - 0x78]
mov dword [ebp - 0x6c], ebx
push eax
push ebx
push str.PendingFileRenameOperations
push dword [ebp - 0x74]
mov dword [ebp - 0x78], esi
call edi
test eax, eax
jne 0x4070de
cmp dword [ebp - 0x78], esi
jne 0x4070de
push dword [ebp - 0x6c]
call fcn.0042aa01
push dword [ebp - 0x6c]
mov esi, eax
push ebx
push esi
mov dword [ebp - 0x7c], esi
call fcn.00416d80
add esp, 0x10
lea eax, [ebp - 0x6c]
push eax
push esi
push ebx
push ebx
push str.PendingFileRenameOperations
push dword [ebp - 0x74]
call edi
test eax, eax
jne 0x4070d3
mov edi, dword [ebp - 0x6c]
shr edi, 1
lea eax, [edi - 2]
cmp eax, 0xffffd
ja 0x4070d3
cmp word [esi + edi*2 - 4], bx
jne 0x4070d3
cmp word [esi + edi*2 - 2], bx
jne 0x4070d3
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x70]
add eax, 0x14
mov edx, str.___
push eax
call fcn.004072e7
mov esi, dword [ebp - 0x70]
pop ecx
test edi, edi
je 0x4070bf
mov eax, dword [ebp - 0x7c]
push esi
lea eax, [eax + ebx*2]
push eax
mov dword [ebp - 0x70], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4070c2
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc ebx
add ebx, eax
cmp ebx, edi
jb 0x40709a
or ebx, 0xffffffff
cmp ebx, 0xffffffff
lea ecx, [esi - 0x10]
setne bl
call fcn.004016ae
mov esi, dword [ebp - 0x7c]
push esi
call fcn.00416692
pop ecx
mov al, bl
jmp 0x4070e0
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416002
leave
ret

Function at 0x407279
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x407286
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4072bf
cmp eax, 0x80
je 0x4072bf
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.00409508
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x407282
mov al, 1
pop esi
ret
Function at 0x40776a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x124]
push 0x118
push ebx
mov dword [ebp - 0x12c], ebx
push eax
mov dword [ebp - 0x128], 0x11c
call fcn.00416d80
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.0x40789d.2
mov ecx, dword [ebp - 0x124]
cmp ecx, 6
je 0x40785b
cmp ecx, 0xa
je 0x40785b
cmp ecx, 5
jne case.0x40789d.2
cmp dword [ebp - 0x120], 2
jne 0x407844
cmp byte [ebp - 0xe], 1
jne 0x407816
lea ecx, [ebp - 0x130]
call fcn.004076e6
mov dword [ebp - 0x12c], 1
push 0x436254
push dword [eax]
call fcn.0042c570
pop ecx
pop ecx
test eax, eax
jne 0x407816
mov bl, 1
inc eax
jmp 0x40781c
mov eax, dword [ebp - 0x12c]
test al, 1
je 0x40782e
mov ecx, dword [ebp - 0x130]
lea ecx, [ecx - 0x10]
call fcn.004016ae
test bl, bl
jne case.0x40789d.1
test dword [ebp - 0x10], 0x8000
jne case.0x40789d.2
push 2
pop eax
jmp 0x4078c1
cmp dword [ebp - 0x120], 1
jne case.0x40789d.2
test dword [ebp - 0x10], 0x200
jne case.0x40789d.2
xor eax, eax
inc eax
jmp 0x4078c1
mov edx, dword [ebp - 0x120]
lea eax, [ebp - 0x12c]
push eax
push ecx
push ecx
mov dword [ebp - 0x12c], ebx
call fcn.004074c4
add esp, 0xc
test eax, eax
je case.0x40789d.2
mov eax, dword [ebp - 0x12c]
cmp eax, 0x30
ja 0x4078f1
je case.0x40789d.1
cmp eax, 0xb
ja 0x4078a4
je case.0x40789d.2
dec eax
cmp eax, 9
ja case.0x40789d.2
movzx eax, byte [eax + 0x40793e]
jmp dword [eax*4 + 0x40792a]
cmp eax, 0x10
ja 0x4078ce
je case.0x40789d.4
sub eax, 0xc
je case.0x40789d.7
sub eax, 1
je case.0x40789d.7
sub eax, 1
je case.0x40789d.7
sub eax, 1
je case.0x40789d.7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00416002
leave
ret
sub eax, 0x11
je case.0x40789d.7
sub eax, 1
je case.0x40789d.7
sub eax, 7
je case.0x40789d.7
dec eax
sub eax, 1
je case.0x40789d.4
jmp case.0x40789d.2
cmp eax, 0x7a
ja 0x407914
je 0x40790d
sub eax, 0x46
je case.0x40789d.4
dec eax
sub eax, 1
je case.0x40789d.4
sub eax, 0xc
je case.0x40789d.4
sub eax, 0x25
jne case.0x40789d.2
push 4
jmp 0x407841
sub eax, 0x7d
je case.0x40789d.4
sub eax, 1
je case.0x40789d.4
sub eax, 3
jne 0x4078ea
push 3
jmp 0x407841

Function at 0x408082
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
mov esi, ecx
push eax
call fcn.0040894b
cmp byte [ebp - 8], 0
je 0x4080a2
mov eax, dword [ebp - 0xc]
jmp 0x4080cb
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jle 0x4080ba
movzx eax, ax
or eax, 0x80070000
cmp eax, 0x80070002
je 0x4080c8
cmp eax, 0x80070003
jne 0x4080cb
xor eax, eax
inc eax
pop esi
leave
ret 4