joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401100
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x404488
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x407020]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
push str.Tenio_Initialize_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test edi, edi
je 0x401162
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401138
sub eax, edx
je 0x401162
lea esi, [esp + 8]
call fcn.00402800
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
push edi
call edx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x401180
Capabilities:
Enumerate process modules
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x40444b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x407020]
xor eax, esp
mov dword [esp + 0x230], eax
push esi
push edi
mov eax, dword [0x407020]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov ecx, dword [0x4073d8]
test ecx, ecx
mov dword [esp + 0xc], vtable.Tenio::TTenioPtr_class_Tenio::ITenioComponentFactory__0_.0
mov dword [esp + 0x10], 0
jne 0x4011e6
lea ecx, [esp + 0xc]
call fcn.00402a00
mov ecx, dword [0x4073d8]
test ecx, ecx
je 0x401207
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push 0
push 0x169
call edx
test eax, eax
mov dword [esp + 0x10], eax
je 0x401207
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
push 1
call eax
push 0
push 8
mov dword [esp + 0x250], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4012dd
cmp dword [esp + 0x10], 0
je 0x4012dd
push 0x220
lea ecx, [esp + 0x1c]
push 0
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push edi
mov dword [esp + 0x1c], 0x224
call sub.KERNEL32.dll_Module32First
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x401283
mov eax, dword [esp + 0x30]
push str.TenioDllFreeMap
push eax
call esi
test eax, eax
je 0x401274
call eax
lea ecx, [esp + 0x14]
push ecx
push edi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x401262
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 1
call eax
lea ecx, [esp + 0x14]
push ecx
push edi
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x4012d6
lea ebx, [ebx]
mov edx, dword [esp + 0x30]
push str.TenioSetDllSafe
push edx
call esi
test eax, eax
je 0x4012c7
push 0
call eax
add esp, 4
lea eax, [esp + 0x14]
push eax
push edi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x4012b0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Tenio_Uninitialize_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00403a3e
add esp, 0x240
ret
Function at 0x401450
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x407020]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
push edi
push 0x104
push 0
push esi
call sub.MSVCR80.dll_memset
push 0x104
lea edi, [esi + 0x104]
push 0
push edi
call sub.MSVCR80.dll_memset
mov edx, str.kernel
add esp, 0x18
mov ebp, 0x104
mov eax, esi
sub edx, esi
mov cl, byte [edx + eax]
test cl, cl
je 0x4014aa
mov byte [eax], cl
add eax, 1
sub ebp, 1
jne 0x401497
jmp 0x4014ae
test ebp, ebp
jne 0x4014b1
sub eax, 1
push 0x103
mov byte [eax], 0
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x23
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push esi
lea edx, [esp + 0xc]
push edx
push str._sQQPetRegistrar_s.ini
mov eax, 0x104
call fcn.00401000
push 0x103
lea eax, [esp + 0x11d]
push 0
push eax
mov byte [esp + 0x124], 0
call sub.MSVCR80.dll_memset
lea ecx, [esp + 0x20]
push ecx
push str._sQQPetRegistrar
mov eax, 0x104
lea edi, [esp + 0x12c]
call fcn.00401000
add esp, 0x20
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop edi
pop ebp
jne 0x40154a
lea eax, [esp + 0x104]
push eax
call fcn.00401630
mov ecx, dword [esp + 0x208]
xor ecx, esp
mov eax, esi
call fcn.00403a3e
add esp, 0x20c
ret

Function at 0x401570
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x407020]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push edi
push 0x103
lea eax, [esp + 0x111]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x118], 0
call sub.MSVCR80.dll_memset
push 0x103
lea ecx, [esp + 0x19]
push 0
push ecx
mov byte [esp + 0x20], 0
call sub.MSVCR80.dll_memset
push 0
push 0x4052b8
mov eax, 0x104
lea edi, [esp + 0x28]
call fcn.00401000
add esp, 0x20
add esi, 0x104
push esi
push 0x104
lea edx, [esp + 0x114]
push edx
mov eax, edi
push eax
push str.Version
push str.Kernel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xa
lea ecx, [esp + 0x110]
push 0
push ecx
call dword [sym.imp.MSVCR80.dll_strtoul]
mov ecx, dword [esp + 0x21c]
add esp, 0xc
pop edi
pop esi
xor ecx, esp
call fcn.00403a3e
add esp, 0x20c
ret
Function at 0x401790
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xc04
mov eax, dword [0x407020]
xor eax, esp
mov dword [esp + 0xc00], eax
push ebp
push edi
push 0x3ff
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR80.dll_memset
push str.kernel.ini
push esi
push str._s_s
mov eax, 0x400
lea edi, [esp + 0x20]
call fcn.00401000
add esp, 0x18
mov ecx, edi
push ecx
push 0
push str.version
push str.kernel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x3ff
lea edx, [esp + 0x40d]
push 0
push edx
mov ebp, eax
mov byte [esp + 0x414], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
mov eax, edi
push eax
push 0x400
lea ecx, [esp + 0x410]
push ecx
push str.QQPenguin
push str.productname
push str.kernel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x3ff
lea edx, [esp + 0x80d]
push 0
push edx
mov byte [esp + 0x814], 0
call sub.MSVCR80.dll_memset
lea eax, [esp + 0x414]
push eax
push esi
push str._s_s.exe
mov eax, 0x400
lea edi, [esp + 0x820]
call fcn.00401000
mov ecx, edi
push 0
push ecx
call dword [sym.imp.MSVCR80.dll__access]
add esp, 0x20
test eax, eax
je 0x401899
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xc00]
xor ecx, esp
call fcn.00403a3e
add esp, 0xc04
ret
mov ecx, dword [esp + 0xc08]
pop edi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.00403a3e
add esp, 0xc04
ret

Function at 0x4018c0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x534
mov eax, dword [0x407020]
xor eax, esp
mov dword [esp + 0x52c], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x13d]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x144], bl
call sub.MSVCR80.dll_memset
push esi
push str._s.exe
mov eax, 0x400
lea edi, [esp + 0x14c]
call fcn.00401000
add esp, 0x14
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40197d
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401976
mov edi, dword [sym.imp.MSVCR80.dll__stricmp]
mov ebp, dword [sym.imp.MSVCR80.dll__getpid]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x13c]
push eax
call edi
add esp, 8
test eax, eax
jne 0x401960
call ebp
cmp dword [esp + 0x18], eax
jne 0x401971
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401942
jmp 0x401976
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x53c]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00403a3e
add esp, 0x534
ret
Function at 0x401b10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4042ea
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x407020]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x24], edi
mov esi, ecx
mov ecx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [esp + 0x24], edi
mov eax, dword [esi + 0x14]
cmp edi, eax
mov dword [esp + 0x10], 1
jae 0x401bb2
lea ebp, [esi + 4]
jbe 0x401b6c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esi + 0x18], 0x10
jb 0x401b77
mov eax, dword [ebp]
jmp 0x401b79
mov eax, ebp
cmp byte [eax + edi], 0x2f
jne 0x401b83
push 0x5c
jmp 0x401ba0
cmp edi, dword [esi + 0x14]
jbe 0x401b8e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esi + 0x18], 0x10
jb 0x401b99
mov eax, dword [ebp]
jmp 0x401b9b
mov eax, ebp
movzx eax, byte [eax + edi]
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_]
mov eax, dword [esi + 0x14]
add edi, 1
cmp edi, eax
jb 0x401b6c
cmp dword [esi + 0x18], 0x10
lea edi, [esi + 4]
jb 0x401bbf
mov eax, dword [edi]
jmp 0x401bc1
mov eax, edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call ebp
cmp eax, 0xffffffff
je 0x401c15
cmp dword [esi + 0x18], 0x10
jb 0x401bd7
mov edi, dword [edi]
push edi
call ebp
cmp eax, 0xffffffff
je 0x401c15
shr eax, 4
and eax, 1
je 0x401c15
mov eax, dword [ebx + 0x14]
lea esi, [eax - 1]
cmp esi, eax
jbe 0x401bf7
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [ebx + 0x18], 0x10
jb 0x401c02
mov eax, dword [ebx + 4]
jmp 0x401c05
lea eax, [ebx + 4]
cmp byte [eax + esi], 0x5c
je 0x401c15
push 0x5c
mov ecx, ebx
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_]
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x401cf0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x404404
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x407020]
xor eax, esp
mov dword [esp + 0x74], eax
push ebx
push esi
push edi
mov eax, dword [0x407020]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
test edx, edx
mov esi, ecx
je 0x401e2f
test esi, esi
je 0x401e2f
mov eax, edx
lea edi, [eax + 1]
jmp 0x401d40
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401d40
sub eax, edi
je 0x401e2f
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401d56
sub eax, edi
je 0x401e2f
push edx
lea ecx, [esp + 0x34]
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__]
lea ecx, [esp + 0x30]
lea ebx, [esp + 0x4c]
mov dword [esp + 0x90], 0
call fcn.00401b10
lea ecx, [esp + 0x30]
mov byte [esp + 0x90], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push esi
lea ecx, [esp + 0x18]
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__]
lea ecx, [esp + 0x14]
lea ebx, [esp + 0x68]
mov byte [esp + 0x90], 3
call fcn.00401b10
lea ecx, [esp + 0x14]
mov byte [esp + 0x90], 5
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x50]
mov eax, 0x10
cmp dword [esp + 0x64], eax
jae 0x401de1
lea ecx, [esp + 0x50]
cmp dword [esp + 0x80], eax
mov eax, dword [esp + 0x6c]
jae 0x401df2
lea eax, [esp + 0x6c]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
neg esi
sbb esi, esi
lea ecx, [esp + 0x68]
neg esi
mov byte [esp + 0x90], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x90], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
jmp 0x401e31
xor eax, eax
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00403a3e
add esp, 0x84
ret
Function at 0x401e60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x404522
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x407020]
xor eax, esp
mov dword [esp + 0x38], eax
push ebp
push esi
push edi
mov eax, dword [0x407020]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x5c]
mov esi, ecx
push esi
lea ecx, [esp + 0x30]
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__]
lea edi, [esp + 0x2c]
mov dword [esp + 0x54], 0
call fcn.00401f60
mov eax, edi
lea edi, [esp + 0x10]
call fcn.00401ca0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], 1
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, edi
mov byte [esp + 0x54], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x30]
mov edi, 0x10
cmp dword [esp + 0x44], edi
jae 0x401eee
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401f15
cmp dword [esp + 0x44], edi
mov eax, dword [esp + 0x30]
jae 0x401f08
lea eax, [esp + 0x30]
push eax
call fcn.004019a0
add esp, 4
test eax, eax
je 0x401f29
mov ecx, ebp
mov edx, esi
call fcn.00401cf0
test eax, eax
je 0x401f29
mov esi, 1
jmp 0x401f2b
xor esi, esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x54], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00403a3e
add esp, 0x48
ret
Function at 0x401fd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4044e8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x407020]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea edi, [esi + 0xc]
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi], ebx
mov dword [esp + 0x1c], ebx
call fcn.004026f0
push str.KERNELSMARTLOADER::
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.00401310
mov edi, eax
call fcn.00401100
push str.KernelFactory.dll
mov dword [esi + 0x34], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0x30], eax
je 0x402075
push str.CreateFactory
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x402075
call eax
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x402075
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
call eax
mov dword [esi + 0x2c], eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x402510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4044b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x407020]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40257a
push str.ReleaseFactory
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402569
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x402569
push ecx
call eax
add esp, 4
mov dword [esi + 0x28], 0
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x30], 0
call fcn.00401180
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esi + 0xc]
mov dword [esp + 0x14], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4

Function at 0x4026f0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x407020]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x402755
push 0xed
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x402755
lea edx, [esp]
push 0x5c
push edx
call dword [sym.imp.MSVCR80.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x402755
mov byte [eax + 1], 0
push edi
lea edi, [esp + 4]
call fcn.004010b0
mov eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0
push str.ShowVerboseInfo
push str.KERNELSMARTLOADER
call edi
lea ecx, [esp + 4]
push ecx
neg eax
push 0
sbb eax, eax
push str.ShowTraceInfo
neg eax
push str.KERNELSMARTLOADER
mov dword [esi], eax
call edi
lea edx, [esp + 4]
push edx
neg eax
push 0
sbb eax, eax
push str.ShowErrorInfo
neg eax
push str.KERNELSMARTLOADER
mov dword [esi + 4], eax
call edi
neg eax
sbb eax, eax
neg eax
cmp dword [esi + 0x20], 0
mov dword [esi + 8], eax
pop edi
jne 0x4027cb
push str.KERNELSMARTLOADER
lea ecx, [esi + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00403a3e
add esp, 0x108
ret
Function at 0x402880
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe10
mov eax, dword [0x407020]
xor eax, esp
mov dword [esp + 0xe0c], eax
push esi
push edi
push 0x3ff
lea eax, [esp + 0xa15]
push 0
push eax
mov esi, ecx
mov edi, edx
mov byte [esp + 0xa1c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x3ff
lea ecx, [esp + 0x215]
push 0
push ecx
mov byte [esp + 0x21c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x3ff
lea edx, [esp + 0x615]
push 0
push edx
mov byte [esp + 0x61c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
call dword [sym.imp.MSVCR80.dll__time64]
add esp, 4
push 0x1ff
mov dword [esp + 0xc], eax
lea eax, [esp + 0x15]
push 0
push eax
mov dword [esp + 0x18], edx
mov byte [esp + 0x1c], 0
call sub.MSVCR80.dll_memset
lea ecx, [esp + 0x14]
add esp, 0xc
push ecx
call dword [sym.imp.MSVCR80.dll__localtime64]
add esp, 4
push eax
push str._Y__m__d__H:_M:_S
lea edx, [esp + 0x18]
push 0x200
push edx
call dword [sym.imp.MSVCR80.dll_strftime]
add esp, 0x10
cmp dword [esi + 0x24], 0x10
jb 0x40295b
mov esi, dword [esi + 0x10]
jmp 0x40295e
add esi, 0x10
push edi
push esi
push str.TRACE
push str._s:_s__s_r_n
mov eax, 0x3ff
lea edi, [esp + 0xa20]
call fcn.00401000
push ebx
mov eax, edi
push eax
push 0x3fe
lea ecx, [esp + 0x22c]
push 0x3ff
push ecx
call dword [sym.imp.MSVCR80.dll__vsnprintf_s]
add esp, 0x24
test eax, eax
jl 0x4029a7
cmp eax, 0x3fe
ja 0x4029a7
jne 0x4029af
mov byte [esp + 0x60e], 0
lea edx, [esp + 0x210]
push edx
lea eax, [esp + 0x14]
push eax
push str._s__s
mov eax, 0x3ff
lea edi, [esp + 0x61c]
call fcn.00401000
add esp, 0xc
mov ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.00402ba0
mov ecx, dword [esp + 0xe14]
pop edi
pop esi
xor ecx, esp
call fcn.00403a3e
mov esp, ebp
pop ebp
ret

Function at 0x402b20
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x407020]
xor eax, esp
mov dword [esp + 0x400], eax
push 0x3ff
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call sub.MSVCR80.dll_memset
mov edx, dword [esp + 0x414]
lea ecx, [esp + 0x418]
push ecx
push edx
push 0x3ff
lea eax, [esp + 0x18]
push 0x400
push eax
call dword [sym.imp.MSVCR80.dll__vsnprintf_s]
add esp, 0x20
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00403a3e
add esp, 0x404
ret
Function at 0x402ba0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
call dword [0x407004]
cmp dword [0x4074e4], 0
jne 0x402bc8
call fcn.00402fc0
mov dword [0x4074e8], eax
mov dword [0x4074e4], 1
cmp dword [0x4074e8], 0
je 0x402c39
push 0
push 0x20
push 4
push 0
push 1
push 0xc0000000
call fcn.00402dc0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402c39
mov ebx, esi
call fcn.00402e90
push 2
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
push ebx
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, edi
mov dword [esp + 0x10], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x402c18
push ebx
lea ecx, [esp + 0x14]
push ecx
sub eax, edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x402e90
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x28
cmp ebx, 0xffffffff
push ebp
push esi
push edi
je 0x402fb5
cmp dword [0x4074e8], 2
jne 0x402fb5
call fcn.004033c0
xor edi, edi
push edi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x14]
push eax
push edi
push ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea ecx, [esp + 0x18]
push ecx
push 8
lea edx, [esp + 0x2c]
push edx
push ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402f84
lea eax, [edi + 8]
lea edx, [esp + 0x28]
lea esi, [esp + 0x20]
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x402f18
sub eax, 4
add edx, 4
add esi, 4
cmp eax, 4
jae 0x402f00
cmp eax, edi
je 0x402f75
movzx ecx, byte [esi]
movzx ebp, byte [edx]
sub ecx, ebp
jne 0x402f67
sub eax, 1
add edx, 1
add esi, 1
cmp eax, edi
je 0x402f75
movzx ecx, byte [esi]
movzx ebp, byte [edx]
sub ecx, ebp
jne 0x402f67
sub eax, 1
add edx, 1
add esi, 1
cmp eax, edi
je 0x402f75
movzx ecx, byte [esi]
movzx ebp, byte [edx]
sub ecx, ebp
jne 0x402f67
sub eax, 1
add edx, 1
add esi, 1
cmp eax, edi
je 0x402f75
movzx ecx, byte [esi]
movzx edx, byte [edx]
sub ecx, edx
je 0x402f75
cmp ecx, edi
mov eax, 1
jg 0x402f77
or eax, 0xffffffff
jmp 0x402f77
xor eax, eax
xor ecx, ecx
cmp eax, edi
setne cl
mov eax, ecx
cmp eax, edi
je 0x402fb5
push edi
lea edx, [esp + 0x1c]
push edx
push edi
push ebx
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [esp + 0x20]
push eax
push 8
lea ecx, [esp + 0x34]
push ecx
push ebx
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebp
add esp, 0x28
ret