joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001720
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058828
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push edi
mov eax, dword [0x1006a2a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
je 0x1000177e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x58], eax
mov dword [esi + 0x54], 2
lea ebx, [esi + 0x40]
push ebx
push 0x1005c4e0
push 1
push 0
push 0x1005c5b0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x100017bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x58], eax
mov dword [esi + 0x54], 3
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
mov edi, str.ROOTCIMV2
call fcn.100012b0
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [eax]
cmp eax, ecx
je 0x100017d8
mov ecx, dword [eax]
mov eax, dword [ebx]
mov edx, dword [eax]
lea edi, [esi + 0x44]
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1000184f
mov dword [ebp - 0x10], eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x10001848
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10001848
mov ecx, dword [eax]
test ecx, ecx
je 0x1000182c
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1000183f
push ecx
call fcn.100287d1
mov eax, dword [ebp - 0x10]
add esp, 4
push eax
call fcn.100281c4
add esp, 4
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x18], 0
je 0x100018a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi], 0
mov dword [esi + 0x58], eax
mov dword [esi + 0x54], 4
je 0x100018a5
mov eax, dword [ebx]
test eax, eax
je 0x1000187e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebx], 0
mov eax, dword [edi]
test eax, eax
je 0x10001892
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
je 0x100018d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x58], eax
mov dword [esi + 0x54], 5
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002920
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005a61b
mov eax, dword fs:[0]
push eax
sub esp, 0x874
mov eax, dword [0x1006a2a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
lea esi, [ebp - 0x2c]
mov edi, ecx
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
call fcn.100081d0
cmp word [ebp - 0x2c], 0x43
je 0x10002ae4
cmp word [ebp - 0x2a], 0x46
je 0x10002ae4
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x82a]
push edx
mov word [ebp - 0x82c], cx
call fcn.10029f30
add esp, 0xc
push 0x400
lea eax, [ebp - 0x82c]
push eax
push str._USERPROFILE_FunShion.ini
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
add edi, 8
lea ecx, [ebp - 0x848]
push edi
push ecx
call fcn.10057600
mov ebx, 8
add esp, 8
cmp dword [eax + 0x14], ebx
jb 0x100029da
mov eax, dword [eax]
lea edx, [ebp - 0x82c]
push edx
push eax
push 0x10060ff0
push str.FunShion_Player
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [ebp - 0x834], ebx
jb 0x10002a09
mov eax, dword [ebp - 0x848]
push eax
call fcn.100281c4
add esp, 4
xor ecx, ecx
push ecx
mov eax, 0x10060eb0
lea esi, [ebp - 0x864]
mov dword [ebp - 0x850], 7
mov dword [ebp - 0x854], 0
mov word [ebp - 0x864], cx
call fcn.100041a0
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.10007f20
cmp dword [ebp - 0x854], 0
je 0x10002acd
push str.FunShion.ini
mov edx, esi
push edx
lea eax, [ebp - 0x848]
push eax
call fcn.10005940
lea ecx, [ebp - 0x880]
push edi
push ecx
call fcn.10057600
mov ecx, dword [ebp - 0x848]
add esp, 0x14
cmp dword [ebp - 0x834], ebx
jae 0x10002a86
lea ecx, [ebp - 0x848]
cmp dword [eax + 0x14], ebx
jb 0x10002a8d
mov eax, dword [eax]
push ecx
push eax
push 0x10060ff0
push str.participation
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [ebp - 0x86c], ebx
jb 0x10002ab6
mov edx, dword [ebp - 0x880]
push edx
call fcn.100281c4
add esp, 4
cmp dword [ebp - 0x834], ebx
jb 0x10002acd
mov eax, dword [ebp - 0x848]
push eax
call fcn.100281c4
add esp, 4
cmp dword [ebp - 0x850], ebx
jb 0x10002ae4
mov ecx, dword [ebp - 0x864]
push ecx
call fcn.100281c4
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100281cf
mov esp, ebp
pop ebp
ret
Function at 0x10002c40
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
mov eax, dword [0x1006a2a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x7fe
mov esi, ecx
push eax
lea ecx, [ebp - 0x866]
push ecx
mov dword [ebp - 0x86c], 0
mov word [ebp - 0x868], ax
call fcn.10029f30
xor edx, edx
push 0x62
push edx
lea eax, [ebp - 0x66]
push eax
mov word [ebp - 0x68], dx
call fcn.10029f30
add esp, 0x18
push 0x400
lea ecx, [ebp - 0x868]
push ecx
push str._USERPROFILE_FunShion.ini
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [ebp - 0x868]
push edx
push 0x32
lea eax, [ebp - 0x68]
push eax
push 0x10061090
push 0x10061094
push str.FunShion_Player
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
lea eax, [ebp - 0x68]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10002ce2
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x68]
call fcn.100041a0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100281cf
mov esp, ebp
pop ebp
ret

Function at 0x10002d10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x1006a2a8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x802]
push ecx
mov word [ebp - 0x804], ax
call fcn.10029f30
add esp, 0xc
push 0x400
lea edx, [ebp - 0x804]
push edx
push str._USERPROFILE_FunShion.ini
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x820]
push 0x1006c924
push eax
call fcn.10057600
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x10002d74
mov eax, dword [eax]
lea ecx, [ebp - 0x804]
push ecx
push eax
push 0x10061094
push str.FunShion_Player
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [ebp - 0x80c], 8
jb 0x10002da4
mov edx, dword [ebp - 0x820]
push edx
call fcn.100281c4
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100281cf
mov esp, ebp
pop ebp
ret
Function at 0x10007430
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x1006a2a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1006114c]
push esi
mov esi, ecx
mov dword [esi], eax
mov ecx, dword [0x10061150]
mov dword [esi + 4], ecx
mov edx, dword [0x10061154]
mov dword [esi + 8], edx
mov al, byte [0x10061158]
mov ecx, edi
mov byte [esi + 0xc], al
call fcn.10006af0
test al, al
je 0x10007513
mov eax, dword [edi + 0x3c]
mov ecx, 0xd
cmp eax, 0xd
ja 0x10007485
mov ecx, eax
cmp dword [edi + 0x40], 0x10
lea eax, [edi + 0x2c]
jb 0x10007490
mov eax, dword [eax]
push ecx
push eax
push esi
call fcn.10029fb0
add esp, 0xc
push 4
push 0x10061234
lea ecx, [edi + 0x10]
call fcn.10004550
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x806]
push edx
mov word [ebp - 0x808], cx
call fcn.10029f30
add esp, 0xc
push 0x400
lea eax, [ebp - 0x808]
push eax
push str._USERPROFILE_FunShion.ini
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x808]
push ecx
push str.file
push 0x100612bc
push str.FunShion_Player
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, edi
call fcn.100075f0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100281cf
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.100069b0
test al, al
je 0x10007574
mov eax, dword [edi + 0x3c]
mov ecx, 0xd
cmp eax, 0xd
ja 0x1000752d
mov ecx, eax
cmp dword [edi + 0x40], 0x10
lea eax, [edi + 0x2c]
jb 0x10007538
mov eax, dword [eax]
push ecx
push eax
push esi
call fcn.10029fb0
add esp, 0xc
push 3
push 0x10061248
lea ecx, [edi + 0x10]
call fcn.10004550
mov esi, 0x1006124c
call fcn.10008160
mov ecx, edi
call fcn.100075f0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100281cf
mov esp, ebp
pop ebp
ret
push edi
call fcn.10007060
test al, al
je 0x100075d4
mov eax, dword [edi + 0x3c]
mov ecx, 0xd
cmp eax, 0xd
ja 0x1000758d
mov ecx, eax
cmp dword [edi + 0x40], 0x10
lea eax, [edi + 0x2c]
jb 0x10007598
mov eax, dword [eax]
push ecx
push eax
push esi
call fcn.10029fb0
add esp, 0xc
push 3
push 0x10061254
lea ecx, [edi + 0x10]
call fcn.10004550
mov esi, 0x10061258
call fcn.10008160
mov ecx, edi
call fcn.100075f0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100281cf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.100281cf
mov esp, ebp
pop ebp
ret
Function at 0x100075f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005ac16
mov eax, dword fs:[0]
push eax
sub esp, 0x864
mov eax, dword [0x1006a2a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x86c]
mov esi, ecx
push eax
mov dword [ebp - 0x86c], esi
mov byte [ebp - 0x868], 0
call fcn.10008b00
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x80e]
mov dword [ebp - 4], 0
push edx
mov word [ebp - 0x810], cx
call fcn.10029f30
add esp, 0xc
push 0x400
lea eax, [ebp - 0x810]
push eax
push str._USERPROFILE_FunShion.ini
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edi, [esi + 0x2c]
lea ecx, [ebp - 0x864]
push edi
push ecx
call fcn.10057600
mov ebx, 8
add esp, 8
cmp dword [eax + 0x14], ebx
jb 0x10007694
mov eax, dword [eax]
lea edx, [ebp - 0x810]
push edx
push eax
push 0x10060ff0
push str.FunShion_Player
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [ebp - 0x850], ebx
jb 0x100076c3
mov eax, dword [ebp - 0x864]
push eax
call fcn.100281c4
add esp, 4
xor ecx, ecx
push ecx
mov eax, 0x10060eb0
lea esi, [ebp - 0x82c]
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], 0
mov word [ebp - 0x82c], cx
call fcn.100041a0
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.10007f20
xor esi, esi
cmp dword [ebp - 0x81c], esi
je 0x100077c1
push str.FunShion.ini
lea edx, [ebp - 0x82c]
push edx
lea eax, [ebp - 0x848]
push eax
call fcn.10005940
add esp, 0xc
lea ecx, [ebp - 0x864]
push edi
push ecx
call fcn.10057600
mov ecx, dword [ebp - 0x848]
add esp, 8
cmp dword [ebp - 0x834], ebx
jae 0x10007749
lea ecx, [ebp - 0x848]
cmp dword [eax + 0x14], ebx
jb 0x10007750
mov eax, dword [eax]
push ecx
push eax
push 0x10060ff0
push str.participation
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [ebp - 0x850], ebx
jb 0x10007779
mov edx, dword [ebp - 0x864]
push edx
call fcn.100281c4
add esp, 4
xor eax, eax
mov edi, 7
mov dword [ebp - 0x850], edi
mov dword [ebp - 0x854], esi
mov word [ebp - 0x864], ax
cmp dword [ebp - 0x834], ebx
jb 0x100077aa
mov ecx, dword [ebp - 0x848]
push ecx
call fcn.100281c4
add esp, 4
xor edx, edx
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x838], esi
mov word [ebp - 0x848], dx
jmp 0x100077c6
mov edi, 7
cmp dword [ebp - 0x818], ebx
jb 0x100077dd
mov eax, dword [ebp - 0x82c]
push eax
call fcn.100281c4
add esp, 4
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], esi
mov word [ebp - 0x82c], cx
cmp byte [ebp - 0x868], cl
je 0x10007845
mov eax, dword [ebp - 0x86c]
dec dword [eax]
jne 0x10007845
xor edx, edx
lea ecx, [eax + 4]
xchg dword [ecx], edx
add eax, 8
mov ecx, SysReAllocString
mov edx, eax
lock xadd dword [edx], ecx
test ecx, 0x40000000
jne 0x10007845
cmp ecx, 0x80000000
jle 0x10007845
mov ecx, eax
lock bts dword [ecx], 0x1e
jb 0x10007845
call fcn.10006340
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100281cf
mov esp, ebp
pop ebp
ret
Function at 0x10008160
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x1006a2a8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x802]
push ecx
mov word [ebp - 0x804], ax
call fcn.10029f30
add esp, 0xc
push 0x400
lea edx, [ebp - 0x804]
push edx
push str._USERPROFILE_FunShion.ini
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x804]
push eax
push esi
push 0x100612bc
push str.FunShion_Player
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.100281cf
mov esp, ebp
pop ebp
ret

Function at 0x100081d0
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x1006a2a8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x802]
push ecx
mov word [ebp - 0x804], ax
call fcn.10029f30
add esp, 0xc
test esi, esi
jne 0x10008216
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100281cf
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x400
mov dword [esi], eax
lea edx, [ebp - 0x804]
mov dword [esi + 4], eax
push edx
mov dword [esi + 8], eax
push str._USERPROFILE_FunShion.ini
mov byte [esi + 0xc], al
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x804]
push eax
push 0xd
push esi
push 0x10061090
push 0x10060ff0
push str.FunShion_Player
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.100281cf
mov esp, ebp
pop ebp
ret
Function at 0x10008270
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x1006a2a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x7fe
mov esi, ecx
push eax
lea ecx, [ebp - 0x802]
push ecx
mov word [ebp - 0x804], ax
call fcn.10029f30
add esp, 0xc
test esi, esi
jne 0x100082ba
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100281cf
mov esp, ebp
pop ebp
ret
xor eax, eax
mov edx, 0xa
mov word [edi], dx
mov dword [esi], eax
mov dword [esi + 4], eax
mov word [esi + 8], ax
push 0x400
lea eax, [ebp - 0x804]
push eax
push str._USERPROFILE_FunShion.ini
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
movzx edx, word [edi]
lea ecx, [ebp - 0x804]
push ecx
inc edx
push edx
push esi
push 0x10061090
push 0x100612bc
push str.FunShion_Player
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov word [ebp - 0x820], ax
mov eax, esi
mov dword [ebp - 0x80c], 7
mov dword [ebp - 0x810], 0
lea edx, [eax + 2]
jmp 0x10008330
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10008330
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [ebp - 0x820]
call fcn.100041a0
cmp dword [ebp - 0x810], 3
jae 0x1000837f
cmp dword [ebp - 0x80c], 8
jb 0x1000836e
mov ecx, dword [ebp - 0x820]
push ecx
call fcn.100281c4
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100281cf
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x80c], 8
jb 0x10008397
mov edx, dword [ebp - 0x820]
push edx
call fcn.100281c4
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.100281cf
mov esp, ebp
pop ebp
ret
Function at 0x100083b0
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005ab21
mov eax, dword fs:[0]
push eax
mov eax, 0x105c
call fcn.10037130
mov eax, dword [0x1006a2a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
test edi, edi
je 0x10008619
cmp dword [ebp + 8], 0xc
jne 0x10008619
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x100e]
push ecx
mov word [ebp - 0x1010], ax
call fcn.10029f30
add esp, 0xc
push 0x400
lea edx, [ebp - 0x1010]
push edx
push str._USERPROFILE_FunShion.ini
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x80e]
push ecx
mov word [ebp - 0x810], ax
call fcn.10029f30
add esp, 0xc
lea edx, [ebp - 0x1010]
push edx
push 0x400
lea eax, [ebp - 0x810]
push eax
push 0x10061090
push str.hismac
push str.FunShion_Player
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
lea eax, [ebp - 0x810]
mov dword [ebp - 0x1018], 7
mov dword [ebp - 0x101c], 0
mov word [ebp - 0x102c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10008496
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
lea esi, [ebp - 0x102c]
call fcn.100041a0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x101c], 0x81
jbe 0x10008507
mov edx, dword [ebp - 0x1018]
mov esi, dword [ebp - 0x102c]
mov eax, esi
cmp edx, 8
jae 0x100084e3
lea eax, [ebp - 0x102c]
lea ecx, [eax + 0x1a]
mov eax, esi
cmp edx, 8
jae 0x100084f3
lea eax, [ebp - 0x102c]
push ecx
push eax
lea edx, [ebp - 0x1068]
push edx
lea eax, [ebp - 0x102c]
call fcn.100087c0
cmp dword [ebp - 0x101c], 0xc
jbe 0x100085a4
push 0x100612d4
lea eax, [ebp - 0x102c]
push eax
lea ecx, [ebp - 0x1064]
push ecx
call fcn.10005940
push eax
mov eax, edi
lea ecx, [ebp - 0x1048]
mov byte [ebp - 4], 1
call fcn.10008ce0
add esp, 0x10
mov edi, eax
lea esi, [ebp - 0x102c]
mov byte [ebp - 4], 2
call fcn.10003e10
mov esi, 8
cmp dword [ebp - 0x1034], esi
jb 0x1000856e
mov edx, dword [ebp - 0x1048]
push edx
call fcn.100281c4
add esp, 4
xor eax, eax
mov dword [ebp - 0x1034], 7
mov dword [ebp - 0x1038], 0
mov word [ebp - 0x1048], ax
cmp dword [ebp - 0x1050], esi
jb 0x100085d2
mov ecx, dword [ebp - 0x1064]
push ecx
call fcn.100281c4
add esp, 4
jmp 0x100085d2
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100085b0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [ebp - 0x102c]
call fcn.100041a0
mov esi, 8
mov eax, dword [ebp - 0x102c]
cmp dword [ebp - 0x1018], esi
jae 0x100085e6
lea eax, [ebp - 0x102c]
lea edx, [ebp - 0x1010]
push edx
push eax
push str.hismac
push str.FunShion_Player
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [ebp - 0x1018], esi
jb 0x10008615
mov eax, dword [ebp - 0x102c]
push eax
call fcn.100281c4
add esp, 4
xor eax, eax
jmp 0x1000861c
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100281cf
mov esp, ebp
pop ebp
ret
Function at 0x10008640
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x1006a2a8]
xor eax, ebp
mov dword [ebp - 4], eax
test esi, esi
jne 0x10008668
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100281cf
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x802]
push ecx
mov word [ebp - 0x804], ax
call fcn.10029f30
add esp, 0xc
push 0x400
lea edx, [ebp - 0x804]
push edx
push str._USERPROFILE_FunShion.ini
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x804]
push eax
push esi
push 0x100612d8
push str.FunShion_Player
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.100281cf
mov esp, ebp
pop ebp
ret

Function at 0x10008c20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10059cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x1006a2a8]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.100095e0
push eax
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x70], 0
call fcn.10009640
add esp, 0x10
push 0x10065c80
lea eax, [esp + 0x30]
push eax
call fcn.10029e49
int3
Function at 0x10009dc0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x1006a2a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0xff
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.10029f30
push 0x11c
lea ecx, [ebp - 0x23c]
push 0
push ecx
call fcn.10029f30
add esp, 0x18
lea edx, [ebp - 0x23c]
push edx
mov dword [ebp - 0x23c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x10009e28
or esi, 0xffffffff
jmp 0x10009e60
mov eax, dword [ebp - 0x238]
cmp eax, 6
jne 0x10009e41
cmp dword [ebp - 0x234], 1
jne 0x10009e5e
lea esi, [eax - 3]
jmp 0x10009e60
cmp eax, 5
jne 0x10009e5e
mov eax, dword [ebp - 0x234]
cmp eax, 2
jne 0x10009e55
mov esi, eax
jmp 0x10009e60
cmp eax, 1
jne 0x10009e5e
mov esi, eax
jmp 0x10009e60
xor esi, esi
push edi
lea eax, [ebp - 0x120]
push 0x1006c8ec
push eax
call fcn.100573c0
mov edi, 0x10
add esp, 8
cmp dword [eax + 0x14], edi
jb 0x10009e81
mov eax, dword [eax]
mov edx, dword [0x1006c8d0]
cmp dword [0x1006c8e4], edi
jae 0x10009e94
mov edx, 0x1006c8d0
mov ecx, dword [0x1006c8b4]
cmp dword [0x1006c8c8], edi
jae 0x10009ea7
mov ecx, 0x1006c8b4
push eax
push edx
movzx edx, byte [0x1006d954]
push edx
mov edx, dword [0x1006d948]
push ecx
mov ecx, dword [0x1006d94c]
movsx eax, si
push eax
mov eax, dword [0x1006d950]
push ecx
push edx
push eax
push str.dtfsmacmtm_dercd_doser_dwvin_dsrc_ssame_dmsrc_spsrc_s
lea edx, [ebp - 0x104]
call fcn.1000bcf0
add esp, 0x24
cmp dword [ebp - 0x10c], edi
pop edi
jb 0x10009ef5
mov ecx, dword [ebp - 0x120]
push ecx
call fcn.100281c4
add esp, 4
mov esi, dword [ebp + 0xc]
push esi
push 0
push ebx
call fcn.10029f30
push esi
lea edx, [ebp - 0x104]
push edx
push ebx
call fcn.10029fb0
mov ecx, dword [ebp - 4]
add esp, 0x18
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.100281cf
mov esp, ebp
pop ebp
ret
Function at 0x1000aef0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x1006a2a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.10029f30
add esp, 0xc
push 0x400
lea ecx, [ebp - 0x404]
push ecx
xor esi, esi
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x1000af64
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1000af64
mov eax, dword [eax + 0xc]
cmp dword [eax], esi
je 0x1000af64
mov eax, dword [eax]
mov eax, dword [eax]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100281cf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100281cf
mov esp, ebp
pop ebp
ret