joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008fa90
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x14
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
cmp byte [eax], 2
push esi
jne 0x1008fb50
cmp byte [eax + 1], 2
jne 0x1008fb50
mov eax, ecx
lea esi, [eax + 1]
jmp 0x1008fac0
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1008fac0
sub eax, esi
cmp byte [eax + ecx - 1], 0xa
jne 0x1008fae6
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1008fad7
sub eax, esi
mov byte [eax + ecx - 1], dl
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1008fb50
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x10]
push ecx
call sub.MSVCR80.dll_memcpy
mov edx, dword [esp + 0x14]
add esp, 0xc
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
test eax, eax
je 0x1008fb50
mov ecx, eax
lea esi, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x1008fb20
sub ecx, esi
push ecx
push eax
push edi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov al, 1
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.1012d370
add esp, 0x14
ret 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x14]
pop esi
xor ecx, esp
xor al, al
call fcn.1012d370
add esp, 0x14
ret 4
Function at 0x10092cb0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x1013b4d9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x10170024]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34]
add eax, 0x38
push eax
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push str.WindowsAB_Function.dat
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0
call dword [0x101464cc]
cmp dword [esp + 0x1c], 8
mov eax, dword [esp + 8]
jae 0x10092d16
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 4]
jne 0x10092d37
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
jmp 0x10092d3f
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1012d370
add esp, 0x2c
ret 4
Function at 0x10093440
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x1014d108
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10093481
mov ax, word [esp]
cmp ax, 9
je 0x10093478
cmp ax, 6
jne 0x10093481
mov eax, 1
add esp, 0x24
ret
xor eax, eax
add esp, 0x24
ret

Function at 0x10093650
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
push esi
push edi
push 0x40
lea eax, [esp + 0x20]
push 0
push eax
mov dword [esp + 0x24], 0
call sub.MSVCR80.dll_memset
xor eax, eax
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [esp + 0x44], 0x101
mov word [esp + 0x48], 0
call fcn.100938a0
mov ecx, dword [ebp + 8]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
mov esi, eax
call edi
mov eax, dword [esp + 0xc]
push eax
call edi
xor eax, eax
test esi, esi
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10094510
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
mov esi, ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x1009455a
test edi, edi
je 0x1009455a
cmp byte [ebp + 0x18], 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi + 4]
jne 0x10094565
push 0
push 0
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x10094576
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 2
push 0
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1009455a
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x10]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
test eax, eax
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x100945a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
mov esi, ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100945e4
test edi, edi
je 0x100945e4
cmp byte [ebp + 0x10], al
je 0x100945ef
push 2
xor ecx, ecx
push ecx
push ecx
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x10094617
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp byte [ebp + 0x1c], 0
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov eax, dword [esi + 4]
jne 0x10094606
push 0
push 0
push ecx
push edx
jmp 0x100945d9
push 2
push 0
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x100945e4
mov edx, dword [esi + 4]
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
test eax, eax
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x10096310
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10096334
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
test al, 0x10
mov esi, dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
je 0x10096372
lea eax, [esp + 8]
push eax
push str.S_1_1_0
mov dword [esp + 0x10], 0
call sub.ADVAPI32.dll_ConvertStringSidToSidW
mov ecx, dword [esp + 8]
push 0
push 0
push 0
push ecx
push 1
push 1
push edi
call esi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
push 3
push 1
push 0x10000000
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
push str.Everyone
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameW]
lea ecx, [esp + 0xc]
push ecx
push 0
lea edx, [esp + 0x18]
push edx
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x1009632a
push eax
mov eax, dword [esp + 0x10]
push eax
push 0
push 0
push 4
push 1
push edi
call esi
test eax, eax
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10096520
Capabilities:
Acquire debug privileges

Disassembly:
push 0xffffffffffffffff
push 0x1013b4af
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10170024]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea ecx, [esi + 0x210]
mov dword [esi], vtable.GA::RegistryControl.0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x24], esp
push str.SeDebugPrivilege
mov dword [esp + 0x34], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
call fcn.10098640
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x24], esp
push str.SeAuditPrivilege
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
call fcn.10098640
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x24], esp
push str.SeSecurityPrivilege
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
call fcn.10098640
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x24], esp
push str.SeTakeOwnershipPrivilege
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
call fcn.10098640
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x24], esp
push str.SeManageVolumePrivilege
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
call fcn.10098640
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x24], esp
push str.SeRestorePrivilege
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
call fcn.10098640
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x24], esp
push str.SeBackupPrivilege
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
call fcn.10098640
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x24], esp
push str.SeLoadDriverPrivilege
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
call fcn.10098640
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x24], esp
push str.SeSystemEnvironmentPrivilege
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
call fcn.10098640
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x10096960
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1013d890
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x10170024]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
cmp byte [ebp + 0xc], 0
je 0x10096ad4
xor edi, edi
mov dword [esp + 0x18], vtable.MemoryControl.0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x40], edi
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x10]
push ecx
push edi
mov ecx, esi
mov dword [esp + 0x18], edi
call edx
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
call fcn.100997e0
mov ebx, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x100969e8
mov ecx, dword [esp + 0x20]
push ecx
push edi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
lea eax, [esp + 0x10]
push eax
push ebx
mov ecx, esi
call edx
test al, al
jne 0x10096a24
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x10096a0d
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x2c]
call fcn.10099a40
add esp, 8
xor ebx, ebx
lea esp, [esp]
mov esi, dword [esp + 0x28]
test esi, esi
je 0x10096a9d
mov ecx, dword [esp + 0x2c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x10096a9d
cmp dword [ebx + esi + 0x18], 8
jb 0x10096a82
mov esi, dword [ebx + esi + 4]
jmp 0x10096a86
lea esi, [ebx + esi + 4]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
add edi, 1
add ebx, 0x1c
jmp 0x10096a50
lea ebx, [esp + 0x24]
mov byte [esp + 0x40], 0
call fcn.100036b0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10096abd
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x10096abd
cmp eax, 2
je 0x10096abd
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10097b30
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10097b6a
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop ecx
ret 0xc
cmp dword [esp], 1
sete al
pop ecx
ret 0xc
Function at 0x10099090
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x31c
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x318], eax
push ebx
push esi
xor eax, eax
push edi
xor ebx, ebx
push 0xfe
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x22]
push ebx
push eax
mov dword [esp + 0x18], ebx
mov word [esp + 0x28], bx
call sub.MSVCR80.dll_memset
push 0x206
lea ecx, [esp + 0x12e]
push ebx
push ecx
mov word [esp + 0x134], bx
call sub.MSVCR80.dll_memset
add esp, 0x18
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.RPCRT4.dll_UuidCreate]
movzx eax, byte [esp + 0x1b]
movzx ecx, byte [esp + 0x1a]
push eax
mov eax, dword [esp + 0x1c]
push ecx
movzx ecx, byte [esp + 0x1f]
movzx edx, ah
push edx
movzx edx, byte [esp + 0x22]
movzx eax, al
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
movzx ecx, ah
push ecx
movzx ecx, word [esp + 0x2c]
movzx edx, al
movzx eax, word [esp + 0x2e]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
lea eax, [esp + 0x48]
push 0x1014c4a8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x34
lea ecx, [esp + 0x11c]
call fcn.10099410
mov esi, eax
cmp esi, ebx
jne 0x100991ac
push 0xed
call fcn.10098780
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push edi
push ebx
push str.GetAppDataPath_tszAomeiBR__MAX_PATH_
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x318]
xor ecx, esp
call fcn.1012d370
add esp, 0x31c
ret
mov esi, dword [sym.imp.MSVCR80.dll_wcscat_s]
push ebp
push 0x1014c85c
lea eax, [esp + 0x124]
push 0x104
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x10099222
call ebp
cmp eax, 2
jne 0x10099222
push ebx
lea edx, [esp + 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
cmp edi, ebx
jne 0x10099222
push 0xf5
call fcn.10098780
add esp, 4
push eax
push str.CreateDirectory_tszAomeiBR__NULL_
call ebp
mov esi, eax
call fcn.100016d0
add esp, 8
mov eax, edi
jmp 0x1009928d
push str.comn.ini
lea eax, [esp + 0x124]
push 0x104
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x120]
push ecx
lea edx, [esp + 0x24]
push edx
push str.MARK
push str.COMN
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
cmp esi, ebx
jne 0x1009928b
push 0xfb
call fcn.10098780
add esp, 4
mov edi, eax
call ebp
mov ebx, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push edi
push ebx
push str.WritePrivateProfileString_TEXT__COMN____TEXT__MARK____tszMark__tszAomeiBR_
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
mov eax, esi
mov ecx, dword [esp + 0x328]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1012d370
add esp, 0x31c
ret
Function at 0x100992b0
Capabilities:
Check if file exists
Get file attributes
Get hostname
Read .ini file

Disassembly:
sub esp, 0x230
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
lea eax, [esp + 0x36]
push ebx
push eax
mov edi, ecx
mov word [esp + 0x3c], bx
call sub.MSVCR80.dll_memset
xor eax, eax
add esp, 0xc
lea ecx, [esp + 0x30]
mov word [esp + 0x10], bx
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov word [esp + 0x2e], ax
mov dword [esp + 0xc], 0xf
call fcn.10099410
mov esi, eax
cmp esi, ebx
jne 0x1009935a
push 0x10a
call fcn.10098780
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push edi
push ebx
push str.GetAppDataPath_tszAomeiBR__MAX_PATH_
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
jmp 0x100993f0
push str.AomeiBRcomn.ini
lea eax, [esp + 0x34]
push 0x104
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov esi, edx
cmp esi, ebx
jne 0x100993c0
push 0x10e
call fcn.10098780
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push edi
push ebx
push str.GetFileAttributes_tszAomeiBR__INVALID_FILE_ATTRIBUTES
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
jmp 0x100993f0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea edx, [esp + 0x30]
push edx
push 0x80
push edi
lea eax, [esp + 0x1c]
push eax
push str.MARK
push str.COMN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [esp + 0x238]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.1012d370
add esp, 0x230
ret
Function at 0x10099410
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push edi
push 0x206
lea eax, [esp + 0x12]
push 0
push eax
mov edi, ecx
mov word [esp + 0x18], 0
call sub.MSVCR80.dll_memset
xor ecx, ecx
add esp, 0xc
test edi, edi
setne cl
mov esi, ecx
test esi, esi
jne 0x10099489
push 0x120
call fcn.10098780
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [eax]
push edi
push ebx
push str.pDir_NULL
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
add esp, 0x14
jmp 0x10099510
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100994a3
sub eax, edx
xor edx, edx
sar eax, 1
cmp eax, 0x104
setl dl
mov esi, edx
test esi, esi
jne 0x100994f7
push 0x12d
call fcn.10098780
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push edi
push ebx
push str.l_Length
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
jmp 0x10099510
lea eax, [esp + 0xc]
mov edx, edi
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10099501
mov ecx, dword [esp + 0x214]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.1012d370
add esp, 0x20c
ret

Function at 0x10099590
Capabilities:
Read .ini file

Disassembly:
push ecx
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp], eax
push ebx
mov ebx, 0xb
call fcn.10099530
test eax, eax
jne 0x100995f0
push esi
push edi
push 0x14f
call fcn.10098780
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push edi
push str.pConfigPath_NULL
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp]
xor ecx, esp
call fcn.1012d370
pop ecx
ret
push eax
push 0xb
push 0x1014cefc
push 0x1014cf00
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 0xb
jne 0x1009960d
mov eax, 3
mov ecx, dword [esp + 4]
pop ebx
xor ecx, esp
call fcn.1012d370
pop ecx
ret
Function at 0x10099620
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
sub esp, 0x210
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
xor ebx, ebx
push 0x103
lea eax, [esp + 0xd]
push ebx
push eax
mov dword [esp + 0x10], ebx
mov byte [esp + 0x14], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 8]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10099670
sub eax, edx
add eax, 0xffffffff
cmp eax, ebx
jl 0x10099695
mov cl, 0x5c
cmp byte [esp + eax + 8], cl
je 0x10099691
sub eax, 1
jns 0x10099684
jmp 0x10099695
mov byte [esp + eax + 8], bl
lea eax, [esp + 8]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x100996a0
mov edx, dword [str.ga.ini]
mov ecx, dword [0x10155240]
mov dword [eax], edx
lea edx, [esp + 8]
push edx
mov dword [eax + 4], ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100996d5
push 0x1014c8c8
jmp 0x10099769
push 0x103
lea eax, [esp + 0x111]
push ebx
push eax
mov byte [esp + 0x118], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp byte [esp + 0x218], bl
je 0x10099719
lea ecx, [esp + 8]
push ecx
push 0x104
lea edx, [esp + 0x114]
push edx
push 0x1014c8c8
push str.cntest
jmp 0x10099735
lea eax, [esp + 8]
push eax
push 0x104
lea ecx, [esp + 0x114]
push ecx
push 0x1014c8c8
push str.entest
push 0x1015524c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10099750
sub eax, edx
je 0x100996cb
lea edx, [esp + 0x10c]
push edx
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [esp + 0x210]
pop ebx
xor ecx, esp
mov eax, esi
call fcn.1012d370
add esp, 0x210
ret 4