joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4023c0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x42c
mov eax, dword [0x46b3ac]
mov edx, dword [ebp + 8]
push ebx
mov dword [esp + 0x42c], eax
xor ebx, ebx
push esi
xor eax, eax
cmp edx, ebx
push edi
je 0x40258b
mov word [esp + 0x20], bx
mov ecx, 0x103
lea edi, [esp + 0x22]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004318eb
lea ecx, [esp + 0x28]
push str.wnusr.dy
push ecx
call fcn.004318c1
add esp, 0x10
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402586
push ebx
push 0x80
push 2
push ebx
push 3
push 0x10000000
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402475
xor eax, eax
mov ecx, dword [esp + 0x434]
call fcn.00431288
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x10]
push ecx
push 2
lea edx, [esp + 0x24]
push edx
push esi
mov dword [esp + 0x2c], 0x2714
call ebx
push 0
lea eax, [esp + 0x10]
push eax
push 2
lea ecx, [esp + 0x24]
push ecx
push esi
mov dword [esp + 0x2c], 0x2711
call ebx
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push esi
mov dword [esp + 0x24], 0
call ebx
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
push 0x500000
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x18], 0x500000
call fcn.0044ac64
mov ecx, dword [esp + 0x18]
mov edx, ecx
mov edi, eax
shr ecx, 2
add esp, 4
mov dword [esp + 0x1c], edi
xor eax, eax
rep stosd dword es:[edi], eax
push 0
mov ecx, edx
push 0
and ecx, 3
push 0xc
rep stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call edi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x10]
push eax
push ecx
push edx
push esi
call ebx
push 0
push 0
push 4
push esi
call edi
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add ecx, eax
push 0
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push esi
call ebx
push 0
push 0
push 8
push esi
call edi
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call ebx
mov edx, dword [esp + 0x1c]
push edx
call fcn.0044ac5f
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x434]
call fcn.00431288
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4025a0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
sub esp, 0x21c
mov eax, dword [0x46b3ac]
push esi
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x224]
push edi
xor edi, edi
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call fcn.004318eb
lea edx, [esp + 0x20]
push str.wnurl.usr
push edx
call fcn.004318c1
add esp, 0x10
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40273f
push edi
push 0x80
push 2
push edi
push 3
push 0x10000000
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402638
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x218]
call fcn.00431288
add esp, 0x21c
ret 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
push edi
lea edx, [esp + 0x14]
push edx
push 2
lea eax, [esp + 0x28]
push eax
push esi
mov dword [esp + 0x30], 0x2714
call ebx
push edi
lea ecx, [esp + 0x14]
push ecx
push 2
lea edx, [esp + 0x28]
push edx
push esi
mov dword [esp + 0x30], 0x2711
call ebx
push edi
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push esi
mov dword [esp + 0x28], edi
call ebx
push edi
lea edx, [esp + 0x14]
push edx
push 4
lea eax, [esp + 0x20]
push eax
push esi
call ebx
push 0x19000
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], 0x19000
call fcn.0044ac64
mov ecx, dword [esp + 0x1c]
mov edx, ecx
mov ebp, eax
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
add esp, 4
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push eax
push esi
call edi
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
push ebp
push esi
call ebx
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 0
push 0
push 4
add edx, eax
push esi
mov dword [esp + 0x28], edx
call edi
push 0
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push esi
call ebx
push 0
push 0
push 8
push esi
call edi
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.0044ac5f
add esp, 4
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
pop edi
mov eax, 1
pop esi
call fcn.00431288
add esp, 0x21c
ret 4
Function at 0x4031b0
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 0x4031cb
pop edi
pop ebx
ret 0xc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4031e1
pop esi
pop edi
xor eax, eax
pop ebx
ret 0xc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403202
cmp esi, eax
jae 0x4031d9
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4031f4
cmp esi, eax
jae 0x4031d9
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret 0xc

Function at 0x403dd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x46b3ac]
push esi
push 0
mov dword [esp + 0x214], eax
push 0x20
lea eax, [esp + 0x10]
push eax
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x403e07
push 0x45700c
jmp 0x403e1e
lea ecx, [esp + 8]
push str.Content.IE5_
push ecx
call fcn.004318c1
add esp, 8
lea edx, [esp + 8]
push edx
mov esi, dword [esp + 0x21c]
mov ecx, esi
call fcn.00403a40
mov ecx, dword [esp + 0x210]
mov eax, esi
pop esi
call fcn.00431288
add esp, 0x210
ret 4

Function at 0x403e50
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x452fd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
lea eax, [esp + 4]
push eax
mov esi, ecx
call fcn.00403dd0
mov ecx, dword [esp + 4]
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [esp + 4]
jne 0x403ea8
add eax, 0xfffffff0
mov dword [esp + 0x10], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x403ecc
push eax
mov ecx, esi
call fcn.00403ae0
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov dword [esp + 0x10], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403ed6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x403f20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x128
mov eax, dword [0x46b3ac]
push esi
push edi
mov esi, ecx
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 [esi + 0x4d4], 0
mov dword [esp + 0xc], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xc], 6
jne 0x403f9b
mov eax, dword [esp + 0x10]
test eax, eax
mov eax, 1
jne 0x403fa0
cmp byte [esp + 0x122], al
jne 0x403fa0
mov dword [esi + 0x4d4], eax
mov ecx, dword [esp + 0x12c]
call fcn.00431288
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [esp + 0x12c]
call fcn.00431288
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403fc0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x428
mov eax, dword [0x46b3ac]
push esi
push edi
mov dword [esp + 0x42c], eax
mov esi, ecx
xor eax, eax
mov word [esp + 0x18], 0
mov ecx, 0x81
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.Software_risingRav
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404109
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0x457084
push ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x18]
push eax
call fcn.00431b26
add esp, 4
cmp eax, 1
jb 0x404109
lea ecx, [esp + 0x18]
push ecx
call fcn.00431b26
mov ax, word [esp + eax*2 + 0x1a]
add esp, 4
cmp ax, 0x5c
je 0x404098
cmp ax, 0x2f
je 0x404098
lea edx, [esp + 0x18]
push 0x457080
push edx
call fcn.004318c1
add esp, 8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x224]
push str._sRsMain.exe
push ecx
call fcn.00431794
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
call edi
test eax, eax
jne 0x4040e8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x224]
push str._sRav.exe
push ecx
call fcn.00431794
add esp, 0xc
lea edx, [esp + 0x18]
push edx
call edi
test eax, eax
je 0x404109
mov dword [esi + 0x4d8], 1
mov eax, 1
mov ecx, dword [esp + 0x42c]
call fcn.00431288
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x42c]
xor eax, eax
call fcn.00431288
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4042a0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa3c
mov eax, dword [0x46b3ac]
mov dword [esp + 0xa38], eax
push ebx
mov ebx, 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
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 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.004318eb
lea eax, [esp + 0x20]
push eax
call fcn.00431b26
lea ecx, [esp + 0x24]
push 0x5c
push ecx
call fcn.00431edb
add esp, 0x14
cmp eax, esi
je 0x404497
lea edx, [esp + 0x18]
mov word [eax], si
push edx
lea eax, [esp + 0x42c]
push eax
call fcn.004318eb
lea ecx, [esp + 0x430]
push str.Local
push ecx
call fcn.004318c1
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea edx, [esp + 0x428]
push edx
call edi
test eax, eax
je 0x4043d2
mov dword [esp + 0x10], 1
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x224]
push ecx
call fcn.004318eb
lea edx, [esp + 0x228]
push str.LocalLow
push edx
call fcn.004318c1
add esp, 0x10
lea eax, [esp + 0x220]
push eax
call edi
test eax, eax
je 0x40440f
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x634]
push edx
call fcn.004318eb
lea eax, [esp + 0x638]
push str.Roaming
push eax
call fcn.004318c1
add esp, 0x10
lea ecx, [esp + 0x630]
push ecx
call edi
test eax, eax
mov eax, 1
jne 0x40444d
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], esi
je 0x404497
cmp dword [esp + 0xc], esi
je 0x404497
cmp eax, esi
je 0x404497
mov ecx, ebx
call fcn.00417fa0
test eax, eax
je 0x404497
lea edx, [esp + 0x220]
push edx
push 0x45710c
add ebx, 0x2a8
push ebx
call fcn.00431794
add esp, 0xc
mov ecx, dword [esp + 0xa44]
call fcn.00431288
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x1a
lea edi, [ebx + 0x2a8]
push edi
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str._shiqiang_
push edi
call fcn.004318c1
mov ecx, dword [esp + 0xa4c]
add esp, 8
call fcn.00431288
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4053d0
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x62c
mov eax, dword [0x46b3ac]
push ebx
push esi
push edi
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [esp + 0x634], eax
mov esi, ecx
xor edx, edx
xor eax, eax
mov word [esp + 0x18], dx
mov ecx, 0x81
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x220], dx
mov ecx, 0x81
lea edi, [esp + 0x222]
rep stosd dword es:[edi], eax
push edx
stosw word es:[edi], ax
push 0x2b
lea eax, [esp + 0x228]
push eax
push edx
call ebx
lea ecx, [esp + 0x220]
push str._shiqiang_
push ecx
call fcn.004318c1
lea edx, [esp + 0x228]
push str.wnime
push edx
call fcn.004318c1
lea eax, [esp + 0x230]
push 0x457080
push eax
call fcn.004318c1
lea ecx, [esp + 0x238]
push str.wnime
push ecx
call fcn.004318c1
lea edx, [esp + 0x240]
push str..ini
push edx
call fcn.004318c1
add esp, 0x28
lea eax, [esp + 0x220]
push eax
push 0x104
lea ecx, [esp + 0x20]
push ecx
push 0x45700c
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4054dc
lea eax, [esp + 0x18]
push eax
call fcn.00431b26
add esp, 4
push eax
lea ecx, [esp + 0x1c]
push ecx
jmp 0x405601
mov word [esp + 0x428], 0
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x42a]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x428]
push str.SOFTWAREShiQiang_
push edx
stosw word es:[edi], ax
call fcn.004318eb
lea eax, [esp + 0x430]
push str.wnime
push eax
call fcn.004318c1
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x434]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4055a9
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push str.InstallPath
push edx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4055a9
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4055a9
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x18]
push edx
lea ecx, [esi + 0x280]
call fcn.00403a00
mov ecx, dword [esp + 0x634]
call fcn.00431288
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x26
lea ecx, [esp + 0x20]
push ecx
push 0
call ebx
lea edx, [esp + 0x18]
push str._shiqiang_
push edx
call fcn.004318c1
lea eax, [esp + 0x20]
push str.wnime
push eax
call fcn.004318c1
lea ecx, [esp + 0x28]
push 0x457080
push ecx
call fcn.004318c1
lea edx, [esp + 0x30]
push edx
call fcn.00431b26
add esp, 0x1c
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esi + 0x280]
call fcn.004035c0
mov ecx, dword [esp + 0x634]
call fcn.00431288
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405a80
Capabilities:
Access peb ldr_data
Check if file exists
Create directory
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45307b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
mov eax, dword [0x46b3ac]
push ebx
push esi
push edi
mov dword [esp + 0x234], eax
mov ebx, ecx
xor esi, esi
xor eax, eax
mov word [esp + 0x28], si
mov ecx, 0x81
lea edi, [esp + 0x2a]
rep stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
push 0x2b
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, 7
push str.DefAppPath
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], esi
mov word [esp + 0x14], si
call fcn.00431b26
add esp, 4
push eax
push str.DefAppPath
lea ecx, [esp + 0x14]
call fcn.00404ec0
mov ecx, dword [ebx + 0x288]
mov edx, dword [ecx]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x248], esi
call dword [edx + 0x10]
mov esi, eax
cmp dword [esp + 0x24], 8
mov dword [esp + 0x244], 0xffffffff
jb 0x405b3d
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0044ac5f
add esp, 4
mov dword [esp + 0x24], edi
xor edi, edi
cmp esi, edi
mov dword [esp + 0x20], edi
mov word [esp + 0x10], di
je 0x405b8f
lea edx, [esp + 0x28]
push 0x457080
push edx
call fcn.004318c1
mov eax, dword [esi + 0x18]
add esp, 8
cmp eax, 8
jb 0x405b6f
mov esi, dword [esi + 4]
jmp 0x405b72
add esi, 4
lea eax, [esp + 0x28]
push esi
push eax
call fcn.004318c1
lea ecx, [esp + 0x30]
push 0x457080
push ecx
call fcn.004318c1
add esp, 0x10
lea edx, [esp + 0x28]
push edx
lea esi, [ebx + 0x270]
push 0x456ed0
push esi
call fcn.00403920
mov eax, dword [esi]
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405bbf
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x234]
mov eax, 1
call fcn.00431288
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405f20
Capabilities:
Check if file exists
Get common file path
Get program files directory
Get startup folder
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4530bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x440
mov eax, dword [0x46b3ac]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x440], eax
mov eax, dword [esi + 0x270]
push edi
push eax
lea ecx, [esp + 0x23c]
push str._swnsoft.ini
push ecx
mov dword [esp + 0x1c], esi
call fcn.00431794
xor ebx, ebx
mov word [esp + 0x3c], bx
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x3e]
rep stosd dword es:[edi], eax
add esp, 0xc
lea edx, [esp + 0x238]
stosw word es:[edi], ax
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edx
call edi
test eax, eax
je 0x406014
lea eax, [esp + 0x238]
push eax
push 0x5dc
lea ecx, [esp + 0x38]
push ecx
push 0x45700c
push str.StartInstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x30]
push edx
call fcn.00431b26
add esp, 4
cmp eax, 4
jb 0x406014
xor eax, eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
push 3
lea ecx, [esp + 0x34]
mov dword [esp + 0x22], eax
push ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0x2a], eax
push edx
mov word [esp + 0x20], bx
mov word [esp + 0x32], ax
call fcn.004320d6
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x4060dd
push ebx
push 0x26
lea ecx, [esp + 0x38]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, 7
push str.DefAppPath
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.00431b26
add esp, 4
push eax
push str.DefAppPath
lea ecx, [esp + 0x1c]
call fcn.00404ec0
mov ecx, dword [esi + 0x288]
mov edx, dword [ecx]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x458], ebx
call dword [edx + 0x10]
mov esi, eax
cmp dword [esp + 0x2c], 8
mov dword [esp + 0x454], 0xffffffff
jb 0x406089
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0044ac5f
add esp, 4
cmp esi, ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
je 0x4060d9
lea edx, [esp + 0x30]
push 0x457080
push edx
call fcn.004318c1
mov eax, dword [esi + 0x18]
add esp, 8
cmp eax, 8
jb 0x4060b9
mov esi, dword [esi + 4]
jmp 0x4060bc
add esi, 4
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004318c1
lea ecx, [esp + 0x38]
push 0x457080
push ecx
call fcn.004318c1
add esp, 0x10
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push 0x456ed0
add esi, 0x278
push esi
call fcn.00403920
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x450]
add esp, 0xc
mov eax, 1
call fcn.00431288
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4073d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x453180
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], ecx
mov edi, dword [esp + 0x34]
mov esi, dword [edi - 0xc]
lea eax, [esi + esi + 2]
xor ebp, ebp
push eax
mov dword [esp + 0x30], ebp
call fcn.0044ac64
mov ebx, eax
push edi
push ebx
call fcn.004318eb
add esp, 0xc
cmp esi, ebp
jl 0x407501
mov dword [esp + 0x14], ebp
mov ebp, 2
sub ebp, ebx
inc esi
mov edi, ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], esi
mov ax, word [edi]
cmp ax, 0x7c
je 0x407443
test ax, ax
jne 0x4074eb
mov ecx, dword [esp + 0x14]
add ecx, ebx
push ecx
lea ecx, [esp + 0x14]
mov word [edi], 0
call fcn.00403a40
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x298]
add esi, 0x294
test eax, eax
lea edx, [edi + ebp]
mov byte [esp + 0x2c], 1
mov dword [esp + 0x14], edx
jne 0x40747c
xor edx, edx
jmp 0x407484
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 2
test eax, eax
je 0x4074b6
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x4074b6
mov eax, dword [esp + 0x34]
mov ebp, dword [esi + 8]
push eax
push esi
lea ecx, [esp + 0x18]
push ecx
push 1
push ebp
call fcn.004051f0
add ebp, 4
mov dword [esi + 8], ebp
mov ebp, dword [esp + 0x20]
jmp 0x4074c8
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, esi
call fcn.00406550
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4074eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add edi, 2
dec eax
mov dword [esp + 0x18], eax
jne 0x407431
mov edi, dword [esp + 0x34]
lea eax, [edi - 0x10]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebp
pop ebx
jg 0x407527
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4