joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401651
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4016a7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4016a7
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401699
cmp esi, ecx
jae 0x4016a7
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x401687
cmp esi, ecx
jae 0x4016a7
cmp word [esi], 0
je 0x4016a7
mov eax, esi
jmp 0x4016a9
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401f1e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], edx
mov edi, 0x80070003
call fcn.00401849
lea ecx, [ebp - 0xc]
call fcn.004024f9
mov esi, dword [ebp - 0xc]
test eax, eax
je 0x40203f
and dword [ebp - 0x18], 0
or edx, 0xf003f
push ecx
push ecx
push edx
push ecx
push ecx
push esi
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x42b570
mov dword [ebp - 0x14], 0x200
call fcn.00401e05
mov edi, eax
test edi, edi
jne 0x402030
mov eax, dword [ebp + 8]
sub eax, 1
je 0x402012
sub eax, 1
je 0x40200e
sub eax, 1
je 0x401fff
sub eax, 1
je 0x401ff0
sub eax, 3
je 0x401fdd
sub eax, 4
je 0x401fab
mov edi, 0x8007065d
jmp 0x402022
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push 8
push eax
push 0xb
push 0
push dword [ebp - 4]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
jle 0x402022
movzx edi, di
or edi, 0x80070000
jmp 0x402022
push 7
push dword [ebp + 0x10]
lea ecx, [ebp - 0x1c]
push ebx
push dword [ebp - 4]
call fcn.00402456
jmp 0x402020
push dword [ebx]
lea ecx, [ebp - 0x1c]
push dword [ebp - 4]
call fcn.004023f1
jmp 0x402020
mov eax, ebx
neg eax
sbb eax, eax
and eax, dword [ebp + 0x10]
push eax
push ebx
push 3
jmp 0x401fbe
push 2
jmp 0x402014
push 1
push ebx
push dword [ebp - 4]
lea ecx, [ebp - 0x1c]
call fcn.0040241a
mov edi, eax
lea ecx, [ebp - 0x1c]
call fcn.00401dd9
test edi, edi
jne 0x402030
mov edi, eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x42b570
call fcn.00401dd9
lea ecx, [esi - 0x10]
call fcn.00401251
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402252
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 4]
push eax
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push ecx
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push dword [edi + 4]
mov dword [ebp - 8], ecx
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x40228a
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x4022ec
mov eax, dword [ebp - 4]
xor ecx, ecx
shr eax, 1
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041c3e5
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
test ecx, ecx
je 0x4022e7
cmp dword [ebp - 4], 0
je 0x4022e0
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x4022ec
movzx esi, si
or esi, 0x80070000
jmp 0x4022ec
xor eax, eax
mov word [ecx], ax
jmp 0x4022ec
mov esi, 0x8007000e
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x402eb0
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
lea ebx, [ecx + 4]
push edi
mov edi, edx
test ebx, ebx
je 0x402ee6
lea esi, [edi + 4]
test esi, esi
je 0x402ee6
call fcn.00402e12
test al, al
je 0x402ee6
mov ecx, edi
call fcn.00402e12
test al, al
je 0x402ee6
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x402ee8
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x404936
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.00403ad2
push 0x40
xor esi, esi
mov dword [ebp - 0x6c], 0x44
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.0040b2e0
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 0x40497a
push esi
push esi
jmp 0x404982
push dword [ebp + 8]
push 0x400
push esi
push esi
push esi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40499a
call fcn.00407613
mov esi, eax
jmp 0x4049db
movzx ecx, byte [0x431eb9]
neg ecx
sbb ecx, ecx
and ecx, 0x431de0
je 0x4049db
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.00405c44
push dword [edi + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push str._Started_process___u_
push eax
call fcn.00403ab3
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.00403b28
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x404b8e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea esi, [ecx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x404bcf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x404bcf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jb 0x404baa
xor al, al
jmp 0x404bd1
mov al, 1
pop esi
leave
ret 4

Function at 0x404c28
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x430008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov ecx, esi
call fcn.004018a4
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0040b2e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
jns 0x404cc2
movzx ecx, bl
cmp ecx, 0x26
jne 0x404c86
mov edx, 0x42b7a8
jmp 0x404c90
cmp ecx, 0x1c
jne 0x404cb1
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.00404be3
push eax
mov ecx, esi
call fcn.004017fb
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.00401251
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x404cbe
xor eax, eax
inc eax
jmp 0x404ce0
mov eax, edi
jmp 0x404ce0
lea eax, [ebp - 0x20c]
push eax
call fcn.004148e0
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00401a2c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a756
leave
ret

Function at 0x405110
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x430008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x40512b
mov al, 1
jmp 0x40516e
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.0040b2e0
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x405166
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42b850
call fcn.004077f0
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x405127
mov eax, dword [ebp - 0x38]
shr eax, 0xa
and al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040a756
leave
ret
Function at 0x40517b
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.SoftwareGoogleUpdateDev_
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4051a9
xor al, al
jmp 0x4051f1
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 0x4051ed
cmp dword [ebp - 8], edi
jne 0x4051ed
cmp dword [ebp - 0xc], ebx
je 0x4051ed
mov bl, 1
pop edi
mov al, bl
pop esi
pop ebx
leave
ret

Function at 0x405549
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0040517b
mov byte [ebx + 0x77], al
mov ecx, ebx
lea eax, [ebp - 4]
push eax
call fcn.004060bf
mov edi, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x14], edi
cmp dword [edi - 0xc], 0
je 0x4055d4
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 0x4055e2
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 0x4055ef
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 ecx, dword [eax + 0x430aa0]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x40565b
mov ecx, dword [eax + 0x430aa4]
mov dword [ebp - 0x10], ecx
cmp ecx, 9
ja 0x40565b
lea eax, [ebp - 8]
mov ecx, ebx
push eax
call fcn.004060bf
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x40563e
push esi
push 1
push dword [ebp - 0xc]
push str.LoggingLevel
call edi
jmp 0x405641
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.00401251
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
cmp eax, 0x48
jb 0x405600
call fcn.004017b6
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], edx
lea ecx, [ecx - 0x10]
call fcn.00401251
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405687
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.00401269
push eax
lea ecx, [ebp - 4]
call fcn.00401ae3
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 0x4056bd
push edx
lea ecx, [ebp - 4]
call fcn.00401bb3
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 0x4056f3
mov ecx, dword [ebp + 8]
push 0x429fb8
call fcn.00401849
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.0040280c
lea ecx, [esi - 0x10]
call fcn.00401251
mov eax, dword [ebp + 8]
jmp 0x40572a
push str.GoogleUpdateLog
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4056cf
push edi
lea edi, [esi - 0x10]
mov ecx, edi
call fcn.00401b60
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
add eax, 0x10
push 0xffffffffffffffff
mov dword [esi], eax
call fcn.0040280c
mov ecx, edi
call fcn.00401251
mov eax, esi
pop edi
pop esi
leave
ret 4

Function at 0x4057da
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 0x4058a3
mov eax, dword [ebx + 0xcc]
push esi
push edi
test eax, eax
jne 0x405899
lea eax, [ebp - 4]
push eax
call fcn.0040572f
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x40583a
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00407531
mov edi, dword [ebp - 8]
mov ecx, edi
call fcn.00403a30
test al, al
jne 0x405844
mov ecx, edi
call fcn.00404ecf
test eax, eax
jns 0x405844
lea ecx, [edi - 0x10]
call fcn.00401251
lea ecx, [esi - 0x10]
call fcn.00401251
jmp 0x4058a1
mov al, byte [ebx + 0x79]
push 0x20
mov byte [ebp - 8], al
call fcn.0041c3b5
pop ecx
push dword [ebp - 8]
mov ecx, eax
push esi
call fcn.004061ac
mov dword [ebx + 0xcc], eax
test eax, eax
jne 0x40587f
push esi
push dword [ebx + 0x54]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
call fcn.004077f0
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [edi - 0x10]
call fcn.00401251
lea ecx, [esi - 0x10]
call fcn.00401251
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x4058a1
push eax
mov ecx, ebx
call fcn.0040604c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405dd9
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 0x405e9a
cmp dword [ebp + 8], 0
jne 0x405dfe
cmp dword [ebp + 0x10], 2
jg 0x405e9a
call fcn.00401269
push eax
lea ecx, [ebp - 4]
call fcn.00401ae3
call fcn.00401269
push eax
lea ecx, [ebp + 0x14]
call fcn.00401ae3
xor edi, edi
lea eax, [ebx + 0x58]
inc edi
push 0
mov ecx, eax
call fcn.00404b8e
test al, al
jne 0x405e40
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
lea eax, [ebx + 0x58]
cmp edi, 0x14
jle 0x405e20
jmp 0x405e64
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.00405d05
lea ecx, [ebx + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
cmp edi, 0x14
jle 0x405e84
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 0x42bdd8
call esi
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401251
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.00401251
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x4061ac
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx], fcn.0040635a
mov dword [ebx + 4], 0x989680
mov word [ebx + 8], 0
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], 1
call fcn.00401269
push eax
lea ecx, [ebx + 0xc]
call fcn.00401ae3
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x10], edi
call fcn.00401849
mov dword [ebx + 0x18], edi
call fcn.00401269
push eax
lea ecx, [ebx + 0x1c]
call fcn.00401ae3
movzx eax, byte [0x431eb9]
neg eax
sbb eax, eax
and eax, 0x431de0
mov dword [ebp + 8], eax
je 0x40627f
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.004060bf
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], edi
je 0x40625b
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 0x406265
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.004017fb
lea ecx, [esi - 0x10]
call fcn.00401251
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x4062d7
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x406358
mov byte [esi + 8], 1
call fcn.00406386
cmp dword [esi + 0x10], 0
je 0x406358
test al, al
je 0x4062f7
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.004069b2
test al, al
jne 0x40631e
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.004077f0
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call fcn.0040644b
cmp dword [esi + 0x18], 0
jne 0x406345
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.004077f0
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 0x10], 0
mov byte [esi + 9], 1
je 0x406358
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret
Function at 0x40644b
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x430008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
lea edx, [ebp - 0x8c]
push esi
xor eax, eax
mov dword [ebp - 0x94], ebx
push edi
lea esi, [ebx + 0x14]
mov dword [ebp - 0x98], eax
mov ecx, dword [esi]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x9c], esi
call fcn.0040502b
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebx + 4]
jbe 0x40649f
mov ecx, ebx
call fcn.00406675
xor eax, eax
cmp byte [ebx + 0xa], al
setne al
xor ecx, ecx
push ecx
push 0x80
lea eax, [eax*2 + 2]
push eax
push ecx
push 3
push 0x40000000
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x18], eax
cmp eax, 0xffffffff
jne 0x4064d8
xor edi, edi
xor al, al
mov dword [ebx + 0x18], edi
jmp 0x406540
mov edx, esi
lea ecx, [ebp - 0x8c]
call fcn.00407531
mov esi, dword [ebp - 0x8c]
lea edi, [ebp - 0x28]
push 9
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
xor edi, edi
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x40654f
call fcn.00407613
push dword [ebx + 0x14]
push dword [ebx + 0x1c]
push str.LOG_SYSTEM:___s_:_ERROR___Log_path__s_has_a_reparse_point
call fcn.004077f0
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x18], edi
lea ecx, [esi - 0x10]
call fcn.00401251
mov al, byte [ebp - 0x98]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a756
leave
ret
mov eax, dword [ebp - 0x28]
shr eax, 0xa
and al, 1
jne 0x40650c
mov ecx, dword [ebx + 0x18]
call fcn.00405110
test al, al
jne 0x40650c
lea ecx, [ebp - 0xbc]
call fcn.004030c0
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x88]
push 0x42b3c4
push eax
call fcn.00402c20
add esp, 0x10
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0xbc]
push 0xc0010000
push eax
call fcn.0040313d
lea ecx, [ebp - 0x88]
mov bl, al
call fcn.00402d09
test bl, bl
je 0x4065cc
push ecx
lea eax, [ebp - 0xbc]
push eax
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax]
call fcn.004039f7
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x406605
mov eax, dword [ebp - 0x94]
cmp byte [eax + 0xb], 0
je 0x406605
xor ecx, ecx
push ecx
mov dword [ebp - 0x94], ecx
lea ecx, [ebp - 0x94]
push ecx
push 2
push 0x42b118
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0xbc]
mov byte [ebp - 0x98], 1
call fcn.00403106
jmp 0x406532
Function at 0x40661c
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 0x40664c
xor al, al
jmp 0x406670
cmp byte [esi + 0xb], bl
je 0x406667
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 2
push 0x42b118
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 0x4066f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x430008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x18
mov dword [ebp - 0x74], ecx
lea edi, [ebp - 0x68]
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlSession_Manager
lea eax, [ebp - 0x70]
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 - 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40681c
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 - 0x70]
mov dword [ebp - 0x78], esi
call edi
test eax, eax
jne 0x40681c
cmp dword [ebp - 0x78], esi
jne 0x40681c
push dword [ebp - 0x6c]
call fcn.0041c3e5
push dword [ebp - 0x6c]
mov esi, eax
push ebx
push esi
call fcn.0040b2e0
add esp, 0x10
lea eax, [ebp - 0x6c]
push eax
push esi
push ebx
push ebx
push str.PendingFileRenameOperations
push dword [ebp - 0x70]
call edi
test eax, eax
jne 0x40680d
mov edi, dword [ebp - 0x6c]
shr edi, 1
mov dword [ebp - 0x7c], edi
lea eax, [edi - 2]
cmp eax, 0xffffd
ja 0x40680d
cmp word [esi + edi*2 - 4], bx
jne 0x40680d
cmp word [esi + edi*2 - 2], bx
jne 0x40680d
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x74]
add eax, 0x14
mov edx, str.___
push eax
call fcn.00406a20
test edi, edi
mov edi, dword [ebp - 0x74]
pop ecx
je 0x4067fc
lea eax, [esi + ebx*2]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4067ff
lea eax, [esi + ebx*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add ebx, eax
cmp ebx, dword [ebp - 0x7c]
jb 0x4067db
or ebx, 0xffffffff
cmp ebx, 0xffffffff
lea ecx, [edi - 0x10]
setne bl
call fcn.00401251
test esi, esi
je 0x406818
push esi
call fcn.0040b16b
pop ecx
mov al, bl
jmp 0x40681e
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a756
leave
ret