joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10047830
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1009f7d1
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100c60c8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
xor esi, esi
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], esi
mov word [edi + 4], si
mov dword [esp + 0x14], esi
lea eax, [edi + 0x30]
push eax
call fcn.10047780
mov byte [esp + 0x14], 1
lea ecx, [edi + 0x80]
push ecx
call fcn.100534d0
mov byte [esp + 0x14], 2
mov dword [edi + 0x8c], esi
mov byte [esp + 0x14], 3
call fcn.100478c0
mov dword [esp + 0x14], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x10047a30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100a19d2
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100c60c8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
xor esi, esi
mov dword [edi + 0x1c], 7
mov dword [edi + 0x18], esi
mov word [edi + 8], si
mov dword [esp + 0x14], esi
lea eax, [edi + 0x24]
push eax
call fcn.100534d0
mov byte [esp + 0x14], 1
lea ecx, [edi + 0x30]
push ecx
call fcn.10047780
mov byte [esp + 0x14], 2
mov dword [edi + 0x84], esi
mov byte [esp + 0x14], 3
call fcn.10047ac0
mov dword [esp + 0x14], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x10057360
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1009a949
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100c60c8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor edi, edi
mov eax, 7
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], edi
mov word [esi + 4], di
mov dword [esp + 0x14], edi
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], edi
mov word [esi + 0x20], di
mov byte [esp + 0x14], 1
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], edi
mov word [esi + 0x3c], di
mov byte [esp + 0x14], 2
call fcn.10055f50
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edi
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x10068c80
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x100c60c8]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
mov dword [esp + 0xc], 0x114
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10068cea
mov eax, dword [esp + 4]
cmp eax, 5
jae 0x10068cd3
cmp eax, 4
jne 0x10068cea
cmp dword [esp + 8], 0x5a
jb 0x10068cea
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.1009176c
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
mov eax, 1
call fcn.1009176c
add esp, 0x118
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x100a30ba
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x100c60c8]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
mov eax, dword [0x100c60c8]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
push 2
push 0x100ad31c
xor edx, edx
mov eax, esi
call fcn.100433d0
cmp eax, 0xffffffff
jne 0x10069468
cmp dword [esi + 0x18], 8
jb 0x10069452
mov esi, dword [esi + 4]
jmp 0x10069455
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x1006949c
lea edx, [esp + 0xc]
push edx
call fcn.10072630
mov eax, edx
push eax
push esi
mov dword [esp + 0x68], 0
call fcn.10072980
add esp, 8
lea ecx, [esp + 0xc]
push ecx
mov bl, al
mov dword [esp + 0x64], 0xffffffff
call fcn.100726a0
mov al, bl
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.1009176c
add esp, 0x58
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x1009c778
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100c60c8]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x100c60c8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor esi, esi
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], esi
mov word [esp + 0x14], si
call fcn.100076e0
push 0x24
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], esi
call fcn.1006a280
mov eax, dword [esp + 0x10]
add esp, 4
cmp dword [esp + 0x20], 8
jae 0x100698d3
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [esp + 0x30], 0xffffffff
je 0x100698ff
cmp dword [esp + 0x20], 8
jb 0x100698fb
mov eax, dword [esp + 0xc]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
jmp 0x10069915
cmp dword [esp + 0x20], 8
jb 0x10069913
mov ecx, dword [esp + 0xc]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
mov word [esp + 0xc], si
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 7
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1009176c
add esp, 0x2c
ret
Function at 0x10069950
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1009c778
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100c60c8]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x100c60c8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor esi, esi
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], esi
mov word [esp + 0x14], si
call fcn.100076e0
push 0x24
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], esi
call fcn.1006a280
mov eax, dword [esp + 0x10]
add esp, 4
cmp dword [esp + 0x20], 8
jae 0x100699c3
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100699f3
test al, 0x10
jne 0x100699f3
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x100699ef
mov eax, dword [esp + 0xc]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
jmp 0x10069a11
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x10069a0f
mov ecx, dword [esp + 0xc]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
mov word [esp + 0xc], si
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 7
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1009176c
add esp, 0x2c
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x1009c778
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100c60c8]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x100c60c8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor esi, esi
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], esi
mov word [esp + 0x14], si
call fcn.100076e0
push 0x24
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], esi
call fcn.1006a280
mov eax, dword [esp + 0x10]
add esp, 4
cmp dword [esp + 0x20], 8
jae 0x10069ab3
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10069ae3
test al, 0x10
je 0x10069ae3
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x10069adf
mov eax, dword [esp + 0xc]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
jmp 0x10069b01
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x10069aff
mov ecx, dword [esp + 0xc]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
mov word [esp + 0xc], si
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 7
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1009176c
add esp, 0x2c
ret
Function at 0x10069c10
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x1009f238
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100c60c8]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
mov eax, dword [0x100c60c8]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [edi + 0x14]
xor ebp, ebp
xor esi, esi
cmp eax, ebp
mov dword [esp + 0x10], eax
jbe 0x10069d2b
lea ebx, [edi + 4]
cmp esi, dword [edi + 0x14]
jbe 0x10069c62
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [edi + 0x18], 8
jb 0x10069c6c
mov eax, dword [ebx]
jmp 0x10069c6e
mov eax, ebx
cmp word [eax + esi*2], 0x2f
je 0x10069c97
cmp esi, dword [edi + 0x14]
jbe 0x10069c80
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [edi + 0x18], 8
jb 0x10069c8a
mov eax, dword [ebx]
jmp 0x10069c8c
mov eax, ebx
cmp word [eax + esi*2], 0x5c
jne 0x10069d1e
push esi
lea eax, [esp + 0x18]
push eax
push edi
xor ecx, ecx
call fcn.100102e0
mov dword [esp + 0x3c], ebp
cmp dword [esp + 0x28], ebp
je 0x10069cf1
lea edx, [esp + 0x14]
push edx
call fcn.10069860
add esp, 4
test al, al
jne 0x10069cf1
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x10069ccf
lea eax, [esp + 0x18]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10069cf1
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x10069d0d
mov eax, dword [esp + 0x18]
push eax
jmp 0x10069d05
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x10069d0d
mov ecx, dword [esp + 0x18]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
add esi, 1
cmp esi, dword [esp + 0x10]
jb 0x10069c57
push edi
call fcn.10069860
add esp, 4
test al, al
jne 0x10069d4e
cmp dword [edi + 0x18], 8
jb 0x10069d43
mov eax, dword [edi + 4]
jmp 0x10069d46
lea eax, [edi + 4]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call fcn.10069a40
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1009176c
add esp, 0x30
ret
Function at 0x1006a1a0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x1009f211
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x100c60c8]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
xor ebx, ebx
mov dword [esp + 0xc], ebx
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.100076e0
mov eax, 0x100ad460
mov dword [esp + 0x34], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1006a200
sub eax, edx
sar eax, 1
push eax
push 0x100ad460
lea ecx, [esp + 0x18]
call fcn.10011bd0
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push ebx
mov ecx, esi
mov word [esi + 4], bx
call fcn.100076e0
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
mov dword [esp + 0xc], 1
jb 0x1006a256
mov eax, dword [esp + 0x14]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x1006bb50
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esi + 4]
test eax, eax
je 0x1006bb69
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov byte [esi + 9], 0
cmp dword [edi + 0x14], 0
je 0x1006bb7f
cmp dword [edi + 0x18], 8
jb 0x1006bb7a
mov eax, dword [edi + 4]
jmp 0x1006bb81
lea eax, [edi + 4]
jmp 0x1006bb81
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [esi + 4], eax
je 0x1006bbb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 2
cmp dword [esi + 4], 0
mov dword [esi], eax
setne al
ret
cmp dword [esi + 4], 0
mov dword [esi], 1
setne al
ret
Function at 0x1006c400
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x100a3ed8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c60c8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 8]
xor ebx, ebx
cmp edi, ebx
je 0x1006c471
add edi, 0x20
cmp edi, ebx
mov dword [esp + 0x14], edi
je 0x1006c448
mov eax, dword [edi]
cmp eax, ebx
je 0x1006c448
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x20], ebx
mov eax, dword [esi + 8]
cmp dword [eax + 4], ebx
jne 0x1006c487
cmp edi, ebx
mov dword [esp + 0x20], 0xffffffff
je 0x1006c471
mov edi, dword [edi]
cmp edi, ebx
je 0x1006c46d
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x14], ebx
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 1
lea ebx, [esi + 4]
push ebx
call ebp
mov ecx, dword [esi + 8]
add ecx, 0xc
push ecx
push 4
push esi
push 0x1006bf50
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
mov edx, dword [esi + 8]
mov dword [edx + 0x10], eax
mov eax, dword [esi + 8]
add esp, 0x18
cmp dword [eax + 0x10], 0
jne 0x1006c512
push 0xffffffffffffffff
push ebx
call ebp
sub eax, 1
jne 0x1006c4d3
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov esi, dword [esi + 8]
call fcn.1006c0f0
mov dword [esp + 0x20], 0xffffffff
test edi, edi
je 0x1006c4fc
mov edi, dword [edi]
test edi, edi
je 0x1006c4f4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x14], 0
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, eax
mov byte [ecx + 8], 1
mov eax, dword [esi + 8]
add eax, 0x24
mov eax, dword [eax]
test eax, eax
je 0x1006c52b
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [esi + 8]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x1006c552
call fcn.1006c3e0
mov esi, dword [esi + 8]
call fcn.1006c0f0
mov dword [esp + 0x20], ebx
jmp 0x1006c4e3
test edi, edi
mov dword [esp + 0x20], ebx
je 0x1006c56f
mov edi, dword [edi]
test edi, edi
je 0x1006c567
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x14], 0
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x1006e080
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [eax]
test eax, eax
jne 0x1006e08b
xor al, al
pop ecx
ret
cmp dword [eax], 0xffffffff
je 0x1006e087
mov edx, dword [eax]
push esi
lea ecx, [esp + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1006e0b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1006e0b5
xor al, al
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
push 1
push 0
push 0
push eax
call fcn.10092810
xor ecx, ecx
add eax, esi
adc edx, ecx
mov dword [edi], eax
mov dword [edi + 4], edx
mov al, 1
pop esi
pop ecx
ret

Function at 0x1006eaf0
Capabilities:
Get file size

Disassembly:
push ecx
mov edx, dword [ecx]
push esi
lea eax, [esp + 4]
push eax
push edx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1006eb1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1006eb1e
xor al, al
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
push 1
push 0
push 0
push eax
call fcn.10092810
xor ecx, ecx
add eax, esi
adc edx, ecx
mov dword [edi], eax
mov dword [edi + 4], edx
mov al, 1
pop esi
pop ecx
ret
Function at 0x1006ec90
Capabilities:
Get file size
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1009a518
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push edi
mov eax, dword [0x100c60c8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, 0x100000
cmp dword [esp + 0x30], eax
jbe 0x1006ecc5
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
xor edi, edi
push edi
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [esi + 0x20], edi
je 0x1006edda
cmp eax, edi
je 0x1006edda
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x10], ecx
jae 0x1006edda
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x14]
mov ebp, eax
mov eax, dword [esi]
push edx
push eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1006ed3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1006ed52
mov ecx, dword [esp + 0x14]
push 1
push edi
push edi
push ecx
call fcn.10092810
xor ecx, ecx
add eax, ebx
adc edx, ecx
jmp 0x1006ed56
xor eax, eax
xor edx, edx
push edi
push ebp
push edx
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], edi
lea eax, [esi + 4]
push edi
mov word [ecx + 4], di
call fcn.100076e0
mov dword [esp + 0x50], edi
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
add eax, 0x18
mov dword [esp + 0x50], 0xffffffff
call edx
cmp eax, edi
jne 0x1006edda
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esi]
add edx, eax
push edx
push ecx
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x18]
neg eax
sbb eax, eax
add dword [esp + 0x10], edx
and eax, 0x7fffbffb
add eax, 0x80004005
cmp eax, edi
jne 0x1006ed03
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
mov dword [ecx], edx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
Function at 0x1006ef80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1009f101
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x100c60c8]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push edi
mov eax, dword [0x100c60c8]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0xc], ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov dword [esp + 0x10], esi
mov word [esi + 4], bx
mov dword [esp + 0x74], ebx
mov edi, 1
xor eax, eax
lea edx, [esp + 0x30]
mov dword [esp + 0xc], edi
call fcn.1006dc20
mov dword [esp + 0x74], edi
mov eax, dword [esp + 0x44]
cmp eax, ebx
lea edi, [ebx + 0x10]
je 0x1006f08b
cmp dword [esp + 0x48], edi
mov ecx, dword [esp + 0x34]
jae 0x1006f005
lea ecx, [esp + 0x34]
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.10072a20
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x84], 2
call fcn.1006d610
add esp, 0x10
push 0xffffffffffffffff
push ebx
mov ecx, esi
mov byte [esp + 0x7c], 3
call fcn.100076e0
mov byte [esp + 0x74], 2
cmp dword [esp + 0x2c], 8
jb 0x1006f052
mov edx, dword [esp + 0x18]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov byte [esp + 0x74], 1
cmp dword [esp + 0x64], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
jb 0x1006f07b
mov eax, dword [esp + 0x50]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
mov byte [esp + 0x74], bl
cmp dword [esp + 0x48], edi
jb 0x1006f0a2
mov ecx, dword [esp + 0x34]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov eax, esi
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.1009176c
add esp, 0x6c
ret

Function at 0x10071bd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x100c60c8]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push 0x20a
lea eax, [esp + 0xa]
push 0
push eax
mov esi, ecx
mov word [esp + 0x10], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x105
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x10071c62
lea eax, [esp + 4]
mov word [esp + 0x20e], 0
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10071c30
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 8]
push edx
call fcn.10011cd0
mov al, 1
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.1009176c
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
xor al, al
call fcn.1009176c
add esp, 0x210
ret
Function at 0x10071c80
Capabilities:
Set file attributes

Disassembly:
and ecx, 0xffffb1af
cmp dword [eax + 0x18], 8
jb 0x10071c9d
mov eax, dword [eax + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret
add eax, 4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x10071cb0
Capabilities:
Move file

Disassembly:
mov edx, 8
cmp dword [eax + 0x18], edx
jb 0x10071cbf
mov eax, dword [eax + 4]
jmp 0x10071cc2
add eax, 4
cmp dword [ecx + 0x18], edx
jb 0x10071cd8
mov ecx, dword [ecx + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret
add ecx, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret

Function at 0x10071cf0
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push 0xffffffffffffffff
push 0x100a2878
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100c60c8]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
push esi
push edi
mov eax, dword [0x100c60c8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, 8
cmp dword [esi + 0x18], ebp
lea edi, [esi + 4]
jb 0x10071d34
mov ecx, dword [edi]
jmp 0x10071d36
mov ecx, edi
cmp dword [ebx + 0x18], ebp
jb 0x10071d40
mov eax, dword [ebx + 4]
jmp 0x10071d43
lea eax, [ebx + 4]
push 0xb
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x10071ddd
cmp dword [esi + 0x18], ebp
jb 0x10071d5c
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10071e11
xor edi, edi
push 0xffffffffffffffff
mov ebp, 7
push edi
mov eax, esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], di
call fcn.100076e0
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x3c], edi
call fcn.100722e0
add esp, 4
test al, al
je 0x10071de8
lea eax, [esp + 0x10]
mov ecx, esi
call fcn.10071cb0
test al, al
je 0x10071de8
mov eax, esi
mov ecx, ebx
call fcn.10071cb0
test al, al
lea ecx, [esp + 0x10]
je 0x10071de1
push ecx
call fcn.10071e40
add esp, 4
lea esi, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.10006e70
mov al, 1
jmp 0x10071e13
mov eax, esi
call fcn.10071cb0
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x10071e04
mov edx, dword [esp + 0x14]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], edi
mov word [esp + 0x14], di
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1009176c
add esp, 0x2c
ret