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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x1099a38]
push ebx
push esi
push edi
push 0xb
pop ecx
mov esi, 0x1025980
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], eax
mov esi, 0x1026954
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x44]
push eax
push 0x20019
movsd dword es:[edi], dword [esi]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x40]
push eax
movsd dword es:[edi], dword [esi]
push SysStringLen
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10788e7
xor eax, eax
jmp 0x107898c
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x48]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x44]
mov dword [ebp - 0x48], ebx
call esi
cmp eax, ebx
je 0x107890e
cmp eax, 0xea
jne 0x107897c
push dword [ebp - 0x48]
call fcn.0107243e
mov edi, eax
cmp edi, ebx
je 0x107897a
lea eax, [ebp - 0x48]
push eax
push edi
lea eax, [ebp - 0x4c]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x44]
call esi
test eax, eax
jne 0x107897a
push edi
call sub.msvcrt.dll__strdup
push eax
call sub.msvcrt.dll__mbsupr
mov esi, eax
push 0x102694c
push esi
call sub.msvcrt.dll_strstr
add esp, 0x10
test eax, eax
je 0x107895e
push edi
call fcn.01072452
xor edi, edi
inc edi
jmp 0x107897c
push 0x1026944
push esi
call sub.msvcrt.dll_strstr
test eax, eax
pop ecx
pop ecx
je 0x107897a
push edi
call fcn.01072452
push 2
pop edi
jmp 0x107897c
xor edi, edi
cmp dword [ebp - 0x44], ebx
je 0x107898a
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret
Function at 0x1078ef9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1099a38]
push ebx
push esi
push edi
mov esi, 0x1026c50
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.010735d1
test eax, eax
je 0x1078f32
mov dword [ebp - 0x14], 0x40
jmp 0x1078fca
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push 0x1026c34
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1078fca
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, 0x1026c28
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
call esi
test eax, eax
jne 0x1078fc1
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 0x1078f94
sub eax, ecx
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x20]
call sub.msvcrt.dll__strnicmp
add esp, 0xc
test eax, eax
jne 0x1078fb8
mov dword [ebp - 0x14], 0x62
push dword [ebp - 0x20]
call fcn.0106bf39
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.0106bc50
leave
ret
Function at 0x10798a0
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 0x10798f1
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 0x1024308
push 0x1026e64
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01037486
add esp, 0x18
test eax, eax
jge 0x10798fe
push eax
push 0x1026e20
jmp 0x10798f7
push eax
push 0x1026dd0
call fcn.01071aea
pop ecx
pop ecx
leave
ret 8
Function at 0x107a6f2
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x1099a38]
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 0x107a777
push dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
push 0x1009b74
push 0x104
push eax
inc edi
call fcn.01037486
mov ecx, dword [0x10f4464]
add esp, 0x10
cmp ecx, 0xffffffff
je 0x107a789
lea eax, [ebp - 0x108]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x107a74a
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 0x107a798
lea eax, [ebp - 0x10c]
push eax
push edi
push dword [0x1116a78]
call fcn.01083b4f
test eax, eax
jne 0x107a716
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.0106bc50
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x10252e8
call fcn.01071ac0
add esp, 0xc
jmp 0x107a789
Function at 0x107b679
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1099a38]
and dword [ebp - 0x418], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [0x1116a7c], eax
call fcn.01072b59
push 0x10097cc
mov edi, 0x1026f64
push edi
mov dword [0x10f4468], eax
mov esi, 0x103
lea eax, [ebp - 0x108]
push esi
push eax
call sub.msvcrt.dll__snprintf
mov ecx, dword [0x10f4464]
add esp, 0x10
cmp ecx, 0xffffffff
je 0x107b8e2
lea eax, [ebp - 0x108]
push ebx
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x107b6e0
push 0
lea edx, [ebp - 0x41c]
push edx
sub eax, ebx
push eax
lea eax, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x107b725
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x10252e8
call fcn.01071ac0
add esp, 0xc
jmp 0x107b8e1
push 1
push 0x1025768
call fcn.0107b245
mov dword [ebp - 0x418], eax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x10097cc
call fcn.01074e2b
lea eax, [ebp - 0x20c]
push eax
push edi
lea eax, [ebp - 0x108]
push esi
push eax
call sub.msvcrt.dll__snprintf
mov ecx, dword [0x10f4464]
add esp, 0x10
cmp ecx, 0xffffffff
je 0x107b8e1
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov dword [ebp - 0x41c], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x107b784
sub eax, dword [ebp - 0x41c]
push 0
lea edx, [ebp - 0x41c]
push edx
push eax
lea eax, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x107b705
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call sub.msvcrt.dll_mbstowcs
add esp, 0xc
push 1
lea eax, [ebp - 0x414]
push eax
call fcn.0107b245
and dword [ebp - 0x418], eax
push 0x10097a4
push edi
lea eax, [ebp - 0x108]
push esi
push eax
call sub.msvcrt.dll__snprintf
mov ecx, dword [0x10f4464]
add esp, 0x10
cmp ecx, 0xffffffff
je 0x107b8e1
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov dword [ebp - 0x41c], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x107b810
sub eax, dword [ebp - 0x41c]
push 0
lea edx, [ebp - 0x41c]
push edx
push eax
lea eax, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x107b705
push 0
push 0x1025718
call fcn.0107b245
mov dword [ebp - 0x418], eax
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x10097a4
call fcn.01074e2b
lea eax, [ebp - 0x20c]
push eax
push edi
lea eax, [ebp - 0x108]
push esi
push eax
call sub.msvcrt.dll__snprintf
mov esi, dword [0x10f4464]
add esp, 0x10
cmp esi, 0xffffffff
je 0x107b8e1
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x107b88d
push 0
lea ecx, [ebp - 0x41c]
push ecx
sub eax, edx
push eax
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x107b705
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call sub.msvcrt.dll_mbstowcs
add esp, 0xc
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.0107b245
and dword [ebp - 0x418], eax
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
pop edi
pop esi
call fcn.0106bc50
leave
ret 4
Function at 0x107b94f
Capabilities:
Get common file path
Get file size
Move file
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x32c
mov eax, dword [0x1099a38]
or dword [ebp - 0x314], 0xffffffff
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x314]
push eax
push 0x20007
xor ebx, ebx
push ebx
push 0x100aa44
push SysStringLen
mov dword [ebp - 0x318], ebx
mov dword [ebp - 0x31c], 0x20000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x107b9a8
mov dword [0x10f5484], ebx
jmp 0x107bb05
push esi
lea eax, [ebp - 0x32c]
push eax
push 0x10f5484
lea eax, [ebp - 0x320]
push eax
push ebx
mov esi, 0x10259ec
push esi
push dword [ebp - 0x314]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x107b9dc
cmp dword [ebp - 0x320], 4
je 0x107b9e2
mov dword [0x10f5484], ebx
push 4
lea eax, [ebp - 0x31c]
push eax
push 4
push ebx
push esi
push dword [ebp - 0x314]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, 0x104
push esi
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x107bb04
push 0x1027874
lea eax, [ebp - 0x310]
push eax
push 0x1020a90
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.01037486
add esp, 0x14
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x107ba6a
mov dword [ebp - 0x318], 1
jmp 0x107bb04
lea eax, [ebp - 0x328]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
push esi
jne 0x107ba85
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x107bb04
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x324], ebx
jl 0x107bb04
jg 0x107baa1
cmp dword [ebp - 0x328], 0xfa000
jbe 0x107bb04
xor esi, esi
push esi
lea eax, [ebp - 0x108]
push eax
push 0x1027868
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.01037486
add esp, 0x14
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.01073f21
test eax, eax
je 0x107bade
inc esi
cmp esi, 0x3e8
jl 0x107baa3
xor esi, esi
cmp esi, 5
jge 0x107bb04
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
inc esi
cmp eax, ebx
mov dword [ebp - 0x318], eax
je 0x107bae0
pop esi
cmp dword [ebp - 0x314], 0xffffffff
pop ebx
je 0x107bb1b
push dword [ebp - 0x314]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x318]
call fcn.0106bc50
leave
ret
Function at 0x107c243
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.0107813b
mov esi, eax
test esi, esi
jne 0x107c2b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x107c2b0
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.0107813b
mov esi, eax
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x107c534
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x1099a38]
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, 0x10f6960
push esi
xor edi, edi
push eax
push 0x10f54c0
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.01070fc9
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.0103a535
lea eax, [ebp - 0x20c]
push eax
call fcn.01073650
test eax, eax
je 0x107c61c
cmp eax, 0x800b0100
je 0x107c5f7
push eax
push esi
push 0x1027bf0
jmp 0x107c648
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x2584
push 0x1027bd8
push 0x1027b88
call fcn.01071ac0
add esp, 0x14
push 0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.010736bc
test eax, eax
jne 0x107c641
mov dword [ebp - 0x418], 1
jmp 0x107c650
push eax
push esi
push 0x1027b40
call fcn.01071ac0
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.01071c4d
test eax, eax
je 0x107c67e
push dword [ebp - 0x41c]
push esi
call fcn.0107c243
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 8
Function at 0x107c899
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1099a38]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], ebx
call dword [sym.imp.UPDSPAPI.dll_UpdSpOpenInfFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x21c], eax
jne 0x107c8f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1027d6c
call fcn.01071ac0
add esp, 0xc
jmp 0x107ca66
push ebx
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1027d60
push 0x100d9dc
push dword [ebp - 0x21c]
push ebx
call dword [sym.imp.UPDSPAPI.dll_UpdSpGetLineTextA]
test eax, eax
jne 0x107c93c
push edi
push 0x1027d08
call fcn.01071ac0
mov dword [ebp - 0x218], 1
jmp 0x107ca64
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0xfffa
mov edi, 0x1106960
push edi
push 0x100a5dc
lea eax, [ebp - 0x108]
push eax
call fcn.01070fc9
mov dword [ebp - 0x210], ebx
mov ebx, 0x1000
mov esi, 0x10f5820
push dword [ebp - 0x210]
push 0x1027cfc
push dword [ebp - 0x214]
call fcn.0106bf51
add esp, 0xc
inc dword [ebp - 0x210]
push 0
push ebx
push esi
push dword [ebp - 0x214]
push 0x10f54c0
call fcn.01070fc9
push eax
call fcn.01073f21
test eax, eax
jne 0x107c976
push eax
push ebx
push esi
push dword [ebp - 0x214]
push edi
call fcn.01070fc9
push eax
call fcn.01073f21
test eax, eax
jne 0x107c976
push 0x5c
push dword [ebp - 0x220]
mov byte [0x1106960], al
call sub.msvcrt.dll_strrchr
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x210], eax
je 0x107ca0a
push 0xfffa
push dword [ebp - 0x220]
mov byte [eax], 0
push edi
call sub.msvcrt.dll_strncpy
mov eax, dword [ebp - 0x210]
add esp, 0xc
mov byte [eax], 0x5c
push ebx
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.01070fc9
push dword [ebp - 0x214]
push esi
push 0x1027ccc
call fcn.01071ac0
add esp, 0xc
push dword [ebp - 0x214]
push esi
call fcn.0107c534
test eax, eax
je 0x107ca53
push 0x1027c9c
call fcn.01071ac0
mov dword [ebp - 0x218], 1
jmp 0x107ca65
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1027c60
call fcn.01071ac0
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x21c], 0xffffffff
mov esi, eax
je 0x107ca83
push dword [ebp - 0x21c]
call dword [sym.imp.UPDSPAPI.dll_UpdSpCloseInfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 8
Function at 0x107ce85
Capabilities:
Write file on windows

Disassembly:
push 0x124
push 0x1027e20
call fcn.0106bf63
mov eax, dword [0x1099a38]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x12c], ebx
mov dword [0x1116a7c], eax
mov dword [0x10f6828], ebx
mov ecx, dword [ebp + 0x14]
mov dword [0x109abbc], ecx
or edi, 0xffffffff
cmp eax, edi
je 0x107d08f
mov esi, 0x1009808
push esi
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetLineCountA]
cmp eax, ebx
je 0x107d085
cmp eax, edi
je 0x107d085
cmp dword [0x10f4464], edi
je 0x107cf74
cmp dword [ebp + 0xc], 1
jne 0x107cf74
push esi
push 0x1009b38
push 0x103
lea eax, [ebp - 0x120]
push eax
call sub.msvcrt.dll__snprintf
add esp, 0x10
mov ecx, dword [0x10f4464]
cmp ecx, edi
je 0x107d08f
lea eax, [ebp - 0x120]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x107cf26
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 0x107cf6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x120]
push eax
push 0x10252e8
call fcn.01071ac0
add esp, 0xc
jmp 0x107d08f
call fcn.01072b59
mov dword [0x10f55c4], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
cmp dword [ebp + 0xc], 1
je 0x107cf8f
cmp dword [ebp + 0xc], 3
jne 0x107cfd9
cmp dword [ebp + 0x10], 1
jne 0x107cfd9
lea eax, [ebp - 0x124]
push eax
call fcn.010757eb
cmp dword [ebp - 0x124], ebx
je 0x107cfcf
push ebx
call fcn.01075961
mov dword [ebp - 0x128], eax
cmp eax, ebx
je 0x107cfd9
push ebx
push dword [ebp - 0x124]
push 0x1027e00
call fcn.01071ac0
add esp, 0xc
jmp 0x107cfd9
mov dword [ebp - 0x128], 1
cmp dword [ebp - 0x128], ebx
jne 0x107cfe8
push 4
call fcn.01072ac1
cmp dword [ebp + 0xc], 1
jne 0x107cff3
call fcn.0107a11a
cmp dword [ebp + 0xc], 3
jne 0x107d005
call fcn.0108398e
mov dword [0x1099aac], eax
jmp 0x107d00b
mov dword [0x1099aac], edi
push dword [ebp + 0xc]
call fcn.0107cb58
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x128], 1
jne 0x107d04d
cmp dword [ebp - 0x124], ebx
je 0x107d04d
push dword [ebp - 0x124]
call fcn.01075961
test eax, eax
je 0x107d054
push dword [ebp - 0x124]
push 0x1027de8
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x107d054
push 4
call fcn.01072af4
mov dword [ebp - 4], edi
jmp 0x107d08f
mov dword [ebp - 0x12c], 1
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x1c]
call fcn.0106bc50
call fcn.0106bf9e
ret 0x10
Function at 0x107da54
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 [0x1099a38]
push ebx
push esi
push edi
mov edi, 0xfffa
push edi
mov esi, 0x1106960
push esi
push 0x10282a0
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call fcn.01070fc9
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x10bd004], eax
je 0x107dc05
push 3
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x107dc05
push 0
call eax
test eax, eax
mov dword [0x10bd00c], eax
je 0x107dc05
cmp dword [0x109a030], 0
jne 0x107dbd0
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.0107c2b8
test eax, eax
je 0x107dbbd
cmp dword [ebp - 0xc], 0x8740001
mov eax, 0x50000
jne 0x107dae8
cmp dword [ebp - 8], eax
je 0x107db17
cmp dword [ebp - 0xc], 0x8930652
jne 0x107daf6
cmp dword [ebp - 8], eax
je 0x107db17
cmp dword [ebp - 8], eax
jb 0x107db0d
ja 0x107db06
cmp dword [ebp - 0xc], 0x8740960
jb 0x107db0d
push 1
jmp 0x107db9d
push 0x1028258
jmp 0x107dbb6
push edi
push esi
mov ebx, 0x1028248
push ebx
push dword [ebp + 8]
call fcn.01070fc9
push edi
mov edi, 0x10f6960
push edi
push ebx
push dword [ebp + 0xc]
call fcn.01070fc9
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call ebx
cmp eax, 0xffffffff
je 0x107db84
cmp dword [ebp + 0x10], 0
je 0x107db84
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 0x107db78
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1028218
call fcn.01071ac0
pop ecx
pop ecx
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call ebx
cmp eax, 0xffffffff
jne 0x107db9b
push edi
call ebx
cmp eax, 0xffffffff
jne 0x107db9b
push 0x10281d8
jmp 0x107dbb6
push 0
push dword [0x10bd004]
call fcn.01077272
test eax, eax
mov dword [0x10bd010], eax
jne 0x107dbd9
push 0x10281c4
call fcn.01071ac0
jmp 0x107dbcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1028198
call fcn.01071ac0
pop ecx
pop ecx
cmp dword [0x10bd010], 0
je 0x107dbe5
push 0x102816c
call fcn.01071ac0
jmp 0x107dc17
push 0x1028144
call fcn.01071ac0
pop ecx
push 5
push dword [0x10bd004]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10bd008], eax
jmp 0x107dc18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1028114
call fcn.01071ac0
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 0xc
Function at 0x107dc27
Capabilities:
Delete file
Set file attributes
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1099a38]
push ebx
push esi
xor ebx, ebx
cmp dword [0x10bceb4], ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], ebx
jne 0x107dc61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x10bceb4], eax
cmp dword [ebp + 8], ebx
mov esi, 0x80
je 0x107dc7a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x108]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x107dc84
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push esi
push 4
push ebx
mov ebx, 0xc0000000
jmp 0x107dcda
inc dword [ebp - 0x214]
cmp dword [ebp - 0x214], 9
ja 0x107de57
push dword [ebp - 0x214]
lea eax, [ebp - 0x108]
push dword [ebp - 0x210]
push 0x10282f0
push eax
call fcn.0106bf51
add esp, 0x10
push 0
push esi
push 4
push 0
push 1
lea eax, [ebp - 0x108]
push ebx
push eax
call edi
cmp eax, 0xffffffff
mov dword [0x10bceb0], eax
je 0x107dca0
xor esi, esi
xor ecx, ecx
mov dl, byte [ebp + ecx - 0x108]
mov byte [ecx + 0x10f6840], dl
inc ecx
test dl, dl
jne 0x107dcf4
push 2
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x107dd5c
lea eax, [ebp - 0x108]
push eax
call fcn.01070f95
cmp eax, esi
je 0x107dd5c
push eax
lea eax, [ebp - 0x20c]
push 0x1026f64
push eax
call fcn.0106bf51
add esp, 0xc
push esi
lea ecx, [ebp - 0x210]
push ecx
push eax
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20c]
push eax
push dword [0x10bceb0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x14
pop ecx
mov eax, 0x3d3d3d3d
lea edi, [ebp - 0x108]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x108]
push eax
push esi
mov byte [ebp - 0xb8], 0
call fcn.01071a91
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x21a]
push eax
movzx eax, word [ebp - 0x21c]
push eax
movzx eax, word [ebp - 0x21e]
push eax
movzx eax, word [ebp - 0x220]
push eax
movzx eax, word [ebp - 0x222]
push eax
movzx eax, word [ebp - 0x226]
push eax
movzx eax, word [ebp - 0x228]
push eax
push 0x10282c4
push esi
call fcn.01071a7b
add esp, 0x24
push 0x104
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x107de50
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
call fcn.0107c2b8
movzx eax, word [ebp - 0x218]
mov edx, dword [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x214]
mov ecx, eax
shrd edx, ecx, 0x10
shr ecx, 0x10
movzx ecx, dx
push ecx
movzx ecx, ax
shr eax, 0x10
push ecx
movzx eax, ax
push eax
lea eax, [ebp - 0x108]
push eax
push 0x10282a8
push esi
mov dword [ebp - 0x210], edx
call fcn.01071a7b
add esp, 0x1c
mov eax, dword [0x10bceb0]
jmp 0x107de60
and dword [0x10bceb0], 0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 8