joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405e2f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004035d5
and dword [ebp - 4], 0
cmp dword [0x41fc54], 0
mov ebx, eax
jne 0x405ee0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405f91
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405f91
push eax
call fcn.00403563
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41fc54], eax
call esi
push eax
call fcn.00403563
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41fc58], eax
call esi
push eax
call fcn.00403563
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41fc5c], eax
call esi
push eax
call fcn.00403563
pop ecx
mov dword [0x41fc64], eax
test eax, eax
je 0x405ee0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403563
pop ecx
mov dword [0x41fc60], eax
mov eax, dword [0x41fc60]
cmp eax, ebx
je 0x405f38
cmp dword [0x41fc64], ebx
je 0x405f38
push eax
call fcn.004035de
push dword [0x41fc64]
mov esi, eax
call fcn.004035de
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405f38
test edi, edi
je 0x405f38
call esi
test eax, eax
je 0x405f2f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405f2f
test byte [ebp - 0xc], 1
jne 0x405f38
or dword [ebp + 0x10], 0x200000
jmp 0x405f71
mov eax, dword [0x41fc58]
cmp eax, ebx
je 0x405f71
push eax
call fcn.004035de
pop ecx
test eax, eax
je 0x405f71
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405f71
mov eax, dword [0x41fc5c]
cmp eax, ebx
je 0x405f71
push eax
call fcn.004035de
pop ecx
test eax, eax
je 0x405f71
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41fc54]
call fcn.004035de
pop ecx
test eax, eax
je 0x405f91
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405f93
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Check mutex on windows
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x405018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0x4050b8
push 0x208
call fcn.00401794
mov esi, eax
add esp, 8
test esi, esi
je 0x4011ce
push edi
push 0x208
push 0
push esi
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x41c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x24
mov dword [ebp - 0x420], 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
push 0x105
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x420]
push eax
push 0x105
lea eax, [ebp - 0x41c]
push eax
push 0x4031b4
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x401102
mov edi, dword [ebp - 0x420]
xor ecx, ecx
nop dword [eax]
cmp ecx, 0x103
je 0x4010fc
mov eax, 0xcccccccd
mul edi
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub edi, eax
mov ax, word [edi*2 + str.0123456789]
mov edi, edx
mov word [esi + ecx*2], ax
inc ecx
test edi, edi
jne 0x4010d0
xor eax, eax
mov word [esi + ecx*2], ax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x40113f
push str.GlobalARM_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x4011ab
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.thsnYaVieBoda
push 0x104
push esi
call fcn.00401440
mov edi, str..pipe32B6B37A_4A7D_4e00_95F2_6F0BF3DE3E00
mov edx, 0x104
mov ecx, ebx
sub edi, ebx
nop dword [eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40116e
movzx eax, word [edi + ecx]
test ax, ax
je 0x40116e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x401150
test edx, edx
lea eax, [ecx - 2]
pop edi
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
je 0x4011ce
push esi
push 0x104
push ebx
call fcn.00401440
test eax, eax
js 0x4011ce
push esi
call fcn.0040178f
add esp, 4
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040179d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40112f
cmp dword [ebp + 0xc], 0
jne 0x40112f
push str.TsnIorcAeBoda
jmp 0x401134
mov ecx, dword [ebp - 4]
mov eax, 8
pop esi
xor ecx, ebp
pop ebx
call fcn.0040179d
mov esp, ebp
pop ebp
ret
Function at 0x4011f0
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push str.GlobalARM_Update_Mutex
push 0
push 0x100000
call edi
test eax, eax
je 0x401216
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401245
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
jne 0x401245
push str.GlobalAcro_Update_Mutex
push 0
push 0x100000
call edi
test eax, eax
je 0x40123e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401245
call esi
cmp eax, 2
je 0x401282
push 0x4050b8
push 0x208
call fcn.00401794
mov esi, eax
add esp, 8
test esi, esi
je 0x401282
push 0x208
push 0
push esi
call sub.VCRUNTIME140.dll_memset
push 0
push esi
call section..text
add esp, 0x14
test eax, eax
je 0x401288
push esi
call fcn.0040178f
add esp, 4
pop edi
xor eax, eax
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0x3e8
jae 0x40129a
add eax, 0x3e8
push ebx
push 1
push eax
push esi
call fcn.00401300
xor ebx, ebx
add esp, 0xc
test eax, eax
sete bl
test eax, eax
jne 0x4012e3
mov edi, dword [ebp + 8]
cmp edi, 2
je 0x4012e3
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 1
jne 0x4012d0
push 0
push 0xce
jmp 0x4012da
test edi, edi
jne 0x4012e3
push edi
push 0xcc
push esi
call fcn.00401300
add esp, 0xc
push esi
call fcn.0040178f
add esp, 4
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x401500
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402590
mov eax, dword fs:[0]
push eax
sub esp, 0x974
mov eax, dword [0x405018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x928]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
cmp byte [ebp - 0x928], 1
jne 0x401723
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push 0
push str.AcrobatSDIWindow
call esi
test eax, eax
jne 0x401723
push eax
push str.AdobeAcrobat
call esi
test eax, eax
jne 0x401723
push eax
push str.AcrobatTimerWnd
call esi
test eax, eax
jne 0x401723
push 2
call fcn.004011f0
add esp, 4
test eax, eax
jne 0x401723
push 0x104
push eax
lea eax, [ebp - 0x31c]
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
push 0x100
push eax
mov word [ebp - 0x92c], ax
mov byte [ebp - 0x92a], al
lea eax, [ebp - 0x218]
push eax
call sub.VCRUNTIME140.dll_memset
push 0x100
lea eax, [ebp - 0x51c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x100
lea eax, [ebp - 0x41c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x30
lea eax, [ebp - 0x31c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401723
push 0x100
lea eax, [ebp - 0x41c]
push eax
push 0x100
lea eax, [ebp - 0x51c]
push eax
push 0x100
lea eax, [ebp - 0x218]
push eax
push 3
lea eax, [ebp - 0x92c]
push eax
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__splitpath_s]
add esp, 0x24
test eax, eax
jne 0x401723
push 0x104
push eax
lea eax, [ebp - 0x118]
push eax
call sub.VCRUNTIME140.dll_memset
push 0x403288
push str.AcroRd32
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x92c]
push eax
lea eax, [ebp - 0x118]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__makepath_s]
add esp, 0x24
test eax, eax
jne 0x401723
push 0x44
push eax
lea eax, [ebp - 0x980]
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [ebp - 0x91c]
mov dword [ebp - 0x980], 0x44
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x93c], xmm0
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x118]
push eax
push str.__s___slMode
lea eax, [ebp - 0x91c]
push 0x400
push eax
call fcn.00401760
add esp, 0x28
lea eax, [ebp - 0x93c]
push eax
lea eax, [ebp - 0x980]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x91c]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040179d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4086b0
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50942d
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x546330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], 0
test esi, esi
je 0x408754
cmp word [esi], di
je 0x408754
test eax, eax
je 0x40870f
cmp word [eax], di
je 0x40870f
push edi
push edi
push eax
push esi
push edi
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
js 0x408754
jmp 0x40874f
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004e2580
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0
push 0x104
push eax
push esi
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToCacheFileW]
test eax, eax
js 0x408754
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 1
mov esi, dword [ebp + 0x34]
test esi, esi
je 0x408789
mov dword [ebp - 0x424], edi
lea ecx, [ebp - 0x424]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 8]
mov esi, dword [ebp + 0x34]
test esi, esi
je 0x408789
mov edx, dword [esi]
lea eax, [ebp + 0x10]
cmp esi, eax
setne cl
movzx ecx, cl
push ecx
mov ecx, esi
call dword [edx + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bd6ac
mov esp, ebp
pop ebp
ret 0x30
Function at 0x4087b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 8], esi
push edi
test ebx, ebx
jne 0x4087d1
xor edi, edi
jmp 0x40892a
cmp dword [ebp + 0x14], 0
je 0x408906
push 0x1440
call fcn.004bd6ba
mov ecx, dword [ebp + 0x40]
xor edx, edx
add esp, 4
mov dword [esp + 0x54], edx
mov edi, eax
test ecx, ecx
je 0x408806
mov edx, dword [ecx]
lea eax, [esp + 0x30]
push eax
call dword [edx]
mov edx, eax
mov dword [esp + 0x54], edx
mov ecx, dword [ebp + 8]
lea esi, [edi + 0x1418]
mov dword [edi], ecx
mov dword [edi + 0x1414], 1
mov dword [esi + 0x24], 0
test edx, edx
je 0x408830
mov eax, dword [edx]
mov ecx, edx
push esi
call dword [eax]
mov dword [esi + 0x24], eax
push 0x1000
lea esi, [edi + 4]
push 0
push esi
call fcn.004e2580
push 0x800
push ebx
push esi
call fcn.004ea855
push 0x410
lea esi, [edi + 0x1004]
push 0
push esi
call fcn.004e2580
mov eax, dword [esp + 0x30]
add esp, 0x24
test eax, eax
je 0x408879
push 0x208
push eax
push esi
call fcn.004ea855
add esp, 0xc
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x408893
mov edx, dword [ecx]
lea eax, [esp + 0x30]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push 0
push edi
push 0x4085d0
push 0
push 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x2c], 0
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], 0x4085d0
mov dword [esp + 0x28], vtable.CSimpleThread.0
call fcn.004e6399
add esp, 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], vtable.CSimpleThread.0
test eax, eax
je 0x4088ff
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
jmp 0x40892a
sub esp, 0x28
mov edi, esp
mov dword [edi + 0x24], 0
mov ecx, dword [ebp + 0x40]
test ecx, ecx
je 0x408921
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
push esi
push ebx
call fcn.004086b0
mov edi, eax
mov ecx, dword [ebp + 0x40]
test ecx, ecx
je 0x408942
mov esi, dword [ecx]
lea eax, [ebp + 0x1c]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x3c

Function at 0x4097c0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x4097e5
test byte [ebp - 4], 7
je 0x4097e5
mov eax, 1
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x4098a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.004be2f0
mov eax, dword [0x546330]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
mov edi, dword [ebp + 0x10]
push 0x3ffe
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
push eax
call fcn.004e2580
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x4099a3
test edi, edi
je 0x4099a3
lea eax, [ebp - 0x4008]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x4099a3
cmp eax, 0x3fff
ja 0x4099a3
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4099a3
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x533a50
lea eax, [ebp - 0x4004]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4099a3
mov esi, dword [ebp + 0x14]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.004e2580
mov ecx, dword [ebp - 0x400c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
lea eax, [esi - 1]
push eax
push edi
call fcn.004074c0
add esp, 0x28
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bd6ac
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004bd6ac
mov esp, ebp
pop ebp
ret 0x10
Function at 0x410c40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509d2d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x546330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
cmp dword [edi + 0x190], 0
je 0x410c84
xor bl, bl
jmp 0x410e30
lea ecx, [edi + 0x34]
mov dword [edi], 0x203
cmp ecx, eax
je 0x410ca3
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x410c9c
mov eax, dword [eax]
push edx
push eax
call fcn.00406e80
mov al, byte [ebp + 0x10]
lea ecx, [edi + 0x198]
mov byte [edi + 0xb0], al
lea eax, [ebp + 0x14]
push eax
call fcn.00413be0
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
push 0x14
mov byte [ebp - 4], 1
call fcn.004bd6ba
mov esi, eax
add esp, 4
mov dword [esi], 1
mov dword [esi + 4], 2
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [ebp - 0x14], esi
mov eax, 1
lock xadd dword [esi], eax
mov dword [ebp - 0x20], esi
push 0xc
mov byte [ebp - 4], 3
call fcn.004bd6ba
add esp, 4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], eax
mov dword [eax], esi
mov dword [eax + 4], 0x40ff70
mov dword [eax + 8], edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
push ecx
push 0
push eax
push 0x4153d0
push 0
push 0
call fcn.004e6399
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x410e5e
lea esi, [edi + 0x18c]
mov edi, 0xfffffffe
lea eax, [ebp - 0x1c]
cmp esi, eax
je 0x410ddb
mov byte [ebp - 4], 5
cmp dword [esi + 4], 0
je 0x410d83
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x410d79
call fcn.0040dd80
mov ecx, esi
call fcn.0040df30
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 0
cmp dword [esi + 4], 0
jne 0x410e6c
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [esi], ecx
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x14]
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], edx
mov dword [esi + 8], ecx
test eax, eax
je 0x410dde
lea ecx, [eax + 4]
mov edx, edi
lock xadd dword [ecx], edx
and edx, 0xfffffffe
cmp edx, 2
jne 0x410ddb
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x410ddb
push 0x14
push eax
call fcn.004bd6ef
add esp, 8
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 6
cmp dword [ebp - 0x18], 0
je 0x410dfe
test edx, edx
je 0x410df3
mov ecx, edx
call fcn.0040dd80
lea ecx, [ebp - 0x1c]
call fcn.0040df30
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x410e28
lea eax, [edx + 4]
lock xadd dword [eax], edi
and edi, 0xfffffffe
cmp edi, 2
jne 0x410e28
or eax, 0xffffffff
lock xadd dword [edx], eax
cmp eax, 1
jne 0x410e28
push 0x14
push edx
call fcn.004bd6ef
add esp, 8
cmp dword [ebp - 0x18], 0
jne 0x410e6c
mov bl, 1
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x410e48
mov esi, dword [ecx]
lea eax, [ebp + 0x14]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
push 6
mov dword [ebp - 0x18], 0
call fcn.0041bb3c
call fcn.004eb33c
int3
Function at 0x410e80
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509d65
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
mov eax, dword [0x546330]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ecx + 0x80]
lea edx, [ecx + 0x34]
push eax
lea ecx, [ebp - 0x44]
call fcn.004140d0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0x34], 0
je 0x411022
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411022
push 0x13
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push str.__sourcenewinstall
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
call fcn.00405590
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0
cmovae eax, dword [ebp - 0x44]
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x80]
push eax
movlpd qword [ebp - 0x78], xmm0
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x7c], 0x40
mov dword [ebp - 0x64], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x410fba
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410fb0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411074
push ecx
push edx
call fcn.004bd6ef
add esp, 8
push 3
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push 0x534288
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
call fcn.00405590
xor dl, dl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00417cd0
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x411022
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x411018
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411079
push ecx
push edx
call fcn.004bd6ef
add esp, 8
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jb 0x411058
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41104e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411079
push ecx
push edx
call fcn.004bd6ef
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004bd6ac
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004e61e1
call fcn.004e61e1
int3
Function at 0x411470
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509e25
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x546330]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, word [ebp + 8]
mov ebx, dword [ebp + 0x10]
push 0x53429c
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4115bb
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4115bb
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x4115bb
lea eax, [ebp - 0x40]
mov dword [ebp - 0x74], vtable.std::_Func_impl_no_alloc_class__private:_bool___thiscall_Installer::UnzipResToTempDir_unsigned_long_int__wchar_t_const___wchar_t_const__::_2::_lambda_1___void___.0
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x18], 0
push eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.004151e0
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x411530
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x74]
cmp ecx, eax
setne al
push eax
call edx
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x411543
xor bl, bl
jmp 0x411588
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x411567
xor bl, bl
jmp 0x411581
push 0
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
test esi, esi
je 0x411588
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 2
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4115b7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4115b7
mov edx, dword [esi]
lea eax, [ebp - 0x3c]
cmp esi, eax
setne cl
movzx ecx, cl
push ecx
mov ecx, esi
call dword [edx + 0x10]
mov al, bl
jmp 0x4115bd
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004bd6ac
mov esp, ebp
pop ebp
ret 0xc