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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push str.IsCreateLink_Start
mov edi, 0x55b31c
xor ebx, ebx
push edi
call fcn.004a9913
pop ecx
pop ecx
push ebx
push str.Softwareliebao
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0049dd67
test eax, eax
je 0x49c8f4
call fcn.00420bd2
push eax
lea ecx, [ebp - 4]
call fcn.00423e41
lea eax, [ebp - 4]
push eax
push 0x4fcdc4
lea ecx, [ebp - 0x14]
call fcn.0049e0a2
mov esi, dword [ebp - 4]
push esi
push str.IsCreateLink_strPid:_s
push edi
call fcn.004a9913
add esp, 0xc
cmp dword [ebp - 0x14], ebx
je 0x49c788
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push 0x4fd448
push reloc.WS2_32.dll_accept
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
call fcn.0049dd67
push 1
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push reloc.WS2_32.dll_accept
lea ecx, [ebp - 0x14]
mov edi, eax
call fcn.0049dd67
push eax
push edi
push str.IsCreateLink_bExist1:_d__bExist2:_d
push 0x55b31c
mov dword [ebp - 4], eax
call fcn.004a9913
add esp, 0x10
test edi, edi
jne 0x49c919
cmp dword [ebp - 4], ebx
jne 0x49c919
call fcn.00420bd2
push eax
lea ecx, [ebp - 4]
call fcn.00423e41
push 0x104
lea ecx, [ebp - 4]
call fcn.00423e74
push eax
push ebx
push 0x19
push ebx
call fcn.0049e38c
add esp, 0x10
lea ecx, [ebp - 4]
push 0xffffffffffffffff
call fcn.00425bfa
lea eax, [ebp - 4]
push eax
call fcn.0049dfdb
mov edi, str.qQ
push edi
call fcn.004241d7
pop ecx
pop ecx
push eax
push edi
lea ecx, [ebp - 4]
call fcn.0043be5f
mov edi, dword [ebp - 4]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call ebx
push 0
push edi
push str.IsCreateLink_strDesktopPath:_ws__bCreate:_d
push 0x55b31c
mov dword [ebp - 8], eax
call fcn.004a9913
add esp, 0x10
call fcn.00420bd2
push eax
lea ecx, [ebp - 4]
call fcn.00423e41
push 0x104
lea ecx, [ebp - 4]
call fcn.00423e74
push eax
xor eax, eax
push eax
push 0x19
push eax
call fcn.0049e38c
add esp, 0x10
lea ecx, [ebp - 4]
push 0xffffffffffffffff
call fcn.00425bfa
lea eax, [ebp - 4]
push eax
call fcn.0049dfdb
mov dword [esp], 0x4fd5a8
call fcn.004241d7
pop ecx
push eax
push 0x4fd5a8
lea ecx, [ebp - 4]
call fcn.0043be5f
push dword [ebp - 4]
call ebx
xor ebx, ebx
mov dword [ebp - 0xc], eax
push ebx
push edi
push str.IsCreateLink_strDesktopPath:_ws__bCreate:_d
push 0x55b31c
call fcn.004a9913
add esp, 0x10
cmp dword [ebp - 8], ebx
jne 0x49c8d4
cmp dword [ebp - 0xc], ebx
jne 0x49c8d4
inc ebx
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004206ab
lea ecx, [edi - 0x10]
call fcn.004206ab
lea ecx, [esi - 0x10]
call fcn.004206ab
mov edi, 0x55b31c
push str.IsCreateLink_End
push edi
call fcn.004a9913
pop ecx
pop ecx
cmp dword [ebp - 0x14], 0
je 0x49c910
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esi - 0x10]
call fcn.004206ab
jmp 0x49c901
Function at 0x49cb1a
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
add eax, 0x41
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ecx + 4]
jb 0x49cb7e
ja 0x49cb79
mov eax, dword [ebp - 0x14]
cmp eax, dword [ecx]
jb 0x49cb7e
xor eax, eax
inc eax
jmp 0x49cb80
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret

Function at 0x49cc23
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x228]
push ebx
push esi
push edi
xor edi, edi
push eax
inc edi
call fcn.00425b88
lea eax, [ebp - 0x228]
push eax
call fcn.0049dfdb
mov esi, str.liebao.exe
push esi
call fcn.004241d7
pop ecx
pop ecx
push eax
push esi
lea ecx, [ebp - 0x228]
call fcn.0043be5f
push edi
call fcn.0049bd6d
mov esi, dword [ebp - 0x228]
pop ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebx, ebx
test eax, eax
je 0x49cd50
lea eax, [ebp - 0x228]
mov dword [ebp - 0x22c], ebx
push eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x228], ebx
push eax
push esi
call fcn.0049c67c
add esp, 0xc
test al, al
je 0x49cd50
lea eax, [ebp - 0x224]
push ebx
push eax
call fcn.0049c489
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.004bf240
mov ecx, dword [ebp - 0x228]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x22c]
movzx eax, cx
push eax
shr ecx, 0x10
lea eax, [ebp - 0x20c]
push ecx
push 0x50de60
push 0x104
push eax
call fcn.004c03dd
cmp dword [ebp - 0x210], 8
lea eax, [ebp - 0x224]
cmovae eax, dword [ebp - 0x224]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0049b5fb
add esp, 0x38
cmp eax, edi
je 0x49cd40
test eax, eax
jne 0x49cd42
mov edi, ebx
push ebx
push 1
lea ecx, [ebp - 0x224]
call fcn.00403650
push ebx
call fcn.0049bd6d
pop ecx
lea ecx, [esi - 0x10]
call fcn.004206ab
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
Function at 0x49cd72
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x234], eax
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], esi
push esi
push eax
call fcn.004bf240
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x49ce29
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x49ce22
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
mov ecx, dword [ebp - 0x228]
cmp ecx, ebx
je 0x49ce0b
test ecx, ecx
je 0x49ce0b
cmp ecx, 4
je 0x49ce0b
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push eax
call fcn.004bcbf4
pop ecx
pop ecx
test eax, eax
je 0x49ce1e
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x49cde0
jmp 0x49ce21
xor esi, esi
inc esi
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
Function at 0x49d5bc
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push str.LockDefaultViaDuba_Begin_r_n
mov ebx, 0x55b31c
push ebx
call fcn.004a9913
pop ecx
pop ecx
call fcn.0049cbbb
test al, al
jne 0x49d5fd
push str.LockDefaultViaDuba_KDubaDetectLockLiebao_no_IsModuleSupport_r_n
push ebx
call fcn.004a9913
pop ecx
pop ecx
jmp 0x49d7cc
push esi
push 0x20019
xor esi, esi
lea ecx, [ebp - 0x230]
push str.SoftwarekingsoftKISCommon
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
call fcn.00426042
test eax, eax
je 0x49d64a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LockDefaultViaDuba_Open_SoftwarekingsoftKISCommon_errcode_d_r_n
push ebx
call fcn.004a9913
add esp, 0xc
jmp 0x49d7a8
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.004bf240
add esp, 0xc
mov dword [ebp - 0x234], 0x104
lea eax, [ebp - 0x234]
lea ecx, [ebp - 0x230]
push eax
lea eax, [ebp - 0x20c]
push eax
push str.ProgramPath
call fcn.004260d0
test eax, eax
je 0x49d6b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20c]
push eax
push str.LockDefaultViaDuba_QueryStringValue_ws_errcode_d_r_n
push ebx
call fcn.004a9913
add esp, 0x10
jmp 0x49d7a8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49d6db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20c]
push eax
push str.LockDefaultViaDuba_PathFileExists_ws_errcode_d_r_n
jmp 0x49d6a7
push edi
lea edi, [ebp - 0x20c]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x49d6e5
push 6
pop ecx
mov esi, str.kismain.exe
lea eax, [ebp - 0x20c]
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x224]
call fcn.00406c40
mov esi, str.__defendmon:lockliebao
push esi
call fcn.00405d70
pop ecx
push eax
push esi
lea ecx, [ebp - 0x224]
call fcn.00407480
cmp dword [ebp - 0x210], 8
lea eax, [ebp - 0x224]
cmovae eax, dword [ebp - 0x224]
push eax
push str.LockDefaultViaDuba_cmdline_ws_r_n
push ebx
call fcn.004a9913
xor eax, eax
lea edi, [ebp - 0x244]
cmp dword [ebp - 0x210], 8
lea ecx, [ebp - 0x244]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x224]
cmovae eax, dword [ebp - 0x224]
xor esi, esi
push esi
push esi
push esi
push esi
push ecx
push esi
push eax
push esi
call fcn.004251ec
push eax
push str.LockDefaultViaDuba_ExecuteAsDesktopUserEx3_hr0x_x_r_n
push ebx
call fcn.004a9913
add esp, 0x38
lea ecx, [ebp - 0x224]
push esi
push 1
call fcn.00403650
pop edi
lea ecx, [ebp - 0x230]
call fcn.00426028
push str.LockDefaultViaDuba_End_r_n
push ebx
call fcn.004a9913
pop ecx
pop ecx
lea ecx, [ebp - 0x230]
call fcn.00426028
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
Function at 0x49dd26
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push 0
push 0x3000010
push 1
push 0
push 3
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
test ebx, ebx
je 0x49dd59
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x49dd64
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop ebx
pop ebp
ret

Function at 0x49ddbc
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
call fcn.004bf240
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x49de17
cmp dword [ebp - 0x11c], 6
jne 0x49de17
cmp dword [ebp - 0x118], 0
jne 0x49de17
xor eax, eax
inc eax
jmp 0x49de19
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret

Function at 0x49de27
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
call fcn.004bf240
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x49de75
cmp dword [ebp - 0x11c], 6
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret

Function at 0x49de83
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
call fcn.004bf240
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x49dede
cmp dword [ebp - 0x11c], 6
jb 0x49dede
cmp dword [ebp - 0x118], 2
jb 0x49dede
xor eax, eax
inc eax
jmp 0x49dee0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
Function at 0x49e0a2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [edi], esi
je 0x49e122
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 1
mov dword [edi + 4], eax
jne 0x49e122
mov ecx, dword [ebp + 0xc]
call fcn.00423c59
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
shr eax, 1
inc eax
push eax
call fcn.00423e74
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
push ecx
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [edi + 4], eax
test eax, eax
jne 0x49e122
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, dword [ebp - 0xc]
shr eax, 1
push 0xffffffffffffffff
mov word [ecx + eax*2], dx
mov ecx, dword [ebp + 0xc]
call fcn.00425bfa
inc esi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x49e12c
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.RunApp_szPath_ws_szCmd_ws_dwWaitTime_d_bShow_d_bWaitTimeTermination_d_r_n
push 0x55b31c
call fcn.004a9913
xor esi, esi
lea eax, [ebp - 0x58]
push 0x40
push esi
push eax
mov dword [ebp - 8], esi
call fcn.004bf240
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x5c], 0x44
stosd dword es:[edi], eax
add esp, 0x28
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
inc edi
mov dword [ebp - 0x30], edi
call fcn.00420bd2
push eax
lea ecx, [ebp - 4]
call fcn.00423e41
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push dword [ebp + 8]
push str.__s___s
push eax
call fcn.00424501
add esp, 0x10
cmp dword [ebp + 0x14], esi
je 0x49e1af
push 0xa
pop eax
jmp 0x49e1b1
xor eax, eax
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
mov esi, dword [ebp - 4]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x49e1fb
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KFunction::RunApp_CreateProcessW_error:_d__wait:_d__show:_d__path:_ws__cmd:_ws
push 0x55b31c
call fcn.004a9913
mov ebx, dword [ebp - 8]
add esp, 0x1c
jmp 0x49e23d
test ebx, ebx
je 0x49e23b
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x49e23b
cmp dword [ebp + 0x18], 0
je 0x49e23b
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x49e23b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.TerminateProcess_errcode_d_r_n
push 0x55b31c
call fcn.004a9913
add esp, 0xc
mov ebx, edi
cmp dword [ebp - 0x18], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x49e252
push dword [ebp - 0x18]
call edi
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x14], 0
je 0x49e261
push dword [ebp - 0x14]
call edi
and dword [ebp - 0x14], 0
lea ecx, [esi - 0x10]
call fcn.004206ab
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49e272
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x58]
push 0x40
push esi
push eax
mov dword [ebp - 8], esi
call fcn.004bf240
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x5c], 0x44
stosd dword es:[edi], eax
add esp, 0xc
mov ebx, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
inc edi
mov dword [ebp - 0x30], edi
call fcn.00420bd2
push eax
lea ecx, [ebp - 4]
call fcn.00423e41
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push dword [ebp + 8]
push str.__s___s
push eax
call fcn.00424501
add esp, 0x10
cmp dword [ebp + 0x18], ebx
je 0x49e2d8
push 0xa
pop eax
jmp 0x49e2da
xor eax, eax
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
mov esi, dword [ebp - 4]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x49e325
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0xc]
mov ebx, eax
push dword [ebp + 8]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push str.KFunction::RunApp_CreateProcessW_error:_d__wait:_d__show:_d__path:_ws__cmd:_ws
push 0x55b31c
call fcn.004a9913
add esp, 0x1c
jmp 0x49e350
mov eax, dword [ebp - 0x18]
cmp dword [ebp + 0x14], ebx
je 0x49e33e
test eax, eax
je 0x49e33e
push dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], edi
cmp dword [ebp + 0x10], ebx
je 0x49e353
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x49e364
push eax
call edi
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x14], 0
je 0x49e373
push dword [ebp - 0x14]
call edi
and dword [ebp - 0x14], 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esi - 0x10]
call fcn.004206ab
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49ef3e
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x4fd9fc
xor ecx, ecx
push 1
push ecx
push 0x4fd9ec
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
mov dword [edi], ecx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jns 0x49ef77
push esi
push str.CoCreateInstance_failed:_0x_08lx_n
jmp 0x49efa8
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jns 0x49ef92
push esi
push str.get_LocalPolicy_failed:_0x_08lx_n
jmp 0x49efa8
mov eax, dword [ebp - 4]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jns 0x49efb5
push esi
push str.get_CurrentProfile_failed:_0x_08lx_n
push 0x55b31c
call fcn.004a9913
add esp, 0xc
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x49efc2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x49efcf
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x49efd9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi], esi
je 0x49f020
mov edx, dword [ebp + 0xc]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, si
jne 0x49efec
push ebx
sub edx, ecx
xor ebx, ebx
sar edx, 1
inc ebx
lea eax, [edx*2 + 2]
push eax
push dword [ebp + 0xc]
push ebx
push esi
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov dword [edi + 4], eax
cmove esi, ebx
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x4a0b13
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
push edi
push 0x601
mov eax, dword [ebx]
mov dword [ebp - 0xc], ebx
call dword [eax + 4]
mov eax, dword [ebx + 8]
sub eax, 0x10
push eax
call fcn.00425cc0
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.0049dfdb
mov esi, str.Module_thunderdownloadMiniThunderPlatform.exe
push esi
call fcn.004241d7
add esp, 0xc
lea ecx, [ebp - 4]
push eax
push esi
call fcn.0043be5f
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a0b8f
lea ecx, [ebp - 8]
call fcn.0049b2be
push 0x4fe810
push dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0049ee4b
lea ecx, [ebp - 8]
mov edi, eax
call fcn.0049b31a
jmp 0x4a0ba6
push dword [ebp - 4]
push str.no_exists__ws
push 0x55b31c
call fcn.004a9913
add esp, 0xc
xor edi, edi
mov esi, dword [ebx]
xor ebx, ebx
test edi, edi
setns bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
push eax
push ebx
push 0x601
call dword [esi + 8]
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.004206ab
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a10d2
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
push str.CopyDatFileForLego_Begin_r_n
push 0x55b31c
mov dword [ebp - 8], edi
call fcn.004a9913
mov eax, dword [edi + 0x20]
sub eax, 0x10
push eax
call fcn.00425cc0
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.0049dfdb
mov esi, dword [0x55b2d8]
push esi
call fcn.004241d7
add esp, 0x14
lea ecx, [ebp - 4]
push eax
push esi
call fcn.0043be5f
lea eax, [ebp - 4]
push eax
call fcn.0049dfdb
pop ecx
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a116e
push eax
push dword [ebp - 4]
call fcn.0049dd26
mov esi, dword [ebp - 4]
mov edi, eax
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push str.Create_Directory__s__bRet_d_error_d__r_n
push 0x55b31c
call fcn.004a9913
add esp, 0x14
test edi, edi
je 0x4a1234
mov edi, dword [ebp - 8]
mov esi, dword [0x55b2d0]
push esi
call fcn.004241d7
pop ecx
push eax
push esi
lea ecx, [ebp - 4]
call fcn.0043be5f
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a11af
push dword [ebp - 4]
push str._s_File_Exists__r_n
push 0x55b31c
call fcn.004a9913
xor edi, edi
add esp, 0xc
inc edi
jmp 0x4a1234
mov eax, dword [edi + 8]
sub eax, 0x10
push eax
call fcn.00425cc0
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.0049dfdb
mov esi, str.Data_
push esi
call fcn.004241d7
add esp, 0xc
lea ecx, [ebp - 8]
push eax
push esi
call fcn.0043be5f
mov esi, dword [0x55b2d0]
push esi
call fcn.004241d7
pop ecx
push eax
push esi
lea ecx, [ebp - 8]
call fcn.0043be5f
push 1
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push dword [ebp - 4]
push dword [ebp - 8]
push str.Copy_lego.dat_src_ws_dst_ws_CopyFile_bRet_d_error_d
push 0x55b31c
call fcn.004a9913
mov ecx, dword [ebp - 8]
add esp, 0x18
lea ecx, [ecx - 0x10]
call fcn.004206ab
push str.CopyDatFileForLego_End_r_n
push 0x55b31c
call fcn.004a9913
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004206ab
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret