joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006e790
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 0x1006e7ab
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 0x1006e813
mov ecx, dword [esp + 0x48]
xor eax, eax
test ecx, ecx
je 0x1006e7f2
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.1006e440
test eax, eax
jne 0x1006e81c
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 0x1006e83f
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 0x1006e84b
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop ebx
add esp, 0x18
ret 0x30

Function at 0x1006e860
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100de920
push 0x10078870
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x100eb3e0]
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 0x1006e8ff
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1006e8ff
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x1006e8ff
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x1006e8ff
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 0x1006ea30
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
mov esi, dword [0x101062c8]
test esi, esi
je 0x1006ea5a
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 0x1006ea43
pop edi
pop esi
pop ecx
ret
Function at 0x1006ec50
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push esi
mov esi, eax
cmp esi, 0x7ff80000
push edi
lea edi, [esi - 0x7ff80000]
ja 0x1006ec68
mov edi, 0x10000
cmp esi, 0x80000000
lea ebx, [esi + 0x7ff80000]
jb 0x1006ec7b
mov ebx, 0xfff80000
mov eax, dword [0x101062cc]
test eax, eax
mov edx, dword [0x101062c8]
jne 0x1006ec95
test edx, edx
je 0x1006eca8
mov eax, edx
mov dword [0x101062cc], eax
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1006eca8
cmp ecx, edi
jb 0x1006eca8
cmp ecx, ebx
jbe 0x1006edad
test edx, edx
mov eax, edx
mov dword [0x101062cc], eax
je 0x1006ecd6
test eax, eax
je 0x1006ecca
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1006ecca
cmp ecx, edi
jb 0x1006ecca
cmp ecx, ebx
jbe 0x1006eda8
mov eax, dword [eax + 4]
test eax, eax
jne 0x1006ecb7
mov dword [0x101062cc], eax
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, 0x40000000
jbe 0x1006ed00
lea eax, [esi - 0x40000000]
push edi
call fcn.1006eba0
add esp, 4
test eax, eax
jne 0x1006ed69
cmp esi, 0x40000000
jae 0x1006ed15
push ebx
lea eax, [esi + 0x40000000]
call fcn.1006eae0
add esp, 4
test eax, eax
jne 0x1006ed69
cmp esi, 0x40000000
jbe 0x1006ed36
push esi
lea eax, [esi - 0x40000000]
call fcn.1006eae0
add esp, 4
test eax, eax
jne 0x1006ed69
cmp esi, 0x40000000
jae 0x1006ed4b
lea eax, [esi + 0x40000000]
push esi
call fcn.1006eba0
add esp, 4
test eax, eax
jne 0x1006ed69
push edi
mov eax, esi
call fcn.1006eba0
add esp, 4
test eax, eax
jne 0x1006ed69
push ebx
mov eax, esi
call fcn.1006eae0
add esp, 4
test eax, eax
je 0x1006edd4
mov dword [eax], 0x52727464
mov dword [eax + 8], 0
mov ecx, dword [0x101062c8]
mov dword [eax + 4], ecx
mov dword [0x101062cc], eax
mov dword [0x101062c8], 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 0x1006ed96
mov dword [eax + 8], edx
jmp 0x1006edad
mov dword [0x101062cc], eax
mov esi, dword [eax + 8]
cmp esi, edi
jb 0x1006edd4
cmp esi, ebx
ja 0x1006edd4
mov edx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [eax + 8], edx
call fcn.10073a50
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 0x1006ee10
Capabilities:
Hook routines via microsoft detours

Disassembly:
cmp dword [esi], 0x52727464
je 0x1006ee1b
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 0x1006ee3e
cmp eax, esi
jb 0x1006ee53
cmp eax, edi
jae 0x1006ee53
add ecx, 1
add edx, 0x48
cmp ecx, 0x38d
jb 0x1006ee30
mov eax, 1
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x1006ef20
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x101062d8], eax
je 0x1006ef36
mov eax, 0x10dd
pop ecx
ret
push ebx
push ebp
push esi
mov esi, dword [0x101062e8]
xor ebp, ebp
cmp esi, ebp
push edi
je 0x1006ef8c
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 0x1006ef7b
mov edi, dword [esi + 0x10]
cmp edi, ebp
je 0x1006ef7b
call fcn.1006ede0
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call fcn.10070de0
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x1006ef50
mov dword [0x101062e8], ebp
call fcn.1006ea60
mov esi, dword [0x101062e4]
cmp esi, ebp
je 0x1006efbe
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.10070de0
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x1006efa7
pop edi
pop esi
mov dword [0x101062e4], ebp
mov dword [0x101062d8], ebp
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x1006f2f0
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x101062dc]
test eax, eax
jne 0x1006f36c
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x1006f30e
xor eax, eax
pop edi
ret 4
push esi
push 8
call fcn.10070b17
mov esi, eax
add esp, 4
test esi, esi
jne 0x1006f324
lea edi, [eax + 8]
jmp 0x1006f341
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1006f358
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.10070de0
add esp, 4
pop esi
mov dword [0x101062dc], edi
mov eax, edi
mov dword [0x101062e0], 0
pop edi
ret 4
mov eax, dword [0x101062e4]
mov dword [esi + 4], edi
mov dword [esi], eax
mov dword [0x101062e4], esi
pop esi
xor eax, eax
pop edi
ret 4
Function at 0x10070dd1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100eb3e0]
jne 0x10070ddb
repz ret
jmp fcn.1007ccd2
Function at 0x10080b31
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 + 0x100ebb88]
je 0x10080b4c
inc edi
cmp edi, 0x17
jb 0x10080b3d
cmp edi, 0x17
jae 0x10080ccc
push ebp
push 3
call fcn.10089f14
cmp eax, 1
pop ecx
je 0x10080c98
push 3
call fcn.10089f14
test eax, eax
pop ecx
jne 0x10080b80
cmp dword [0x10106548], 1
je 0x10080c98
cmp ebx, 0xfc
je 0x10080ccb
push 0x100c6c58
mov ebx, 0x314
push ebx
mov ebp, 0x10106a90
push ebp
call fcn.10078a77
add esp, 0xc
test eax, eax
je 0x10080bb6
push esi
push esi
push esi
push esi
push esi
call fcn.10070b8b
add esp, 0x14
push 0x104
mov esi, 0x10106aa9
push esi
push 0
mov byte [0x10106bad], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10080bfa
push 0x100c6c40
push 0x2fb
push esi
call fcn.10078a77
add esp, 0xc
test eax, eax
je 0x10080bfa
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10070b8b
add esp, 0x14
push esi
call fcn.10070d30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10080c3f
push esi
call fcn.10070d30
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10106da4
push 0x100c6c3c
sub ecx, eax
push ecx
push eax
call fcn.10077fd3
add esp, 0x14
test eax, eax
je 0x10080c3f
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10070b8b
add esp, 0x14
jmp 0x10080c41
xor esi, esi
push 0x100c6c38
push ebx
push ebp
call fcn.10078a06
add esp, 0xc
test eax, eax
je 0x10080c61
push esi
push esi
push esi
push esi
push esi
call fcn.10070b8b
add esp, 0x14
push dword [edi*8 + 0x100ebb8c]
push ebx
push ebp
call fcn.10078a06
add esp, 0xc
test eax, eax
je 0x10080c83
push esi
push esi
push esi
push esi
push esi
call fcn.10070b8b
add esp, 0x14
push 0x12010
push 0x100c6c10
push ebp
call fcn.10089d57
add esp, 0xc
jmp 0x10080ccb
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10080ccb
cmp ebp, 0xffffffff
je 0x10080ccb
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x100ebb8c]
push dword [esi]
call fcn.10070d30
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 0x10089d57
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1007c6e3
xor ebx, ebx
cmp dword [0x10106ff4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10089e2d
push 0x100c7ea4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10089f0d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100c7e98
push edi
call esi
cmp eax, ebx
je 0x10089f0d
push eax
call fcn.1007c675
mov dword [esp], 0x100c7e88
push edi
mov dword [0x10106ff4], eax
call esi
push eax
call fcn.1007c675
mov dword [esp], 0x100c7e74
push edi
mov dword [0x10106ff8], eax
call esi
push eax
call fcn.1007c675
mov dword [0x10106ffc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1007c271
test eax, eax
pop ecx
pop ecx
je 0x10089dfb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10070b8b
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10089e2d
push 0x100c7e58
push edi
call esi
push eax
call fcn.1007c675
cmp eax, ebx
pop ecx
mov dword [0x10107004], eax
je 0x10089e2d
push 0x100c7e40
push edi
call esi
push eax
call fcn.1007c675
pop ecx
mov dword [0x10107000], eax
mov eax, dword [0x10107000]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10089eb2
cmp dword [0x10107004], ecx
je 0x10089eb2
push eax
call fcn.1007c6ec
push dword [0x10107004]
mov esi, eax
call fcn.1007c6ec
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10089eb2
cmp edi, ebx
je 0x10089eb2
call esi
cmp eax, ebx
je 0x10089e7f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10089e7f
test byte [ebp - 0x18], 1
jne 0x10089eb2
lea eax, [ebp - 0x10]
push eax
call fcn.1007c2a8
test eax, eax
pop ecx
je 0x10089e9a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10070b8b
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10089ea9
or dword [ebp + 0x10], 0x200000
jmp 0x10089eed
or dword [ebp + 0x10], 0x40000
jmp 0x10089eed
mov eax, dword [0x10106ff8]
cmp eax, dword [ebp - 8]
je 0x10089eed
push eax
call fcn.1007c6ec
cmp eax, ebx
pop ecx
je 0x10089eed
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10089eed
mov eax, dword [0x10106ffc]
cmp eax, dword [ebp - 8]
je 0x10089eed
push eax
call fcn.1007c6ec
cmp eax, ebx
pop ecx
je 0x10089eed
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10106ff4]
call fcn.1007c6ec
cmp eax, ebx
pop ecx
je 0x10089f0d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10089f0f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1008f2d9
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x101070b0], 0
push esi
jne 0x1008f24c
call fcn.1008f177
test eax, eax
je 0x1008f28f
mov eax, dword [0x101070b0]
cmp eax, 1
jne 0x1008f26d
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1008f28f
pop esi
ret
push eax
call dword [0x101070b8]
test eax, eax
jne 0x1008f2d7
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 0x1008f293
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x101070b0]
call dword [0x101070b8]
mov edi, eax
test edi, edi
je 0x1008f2ba
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x1008f2d6
lea edi, [esi + 0xff0]
push esi
push dword [0x101070b0]
call dword [0x101070b4]
add esi, 0x10
cmp esi, edi
jb 0x1008f2c0
mov eax, esi
pop edi
pop esi
ret
jmp 0x1008f239

Function at 0x1008f4d0
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 0x1008f507
xor eax, eax
jmp 0x1008f59f
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.10073a50
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 0x1008f545
jmp 0x1008f583
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x1008f55a
jmp 0x1008f583
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 0x1008f573
jmp 0x1008f583
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + 0x28]
mov dword [ebp - 0xc], edx
xor eax, eax
jne 0x1008f519
cmp dword [ebp - 4], 0
je 0x1008f59c
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 0x10090140
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100eb3e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10107248], 0
jne 0x100901d8
mov dword [ebp - 0x21c], 0
mov word [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.10073a50
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 [0x10107248], ecx
xor eax, eax
cmp dword [0x10107248], 0
setne al
jmp 0x100901dd
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10070dd1
mov esp, ebp
pop ebp
ret
Function at 0x10090f30
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 0x10090f77
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x30]
push eax
call fcn.10090de0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x30]
push edx
call fcn.10090e60
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 8], 0
je 0x10090f99
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
push eax
call fcn.10090410
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
je 0x10090fbb
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.10090410
add esp, 4
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x10090fdb
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 0x10090ffb
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 0x1009101b
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 0x1009106a
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 0x10091f80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x100eb3e0]
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.10073a50
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 0x10091fd5
mov eax, 1
jmp 0x10092020
cmp dword [ebp - 0x124], 5
jne 0x1009200e
cmp dword [ebp - 0x120], 1
jne 0x10091ff6
movzx edx, word [ebp - 0x14]
cmp edx, 1
jge 0x10091ff6
xor eax, eax
jmp 0x10092020
cmp dword [ebp - 0x120], 0
jne 0x1009200c
movzx eax, word [ebp - 0x14]
cmp eax, 3
jge 0x1009200c
xor eax, eax
jmp 0x10092020
jmp 0x1009201b
cmp dword [ebp - 0x124], 5
jae 0x1009201b
xor eax, eax
jmp 0x10092020
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10070dd1
mov esp, ebp
pop ebp
ret

Function at 0x10092210
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bbe48
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x100eb3e0]
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.10001713
mov byte [ebp - 4], 1
mov ecx, dword [0x100d50b0]
mov dword [ebp - 0x30], ecx
mov edx, dword [0x100d50b0]
push edx
push 0x5c
lea ecx, [ebp - 0x2c]
call fcn.1003772b
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [0x100d50b0]
je 0x100922ca
mov ecx, dword [ebp - 0x30]
push ecx
push 0
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.100018f6
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.10001760
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.1000174b
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
lea edx, [ebp - 0x2c]
push edx
call fcn.10001713
mov dword [ebp - 0x64], eax
call fcn.10092210
add esp, 0x1c
push 0
lea ecx, [ebp + 8]
call fcn.10004cd2
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100922ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10092315
mov dword [ebp - 0x54], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.1000174b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1000174b
mov eax, dword [ebp - 0x54]
jmp 0x10092357
mov dword [ebp - 0x58], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.1000174b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1000174b
mov eax, dword [ebp - 0x58]
jmp 0x10092357
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10070dd1
mov esp, ebp
pop ebp
ret
Function at 0x10092570
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x100eb3e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x228], ecx
mov word [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.10073a50
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.10075347
add esp, 8
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10092610
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x224], esp
lea edx, [ebp - 0x218]
push edx
call fcn.100016dd
mov dword [ebp - 0x22c], eax
call fcn.10092210
add esp, 0x1c
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x220], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x228]
add ecx, 0x2c
call fcn.10004cd2
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp + 0xc], 0
je 0x1009264c
mov ecx, dword [ebp - 0x228]
add ecx, 0x2c
call fcn.10004cd2
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10070dd1
mov esp, ebp
pop ebp
ret 8

Function at 0x100931e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x100eb3e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov word [ebp - 0x420], 0
push 0x410
push 0
lea eax, [ebp - 0x41e]
push eax
call fcn.10073a50
add esp, 0xc
lea ecx, [ebp - 0x420]
push ecx
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x2f
mov edx, dword [ebp + 8]
push edx
call fcn.100711e7
add esp, 8
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
je 0x100932b2
push str.QMDownload
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x428], esp
lea edx, [ebp - 0x420]
push edx
call fcn.100016dd
mov dword [ebp - 0x42c], eax
call fcn.10092210
add esp, 0x1c
mov eax, dword [ebp - 0x424]
add eax, 2
push eax
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x420]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.10009d66
mov eax, dword [ebp - 0x424]
add eax, 2
push eax
mov ecx, dword [ebp + 0x10]
call fcn.10009d66
jmp 0x100932cc
push 0x100ccfe8
mov ecx, dword [ebp + 0xc]
call fcn.10009d66
push 0x100ccfec
mov ecx, dword [ebp + 0x10]
call fcn.10009d66
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10070dd1
mov esp, ebp
pop ebp
ret