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

Disassembly:
push 0x23c
mov eax, 0x10037e3e
call fcn.1002ceea
mov esi, edx
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x248], eax
xor eax, eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x240], eax
mov ebx, 0x100a93f8
mov byte [ebp - 4], 1
push ebx
lea ecx, [ebp - 0x238]
call fcn.1003a983
push ebx
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 2
call fcn.1003a983
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x244]
mov eax, dword [edi]
mov ebx, dword [esi*4 + 0x10001c30]
and dword [ebp - 0x230], 0
push ecx
mov esi, dword [eax + 0x48]
mov ecx, esi
push edi
call dword [0x100aa3f8]
call esi
mov edi, eax
test edi, edi
js 0x1002fc24
mov eax, dword [ebp - 0x244]
lea ecx, [ebp - 0x240]
push ecx
push 2
push eax
mov esi, dword [eax]
mov ecx, dword [esi + 0x1c]
call dword [0x100aa3f8]
call dword [esi + 0x1c]
mov edi, eax
test edi, edi
js 0x1002fc24
mov ecx, dword [ebp - 0x240]
lea eax, [ebp - 0x238]
push eax
mov edx, 0x10009154
call fcn.100790a3
mov edi, eax
test edi, edi
js 0x1002fc24
mov esi, dword [ebp - 0x238]
lea eax, [ebp - 0x23c]
push eax
mov edx, ebx
mov ecx, esi
call fcn.100790a3
mov edi, eax
test edi, edi
js 0x1002fc2a
xor ebx, ebx
lea eax, [ebp - 0x230]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [ebp - 0x23c]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
jle 0x1002fb53
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x1002fc2a
and dword [ebp - 0x234], ebx
xor eax, eax
mov word [ebp - 0x24], ax
cmp ebx, 0xffffffff
je 0x1002fc1d
push ebx
push 0x10009178
lea eax, [ebp - 0x24]
push 0xa
push eax
call fcn.100769b2
mov edi, eax
add esp, 0x10
test edi, edi
js 0x1002fc2a
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0x208
push eax
lea eax, [ebp - 0x22c]
xor edi, edi
push eax
push edi
push edi
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jle 0x1002fbc4
movzx eax, ax
or eax, 0x80070000
cmp eax, 0x80070002
je 0x1002fbd4
inc ebx
mov dword [ebp - 0x234], edi
jmp 0x1002fb5f
mov edi, dword [ebp - 0x248]
xor ebx, ebx
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1002fbe1
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
jle 0x1002fc2a
movzx edi, di
or edi, 0x80070000
jmp 0x1002fc2a
mov edi, 0x80070216
jmp 0x1002fc2a
mov esi, dword [ebp - 0x238]
cmp dword [ebp - 0x230], 0
je 0x1002fc3f
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x23c]
lea ecx, [ecx - 0x10]
call fcn.1003c869
lea ecx, [esi - 0x10]
call fcn.1003c869
push dword [ebp - 0x240]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x244]
call fcn.1002e70c
mov eax, edi
call fcn.1002ce99
ret 4
Function at 0x1002ffbf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], 0x208
xor esi, esi
mov dword [ebp - 4], esi
test edi, edi
jne 0x1002ffde
xor eax, eax
jmp 0x10030023
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0x10009220
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10030021
lea eax, [ebp - 8]
push eax
push edi
push esi
push esi
push 0x1000924c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10030018
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x10030027
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100a8ba4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.1002ffbf
test eax, eax
jne 0x1003007c
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x10009274
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x10030087
lea ecx, [ebp - 0x20c]
call fcn.10030093
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002c750
leave
ret
Function at 0x10030637
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov dword [esi], 0x10001874
mov dword [esi + 4], 0x10001888
call fcn.100306a3
cmp dword [esi + 0xc], 0
je 0x1003066c
push dword [esi + 0xc]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
and dword [esi + 0xc], 0
mov eax, 0x10004710
mov dword [esi + 4], eax
mov dword [esi], eax
pop esi
ret

Function at 0x100308c7
Capabilities:
Access peb ldr_data
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x100a8ba4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
call fcn.100306a3
push esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x24
xor ecx, ecx
mov dword [ebp - 0x40], 0x18
push 5
mov dword [ebp - 0x3c], ecx
lea ebx, [edi + 0x18]
push ebx
mov dword [ebp - 0x30], ecx
lea eax, [ebp - 0xc]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x40]
push ecx
mov dword [ebp - 0x38], eax
lea eax, [edi + 8]
push 0x100001
push eax
mov dword [ebp - 0x34], 0x40
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov esi, eax
test esi, esi
js 0x1003096d
push 5
push 0x18
lea eax, [ebp - 0x28]
push eax
push ebx
push dword [edi + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov esi, eax
test esi, esi
js 0x1003096d
mov eax, dword [ebp - 0x20]
push eax
mov dword [edi + 0x10], eax
mov eax, dword fs:[0x30]
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x1003096d
mov esi, 0xc0000017
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002c750
leave
ret 8
Function at 0x10039320
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x100a8ba4]
xor eax, esp
mov dword [esp + 0x128], eax
mov eax, dword [0x100a7010]
or eax, dword [0x100a7014]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0xc], edi
jne 0x10039483
xor edi, edi
cmp byte [0x100a92a0], al
jne 0x1003941f
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100393a2
cmp dword [esp + 0x1c], 6
setb al
mov byte [0x100a9294], al
ja 0x1003939b
jne 0x10039397
cmp dword [esp + 0x20], 1
ja 0x1003939b
xor edi, edi
jmp 0x1003939e
xor edi, edi
inc edi
test al, al
jne 0x10039418
push 0x10005670
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x100393c8
test edi, edi
je 0x10039411
push 0x10005690
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x10039411
push 0x100056e0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100a929c], eax
test eax, eax
je 0x10039411
push 0x100056ec
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [section..data], eax
test eax, eax
je 0x10039407
push 0x100056fc
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100a9290], eax
test eax, eax
jne 0x10039418
mov dword [section..data], 0x1002d180
mov byte [0x100a9294], 1
mov byte [0x100a92a0], 1
cmp byte [0x100a9294], 0
mov ecx, 0x100a7010
push ecx
jne 0x1003944b
mov esi, dword [section..data]
push ecx
push 0x100386b0
push 0x1000b8c0
mov ecx, esi
call dword [0x100aa3f8]
call esi
jmp 0x1003947f
and dword [esp + 0x18], 0
mov eax, ecx
push 0
cdq
push 0
mov dword [0x100a7010], eax
lea eax, [esp + 0x1c]
push eax
push 1
mov dword [0x100a7014], edx
mov edx, 0x1000b8c0
push edx
push ecx
push 0x10038550
mov dword [esp + 0x30], edx
call dword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
mov edi, dword [esp + 0xc]
test byte [0x100a9440], 1
je 0x1003949b
push 0x1000b760
mov edx, 0x1000b440
call fcn.10039983
push edi
push ebx
push dword [ebp + 8]
call fcn.1003e9d0
test byte [0x100a9440], 1
mov esi, eax
je 0x100394bf
push 0x1000b760
mov edx, 0x1000b960
call fcn.10039983
mov ecx, dword [esp + 0x134]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002c750
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1003d041
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1003d099
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1003d099
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x1003d08b
cmp esi, ecx
jae 0x1003d099
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x1003d079
cmp esi, ecx
jae 0x1003d099
cmp word [esi], 0
je 0x1003d099
mov eax, esi
jmp 0x1003d09b
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x10073540
Capabilities:
Print debug messages

Disassembly:
push 0xc
mov eax, 0x10037806
call fcn.1002cf20
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
mov esi, 0x100a93f8
push esi
call fcn.1003a983
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 1
push eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.1003b605
mov ecx, dword [0x100a9458]
mov edi, dword [ebp - 0x14]
test ecx, ecx
je 0x10073587
push edi
push dword [ebp + 8]
call fcn.10071049
push esi
lea ecx, [ebp - 0x18]
call fcn.1003a983
push edi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push 0x100263a0
push eax
call fcn.1003b5ef
mov esi, dword [ebp - 0x18]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esi - 0x10]
call fcn.1003c869
lea ecx, [edi - 0x10]
call fcn.1003c869
jmp 0x100735d3
call fcn.1002ce85
ret
Function at 0x1007675f
Capabilities:
Parse pe header
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x100a8ba4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x148], esi
push edi
mov edi, edx
test ecx, ecx
je 0x10076953
test edi, edi
je 0x10076953
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x144], eax
cmp eax, 0xffffffff
jne 0x100767d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1007694f
movzx esi, si
or esi, 0x80070000
jmp 0x1007694f
push esi
lea ecx, [ebp - 0x148]
push ecx
push 0x40
lea ecx, [ebp - 0x48]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10076808
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10076943
movzx esi, si
or esi, 0x80070000
jmp 0x10076943
mov eax, 0x5a4d
cmp word [ebp - 0x48], ax
jne case.default.0x100768f7
push esi
push esi
push dword [ebp - 0xc]
xor ebx, ebx
push dword [ebp - 0x144]
inc ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x100767ea
push esi
lea eax, [ebp - 0x148]
push eax
push 0xf8
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x144]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100767ea
cmp dword [ebp - 0x140], 0x4550
push 5
pop edx
jne 0x100768ef
movzx eax, word [ebp - 0xe4]
sub eax, edx
je 0x100768ed
dec eax
sub eax, ebx
je 0x100768e9
movzx eax, word [ebp - 0x13c]
mov ecx, 0x1f0
cmp eax, ecx
ja 0x100768b9
je 0x100768b5
sub eax, 0x14c
je 0x100768b0
sub eax, 0x16
je 0x100768ac
sub eax, 4
je 0x100768ac
sub eax, 0x1e
je 0x100768a8
sub eax, 0x40
jne 0x100768d5
push 0xd
jmp 0x100768b2
push 8
jmp 0x100768b2
push 7
jmp 0x100768b2
push 6
pop ebx
jmp 0x100768ef
push 9
jmp 0x100768b2
cmp eax, 0x200
je 0x100768e5
cmp eax, 0x284
je 0x100768e1
cmp eax, 0x8664
je 0x100768dd
cmp eax, 0xaa64
je 0x100768d9
mov ebx, esi
jmp 0x100768ef
push 0xe
jmp 0x100768b2
push 0xc
jmp 0x100768b2
push 0xa
jmp 0x100768b2
push 0xb
jmp 0x100768b2
push 4
jmp 0x100768b2
mov ebx, edx
add ebx, 0xfffffffa
cmp ebx, 8
ja case.default.0x100768f7
jmp dword [ebx*4 + 0x10076967]
mov dword [edi], 2
jmp 0x10076943
mov dword [edi], 9
jmp 0x10076943
mov dword [edi], edx
jmp 0x10076943
mov dword [edi], 0xc
jmp 0x10076943
mov dword [edi], 7
jmp 0x10076943
mov dword [edi], 6
jmp 0x10076943
mov dword [edi], esi
jmp 0x10076943
mov dword [edi], 1
jmp 0x10076943
mov dword [edi], 3
jmp 0x10076943
mov esi, 0x80070057
push dword [ebp - 0x144]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x10076958
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002c750
leave
ret
Function at 0x10076a92
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
and dword [esp], 0
push ebx
push esi
xor esi, esi
mov ebx, edx
push edi
test ecx, ecx
je 0x10076b42
test ebx, ebx
je 0x10076b42
xor edx, edx
call fcn.10077c79
mov edi, eax
test edi, edi
je 0x10076afe
xor edx, edx
mov ecx, ebx
call fcn.10077c79
mov esi, eax
test esi, esi
je 0x10076afe
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10076ae7
xor edx, edx
mov ecx, esi
call fcn.10076b55
push dword [ebp + 8]
mov edx, esi
push ecx
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
call fcn.1007709e
mov ebx, eax
jmp 0x10076b02
mov ebx, dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
test edi, edi
je 0x10076b20
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
je 0x10076b34
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
jmp 0x10076b4c
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10076f43
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push edi
xor edi, edi
test ecx, ecx
je 0x10076faf
xor eax, eax
cmp ax, word [ecx]
je 0x10076faf
push ebx
xor edx, edx
call fcn.10077c79
mov ebx, eax
test ebx, ebx
je 0x10076faa
push esi
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10076f77
test al, 0x10
je 0x10076f77
inc edi
jmp 0x10076f92
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x10076f8a
mov esi, 0x10b
cmp esi, 2
jne 0x10076f92
push 3
pop esi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebx
mov eax, edi
pop edi
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
ret

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

Disassembly:
mov edi, edi
push ebx
xor ebx, ebx
test ecx, ecx
je 0x10077026
xor eax, eax
cmp ax, word [ecx]
je 0x10077026
push esi
push edi
xor edx, edx
call fcn.10077c79
mov edi, eax
test edi, edi
je 0x10077011
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10076ff7
and esi, 0x10
sete bl
neg esi
sbb esi, esi
and esi, 2
jmp 0x10076fff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10077019
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
ret
Function at 0x1007709e
Capabilities:
Copy file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, ecx
xor edi, edi
test dword [ebp + 0x14], 0xffffffe0
mov ebx, edx
mov dword [ebp - 0xc], eax
je 0x100770ca
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10077228
mov esi, dword [ebp + 0x14]
and esi, 1
test dword [ebp + 0x14], 8
je 0x100770df
or esi, 0x1000
xor edx, edx
call fcn.10077c79
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10077226
xor edx, edx
mov ecx, ebx
call fcn.10077c79
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100771fd
and dword [ebp - 4], edi
and dword [ebp - 8], 0
push esi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
mov edi, eax
test edi, edi
jne 0x10077180
test dword [ebp + 0x14], 2
je 0x1007717c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
inc ecx
mov dword [ebp - 0x10], eax
push edx
mov edx, eax
mov dword [ebp - 4], ecx
call fcn.10077808
test eax, eax
je 0x1007717c
mov edi, dword [ebp - 8]
push edi
push dword [ebp - 0x10]
push ebx
push dword [ebp - 0xc]
push 0x10027078
push 0x4000000
push 0x100a9380
call fcn.10077032
add esp, 0x1c
test edi, edi
je 0x10077108
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10077108
test edi, edi
je 0x100771fd
test dword [ebp + 0x14], 4
je 0x100771fd
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, eax
test edi, edi
jne 0x100771fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x100771aa
push 0x1f
pop esi
push esi
push ebx
push 0x10027110
push 0x2000000
push 0x100a9380
call fcn.10077032
add esp, 0x14
xor edx, edx
mov ecx, ebx
call fcn.10076b55
test eax, eax
jne 0x100771f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100771dd
push 0x1f
pop eax
push eax
push ebx
push 0x100271b0
push 0x2000000
push 0x100a9380
call fcn.10077032
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10077226
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1007771b
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov ebx, ecx
xor esi, esi
push edi
test ebx, ebx
je 0x100777f9
xor eax, eax
cmp ax, word [ebx]
je 0x100777f9
xor edx, edx
call fcn.10077c79
mov edi, eax
test edi, edi
je 0x100777b6
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1007777d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
push 0x10027258
push 0x3000000
push 0x100a9380
call fcn.10077032
add esp, 0x14
xor edx, edx
mov ecx, edi
call fcn.10076b55
mov ebx, eax
test ebx, ebx
jne 0x100777da
test esi, esi
jne 0x10077798
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x100272e0
push 0x3000000
push 0x100a9380
call fcn.10077032
jmp 0x100777d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
push 0x10027360
push 0x3000000
push 0x100a9380
call fcn.10077032
mov ebx, dword [ebp - 4]
add esp, 0x14
test edi, edi
je 0x100777ee
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
jmp 0x10077803
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100778c2
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor eax, eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
push edi
test esi, esi
je 0x10077a44
cmp ax, word [esi]
je 0x10077a44
lea edx, [ebp - 4]
call fcn.10077c79
mov ebx, eax
test ebx, ebx
je 0x10077a30
xor eax, eax
lea edx, [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.10077b8e
test eax, eax
js 0x100779f2
cmp dword [ebp - 8], 1
push 0x5c
pop ecx
jne 0x10077992
mov edx, dword [ebp - 0xc]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x14]
jne 0x10077930
mov eax, dword [ebp - 4]
sub ecx, esi
sar ecx, 1
lea esi, [eax + ecx*2]
test edx, edx
je 0x1007795b
push edx
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x5c
pop ecx
xor edi, edi
push ecx
push esi
call sub.msvcrt.dll_wcschr
pop ecx
mov esi, eax
pop ecx
mov ecx, ebx
test esi, esi
je 0x100779c0
xor eax, eax
mov word [esi], ax
call fcn.10076f43
test eax, eax
jne 0x10077987
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x5c
pop ecx
mov word [esi], cx
add esi, 2
jmp 0x10077960
mov esi, dword [ebp - 4]
movzx eax, word [esi]
cmp eax, 0x61
jb 0x100779a2
cmp eax, 0x7a
jbe 0x100779ac
cmp eax, 0x41
jb 0x1007795e
cmp eax, 0x5a
ja 0x1007795e
push 0x3a
pop eax
cmp ax, word [esi + 2]
jne 0x1007795e
cmp cx, word [esi + 4]
jne 0x1007795e
add esi, 8
jmp 0x1007795e
call fcn.10076f43
xor esi, esi
inc esi
cmp eax, esi
je 0x100779ed
xor eax, eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, esi
je 0x100779ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push dword [ebp - 0x1c]
push 0x10008ff8
jmp 0x10077a0b
mov dword [ebp - 0x10], esi
jmp 0x10077a1d
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push esi
push 0x10009058
push 0x3000000
push 0x100a9380
call fcn.10077032
add esp, 0x14
push ebx
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10077a38
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x10]
jmp 0x10077a4e
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret