joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4028ba
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 8
mov eax, 0x4182fb
call fcn.00414bab
mov edi, dword [ebp + 8]
push edi
call fcn.00407935
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov dword [edi + 0x20], 0x41af40
mov dword [edi], 0x41af24
mov dword [edi + 0x20], 0x41af38
mov dword [ebp - 4], 2
xor ebx, ebx
lea eax, [edi + 0x28]
lea ecx, [eax + 8]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov byte [ebp - 4], 6
mov byte [eax + 0x18], bl
mov byte [ebp - 4], 8
lea eax, [edi + 0x44]
push eax
mov dword [edi], 0x41af08
mov dword [edi + 0x20], 0x41af1c
call fcn.0040a822
mov byte [ebp - 4], 9
lea eax, [edi + 0x80]
push eax
call fcn.00409ee9
mov byte [ebp - 4], 0xa
lea eax, [edi + 0xc4]
push eax
call fcn.0040b3bb
mov byte [ebp - 4], 0xb
lea eax, [edi + 0x10c]
push eax
call fcn.0040aae1
mov byte [ebp - 4], 0xc
lea eax, [edi + 0x150]
push eax
call fcn.0040b771
mov byte [ebp - 4], 0xd
lea eax, [edi + 0x184]
push eax
call fcn.00408458
mov byte [ebp - 4], 0xe
lea eax, [edi + 0x1cc]
push eax
call fcn.00408e8a
mov byte [ebp - 4], 0xf
lea eax, [edi + 0x210]
push eax
call fcn.0040942b
mov byte [ebp - 4], 0x10
lea eax, [edi + 0x24c]
push eax
call fcn.00407bda
mov byte [ebp - 4], 0x11
lea eax, [edi + 0x27c]
push eax
call fcn.00407da5
mov byte [ebp - 4], 0x12
lea eax, [edi + 0x2b8]
mov dword [edi + 0x2ac], ebx
mov dword [edi + 0x2b0], ebx
mov dword [ebp - 0x14], eax
mov dword [eax], ebx
mov byte [ebp - 4], 0x15
lea eax, [edi + 0x2bc]
mov dword [ebp - 0x14], eax
mov dword [eax], ebx
mov byte [ebp - 4], 0x18
lea eax, [edi + 0x2c0]
mov dword [ebp - 0x14], eax
mov dword [eax], ebx
mov byte [ebp - 4], 0x1b
lea eax, [edi + 0x2c4]
mov dword [ebp - 0x14], eax
mov dword [eax], ebx
mov byte [ebp - 4], 0x1e
lea eax, [edi + 0x2c8]
mov dword [ebp - 0x14], eax
mov dword [eax], ebx
mov byte [ebp - 4], 0x21
lea eax, [edi + 0x2cc]
mov dword [ebp - 0x14], eax
mov dword [eax], ebx
mov byte [ebp - 4], 0x24
mov dword [edi + 0x2d0], ebx
mov byte [ebp - 4], 0x25
lea eax, [edi + 0x2d4]
mov dword [ebp - 0x14], eax
mov dword [eax], ebx
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov byte [ebp - 4], 0x2a
lea eax, [edi + 0x2e0]
mov dword [ebp - 0x14], eax
mov dword [eax], ebx
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov byte [ebp - 4], 0x30
lea eax, [edi + 0x2ec]
push eax
call fcn.004011a3
mov byte [ebp - 4], 0x31
lea esi, [edi + 0x2fc]
call fcn.00407981
mov byte [ebp - 4], 0x32
mov dword [edi + 0x300], ebx
mov byte [ebp - 4], 0x33
mov byte [edi + 0x304], bl
mov byte [edi + 0x305], bl
mov dword [edi + 0x308], ebx
mov dword [edi + 0x30c], ebx
mov dword [edi + 0x310], ebx
mov dword [edi + 0x314], ebx
mov dword [edi + 0x318], ebx
mov dword [0x425a28], edi
or dword [ebp - 4], 0xffffffff
mov eax, edi
call fcn.00414c4a
ret 4
Function at 0x4095d4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4164b3
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x419448]
xor eax, esp
mov dword [esp + 0x418], eax
push esi
mov eax, dword [0x419448]
xor eax, esp
push eax
lea eax, [esp + 0x428]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
mov esi, ecx
call fcn.00408d41
and dword [esp + 0x430], 0
lea eax, [esp + 0xc]
push eax
movzx eax, word [ebp + 8]
push eax
mov eax, esi
call fcn.0040a710
push dword [esp + 0xc]
add esi, 0x30
push esi
call fcn.00407829
or dword [esp + 0x430], 0xffffffff
lea eax, [esp + 0xc]
push eax
call fcn.00408436
xor eax, eax
inc eax
mov ecx, dword [esp + 0x428]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0040c4c6
mov esp, ebp
pop ebp
ret 4
Function at 0x40b83c
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41789c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2838
call fcn.00414670
mov eax, dword [0x419448]
xor eax, esp
mov dword [esp + 0x2834], eax
push esi
push edi
mov eax, dword [0x419448]
xor eax, esp
push eax
lea eax, [esp + 0x2848]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x190
mov dword [esp + 0x1c], eax
call dword [0x419028]
mov esi, dword [0x4192d0]
pop ecx
mov dword [esp + 0xc], eax
push dword [esp + 0xc]
mov edi, dword [esp + 0x10]
push 0x64
xor eax, eax
push 0x191
stosd dword es:[edi], eax
push dword [ebx + 0x30]
call esi
test eax, eax
mov dword [esp + 0x14], eax
jg 0x40b94e
mov esi, dword [0x4190ec]
call esi
push eax
push 0x3abe
lea edi, [esp + 0x1c]
call fcn.00407a99
mov eax, dword [eax]
mov dword [esp + 0x10], eax
and dword [esp + 0x2850], 0
call esi
push eax
push 0x3abf
lea edi, [esp + 0x1c]
call fcn.00407a99
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov byte [esp + 0x2850], 1
push 0x30
push dword [esp + 0x10]
push dword [esp + 0x18]
push dword [ebx + 4]
call dword [0x4192ec]
mov byte [esp + 0x2850], 0
cmp dword [esp + 0xc], 0
mov esi, dword [0x4190b8]
je 0x40b932
lea ecx, [esp + 0xc]
call esi
or dword [esp + 0x2850], 0xffffffff
cmp dword [esp + 0x10], 0
je 0x40b947
lea ecx, [esp + 0x10]
call esi
xor al, al
jmp 0x40ba6b
and dword [esp + 0x10], 0
test eax, eax
jle 0x40ba5e
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edi, [eax + ecx*4]
mov eax, dword [edi]
push 0
push eax
push 0x18a
push dword [ebx + 0x30]
call esi
cmp eax, 0x3fc
jge 0x40b9cb
lea eax, [esp + 0x1c]
push eax
call fcn.00406b5b
mov dword [esp + 0x2850], 2
push dword [esp + 0x1c]
mov edi, dword [edi]
push edi
push 0x189
push dword [ebx + 0x30]
mov byte [esp + 0x34], 1
call esi
push dword [esp + 0x1c]
mov edi, dword [esp + 0x1c]
call fcn.00406a5b
or dword [esp + 0x2850], 0xffffffff
lea eax, [esp + 0x1c]
push eax
call fcn.00408436
jmp 0x40ba4c
and dword [esp + 0x838], 0
and word [esp + 0x83c], 0
lea eax, [esp + 0x83c]
mov dword [esp + 0x82c], eax
mov dword [esp + 0x830], 0x1000
mov byte [esp + 0x834], 0
mov dword [esp + 0x2850], 4
push dword [esp + 0x82c]
mov edi, dword [edi]
push edi
push 0x189
push dword [ebx + 0x30]
mov byte [esp + 0x844], 1
call esi
push dword [esp + 0x82c]
mov edi, dword [esp + 0x1c]
call fcn.00406a5b
or dword [esp + 0x2850], 0xffffffff
lea eax, [esp + 0x82c]
push eax
mov ecx, eax
call dword [0x4190c8]
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jl 0x40b95b
push dword [esp + 0xc]
call dword [0x41902c]
pop ecx
mov al, 1
mov ecx, dword [esp + 0x2848]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x2834]
xor ecx, esp
call fcn.0040c4c6
mov esp, ebp
pop ebp
ret 4
Function at 0x401170
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x20
push ebx
push esi
push edi
push 0
push str.Shell_TrayWnd
mov esi, ecx
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0xc]
push ecx
push eax
call ebx
lea edx, [esp + 0x1c]
push edx
push edi
call ebx
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
sub eax, ebx
sub ecx, edi
mov dword [esi + 0xe40], eax
mov eax, dword [esp + 0x18]
sub ecx, edx
add ecx, eax
pop edi
mov dword [esi + 0xe44], ecx
pop esi
pop ebx
add esp, 0x20
ret

Function at 0x401200
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x418
mov eax, dword [0x446214]
push esi
push edi
mov dword [esp + 0x41c], eax
mov esi, ecx
xor eax, eax
mov word [esp + 8], 0
mov ecx, 0x81
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 8]
push 0x5c
push ecx
call fcn.0041ad03
lea edx, [esp + 0x10]
mov word [eax + 2], 0
push edx
lea eax, [esi + 0xa2c]
push eax
call fcn.0041ace7
mov word [esp + 0x220], 0
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x222]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x224]
push edx
stosw word es:[edi], ax
call fcn.0041ace7
lea eax, [esp + 0x228]
push str.download.ini
push eax
call fcn.0041acbd
add esp, 0x20
lea ecx, [esp + 0x210]
push ecx
push 0x104
push esi
push 0x438630
push str.ByName
push 0x438618
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [esp + 0x41c]
call fcn.0041a963
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4012e0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push esi
push 0
push 0x1a
lea esi, [ecx + 0xc38]
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str._shiqiang_
push esi
call fcn.0041acbd
push 0x438654
push esi
call fcn.0041acbd
push 0x438650
push esi
call fcn.0041acbd
add esp, 0x18
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401336
mov ecx, dword [0x447168]
push esi
call fcn.00404850
mov ecx, eax
call fcn.004045e0
pop esi
ret

Function at 0x401360
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x446214]
push edi
mov dword [esp + 0x12c], eax
xor eax, eax
mov ecx, 0x47
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xc], 6
jne 0x4013cd
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4013ad
cmp eax, 1
jne 0x4013cd
cmp byte [esp + 0x122], 1
jne 0x4013cd
mov eax, 1
mov ecx, dword [esp + 0x12c]
call fcn.0041a963
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor eax, eax
call fcn.0041a963
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x401660
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa3c
mov eax, dword [0x446214]
mov dword [esp + 0xa38], eax
push ebx
mov dword [esp + 4], ecx
xor eax, eax
push esi
push edi
xor esi, esi
mov word [esp + 0x838], si
mov ecx, 0x81
lea edi, [esp + 0x83a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x428], si
mov ecx, 0x81
lea edi, [esp + 0x42a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x220], si
mov ecx, 0x81
lea edi, [esp + 0x222]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x630], si
mov ecx, 0x81
lea edi, [esp + 0x632]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x18], si
mov ecx, 0x81
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
push 0x1a
lea eax, [esp + 0x840]
push eax
push esi
xor ebx, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x838]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0041ace7
lea eax, [esp + 0x20]
push eax
call fcn.0041ad33
lea ecx, [esp + 0x24]
push 0x5c
push ecx
call fcn.0041ad03
add esp, 0x14
cmp eax, esi
jne 0x401764
mov ecx, dword [esp + 0xc]
call fcn.004012e0
mov ecx, dword [esp + 0xa44]
call fcn.0041a963
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x18]
mov word [eax], si
push edx
lea eax, [esp + 0x42c]
push eax
call fcn.0041ace7
lea ecx, [esp + 0x430]
push str.Local
push ecx
call fcn.0041acbd
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea edx, [esp + 0x428]
push edx
call edi
test eax, eax
je 0x4017a7
mov ebx, 1
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x224]
push ecx
call fcn.0041ace7
lea edx, [esp + 0x228]
push str.LocalLow
push edx
call fcn.0041acbd
add esp, 0x10
lea eax, [esp + 0x220]
push eax
call edi
test eax, eax
je 0x4017e4
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x634]
push edx
call fcn.0041ace7
lea eax, [esp + 0x638]
push str.Roaming
push eax
call fcn.0041acbd
add esp, 0x10
lea ecx, [esp + 0x630]
push ecx
call edi
test eax, eax
mov eax, 1
jne 0x401822
mov eax, dword [esp + 0x14]
cmp ebx, esi
je 0x40189e
cmp dword [esp + 0x10], esi
je 0x40189e
cmp eax, esi
je 0x40189e
mov esi, dword [esp + 0xc]
mov ecx, esi
call fcn.00401360
test eax, eax
je 0x4018a2
lea edx, [esp + 0x220]
push edx
add esi, 0xc38
push 0x4386bc
push esi
call fcn.0041ad49
push 0x438654
push esi
call fcn.0041acbd
push 0x438650
push esi
call fcn.0041acbd
add esp, 0x1c
push esi
call edi
test eax, eax
jne 0x4018a9
mov ecx, dword [0x447168]
push esi
call fcn.00404850
mov ecx, eax
call fcn.004045e0
mov ecx, dword [esp + 0xa44]
call fcn.0041a963
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0xc]
mov ecx, esi
call fcn.004012e0
mov ecx, dword [esp + 0xa44]
call fcn.0041a963
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4045e0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
call fcn.0041ad33
mov ebp, eax
lea eax, [ebp + ebp + 2]
push eax
call fcn.00429e88
mov esi, eax
push edi
push esi
call fcn.0041ace7
add esp, 0x10
xor edi, edi
test ebp, ebp
mov byte [esp + 0x10], 1
jl 0x40465d
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp word [esi + edi*2], 0x5c
jne 0x40463d
push esi
mov word [esi + edi*2], 0
call ebx
test eax, eax
jne 0x404637
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x404657
mov word [esi + edi*2], 0x5c
inc edi
cmp edi, ebp
jle 0x404617
pop ebx
push esi
call fcn.00429e8d
movzx eax, byte [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
ret 4
mov byte [esp + 0x14], 0
pop ebx
push esi
call fcn.00429e8d
movzx eax, byte [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
ret 4

Function at 0x404fe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [ecx + 0x284], 2
jne 0x404fee
jmp fcn.00404cd0
jmp fcn.004049f0

Function at 0x4050c0
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x10]
push edi
push 1
push str.IsLimitSpeed
push str.UpdateSet
call ebx
push edi
push 0x2800
push str.UpdateSpeed
push str.UpdateSet
mov dword [esi + 4], eax
call ebx
push edi
push 1
push str.IsUseDownLog
push str.UpdateSet
mov dword [esi + 8], eax
call ebx
push edi
push 0xa
push str.IntervalTime
push str.UpdateSet
mov dword [esi + 0xc], eax
call ebx
pop edi
mov dword [esi], eax
pop esi
pop ebx
ret

Function at 0x4051e0
Capabilities:
Get http content length

Disassembly:
mov eax, dword [ecx]
sub esp, 8
test eax, eax
jne 0x4051ed
add esp, 8
ret
push 0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push 0x20000005
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, dword [esp]
neg eax
sbb eax, eax
and eax, ecx
add esp, 8
ret

Function at 0x405390
Capabilities:
Read data from internet
Receive data

Disassembly:
mov ecx, dword [ecx + 0x14]
mov eax, dword [ecx]
test eax, eax
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x18], edi
je 0x4053b6
lea ecx, [esp + 0x18]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, dword [esp + 0x10]
mov edx, dword [esi]
push edi
push ebx
mov ecx, esi
call dword [edx + 0x38]
mov eax, dword [esp + 0x1c]
mov edx, dword [esi]
add edi, eax
mov ecx, esi
mov dword [esp + 0x18], edi
call dword [edx + 0xc]
mov edi, dword [esi]
push 0
mov ecx, esi
mov ebx, eax
call dword [edi + 0x30]
sub eax, 4
sbb edx, 0
push edx
push eax
mov ecx, esi
call dword [edi + 0x28]
mov eax, dword [esi]
push 4
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call dword [eax + 0x38]
mov edx, dword [esi]
push 0
push 0
push ebx
mov ecx, esi
call dword [edx + 0x28]
pop edi
pop esi
mov eax, 1
pop ebx
ret 0x10
Function at 0x405af0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405b09
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x405b1d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x405b3e
cmp esi, eax
jae 0x405b17
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x405b30
cmp esi, eax
jae 0x405b17
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x406630
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 1
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, esi
mov dword [esi + 4], ecx
pop esi
ret 4

Function at 0x406700
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov esi, ecx
push eax
lea edi, [esi + 0x284]
push edi
call fcn.0041ace7
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 8
push edi
push 0x104
lea ecx, [esi + 0x4f0]
push ecx
push 0x438630
push 0x438b9c
push 0x438618
call ebx
push edi
push 0x104
lea edx, [esi + 0x554]
push edx
push 0x438630
push str.MinVer
push 0x438618
call ebx
push edi
push 0x104
add esi, 0x48c
push esi
push 0x438630
push str.Time
push 0x438618
call ebx
pop edi
pop esi
pop ebx
ret 4
Function at 0x4074a0
Capabilities:
Copy file
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x524
mov eax, dword [0x446214]
push ebx
push esi
push edi
mov dword [esp + 0x52c], eax
lea eax, [esp + 0x118]
push eax
push 0x104
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x118]
push str.wn_sp1.exe
push ecx
call fcn.0041acbd
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 8
lea edx, [esp + 0x118]
push edx
call ebx
mov esi, dword [ebp + 8]
push esi
mov ecx, edi
call fcn.00407350
test eax, eax
jne 0x40750c
push esi
call ebx
jmp 0x40759e
push 0
lea eax, [esp + 0x11c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
mov ecx, dword [ebp + 0xc]
push ecx
je 0x407547
lea edx, [esp + 0x11c]
push edx
lea eax, [esp + 0x328]
push str.__s___s
push eax
call fcn.0041ad49
add esp, 0x10
push esi
call ebx
jmp 0x40755d
push esi
lea edx, [esp + 0x328]
push str.__s___s
push edx
call fcn.0041ad49
add esp, 0x10
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x324]
push ecx
mov ecx, dword [0x447168]
call fcn.00404850
mov ecx, eax
call fcn.00404680
push 0
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [esp + 0x52c]
mov eax, 1
call fcn.0041a963
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407620
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43674e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov eax, dword [0x446214]
push esi
push edi
push 0x1c
mov dword [esp + 0x220], eax
mov esi, ecx
call fcn.00429e5d
add esp, 4
mov dword [esp + 0xc], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x22c], edi
je 0x407675
mov ecx, eax
call fcn.00405000
jmp 0x407677
xor eax, eax
cmp eax, edi
mov dword [esp + 0x22c], 0xffffffff
mov dword [esi + 0x14], eax
je 0x40786d
mov ecx, eax
call fcn.00405120
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x14]
call fcn.00405010
test eax, eax
je 0x40786d
mov word [esp + 0x10], di
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
mov ecx, dword [0x447168]
stosw word es:[edi], ax
call fcn.00406680
mov ecx, eax
call fcn.00401350
push eax
lea eax, [esp + 0x14]
push str._sDownload.ini
push eax
call fcn.0041ad49
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00406700
mov ecx, dword [0x447168]
call fcn.00406680
add eax, 0x618
push eax
lea edx, [esp + 0x14]
push edx
call fcn.0041ace7
mov eax, dword [esi + 4]
add esp, 8
cmp eax, 2
jne 0x40773a
mov ecx, dword [0x447168]
push 0x438dc4
call fcn.00403510
mov ecx, eax
call fcn.00408000
mov ecx, eax
call fcn.00405a80
mov ecx, eax
call fcn.00408b70
lea eax, [esp + 0x10]
push eax
lea edi, [esi + 0x18]
push edi
call fcn.0041ace7
add esp, 8
lea ecx, [esi + 0x220]
push ecx
mov ecx, dword [esi + 0x14]
push edi
call fcn.00405280
test eax, eax
jne 0x4077b5
cmp dword [esi + 4], 2
jne 0x40780b
mov ecx, dword [0x447168]
push 0x438d90
call fcn.00403510
mov ecx, eax
call fcn.00408000
mov ecx, eax
call fcn.00405a80
mov ecx, eax
call fcn.00408b70
mov ecx, dword [0x447168]
call fcn.00403510
mov ecx, eax
call fcn.00408000
mov ecx, eax
call fcn.00405a80
mov ecx, eax
call fcn.00408cf0
xor eax, eax
jmp 0x407879
mov ecx, esi
call fcn.00406780
test eax, eax
je 0x40780f
cmp dword [esi + 4], 2
jne 0x40780b
mov ecx, dword [0x447168]
push 0x438cac
call fcn.00403510
mov ecx, eax
call fcn.00408000
mov ecx, eax
call fcn.00405a80
mov ecx, eax
call fcn.00408b70
mov ecx, dword [0x447168]
call fcn.00403510
mov ecx, eax
call fcn.00408000
mov ecx, eax
call fcn.00405a80
mov ecx, eax
call fcn.00408cf0
xor eax, eax
jmp 0x407879
mov ecx, dword [0x447168]
call fcn.00406680
mov ecx, eax
call fcn.00401350
push eax
lea edx, [esp + 0x14]
push str._sDownload_
push edx
call fcn.0041ad49
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40784f
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.004067c0
mov ecx, esi
call fcn.00407240
test eax, eax
jne 0x407871
mov ecx, esi
call fcn.004071a0
xor eax, eax
jmp 0x407879
mov eax, 1
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x21c]
call fcn.0041a963
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407f00
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x10]
push eax
push 0
push esi
push 0x4078b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
pop esi
ret

Function at 0x407f70
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [ecx + 0x10]
push eax
push 0
push ecx
push 0x407f20
push 0
push 0
lea esi, [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push 0
push esi
push 1
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
pop esi
ret

Function at 0x409340
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x446214]
push edi
mov dword [esp + 0x214], eax
xor eax, eax
mov word [esp + 8], 0
mov ecx, 0x81
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4093bf
push 0x104
push 0
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
lea edx, [esp + 0x24]
push edx
mov word [esp + 0x2e], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [esp + 4]
mov ecx, dword [ebp + 8]
push eax
push str._.8X
push ecx
call fcn.0041ad49
add esp, 0xc
mov ecx, dword [esp + 0x214]
call fcn.0041a963
pop edi
mov esp, ebp
pop ebp
ret 4