joyce8/EMBER2024-capa huggingface dataset:
Function at 0x17cff4da
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
test eax, eax
je 0x17cff4f3
xor eax, eax
jmp 0x17cff52a
push edi
call fcn.17ce51cd
mov edi, eax
cmp edi, 0x80070002
jne 0x17cff52f
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17cff527
test byte [eax + 0x1c], 4
je 0x17cff527
push 0x17c984b8
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17c9f43a
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
cmp edi, 0x80070005
je 0x17cff560
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17cff55c
test byte [eax + 0x1c], 2
je 0x17cff55c
push edi
push 0x17c984b8
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2c24
mov eax, edi
jmp 0x17cff529
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x17cff595
call fcn.17ce51cd
mov esi, eax
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17cff5ca
test byte [eax + 0x1c], 2
je 0x17cff5ca
push esi
push 0x17c984b8
push 0x1a
jmp 0x17cff5bf
push dword [ebp + 8]
call esi
test eax, eax
jne 0x17cff527
call fcn.17ce51cd
mov esi, eax
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17cff5ca
test byte [eax + 0x1c], 1
je 0x17cff5ca
push esi
push 0x17c984b8
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2c24
mov eax, esi
jmp 0x17cff529

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x17cff769
push esi
call fcn.17ce51cd
mov esi, eax
cmp esi, 0x80070002
je 0x17cff764
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17cff764
test byte [eax + 0x1c], 1
je 0x17cff764
push esi
push dword [ebp + 8]
push 0x17c984b8
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2bb0
mov eax, esi
pop esi
jmp 0x17cff79d
test al, 0x10
jne 0x17cff79b
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17cff794
test byte [eax + 0x1c], 1
je 0x17cff794
push dword [ebp + 8]
push 0x17c984b8
push 0x32
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca8223
mov eax, 0x80070002
jmp 0x17cff79d
xor eax, eax
pop ebp
ret 4
Function at 0x17d0756c
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp dword [ebp + 8], ebx
jne 0x17d0759a
mov eax, 0x80070057
jmp 0x17d076d0
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jne 0x17d075e9
call fcn.17ce51cd
mov dword [ebp - 4], eax
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17d076c3
test byte [eax + 0x1c], 1
je 0x17d076c3
push dword [ebp - 4]
push 0x17c98a58
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2c24
jmp 0x17d076c3
add esi, 8
cmp esi, 8
ja 0x17d075fd
mov dword [ebp - 4], 0x80070216
jmp 0x17d076c3
lea eax, [ebp - 8]
push eax
push 1
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.17d08154
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x17d076c3
push dword [ebp - 8]
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x17d07653
call fcn.17ce51cd
mov dword [ebp - 4], eax
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17d076c3
test byte [eax + 0x1c], 1
je 0x17d076c3
push dword [ebp - 4]
push 0x17c98a58
push 0x2d
jmp 0x17d075d9
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x17c93108
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x17d07695
call fcn.17ce51cd
mov dword [ebp - 4], eax
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17d076c3
test byte [eax + 0x1c], 1
je 0x17d076c3
push dword [ebp - 4]
push 0x17c98a58
push 0x2e
jmp 0x17d075d9
cmp dword [ebp - 0x10], 0x34
jae 0x17d076a4
mov dword [ebp - 4], 0x80070057
jmp 0x17d076c3
mov edi, dword [ebp - 0xc]
mov eax, dword [edi + 8]
mov esi, dword [ebp + 0xc]
mov edx, ebx
mov cl, 0x20
call fcn.17d10430
mov dword [esi], eax
mov dword [esi + 4], edx
mov eax, dword [edi + 0xc]
add dword [esi], eax
adc dword [esi + 4], ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.17d081bf
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
leave
ret 8

Function at 0x17d083fe
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x17d08414
xor eax, eax
jmp 0x17d08468
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
call ebx
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
jle 0x17d08431
and eax, edi
or eax, esi
cmp eax, 0x80070005
jne 0x17d08465
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x17d08457
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x17d08463
call ebx
test eax, eax
jle 0x17d08465
and eax, edi
or eax, esi
jmp 0x17d08465
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x17d0871c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x17d29168]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x226
push eax
mov word [ebp - 0x22c], ax
lea eax, [ebp - 0x22a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x17d0878a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x17d08777
and eax, 0xffff
or eax, 0x80070000
cmp eax, 0x80070002
je 0x17d08785
cmp eax, 0x80070003
jne 0x17d0878a
xor esi, esi
inc esi
jmp 0x17d087cf
test bl, 0x10
je 0x17d087c7
push 0x17c91fc8
lea eax, [ebp - 0x22c]
push eax
call fcn.17d08339
mov esi, eax
test esi, esi
jl 0x17d087cf
push edi
lea eax, [ebp - 0x22c]
push eax
call fcn.17d083d6
mov esi, eax
test esi, esi
jl 0x17d087cf
lea eax, [ebp - 0x22c]
push eax
call fcn.17d08471
jmp 0x17d087cd
push edi
call fcn.17d083fe
mov esi, eax
lea eax, [ebp - 0x22c]
push eax
call fcn.17d08313
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.17ce4923
leave
ret 4

Function at 0x17d088c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x17d29168]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x226
push eax
mov word [ebp - 0x22c], ax
lea eax, [ebp - 0x22a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 0x22c]
push eax
call fcn.17d08339
mov esi, eax
test esi, esi
jl 0x17d089ae
push edi
lea eax, [ebp - 0x22c]
push eax
call fcn.17d0826c
mov esi, eax
test esi, esi
jl 0x17d089ae
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x17d089cc
call edi
cmp eax, 2
je 0x17d0898a
cmp eax, 3
jne 0x17d0899e
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x234]
push eax
call fcn.17d087f3
mov esi, eax
test esi, esi
jne 0x17d0898a
lea eax, [ebp - 0x234]
push eax
call fcn.17d088c0
mov esi, eax
test esi, esi
jl 0x17d089ae
push 0
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x17d089ae
call edi
test eax, eax
jle 0x17d089ac
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea eax, [ebp - 0x22c]
push eax
call fcn.17d08313
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.17ce4923
leave
ret 4
test al, 0x10
je 0x17d0894e
xor esi, esi
jmp 0x17d089ae
Function at 0x17d08a76
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp esi, ebx
je 0x17d08a84
mov dword [esi], ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x17d08ac3
call fcn.17ce51cd
mov ebx, eax
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17d08b1d
test byte [eax + 0x1c], 1
je 0x17d08b1d
push ebx
push dword [ebp + 8]
push 0x17c98bc4
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2bb0
jmp 0x17d08b1d
and eax, 0xffffb1af
test al, 7
je 0x17d08b1d
push edi
and eax, 0xfffffff8
mov edi, eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x17d08b12
call fcn.17ce51cd
mov ebx, eax
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17d08b1c
test byte [eax + 0x1c], 1
je 0x17d08b1c
push ebx
push edi
push dword [ebp + 8]
push 0x17c98bc4
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17cefd60
jmp 0x17d08b1c
test esi, esi
je 0x17d08b1c
mov dword [esi], 1
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 4
Function at 0x17d08e4d
Capabilities:
Copy file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
push edi
mov ebx, 0x17d26008
mov edi, 0x17c98bc4
cmp dword [ebp + 0x14], esi
jne 0x17d08e97
push dword [ebp + 8]
call fcn.17d08a76
mov esi, eax
test esi, esi
jge 0x17d08e97
mov eax, dword [0x17d26008]
cmp eax, ebx
je 0x17d08e95
test byte [eax + 0x1c], 2
je 0x17d08e95
push esi
push dword [ebp + 8]
push edi
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2bb0
xor esi, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x17d08ed7
call fcn.17ce51cd
mov esi, eax
mov eax, dword [0x17d26008]
cmp eax, ebx
je 0x17d08f0e
test byte [eax + 0x1c], 1
je 0x17d08f0e
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17cc5a82
jmp 0x17d08f0e
cmp dword [ebp + 0x14], 0
jne 0x17d08f0e
push dword [ebp + 0xc]
xor esi, esi
call fcn.17d08a76
mov esi, eax
test esi, esi
jge 0x17d08f0e
mov eax, dword [0x17d26008]
cmp eax, ebx
je 0x17d08f0e
test byte [eax + 0x1c], 1
je 0x17d08f0e
push esi
push dword [ebp + 0xc]
push edi
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2bb0
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x17d0a81f
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x17d0a86c
mov eax, dword [0x17d26008]
mov esi, 0x80070057
cmp eax, 0x17d26008
je 0x17d0a85b
test byte [eax + 0x1c], 1
je 0x17d0a85b
push esi
push 0x17c98c5c
push 0x8b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2c24
push 0x17d23160
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], esi
call sub.msvcrt.dll__CxxThrowException
mov esi, dword [edi + 0x10]
test esi, esi
je 0x17d0a93f
mov ecx, dword [edi + 0x14]
mov dword [ebp + 8], ecx
test ecx, ecx
jne 0x17d0a8a5
mov eax, dword [0x17d26008]
mov esi, 0x8007000d
cmp eax, 0x17d26008
je 0x17d0a85b
test byte [eax + 0x1c], 1
je 0x17d0a85b
push esi
push 0x17c98c5c
push 0x8c
jmp 0x17d0a850
xor ebx, ebx
test esi, esi
jle 0x17d0a93f
mov eax, dword [0x17d26008]
jmp 0x17d0a8b9
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + ebx*4]
test ecx, ecx
je 0x17d0a915
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x17d0a909
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x17d0a8df
and eax, 0xffff
or eax, 0x80070000
mov ecx, eax
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17d0a90e
test byte [eax + 0x1c], 2
je 0x17d0a90e
push ecx
push 0x17c98c5c
push 0x8e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2c24
mov eax, dword [0x17d26008]
inc ebx
cmp ebx, esi
jl 0x17d0a8b6
jmp 0x17d0a944
mov esi, 0x8007000d
cmp eax, 0x17d26008
je 0x17d0a85b
test byte [eax + 0x1c], 1
je 0x17d0a85b
push esi
push 0x17c98c5c
push 0x8d
jmp 0x17d0a850
mov eax, dword [0x17d26008]
mov ecx, dword [edi]
test ecx, ecx
jne 0x17d0a974
mov esi, 0x8007000d
cmp eax, 0x17d26008
je 0x17d0a85b
test byte [eax + 0x1c], 1
je 0x17d0a85b
push esi
push 0x17c98c5c
push 0x8f
jmp 0x17d0a850
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
call esi
test eax, eax
jne 0x17d0a9c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x17d0a995
and eax, 0xffff
or eax, 0x80070000
mov ecx, eax
mov eax, dword [0x17d26008]
mov ebx, 0x17d26008
cmp eax, ebx
je 0x17d0a9cd
test byte [eax + 0x1c], 2
je 0x17d0a9cd
push ecx
push 0x17c98c5c
push 0x90
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2c24
jmp 0x17d0a9c8
mov ebx, 0x17d26008
mov eax, dword [0x17d26008]
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x17d0a9fb
mov esi, 0x8007000d
cmp eax, ebx
je 0x17d0a85b
test byte [eax + 0x1c], 1
je 0x17d0a85b
push esi
push 0x17c98c5c
push 0x91
jmp 0x17d0a850
push ecx
call esi
test eax, eax
jne 0x17d0aa3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x17d0aa16
and eax, 0xffff
or eax, 0x80070000
mov ecx, eax
mov eax, dword [0x17d26008]
cmp eax, ebx
je 0x17d0aa3d
test byte [eax + 0x1c], 2
je 0x17d0aa3d
push ecx
push 0x17c98c5c
push 0x92
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2c24
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x17d0aa49
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x17d29168]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
and dword [esi], 0
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x17d0aaeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x17d0aaaa
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17d0aad4
test byte [eax + 0x1c], 1
je 0x17d0aad4
push esi
push 0x17c98c5c
push 0xb3
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2c24
push 0x17d23160
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], esi
call sub.msvcrt.dll__CxxThrowException
cmp dword [ebp - 0x11c], 6
jb 0x17d0aafa
mov dword [esi], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.17ce4923
leave
ret 4

Function at 0x17d0b685
Capabilities:
Delete file

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x24]
mov ecx, edi
call fcn.17ce93a9
test eax, eax
je 0x17d0b6ce
mov ecx, edi
call fcn.17ce93a9
test eax, eax
jbe 0x17d0b6ce
push ebx
xor edi, edi
mov ebx, eax
mov eax, dword [esi + 0x28]
add eax, edi
cmp dword [eax + 0x14], 0
je 0x17d0b6c7
cmp dword [eax + 0x18], 8
jb 0x17d0b6bd
mov eax, dword [eax + 4]
jmp 0x17d0b6c0
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add edi, 0x1c
dec ebx
jne 0x17d0b6a7
pop ebx
cmp dword [esi + 0x4c], 0
je 0x17d0b6e9
cmp dword [esi + 0x50], 8
jb 0x17d0b6df
mov eax, dword [esi + 0x3c]
jmp 0x17d0b6e2
lea eax, [esi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x68], 0
je 0x17d0b704
cmp dword [esi + 0x6c], 8
jb 0x17d0b6fa
mov esi, dword [esi + 0x58]
jmp 0x17d0b6fd
add esi, 0x58
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
ret
Function at 0x17d0f486
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov bl, byte [ebp + 0x10]
push esi
push 4
xor esi, esi
movzx ecx, bl
pop edx
shl esi, 8
or esi, ecx
dec edx
jne 0x17d0f49b
mov edx, dword [ebp + 0xc]
mov ecx, edx
shr ecx, 2
test ecx, ecx
jle 0x17d0f4b7
xor dword [eax], esi
add eax, 4
dec ecx
jne 0x17d0f4af
and edx, 3
jle 0x17d0f4c2
xor byte [eax], bl
inc eax
dec edx
jne 0x17d0f4bc
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x17d0f673
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
cmp dword [ebp + 8], 0xffffffff
push esi
jne 0x17d0f6c0
mov eax, dword [0x17d26008]
mov esi, 0x80070057
cmp eax, 0x17d26008
je 0x17d0f6af
test byte [eax + 0x1c], 1
je 0x17d0f6af
push esi
push 0x17c991bc
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2c24
push 0x17d23160
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], esi
call sub.msvcrt.dll__CxxThrowException
cmp dword [ebp + 0xc], 0
je 0x17d0f762
lea eax, [ebp - 4]
push eax
push 0x7fffffff
push dword [ebp + 0xc]
call fcn.17cc5cf4
mov esi, eax
cmp esi, 0x80070057
je 0x17d0f73b
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
ja 0x17d0f73b
push 0
lea ecx, [ebp - 8]
push ecx
add eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x17d0f762
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x17d0f71a
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17d0f6af
test byte [eax + 0x1c], 1
je 0x17d0f6af
push esi
push 0x17c991bc
push 0x14
jmp 0x17d0f6a4
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17d0f6af
test byte [eax + 0x1c], 1
je 0x17d0f6af
push esi
push 0x17c991bc
push 0x13
jmp 0x17d0f6a4
pop esi
leave
ret 8
Function at 0x17d0f76c
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 8], esi
je 0x17d0f866
cmp dword [ebp + 0xc], esi
je 0x17d0f866
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.17cc5cf4
cmp eax, 0x80070057
jne 0x17d0f836
cmp dword [ebp + 0x10], 0xffffffff
jbe 0x17d0f7e5
lea esi, [eax - 0x4a]
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17d0f7d4
test byte [eax + 0x1c], 1
je 0x17d0f7d4
push esi
push 0x17c991bc
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2c24
push 0x17d23160
lea eax, [ebp + 0x10]
push eax
mov dword [ebp + 0x10], esi
call sub.msvcrt.dll__CxxThrowException
mov eax, dword [ebp + 0x10]
push esi
lea ecx, [ebp - 8]
push ecx
add eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x17d0f892
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x17d0f818
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17d0f7d4
test byte [eax + 0x1c], 1
je 0x17d0f7d4
push esi
push 0x17c991bc
push 0x1b
jmp 0x17d0f7c9
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
jbe 0x17d0f7e8
mov eax, dword [0x17d26008]
mov esi, 0x8007000d
cmp eax, 0x17d26008
je 0x17d0f7d4
test byte [eax + 0x1c], 1
je 0x17d0f7d4
push esi
push 0x17c991bc
push 0x1a
jmp 0x17d0f7c9
mov eax, dword [0x17d26008]
mov esi, 0x80070057
cmp eax, 0x17d26008
je 0x17d0f7d4
test byte [eax + 0x1c], 1
je 0x17d0f7d4
push esi
push 0x17c991bc
push 0x18
jmp 0x17d0f7c9
pop esi
leave
ret 0xc
Function at 0x17d0fd4e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x17d29168]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], ecx
cmp ebx, edi
je 0x17d0ff06
cmp eax, 0xffffffff
je 0x17d0ff06
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x218]
push ecx
push edi
lea ecx, [ebp - 0x21c]
push ecx
push edi
push ebx
push eax
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x218], edi
call esi
cmp eax, edi
je 0x17d0fe02
jle 0x17d0fdc4
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17d0fdeb
test byte [eax + 0x1c], 1
je 0x17d0fdeb
push esi
push 0x17c991bc
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2c24
mov dword [ebp - 0x210], esi
push 0x17d23160
lea eax, [ebp - 0x210]
push eax
call sub.msvcrt.dll__CxxThrowException
cmp dword [ebp - 0x218], edi
je 0x17d0fec6
cmp dword [ebp - 0x218], 0x206
ja 0x17d0fec6
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
push ebx
push dword [ebp - 0x210]
call esi
cmp eax, edi
je 0x17d0fe6e
jle 0x17d0fe4d
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17d0fdeb
test byte [eax + 0x1c], 1
je 0x17d0fdeb
push esi
push 0x17c991bc
push 0xd
jmp 0x17d0fde0
cmp dword [ebp - 0x21c], 1
je 0x17d0fea3
mov eax, dword [0x17d26008]
mov esi, 0x8007000d
cmp eax, 0x17d26008
je 0x17d0fdeb
test byte [eax + 0x1c], 1
je 0x17d0fdeb
push esi
push 0x17c991bc
push 0xe
jmp 0x17d0fde0
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
call fcn.17cc29f1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.17ce4923
leave
ret 0xc
mov eax, dword [0x17d26008]
mov esi, 0x80070018
cmp eax, 0x17d26008
je 0x17d0fef0
test byte [eax + 0x1c], 1
je 0x17d0fef0
push esi
push 0x17c991bc
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2c24
mov dword [ebp - 0x214], esi
push 0x17d23160
lea eax, [ebp - 0x214]
jmp 0x17d0fdfc
mov eax, dword [0x17d26008]
mov esi, 0x80070057
cmp eax, 0x17d26008
je 0x17d0fef0
test byte [eax + 0x1c], 1
je 0x17d0fef0
push esi
push 0x17c991bc
push 0xa
jmp 0x17d0fee5
Function at 0x17d0ff2c
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x17d18751
call fcn.17ce4bf6
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x54], ebx
cmp edi, 0xffffffff
jne 0x17d0ff83
mov eax, dword [0x17d26008]
mov esi, 0x80070057
cmp eax, 0x17d26008
je 0x17d0ff72
test byte [eax + 0x1c], 1
je 0x17d0ff72
push esi
push 0x17c991bc
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2c24
mov dword [ebp - 0x50], esi
push 0x17d23160
lea eax, [ebp - 0x50]
push eax
call sub.msvcrt.dll__CxxThrowException
lea ecx, [ebp - 0x2c]
call fcn.17cd1587
mov dword [ebp - 4], ebx
cmp esi, ebx
jne 0x17d0ffa1
push 0x17c98d38
lea ecx, [ebp - 0x2c]
call fcn.17cc29f1
jmp 0x17d0ffdd
push esi
lea ecx, [ebp - 0x48]
call fcn.17cc2a62
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], ebx
jne 0x17d0ffc0
push 0x17c98d38
lea ecx, [ebp - 0x48]
call fcn.17cc29f1
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.17cc267e
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.17cc1dce
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x17d0ffe9
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x50]
push ecx
push 0x7fffffff
push eax
call fcn.17cc5cf4
mov esi, eax
cmp esi, 0x80070057
je 0x17d1008c
mov eax, dword [ebp - 0x50]
cmp eax, 0xffffffff
ja 0x17d1008c
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x17d1001a
lea ecx, [ebp - 0x28]
push ebx
lea edx, [ebp - 0x54]
push edx
add eax, eax
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x17d10079
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x17d10042
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17d10069
test byte [eax + 0x1c], 1
je 0x17d10069
push esi
push 0x17c991bc
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2c24
mov dword [ebp - 0x4c], esi
push 0x17d23160
lea eax, [ebp - 0x4c]
jmp 0x17d0ff7d
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.17cc1dce
call fcn.17ce4c88
ret 8
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17d10069
test byte [eax + 0x1c], 1
je 0x17d10069
push esi
push 0x17c991bc
push 0x16
jmp 0x17d1005e