joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006cdb0
Capabilities:
Create process on windows
Resume thread
Terminate process

Disassembly:
mov ecx, dword [esp + 0x30]
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x34]
mov eax, ebx
or eax, 4
test ecx, ecx
jne 0x1006cdcb
mov ecx, dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push edx
push eax
call ecx
test eax, eax
je 0x1006ce33
mov ecx, dword [esp + 0x48]
xor eax, eax
test ecx, ecx
je 0x1006ce12
mov dword [esp + 4], ecx
mov eax, 1
mov edx, dword [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push edx
call fcn.1006ca60
test eax, eax
jne 0x1006ce3c
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
pop ebx
add esp, 0x18
ret 0x30
mov eax, dword [esp + 0x44]
test eax, eax
mov ecx, dword [esp + 0x10]
je 0x1006ce5f
mov edx, dword [esp + 0xc]
mov dword [eax], edx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 0xc], edx
test bl, 4
jne 0x1006ce6b
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop ebx
add esp, 0x18
ret 0x30

Function at 0x1006ce80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100d4f10
push 0x10076590
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x100e13e0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
cmp word [ecx], 0x5a4d
jne 0x1006cf1f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1006cf1f
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x1006cf1f
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x1006cf1f
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1006d050
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
mov esi, dword [0x100fc268]
test esi, esi
je 0x1006d07a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x1006d063
pop edi
pop esi
pop ecx
ret
Function at 0x1006d100
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.1006d0e0
mov esi, eax
cmp esi, dword [esp + 0x2c]
jae 0x1006d1aa
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x1006d137
mov esi, 0x80010000
jmp 0x1006d1a0
xor eax, eax
push 0x1c
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call ebx
test eax, eax
je 0x1006d1aa
cmp dword [esp + 0x1c], 0x10000
mov eax, dword [esp + 0x18]
jne 0x1006d193
cmp eax, 0x10000
jb 0x1006d193
push 0x40
push 0x3000
push 0x10000
push esi
call edi
test eax, eax
jne 0x1006d1ac
add esi, 0x10000
jmp 0x1006d1a0
mov edx, dword [esp + 0xc]
add eax, edx
call fcn.1006d0e0
mov esi, eax
cmp esi, dword [esp + 0x2c]
jb 0x1006d123
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x1006d270
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push esi
mov esi, eax
cmp esi, 0x7ff80000
push edi
lea edi, [esi - 0x7ff80000]
ja 0x1006d288
mov edi, 0x10000
cmp esi, 0x80000000
lea ebx, [esi + 0x7ff80000]
jb 0x1006d29b
mov ebx, 0xfff80000
mov eax, dword [0x100fc26c]
test eax, eax
mov edx, dword [0x100fc268]
jne 0x1006d2b5
test edx, edx
je 0x1006d2c8
mov eax, edx
mov dword [0x100fc26c], eax
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1006d2c8
cmp ecx, edi
jb 0x1006d2c8
cmp ecx, ebx
jbe 0x1006d3cd
test edx, edx
mov eax, edx
mov dword [0x100fc26c], eax
je 0x1006d2f6
test eax, eax
je 0x1006d2ea
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1006d2ea
cmp ecx, edi
jb 0x1006d2ea
cmp ecx, ebx
jbe 0x1006d3c8
mov eax, dword [eax + 4]
test eax, eax
jne 0x1006d2d7
mov dword [0x100fc26c], eax
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, 0x40000000
jbe 0x1006d320
lea eax, [esi - 0x40000000]
push edi
call fcn.1006d1c0
add esp, 4
test eax, eax
jne 0x1006d389
cmp esi, 0x40000000
jae 0x1006d335
push ebx
lea eax, [esi + 0x40000000]
call fcn.1006d100
add esp, 4
test eax, eax
jne 0x1006d389
cmp esi, 0x40000000
jbe 0x1006d356
push esi
lea eax, [esi - 0x40000000]
call fcn.1006d100
add esp, 4
test eax, eax
jne 0x1006d389
cmp esi, 0x40000000
jae 0x1006d36b
lea eax, [esi + 0x40000000]
push esi
call fcn.1006d1c0
add esp, 4
test eax, eax
jne 0x1006d389
push edi
mov eax, esi
call fcn.1006d1c0
add esp, 4
test eax, eax
jne 0x1006d389
push ebx
mov eax, esi
call fcn.1006d100
add esp, 4
test eax, eax
je 0x1006d3f4
mov dword [eax], 0x52727464
mov dword [eax + 8], 0
mov ecx, dword [0x100fc268]
mov dword [eax + 4], ecx
mov dword [0x100fc26c], eax
mov dword [0x100fc268], eax
xor edx, edx
lea ecx, [eax + 0xffa8]
mov esi, 0x38b
mov dword [ecx + 0x40], edx
mov edx, ecx
sub ecx, 0x48
sub esi, 1
jne 0x1006d3b6
mov dword [eax + 8], edx
jmp 0x1006d3cd
mov dword [0x100fc26c], eax
mov esi, dword [eax + 8]
cmp esi, edi
jb 0x1006d3f4
cmp esi, ebx
ja 0x1006d3f4
mov edx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [eax + 8], edx
call fcn.10072040
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x1006d430
Capabilities:
Hook routines via microsoft detours

Disassembly:
cmp dword [esi], 0x52727464
je 0x1006d43b
xor eax, eax
ret
push edi
lea edi, [esi + 0x10000]
xor ecx, ecx
lea edx, [esi + 0x88]
lea ebx, [ebx]
mov eax, dword [edx]
test eax, eax
je 0x1006d45e
cmp eax, esi
jb 0x1006d473
cmp eax, edi
jae 0x1006d473
add ecx, 1
add edx, 0x48
cmp ecx, 0x38d
jb 0x1006d450
mov eax, 1
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x1006d540
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100fc278], eax
je 0x1006d556
mov eax, 0x10dd
pop ecx
ret
push ebx
push ebp
push esi
mov esi, dword [0x100fc288]
xor ebp, ebp
cmp esi, ebp
push edi
je 0x1006d5ac
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [esp]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x10]
push eax
movzx eax, byte [edx + 0x36]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call ebx
cmp dword [esi + 4], ebp
jne 0x1006d59b
mov edi, dword [esi + 0x10]
cmp edi, ebp
je 0x1006d59b
call fcn.1006d400
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call fcn.1006f3d0
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x1006d570
mov dword [0x100fc288], ebp
call fcn.1006d080
mov esi, dword [0x100fc284]
cmp esi, ebp
je 0x1006d5de
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esi + 4]
push edx
call ebx
mov edi, dword [esi]
push esi
call fcn.1006f3d0
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x1006d5c7
pop edi
pop esi
mov dword [0x100fc284], ebp
mov dword [0x100fc278], ebp
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x1006d910
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x100fc27c]
test eax, eax
jne 0x1006d98c
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x1006d92e
xor eax, eax
pop edi
ret 4
push esi
push 8
call fcn.1006f137
mov esi, eax
add esp, 4
test esi, esi
jne 0x1006d944
lea edi, [eax + 8]
jmp 0x1006d961
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1006d978
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.1006f3d0
add esp, 4
pop esi
mov dword [0x100fc27c], edi
mov eax, edi
mov dword [0x100fc280], 0
pop edi
ret 4
mov eax, dword [0x100fc284]
mov dword [esi + 4], edi
mov dword [esi], eax
mov dword [0x100fc284], esi
pop esi
xor eax, eax
pop edi
ret 4
Function at 0x1006f3c1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100e13e0]
jne 0x1006f3cb
repz ret
jmp fcn.1007afff
Function at 0x1007eed5
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x100e1b88]
je 0x1007eef0
inc edi
cmp edi, 0x17
jb 0x1007eee1
cmp edi, 0x17
jae 0x1007f070
push ebp
push 3
call fcn.10088284
cmp eax, 1
pop ecx
je 0x1007f03c
push 3
call fcn.10088284
test eax, eax
pop ecx
jne 0x1007ef24
cmp dword [0x100fc4e8], 1
je 0x1007f03c
cmp ebx, 0xfc
je 0x1007f06f
push 0x100bec28
mov ebx, 0x314
push ebx
mov ebp, 0x100fca30
push ebp
call fcn.10076797
add esp, 0xc
test eax, eax
je 0x1007ef5a
push esi
push esi
push esi
push esi
push esi
call fcn.1006f1ab
add esp, 0x14
push 0x104
mov esi, 0x100fca49
push esi
push 0
mov byte [0x100fcb4d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1007ef9e
push 0x100bec10
push 0x2fb
push esi
call fcn.10076797
add esp, 0xc
test eax, eax
je 0x1007ef9e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1006f1ab
add esp, 0x14
push esi
call fcn.1006f320
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1007efe3
push esi
call fcn.1006f320
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x100fcd44
push 0x100bec0c
sub ecx, eax
push ecx
push eax
call fcn.100760f3
add esp, 0x14
test eax, eax
je 0x1007efe3
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1006f1ab
add esp, 0x14
jmp 0x1007efe5
xor esi, esi
push 0x100bec08
push ebx
push ebp
call fcn.10076726
add esp, 0xc
test eax, eax
je 0x1007f005
push esi
push esi
push esi
push esi
push esi
call fcn.1006f1ab
add esp, 0x14
push dword [edi*8 + 0x100e1b8c]
push ebx
push ebp
call fcn.10076726
add esp, 0xc
test eax, eax
je 0x1007f027
push esi
push esi
push esi
push esi
push esi
call fcn.1006f1ab
add esp, 0x14
push 0x12010
push 0x100bebe0
push ebp
call fcn.100880c7
add esp, 0xc
jmp 0x1007f06f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1007f06f
cmp ebp, 0xffffffff
je 0x1007f06f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x100e1b8c]
push dword [esi]
call fcn.1006f320
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x100880c7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1007aa10
xor ebx, ebx
cmp dword [0x100fcf8c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1008819d
push 0x100bfe74
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1008827d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100bfe68
push edi
call esi
cmp eax, ebx
je 0x1008827d
push eax
call fcn.1007a9a2
mov dword [esp], 0x100bfe58
push edi
mov dword [0x100fcf8c], eax
call esi
push eax
call fcn.1007a9a2
mov dword [esp], 0x100bfe44
push edi
mov dword [0x100fcf90], eax
call esi
push eax
call fcn.1007a9a2
mov dword [0x100fcf94], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1007a59e
test eax, eax
pop ecx
pop ecx
je 0x1008816b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1006f1ab
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1008819d
push 0x100bfe28
push edi
call esi
push eax
call fcn.1007a9a2
cmp eax, ebx
pop ecx
mov dword [0x100fcf9c], eax
je 0x1008819d
push 0x100bfe10
push edi
call esi
push eax
call fcn.1007a9a2
pop ecx
mov dword [0x100fcf98], eax
mov eax, dword [0x100fcf98]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10088222
cmp dword [0x100fcf9c], ecx
je 0x10088222
push eax
call fcn.1007aa19
push dword [0x100fcf9c]
mov esi, eax
call fcn.1007aa19
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10088222
cmp edi, ebx
je 0x10088222
call esi
cmp eax, ebx
je 0x100881ef
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100881ef
test byte [ebp - 0x18], 1
jne 0x10088222
lea eax, [ebp - 0x10]
push eax
call fcn.1007a5d5
test eax, eax
pop ecx
je 0x1008820a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1006f1ab
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10088219
or dword [ebp + 0x10], 0x200000
jmp 0x1008825d
or dword [ebp + 0x10], 0x40000
jmp 0x1008825d
mov eax, dword [0x100fcf90]
cmp eax, dword [ebp - 8]
je 0x1008825d
push eax
call fcn.1007aa19
cmp eax, ebx
pop ecx
je 0x1008825d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1008825d
mov eax, dword [0x100fcf94]
cmp eax, dword [ebp - 8]
je 0x1008825d
push eax
call fcn.1007aa19
cmp eax, ebx
pop ecx
je 0x1008825d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100fcf8c]
call fcn.1007aa19
cmp eax, ebx
pop ecx
je 0x1008827d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1008827f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1008d79d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x100fd070], 0
push esi
jne 0x1008d710
call fcn.1008d63b
test eax, eax
je 0x1008d753
mov eax, dword [0x100fd070]
cmp eax, 1
jne 0x1008d731
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1008d753
pop esi
ret
push eax
call dword [0x100fd078]
test eax, eax
jne 0x1008d79b
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1008d757
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x100fd070]
call dword [0x100fd078]
mov edi, eax
test edi, edi
je 0x1008d77e
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x1008d79a
lea edi, [esi + 0xff0]
push esi
push dword [0x100fd070]
call dword [0x100fd074]
add esi, 0x10
cmp esi, edi
jb 0x1008d784
mov eax, esi
pop edi
pop esi
ret
jmp 0x1008d6fd

Function at 0x1008d840
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x19c
push 4
push 0x3000
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1008d877
xor eax, eax
jmp 0x1008d90f
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.10072040
add esp, 0xc
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x1008d8b5
jmp 0x1008d8f3
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x1008d8ca
jmp 0x1008d8f3
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0x4550
je 0x1008d8e3
jmp 0x1008d8f3
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + 0x28]
mov dword [ebp - 0xc], edx
xor eax, eax
jne 0x1008d889
cmp dword [ebp - 4], 0
je 0x1008d90c
push 0x8000
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x1008e4b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100e13e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x100fd1cc], 0
jne 0x1008e548
mov dword [ebp - 0x21c], 0
mov word [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.10072040
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x21c]
mov dword [0x100fd1cc], ecx
xor eax, eax
cmp dword [0x100fd1cc], 0
setne al
jmp 0x1008e54d
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006f3c1
mov esp, ebp
pop ebp
ret
Function at 0x1008f2a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
add eax, 0x44
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x30], 0
je 0x1008f2e7
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x30]
push eax
call fcn.1008f150
add esp, 4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x30]
push edx
call fcn.1008f1d0
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 8], 0
je 0x1008f309
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
push eax
call fcn.1008e780
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
je 0x1008f32b
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.1008e780
add esp, 4
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x1008f34b
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x34], 0
je 0x1008f36b
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x34], 0
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x3c], 0
je 0x1008f38b
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x3c], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x40], 0
je 0x1008f3da
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
push 0xbb8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x40], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0xc]
add eax, 0x44
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret
Function at 0x100902d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x100e13e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x128], 0
push 0x118
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.10072040
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x10090325
mov eax, 1
jmp 0x10090370
cmp dword [ebp - 0x124], 5
jne 0x1009035e
cmp dword [ebp - 0x120], 1
jne 0x10090346
movzx edx, word [ebp - 0x14]
cmp edx, 1
jge 0x10090346
xor eax, eax
jmp 0x10090370
cmp dword [ebp - 0x120], 0
jne 0x1009035c
movzx eax, word [ebp - 0x14]
cmp eax, 3
jge 0x1009035c
xor eax, eax
jmp 0x10090370
jmp 0x1009036b
cmp dword [ebp - 0x124], 5
jae 0x1009036b
xor eax, eax
jmp 0x10090370
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006f3c1
mov esp, ebp
pop ebp
ret

Function at 0x10090560
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b4a98
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x100e13e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10001710
mov byte [ebp - 4], 1
mov ecx, dword [0x100cb7f0]
mov dword [ebp - 0x30], ecx
mov edx, dword [0x100cb7f0]
push edx
push 0x5c
lea ecx, [ebp - 0x2c]
call fcn.1003747c
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [0x100cb7f0]
je 0x1009061a
mov ecx, dword [ebp - 0x30]
push ecx
push 0
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.100018f3
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.1000175d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.10001748
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
lea edx, [ebp - 0x2c]
push edx
call fcn.10001710
mov dword [ebp - 0x64], eax
call fcn.10090560
add esp, 0x1c
push 0
lea ecx, [ebp + 8]
call fcn.10004d5d
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1009063c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10090665
mov dword [ebp - 0x54], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.10001748
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10001748
mov eax, dword [ebp - 0x54]
jmp 0x100906a7
mov dword [ebp - 0x58], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.10001748
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10001748
mov eax, dword [ebp - 0x58]
jmp 0x100906a7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006f3c1
mov esp, ebp
pop ebp
ret