joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4092e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9b5e
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x50d488]
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, edx
mov edi, ecx
cmp dword [esi + 0x14], 8
jb 0x40931b
mov eax, dword [esi]
jmp 0x40931d
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x409325
mov ecx, dword [edi]
push 0
push eax
push ecx
push str.createProcess_filename____s___param____s___show___d
push 0xea
push str.utility::process::create
call fcn.0040c6c0
push edi
mov edx, 0x4ebc0c
lea ecx, [ebp - 0x98]
call fcn.004094b0
push 0x4ebc0c
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00408df0
add esp, 0x20
mov byte [ebp - 4], 2
cmp dword [ebp - 0x84], 8
jb 0x409382
push dword [ebp - 0x98]
call fcn.00494620
add esp, 4
xor eax, eax
mov dword [ebp - 0x84], 7
mov dword [ebp - 0x88], 0
mov word [ebp - 0x98], ax
cmp dword [esi + 0x10], eax
je 0x4093e4
push esi
mov edx, 0x4ebc10
lea ecx, [ebp - 0xb0]
call fcn.004094b0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00408f10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x9c], 8
jb 0x4093e4
push dword [ebp - 0xb0]
call fcn.00494620
add esp, 4
push 0x40
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.0049e980
add esp, 0xc
mov dword [ebp - 0x80], 0x44
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x7c], 0
xor eax, eax
mov dword [ebp - 0x78], 0
cmp dword [ebp - 0x14], 8
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x50], eax
push ecx
push 0
push 0
push 0x10
push 0
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push eax
push 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x54], 1
movdqu xmmword [ebp - 0x38], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x409475
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.createProcess_failed____lastError___d
push 0xfd
push str.utility::process::create
call fcn.0040c6c0
add esp, 0x10
xor esi, esi
jmp 0x409481
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x38]
cmp dword [ebp - 0x14], 8
jb 0x409492
push dword [ebp - 0x28]
call fcn.00494620
add esp, 4
mov eax, esi
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.004944c3
mov esp, ebp
pop ebp
ret

Function at 0x40bf60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x50d488]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.0049e980
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40bfbb
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
mov ecx, dword [ebp - 4]
setae al
xor ecx, ebp
call fcn.004944c3
mov esp, ebp
pop ebp
ret
Function at 0x40c0f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x50d488]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x38
lea eax, [ebp - 0x3c]
mov esi, ecx
push 0
push eax
call fcn.0049e980
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x3c], 0x440
mov dword [ebp - 0x34], str.open
jb 0x40c132
mov eax, dword [esi]
jmp 0x40c134
mov eax, esi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x24], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40c16b
cmp dword [esi + 0x14], 8
jb 0x40c154
mov esi, dword [esi]
push 5
push 0
push esi
push str.iexplore.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004944c3
mov esp, ebp
pop ebp
ret

Function at 0x40c240
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x50d488]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0049e980
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40c294
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004944c3
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x108], 2
jne 0x40c2a2
call fcn.0040c180
push 0
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.004944c3
mov esp, ebp
pop ebp
ret
Function at 0x40e170
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9fc8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x50d488]
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 ebx, ecx
cmp dword [ebx + 0x48], 0
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x54], 0
je 0x40e1f9
cmp dword [ebx + 0x4c], 8
lea edi, [ebx + 0x38]
jb 0x40e1c6
mov eax, dword [edi]
jmp 0x40e1c8
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e1f6
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.00407640
jmp 0x40e30c
mov edi, dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x18], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00407640
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x50]
push 1
xor eax, eax
mov dword [ebp - 0x3c], 7
push 0x4eb980
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], ax
call fcn.00407010
lea edx, [ebp - 0x50]
mov ecx, edi
call fcn.0040a1e0
test al, al
sete al
cmp dword [ebp - 0x3c], 8
mov byte [ebp - 0x2d], al
jb 0x40e269
push dword [ebp - 0x50]
call fcn.00494620
mov al, byte [ebp - 0x2d]
add esp, 4
test al, al
je 0x40e27c
push 1
push 0x4eb980
lea ecx, [ebp - 0x2c]
call fcn.00408fe0
push 2
push 0x4ebefc
push dword [ebx + 0x10]
push ecx
mov ecx, ebx
call fcn.00406330
lea ecx, [ebp - 0x2c]
test eax, eax
jne 0x40e29e
push 7
push str.ldinst_
jmp 0x40e2a5
push 9
push str.LDPlayer_
call fcn.00408fe0
push 0xffffffffffffffff
push 0
push dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
call fcn.00408f10
push 4
push str..exe
lea ecx, [ebp - 0x2c]
call fcn.00408fe0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jae 0x40e2fe
mov eax, dword [ebp - 0x1c]
inc eax
je 0x40e303
add eax, eax
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.00494680
mov ecx, dword [ebp - 0x18]
add esp, 0xc
jmp 0x40e303
mov eax, dword [ebp - 0x2c]
mov dword [esi], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov eax, esi
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.004944c3
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e550
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1c8
mov eax, dword [0x50d488]
xor eax, esp
mov dword [esp + 0x1c4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x40e5aa
push 0
push str.CoInitialize_error
push str.Error
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1c4]
xor ecx, esp
call fcn.004944c3
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x38]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
sub esp, 0x18
xor ecx, ecx
mov eax, esp
sub esp, 0x18
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
mov word [eax], cx
mov ecx, esp
xor eax, eax
push eax
push 0x4eb4fc
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
call fcn.00407010
call fcn.0043e5b0
mov dword [0x516380], 0x4408e0
call fcn.0040c8f0
push 0x4ecbbc
push str.downloader_start._version_is_:__s_
push 0x62
push str.wWinMain
call fcn.0040c6c0
add esp, 0x40
push str.commoninit_end
push 0x64
push str.wWinMain
call fcn.0040c6c0
add esp, 8
mov ecx, esi
call fcn.0040e370
add esp, 4
push str.duilibInit2_end
push 0x67
push str.wWinMain
call fcn.0040c6c0
add esp, 0xc
call fcn.0040e420
xorps xmm0, xmm0
mov dword [esp + 0x20], 0
push edi
movdqa xmmword [esp + 0x14], xmm0
lea ecx, [esp + 0x14]
push esi
mov dword [esp + 0x18], vtable.DNDownloaderImpl.0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call fcn.0040f2e0
test al, al
je 0x40e696
call fcn.00451bb0
lea ecx, [esp + 0x10]
call fcn.0040f600
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x1cc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004944c3
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40f1c0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov dword [0x516388], 0
push 1
mov ecx, dword [esi + 4]
call fcn.0044b420
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [esi + 4]
call fcn.0044b420
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [esi + 4]
push 5
call fcn.0044b420
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x40f6b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ca305
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x50d488]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push esi
push edi
mov eax, dword [0x50d488]
xor eax, esp
push eax
lea eax, [esp + 0x188]
mov dword fs:[0], eax
mov edi, ecx
push str.player__create_main_window...
push 0x37
push str.DNDownloaderImpl::showMainFrame
call fcn.0040c6c0
add esp, 0xc
cmp dword [edi + 4], 0
jne 0x40f793
push 0x5ec
call fcn.00494625
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
mov dword [esp + 0x190], 0
test esi, esi
je 0x40f74b
push 0x5ec
push 0
push esi
call fcn.0049e980
add esp, 0xc
mov ecx, esi
call fcn.0040fc30
jmp 0x40f74d
xor eax, eax
mov dword [esp + 0x190], 0xffffffff
mov esi, 0x86000000
mov dword [edi + 4], eax
call fcn.0040bf60
test al, al
mov ecx, 0x860c0000
push 0
cmove esi, ecx
mov ecx, dword [edi + 4]
push esi
push 0
push 0
call fcn.0044b2e0
mov ecx, dword [edi + 4]
push 0x83
call fcn.0044b730
mov ecx, dword [edi + 4]
call fcn.0044b0c0
mov ecx, dword [edi + 4]
push 1
push 1
call fcn.0044b7b0
mov ecx, dword [edi + 4]
call fcn.0044b420
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [edi + 4]
call fcn.0044b420
mov ecx, eax
call fcn.0040bff0
push 0x118
lea eax, [esp + 0x64]
push 0
push eax
call fcn.0049e980
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [esp + 0x68]
add esp, 0xc
mov dword [esp + 0x5c], 0x11c
push eax
call esi
test eax, eax
jne 0x40f7f9
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], 0x114
push eax
call esi
cmp dword [esp + 0x60], 6
jae 0x40f8ea
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x2f
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x4ed1f8
mov word [ecx], ax
call fcn.00407010
sub esp, 0x18
mov dword [esp + 0x1c0], 1
mov ecx, esp
mov dword [esp + 0x50], esp
xor eax, eax
push 2
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x4ed258
mov word [ecx], ax
call fcn.00407010
sub esp, 0x18
mov bl, 1
mov dword [esp + 0x60], esp
mov eax, esp
mov dword [eax], vtable.._AV___Func_impl_U___Callable_obj_V_lambda_26bf3e4d337edbd6bd8e61cfb3e93524____0A__std__V__allocator_V___Func_class_X___V_std___2_X___V_std__.0
mov dword [eax + 4], edi
mov dword [eax + 0x10], eax
sub esp, 0x18
mov byte [esp + 0x1f0], 4
mov ecx, esp
xor eax, eax
push 2
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x4eb35c
mov word [ecx], ax
call fcn.00407010
mov dl, bl
mov byte [esp + 0x1f0], 2
lea ecx, [esp + 0x84]
call fcn.00403fb0
add esp, 0x30
mov esi, eax
mov byte [esp + 0x1c0], 5
mov ecx, dword [edi + 4]
call fcn.0044b420
mov edx, esi
mov byte [esp + 0x1c0], 6
mov ecx, eax
call fcn.0040f950
add esp, 0x30
lea ecx, [esp + 0x24]
call fcn.00407760
mov ecx, dword [esp + 0x188]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.004944c3
mov esp, ebp
pop ebp
ret
Function at 0x40fed0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x50d488]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x11c]
push 0x118
push 0
push eax
mov dword [ebp - 0x124], 0
call fcn.0049e980
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40ff39
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
mov ecx, esi
push 0xffffffffffffffff
jb 0x40ff4d
push str.mainframe.xml
jmp 0x40ff52
push str.mainframe_xp.xml
call fcn.0044a050
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004944c3
mov esp, ebp
pop ebp
ret 4
Function at 0x4146e0
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
push 0x10
lea esi, [ebx + 0x550]
mov dword [ebx + 0x5b8], esi
call fcn.00494625
mov edi, eax
add esp, 4
test edi, edi
je 0x414721
xorps xmm0, xmm0
movdqu xmmword [edi], xmm0
mov dword [edi], vtable.MemberFuncRunable_class_DNDownloaderMainFrame_.0
mov dword [edi + 4], ebx
mov dword [edi + 8], 0x414bd0
mov dword [edi + 0xc], 0
jmp 0x414723
xor edi, edi
cmp dword [esi + 4], 0
jne 0x414759
push 0
push 0
push 0
push 0
mov byte [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push esi
push 0x407f10
push 0
push 0
mov dword [esi + 8], eax
mov dword [esi], edi
call fcn.00494dfe
add esp, 0x18
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
ret

Function at 0x416170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb26b
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x50d488]
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 esi, dword [0x517344]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x34], 0
test esi, esi
jne 0x4161dd
push 0x50
call fcn.00494625
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x4161ce
mov ecx, eax
call fcn.0040d610
mov esi, eax
jmp 0x4161d0
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [0x517344], esi
push 2
push 0x4ebefc
push dword [esi + 0x10]
push ecx
mov ecx, esi
call fcn.00406330
test eax, eax
jne 0x4161fa
mov eax, 0x84
jmp 0x416217
push 2
push 0x4ec278
push dword [esi + 0x10]
push ecx
mov ecx, esi
call fcn.00406330
neg eax
sbb eax, eax
neg eax
add eax, 0x8a
movzx eax, ax
push 0x4ee418
push eax
call fcn.0044e940
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x416251
push eax
mov dword [edi + 0x14], 7
mov ecx, edi
mov dword [edi + 0x10], eax
push 0x4eb4fc
mov word [edi], ax
call fcn.00407010
jmp 0x4162d4
push ebx
call fcn.0044e940
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x30], eax
push ebx
test eax, eax
jne 0x41627a
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x4eb4fc
mov ecx, edi
call fcn.00407110
jmp 0x4162d4
call fcn.0044e940
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x30]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
shr esi, 1
push esi
mov word [ebp - 0x2c], cx
lea ecx, [ebp - 0x2c]
push eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
call fcn.00407010
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.00406fa0
cmp dword [ebp - 0x18], 8
jb 0x4162d4
push dword [ebp - 0x2c]
call fcn.00494620
add esp, 4
mov eax, edi
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.004944c3
mov esp, ebp
pop ebp
ret 4
Function at 0x4176d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov dword [ebp + 8], eax
add ecx, 4
pop ebp
jmp fcn.00410d90

Function at 0x4191b0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [0x51638c]
push edi
mov eax, dword [esi + 0x38c]
test eax, eax
je 0x4191dc
mov ecx, dword [0x516384]
push eax
call fcn.0040cb70
mov dword [esi + 0x38c], 0
mov eax, dword [esi + 0x390]
test eax, eax
je 0x4191fc
mov ecx, dword [0x516384]
push eax
call fcn.0040cb70
mov dword [esi + 0x390], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push dword [esi + 0x2c0]
call edi
mov eax, dword [esi + 0x9c]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x41924a
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x419238
push 0xffffffffffffffff
push dword [esi + 0x9c]
call ebx
push dword [esi + 0x9c]
call edi
mov dword [esi + 0x9c], 0
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x419262
mov eax, dword [ecx]
call dword [eax]
mov dword [esi + 0x98], 0
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x419279
push eax
call edi
mov dword [esi + 0xa0], 0
mov eax, dword [esi + 0x2b0]
test eax, eax
je 0x4192b2
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4192a0
push 0xffffffffffffffff
push dword [esi + 0x2b0]
call ebx
push dword [esi + 0x2b0]
call edi
mov dword [esi + 0x2b0], 0
mov ecx, dword [esi + 0x2ac]
test ecx, ecx
je 0x4192ca
mov eax, dword [ecx]
call dword [eax]
mov dword [esi + 0x2ac], 0
mov eax, dword [esi + 0x2b4]
test eax, eax
je 0x4192e1
push eax
call edi
mov dword [esi + 0x2b4], 0
mov eax, dword [esi + 0x110]
test eax, eax
je 0x41931a
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x419308
push 0xffffffffffffffff
push dword [esi + 0x110]
call ebx
push dword [esi + 0x110]
call edi
mov dword [esi + 0x110], 0
mov ecx, dword [esi + 0x10c]
pop ebx
test ecx, ecx
je 0x419333
mov eax, dword [ecx]
call dword [eax]
mov dword [esi + 0x10c], 0
mov eax, dword [esi + 0x114]
test eax, eax
je 0x41934a
push eax
call edi
mov dword [esi + 0x114], 0
lea ecx, [esi + 0x1e4]
call fcn.0042a8c0
lea ecx, [esi + 0x11c]
call fcn.0042a8c0
lea ecx, [esi + 0x180]
call fcn.0042a8c0
lea ecx, [esi + 0x248]
call fcn.0042a8c0
mov ecx, dword [0x516384]
lea eax, [esi + 0x2bc]
push eax
mov byte [esi + 0x440], 1
call fcn.0040ca80
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4193a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 0x26
mov edi, ecx
mov dword [ebp - 4], 7
xor eax, eax
mov dword [ebp - 8], 0
push str.2266E930_7040_4A6B_B7C8_E44663785cdd
lea ecx, [ebp - 0x18]
mov word [ebp - 0x18], ax
call fcn.00407010
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
cmovae eax, dword [ebp - 0x18]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x4193ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4193ff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp dword [ebp - 4], 8
jb 0x419410
push dword [ebp - 0x18]
call fcn.00494620
add esp, 4
test esi, esi
jne 0x41948e
push 0x26
xor eax, eax
mov dword [ebp - 4], 7
push str.2266E930_7040_4A6B_B7C8_E44663785cdd
lea ecx, [ebp - 0x18]
mov dword [ebp - 8], esi
mov word [ebp - 0x18], ax
call fcn.00407010
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
push esi
cmovae eax, dword [ebp - 0x18]
push eax
push esi
push esi
call dword [sym.imp.USER32.dll_FindWindowExW]
cmp dword [ebp - 4], 8
mov esi, eax
jb 0x41945b
push dword [ebp - 0x18]
call fcn.00494620
add esp, 4
test esi, esi
je 0x41946f
push 0
push 0
push 0x2b73
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
push str.DNDownloaderModel::popupExistPwnd_exist
push 0xc7
push str.DNDownloaderModel::popupExistPwnd
call fcn.0040c6c0
add esp, 0xc
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.CCmdLine::popupExistPwnd_not_exist
push 0xcb
push str.DNDownloaderModel::popupExistPwnd
mov dword [edi + 0x2c0], esi
call fcn.0040c6c0
add esp, 0xc
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4194c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x50d488]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov dword [ebp - 0x814], 0
push 0x7fe
push eax
mov word [ebp - 0x804], ax
mov edi, edx
lea eax, [ebp - 0x802]
mov esi, ecx
push eax
call fcn.0049e980
add esp, 0xc
mov dword [ebp - 0x810], 0
cmp dword [edi + 0x14], 8
jb 0x419513
mov edi, dword [edi]
lea eax, [ebp - 0x810]
push eax
push edi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x41956e
mov dword [ebp - 0x808], eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
mov dword [ebp - 0x80c], 0x800
push eax
lea eax, [ebp - 0x808]
push eax
push 0
push str.InstallDir
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x804], ax
jne 0x41958e
xor ecx, ecx
jmp 0x4195a6
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419597
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x804]
mov ecx, esi
push eax
call fcn.00407010
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004944c3
mov esp, ebp
pop ebp
ret