joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41867c
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x47b528]
push esi
test eax, eax
jne 0x4186a1
push fcn.004187a9
push 0x10
push 0x258
call fcn.0041e635
mov dword [0x47b528], eax
push dword [esp + 0xc]
push eax
call fcn.0041e5a1
mov esi, eax
test esi, esi
je 0x4187a2
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x4186c3
mov edi, 0x45d06c
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x4186d3
xor eax, eax
cmp word [ebx], ax
jne 0x4186d8
mov ebx, 0x45d268
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x479288]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x418789
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x418739
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x41873d
push 0x45d284
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x41873d
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x418761
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x418777
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x418775
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x479288]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x4187a0
cmp dword [esp + 0x14], 0xffffffff
je 0x418794
mov esi, dword [esp + 0x14]
push esi
push dword [0x47b528]
call fcn.0041e513
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x41a774
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x47b534], eax
test eax, eax
je 0x41a7a2
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x47b530], eax
lea eax, [ebp - 0x114]
mov dword [0x47b538], 1
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41a804
cmp dword [ebp - 0x104], 1
jne 0x41a7d9
and dword [0x47b538], 0
jmp 0x41a81c
cmp dword [ebp - 0x104], 2
jne 0x41a804
cmp dword [ebp - 0x110], 5
jb 0x41a7d0
jne 0x41a804
mov eax, dword [ebp - 0x10c]
neg eax
sbb eax, eax
and eax, dword [0x47b538]
mov dword [0x47b538], eax
jmp 0x41a809
mov eax, dword [0x47b538]
test eax, eax
je 0x41a81c
call fcn.0041a477
neg eax
sbb eax, eax
and dword [0x47b538], eax
mov esp, ebp
pop ebp
ret
Function at 0x41b880
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x41b8b2
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41b8ad
cmp dword [esp + 0xc], esi
je 0x41b8c9
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret

Function at 0x41e3f1
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x47b5d8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x41e452
push esi
push dword [0x47b5d4]
push 8
push dword [0x479288]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x47b5d8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x47b5d0]
jmp 0x41e442
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x41e440
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x41e430
push edi
push 0x41e38f
call fcn.004559a1
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x41e45c
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ecx, esi
push edi
and ecx, 3
je 0x41e472
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x47b5d4]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x41e4a9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x479288]
mov dword [0x47b5d8], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x47b5d8]
call ebx
mov eax, dword [0x47b5d4]
mov edi, eax
add eax, esi
push eax
push dword [0x47b5d8]
mov dword [0x47b5d4], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x479288]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x47b5d8]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x41e4e9
test ebx, ebx
je 0x41e50a
push 0x14
push 0x47b5d0
call fcn.0041ed6f
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x41e50a
lea ecx, [edi + ebp]
push ecx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x41ee80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4688b8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x41eec6
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x47bb58]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x41eee7
mov edx, dword [ebp - 4]
add edx, 0xa
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x47bb58]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
shr edx, 1
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0041f510
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x41ef70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4688b8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 2
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret

Function at 0x41f1a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4688b8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x41f1c4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
sub edx, 4
cmp dword [ebp - 8], edx
jl 0x41f212
mov eax, dword [ebp - 8]
add eax, 0x4000
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x47bb58]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x41f240
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4688b8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4
Function at 0x41f3f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4688b8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x41f42e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x41f42e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x41f430
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x41f5a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4688b8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x435ed0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x435f65
mov ecx, dword [esi]
xor eax, eax
push ebx
push ebp
push edi
mov byte [ecx + 0x16], al
xor edi, edi
mov ecx, dword [esi]
mov byte [ecx + 0x17], al
mov ecx, dword [esi]
mov byte [ecx + 0x18], al
mov ecx, dword [esi]
mov byte [ecx + 0x19], al
mov ebx, dword [esi + 4]
test ebx, ebx
jle 0x435f1b
mov ebp, dword [esi]
movzx edx, byte [edi + ebp]
mov ecx, eax
shr ecx, 0x18
inc edi
xor edx, ecx
shl eax, 8
xor eax, dword [edx*4 + 0x45db10]
cmp edi, ebx
jl 0x435f01
mov ebx, dword [esi + 0xc]
xor edi, edi
test ebx, ebx
jle 0x435f41
mov ebp, dword [esi + 8]
movzx edx, byte [edi + ebp]
mov ecx, eax
shr ecx, 0x18
inc edi
xor edx, ecx
shl eax, 8
xor eax, dword [edx*4 + 0x45db10]
cmp edi, ebx
jl 0x435f27
mov ecx, dword [esi]
mov edx, eax
shr edx, 8
pop edi
pop ebp
mov byte [ecx + 0x16], al
mov ecx, dword [esi]
pop ebx
mov byte [ecx + 0x17], dl
mov edx, eax
mov ecx, dword [esi]
shr edx, 0x10
shr eax, 0x18
mov byte [ecx + 0x18], dl
mov ecx, dword [esi]
mov byte [ecx + 0x19], al
pop esi
ret

Function at 0x43b580
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push edi
mov edi, dword [eax + 0x14]
test edi, edi
je 0x43b5e3
mov edx, dword [eax + 0x10]
mov ecx, dword [eax]
push ebp
push esi
mov esi, dword [eax + 0x1c]
mov ebp, dword [ecx + edx*4]
cmp esi, edi
jae 0x43b5db
push ebx
mov ebx, dword [eax + 0x18]
mov ecx, 0x18
mov edx, ebp
sub ecx, esi
add esi, 8
shr edx, cl
mov ecx, ebx
and edx, 0xff
shr ecx, 8
xor edx, ecx
movzx ebx, bl
shl ebx, 8
xor ebx, dword [edx*4 + 0x477200]
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], esi
cmp esi, edi
jb 0x43b5a1
mov ax, bx
pop ebx
pop esi
pop ebp
pop edi
ret
mov ax, word [eax + 0x18]
pop esi
pop ebp
pop edi
ret
mov ax, word [eax + 0x18]
pop edi
ret
Function at 0x43c260
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, dword [edi + 0x10]
test esi, esi
je 0x43c298
mov ecx, dword [edi]
xor eax, eax
cmp dword [edi + 0xc], eax
setne al
sub eax, esi
add eax, dword [edi + 8]
shl eax, 2
push eax
lea eax, [ecx + esi*4]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov dword [edi + 0x10], 0
sub dword [edi + 8], esi
mov eax, dword [edi + 4]
mov edx, dword [edi + 8]
sub eax, edx
mov ecx, dword [edi + 0xc]
shl eax, 2
sub eax, ecx
mov dword [esp + 0xc], eax
jne 0x43c2b3
pop edi
xor eax, eax
pop esi
ret
push ebx
push ebp
mov ebp, dword [edi]
lea ebx, [edx*4]
lea esi, [ebx + ebp]
add esi, ecx
test ecx, ecx
je 0x43c2e7
mov ecx, dword [ebx + ebp]
mov edx, ecx
shr edx, 8
mov eax, ecx
shl eax, 8
xor edx, eax
shl ecx, 8
and edx, 0xff00ff
xor edx, ecx
rol edx, 0x10
mov dword [ebx + ebp], edx
push dword [edi + 0x24]
lea eax, [esp + 0x18]
push eax
mov eax, dword [edi + 0x20]
push esi
call eax
add esp, 0xc
test eax, eax
jne 0x43c301
pop ebp
pop ebx
pop edi
pop esi
ret
mov ebx, dword [edi + 8]
mov edx, dword [esp + 0x14]
mov ebp, dword [edi + 0xc]
add ebp, 3
lea ecx, [edx + ebx*4]
add ebp, ecx
shr ebp, 2
cmp ebx, ebp
jae 0x43c34d
lea ebx, [ebx]
mov eax, dword [edi]
mov ecx, dword [eax + ebx*4]
lea esi, [eax + ebx*4]
mov edx, ecx
mov eax, ecx
shr edx, 8
inc ebx
shl eax, 8
xor edx, eax
shl ecx, 8
and edx, 0xff00ff
xor edx, ecx
rol edx, 0x10
mov dword [esi], edx
cmp ebx, ebp
jb 0x43c320
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 8]
pop ebp
pop ebx
lea ecx, [edx + eax*4]
add ecx, dword [edi + 0xc]
mov eax, ecx
and ecx, 3
shr eax, 2
mov dword [edi + 8], eax
mov eax, 1
mov dword [edi + 0xc], ecx
pop edi
pop esi
ret

Function at 0x43c920
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [0x47b620], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x58], 0
mov dword [eax + 0x5c], 0
ret

Function at 0x43d600
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor al, al
test edx, edx
je 0x43d625
push esi
mov esi, dword [esp + 8]
nop
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx eax, al
xor ecx, eax
mov al, byte [ecx + 0x45efb8]
dec edx
jne 0x43d610
pop esi
ret

Function at 0x445360
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x445380
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x445380
mov eax, dword [eax + 0x44]
test eax, eax
je 0x445380
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4559a1
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov edi, ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov esi, 0x47b62c
cmp dword [0x47b628], edi
jne 0x4559d0
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x47b628], 1
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x47b624]
test esi, esi
je 0x455a2b
test edi, edi
jne 0x455b72
xor eax, eax
lea ecx, [esi + 0x114]
inc eax
cmp ebx, dword [ecx]
je 0x455a01
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x4559f2
jmp 0x455a1d
push dword [esp + 0x1c]
add eax, 0x84
push dword [esp + 0x1c]
lea eax, [esi + eax*4]
push eax
call fcn.0045594a
xor edi, edi
add esp, 0xc
inc edi
mov esi, dword [esi]
test esi, esi
jne 0x4559e1
test edi, edi
jne 0x455b72
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [esp + 0x10]
push ebp
push ebp
push 0x100000
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x455b72
mov esi, dword [0x47b624]
jmp 0x455a6c
cmp dword [esi + 0xc], 0x3f
jl 0x455b0d
mov esi, dword [esi]
test esi, esi
jne 0x455a60
push 0x310
push 8
push dword [0x479288]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
test esi, esi
je 0x455b6c
push ebp
push 1
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [esi + 8], eax
test eax, eax
je 0x455b5e
push ebp
push ebp
push esi
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x1c]
push 0x455b85
mov dword [esi + 0x114], ebx
lea ebx, [esi + 0x214]
push 0x1000
mov dword [esi + 0x14], eax
mov dword [ebx], ebp
push ebp
mov dword [esi + 0xc], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x455b59
push eax
call edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebx
call fcn.0045594a
mov eax, dword [0x47b624]
add esp, 0xc
mov dword [esi + 4], ebp
mov dword [esi], eax
test eax, eax
je 0x455b05
mov dword [eax + 4], esi
mov dword [0x47b624], esi
jmp 0x455b72
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x10]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
mov dword [esi + ecx*4 + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + eax*4 + 0x110], ebx
mov eax, dword [esi + 0xc]
mov dword [esi + eax*4 + 0x210], ebp
mov eax, dword [esi + 0xc]
add eax, 0x84
lea eax, [esi + eax*4]
push eax
call fcn.0045594a
add esp, 0xc
inc dword [esi + 0xc]
push ebp
push 1
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x455b72
push dword [esi + 8]
call edi
push esi
push ebp
push dword [0x479288]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x10]
call edi
push 0x47b62c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x456a70
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x34
push edi
test ecx, ecx
je 0x4580a6
mov edi, dword [ecx + 0x1c]
mov dword [esp + 0x14], edi
test edi, edi
je 0x4580a6
cmp dword [ecx + 0xc], 0
je 0x4580a6
cmp dword [ecx], 0
jne 0x456aa8
cmp dword [ecx + 4], 0
jne 0x4580a6
cmp dword [edi], 0xb
jne 0x456ab3
mov dword [edi], 0xc
mov eax, dword [ecx + 0xc]
mov edx, dword [edi + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x10]
push ebx
mov ebx, dword [ecx]
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
xor eax, eax
push ebp
mov ebp, dword [ecx + 4]
mov dword [esp + 0x28], eax
mov eax, dword [edi]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x38], ebp
push esi
mov esi, dword [edi + 0x3c]
cmp eax, 0x1e
ja 0x457425
lea ebx, [edi + 0x54]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x14]
jmp 0x456b00
jmp dword [eax*4 + 0x4580b0]
pop esi
pop ebp
pop ebx
mov eax, 0xfffffffe
pop edi
add esp, 0x34
ret
mov eax, 0xfffffffe
pop edi
add esp, 0x34
ret
Function at 0x401ee0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5badf6
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x64ef64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x57c]
mov dword [edi], vtable.CInstallerWnd.5.0
mov dword [edi + 0x14], vtable.CInstallerWnd.4.0
mov dword [edi + 0x24], vtable.CInstallerWnd.3.0
mov dword [edi + 0x28], vtable.CInstallerWnd.2.0
mov dword [edi + 0x2c], vtable.CInstallerWnd.1.0
mov dword [edi + 0x578], 0x60c12c
test eax, eax
je 0x401f5d
push 0x4e20
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0x57c]
test eax, eax
je 0x401f5d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [edi + 0x618]
test ecx, ecx
je 0x401fbf
push dword [ebp - 0x10]
mov edx, dword [edi + 0x61c]
push ecx
call fcn.00407eb0
mov esi, dword [edi + 0x618]
mov eax, 0x92492493
mov ecx, dword [edi + 0x620]
add esp, 8
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00407980
mov dword [edi + 0x618], 0
mov dword [edi + 0x61c], 0
mov dword [edi + 0x620], 0
mov dword [ebp - 4], 0
mov esi, dword [edi + 0x60c]
test esi, esi
je 0x401ff1
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x401ff1
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x401ff1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [edi + 0x604]
lea esi, [edi + 0x5f0]
cmp eax, 8
jb 0x40200d
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00408aa0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x402023
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x5cc]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x402041
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00408aa0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x402057
mov esi, dword [esi]
xor eax, eax
mov ecx, edi
mov word [esi], ax
mov dword [edi + 0x578], 0x61001c
mov dword [edi + 0x588], 1
call sym.InstallerYQS.exe_public_virtual:_void___thiscall_DuiLib::WindowImplBase::destructor_void_
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4036b0
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bb03b
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x64ef64]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 3
jb 0x403887
cmp dword [esi + 0x14], 8
jb 0x4036f4
mov eax, dword [esi]
jmp 0x4036f6
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x403887
push 3
push 0
lea eax, [ebp - 0x454]
mov ecx, esi
push eax
call fcn.004072d0
cmp dword [eax + 0x14], 8
jb 0x40371f
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
mov eax, dword [ebp - 0x440]
setne bl
cmp eax, 8
jb 0x40374a
inc eax
lea ecx, [ebp - 0x454]
push eax
push dword [ebp - 0x454]
call fcn.00408aa0
test bl, bl
je 0x403758
mov eax, 3
jmp 0x40388c
cmp dword [esi + 0x14], 8
jb 0x403762
mov eax, dword [esi]
jmp 0x403764
mov eax, esi
lea ecx, [ebp - 0x42c]
push ecx
push 1
push 0x60b86c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x403787
mov eax, 4
jmp 0x40388c
push 0
push 0x4000100
push 2
push 0
push 0
push 0x10000000
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x40377d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
lea eax, [ebp - 0x434]
push eax
lea edx, [ebp - 0x43c]
movlpd qword [ebp - 0x43c], xmm0
mov ecx, esi
movlpd qword [ebp - 0x434], xmm0
call fcn.00413850
add esp, 4
cmp dword [ebp - 0x430], 0
ja 0x4037fd
jb 0x4037f3
cmp dword [ebp - 0x434], 0x1400000
jae 0x4037fd
mov eax, 5
jmp 0x40388c
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00599690
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x46c]
call fcn.004089c0
lea eax, [ebp - 0x434]
mov dword [ebp - 4], 0
push eax
lea edx, [ebp - 0x43c]
lea ecx, [ebp - 0x46c]
call fcn.00413850
add esp, 4
lea ecx, [ebp - 0x46c]
call fcn.00405540
cmp dword [ebp - 0x430], 0
ja 0x403883
jb 0x40387c
cmp dword [ebp - 0x434], 0x1400000
jae 0x403883
mov eax, 6
jmp 0x40388c
xor eax, eax
jmp 0x40388c
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0054af65
mov esp, ebp
pop ebp
ret 4
Function at 0x404040
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
mov eax, dword [0x64ef64]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x44
lea eax, [ebp - 0x858]
mov edi, edx
push 0
push eax
mov esi, ecx
call fcn.00599690
push 0x800
lea eax, [ebp - 0x808]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x868], xmm0
call fcn.00599690
add esp, 0x18
cmp dword [edi + 0x14], 8
jb 0x404091
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x404099
mov esi, dword [esi]
push edi
push esi
lea eax, [ebp - 0x808]
push str.__s___s
push eax
call fcn.00408310
add esp, 0x10
lea eax, [ebp - 0x868]
push eax
lea eax, [ebp - 0x858]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40413c
push dword [ebp + 0xc]
push dword [ebp - 0x868]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x80c], eax
test eax, eax
jne 0x40410b
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 0x868]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x868]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x864]
call esi
xor eax, eax
cmp dword [ebp - 0x80c], eax
sete al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054af65
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0054af65
mov esp, ebp
pop ebp
ret