joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1018cc2
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
or dword [ebp - 4], 0xffffffff
push edi
lea eax, [ebp - 0x18]
push eax
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1005ba8
push 0x80000001
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x1018d0e
push eax
push 0x1005b78
call fcn.01015c5a
pop ecx
pop ecx
jmp 0x1018dec
mov eax, dword [ebp + 8]
push ebx
push 4
pop esi
push esi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
push edi
push 0x1005b68
push dword [ebp - 4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push 0x1005b48
mov dword [ebp - 8], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 0x80000002
push ebx
call edi
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x1018df4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x1005b3c
push dword [ebp - 4]
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x1018d9a
cmp dword [ebp - 0x14], esi
jne 0x1018d9a
cmp dword [ebp - 0x10], esi
je 0x1018d9e
and dword [ebp - 8], 0
cmp dword [ebp - 4], 0xffffffff
je 0x1018dad
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
or ax, si
mov word [ebp - 0x24], ax
mov eax, dword [ebp - 8]
mov word [ebp - 0x1e], ax
shr eax, 0x10
mov word [ebp - 0x28], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
shl eax, 0xa
lea ecx, [ebp - 0xc]
xor ax, cx
and ax, 0xc00
xor ax, cx
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x28]
push eax
call fcn.0101656e
xor esi, esi
inc esi
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 4
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x1005ac8
push ebx
call edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x1005b3c
push dword [ebp - 4]
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x1018d9a
cmp dword [ebp - 0x14], esi
jne 0x1018d9a
cmp dword [ebp - 0x10], esi
jne 0x1018d9a
push 0x1005aa8
call fcn.01015c5a
pop ecx
jmp 0x1018d9e
Function at 0x1019cce
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push 0x100184c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x1019d0e
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push dword [ebp + 8]
mov esi, 0x107f8a0
push 0x1006754
push esi
call sub.ntdll.dll_sprintf
add esp, 0x10
push esi
call fcn.01015c42
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
leave
ret 4
Function at 0x101a1e9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x102c22c]
push ebx
push esi
push edi
push 0x104
lea ecx, [ebp - 0x108]
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x1004c50
push eax
xor edi, edi
xor esi, esi
call fcn.01015121
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x101a263
test byte [ebp - 0x248], 0x10
jne 0x101a24a
add edi, dword [ebp - 0x228]
adc esi, 0
lea eax, [ebp - 0x248]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x101a238
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, edi
shrd eax, esi, 0x14
pop edi
shr esi, 0x14
pop esi
pop ebx
call fcn.0101439a
leave
ret 4

Function at 0x101a7e0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x102c22c]
push edi
mov edi, dword [ebp + 8]
push edi
push 0x1006ad8
mov dword [ebp - 4], eax
call fcn.01015cf6
pop ecx
mov eax, edi
pop ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101a809
sub eax, edx
cmp eax, 0x104
jae 0x101a82f
lea eax, [ebp - 0x108]
push eax
push 0x1006ac8
push edi
call fcn.0101a764
test eax, eax
jne 0x101a836
xor eax, eax
jmp 0x101a8ba
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 1
lea eax, [ebp - 0x108]
push eax
push edi
call esi
test eax, eax
push 0x80
je 0x101a890
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x101a88b
push 4
push 0
lea eax, [ebp - 0x108]
push eax
call esi
xor eax, eax
inc eax
jmp 0x101a8b9
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
test esi, esi
jne 0x101a8b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x101a8b4
cmp eax, 3
jne 0x101a8b7
xor esi, esi
inc esi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.0101439a
leave
ret 4
Function at 0x101a92f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
push 0x1006b98
call fcn.010145b0
xor eax, eax
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], eax
xor edi, edi
inc edi
or dword [ebp + 8], edi
mov dword [ebp - 0x34], 0x10
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push 3
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_LdrFindResource_U]
mov dword [ebp - 0x24], eax
or dword [ebp - 4], 0xffffffff
jmp 0x101a98d
test eax, eax
jl 0x101aa24
mov dword [ebp - 4], edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_LdrAccessResource]
mov dword [ebp - 0x24], eax
or dword [ebp - 4], 0xffffffff
jmp 0x101a9c8
test eax, eax
jl 0x101aa24
mov dword [ebp - 4], 2
cmp dword [ebp - 0x28], 0x5c
jb 0x101aa08
push 0x1006b74
mov eax, dword [ebp - 0x1c]
add eax, 6
push eax
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x101aa08
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
xor edi, edi
or ecx, eax
or edx, edi
mov dword [esi], ecx
mov dword [esi + 4], edx
jmp 0x101aa20
push 0x1006b4c
jmp 0x101aa1b
call fcn.01015c42
or dword [ebp - 4], 0xffffffff
call fcn.010145eb
ret 8

Function at 0x101aa31
Capabilities:
Parse pe header

Disassembly:
push 0x1c
push 0x1006bc0
call fcn.010145b0
mov dword [ebp - 0x1c], 0x57
mov esi, dword [ebp + 8]
xor ecx, ecx
cmp esi, ecx
je 0x101aae9
mov edi, dword [ebp + 0x10]
cmp edi, ecx
je 0x101aae9
cmp dword [ebp + 0x14], ecx
je 0x101aae9
mov eax, dword [ebp + 0xc]
cmp eax, ecx
je 0x101aae9
lea ebx, [esi + 0x10040]
add eax, esi
mov dword [ebp - 0x24], eax
mov dword [edi], ecx
mov dword [edi + 4], ecx
cmp eax, ebx
jae 0x101aa82
mov ebx, eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], esi
lea eax, [esi + 0x40]
cmp eax, ebx
jae 0x101aae5
cmp dword [ebp - 0x1c], 0x57
jne 0x101aae5
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x2c], esi
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x20], eax
cmp word [esi], 0x5a4d
jne 0x101aad7
lea ecx, [eax + 0xf8]
cmp ecx, dword [ebp - 0x24]
jae 0x101aad7
cmp dword [eax], 0x4550
jne 0x101aad7
cmp word [eax + 4], 0x14c
jne 0x101aad7
push edi
push esi
call fcn.0101a92f
mov eax, dword [edi]
or eax, dword [edi + 4]
je 0x101aad7
and dword [ebp - 0x1c], 0
add esi, dword [ebp + 0x14]
xor ecx, ecx
jmp 0x101aa85
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
call fcn.010145eb
ret 0x10
Function at 0x101ab74
Capabilities:
Move file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x102c22c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0x18]
push esi
push 0x1006bcc
mov dword [ebp - 0x110], eax
call fcn.01015cf6
pop ecx
mov eax, esi
pop ecx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x101abb7
sub eax, ecx
cmp eax, 0x104
jae 0x101ac3b
lea eax, [ebp - 0x108]
push eax
push 0x1006ac8
push esi
call fcn.0101a764
test eax, eax
je 0x101ac3b
lea eax, [ebp - 0x108]
push eax
push ebx
call fcn.0100d6a3
test eax, eax
je 0x101ac3b
cmp dword [ebp - 0x10c], 0
je 0x101ac10
test edi, edi
je 0x101ac10
push dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
push dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x101ac29
push dword [eax]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 5
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x101ac3d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101439a
leave
ret 0x14
Function at 0x101ac51
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0x12c
push 0x1006c10
call fcn.010145b0
mov eax, dword [0x102c22c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x13c], eax
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x128], ebx
push esi
push 0x1006bf0
call fcn.01015cf6
pop ecx
pop ecx
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x101ac8e
sub eax, edi
cmp eax, 0x104
jae 0x101acca
lea eax, [ebp - 0x120]
push eax
push 0x1006ac8
push esi
call fcn.0101a764
test eax, eax
je 0x101acca
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x13c]
call fcn.0100d6a3
test eax, eax
jne 0x101acd1
xor eax, eax
jmp 0x101add2
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.01028484
cmp eax, ebx
je 0x101adbf
push ebx
push 0x80000080
push 4
push ebx
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x134], edi
cmp edi, 0xffffffff
je 0x101adae
push ebx
push ebx
push dword [ebp - 0x124]
push edi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call esi
cmp eax, dword [ebp - 0x124]
jne 0x101ada7
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x101ada7
push ebx
push ebx
push ebx
push edi
call esi
test eax, eax
jne 0x101ada7
mov dword [ebp - 4], ebx
mov dword [ebp - 0x130], ebx
push ebx
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x124]
push dword [ebp - 0x12c]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x101ad90
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp - 0x124]
jne 0x101ad90
mov dword [ebp - 0x128], 1
or dword [ebp - 4], 0xffffffff
jmp 0x101ada7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x12c]
push dword [ebp - 0x138]
call fcn.01015a8f
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x1c]
call fcn.0101439a
call fcn.010145eb
ret 8
Function at 0x101b4da
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x102c22c]
push ebx
push esi
push edi
mov esi, 0x1006f1c
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ebx
movsw word es:[edi], word [esi]
call fcn.01016e77
test eax, eax
je 0x101b513
mov dword [ebp - 0x14], 0x40
jmp 0x101b5ab
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push 0x1006f00
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101b5ab
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
mov edi, 0x1006ef4
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
call esi
test eax, eax
jne 0x101b5a2
push dword [ebp - 0x1c]
call sub.msvcrt.dll_malloc
pop ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push ebx
push edi
push dword [ebp - 0x18]
call esi
lea eax, [ebp - 0x10]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x101b575
sub eax, ecx
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x20]
call sub.ntdll.dll__strnicmp
add esp, 0xc
test eax, eax
jne 0x101b599
mov dword [ebp - 0x14], 0x62
push dword [ebp - 0x20]
call sub.msvcrt.dll_free
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
call fcn.0101439a
leave
ret

Function at 0x101b653
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push 8
pop ecx
xor eax, eax
push eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
push 0x20
lea eax, [ebp - 0x20]
push eax
push 3
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
pop edi
jne 0x101b6a4
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 0x1004b80
push 0x1006fd4
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0100d9ee
add esp, 0x18
test eax, eax
jge 0x101b6b1
push eax
push 0x1006f90
jmp 0x101b6aa
push eax
push 0x1006f40
call fcn.01015c8e
pop ecx
pop ecx
leave
ret 8
Function at 0x101c418
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x102c22c]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10c]
xor ebx, ebx
push eax
xor edi, edi
push ebx
jmp 0x101c49d
push dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
push 0x1001d04
push 0x104
push eax
inc edi
call fcn.0100d9ee
mov ecx, dword [0x106d39c]
add esp, 0x10
cmp ecx, 0xffffffff
je 0x101c4af
lea eax, [ebp - 0x108]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x101c470
push 0
lea edx, [ebp - 0x110]
push edx
sub eax, esi
push eax
lea eax, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x101c4be
lea eax, [ebp - 0x10c]
push eax
push edi
push dword [0x108f9b8]
call fcn.01020f02
test eax, eax
jne 0x101c43c
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.0101439a
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x1005980
call fcn.01015c5a
add esp, 0xc
jmp 0x101c4af
Function at 0x101d565
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0101a7e0
mov esi, eax
test esi, esi
jne 0x101d5d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x101d5d2
mov eax, dword [ebp + 0xc]
and dword [ebp - 0xc], esi
and dword [ebp - 8], esi
and dword [ebp - 4], esi
mov esi, dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 1
push edi
mov byte [ebp - 0x14], 1
mov byte [ebp - 0x13], 0
mov word [ebp - 0x12], 4
call esi
lea eax, [ebp - 0x14]
push eax
push 4
push edi
call esi
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call fcn.0101a7e0
mov esi, eax
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x101d835
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x102c22c]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0xfffa
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0xc]
mov esi, 0x106f8a0
push esi
xor edi, edi
push eax
push 0x106e400
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x42c], edi
call fcn.01015121
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push esi
push edi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call edi
push ebx
lea eax, [ebp - 0x414]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x424]
push 0
push 0
call edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, 0x80
push ebx
push esi
call edi
push esi
push dword [ebp - 0x420]
call fcn.0100d6a3
lea eax, [ebp - 0x20c]
push eax
call fcn.01016f00
test eax, eax
je 0x101d91d
cmp eax, 0x800b0100
je 0x101d8f8
push eax
push esi
push 0x1007bb8
jmp 0x101d949
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x2584
push 0x1007ba0
push 0x1007b50
call fcn.01015c5a
add esp, 0x14
push 0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01016f71
test eax, eax
jne 0x101d942
mov dword [ebp - 0x418], 1
jmp 0x101d951
push eax
push esi
push 0x1007b08
call fcn.01015c5a
add esp, 0xc
push ebx
push esi
call edi
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.01015d97
test eax, eax
je 0x101d97f
push dword [ebp - 0x41c]
push esi
call fcn.0101d565
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
pop edi
pop esi
pop ebx
call fcn.0101439a
leave
ret 8
Function at 0x101df99
Capabilities:
Write file on windows

Disassembly:
push 0x124
push 0x1007d30
call fcn.010145b0
mov eax, dword [0x102c22c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x12c], ebx
mov dword [0x108f9bc], eax
mov dword [0x106f768], ebx
mov ecx, dword [ebp + 0x14]
mov dword [0x102c918], ecx
or edi, 0xffffffff
cmp eax, edi
je 0x101e1a3
mov esi, 0x10078a4
push esi
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetLineCountA]
cmp eax, ebx
je 0x101e199
cmp eax, edi
je 0x101e199
cmp dword [0x106d39c], edi
je 0x101e088
cmp dword [ebp + 0xc], 1
jne 0x101e088
push esi
push 0x1007c64
push 0x103
lea eax, [ebp - 0x120]
push eax
call sub.ntdll.dll__snprintf
add esp, 0x10
mov ecx, dword [0x106d39c]
cmp ecx, edi
je 0x101e1a3
lea eax, [ebp - 0x120]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x101e03a
sub eax, esi
push ebx
lea edx, [ebp - 0x134]
push edx
push eax
lea eax, [ebp - 0x120]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x101e07e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x120]
push eax
push 0x1005980
call fcn.01015c5a
add esp, 0xc
jmp 0x101e1a3
call fcn.01016541
mov dword [0x106e504], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
cmp dword [ebp + 0xc], 1
je 0x101e0a3
cmp dword [ebp + 0xc], 3
jne 0x101e0ed
cmp dword [ebp + 0x10], 1
jne 0x101e0ed
lea eax, [ebp - 0x124]
push eax
call fcn.01018b3d
cmp dword [ebp - 0x124], ebx
je 0x101e0e3
push ebx
call fcn.01018cc2
mov dword [ebp - 0x128], eax
cmp eax, ebx
je 0x101e0ed
push ebx
push dword [ebp - 0x124]
push 0x1007d0c
call fcn.01015c5a
add esp, 0xc
jmp 0x101e0ed
mov dword [ebp - 0x128], 1
cmp dword [ebp - 0x128], ebx
jne 0x101e0fc
push 4
call fcn.010164b1
cmp dword [ebp + 0xc], 1
jne 0x101e107
call fcn.0101be36
cmp dword [ebp + 0xc], 3
jne 0x101e119
call fcn.01020e55
mov dword [0x102c2ac], eax
jmp 0x101e11f
mov dword [0x102c2ac], edi
push dword [ebp + 0xc]
call fcn.0101dc67
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x128], 1
jne 0x101e161
cmp dword [ebp - 0x124], ebx
je 0x101e161
push dword [ebp - 0x124]
call fcn.01018cc2
test eax, eax
je 0x101e168
push dword [ebp - 0x124]
push 0x1007cf4
call fcn.01015c5a
pop ecx
pop ecx
jmp 0x101e168
push 4
call fcn.010164e9
mov dword [ebp - 4], edi
jmp 0x101e1a3
mov dword [ebp - 0x12c], 1
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x1c]
call fcn.0101439a
call fcn.010145eb
ret 0x10
Function at 0x101ef4c
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x102c22c]
push ebx
push esi
push edi
mov edi, 0xfffa
push edi
mov esi, 0x107f8a0
push esi
push 0x1008418
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call fcn.01015121
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x102dda0], eax
je 0x101f0fd
push 3
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x101f0fd
push 0
call eax
test eax, eax
mov dword [0x102dda8], eax
je 0x101f0fd
cmp dword [0x103e7e4], 0
jne 0x101f0c8
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.0101d5df
test eax, eax
je 0x101f0b5
cmp dword [ebp - 0xc], 0x8740001
mov eax, 0x50000
jne 0x101efe0
cmp dword [ebp - 8], eax
je 0x101f00f
cmp dword [ebp - 0xc], 0x8930652
jne 0x101efee
cmp dword [ebp - 8], eax
je 0x101f00f
cmp dword [ebp - 8], eax
jb 0x101f005
ja 0x101effe
cmp dword [ebp - 0xc], 0x8740960
jb 0x101f005
push 1
jmp 0x101f095
push 0x10083d0
jmp 0x101f0ae
push edi
push esi
mov ebx, 0x10083c0
push ebx
push dword [ebp + 8]
call fcn.01015121
push edi
mov edi, 0x106f8a0
push edi
push ebx
push dword [ebp + 0xc]
call fcn.01015121
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call ebx
cmp eax, 0xffffffff
je 0x101f07c
cmp dword [ebp + 0x10], 0
je 0x101f07c
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x101f070
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1008390
call fcn.01015c5a
pop ecx
pop ecx
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call ebx
cmp eax, 0xffffffff
jne 0x101f093
push edi
call ebx
cmp eax, 0xffffffff
jne 0x101f093
push 0x1008350
jmp 0x101f0ae
push 0
push dword [0x102dda0]
call fcn.01019d3d
test eax, eax
mov dword [0x102ddac], eax
jne 0x101f0d1
push 0x1008338
call fcn.01015c5a
jmp 0x101f0c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100830c
call fcn.01015c5a
pop ecx
pop ecx
cmp dword [0x102ddac], 0
je 0x101f0dd
push 0x10082e0
call fcn.01015c5a
jmp 0x101f10f
push 0x10082b8
call fcn.01015c5a
pop ecx
push 5
push dword [0x102dda0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x102dda4], eax
jmp 0x101f110
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1008288
call fcn.01015c5a
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101439a
leave
ret 0xc