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

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push ebx
push esi
mov esi, dword [ebp + 0x1c]
push edi
jl 0x1013eebc
cmp dword [esi + 0x2c], 0xffffffff
jge 0x1013ed4a
mov eax, dword [esi + 0x194]
mov dword [esi + 0x190], 0
test eax, eax
je 0x1013eebc
push eax
call sym.ExuiKrnln_X32.dll_DeleteTimerEx
mov dword [esi + 0x194], 0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov eax, dword [esi + 0x18c]
cmp dword [eax + 0xc], 0
jle 0x1013edf1
mov eax, dword [eax + 0x10]
cmp dword [eax], 0
je 0x1013edf1
mov eax, dword [esi + 0x190]
inc eax
mov dword [esi + 0x190], eax
cmp eax, 4
jg 0x1013edf1
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0
push esi
call sym.ExuiKrnln_X32.dll_ControlAddRedrawRect
cmp dword [esi + 0x2c], 1
jl 0x1013edb1
cmp dword [esi + 0xe4], 0
jle 0x1013ed9d
inc dword [esi + 0xe0]
jmp 0x1013edb1
or dword [esi + 0xd0], 1
push 1
push 0x1018a5b4
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [esi + 0x194], 0
jne 0x1013eebc
mov eax, dword [esi + 0x18c]
cmp dword [eax + 0xc], 0
jg 0x1013edce
xor eax, eax
jmp 0x1013edd3
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
push 0
push 0
push esi
push fcn.1013ed00
push eax
call sym.ExuiKrnln_X32.dll_CreateTimerEx
mov dword [esi + 0x194], eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov edi, dword [esi + 0x194]
mov dword [esi + 0x190], 0
test edi, edi
je 0x1013ee7d
cmp byte [edi + 0x10], 0
jne 0x1013ee73
cmp dword [edi + 4], edi
jne 0x1013ee73
mov ebx, dword [edi + 8]
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov byte [edi + 0x10], 1
test ebx, ebx
je 0x1013ee47
push 0xea60
push 0xea60
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_DeleteTimerQueueTimer]
push dword [edi + 0x20]
mov eax, dword [edi + 0x1c]
push 0
push 0
push 0
push 0xfffffffffffffffe
push edi
call eax
push 0
push 0
push edi
push 0x101075e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x194], 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0
push esi
call sym.ExuiKrnln_X32.dll_ControlAddRedrawRect
cmp dword [esi + 0x2c], 1
jl 0x1013eebc
cmp dword [esi + 0xe4], 0
jle 0x1013eea8
inc dword [esi + 0xe0]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
or dword [esi + 0xd0], 1
push 1
push 0x1018a5b4
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18

Function at 0x101562b3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10156132

Function at 0x1015737b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1015703b

Function at 0x1015e700
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1015e72d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1015e72d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401fe0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x260
mov eax, dword [0x46c3ac]
push esi
mov esi, ecx
mov dword [esp + 0x260], eax
cmp dword [esi], 0
je 0x402015
mov eax, 1
pop esi
mov ecx, dword [esp + 0x25c]
call fcn.00431d98
add esp, 0x260
ret 4
mov eax, dword [esi + 4]
test eax, eax
jne 0x402034
xor eax, eax
pop esi
mov ecx, dword [esp + 0x25c]
call fcn.00431d98
add esp, 0x260
ret 4
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x26c]
mov dword [esp + 8], eax
push ecx
mov dword [esp + 0x10], eax
lea edx, [esp + 0x60]
mov dword [esp + 0x14], eax
push 0x456f48
push edx
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x20], eax
call fcn.004322a4
add esp, 0xc
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x7c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4020f0
mov eax, dword [esp + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esp + 8]
push edx
call edi
push 0
mov dword [esi], 1
mov ecx, dword [0x46d488]
push 0x456f34
call fcn.0040c860
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x25c]
call fcn.00431d98
add esp, 0x260
ret 4
mov ecx, dword [esp + 0x264]
pop edi
xor eax, eax
pop esi
call fcn.00431d98
add esp, 0x260
ret 4
Function at 0x402410
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x42c
mov eax, dword [0x46c3ac]
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 0x4025db
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.004323fb
lea ecx, [esp + 0x28]
push str.wnusr.dy
push ecx
call fcn.004323d1
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 0x4025d6
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 0x4024c5
xor eax, eax
mov ecx, dword [esp + 0x434]
call fcn.00431d98
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.0044b77a
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.0044b775
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x434]
call fcn.00431d98
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4025f0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
sub esp, 0x21c
mov eax, dword [0x46c3ac]
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.004323fb
lea edx, [esp + 0x20]
push str.wnurl.usr
push edx
call fcn.004323d1
add esp, 0x10
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40278f
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 0x402688
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x218]
call fcn.00431d98
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.0044b77a
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.0044b775
add esp, 4
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
pop edi
mov eax, 1
pop esi
call fcn.00431d98
add esp, 0x21c
ret 4
Function at 0x4031f0
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 0x40320b
pop edi
pop ebx
ret 0xc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x403221
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 0x403242
cmp esi, eax
jae 0x403219
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403234
cmp esi, eax
jae 0x403219
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret 0xc

Function at 0x403e10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x46c3ac]
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 0x403e47
push 0x457084
jmp 0x403e5e
lea ecx, [esp + 8]
push str.Content.IE5_
push ecx
call fcn.004323d1
add esp, 8
lea edx, [esp + 8]
push edx
mov esi, dword [esp + 0x21c]
mov ecx, esi
call fcn.00403a80
mov ecx, dword [esp + 0x210]
mov eax, esi
pop esi
call fcn.00431d98
add esp, 0x210
ret 4

Function at 0x403e90
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x453ab8
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.00403e10
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 0x403ee8
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 0x403f0c
push eax
mov ecx, esi
call fcn.00403b20
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 0x403f16
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 0x403f70
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x46c3ac]
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 0x403fdd
mov eax, dword [esp + 0x10]
test eax, eax
je 0x403fbd
cmp eax, 1
jne 0x403fdd
cmp byte [esp + 0x122], 1
jne 0x403fdd
mov eax, 1
mov ecx, dword [esp + 0x12c]
call fcn.00431d98
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor eax, eax
call fcn.00431d98
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x403ff0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x128
mov eax, dword [0x46c3ac]
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 0x40406b
mov eax, dword [esp + 0x10]
test eax, eax
mov eax, 1
jne 0x404070
cmp byte [esp + 0x122], al
jne 0x404070
mov dword [esi + 0x4d4], eax
mov ecx, dword [esp + 0x12c]
call fcn.00431d98
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [esp + 0x12c]
call fcn.00431d98
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404090
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 [0x46c3ac]
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 0x4041d9
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 0x4570fc
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.00432636
add esp, 4
cmp eax, 1
jb 0x4041d9
lea ecx, [esp + 0x18]
push ecx
call fcn.00432636
mov ax, word [esp + eax*2 + 0x1a]
add esp, 4
cmp ax, 0x5c
je 0x404168
cmp ax, 0x2f
je 0x404168
lea edx, [esp + 0x18]
push 0x4570f8
push edx
call fcn.004323d1
add esp, 8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x224]
push str._sRsMain.exe
push ecx
call fcn.004322a4
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
call edi
test eax, eax
jne 0x4041b8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x224]
push str._sRav.exe
push ecx
call fcn.004322a4
add esp, 0xc
lea edx, [esp + 0x18]
push edx
call edi
test eax, eax
je 0x4041d9
mov dword [esi + 0x4d8], 1
mov eax, 1
mov ecx, dword [esp + 0x42c]
call fcn.00431d98
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x42c]
xor eax, eax
call fcn.00431d98
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4043a0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa3c
mov eax, dword [0x46c3ac]
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.004323fb
lea eax, [esp + 0x20]
push eax
call fcn.00432636
lea ecx, [esp + 0x24]
push 0x5c
push ecx
call fcn.004329eb
add esp, 0x14
cmp eax, esi
je 0x404597
lea edx, [esp + 0x18]
mov word [eax], si
push edx
lea eax, [esp + 0x42c]
push eax
call fcn.004323fb
lea ecx, [esp + 0x430]
push str.Local
push ecx
call fcn.004323d1
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea edx, [esp + 0x428]
push edx
call edi
test eax, eax
je 0x4044d2
mov dword [esp + 0x10], 1
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x224]
push ecx
call fcn.004323fb
lea edx, [esp + 0x228]
push str.LocalLow
push edx
call fcn.004323d1
add esp, 0x10
lea eax, [esp + 0x220]
push eax
call edi
test eax, eax
je 0x40450f
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x634]
push edx
call fcn.004323fb
lea eax, [esp + 0x638]
push str.Roaming
push eax
call fcn.004323d1
add esp, 0x10
lea ecx, [esp + 0x630]
push ecx
call edi
test eax, eax
mov eax, 1
jne 0x40454d
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], esi
je 0x404597
cmp dword [esp + 0xc], esi
je 0x404597
cmp eax, esi
je 0x404597
mov ecx, ebx
call fcn.00403f70
test eax, eax
je 0x404597
lea edx, [esp + 0x220]
push edx
push 0x457184
add ebx, 0x2a8
push ebx
call fcn.004322a4
add esp, 0xc
mov ecx, dword [esp + 0xa44]
call fcn.00431d98
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.004323d1
mov ecx, dword [esp + 0xa4c]
add esp, 8
call fcn.00431d98
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405430
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 [0x46c3ac]
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.004323d1
lea edx, [esp + 0x228]
push str.wnime
push edx
call fcn.004323d1
lea eax, [esp + 0x230]
push 0x4570f8
push eax
call fcn.004323d1
lea ecx, [esp + 0x238]
push str.wnime
push ecx
call fcn.004323d1
lea edx, [esp + 0x240]
push str..ini
push edx
call fcn.004323d1
add esp, 0x28
lea eax, [esp + 0x220]
push eax
push 0x104
lea ecx, [esp + 0x20]
push ecx
push 0x457084
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 0x40553c
lea eax, [esp + 0x18]
push eax
call fcn.00432636
add esp, 4
push eax
lea ecx, [esp + 0x1c]
push ecx
jmp 0x405661
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.004323fb
lea eax, [esp + 0x430]
push str.wnime
push eax
call fcn.004323d1
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 0x405609
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 0x405609
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405609
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.00403a40
mov ecx, dword [esp + 0x634]
call fcn.00431d98
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.004323d1
lea eax, [esp + 0x20]
push str.wnime
push eax
call fcn.004323d1
lea ecx, [esp + 0x28]
push 0x4570f8
push ecx
call fcn.004323d1
lea edx, [esp + 0x30]
push edx
call fcn.00432636
add esp, 0x1c
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esi + 0x280]
call fcn.00403600
mov ecx, dword [esp + 0x634]
call fcn.00431d98
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405ae0
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 0x453b5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
mov eax, dword [0x46c3ac]
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.00432636
add esp, 4
push eax
push str.DefAppPath
lea ecx, [esp + 0x14]
call fcn.00404f80
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 0x405b9d
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0044b775
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 0x405bef
lea edx, [esp + 0x28]
push 0x4570f8
push edx
call fcn.004323d1
mov eax, dword [esi + 0x18]
add esp, 8
cmp eax, 8
jb 0x405bcf
mov esi, dword [esi + 4]
jmp 0x405bd2
add esi, 4
lea eax, [esp + 0x28]
push esi
push eax
call fcn.004323d1
lea ecx, [esp + 0x30]
push 0x4570f8
push ecx
call fcn.004323d1
add esp, 0x10
lea edx, [esp + 0x28]
push edx
lea esi, [ebx + 0x270]
push 0x456f48
push esi
call fcn.00403960
mov eax, dword [esi]
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405c1f
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.00431d98
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret