joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409820
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4cf500]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x144]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x11c
lea ecx, [ebp - 0x120]
push esi
push ecx
call fcn.00477f60
add esp, 0xc
lea edx, [ebp - 0x120]
push edx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4098ba
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472ba1
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x110], 2
jne 0x409987
mov eax, dword [ebp - 0x11c]
sub eax, 5
je 0x409947
mov ecx, 1
sub eax, ecx
jne 0x409987
mov eax, dword [ebp - 0x118]
cmp eax, 2
jne 0x409909
cmp byte [ebp - 6], cl
jne 0x409987
mov esi, 5
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472ba1
mov esp, ebp
pop ebp
ret
cmp eax, ecx
jne 0x409928
cmp byte [ebp - 6], cl
jne 0x409987
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472ba1
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x409987
cmp byte [ebp - 6], cl
jne 0x409987
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472ba1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x118]
cmp eax, 2
jne 0x409978
cmp byte [ebp - 6], 1
jne 0x409987
cmp word [ebp - 0x144], 9
jne 0x409987
mov esi, 2
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472ba1
mov esp, ebp
pop ebp
ret
mov ecx, 1
cmp eax, ecx
je 0x409962
test eax, eax
jne 0x409987
mov esi, ecx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00472ba1
mov esp, ebp
pop ebp
ret

Function at 0x409a10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4cf500]
xor eax, ebp
mov dword [ebp - 4], eax
test edi, edi
jne 0x409a34
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472ba1
mov esp, ebp
pop ebp
ret
xor ecx, ecx
lea eax, [esi + esi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00471a74
add esp, 4
xor ecx, ecx
test esi, esi
je 0x409ab6
mov dword [ebp - 0x14], 0x33323130
mov dword [ebp - 0x10], 0x37363534
mov dword [ebp - 0xc], 0x62613938
mov dword [ebp - 8], 0x66656463
mov dword [ebp - 0x24], 0x33323130
mov dword [ebp - 0x20], 0x37363534
mov dword [ebp - 0x1c], 0x62613938
mov dword [ebp - 0x18], 0x66656463
nop
movzx edx, byte [ecx + edi]
shr edx, 4
movzx edx, byte [ebp + edx - 0x14]
mov word [eax + ecx*4], dx
movzx edx, byte [ecx + edi]
and edx, 0xf
movzx edx, byte [ebp + edx - 0x24]
mov word [eax + ecx*4 + 2], dx
inc ecx
cmp ecx, esi
jb 0x409a90
xor ecx, ecx
mov dword [eax + esi*4], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472ba1
mov esp, ebp
pop ebp
ret
Function at 0x40ae40
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x4cf500]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push eax
push 8
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40ae8d
lea eax, [ebp - 0x434]
push eax
push esi
mov dword [ebp - 0x434], 0x428
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
jne 0x40aea0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00472ba1
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x414]
push ecx
call fcn.00473c01
add esp, 8
test eax, eax
je 0x40aeca
lea edx, [ebp - 0x434]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x40aea0
jmp 0x40aecf
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00472ba1
mov esp, ebp
pop ebp
ret

Function at 0x40cc70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498ec2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4cf500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 0
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
mov dword [ebp - 0x220], esi
call edx
add eax, 0x10
mov dword [esi], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x21c], 1
mov word [ebp - 0x218], ax
call fcn.00477f60
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40cd32
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cd14
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00401b90
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472ba1
mov esp, ebp
pop ebp
ret
Function at 0x40cf10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498ec2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4cf500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 0
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
mov dword [ebp - 0x220], esi
call edx
add eax, 0x10
mov dword [esi], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x21c], 1
mov word [ebp - 0x218], ax
call fcn.00477f60
mov edx, dword [ebp + 8]
add esp, 0xc
push 0
push edx
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40cfd5
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cfb7
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, esi
call fcn.00401b90
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472ba1
mov esp, ebp
pop ebp
ret

Function at 0x40cff0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d006
test al, 0x10
jne 0x40d006
mov eax, 1
ret
xor eax, eax
ret
Function at 0x40de50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a25d
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4cf500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x206
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x216]
xor eax, eax
push ebx
mov dword [ebp - 0x220], ebx
push ecx
mov dword [ebp - 0x224], esi
mov word [ebp - 0x218], ax
call fcn.00477f60
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00401c90
mov edi, 1
mov dword [ebp - 4], ebx
mov eax, edi
lea ecx, [ebp - 0x21c]
mov edx, esi
mov dword [ebp - 0x220], edi
call fcn.0040b480
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0x21c]
push edi
push 0x4ab1b0
push esi
call fcn.0040bea0
lea eax, [edi - 0x10]
add esp, 0xc
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40df20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472ba1
mov esp, ebp
pop ebp
ret
Function at 0x410e80
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a9d8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4cf500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov ebx, 0x4aac6c
mov edi, str.SOFTWAREClassesCLSID18689D3E_CF06_482F_AEB1_0880F859F0AAInprocServer32
mov ecx, 0x80000002
mov dword [ebp - 4], 0
call fcn.00417fd0
mov esi, dword [ebp - 0x10]
add esp, 4
cmp dword [esi - 0xc], 0
je 0x410eff
lea ecx, [ebp - 0x10]
push ecx
mov edi, str.SOFTWAREClassesCLSID1CF25200_FD42_45F6_ABBD_6C0C9C89B77AInprocServer32
mov ecx, 0x80000002
call fcn.00417fd0
mov esi, dword [ebp - 0x10]
add esp, 4
mov eax, dword [esi - 0xc]
or edi, 0xffffffff
test eax, eax
je 0x410f48
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, edi
je 0x410f48
test al, 0x10
jne 0x410f48
lea eax, [esi - 0x10]
mov dword [ebp - 4], edi
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x410f34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x10]
mov dword [ebp - 4], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x410f64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410f80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c726
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x4cf500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, 1
xor edi, edi
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_51], bl
jne 0x410fd9
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_51], ebx
mov dword [ebp - 4], edi
call fcn.00418090
push 0x4a2ae0
call fcn.00472e64
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
push eax
push sym.Install.exe__t__1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_4V__singleton_wrapp
call fcn.00419360
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
push ecx
mov ebx, str._funoictl.dll
call fcn.004066b0
add esp, 8
mov bl, 3
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411020
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x10]
push str._s___s_
push edx
call fcn.0040bea0
add esp, 0xc
push str.regsvr32
lea ecx, [ebp - 0x14]
call fcn.00401c90
push 0x38
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.00477f60
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
add esp, 0xc
lea edx, [ebp - 0x58]
push edx
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x54], pe_nt_image_headers32
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4110b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4110d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4110f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411110
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c726
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x4cf500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, 1
xor edi, edi
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_51], bl
jne 0x411169
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_51], ebx
mov dword [ebp - 4], edi
call fcn.00418090
push 0x4a2ae0
call fcn.00472e64
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
push eax
push sym.Install.exe__t__1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_4V__singleton_wrapp
call fcn.00419360
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
push ecx
mov ebx, str._funoictl.dll
call fcn.004066b0
add esp, 8
mov bl, 3
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4111b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x10]
push str._u__s___s_
push edx
call fcn.0040bea0
add esp, 0xc
push str.regsvr32
lea ecx, [ebp - 0x14]
call fcn.00401c90
push 0x38
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.00477f60
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
add esp, 0xc
lea edx, [ebp - 0x58]
push edx
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x54], pe_nt_image_headers32
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411243
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411262
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411288
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412050
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49bc06
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4cf500]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x4cf500]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
xor edi, edi
or ebx, 0xffffffff
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpFunshionIni___serialization_boost__CAAAVCFpFunshionIni__XZ_51], 1
jne 0x4120b6
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpFunshionIni___serialization_boost__CAAAVCFpFunshionIni__XZ_51], 1
mov dword [esp + 0x68], edi
call fcn.00414190
push 0x4a25c0
call fcn.00472e64
add esp, 4
mov dword [esp + 0x68], ebx
xor eax, eax
cmp eax, 0x4da6c0
je 0x41214f
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x68], 1
push ecx
xor esi, esi
mov dword [esp + 0x18], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x412103
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
push edi
push esi
lea edx, [esp + 0x18]
push str._I64u
push edx
call fcn.0040bea0
mov eax, dword [0x4da6c0]
mov esi, dword [esp + 0x20]
add esp, 0x10
push eax
push esi
push 0x4acfc8
push str.FunShion_Player
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x68], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x41214f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00472ba1
mov esp, ebp
pop ebp
ret
Function at 0x412ac0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49bbc6
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4cf500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpFunshionIni___serialization_boost__CAAAVCFpFunshionIni__XZ_51], 1
jne 0x412b16
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpFunshionIni___serialization_boost__CAAAVCFpFunshionIni__XZ_51], 1
mov dword [ebp - 4], 0
call fcn.00414190
push 0x4a25c0
call fcn.00472e64
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor eax, eax
cmp eax, 0x4da6c0
je 0x412bcc
push str.ID_SETTING_LANGUAGE
lea ecx, [ebp - 0x14]
call fcn.00401c90
push str.FunShion_Player
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.00401c90
mov ecx, dword [0x4da6c0]
push ecx
or esi, 0xffffffff
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412b70
mov edx, dword [0x4da6c0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412b8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412bb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
je 0x412bcc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
xor edx, edx
mov ecx, 0x804
cmp ax, cx
setne dl
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x414750
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4967b8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4cf500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov edx, dword [ebp + 8]
mov edx, dword [edx]
push esi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea esi, [ebp - 0x14]
lea eax, [ebx + 4]
call fcn.00471040
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4147b6
test al, 0x10
jne 0x4147b6
mov eax, 1
jmp 0x4147b8
xor eax, eax
test eax, eax
mov eax, dword [ebp - 0x14]
sete byte [ebp - 0xd]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4147dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], 0
je 0x414871
lea esi, [ebp + 0xc]
lea eax, [ebx + 4]
call fcn.00471040
mov edi, eax
lea esi, [ebp + 0x10]
mov eax, ebx
mov dword [ebp - 4], 0
call fcn.00471040
mov edi, dword [edi]
mov eax, dword [eax]
push 1
push 0
push 0
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414838
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41488d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebx + 4]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x418130
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4cf500]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
mov dword [ebp - 0x210], 0
push ecx
mov word [ebp - 0x20c], ax
call fcn.00477f60
add esp, 0xc
push 0
push 0x26
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4181d1
lea eax, [ebp - 0x210]
push str.Funshion_Online_
push eax
mov ecx, 0x4da2e8
call fcn.0040b5a0
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.00473902
mov eax, dword [ebp - 0x210]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4181d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, esi
call fcn.00401c90
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.00472ba1
mov esp, ebp
pop ebp
ret