joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404a6d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404a84
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x404a96
xor eax, eax
jmp 0x404ac7
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x404ab9
cmp edi, eax
jae 0x404a92
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x404aab
cmp edi, eax
jae 0x404a92
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x404b1e
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
mov eax, 0x419094
call fcn.0040fbd0
sub esp, 0x210
mov eax, dword [0x4220b8]
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x21c], ebx
lea eax, [ebp - 0x218]
je 0x404b6d
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
call fcn.00404582
mov eax, dword [ebp + 8]
jmp 0x404c6d
push esi
push edi
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0040e14e
pop ecx
pop ecx
mov edi, eax
push str.acctdata_
lea eax, [edi + 2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
lea eax, [ebp - 0x218]
push eax
call esi
push str.update_
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
call edi
lea eax, [ebp - 0x218]
push eax
push str.GetDownloadPath_:_s_n
call fcn.00408fb4
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00404582
push str.write.test
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 4], ebx
call edi
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x10000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x404c50
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00404827
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040252d
mov eax, esi
jmp 0x404c6b
push 0x41c978
push dword [ebp + 8]
call fcn.00404582
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040252d
mov eax, dword [ebp + 8]
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0040f3d9
leave
ret
Function at 0x4054bc
Capabilities:
Terminate thread

Disassembly:
and dword [esi + 0x10], 0
mov eax, esi
mov dword [esi], 0x41d18c
call fcn.004054ef
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [esi], 0x41d198
mov eax, esi
jmp fcn.00402cbb

Function at 0x405503
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
lea eax, [esi + 0x18]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esi + 0x38]
sub ebx, dword [esi + 0x3c]
push ebx
push str.CDownloadThread::DivideTask_nLen_ld_n
call fcn.00408fb4
pop ecx
cmp ebx, 0x10000
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
pop ecx
jg 0x405550
call ebx
sub eax, dword [esi + 0x40]
cmp eax, 0x2710
jge 0x405549
xor esi, esi
jmp 0x405573
mov eax, esi
call fcn.004054ef
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x38]
add eax, dword [esi + 0x3c]
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0x34], eax
mov dword [edi + 0x3c], eax
dec eax
mov dword [esi + 0x38], eax
call ebx
mov dword [esi + 0x40], eax
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x405e28
Capabilities:
Parse credit card information

Disassembly:
mov eax, 0x41901d
call fcn.0040fbd0
sub esp, 0xc
mov eax, dword [0x422e4c]
push ebx
push esi
mov ebx, 0x422e4c
push edi
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edi, dword [eax - 0xc]
lea edx, [edi + edi*2 + 3]
lea esi, [ebp - 0x18]
call fcn.004063c0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
xor edx, edx
push edx
push edx
lea eax, [edi + edi*2 + 3]
push eax
push dword [ebp - 0x10]
push edi
push ecx
push edx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x14], eax
mov eax, dword [0x422e4c]
mov ecx, ebx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp + 8], edi
mov esi, dword [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00405099
xor esi, esi
cmp dword [ebp - 0x14], esi
jle 0x405fc1
mov edx, dword [ebp - 0x10]
lea ebx, [esi + edx]
mov cl, byte [ebx]
cmp cl, 0x61
jl 0x405ec7
cmp cl, 0x7a
jle 0x405fae
cmp cl, 0x41
jl 0x405ed5
cmp cl, 0x5a
jle 0x405fae
cmp cl, 0x30
jl 0x405ee3
cmp cl, 0x39
jle 0x405fae
cmp cl, 0x3a
je 0x405fae
cmp cl, 0x2f
je 0x405fae
cmp cl, 0x2e
je 0x405fae
cmp cl, 0x5f
je 0x405fae
cmp cl, 0x2d
je 0x405fae
cmp cl, 0x3d
je 0x405fae
cmp cl, 0x3f
je 0x405fae
cmp cl, 0x26
je 0x405fae
cmp cl, 0x25
jne 0x405f88
mov al, byte [esi + edx + 1]
cmp al, 0x30
jl 0x405f44
cmp al, 0x39
jle 0x405f54
cmp al, 0x30
jl 0x405f44
cmp al, 0x39
jle 0x405f54
cmp al, 0x41
jl 0x405f4c
cmp al, 0x46
jle 0x405f54
cmp al, 0x61
jl 0x405f88
cmp al, 0x66
jg 0x405f88
mov al, byte [esi + edx + 2]
cmp al, 0x30
jl 0x405f68
cmp al, 0x39
jle 0x405f78
cmp al, 0x30
jl 0x405f68
cmp al, 0x39
jle 0x405f78
cmp al, 0x41
jl 0x405f70
cmp al, 0x46
jle 0x405f78
cmp al, 0x61
jl 0x405f88
cmp al, 0x66
jg 0x405f88
mov eax, dword [ebp + 0xc]
push 3
push ebx
call fcn.00406310
add esi, 3
jmp 0x405fb8
movzx eax, cl
push eax
lea eax, [ebp + 8]
push str.___X
push eax
call fcn.004062fd
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add esp, 0xc
push dword [edi - 0xc]
push edi
call fcn.00406310
jmp 0x405fb7
mov eax, dword [ebp + 0xc]
push ecx
call fcn.00406448
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x405eb1
lea eax, [edi - 0x10]
call fcn.0040252d
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040252d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4065a5
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
lea eax, [esi + 0x3c]
mov dword [esi + 4], eax
lea eax, [esi + 0x4c]
mov dword [esi + 0x10], eax
lea eax, [esi + 0x14c]
mov dword [esi + 0x1c], eax
push 0x40
pop eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
lea eax, [esi + 0x24c]
mov dword [esi + 0x2c], eax
lea ecx, [esi + 0x1cc]
lea eax, [esi + 0x44c]
mov dword [esi], 0x3c
mov dword [esi + 8], 8
mov dword [esi + 0x14], 0x80
mov dword [esi + 0x24], ecx
mov dword [esi + 0x30], 0x100
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], 0x1da
jge 0x406615
push dword [ebp + 8]
call fcn.0040d57d
pop ecx
mov dword [ebp + 0xc], eax
push esi
push 0x90000000
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
pop ebp
ret 8

Function at 0x40662b
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
mov eax, 0x418ff9
call fcn.0040fbd0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
lea esi, [edi + 0xc]
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
call fcn.0040239e
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x406660
push 0x41d9c4
jmp 0x40667b
push ebx
push ebx
push ebx
push ebx
push dword [0x422ccc]
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, ebx
mov dword [edi], eax
jne 0x406688
push str.InternetOpen
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.00406a3e
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40676f
Capabilities:
Check http status code
Read data from internet
Receive data

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x4220b8]
push ebx
xor ebx, ebx
cmp dword [esi + 8], ebx
mov dword [ebp + 0x38c], eax
jne 0x406797
xor eax, eax
jmp 0x406877
push edi
mov edi, dword [sym.imp.WININET.dll_HttpSendRequestW]
push dword [ebp + 0x3a4]
push dword [ebp + 0x3a0]
push dword [ebp + 0x39c]
push dword [ebp + 0x398]
push dword [esi + 8]
call edi
test eax, eax
jne 0x4067f2
push 4
lea eax, [ebp - 0x80]
push eax
push 0x1f
push dword [esi + 8]
mov dword [ebp - 0x80], 0x8440f180
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push dword [ebp + 0x3a4]
push dword [ebp + 0x3a0]
push ebx
push ebx
push dword [esi + 8]
call edi
test eax, eax
je 0x40688d
push ebx
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0x20000013
push dword [esi + 8]
mov dword [ebp - 0x78], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4068a3
cmp dword [ebp - 0x7c], 0x191
je 0x40682a
cmp dword [ebp - 0x7c], 0x197
jne 0x40686c
lea eax, [ebp - 0x78]
push eax
push 0x400
lea eax, [ebp - 0x74]
push eax
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x406849
cmp dword [ebp - 0x78], ebx
jne 0x40682a
push ebx
push 7
push 0x2eee
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
je 0x40679e
mov ecx, esi
call fcn.00406bb6
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp + 0x38c]
pop ebx
call fcn.0040f3d9
add ebp, 0x390
leave
ret 0x10
push str.HttpSendRequest
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.00406a3e
xor eax, eax
jmp 0x406876
push str.HttpQueryInfo
jmp 0x406892
Function at 0x4068aa
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4220b8]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 8]
push edi
xor edi, edi
cmp eax, edi
jne 0x4068cd
xor eax, eax
jmp 0x406974
push edi
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x44]
push ecx
push 5
push eax
mov dword [ebp - 0x48], 0x20
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4068fc
lea eax, [ebp - 0x44]
push eax
call fcn.0040e149
add eax, 8
pop ecx
and eax, 0xfffffff8
jmp 0x406901
mov eax, 0x400
push esi
mov esi, dword [ebp + 0xc]
mov edx, eax
mov dword [ebp - 0x48], eax
call fcn.004063c0
mov esi, eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x48]
push esi
push dword [ebx + 8]
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x40695b
cmp dword [ebp - 0x4c], 0
je 0x406961
add edi, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
cmp edx, edi
ja 0x40694a
mov esi, dword [ebp + 0xc]
mov eax, edi
shr eax, 1
add edx, eax
mov dword [ebp - 0x48], edx
call fcn.004063c0
mov edx, dword [ebp - 0x48]
mov esi, eax
lea eax, [ebp - 0x4c]
push eax
sub edx, edi
push edx
lea eax, [edi + esi]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
call ebx
test eax, eax
jne 0x406924
mov esi, dword [ebp + 0xc]
mov eax, edi
call fcn.0040635c
xor eax, eax
cmp eax, edi
sbb eax, eax
neg eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0040f3d9
leave
ret 8

Function at 0x406982
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4220b8]
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi], edi
mov dword [ebp - 4], eax
je 0x4069d4
call fcn.00404b0b
call fcn.00404af8
push edi
push 0x84400000
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
cmp eax, edi
mov dword [esi + 8], eax
jne 0x4069d8
push str.InternetOpenUrl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.00406a3e
xor eax, eax
jmp 0x406a30
push ebx
push 0x20
pop ebx
push edi
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x44]
push ecx
push 0x13
push eax
mov dword [ebp - 0x48], ebx
call edi
test eax, eax
je 0x406a2c
lea eax, [ebp - 0x44]
push eax
call fcn.0040e149
cmp eax, 0x194
pop ecx
je 0x406a2c
push 0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
push 5
push dword [esi + 8]
mov dword [ebp - 0x48], ebx
call edi
test eax, eax
je 0x406a2c
lea eax, [ebp - 0x44]
push eax
call fcn.0040e149
pop ecx
jmp 0x406a2f
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0040f3d9
leave
ret 0xc
Function at 0x406e59
Capabilities:
Create directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4220b8]
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x406e7f
or eax, 0xffffffff
jmp 0x406f45
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str._acctdata
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406ebe
push 0xfffffffffffffffe
pop eax
jmp 0x406f44
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x218], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 1
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x406f0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AllocateAndInitializeSid_Error__u_n
call fcn.0040e500
pop ecx
pop ecx
push 0xfffffffffffffffd
jmp 0x406eb8
push 3
push 2
push 0x10000000
push ebx
push dword [ebp - 0x218]
lea eax, [ebp - 0x214]
push 1
push eax
call fcn.00406d79
cmp eax, ebx
jne 0x406f44
lea eax, [ebp - 0x214]
push eax
push str.Succeed_CreateDirectory__s._n
call fcn.0040e500
pop ecx
pop ecx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0040f3d9
leave
ret 4
Function at 0x4072ff
Capabilities:
Copy file
Create process on windows
Create process suspended
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x3ec]
sub esp, 0x46c
mov eax, dword [0x4220b8]
push ebx
push esi
mov dword [ebp + 0x3e8], eax
push 0x104
lea eax, [ebp - 0x28]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x28]
push 0x5c
push eax
call fcn.0040e14e
mov ebx, str.LVLV_221.EXE
add eax, 2
push ebx
push eax
call fcn.0040e28b
add esp, 0x10
test eax, eax
je 0x407454
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x1e0]
push eax
call edi
lea eax, [ebp + 0x1e0]
push 0x5c
push eax
call fcn.0040e14e
pop ecx
pop ecx
push ebx
add eax, 2
push eax
call edi
push esi
lea eax, [ebp + 0x1e0]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x44
pop edi
push edi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0040c830
push 0x10
lea eax, [ebp - 0x3c]
push esi
push eax
mov dword [ebp - 0x80], edi
call fcn.0040c830
add esp, 0x18
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp + 0x1e0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
jne 0x40741c
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
lea eax, [ebp + 0x1e0]
jne 0x4073ff
push eax
push str.RunCloneUpdate_CreateProcess_failed:_s___n
jmp 0x407438
push esi
push dword [ebp - 0x2c]
push eax
push str.RunCloneUpdate_CreateProcess_failed:_s___n_tError:__s_n
call fcn.00408fb4
add esp, 0x10
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40743f
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
lea eax, [ebp + 0x1e0]
push eax
push str.RunCloneUpdate_CreateProcess_OK:_s___n
call fcn.00408fb4
pop ecx
pop ecx
push str.__RunCloneUpdate_exit__221___n_n
call fcn.00408fb4
pop ecx
push 0xffffff23
call fcn.0040e6ed
mov ecx, dword [ebp + 0x3e8]
pop esi
pop ebx
call fcn.0040f3d9
add ebp, 0x3ec
leave
ret
Function at 0x407de8
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x328
mov eax, dword [0x4220b8]
push ebx
push esi
push edi
push 0x31
mov dword [ebp + 0x6c], eax
mov ebx, ecx
pop ecx
push dword [ebp + 0x78]
xor eax, eax
mov dword [ebp - 0x5c], 0x20
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x264]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x41de4c
lea eax, [ebp - 0x264]
push eax
call esi
push 0x423798
lea eax, [ebp - 0x264]
push eax
call esi
push 0x73
xor ecx, ecx
call fcn.00406f51
xor esi, esi
test eax, eax
pop ecx
je 0x407e5f
push 0x41de44
lea eax, [ebp - 0x5c]
jmp 0x407e67
cmp ebx, esi
je 0x407e6a
push ebx
lea eax, [ebp - 0x5a]
push eax
call edi
lea eax, [ebp - 0x5c]
push eax
push str.TryRun_szCmd_s___n
call fcn.00408fb4
push 0x44
pop edi
push edi
lea eax, [ebp - 0x2b8]
push esi
push eax
call fcn.0040c830
push 0x10
lea eax, [ebp - 0x274]
push esi
push eax
mov dword [ebp - 0x2b8], edi
call fcn.0040c830
add esp, 0x20
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x2b8]
push eax
push dword [ebp + 0x78]
lea eax, [ebp - 0x5c]
push esi
push esi
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x407ee1
lea eax, [ebp - 0x264]
push eax
push str.TryRun_CreateProcess_failed:_s___n
call fcn.00408fb4
pop ecx
pop ecx
jmp 0x407f5a
push dword [ebp + 0x7c]
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
mov edi, 0x80
jne 0x407f12
mov dword [ebp - 0x28c], edi
push dword [ebp - 0x274]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x270]
call esi
mov eax, dword [ebp - 0x28c]
cmp eax, 2
je 0x407f5e
cmp eax, edi
je 0x407f45
cmp eax, 0x103
je 0x407f5e
cmp eax, 0xc0000135
jne 0x407f67
push eax
lea eax, [ebp - 0x264]
push eax
push str.TryRun_GetExitCodeProcess_failed:_s__Flags0x_x__n
call fcn.00408fb4
add esp, 0xc
xor eax, eax
jmp 0x407f84
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push dword [ebp - 0x28c]
lea eax, [ebp - 0x264]
push eax
push str.TryRun_CreateProcess_OK:_s_Flags0x_x__n
call fcn.00408fb4
xor eax, eax
add esp, 0xc
inc eax
mov ecx, dword [ebp + 0x6c]
pop edi
pop esi
pop ebx
call fcn.0040f3d9
add ebp, 0x70
leave
ret
Function at 0x40812f
Capabilities:
Copy file
Create directory
Create process on windows
Get common file path
Get program files directory

Disassembly:
dec eax
push esi
push edi
je 0x408200
dec eax
je 0x4081e6
dec eax
je 0x408194
dec eax
je 0x408188
dec eax
je 0x40814f
xor eax, eax
jmp 0x408269
call fcn.0040b6f6
mov esi, 0x424130
call fcn.00409f43
push str.QuietInstall__SetRegister_n
call fcn.00408fb4
pop ecx
push 1
mov ecx, 0x423ce0
call fcn.00404193
push 0
push dword [0x422cd4]
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x408266
pop edi
mov ecx, 0x424130
pop esi
jmp fcn.00409a7e
test edx, edx
jl 0x408148
mov eax, dword [0x423ce4]
test eax, eax
je 0x408148
mov ecx, dword [0x423ce8]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x408148
mov edi, edx
shl edi, 2
add eax, edi
mov eax, dword [eax]
mov esi, 0x424130
push esi
push dword [eax + 0x38]
push str.QuietInstall__RunSfxSetup__s_at__s._n
call fcn.00408fb4
mov eax, dword [0x423ce4]
add esp, 0xc
add eax, edi
mov eax, dword [eax]
push esi
push dword [eax + 0x38]
call fcn.0040af0d
jmp 0x408266
push 0x424130
xor eax, eax
push eax
push eax
push eax
call fcn.0040b22b
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
jmp 0x408269
push ebx
xor ebx, ebx
push ebx
push 0x26
mov esi, 0x424130
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Dianji
push esi
call edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call ebx
push 0x41de4c
push esi
call edi
push dword [0x422ccc]
push esi
call edi
push 0
push esi
call ebx
push esi
push str.QuietInstall:_szInstallDir_s_n
call fcn.00408fb4
pop ecx
pop ecx
push 0
mov ecx, 0x423ce0
call fcn.00404193
push str.QuietInstall__SaveInstallReadyStatus_n
call fcn.00408fb4
pop ecx
pop ebx
xor eax, eax
inc eax
pop edi
pop esi
ret

Function at 0x4086aa
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test edx, edx
jbe 0x4086cc
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
shl eax, 8
shr esi, 0x18
or eax, edi
xor eax, dword [esi*4 + 0x41c400]
inc ecx
dec edx
jne 0x4086b2
pop edi
pop esi
mov ecx, eax
shr ecx, 0x18
shl eax, 8
xor eax, dword [ecx*4 + 0x41c400]
mov ecx, eax
shr ecx, 0x18
shl eax, 8
xor eax, dword [ecx*4 + 0x41c400]
mov ecx, eax
shr ecx, 0x18
shl eax, 8
xor eax, dword [ecx*4 + 0x41c400]
mov ecx, eax
shr ecx, 0x18
shl eax, 8
xor eax, dword [ecx*4 + 0x41c400]
ret
Function at 0x408709
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4190ae
call fcn.0040fbd0
sub esp, 0x440
mov eax, dword [0x4220b8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x44], ebx
mov eax, dword [0x422e4c]
push edi
mov ecx, 0x422e4c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
lea esi, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.0040495a
push ebx
push ebx
push 3
push ebx
push 1
push connect
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x40], eax
je 0x40889e
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebx
push ebx
push eax
call edi
cmp eax, 0x10
mov dword [ebp - 0x3c], eax
jbe 0x408895
add eax, 4
push eax
mov dword [ebp - 0x44], ebx
call fcn.0040c69e
mov esi, eax
mov eax, dword [ebp - 0x3c]
add eax, 4
push eax
push ebx
push esi
mov dword [ebp - 0x34], esi
call fcn.0040c830
add esp, 0x10
push ebx
push ebx
push ebx
push dword [ebp - 0x40]
call edi
mov edi, dword [ebp - 0x3c]
push ebx
lea eax, [ebp - 0x44]
push eax
push edi
push esi
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408895
cmp dword [ebp - 0x44], edi
jne 0x408895
cmp dword [esi], 0x4d454f4c
je 0x408811
mov eax, dword [0x422e4c]
mov ecx, 0x422e4c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
push esi
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 1
call fcn.004088d3
mov edi, dword [ebp - 0x34]
push edi
lea eax, [ebp - 0x38]
call fcn.004050d8
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
call fcn.0040252d
jmp 0x40888e
push dword [esi + 4]
lea edi, [ebp - 0x30]
push str._2_db_L_
push 0x20
pop eax
call fcn.0040864e
pop ecx
pop ecx
mov eax, edi
push eax
push eax
call fcn.0040c950
pop ecx
push eax
lea esi, [ebp - 0x44c]
call fcn.00408959
mov eax, dword [ebp - 0x3c]
add eax, 4
push eax
call fcn.0040c69e
mov edi, dword [ebp - 0x3c]
mov esi, eax
mov dword [esi + edi], ebx
mov ebx, dword [ebp - 0x34]
lea eax, [edi - 8]
push eax
lea edx, [ebx + 8]
mov eax, esi
lea ecx, [ebp - 0x44c]
call fcn.00408a52
push ebx
call fcn.0040e24b
lea ebx, [esi + 4]
add esp, 0x14
lea edx, [edi - 0xc]
mov ecx, ebx
mov dword [ebp - 0x34], esi
call fcn.004086aa
cmp dword [esi], eax
jne 0x408895
push ebx
lea eax, [ebp - 0x38]
push eax
call fcn.0040499a
push esi
call fcn.0040e24b
pop ecx
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x38]
add esi, 0xfffffff0
mov eax, esi
call fcn.00404827
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.0040252d
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0040f3d9
leave
ret