joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f690
Capabilities:
Write file on windows

Disassembly:
test eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
je 0x40f6be
test ecx, ecx
je 0x40f6be
mov edx, ebp
neg edx
sbb edx, edx
test edx, fcn.00409070
je 0x40f6be
push ebp
push ecx
push 1
push eax
call sub.MSVCR71.dll_fwrite
add esp, 0x10
mov ebx, eax
jmp 0x40f6c0
xor ebx, ebx
mov edi, dword [esp + 0x14]
dec dword [edi]
jne 0x40f73d
push 0x4282f0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4282b8]
test eax, eax
jne 0x40f6e1
call fcn.00406c00
push esi
mov esi, dword [0x4282b8]
cmp dword [esi + 4], 4
push edi
jae 0x40f6fa
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
jmp 0x40f723
mov ecx, dword [esi + 8]
lea eax, [ecx + 3]
xor edx, edx
div ecx
mov ecx, dword [esi]
lea eax, [eax + eax*8]
lea esi, [ecx + eax*4 - 0x24]
mov ecx, esi
call fcn.0040c340
test eax, eax
je 0x40f723
push edi
mov ecx, esi
mov dword [esi + 0x1c], eax
call fcn.0040d5f0
push 0x4282f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebp, ebp
pop esi
je 0x40f73d
push ebp
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
pop edi
pop ebp
mov eax, ebx
pop ebx
ret

Function at 0x413170
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x41ebb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea ecx, [esp]
push ecx
mov dword [esp + 0x30], eax
call fcn.00412c90
add esp, 4
test al, al
je 0x4131e4
mov edx, dword [esp + 6]
and edx, 0xf000
cmp edx, 0x8000
jne 0x4131e4
mov al, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov ecx, dword [esp + 0x24]
xor al, al
mov dword fs:[0], ecx
add esp, 0x30
ret

Function at 0x414050
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41ed49
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov ecx, esi
mov dword [esp + 8], edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call dword [0x4201f0]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x415a70
Capabilities:
Create pipe

Disassembly:
push 0xffffffffffffffff
push 0x41f09d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi + 4], 1
xor edi, edi
mov dword [esi], 0x421534
mov dword [esp + 0x2c], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
movzx eax, byte [esp + 0x34]
push edi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x28], eax
push edx
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x3c], 2
mov dword [esp + 0x28], 0xc
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x415b10
lea ecx, [esp + 0x14]
push ecx
call fcn.00401c60
mov edx, dword [eax]
push edx
lea eax, [esp + 0x10]
push str.Pipe_creation_failed.___s_
push eax
mov byte [esp + 0x3c], 3
call fcn.00415370
add esp, 0x10
push 0x424040
lea ecx, [esp + 0xc]
push ecx
call sub.MSVCR71.dll__CxxThrowException
mov edx, dword [esp + 0x34]
push ebp
push edi
push 1
push edx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0xc
call fcn.0041cf5c
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, edi
mov byte [esp + 0x30], 4
je 0x415b46
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, eax
call fcn.004157d0
mov ebp, eax
jmp 0x415b48
xor ebp, ebp
mov eax, dword [esi + 8]
cmp eax, edi
mov byte [esp + 0x30], 2
je 0x415b5a
mov edx, dword [eax]
push eax
call dword [edx + 8]
push 0xc
mov dword [esi + 8], ebp
call fcn.0041cf5c
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, edi
mov byte [esp + 0x30], 5
je 0x415b84
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, eax
call fcn.004157d0
mov ebp, eax
jmp 0x415b86
xor ebp, ebp
mov eax, dword [esi + 0xc]
cmp eax, edi
mov byte [esp + 0x30], 2
je 0x415b98
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x28]
mov dword [esi + 0xc], ebp
pop ebp
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x417270
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41f218
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebp
xor ebp, ebp
push esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], 0x420b14
mov eax, dword [esp + 0x4c]
push eax
mov esi, ecx
lea eax, [esp + 0xc]
mov dword [esp + 0x48], ebp
call fcn.0040ac80
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
add esp, 4
cmp esi, eax
jae 0x41731b
push ebx
or ebx, 0xffffffff
mov al, byte [esi]
cmp al, 0x25
jne 0x417304
inc esi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], esi
call fcn.004168e0
mov ecx, edi
call fcn.004170f0
mov esi, dword [esp + 0x30]
jmp 0x41730d
push eax
mov ecx, edi
call dword [sym.imp.MSVCP71.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 [esp + 0x34]
inc esi
cmp esi, eax
mov dword [esp + 0x30], esi
jb 0x4172c7
pop ebx
mov ecx, edi
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
mov ecx, dword [esp + 0x3c]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x40
ret

Function at 0x419fa0
Capabilities:
Set current directory

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::empty_void_const]
test al, al
je 0x419fd3
push 0x4229f8
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x4208f0
mov dword [esp + 0x10], str.unable_to_set_empty_current_directory
call sub.MSVCR71.dll__CxxThrowException
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x41a005
push 0x4229f8
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x4208f0
mov dword [esp + 0x10], str.set_current_directory_error
call sub.MSVCR71.dll__CxxThrowException
pop esi
add esp, 8
ret

Function at 0x41a9f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [0x428230]
mov dword [esp + 0x10c], eax
lea eax, [esp + 8]
push eax
push 0x104
mov byte [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x41aa3a
push 0x4229f8
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x4208f0
mov dword [esp + 0xc], str.get_current_directory_error
call sub.MSVCR71.dll__CxxThrowException
mov ecx, dword [esp + 0x114]
lea edx, [esp + 8]
push edx
call fcn.00405800
mov ecx, dword [esp + 0x10c]
call fcn.0041d44e
add esp, 0x110
ret
Function at 0x41ab40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [0x428230]
push 0
mov dword [esp + 0x110], eax
push 0x23
lea eax, [esp + 0x10]
push eax
push 0
mov byte [esp + 0x18], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x41ab8b
push 0x4229f8
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x4208f0
mov dword [esp + 0xc], str.get__all_users_:_application_data__folder_error
call sub.MSVCR71.dll__CxxThrowException
mov ecx, dword [esp + 0x114]
lea edx, [esp + 8]
push edx
call fcn.00405800
mov ecx, dword [esp + 0x10c]
call fcn.0041d44e
add esp, 0x110
ret

Function at 0x41abb0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [0x428230]
push 0
mov dword [esp + 0x110], eax
push 0x1a
lea eax, [esp + 0x10]
push eax
push 0
mov byte [esp + 0x18], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x41abfb
push 0x4229f8
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x4208f0
mov dword [esp + 0xc], str.get__user_:_application_data__folder_error
call sub.MSVCR71.dll__CxxThrowException
mov ecx, dword [esp + 0x114]
lea edx, [esp + 8]
push edx
call fcn.00405800
mov ecx, dword [esp + 0x10c]
call fcn.0041d44e
add esp, 0x110
ret

Function at 0x41ac20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [0x428230]
push 0
mov dword [esp + 0x110], eax
push 0x1c
lea eax, [esp + 0x10]
push eax
push 0
mov byte [esp + 0x18], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x41ac6b
push 0x4229f8
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x4208f0
mov dword [esp + 0xc], str.get__settings_:_user_:_local_settings__folder_error
call sub.MSVCR71.dll__CxxThrowException
mov ecx, dword [esp + 0x114]
lea edx, [esp + 8]
push edx
call fcn.00405800
mov ecx, dword [esp + 0x10c]
call fcn.0041d44e
add esp, 0x110
ret
Function at 0x41d588
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x422088
call fcn.0041d978
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41d5c8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41d5c8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41d5e0
cmp eax, 0x20b
je 0x41d5cd
mov dword [ebp - 0x1c], ebx
jmp 0x41d5f4
cmp dword [ecx + 0x84], 0xe
jbe 0x41d5c8
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x41d5ee
cmp dword [ecx + 0x74], 0xe
jbe 0x41d5c8
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x428410], 0xffffffff
or dword [0x428414], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x4283cc]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x4283c8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x42840c], eax
call fcn.0041da94
call fcn.0041db3a
cmp dword [0x428250], ebx
jne 0x41d654
push fcn.0041db3a
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0041db22
push 0x428064
push 0x428060
call sub.MSVCR71.dll__initterm
push 0x41dad8
call fcn.0041d520
mov eax, dword [0x4283c4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4283c0]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x41d6a8
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x42805c
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x41d726
cmp al, bl
je 0x41d6d2
cmp dword [ebp - 0x20], ebx
jne 0x41d726
mov al, byte [esi]
cmp al, bl
je 0x41d6e2
cmp al, 0x20
ja 0x41d6e2
inc esi
mov dword [ebp - 0x24], esi
jmp 0x41d6d2
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x41d6fe
movzx eax, word [ebp - 0x54]
jmp 0x41d701
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.004072f0
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x41d71e
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x41d77b
cmp al, 0x22
jne 0x41d735
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x41d748
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x41d6c0
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0041d9b3
ret
Function at 0x10004680
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10038046
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x10063b60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x23c], ecx
call fcn.10010ca0
test eax, eax
jne 0x1000484b
push 0x10059f30
call fcn.100112c0
add esp, 4
mov byte [ebp - 0x11c], 0
push 0x103
push 0
lea eax, [ebp - 0x11b]
push eax
call fcn.100237f0
add esp, 0xc
lea ecx, [ebp - 0x11c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [ebp - 0x11c]
push edx
call fcn.10010d20
add esp, 4
test eax, eax
jne 0x10004835
lea eax, [ebp - 0x11c]
push eax
push str._Configv3__IsStartAuthorSuccess__
call fcn.100112c0
add esp, 8
lea ecx, [ebp - 0x128]
call fcn.100115e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x128]
call fcn.10011600
push 0x104
lea ecx, [ebp - 0x11c]
push ecx
push str.AppPath
lea ecx, [ebp - 0x128]
call fcn.10011700
lea ecx, [ebp - 0x128]
call fcn.10004130
movzx edx, al
cmp edx, 1
jne 0x1000477c
lea ecx, [ebp - 0x128]
call fcn.100116c0
lea ecx, [ebp - 0x120]
call fcn.100070e0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.10006b60
push str.GooDataBridge
lea ecx, [ebp - 0x120]
call fcn.10006b60
lea ecx, [ebp - 0x120]
call fcn.10005250
push eax
call fcn.10010d20
add esp, 4
test eax, eax
jne 0x10004814
lea ecx, [ebp - 0x120]
call fcn.10005250
push eax
push 0x10059fd0
call fcn.100112c0
add esp, 8
mov dword [ebp - 0x238], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x120]
call fcn.10007040
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.100031b0
mov eax, dword [ebp - 0x238]
jmp 0x10004895
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x120]
call fcn.10007040
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.100031b0
lea ecx, [ebp - 0x11c]
push ecx
push 0x1005a020
call fcn.100112c0
add esp, 8
jmp 0x10004890
mov byte [ebp - 0x234], 0
push 0x103
push 0
lea edx, [ebp - 0x233]
push edx
call fcn.100237f0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x234]
push eax
call fcn.10006970
add esp, 8
lea ecx, [ebp - 0x234]
push ecx
push str._Configv3__IsStartAuthorSuccess_
call fcn.100112c0
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10020358
mov esp, ebp
pop ebp
ret
Function at 0x1000d320
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.10020593
add esp, 8
cmp eax, 0xffffffff
je 0x1000d3ae
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x1000d372
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
push 0x100594a0
call fcn.10011c20
add esp, 8
jmp 0x1000d3ae
mov eax, dword [ebp - 8]
and eax, 1
je 0x1000d3ae
mov ecx, dword [ebp - 8]
and ecx, 0xfffffffe
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1000d3ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
push 0x100594c0
call fcn.10011c20
add esp, 8
mov esp, ebp
pop ebp
ret 8
Function at 0x10011150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x10063b60]
xor eax, ebp
mov dword [ebp - 0x20], eax
push 0x10052954
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.10021416
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x10011183
or eax, 0xffffffff
jmp 0x10011214
mov edx, dword [ebp - 8]
push edx
push 1
push 0x40
lea eax, [ebp - 0x60]
push eax
call fcn.10021f3a
add esp, 0x10
push 0
mov ecx, dword [ebp - 0x24]
add ecx, 4
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10021607
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
push 1
push 0x14
lea ecx, [ebp - 0x1c]
push ecx
call fcn.10021f3a
add esp, 0x10
mov edx, dword [ebp - 8]
push edx
call fcn.100214e0
add esp, 4
movzx eax, word [ebp - 0x1c]
cmp eax, 0x14c
jne 0x100111e0
mov dword [ebp - 4], 0x20
jmp 0x10011211
movzx ecx, word [ebp - 0x1c]
cmp ecx, 0x200
jne 0x100111f5
mov dword [ebp - 4], 0x40
jmp 0x10011211
movzx edx, word [ebp - 0x1c]
cmp edx, 0x8664
jne 0x1001120a
mov dword [ebp - 4], 0x40
jmp 0x10011211
mov dword [ebp - 4], 0x20
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.10020358
mov esp, ebp
pop ebp
ret

Function at 0x100112c0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.10025c80
mov eax, dword [0x10063b60]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 0x808], 0
push 0x7ff
push 0
lea eax, [ebp - 0x807]
push eax
call fcn.100237f0
add esp, 0xc
mov byte [ebp - 0x1010], 0
push 0x7ff
push 0
lea ecx, [ebp - 0x100f]
push ecx
call fcn.100237f0
add esp, 0xc
lea edx, [ebp + 0xc]
mov dword [ebp - 0x80c], edx
mov eax, dword [ebp - 0x80c]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x800
lea edx, [ebp - 0x1010]
push edx
call fcn.10020e74
add esp, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 0x80c], 0
push str._Configv3_:
push 0x800
lea eax, [ebp - 0x808]
push eax
call fcn.10021bbe
add esp, 0xc
lea ecx, [ebp - 0x1010]
push ecx
push 0x800
lea edx, [ebp - 0x808]
push edx
call fcn.10021c26
add esp, 0xc
push 0x10052b28
push 0x800
lea eax, [ebp - 0x808]
push eax
call fcn.10021c26
add esp, 0xc
lea ecx, [ebp - 0x808]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x10067bfc], 0
je 0x10011451
push 0x10052b2c
push 0
mov ecx, 0x10067d1c
call fcn.100035a0
push eax
call fcn.100213ff
add esp, 8
mov dword [ebp - 0x1014], eax
cmp dword [ebp - 0x1014], 0
jne 0x100113d8
jmp 0x10011451
lea edx, [ebp - 0x808]
mov dword [ebp - 0x1018], edx
mov eax, dword [ebp - 0x1018]
add eax, 1
mov dword [ebp - 0x101c], eax
mov ecx, dword [ebp - 0x1018]
mov dl, byte [ecx]
mov byte [ebp - 0x101d], dl
add dword [ebp - 0x1018], 1
cmp byte [ebp - 0x101d], 0
jne 0x100113f3
mov eax, dword [ebp - 0x1018]
sub eax, dword [ebp - 0x101c]
mov dword [ebp - 0x1024], eax
mov ecx, dword [ebp - 0x1014]
push ecx
push 1
mov edx, dword [ebp - 0x1024]
push edx
lea eax, [ebp - 0x808]
push eax
call fcn.100221df
add esp, 0x10
mov ecx, dword [ebp - 0x1014]
push ecx
call fcn.100214e0
add esp, 4
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10020358
mov esp, ebp
pop ebp
ret
Function at 0x10012090
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10038078
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10063b60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
jne 0x100120c2
xor eax, eax
jmp 0x1001224c
mov dword [ebp - 0x18], 0
push 0x40000000
push 0x104
call fcn.10011a70
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x100120eb
xor eax, eax
jmp 0x1001224c
mov dword [ebp - 0x24], 1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x104
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x104
sub eax, 2
cmp dword [ebp - 0x18], eax
jne 0x1001215c
lea ecx, [ebp - 0x14]
push ecx
call fcn.10011b30
add esp, 4
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
push 0x40000000
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x104
push eax
call fcn.10011a70
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1001215a
xor eax, eax
jmp 0x1001224c
jmp 0x1001215e
jmp 0x10012172
mov ecx, dword [ebp - 0x24]
sub ecx, 1
imul ecx, ecx, 0x104
sub ecx, 2
cmp dword [ebp - 0x18], ecx
je 0x100120f2
cmp dword [ebp - 0x14], 0
jne 0x1001217f
xor eax, eax
jmp 0x1001224c
cmp dword [ebp - 0x14], 0
ja 0x1001218c
xor eax, eax
jmp 0x1001224c
lea ecx, [ebp - 0x20]
call fcn.100070e0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
push 0x10052164
lea ecx, [ebp - 0x20]
push ecx
call fcn.100068e0
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
call fcn.10012440
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jge 0x100121f9
lea eax, [ebp - 0x14]
push eax
call fcn.10011b30
add esp, 4
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.10007040
mov eax, dword [ebp - 0x2c]
jmp 0x1001224c
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
lea eax, [edx + ecx + 1]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x10]
lea eax, [edx + ecx + 1]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.1000fdb0
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x18]
jb 0x100121a8
lea eax, [ebp - 0x14]
push eax
call fcn.10011b30
add esp, 4
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.10007040
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret