joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10054950
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x1008dbf8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, ecx
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x18], eax
mov dword [ebx], 0
cmp dword [ebp + 4], 0
je 0x100549f8
lea esi, [ebp + 0x20]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [esp + 0x30], 0
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x18]
push eax
push ecx
mov ecx, dword [ebp + 4]
call fcn.100548b0
add esp, 8
test al, al
jne 0x10054a00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push esi
call eax
or eax, 0xffffffff
jmp 0x10054a9a
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push esi
call eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov eax, dword [esp + 0x20]
add dword [edi + 0x10], eax
adc dword [edi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [esp + 0x20]
mov ebx, eax
cmp ebx, dword [edi + 4]
je 0x10054a98
movd xmm1, esi
mov ecx, esi
cvtdq2pd xmm1, xmm1
shr ecx, 0x1f
shr eax, 0x1f
mov edx, dword [edi + 0x14]
movd xmm0, ebx
addsd xmm1, qword [ecx*8 + 0x1009b640]
cvtdq2pd xmm0, xmm0
mov ecx, dword [edi + 0x10]
addsd xmm0, qword [eax*8 + 0x1009b640]
divsd xmm1, xmm0
movsd qword [edi + 0x18], xmm1
call fcn.10082f2e
mov ecx, ebx
mov dword [edi + 4], ebx
sub ecx, dword [edi]
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
shr ecx, 0x1f
addsd xmm1, qword [ecx*8 + 0x1009b640]
divsd xmm0, xmm1
movsd qword [edi + 0x20], xmm0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.10081b94
add esp, 0x20
ret 0x10

Function at 0x10054cb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10088418
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.10054e20
mov dword [esp + 0x30], 0
lea ecx, [esp + 0xc]
call fcn.100692f0
mov esi, eax
mov edi, edx
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x10054d1b
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov edx, edi
mov dword [esp + 0x1c], 0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.10081b94
add esp, 0x28
ret
Function at 0x10058b90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1008e3e1
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov dword [esp + 0x54], 0
xor eax, eax
mov esi, dword [esp + 0x5c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], esi
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [esp + 0x54], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 8], 1
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], eax
mov word [esp + 0x18], ax
mov dword [esp + 0x54], 1
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], eax
mov word [esp + 0x30], ax
mov dword [esp + 0x54], 3
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
call fcn.10069cb0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.10069ea0
test al, al
je 0x10058c6b
lea eax, [esp + 0x30]
cmp esi, eax
je 0x10058c6b
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.10003100
mov dword [esp + 0x54], 4
cmp dword [esp + 0x44], 8
jb 0x10058c87
push dword [esp + 0x30]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
mov byte [esp + 0x54], al
cmp dword [esp + 0x2c], 8
jb 0x10058cb6
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
mov eax, esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10081b94
add esp, 0x50
ret 4

Function at 0x10058cf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1008e426
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esp + 0x14], 0
cmp dword [esi + 0x30], 8
jb 0x10058d32
push dword [esi + 0x1c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esi + 0x30], 7
xor eax, eax
mov dword [esi + 0x2c], 0
mov word [esi + 0x1c], ax
mov dword [esp + 0x14], 0xffffffff
cmp dword [esi + 0x18], 8
jb 0x10058d60
push dword [esi + 4]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x1005d180
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x1008ec6e
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov esi, ecx
push 1
mov dword [esp + 0xc], esi
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov dword [esi + 4], eax
push 0x11c
push 0
mov byte [eax], 0
lea eax, [esp + 0x18]
push eax
call sub.MSVCR120.dll_memset
add esp, 0x10
mov dword [esp + 0xc], 0x11c
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1005d204
cmp dword [esp + 0x10], 6
mov ecx, dword [esi + 4]
setae dl
mov byte [ecx], dl
mov dword [esp + 0x134], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.10081b94
add esp, 0x130
ret
Function at 0x10060880
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1008f218
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, edx
mov dword [esp + 0xc], eax
mov edi, ecx
mov ecx, eax
mov dword [esp + 0x20], 0
sub ecx, edi
mov eax, 0x81848da9
imul ecx
xorps xmm0, xmm0
movdqu xmmword [esp + 0x10], xmm0
mov dword [esp + 0x10], 0
add edx, ecx
mov dword [esp + 0x14], 0
sar edx, 9
mov esi, edx
mov dword [esp + 0x18], 0
shr esi, 0x1f
add esi, edx
lea eax, [esi + 1]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], 0
mov ecx, edi
push dword [esp + 0x40]
mov edx, dword [esp + 0x10]
push eax
push esi
call fcn.100609b0
add esp, 0xc
mov dword [esp + 0x30], 0xffffffff
mov esi, dword [esp + 0x10]
test esi, esi
je 0x10060961
cmp esi, dword [esp + 0x18]
je 0x10060957
mov edi, edi
mov ecx, esi
call fcn.1004a270
add esi, 0x3f4
cmp esi, dword [esp + 0x18]
jne 0x10060940
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.10081b94
add esp, 0x28
ret
Function at 0x10061940
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1008f480
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov dword [esp + 0x1c], edx
mov ebp, ecx
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
mov dword [esp + 0x20], eax
test ebx, ebx
je 0x10061b10
test esi, esi
je 0x10061b10
cmp ebx, esi
jg 0x10061a41
mov ecx, edi
call fcn.10060e00
cmp ebx, eax
jg 0x10061a41
mov ecx, dword [edi + 0x10]
sub esp, 0x14
mov dword [esp + 0x2c], esp
mov eax, dword [ecx]
mov dword [ecx + 4], eax
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov eax, dword [edi + 0x10]
mov dword [ecx + 0x10], eax
mov dword [esp + 0x54], 0
mov esi, dword [esp + 0x30]
push esi
mov dword [esp + 0x58], 0xffffffff
mov edx, ebp
lea ecx, [esp + 0x3c]
call fcn.10061740
add esp, 0x18
lea ecx, [esp + 0x24]
call fcn.10060980
push dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
mov ecx, esi
push ebp
mov edx, ebx
call fcn.100454b0
mov eax, dword [edi + 0x10]
push dword [esp + 0x20]
push ebx
mov edx, dword [eax + 4]
mov ecx, dword [eax]
call fcn.10061fa0
add esp, 0x10
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov ecx, edi
call fcn.10060e00
cmp esi, eax
jg 0x10061ae9
mov ecx, dword [edi + 0x10]
sub esp, 0x14
mov dword [esp + 0x2c], esp
mov eax, dword [ecx]
mov dword [ecx + 4], eax
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov eax, dword [edi + 0x10]
mov dword [ecx + 0x10], eax
mov dword [esp + 0x54], 1
mov ebx, dword [esp + 0x34]
push ebx
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x3c]
mov edx, dword [esp + 0x34]
call fcn.10061740
add esp, 0x18
lea ecx, [esp + 0x24]
call fcn.10060980
push dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ecx, ebp
push ebx
call fcn.10061fa0
mov eax, dword [edi + 0x10]
push dword [esp + 0x20]
push ebp
mov edx, dword [eax + 4]
mov ecx, dword [eax]
call fcn.100454b0
add esp, 0x10
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov ebx, dword [esp + 0x20]
mov ecx, ebp
mov edx, dword [esp + 0x1c]
push ebx
call fcn.10061f60
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
imul eax, esi, 0x3f4
add eax, ebp
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x10061b30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1008f4e3
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, edx
mov eax, ecx
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x40], 1
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x50]
cmp edi, ebp
je 0x10061c41
cmp esi, ebx
je 0x10061c41
nop
push edi
mov ecx, esi
call fcn.1004a510
mov edx, dword [esp + 0x64]
mov ecx, dword [edx + 4]
test al, al
je 0x10061bf4
cmp ecx, dword [edx + 8]
jae 0x10061bc1
lea eax, [ecx + 0x3f4]
push esi
mov dword [edx + 4], eax
call fcn.10045a10
add esi, 0x3f4
cmp esi, ebx
jmp 0x10061c3b
mov byte [esp + 0x40], 2
test ecx, ecx
je 0x10061bd0
push esi
call fcn.10048f20
mov byte [esp + 0x40], 1
add esi, 0x3f4
mov ecx, dword [esp + 0x64]
add dword [ecx + 4], 0x3f4
cmp esi, ebx
mov eax, dword [esp + 0x64]
mov ecx, dword [ecx + 4]
mov dword [eax + 8], ecx
jmp 0x10061c3b
cmp ecx, dword [edx + 8]
jae 0x10061c0a
lea eax, [ecx + 0x3f4]
push edi
mov dword [edx + 4], eax
call fcn.10045a10
jmp 0x10061c33
mov byte [esp + 0x40], 3
test ecx, ecx
je 0x10061c19
push edi
call fcn.10048f20
mov byte [esp + 0x40], 1
mov ecx, dword [esp + 0x64]
add dword [ecx + 4], 0x3f4
mov eax, dword [esp + 0x64]
mov ecx, dword [ecx + 4]
mov dword [eax + 8], ecx
add edi, 0x3f4
cmp edi, ebp
jne 0x10061b90
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x2c], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov eax, dword [esp + 0x78]
mov dword [ecx + 0x10], eax
mov byte [esp + 0x54], 4
push ebp
mov byte [esp + 0x58], 1
mov edx, edi
lea ecx, [esp + 0x3c]
call fcn.10061740
add esp, 0x18
mov byte [esp + 0x40], 5
mov eax, dword [eax + 0x10]
mov dword [esp + 0x64], eax
mov byte [esp + 0x40], 1
mov edi, dword [esp + 0x24]
mov ebp, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test edi, edi
je 0x10061ccd
cmp edi, dword [esp + 0x2c]
je 0x10061cc7
lea ebx, [ebx]
mov ecx, edi
call fcn.1004a270
add edi, 0x3f4
cmp edi, dword [esp + 0x2c]
jne 0x10061cb0
mov edi, dword [esp + 0x24]
push edi
call ebp
add esp, 4
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x2c], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov eax, dword [esp + 0x78]
mov dword [ecx + 0x10], eax
mov byte [esp + 0x54], 6
push ebx
mov byte [esp + 0x58], 1
mov edx, esi
mov edi, dword [esp + 0x34]
mov ecx, edi
call fcn.10061740
add esp, 0x18
mov dword [esp + 0x14], 1
mov byte [esp + 0x40], 0
mov esi, dword [esp + 0x54]
test esi, esi
je 0x10061d4d
cmp esi, dword [esp + 0x5c]
je 0x10061d47
mov edi, edi
mov ecx, esi
call fcn.1004a270
add esi, 0x3f4
cmp esi, dword [esp + 0x5c]
jne 0x10061d30
mov esi, dword [esp + 0x54]
push esi
call ebp
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x10063380
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1008eac6
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov byte [esi], 0
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
mov dword [esp + 0x18], eax
lea ecx, [esi + 0x1c]
push 0xffffffffffffffff
push eax
push dword [esp + 0x28]
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], eax
mov word [esi + 0x1c], ax
call fcn.10003100
mov byte [esp + 0x18], 1
cmp dword [esi + 0x2c], 0
jne 0x100633fb
push 3
push 0x10099f6c
lea ecx, [esi + 0x1c]
call fcn.10003000
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x10064720
Capabilities:
Get file size
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1008f858
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x10064776
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x100648fb
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x100000
mov eax, dword [esp + 0x54]
push 0
mov ebx, eax
mov dword [esp + 0x34], 0
cmp eax, 0x100000
lea eax, [esp + 0x34]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x100648c0
test eax, eax
je 0x100648c0
mov ecx, dword [esp + 0x30]
jmp 0x100647e0
cmp ecx, ebx
jae 0x100648c4
call ebp
mov ecx, dword [edi]
mov dword [esp + 0x18], eax
cmp ecx, 0xffffffff
je 0x10064823
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10064816
call ebp
test eax, eax
jne 0x10064823
mov eax, dword [esp + 0x38]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x10064834
xorps xmm0, xmm0
movlpd qword [esp + 0x24], xmm0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push 0
push dword [esp + 0x1c]
push eax
push ecx
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [esp + 0x40], esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [edi + 4]
push eax
call fcn.10003100
mov dword [esp + 0x70], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [esp + 0x70], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [esp + 0x14]
test eax, eax
jne 0x100648c0
push eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x30]
neg eax
sbb eax, eax
add ecx, dword [esp + 0x34]
and eax, 0x7fffbffb
mov dword [esp + 0x30], ecx
add eax, 0x80004005
jne 0x100647e0
jmp 0x100648c4
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
add dword [edx], ecx
test eax, eax
jne 0x100648f1
test ecx, ecx
je 0x100648ed
mov eax, dword [esp + 0x54]
add esi, ecx
sub eax, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x54], eax
mov ecx, 0x100000
jne 0x10064794
mov al, 1
jmp 0x100648fd
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x100648fb
mov dword [ecx], eax
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.10081b94
add esp, 0x38
ret 0x10
Function at 0x10068770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1008ff30
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
mov dword [esp + 0x48], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], eax
mov word [esp + 0xc], ax
mov byte [esp + 0x48], 1
mov dword [esp + 8], eax
lea eax, [esp + 8]
push edx
push eax
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x30]
call fcn.10068260
add esp, 0xc
mov bl, al
mov byte [esp + 0x48], 0
cmp dword [esp + 0x20], 8
jb 0x1006881e
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x38], 8
jb 0x10068851
push dword [esp + 0x24]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov word [esp + 0x24], ax
mov al, bl
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.10081b94
add esp, 0x44
ret
Function at 0x10068b60
Capabilities:
Access peb ldr_data
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x10088418
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, edx
xor eax, eax
mov dword [esp + 0x1c], 0
push 0xffffffffffffffff
push eax
push ecx
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.10003100
mov dword [esp + 0x30], 0
lea ecx, [esp + 0xc]
call fcn.1000a4e0
mov eax, dword [esp + 0x1c]
cmp eax, 2
jbe 0x10068cac
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xc]
mov edx, dword [esp + 0xc]
cmp ecx, 8
cmovae eax, edx
cmp word [eax], 0x5c
jne 0x10068c14
cmp ecx, 8
lea eax, [esp + 0xc]
cmovae eax, edx
cmp word [eax + 2], 0x5c
jne 0x10068c14
mov bl, 1
jmp 0x10068d1c
cmp ecx, 8
lea eax, [esp + 0xc]
cmovae eax, edx
cmp word [eax], 0x2f
jne 0x10068c39
cmp ecx, 8
lea eax, [esp + 0xc]
cmovae eax, edx
cmp word [eax + 2], 0x2f
je 0x10068d1a
push 0x5c
mov edx, 0x2f
lea ecx, [esp + 0x10]
call fcn.1000a350
mov edx, dword [esp + 0x10]
mov eax, ecx
mov ecx, dword [esp + 0x24]
add esp, 4
cmp ecx, 8
cmovae eax, edx
cmp word [eax + 2], 0x3a
jne 0x10068d1a
cmp ecx, 8
lea eax, [esp + 0xc]
cmovae eax, edx
cmp word [eax + 4], 0x5c
jne 0x10068d1a
cmp ecx, 8
lea eax, [esp + 0xc]
cmovae eax, edx
cmp word [eax], 0x61
jb 0x10068d1a
cmp ecx, 8
lea eax, [esp + 0xc]
cmovae eax, edx
cmp word [eax], 0x7a
ja 0x10068d1a
cmp ecx, 8
lea eax, [esp + 0xc]
cmovae eax, edx
jmp 0x10068d03
jne 0x10068d1a
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xc]
mov edx, dword [esp + 0xc]
cmp ecx, 8
cmovae eax, edx
cmp word [eax + 2], 0x3a
jne 0x10068d1a
cmp ecx, 8
lea eax, [esp + 0xc]
cmovae eax, edx
cmp word [eax], 0x61
jb 0x10068d1a
cmp ecx, 8
lea eax, [esp + 0xc]
cmovae eax, edx
cmp word [eax], 0x7a
ja 0x10068d1a
push 0x10093adc
lea ecx, [esp + 0x10]
call fcn.100066d0
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10068d1a
shr eax, 4
mov bl, 1
and al, 1
mov byte [esi], al
jmp 0x10068d1c
xor bl, bl
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x10068d38
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.10081b94
add esp, 0x28
ret