joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x407e63
xor al, al
pop esi
pop ebp
ret 4
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
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
push 0
push 0
mov dword [esi], eax
call fcn.004d065e
add esp, 0x18
mov dword [esi + 4], eax
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x407ea0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x407ed9
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x407ec9
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov ecx, dword [esi]
test ecx, ecx
je 0x407ee9
mov eax, dword [ecx]
call dword [eax]
mov dword [esi], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x407efe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
pop esi
pop ebp
ret 4

Function at 0x407f30
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x55b4e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 8
push esi
push edi
mov edi, edx
jb 0x407f4c
mov ecx, dword [ecx]
push 0
push 0x80
push 3
push 0
push 1
push accept
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407fa5
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
test eax, eax
je 0x407f9f
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cfd33
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.004cfd33
mov esp, ebp
pop ebp
ret

Function at 0x408130
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [eax + 0x14], 8
jb 0x408141
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4081ae
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x408178
mov al, 1
pop esi
pop ebp
ret 4
push 0
push 0
push 0
push 2
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
test eax, eax
je 0x4081a7
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
test eax, eax
jne 0x408171
mov ecx, esi
call fcn.004081c0
xor al, al
pop esi
pop ebp
ret 4
Function at 0x408430
Capabilities:
Move file

Disassembly:
push esi
push edi
mov edi, edx
mov esi, ecx
cmp dword [edi + 0x14], 8
jb 0x408440
mov eax, dword [edi]
jmp 0x408442
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x40844a
mov ecx, dword [esi]
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x40845d
pop edi
mov al, 1
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 0x14], 8
jb 0x40846b
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x408473
mov esi, dword [esi]
push eax
push 3
push edi
push esi
push str.move_file_from____s___to____s___flag___d_failed__error___d.
push 0xbe
push str.utility::ufile::moveFile
call fcn.0040c6c0
add esp, 0x1c
xor al, al
pop edi
pop esi
ret

Function at 0x4085f0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x55b4e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov dword [ebp - 0x214], 0
push 0x208
push eax
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x20e]
push eax
call fcn.004d8de0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x210], ax
jne 0x408663
xor ecx, ecx
jmp 0x40867f
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408670
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00407010
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004cfd33
mov esp, ebp
pop ebp
ret
Function at 0x4090c0
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x55b4e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
cmp dword [edi + 0x14], 8
jb 0x4090e3
mov ecx, dword [edi]
jmp 0x4090e5
mov ecx, edi
cmp dword [esi + 0x14], 8
jb 0x4090ef
mov edx, dword [esi]
jmp 0x4090f1
mov edx, esi
movzx eax, byte [ebp + 0xc]
push eax
push 1
push ecx
push edx
push str.shell_filename____s___param____s___runas___d__show___d
push 0xb
push str.utility::process::shell
call fcn.0040c6c0
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.004d8de0
add esp, 0x28
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x409153
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, str.open
mov eax, str.runas
mov edx, 5
cmovb eax, ecx
xor ecx, ecx
cmp byte [ebp + 0xc], cl
cmovne ecx, edx
cmp dword [edi + 0x14], 8
jb 0x40917c
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x409184
mov esi, dword [esi]
push ecx
push 0
push edi
push esi
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
cmp eax, 0x20
jg 0x4091c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.shellEx_failed____lastError___d
push 0x18
push str.utility::process::shell
call fcn.0040c6c0
add esp, 0x10
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cfd33
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.004cfd33
mov esp, ebp
pop ebp
ret
Function at 0x4092e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b51e
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x55b4e0]
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, 0x5385fc
lea ecx, [ebp - 0x98]
call fcn.004094b0
push 0x5385fc
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.004b6db0
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, 0x538600
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.004b6db0
add esp, 4
push 0x40
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.004d8de0
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.004b6db0
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.004cfd33
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 [0x55b4e0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.004d8de0
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.004cfd33
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 [0x55b4e0]
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.004d8de0
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.004cfd33
mov esp, ebp
pop ebp
ret

Function at 0x40c240
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x55b4e0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004d8de0
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.004cfd33
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.004cfd33
mov esp, ebp
pop ebp
ret
Function at 0x40e170
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b988
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x55b4e0]
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 0x538370
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.004b6db0
mov al, byte [ebp - 0x2d]
add esp, 4
test al, al
je 0x40e27c
push 1
push 0x538370
lea ecx, [ebp - 0x2c]
call fcn.00408fe0
push 2
push 0x5388ec
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.004cfee0
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.004cfd33
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 [0x55b4e0]
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.004cfd33
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 0x537eec
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
call fcn.00407010
call fcn.0043f090
mov dword [0x564828], 0x4413c0
call fcn.0040c8f0
push 0x5395ac
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.0048d3d0
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.004cfd33
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40f1c0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov dword [0x564830], 0
push 1
mov ecx, dword [esi + 4]
call fcn.00486c40
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [esi + 4]
call fcn.00486c40
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [esi + 4]
push 5
call fcn.00486c40
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 0x50bcc5
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x55b4e0]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push esi
push edi
mov eax, dword [0x55b4e0]
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.004cfe82
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.004d8de0
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.00486b00
mov ecx, dword [edi + 4]
push 0x83
call fcn.00486f50
mov ecx, dword [edi + 4]
call fcn.004868e0
mov ecx, dword [edi + 4]
push 1
push 1
call fcn.00486fd0
mov ecx, dword [edi + 4]
call fcn.00486c40
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [edi + 4]
call fcn.00486c40
mov ecx, eax
call fcn.0040bff0
push 0x118
lea eax, [esp + 0x64]
push 0
push eax
call fcn.004d8de0
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 0x539be8
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 0x539c48
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 0x537d4c
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.00486c40
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.004cfd33
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 [0x55b4e0]
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.004d8de0
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.00485870
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004cfd33
mov esp, ebp
pop ebp
ret 4
Function at 0x414800
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.004cfe82
mov edi, eax
add esp, 4
test edi, edi
je 0x414841
xorps xmm0, xmm0
movdqu xmmword [edi], xmm0
mov dword [edi], vtable.MemberFuncRunable_class_DNDownloaderMainFrame_.0
mov dword [edi + 4], ebx
mov dword [edi + 8], 0x414ce0
mov dword [edi + 0xc], 0
jmp 0x414843
xor edi, edi
cmp dword [esi + 4], 0
jne 0x414879
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.004d065e
add esp, 0x18
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
ret

Function at 0x416330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cc9b
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x55b4e0]
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 [0x5657ec]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x34], 0
test esi, esi
jne 0x41639d
push 0x50
call fcn.004cfe82
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x41638e
mov ecx, eax
call fcn.0040d610
mov esi, eax
jmp 0x416390
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [0x5657ec], esi
push 2
push 0x5388ec
push dword [esi + 0x10]
push ecx
mov ecx, esi
call fcn.00406330
test eax, eax
jne 0x4163ba
mov eax, 0x84
jmp 0x4163d7
push 2
push 0x538c68
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 0x53ae38
push eax
call fcn.0048a160
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x416411
push eax
mov dword [edi + 0x14], 7
mov ecx, edi
mov dword [edi + 0x10], eax
push 0x537eec
mov word [edi], ax
call fcn.00407010
jmp 0x416494
push ebx
call fcn.0048a160
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x30], eax
push ebx
test eax, eax
jne 0x41643a
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x537eec
mov ecx, edi
call fcn.00407110
jmp 0x416494
call fcn.0048a160
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 0x416494
push dword [ebp - 0x2c]
call fcn.004b6db0
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.004cfd33
mov esp, ebp
pop ebp
ret 4