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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b9d4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push esi
mov dword [ebp - 0x164], ecx
cmp dword [ebp - 0x164], 0
je 0x41854a
mov eax, dword [ebp - 0x164]
cmp dword [eax + 0x7c], 0
je 0x41854f
jmp 0x418705
mov eax, dword [ebp - 0x164]
add eax, 0x64
lea esi, [ebp - 0x18]
call fcn.00401da0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x164]
cmp dword [ecx + 0x20], 0
jne 0x418587
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
call fcn.00401db3
jmp 0x418705
mov dword [ebp - 0x15c], 0
push 0x118
push 0
lea edx, [ebp - 0x158]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x15c], 0x11c
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
jne 0x4185ea
mov dword [ebp - 0x15c], 0x114
lea ecx, [ebp - 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
je 0x418642
mov edx, dword [ebp - 0x164]
mov eax, dword [edx + 0x20]
mov cx, word [ebp - 0x158]
mov word [eax + 0x38], cx
mov edx, dword [ebp - 0x164]
mov eax, dword [edx + 0x20]
mov cx, word [ebp - 0x154]
mov word [eax + 0x3a], cx
mov edx, dword [ebp - 0x164]
mov eax, dword [edx + 0x20]
mov cx, word [ebp - 0x48]
mov word [eax + 0x3e], cx
mov edx, dword [ebp - 0x164]
mov eax, dword [edx + 0x20]
mov cx, word [ebp - 0x150]
mov word [eax + 0x3c], cx
jmp 0x41867e
mov edx, dword [ebp - 0x164]
mov eax, dword [edx + 0x20]
mov word [eax + 0x38], 0
mov ecx, dword [ebp - 0x164]
mov edx, dword [ecx + 0x20]
mov word [edx + 0x3a], 0
mov eax, dword [ebp - 0x164]
mov ecx, dword [eax + 0x20]
mov word [ecx + 0x3e], 0
mov edx, dword [ebp - 0x164]
mov eax, dword [edx + 0x20]
mov word [eax + 0x3c], 0
mov dword [ebp - 0x3c], 0
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4186c8
lea edx, [ebp - 0x3c]
push edx
call dword [ebp - 0x10]
jmp 0x4186d2
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x164]
mov edx, dword [ecx + 0x20]
mov ax, word [ebp - 0x3c]
mov word [edx + 0x40], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, dword [ebp - 0x164]
mov edx, dword [ecx + 0x20]
mov word [edx + 0x42], ax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
call fcn.00401db3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418720
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ba03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x58]
mov dword [eax], vtable.utils::CSingleton_class_QMReportMgr::CReportManager_.0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x58]
mov dword [ecx], vtable.QMReportMgr::CReportManager.0
mov edx, dword [ebp - 0x58]
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x58]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 0x18], 0
mov edx, dword [ebp - 0x58]
mov word [edx + 0x1c], 0
mov eax, dword [ebp - 0x58]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp - 0x58]
add ecx, 0x24
call fcn.0040c760
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x58]
add ecx, 0x30
mov dword [ebp - 0x50], ecx
lea edx, [ebp - 0x47]
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x46]
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x45]
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x50]
call fcn.0040cf80
mov edx, dword [ebp - 0x58]
mov dword [edx + 0x3c], 0
mov eax, dword [ebp - 0x58]
mov dword [eax + 0x40], 0
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 0x44], 0
mov ecx, dword [ebp - 0x58]
add ecx, 0x48
call fcn.00417ab0
mov edx, dword [ebp - 0x58]
mov dword [edx + 0x50], 1
mov eax, dword [ebp - 0x58]
mov dword [eax + 0x54], 0
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 0x58], 0
mov edx, dword [ebp - 0x58]
mov dword [edx + 0x5c], 0
mov eax, dword [ebp - 0x58]
mov dword [eax + 0x60], 0
mov ecx, dword [ebp - 0x58]
add ecx, 0x64
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp - 0x58]
mov dword [eax + 0x7c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x418860
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ba26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push esi
mov dword [ebp - 0x98], ecx
mov eax, dword [ebp - 0x98]
mov dword [eax], vtable.QMReportMgr::CReportManager.0
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x98]
mov dword [ecx + 0x7c], 1
mov edx, dword [ebp - 0x98]
mov dword [edx + 0x44], 0
mov eax, dword [ebp - 0x98]
add eax, 0x64
lea esi, [ebp - 0x14]
call fcn.00401da0
lea eax, [ebp - 0x14]
call fcn.00401db3
mov eax, dword [ebp - 0x98]
add eax, 0x64
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [ebp - 0x98]
add ecx, 0x48
call fcn.00417a90
mov ecx, dword [ebp - 0x98]
add ecx, 0x30
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebp - 0x78]
call fcn.0040cac0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x98]
add edx, 0x24
mov dword [ebp - 0x94], edx
mov ecx, dword [ebp - 0x94]
call fcn.0040d2b0
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp - 0x94]
mov eax, dword [edx + 4]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x94]
mov dword [edx + 4], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x98]
mov dword [eax], vtable.utils::CSingleton_class_QMReportMgr::CReportManager_.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418b80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x214], 0
mov word [ebp - 0x210], 0
push 0x208
push 0
lea eax, [ebp - 0x20e]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.0040c410
add esp, 8
push str.dr.dll
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418c13
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp + 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_wchar_t_const__]
mov edx, dword [ebp - 0x214]
or edx, 1
mov dword [ebp - 0x214], edx
mov eax, dword [ebp + 8]
jmp 0x418c7c
lea eax, [ebp - 0x210]
push eax
call fcn.0040ebc0
add esp, 4
test eax, eax
je 0x418c5c
push str.dr.dll
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp + 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_wchar_t_const__]
mov eax, dword [ebp - 0x214]
or eax, 1
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 8]
jmp 0x418c7c
push 0x421fcc
mov ecx, dword [ebp + 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_wchar_t_const__]
mov ecx, dword [ebp - 0x214]
or ecx, 1
mov dword [ebp - 0x214], ecx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x41a560
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x41a5b3
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
push 2
push 1
push 0x425bd4
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.MSVCR80.dll_fflush]
add esp, 4
mov esp, ebp
pop ebp
ret 8
Function at 0x4021f1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402249
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x4045d4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40223c
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40224b
xor eax, eax
pop esi
leave
ret 4
Function at 0x402b5a
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x4047a8
call fcn.00402e94
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x402b97
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402b97
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x402baf
cmp eax, 0x20b
je 0x402b9c
mov dword [ebp - 0x1c], ebx
jmp 0x402bc3
cmp dword [ecx + 0x84], 0xe
jbe 0x402b97
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x402bbd
cmp dword [ecx + 0x74], 0xe
jbe 0x402b97
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.MSVCR70.dll___set_app_type]
pop ecx
or dword [0x4064e0], 0xffffffff
or dword [0x4064e4], 0xffffffff
call dword [sym.imp.MSVCR70.dll___p__fmode]
mov ecx, dword [0x4064d4]
mov dword [eax], ecx
call dword [sym.imp.MSVCR70.dll___p__commode]
mov ecx, dword [0x4064d0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR70.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4064dc], eax
call fcn.00402f0a
call fcn.00402fb3
cmp dword [0x406050], ebx
jne 0x402c23
push 0x402fb0
call dword [sym.imp.MSVCR70.dll___setusermatherr]
pop ecx
call fcn.00402f98
push 0x406018
push 0x406014
call sub.MSVCR70.dll__initterm
push 0x402f4e
call fcn.00402a62
mov eax, dword [0x4064cc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x4064c8]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR70.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp eax, ebx
jge 0x402c77
push 8
call sub.MSVCR70.dll__amsg_exit
pop ecx
push 0x406010
push section..data
call sub.MSVCR70.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR70.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x402cd1
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x402ca5
cmp al, 0x22
jne 0x402c97
cmp byte [esi], 0x22
jne 0x402cae
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x402cb8
cmp al, 0x20
jbe 0x402caa
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x402cdc
movzx eax, word [ebp - 0x48]
jmp 0x402cdf
cmp byte [esi], 0x20
jbe 0x402cae
inc esi
mov dword [ebp - 0x34], esi
jmp 0x402cd1
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.004030ca
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x402cfc
push esi
call dword [sym.imp.MSVCR70.dll_exit]
call dword [sym.imp.MSVCR70.dll__cexit]
jmp 0x402d31
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00402ecf
ret
Function at 0x407458
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x407467
pop dword [ebp - 0x48]
mov eax, 0x190f28e0
sub eax, 0x18ceb479
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x11f556ac
add dword [ebp - 0x58], 0x3c5cee9f
mov dword [ebp - 0x54], 0xe66d9bf0
add dword [ebp - 0x54], 0x4bc5b055
mov dword [ebp - 0x50], 0xceeaffcd
sub dword [ebp - 0x50], 0x829ebb9f
mov dword [ebp - 0x4c], 0x54eec6ed
sub dword [ebp - 0x4c], 0x54eec6ed
lea eax, [ebp - 0x58]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x5cc98bc9
sub dword [ebp - 0x58], 0xe8572273
mov dword [ebp - 0x54], 0xafc5f3cf
sub dword [ebp - 0x54], 0x6e59925a
mov dword [ebp - 0x50], 0xea54b07d
sub dword [ebp - 0x50], 0x86e54411
mov dword [ebp - 0x4c], 0xbc95fc0d
add dword [ebp - 0x4c], 0x436a03f3
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x372c0
push 0
call eax
mov ecx, 0x7efbdc1f
sub ecx, 0x7efb93d7
mov ebx, eax
mov esi, 0xb09a4cf
sub esi, 0xac490cf
add esi, dword [ebp - 0x48]
mov edx, 0xf91c0547
sub edx, 0xa709eae
add dword [ebp - 0x1c], edx
mov edi, dword [esi]
sub dword [ebp - 0x1c], 0xb1e5c575
xor edi, edx
sub dword [ebp - 8], 0x51eeb8c6
mov dword [ebx], edi
mov dword [ebp - 0x10], 0x9f0e757b
add ebx, 0xa15cfbf4
sub ebx, 0xa15cfbf0
add esi, 4
loop 0x40757f
add eax, 0x60c1f905
sub eax, 0x60c0e512
mov ebx, eax
add eax, 0x7fef519a
add eax, 0x8010ae6b
mov ecx, 0x400000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0xa8e940
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0xaf897c]
mov edi, eax
add esp, 4
test edi, edi
jne 0xa8e973
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x10]
jbe 0xa8e9ba
mov eax, dword [esi]
push ecx
call eax
push dword [ebp + 8]
mov eax, dword [esi + 4]
push ebx
push dword [edi + 4]
call eax
mov ebx, dword [edi + 8]
add ebx, dword [esi + 0xc]
push dword [edi + 4]
mov eax, dword [esi + 8]
push ebx
mov dword [ebp - 8], ebx
call eax
mov eax, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 8], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 8]
add esp, 8
xor ebx, ebx
test eax, eax
je 0xa8ea13
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 8], 1
jne 0xa8e9d8
mov ebx, dword [ebp - 0xc]
cmp ebx, dword [esi + 0x10]
jae 0xa8ea47
nop dword [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0xac523b
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0xac523a
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0xa8ea20
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xa8f560
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push esi
push edi
push 0xf0000040
mov esi, ecx
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xa8f59b
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
ret

Function at 0xaa917a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00aa8e3a

Function at 0xab0499
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00ab0318

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x401cd0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40cab8
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [esp + 0x38]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x401d0d
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0
call fcn.0040b86c
push 0x411098
lea ecx, [esp + 0xc]
mov ebx, 1
push esi
push ecx
mov byte [esp + 0x3c], bl
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 2
call fcn.0040b93e
lea ecx, [esp + 8]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x38]
push 0
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x401da1
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], al
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0040b932
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov esi, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x10]
mov edi, eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x401e22
mov eax, dword [esp + 0x10]
push 0x10
lea ecx, [esp + 0x14]
call dword [eax + 0x40]
test eax, eax
je 0x401df6
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::GetFilePath
push esi
push eax
mov byte [esp + 0x3c], 3
call fcn.00401cd0
add esp, 8
mov byte [esp + 0x34], bl
lea ecx, [esp + 0x40]
jmp 0x401e1d
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CFileFind::GetFilePath
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x3c], 4
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov byte [esp + 0x34], bl
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
test edi, edi
jne 0x401da6
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.0040b932
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x402af0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40cc10
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [esp + 0x38]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x402b2d
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0
call fcn.0040b86c
push 0x411098
lea ecx, [esp + 0xc]
mov ebx, 1
push esi
push ecx
mov byte [esp + 0x3c], bl
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 2
call fcn.0040b93e
lea ecx, [esp + 8]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x38]
push 0
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x402bc1
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], al
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0040b932
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov esi, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x10]
mov edi, eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x402c2d
mov eax, dword [esp + 0x10]
push 0x10
lea ecx, [esp + 0x14]
call dword [eax + 0x40]
test eax, eax
je 0x402c2d
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::GetFilePath
lea edx, [esp + 0x40]
push esi
push edx
mov byte [esp + 0x3c], 3
call fcn.00402af0
mov eax, dword [esi + 8]
add esp, 8
lea ecx, [esp + 0x40]
push ecx
push eax
mov ecx, esi
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], bl
call sub.MFC42.DLL_CString::CString
test edi, edi
jne 0x402bc6
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.0040b932
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x402c70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov ecx, 0xa
xor eax, eax
push esi
push edi
mov esi, str.SOFTWARECW_MiniGnet_pppoeSetupInfo_
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x37
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0x80000002
push 0
lea eax, [esp + 0x18]
push str.SetupInfoRegPath
push eax
call fcn.004059b0
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x130]
test edi, edi
je 0x402d37
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [esp + 0x1c]
rep movsb byte es:[edi], byte [esi]
mov edi, 0x411094
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x14]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
lea edx, [esp + 0x30]
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x402d6d
pop edi
xor eax, eax
pop esi
add esp, 0x118
ret
mov eax, dword [esp + 0x12c]
mov edx, dword [esp + 0x128]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x124]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
sete al
pop esi
add esp, 0x118
ret