joyce8/EMBER2024-capa huggingface dataset:
Function at 0x103a496
Capabilities:
Copy file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
call fcn.0103586a
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x103a4cb
call esi
cmp eax, 0xb7
je 0x103a4cb
call esi
push eax
push edi
push 0x100e030
call fcn.01071b53
add esp, 0xc
xor ebx, ebx
test ebx, ebx
je 0x103a4f0
call esi
push eax
push edi
push dword [ebp + 8]
push 0x100dff0
call fcn.01071ac0
add esp, 0x10
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x103a530
inc ebx
cmp ebx, 5
jb 0x103a4cd
call esi
push eax
push edi
push dword [ebp + 8]
push 0x100dfa8
call fcn.01071ac0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
xor eax, eax
inc eax
jmp 0x103a529

Function at 0x103a535
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, esi
push edi
mov dword [ebp - 4], ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x103a54d
sub eax, ecx
lea eax, [eax + esi - 4]
cmp eax, esi
jbe 0x103a58a
mov eax, dword [eax]
or eax, 0x20202000
cmp eax, 0x6261632e
jne 0x103a58a
push ebx
push esi
call fcn.01073f21
test eax, eax
je 0x103a58a
mov edi, dword [ebp + 0xc]
push ebx
push edi
push esi
call fcn.0103a496
mov dword [ebp + 8], eax
jmp 0x103a655
push esi
call dword [sym.imp.msvcrt.dll__mbslwr]
pop ecx
push esi
call fcn.01042a48
cmp eax, ebx
mov dword [ebp - 8], eax
mov edi, esi
jne 0x103a5c5
cmp edi, ebx
je 0x103a5c5
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_strchr]
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x103a5c0
inc edi
push edi
call fcn.01042a48
mov dword [ebp - 8], eax
cmp dword [ebp - 8], ebx
je 0x103a5a1
mov edi, dword [ebp + 0xc]
mov dword [ebp + 8], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], 5
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push edi
push esi
call dword [sym.imp.UPDSPAPI.dll_UpdSpDecompressOrCopyFileA]
test eax, eax
mov dword [ebp - 4], eax
je 0x103a60b
call ebx
push eax
push edi
push 0x100e09c
mov dword [ebp - 4], eax
call fcn.01071ac0
add esp, 0xc
jmp 0x103a61d
push edi
push dword [ebp - 8]
call fcn.01034c3d
test eax, eax
jne 0x103a64c
call ebx
mov dword [ebp - 4], eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [ebp - 0xc]
jne 0x103a5d8
push edi
push 0x100e06c
call fcn.01071ac0
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.01037f35
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
mov dword [ebp + 8], 1
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x103a62d
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x103a642
Function at 0x103a668
Capabilities:
Copy file
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1099a38]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x218], eax
xor ebx, ebx
mov eax, esi
mov dword [edi], ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x103a69f
sub eax, ecx
cmp eax, 0x104
jb 0x103a6b6
xor eax, eax
jmp 0x103a85a
lea edx, [ebp - 0x20c]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x103a6c0
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_strrchr]
cmp eax, ebx
pop ecx
pop ecx
je 0x103a6e2
mov byte [eax + 1], bl
lea eax, [ebp - 0x108]
push eax
push ebx
push 0x100e230
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
cmp dword [ebp + 0x10], ebx
lea eax, [ebp - 0x108]
je 0x103a715
push eax
push dword [ebp - 0x214]
call fcn.0103a535
jmp 0x103a722
push ebx
push eax
push dword [ebp - 0x214]
call fcn.0103a496
cmp eax, ebx
mov dword [ebp - 0x210], eax
je 0x103a854
cmp dword [ebp + 0x1c], ebx
jne 0x103a77d
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call fcn.01077693
push ebx
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x108]
push eax
push esi
push dword [ebp - 0x214]
push 0x100e218
call fcn.01071ac0
add esp, 0x10
cmp dword [ebp - 0x210], ebx
je 0x103a7c7
cmp dword [ebp + 0x1c], ebx
jne 0x103a7e3
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x103a854
push 4
push ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x108]
push eax
push 0x100e1d8
call fcn.01071b53
pop ecx
pop ecx
jmp 0x103a854
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x108]
push eax
push 0x100e188
call fcn.01071aea
add esp, 0x10
push 5
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 0x210], eax
cmp eax, ebx
push esi
lea eax, [ebp - 0x108]
push eax
je 0x103a847
push 0x100e15c
mov dword [edi], 1
call fcn.01071b53
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
push dword [ebp - 0x218]
call fcn.0108c975
cmp eax, ebx
jge 0x103a854
push dword [ebp - 0x218]
lea eax, [ebp - 0x108]
push eax
push 0x100e108
jmp 0x103a84c
push 0x100e0d0
call fcn.01071aea
add esp, 0xc
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 0x18
Function at 0x103a869
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0x1c], 0
mov eax, dword [0x1099a38]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10c], eax
mov eax, 0x100b28c
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x118], ebx
mov ecx, 0x100e338
mov edx, eax
jne 0x103a8ab
mov edx, ecx
cmp dword [ebx], 0
je 0x103a8b2
mov ecx, eax
cmp dword [ebp + 0x10], 0
jne 0x103a8bd
mov eax, 0x100b284
push edx
push ecx
push dword [ebp - 0x10c]
push eax
push esi
push edi
push 0x100e2a0
call fcn.01071b53
add esp, 0x1c
push esi
call fcn.0103586a
test eax, eax
jne 0x103a8ff
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x103a8ff
call ebx
push eax
push esi
push 0x100e248
call fcn.01071b53
add esp, 0xc
cmp dword [ebp + 0x1c], 0
je 0x103a912
push esi
call fcn.0107268d
test eax, eax
jne 0x103a912
and dword [ebp + 0x1c], eax
xor eax, eax
cmp dword [ebp + 0x1c], eax
jne 0x103a939
cmp dword [ebp + 0x10], eax
je 0x103a927
push esi
push edi
call fcn.0103a535
jmp 0x103a92f
push eax
push esi
push edi
call fcn.0103a496
mov ebx, eax
test ebx, ebx
jne 0x103a9d5
push dword [ebp + 0x1c]
push dword [ebp - 0x118]
push dword [ebp - 0x10c]
push dword [ebp + 0x10]
push esi
push edi
call fcn.0103a668
mov ebx, eax
test ebx, ebx
jne 0x103a9d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x110], eax
push dword [0x109ab70]
lea eax, [ebp - 0x108]
push 0x104
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push edi
push 0x10bf7c0
push dword [0x10c3b64]
call fcn.010711ff
test eax, eax
mov dword [ebp - 0x114], eax
jne 0x103a9b5
push dword [0x109ab70]
push 0x10bd828
push dword [0x10c3b64]
call fcn.01039763
test eax, eax
je 0x103a964
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x114], 4
jne 0x103a9f3
lea edi, [ebp - 0x108]
jmp 0x103a912
push 0x80
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
push 0x100e234
call fcn.01071ac0
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.0106bc50
leave
ret 0x18
Function at 0x103aa04
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1099a38]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push ebx
mov dword [ebp - 0x10c], eax
call fcn.0103586a
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x103aa50
call esi
cmp eax, 0xb7
je 0x103aa50
call esi
push eax
push ebx
push 0x100e340
call fcn.01071b53
add esp, 0xc
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x103aa65
push ebx
push dword [ebp - 0x10c]
call fcn.0103a535
jmp 0x103aa72
push edi
push ebx
push dword [ebp - 0x10c]
call fcn.0103a496
cmp eax, edi
mov dword [ebp - 0x110], eax
jne 0x103aaf4
call esi
mov dword [ebp - 0x114], eax
push dword [0x109ab70]
lea eax, [ebp - 0x108]
push 0x104
push eax
push 2
call esi
push eax
push ebx
push dword [ebp - 0x10c]
push 0x10bf7c0
push dword [0x10c3b64]
call fcn.010711ff
mov edi, eax
test edi, edi
jne 0x103aad2
push dword [0x109ab70]
push 0x10bd828
push dword [0x10c3b64]
call fcn.01039763
test eax, eax
je 0x103aa84
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 4
jne 0x103ab00
lea eax, [ebp - 0x108]
mov dword [ebp - 0x10c], eax
jmp 0x103aa50
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x110]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 0xc
Function at 0x103e4b2
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push 4
push 0x1000
push 0x20000
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
cmp esi, ebx
jne 0x103e4e7
push 0x10107c0
call fcn.01071aad
xor eax, eax
jmp 0x103e5be
push edi
push 0x10107a4
push esi
mov dword [ebp - 4], esi
lea edi, [esi + 0x1f000]
call dword [sym.imp.msvcrt.dll_sprintf]
add dword [ebp - 4], eax
pop ecx
pop ecx
push ebx
push edi
lea eax, [ebp - 4]
push eax
call fcn.01083930
push edi
lea eax, [ebp - 4]
push eax
call fcn.01083532
cmp dword [ebp - 4], edi
jae 0x103e5a0
push ebx
push 0x80000080
push 3
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp + 8], edi
je 0x103e589
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
sub eax, esi
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x103e569
xor edi, edi
jmp 0x103e57e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push 0x1010768
call fcn.01071ac0
pop ecx
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x103e5a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push 0x101072c
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x103e5a3
push 0x7a
pop edi
push 0x8000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push edi
call fcn.01037f35
xor eax, eax
cmp edi, ebx
sete al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x103e5c4
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push 4
lea eax, [ebp - 8]
push eax
push 0x1010914
call fcn.01072cf1
cmp eax, 0xffffffff
je 0x103e6ee
mov eax, dword [ebp - 8]
test eax, eax
je 0x103e6ee
jge 0x103e610
push eax
push 0x10108d0
call fcn.01071ac0
pop ecx
pop ecx
push 0x57
call fcn.01037f35
xor eax, eax
jmp 0x103e6f1
xor ecx, ecx
inc ecx
cmp eax, ecx
mov dword [ebp - 4], ecx
jl 0x103e6ee
push ebx
push esi
push edi
mov edi, 0x10f6960
mov esi, 0x1106960
push dword [ebp - 4]
mov ebx, 0xfffa
push 0x10108c4
push ebx
push edi
mov byte [0x1106960], 0
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x10
push ebx
push esi
push edi
call fcn.01072cf1
cmp eax, 0xffffffff
jne 0x103e666
push edi
push 0x101089c
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x103e6dc
cmp byte [0x1106960], 0
jne 0x103e678
push esi
push edi
push 0x1010868
jmp 0x103e699
push 0x2c
push esi
call dword [sym.imp.msvcrt.dll_strchr]
test eax, eax
pop ecx
pop ecx
je 0x103e66f
lea ebx, [eax + 1]
mov byte [eax], 0
cmp byte [ebx], 0
jne 0x103e6a3
push esi
push edi
push 0x1010834
call fcn.01071ac0
add esp, 0xc
jmp 0x103e6dc
mov eax, ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x103e6a8
sub eax, ecx
inc eax
push eax
push ebx
push 1
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x103e6dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
push 0x1010800
call fcn.01071ac0
add esp, 0x10
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jle 0x103e62b
pop edi
pop esi
pop ebx
xor eax, eax
inc eax
leave
ret 4
Function at 0x103fe43
Capabilities:
Check if file exists
Get file attributes
Persist via windows service
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1099a38]
push esi
push 0xfffa
mov esi, 0x1106960
push esi
push 0x10bf342
push 0x10c64c0
mov dword [ebp - 4], eax
call fcn.01070fc9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x103fe8e
push 0x10114a0
call fcn.01071aad
xor eax, eax
jmp 0x103ff93
mov esi, dword [sym.imp.msvcrt.dll_sprintf]
push ebx
push edi
push 0x10bf23e
lea eax, [ebp - 0x20c]
push 0x1011468
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
xor ebx, ebx
push ebx
push 2
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
cmp edi, ebx
jne 0x103ff85
push 0x10bf342
lea eax, [ebp - 0x20c]
push 0x101144c
push eax
call esi
lea eax, [ebp - 0x20c]
add esp, 0xc
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x103fefd
sub eax, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
lea eax, [ebp - 0x20c]
push eax
push 2
push ebx
push 0x1011438
push dword [ebp - 0x210]
call esi
mov edi, eax
cmp edi, ebx
jne 0x103ff5c
push 4
lea eax, [ebp - 0x214]
push eax
push 4
push ebx
push 0x1011428
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 7
call esi
mov edi, eax
cmp edi, ebx
je 0x103ff69
push edi
push 0x10113e0
jmp 0x103ff62
push edi
push 0x1011398
call fcn.01071ac0
pop ecx
pop ecx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x103ff8f
push edi
call fcn.01037f35
mov eax, edi
jmp 0x103ff91
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0106bc50
leave
ret
Function at 0x10408ad
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x1099a38]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x18]
push 1
xor ebx, ebx
push eax
mov dword [ebp - 0x238], 0xc
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x220], ebx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
push 2
pop edi
je 0x104095e
push edi
push 0x100
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x104095e
push edi
lea eax, [ebp - 0x118]
push eax
call fcn.0104b1f9
test eax, eax
je 0x104095e
push 0x11
lea eax, [ebp - 0x118]
push eax
call fcn.0104b1f9
test eax, eax
je 0x104095e
push ebx
lea eax, [ebp - 0x118]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x104095e
lea eax, [ebp - 0x238]
mov dword [ebp - 0x220], eax
push dword [ebp - 0x220]
mov dword [0x10bf7a8], edi
push esi
call fcn.01073070
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push 0x2000000
push 3
push ebx
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x22c], eax
je 0x10409ce
push ebx
lea ecx, [ebp - 0x23c]
push ecx
push ebx
push ebx
push edi
lea ecx, [ebp - 0x228]
push ecx
push 0x9c040
push eax
mov dword [ebp - 0x228], 1
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call edi
cmp eax, 0xffffffff
je 0x1040a4c
test al, 0x10
je 0x1040a4c
cmp dword [0x109a030], ebx
jne 0x10409ef
call fcn.010398cc
jmp 0x1040a0b
cmp dword [0x10bcec4], ebx
jne 0x1040a0b
cmp dword [0x10bcec8], ebx
jne 0x1040a0b
push dword [ebp - 0x224]
push esi
call fcn.0107de96
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x100da14
push esi
call fcn.01070fc9
push dword [ebp - 0x220]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x21c]
push eax
call edi
cmp eax, 0xffffffff
je 0x1040a4c
test al, 0x10
je 0x1040a4c
xor eax, eax
inc eax
jmp 0x1040a5f
push 0x1011a98
call fcn.01071aad
push 0x52
call fcn.01037f35
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 8
Function at 0x10413b3
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1099a38]
and dword [ebp - 0x214], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, 0x104
push esi
lea ecx, [ebp - 0x20c]
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edi, 0x10bf342
push edi
push eax
call fcn.01070fc9
push esi
lea eax, [ebp - 0x108]
push eax
push edi
push 0x10c64c0
call fcn.01070fc9
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0x108]
push eax
call edi
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
test ecx, ecx
mov dword [ebp - 0x210], ecx
je 0x1041484
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0107c2b8
test eax, eax
je 0x1041477
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0107c2b8
test eax, eax
je 0x1041477
mov eax, dword [ebp - 0x218]
cmp eax, dword [ebp - 0x220]
ja 0x1041506
jb 0x1041477
mov eax, dword [ebp - 0x21c]
cmp eax, dword [ebp - 0x224]
ja 0x1041506
push ebx
lea eax, [ebp - 0x108]
push eax
call fcn.0107c243
push 0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
mov esi, 0x1116960
push esi
push 0xf062
push 0
mov byte [0x1116960], 0
mov byte [0x10f4480], 0
call fcn.010312a2
lea eax, [ebp - 0x108]
push eax
push esi
push 0x100ccc8
mov esi, 0x10f4480
push esi
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x10
push esi
call fcn.01071aad
lea eax, [ebp - 0x108]
push eax
call edi
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp - 0x210], ecx
cmp dword [ebp - 0x210], 0
pop edi
pop esi
pop ebx
je 0x104152b
call fcn.0103fe43
test eax, eax
mov dword [ebp - 0x214], eax
je 0x104152b
push 0x10123b0
call fcn.01071aad
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
call fcn.0106bc50
leave
ret 8
Function at 0x10427e5
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x1099a38]
and dword [ebp - 0x114], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
push esi
mov eax, ebx
push edi
mov dword [ebp - 0x118], 0x4b00409
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1042814
sub eax, esi
cmp eax, 0xc
jbe 0x1042838
lea esi, [ebx + eax - 0xc]
push 0xd
mov edi, 0x101357c
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x104290f
lea eax, [ebp - 0x128]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x1042997
push esi
call dword [sym.imp.msvcrt.dll_malloc]
cmp eax, edi
pop ecx
mov dword [ebp - 0x10c], eax
je 0x1042997
push eax
push esi
push dword [ebp - 0x128]
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x104298a
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x110]
push eax
push 0x1013560
push dword [ebp - 0x10c]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
push 4
pop ebx
jne 0x10428b6
lea eax, [ebp - 0x118]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x124], ebx
jmp 0x10428bc
mov eax, dword [ebp - 0x110]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x108]
push 0x1013534
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x104298a
mov esi, 0x104
cmp dword [ebp - 0x11c], esi
jbe 0x1042916
xor eax, eax
jmp 0x104299d
mov eax, dword [0x1099610]
cmp byte [eax], 0
jne 0x1042953
push esi
push 0x10c5e00
push 0xf065
push edi
call fcn.010312a2
push esi
push 0x10c5ce0
push 0xf066
push edi
call fcn.010312a2
push esi
push 0x10c5bc0
push 0xf067
push edi
call fcn.010312a2
cmp dword [0x1099610], edi
je 0x104298a
mov eax, 0x1099610
mov esi, eax
push dword [eax]
push dword [ebp - 0x120]
call dword [sym.imp.msvcrt.dll_strstr]
test eax, eax
pop ecx
pop ecx
jne 0x1042980
add esi, ebx
cmp dword [esi], edi
mov eax, esi
jne 0x1042962
jmp 0x104298a
mov dword [ebp - 0x114], 1
push dword [ebp - 0x10c]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 4
Function at 0x1042b90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1099a38]
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], eax
jne 0x1042c23
push 0x104
lea eax, [ebp - 0x108]
push eax
lea eax, [esi + 0x17c]
push eax
push 0x10c6040
call fcn.01070fc9
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.01072521
test eax, eax
je 0x1042bf1
cmp eax, 0xffffffff
je 0x1042bf1
or dword [esi + 0x10], 8
mov dword [esi + 0x28], eax
mov dword [esi + 0x18], 2
jmp 0x1042c23
cmp dword [esi + 0x1c], 0
mov dword [esi + 0x18], 1
jne 0x1042c23
lea eax, [ebp - 0x108]
push eax
call fcn.010711a2
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
inc ecx
mov dword [esi + 0x1c], ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0106bc50
leave
ret 4

Function at 0x1042c4f
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
jne 0x1042cef
push ebx
push edi
lea eax, [ebp - 0x24]
push eax
push 0
lea ebx, [esi + 0x78]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x1042c9e
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x30], eax
xor eax, eax
xor edi, edi
or eax, edx
or ecx, edi
mov dword [esi + 0x10], 2
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], ecx
jmp 0x1042ced
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
jb 0x1042cd2
cmp eax, 3
ja 0x1042cd2
xor eax, eax
inc eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
xor eax, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
jmp 0x1042ced
call edi
push eax
push ebx
push 0x10135b8
push 0x10135a8
push 0x101358c
call fcn.01071aff
add esp, 0x14
pop edi
pop ebx
mov eax, dword [esi + 0x10]
pop esi
leave
ret 4