joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006fe20
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push esi
mov esi, eax
cmp esi, 0x7ff80000
push edi
lea edi, [esi - 0x7ff80000]
ja 0x1006fe38
mov edi, 0x10000
cmp esi, 0x80000000
lea ebx, [esi + 0x7ff80000]
jb 0x1006fe4b
mov ebx, 0xfff80000
mov eax, dword [0x1010944c]
test eax, eax
mov edx, dword [0x10109448]
jne 0x1006fe65
test edx, edx
je 0x1006fe78
mov eax, edx
mov dword [0x1010944c], eax
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1006fe78
cmp ecx, edi
jb 0x1006fe78
cmp ecx, ebx
jbe 0x1006ff7d
test edx, edx
mov eax, edx
mov dword [0x1010944c], eax
je 0x1006fea6
test eax, eax
je 0x1006fe9a
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1006fe9a
cmp ecx, edi
jb 0x1006fe9a
cmp ecx, ebx
jbe 0x1006ff78
mov eax, dword [eax + 4]
test eax, eax
jne 0x1006fe87
mov dword [0x1010944c], eax
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, 0x40000000
jbe 0x1006fed0
lea eax, [esi - 0x40000000]
push edi
call fcn.1006fd70
add esp, 4
test eax, eax
jne 0x1006ff39
cmp esi, 0x40000000
jae 0x1006fee5
push ebx
lea eax, [esi + 0x40000000]
call fcn.1006fcb0
add esp, 4
test eax, eax
jne 0x1006ff39
cmp esi, 0x40000000
jbe 0x1006ff06
push esi
lea eax, [esi - 0x40000000]
call fcn.1006fcb0
add esp, 4
test eax, eax
jne 0x1006ff39
cmp esi, 0x40000000
jae 0x1006ff1b
lea eax, [esi + 0x40000000]
push esi
call fcn.1006fd70
add esp, 4
test eax, eax
jne 0x1006ff39
push edi
mov eax, esi
call fcn.1006fd70
add esp, 4
test eax, eax
jne 0x1006ff39
push ebx
mov eax, esi
call fcn.1006fcb0
add esp, 4
test eax, eax
je 0x1006ffa4
mov dword [eax], 0x52727464
mov dword [eax + 8], 0
mov ecx, dword [0x10109448]
mov dword [eax + 4], ecx
mov dword [0x1010944c], eax
mov dword [0x10109448], 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 0x1006ff66
mov dword [eax + 8], edx
jmp 0x1006ff7d
mov dword [0x1010944c], eax
mov esi, dword [eax + 8]
cmp esi, edi
jb 0x1006ffa4
cmp esi, ebx
ja 0x1006ffa4
mov edx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [eax + 8], edx
call fcn.10074c40
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 0x1006ffe0
Capabilities:
Hook routines via microsoft detours

Disassembly:
cmp dword [esi], 0x52727464
je 0x1006ffeb
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 0x1007000e
cmp eax, esi
jb 0x10070023
cmp eax, edi
jae 0x10070023
add ecx, 1
add edx, 0x48
cmp ecx, 0x38d
jb 0x10070000
mov eax, 1
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x100700f0
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10109458], eax
je 0x10070106
mov eax, 0x10dd
pop ecx
ret
push ebx
push ebp
push esi
mov esi, dword [0x10109468]
xor ebp, ebp
cmp esi, ebp
push edi
je 0x1007015c
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 0x1007014b
mov edi, dword [esi + 0x10]
cmp edi, ebp
je 0x1007014b
call fcn.1006ffb0
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call fcn.10071fb0
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x10070120
mov dword [0x10109468], ebp
call fcn.1006fc30
mov esi, dword [0x10109464]
cmp esi, ebp
je 0x1007018e
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.10071fb0
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x10070177
pop edi
pop esi
mov dword [0x10109464], ebp
mov dword [0x10109458], ebp
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x100704c0
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x1010945c]
test eax, eax
jne 0x1007053c
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x100704de
xor eax, eax
pop edi
ret 4
push esi
push 8
call fcn.10071ce7
mov esi, eax
add esp, 4
test esi, esi
jne 0x100704f4
lea edi, [eax + 8]
jmp 0x10070511
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10070528
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.10071fb0
add esp, 4
pop esi
mov dword [0x1010945c], edi
mov eax, edi
mov dword [0x10109460], 0
pop edi
ret 4
mov eax, dword [0x10109464]
mov dword [esi + 4], edi
mov dword [esi], eax
mov dword [0x10109464], esi
pop esi
xor eax, eax
pop edi
ret 4
Function at 0x10071fa1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100ee3e0]
jne 0x10071fab
repz ret
jmp fcn.1007df3e
Function at 0x10081e1d
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 + 0x100eeb88]
je 0x10081e38
inc edi
cmp edi, 0x17
jb 0x10081e29
cmp edi, 0x17
jae 0x10081fb8
push ebp
push 3
call fcn.1008b154
cmp eax, 1
pop ecx
je 0x10081f84
push 3
call fcn.1008b154
test eax, eax
pop ecx
jne 0x10081e6c
cmp dword [0x101096c8], 1
je 0x10081f84
cmp ebx, 0xfc
je 0x10081fb7
push 0x100c6c38
mov ebx, 0x314
push ebx
mov ebp, 0x10109c10
push ebp
call fcn.100796d7
add esp, 0xc
test eax, eax
je 0x10081ea2
push esi
push esi
push esi
push esi
push esi
call fcn.10071d5b
add esp, 0x14
push 0x104
mov esi, 0x10109c29
push esi
push 0
mov byte [0x10109d2d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10081ee6
push 0x100c6c20
push 0x2fb
push esi
call fcn.100796d7
add esp, 0xc
test eax, eax
je 0x10081ee6
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10071d5b
add esp, 0x14
push esi
call fcn.10071f00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10081f2b
push esi
call fcn.10071f00
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10109f24
push 0x100c6c1c
sub ecx, eax
push ecx
push eax
call fcn.10078f82
add esp, 0x14
test eax, eax
je 0x10081f2b
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10071d5b
add esp, 0x14
jmp 0x10081f2d
xor esi, esi
push 0x100c6c18
push ebx
push ebp
call fcn.10079666
add esp, 0xc
test eax, eax
je 0x10081f4d
push esi
push esi
push esi
push esi
push esi
call fcn.10071d5b
add esp, 0x14
push dword [edi*8 + 0x100eeb8c]
push ebx
push ebp
call fcn.10079666
add esp, 0xc
test eax, eax
je 0x10081f6f
push esi
push esi
push esi
push esi
push esi
call fcn.10071d5b
add esp, 0x14
push 0x12010
push 0x100c6bf0
push ebp
call fcn.1008af97
add esp, 0xc
jmp 0x10081fb7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10081fb7
cmp ebp, 0xffffffff
je 0x10081fb7
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x100eeb8c]
push dword [esi]
call fcn.10071f00
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 0x1008af97
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1007d94f
xor ebx, ebx
cmp dword [0x1010a16c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1008b06d
push 0x100c7e84
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1008b14d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100c7e78
push edi
call esi
cmp eax, ebx
je 0x1008b14d
push eax
call fcn.1007d8e1
mov dword [esp], 0x100c7e68
push edi
mov dword [0x1010a16c], eax
call esi
push eax
call fcn.1007d8e1
mov dword [esp], 0x100c7e54
push edi
mov dword [0x1010a170], eax
call esi
push eax
call fcn.1007d8e1
mov dword [0x1010a174], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1007d4dd
test eax, eax
pop ecx
pop ecx
je 0x1008b03b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10071d5b
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1008b06d
push 0x100c7e38
push edi
call esi
push eax
call fcn.1007d8e1
cmp eax, ebx
pop ecx
mov dword [0x1010a17c], eax
je 0x1008b06d
push 0x100c7e20
push edi
call esi
push eax
call fcn.1007d8e1
pop ecx
mov dword [0x1010a178], eax
mov eax, dword [0x1010a178]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1008b0f2
cmp dword [0x1010a17c], ecx
je 0x1008b0f2
push eax
call fcn.1007d958
push dword [0x1010a17c]
mov esi, eax
call fcn.1007d958
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1008b0f2
cmp edi, ebx
je 0x1008b0f2
call esi
cmp eax, ebx
je 0x1008b0bf
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1008b0bf
test byte [ebp - 0x18], 1
jne 0x1008b0f2
lea eax, [ebp - 0x10]
push eax
call fcn.1007d514
test eax, eax
pop ecx
je 0x1008b0da
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10071d5b
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1008b0e9
or dword [ebp + 0x10], 0x200000
jmp 0x1008b12d
or dword [ebp + 0x10], 0x40000
jmp 0x1008b12d
mov eax, dword [0x1010a170]
cmp eax, dword [ebp - 8]
je 0x1008b12d
push eax
call fcn.1007d958
cmp eax, ebx
pop ecx
je 0x1008b12d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1008b12d
mov eax, dword [0x1010a174]
cmp eax, dword [ebp - 8]
je 0x1008b12d
push eax
call fcn.1007d958
cmp eax, ebx
pop ecx
je 0x1008b12d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1010a16c]
call fcn.1007d958
cmp eax, ebx
pop ecx
je 0x1008b14d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1008b14f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10090519
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x1010a228], 0
push esi
jne 0x1009048c
call fcn.100903b7
test eax, eax
je 0x100904cf
mov eax, dword [0x1010a228]
cmp eax, 1
jne 0x100904ad
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x100904cf
pop esi
ret
push eax
call dword [0x1010a230]
test eax, eax
jne 0x10090517
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 0x100904d3
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x1010a228]
call dword [0x1010a230]
mov edi, eax
test edi, edi
je 0x100904fa
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x10090516
lea edi, [esi + 0xff0]
push esi
push dword [0x1010a228]
call dword [0x1010a22c]
add esi, 0x10
cmp esi, edi
jb 0x10090500
mov eax, esi
pop edi
pop esi
ret
jmp 0x10090479

Function at 0x10090710
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 0x10090747
xor eax, eax
jmp 0x100907df
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.10074c40
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 0x10090785
jmp 0x100907c3
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x1009079a
jmp 0x100907c3
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 0x100907b3
jmp 0x100907c3
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + 0x28]
mov dword [ebp - 0xc], edx
xor eax, eax
jne 0x10090759
cmp dword [ebp - 4], 0
je 0x100907dc
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 0x10091380
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100ee3e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1010a3ac], 0
jne 0x10091418
mov dword [ebp - 0x21c], 0
mov word [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.10074c40
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 [0x1010a3ac], ecx
xor eax, eax
cmp dword [0x1010a3ac], 0
setne al
jmp 0x1009141d
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071fa1
mov esp, ebp
pop ebp
ret
Function at 0x10092170
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 0x100921b7
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x30]
push eax
call fcn.10092020
add esp, 4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x30]
push edx
call fcn.100920a0
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 8], 0
je 0x100921d9
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
push eax
call fcn.10091650
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
je 0x100921fb
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.10091650
add esp, 4
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x1009221b
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 0x1009223b
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 0x1009225b
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 0x100922aa
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 0x100931a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x100ee3e0]
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.10074c40
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 0x100931f5
mov eax, 1
jmp 0x10093240
cmp dword [ebp - 0x124], 5
jne 0x1009322e
cmp dword [ebp - 0x120], 1
jne 0x10093216
movzx edx, word [ebp - 0x14]
cmp edx, 1
jge 0x10093216
xor eax, eax
jmp 0x10093240
cmp dword [ebp - 0x120], 0
jne 0x1009322c
movzx eax, word [ebp - 0x14]
cmp eax, 3
jge 0x1009322c
xor eax, eax
jmp 0x10093240
jmp 0x1009323b
cmp dword [ebp - 0x124], 5
jae 0x1009323b
xor eax, eax
jmp 0x10093240
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071fa1
mov esp, ebp
pop ebp
ret

Function at 0x10093430
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bbfa5
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x100ee3e0]
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.10001704
mov byte [ebp - 4], 1
mov ecx, dword [0x100d7968]
mov dword [ebp - 0x30], ecx
mov edx, dword [0x100d7968]
push edx
push 0x5c
lea ecx, [ebp - 0x2c]
call fcn.100375bd
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [0x100d7968]
je 0x100934ea
mov ecx, dword [ebp - 0x30]
push ecx
push 0
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.100018a7
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.10001751
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.1000173c
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
lea edx, [ebp - 0x2c]
push edx
call fcn.10001704
mov dword [ebp - 0x64], eax
call fcn.10093430
add esp, 0x1c
push 0
lea ecx, [ebp + 8]
call fcn.10004d78
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1009350c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10093535
mov dword [ebp - 0x54], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.1000173c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1000173c
mov eax, dword [ebp - 0x54]
jmp 0x10093577
mov dword [ebp - 0x58], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.1000173c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1000173c
mov eax, dword [ebp - 0x58]
jmp 0x10093577
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10071fa1
mov esp, ebp
pop ebp
ret
Function at 0x10093790
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x100ee3e0]
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.10074c40
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.1007623e
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 0x10093830
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x224], esp
lea edx, [ebp - 0x218]
push edx
call fcn.100016ce
mov dword [ebp - 0x22c], eax
call fcn.10093430
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.10004d78
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp + 0xc], 0
je 0x1009386c
mov ecx, dword [ebp - 0x228]
add ecx, 0x2c
call fcn.10004d78
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071fa1
mov esp, ebp
pop ebp
ret 8

Function at 0x10094400
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x100ee3e0]
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.10074c40
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.100723b7
add esp, 8
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
je 0x100944d2
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.100016ce
mov dword [ebp - 0x42c], eax
call fcn.10093430
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.1000a010
mov eax, dword [ebp - 0x424]
add eax, 2
push eax
mov ecx, dword [ebp + 0x10]
call fcn.1000a010
jmp 0x100944ec
push 0x100ccfc8
mov ecx, dword [ebp + 0xc]
call fcn.1000a010
push 0x100ccfcc
mov ecx, dword [ebp + 0x10]
call fcn.1000a010
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071fa1
mov esp, ebp
pop ebp
ret
Function at 0x10094500
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 + 0x98], 0
je 0x1009451c
xor eax, eax
jmp 0x100946d9
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 4], 0
jne 0x1009452c
xor eax, eax
jmp 0x100946d9
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x20]
add ecx, 0x10
call fcn.1000a010
mov eax, dword [ebp - 0x20]
cmp dword [eax + 8], 0
jne 0x10094558
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 0x10094568
xor eax, eax
jmp 0x100946d9
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 + 0x94], 0
je 0x100945c0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x94]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x100945ac
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 0x100945b3
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x94], 0
call fcn.100931a0
test eax, eax
je 0x1009460e
call fcn.10093180
cmp eax, 1
jne 0x1009460e
push 0x5c
call fcn.10071ce7
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x100945f3
mov ecx, dword [ebp - 0x14]
call fcn.10092630
mov dword [ebp - 0x28], eax
jmp 0x100945fa
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 + 0x94], ecx
jmp 0x10094647
push 0x30
call fcn.10071ce7
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1009462e
mov ecx, dword [ebp - 0x1c]
call fcn.10091de0
mov dword [ebp - 0x2c], eax
jmp 0x10094635
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 + 0x94], 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 + 0x70], eax
push 0x10093250
push 0xfffffffffffffffc
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x70]
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x98], 1
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
push 0x10093c10
push 0
push 0
call fcn.10075573
add esp, 0x18
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0xc], 0
jne 0x100946cd
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x98], 0
mov ecx, dword [ebp - 0x20]
xor eax, eax
cmp dword [ecx + 0xc], 0
setne al
mov esp, ebp
pop ebp
ret 4