joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006bee0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100d1918
push 0x10075260
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x100dd3e0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
mov dword [ebp - 0x80], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], ecx
test eax, eax
mov esi, 0x10000
je 0x1006bf30
lea esi, [eax + 0x10000]
xor eax, eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea ecx, [ecx]
push 0x1c
lea edx, [ebp - 0x7c]
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x1006bf7e
mov eax, dword [ebp - 0x70]
mov ecx, eax
and ecx, 0xfff
cmp ecx, 0xfff
je 0x1006bf7e
mov edx, dword [ebp - 0x7c]
add eax, edx
cmp eax, esi
jae 0x1006bf9e
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1006e001
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x6c], 0x1000
jne 0x1006c073
mov eax, dword [ebp - 0x68]
cmp al, 1
je 0x1006c073
test eax, 0x100
jne 0x1006c073
mov dword [ebp - 4], 0
push 0
push 0x40
lea eax, [ebp - 0x5c]
push eax
push esi
push edi
call ebx
test eax, eax
jne 0x1006bfed
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006bf50
cmp word [ebp - 0x5c], 0x5a4d
jne 0x1006bfd8
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x70]
ja 0x1006bfd8
cmp eax, 0x40
jb 0x1006bfd8
push 0
push 0xf8
mov ecx, dword [ebp - 0x60]
push ecx
add eax, esi
push eax
push edi
call ebx
test eax, eax
jne 0x1006c02c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006bf50
mov edx, dword [ebp - 0x60]
cmp dword [edx], 0x4550
je 0x1006c04c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006bf50
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x1006bf80
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006bf50
Function at 0x1006cd20
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 0x1006cd3b
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 0x1006cda3
mov ecx, dword [esp + 0x48]
xor eax, eax
test ecx, ecx
je 0x1006cd82
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.1006c9d0
test eax, eax
jne 0x1006cdac
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 0x1006cdcf
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 0x1006cddb
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop ebx
add esp, 0x18
ret 0x30

Function at 0x1006e001
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100dd3e0]
jne 0x1006e00b
repz ret
jmp fcn.10079cfd
Function at 0x1007db8b
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 + 0x100ddb88]
je 0x1007dba6
inc edi
cmp edi, 0x17
jb 0x1007db97
cmp edi, 0x17
jae 0x1007dd26
push ebp
push 3
call fcn.10086eb4
cmp eax, 1
pop ecx
je 0x1007dcf2
push 3
call fcn.10086eb4
test eax, eax
pop ecx
jne 0x1007dbda
cmp dword [0x100f8548], 1
je 0x1007dcf2
cmp ebx, 0xfc
je 0x1007dd25
push 0x100b9ac8
mov ebx, 0x314
push ebx
mov ebp, 0x100f8a88
push ebp
call fcn.10075467
add esp, 0xc
test eax, eax
je 0x1007dc10
push esi
push esi
push esi
push esi
push esi
call fcn.1006dde1
add esp, 0x14
push 0x104
mov esi, 0x100f8aa1
push esi
push 0
mov byte [0x100f8ba5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1007dc54
push 0x100b9ab0
push 0x2fb
push esi
call fcn.10075467
add esp, 0xc
test eax, eax
je 0x1007dc54
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1006dde1
add esp, 0x14
push esi
call fcn.1006df60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1007dc99
push esi
call fcn.1006df60
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x100f8d9c
push 0x100b9aac
sub ecx, eax
push ecx
push eax
call fcn.10074dcf
add esp, 0x14
test eax, eax
je 0x1007dc99
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1006dde1
add esp, 0x14
jmp 0x1007dc9b
xor esi, esi
push 0x100b9aa8
push ebx
push ebp
call fcn.100753f6
add esp, 0xc
test eax, eax
je 0x1007dcbb
push esi
push esi
push esi
push esi
push esi
call fcn.1006dde1
add esp, 0x14
push dword [edi*8 + 0x100ddb8c]
push ebx
push ebp
call fcn.100753f6
add esp, 0xc
test eax, eax
je 0x1007dcdd
push esi
push esi
push esi
push esi
push esi
call fcn.1006dde1
add esp, 0x14
push 0x12010
push 0x100b9a80
push ebp
call fcn.10086cf7
add esp, 0xc
jmp 0x1007dd25
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1007dd25
cmp ebp, 0xffffffff
je 0x1007dd25
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x100ddb8c]
push dword [esi]
call fcn.1006df60
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 0x10086cf7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1007970e
xor ebx, ebx
cmp dword [0x100f8fe4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10086dcd
push 0x100bad14
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10086ead
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100bad08
push edi
call esi
cmp eax, ebx
je 0x10086ead
push eax
call fcn.100796a0
mov dword [esp], 0x100bacf8
push edi
mov dword [0x100f8fe4], eax
call esi
push eax
call fcn.100796a0
mov dword [esp], 0x100bace4
push edi
mov dword [0x100f8fe8], eax
call esi
push eax
call fcn.100796a0
mov dword [0x100f8fec], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1007929c
test eax, eax
pop ecx
pop ecx
je 0x10086d9b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1006dde1
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10086dcd
push 0x100bacc8
push edi
call esi
push eax
call fcn.100796a0
cmp eax, ebx
pop ecx
mov dword [0x100f8ff4], eax
je 0x10086dcd
push 0x100bacb0
push edi
call esi
push eax
call fcn.100796a0
pop ecx
mov dword [0x100f8ff0], eax
mov eax, dword [0x100f8ff0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10086e52
cmp dword [0x100f8ff4], ecx
je 0x10086e52
push eax
call fcn.10079717
push dword [0x100f8ff4]
mov esi, eax
call fcn.10079717
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10086e52
cmp edi, ebx
je 0x10086e52
call esi
cmp eax, ebx
je 0x10086e1f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10086e1f
test byte [ebp - 0x18], 1
jne 0x10086e52
lea eax, [ebp - 0x10]
push eax
call fcn.100792d3
test eax, eax
pop ecx
je 0x10086e3a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1006dde1
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10086e49
or dword [ebp + 0x10], 0x200000
jmp 0x10086e8d
or dword [ebp + 0x10], 0x40000
jmp 0x10086e8d
mov eax, dword [0x100f8fe8]
cmp eax, dword [ebp - 8]
je 0x10086e8d
push eax
call fcn.10079717
cmp eax, ebx
pop ecx
je 0x10086e8d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10086e8d
mov eax, dword [0x100f8fec]
cmp eax, dword [ebp - 8]
je 0x10086e8d
push eax
call fcn.10079717
cmp eax, ebx
pop ecx
je 0x10086e8d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100f8fe4]
call fcn.10079717
cmp eax, ebx
pop ecx
je 0x10086ead
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10086eaf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1008c536
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x100f90c8], 0
push esi
jne 0x1008c4a9
call fcn.1008c3d4
test eax, eax
je 0x1008c4ec
mov eax, dword [0x100f90c8]
cmp eax, 1
jne 0x1008c4ca
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1008c4ec
pop esi
ret
push eax
call dword [0x100f90d0]
test eax, eax
jne 0x1008c534
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 0x1008c4f0
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x100f90c8]
call dword [0x100f90d0]
mov edi, eax
test edi, edi
je 0x1008c517
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x1008c533
lea edi, [esi + 0xff0]
push esi
push dword [0x100f90c8]
call dword [0x100f90cc]
add esi, 0x10
cmp esi, edi
jb 0x1008c51d
mov eax, esi
pop edi
pop esi
ret
jmp 0x1008c496

Function at 0x1008c6b0
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 0x1008c6e7
xor eax, eax
jmp 0x1008c77f
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.10070ca0
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 0x1008c725
jmp 0x1008c763
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x1008c73a
jmp 0x1008c763
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 0x1008c753
jmp 0x1008c763
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + 0x28]
mov dword [ebp - 0xc], edx
xor eax, eax
jne 0x1008c6f9
cmp dword [ebp - 4], 0
je 0x1008c77c
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 0x1008d320
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100dd3e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x100f9220], 0
jne 0x1008d3b8
mov dword [ebp - 0x21c], 0
mov word [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.10070ca0
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 [0x100f9220], ecx
xor eax, eax
cmp dword [0x100f9220], 0
setne al
jmp 0x1008d3bd
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e001
mov esp, ebp
pop ebp
ret
Function at 0x1008e000
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 0x1008e047
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x30]
push eax
call fcn.1008df40
add esp, 4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x30]
push edx
call fcn.1008dfc0
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 8], 0
je 0x1008e069
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
push eax
call fcn.1008d5f0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
je 0x1008e08b
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.1008d5f0
add esp, 4
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x1008e0ab
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 0x1008e0cb
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 0x1008e0eb
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 0x1008e13a
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 0x1008f030
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x100dd3e0]
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.10070ca0
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 0x1008f085
mov eax, 1
jmp 0x1008f0d0
cmp dword [ebp - 0x124], 5
jne 0x1008f0be
cmp dword [ebp - 0x120], 1
jne 0x1008f0a6
movzx edx, word [ebp - 0x14]
cmp edx, 1
jge 0x1008f0a6
xor eax, eax
jmp 0x1008f0d0
cmp dword [ebp - 0x120], 0
jne 0x1008f0bc
movzx eax, word [ebp - 0x14]
cmp eax, 3
jge 0x1008f0bc
xor eax, eax
jmp 0x1008f0d0
jmp 0x1008f0cb
cmp dword [ebp - 0x124], 5
jae 0x1008f0cb
xor eax, eax
jmp 0x1008f0d0
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e001
mov esp, ebp
pop ebp
ret

Function at 0x1008f5b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b12b7
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x100dd3e0]
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.10001705
mov byte [ebp - 4], 1
mov ecx, dword [0x100c80f0]
mov dword [ebp - 0x30], ecx
mov edx, dword [0x100c80f0]
push edx
push 0x5c
lea ecx, [ebp - 0x2c]
call fcn.1003712b
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [0x100c80f0]
je 0x1008f66a
mov ecx, dword [ebp - 0x30]
push ecx
push 0
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.100018d1
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.10001752
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.1000173d
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
lea edx, [ebp - 0x2c]
push edx
call fcn.10001705
mov dword [ebp - 0x64], eax
call fcn.1008f5b0
add esp, 0x1c
push 0
lea ecx, [ebp + 8]
call fcn.10004cdf
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1008f68c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1008f6b5
mov dword [ebp - 0x54], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.1000173d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1000173d
mov eax, dword [ebp - 0x54]
jmp 0x1008f6f7
mov dword [ebp - 0x58], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.1000173d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1000173d
mov eax, dword [ebp - 0x58]
jmp 0x1008f6f7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006e001
mov esp, ebp
pop ebp
ret
Function at 0x1008f710
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x100dd3e0]
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.10070ca0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.100724e0
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 0x1008f7b0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x224], esp
lea edx, [ebp - 0x218]
push edx
call fcn.100016cf
mov dword [ebp - 0x22c], eax
call fcn.1008f5b0
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.10004cdf
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp + 0xc], 0
je 0x1008f7ec
mov ecx, dword [ebp - 0x228]
add ecx, 0x2c
call fcn.10004cdf
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e001
mov esp, ebp
pop ebp
ret 8

Function at 0x1008fea0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x100dd3e0]
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.10070ca0
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.1006e417
add esp, 8
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
je 0x1008ff72
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.100016cf
mov dword [ebp - 0x42c], eax
call fcn.1008f5b0
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.10009d16
mov eax, dword [ebp - 0x424]
add eax, 2
push eax
mov ecx, dword [ebp + 0x10]
call fcn.10009d16
jmp 0x1008ff8c
push 0x100bfe58
mov ecx, dword [ebp + 0xc]
call fcn.10009d16
push 0x100bfe5c
mov ecx, dword [ebp + 0x10]
call fcn.10009d16
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e001
mov esp, ebp
pop ebp
ret
Function at 0x1008ffa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x8c], 0
je 0x1008ffbc
xor eax, eax
jmp 0x10090179
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 4], 0
jne 0x1008ffcc
xor eax, eax
jmp 0x10090179
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x20]
add ecx, 0x10
call fcn.10009d16
mov eax, dword [ebp - 0x20]
cmp dword [eax + 8], 0
jne 0x1008fff8
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x20]
cmp dword [edx + 8], 0
jne 0x10090008
xor eax, eax
jmp 0x10090179
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x88], 0
je 0x10090060
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x88]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x1009004c
push 1
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x24], eax
jmp 0x10090053
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x88], 0
call fcn.1008f030
test eax, eax
je 0x100900ae
call fcn.1008f010
cmp eax, 1
jne 0x100900ae
push 0x5c
call fcn.1006dd6d
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10090093
mov ecx, dword [ebp - 0x14]
call fcn.1008e4c0
mov dword [ebp - 0x28], eax
jmp 0x1009009a
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x88], ecx
jmp 0x100900e7
push 0x30
call fcn.1006dd6d
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x100900ce
mov ecx, dword [ebp - 0x1c]
call fcn.1008dd00
mov dword [ebp - 0x2c], eax
jmp 0x100900d5
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x88], ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.STATIC
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x64], eax
push 0x1008f0e0
push 0xfffffffffffffffc
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x64]
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x8c], 1
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
push 0x1008f840
push 0
push 0
call fcn.1007179c
add esp, 0x18
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0xc], 0
jne 0x1009016d
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x8c], 0
mov ecx, dword [ebp - 0x20]
xor eax, eax
cmp dword [ecx + 0xc], 0
setne al
mov esp, ebp
pop ebp
ret 4