joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409f79
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc0
mov eax, 0x434c15
call fcn.00414585
mov edi, ecx
mov dword [ebp - 0x50], edi
xor ebx, ebx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x84], ebx
push 2
pop esi
push 0x444650
mov dword [ebp - 4], esi
call fcn.0040a575
cmp dword [ebp + 0x20], 8
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 8]
lea eax, [ebp + 0xc]
mov dword [ebp - 0x84], 1
cmovae eax, dword [ebp + 0xc]
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a150
lea eax, [ebp - 0x80]
mov dword [ebp - 0xcc], vtable.std::_Func_impl_no_alloc_class__lambda_0ef859ad30d76ca6aed5582f0b0c979a___void___.0
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xa8], eax
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 3
call fcn.00409bdf
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 5
call fcn.0040b2f3
cmp dword [ebp + 0x38], 8
lea ecx, [ebp - 0x4c]
push ecx
push ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], ebx
push ecx
lea eax, [ebp + 0x24]
mov dword [ebp - 0x4c], ebx
cmovae eax, dword [ebp + 0x24]
push ebx
push eax
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a148
push 4
pop eax
cmp dword [ebp - 0x44], eax
je 0x40a0bb
cmp dword [ebp - 0x44], 1
je 0x40a05e
cmp dword [ebp - 0x44], esi
jne 0x40a148
mov ebx, dword [ebp - 0x4c]
inc ebx
push ebx
mov dword [ebp - 0x48], ebx
call fcn.00413ad3
mov esi, eax
pop ecx
test esi, esi
je 0x40a083
push ebx
push 0
push esi
call fcn.00416120
add esp, 0xc
mov byte [esi], 0
jmp 0x40a085
xor esi, esi
cmp dword [ebp + 0x38], 8
lea ecx, [ebp - 0x48]
push ecx
push esi
push 0
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push 0
push eax
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a0af
push esi
mov ecx, edi
call fcn.004077b8
push esi
call fcn.00413aa6
pop ecx
jmp 0x40a148
cmp dword [ebp + 0x38], 8
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x50], eax
push ecx
push ebx
lea eax, [ebp + 0x24]
mov dword [ebp - 0x48], ebx
cmovae eax, dword [ebp + 0x24]
push ebx
push eax
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [ebp - 0x48]
lea ecx, [ebp - 0x16]
mov eax, esi
xor edx, edx
push 0xa
pop esi
div esi
sub ecx, 2
mov esi, eax
lea eax, [edx + 0x30]
mov word [ecx], ax
test esi, esi
jne 0x40a0e6
xor eax, eax
mov dword [ebp - 0x90], ebx
mov word [ebp - 0xa0], ax
lea eax, [ebp - 0x16]
mov dword [ebp - 0x8c], 7
cmp ecx, eax
je 0x40a12f
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0xa0]
call fcn.00409225
lea eax, [ebp - 0xa0]
mov ecx, edi
push eax
call fcn.004075f9
lea ecx, [ebp - 0xa0]
call fcn.00409913
lea ecx, [ebp - 0x7c]
call fcn.00409c38
lea ecx, [ebp + 0xc]
call fcn.00409913
lea ecx, [ebp + 0x24]
call fcn.00409913
mov eax, edi
call fcn.0041452f
ret
Function at 0x40a800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40a827
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040aea0
jmp 0x40a8dc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x40a849
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x40a84b
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x40a8d0
jg 0x40a860
test esi, esi
je 0x40a8d0
test ecx, ecx
jl 0x40a8a9
jg 0x40a86a
test eax, eax
je 0x40a8a9
cmp edi, ecx
jg 0x40a87e
jl 0x40a874
cmp esi, eax
jae 0x40a87e
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.00415620
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x40a8ac
mov edx, dword [ebp + 8]
test edi, edi
jl 0x40a8d0
jg 0x40a8b6
test esi, esi
je 0x40a8d0
cmp dword [ebx + 0x4c], 0
je 0x40a8d0
push dword [ebx + 0x4c]
push esi
push 1
push edx
call fcn.0041d082
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a8f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x40a917
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040af80
jmp 0x40a9e6
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x40a939
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x40a93b
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x40a9da
jg 0x40a958
test esi, esi
je 0x40a9da
test ecx, ecx
jl 0x40a9a5
jg 0x40a962
test eax, eax
je 0x40a9a5
cmp ebx, ecx
jg 0x40a976
jl 0x40a96c
cmp esi, eax
jae 0x40a976
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.00415620
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x40a9ac
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x40a9da
jg 0x40a9b6
test esi, esi
je 0x40a9da
cmp dword [edi + 0x4c], 0
je 0x40a9da
mov ecx, edi
call fcn.0040b4ec
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.0041d2a6
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40ac80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x44c06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
or ebx, 0xffffffff
push edi
mov edi, ecx
cmp dword [ebp + 8], ebx
jne 0x40aca3
xor eax, eax
jmp 0x40ad7d
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x40acd2
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [esi + ecx]
cmp ecx, eax
jae 0x40acd2
mov eax, dword [ebp + 8]
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x40ad7c
cmp dword [edi + 0x4c], 0
je 0x40ad7a
mov ecx, edi
call fcn.0040b4ec
mov ecx, dword [edi + 0x38]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], ecx
test ecx, ecx
jne 0x40ad06
push dword [edi + 0x4c]
movsx eax, al
push eax
call fcn.0041d6a8
cmp eax, ebx
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
jmp 0x40ad7a
mov byte [ebp - 0x25], al
lea eax, [ebp - 0x2c]
mov esi, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
mov ecx, dword [esi + 0x1c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x436288]
mov ecx, dword [ebp - 0x34]
call dword [esi + 0x1c]
test eax, eax
js 0x40ad7a
cmp eax, 1
jle 0x40ad4e
cmp eax, 3
jne 0x40ad7a
push dword [edi + 0x4c]
movsx ecx, byte [ebp - 0x25]
push ecx
jmp 0x40acf7
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x40ad6b
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.0041d082
add esp, 0x10
cmp esi, eax
jne 0x40ad7a
lea eax, [ebp - 0x25]
mov byte [edi + 0x3d], 1
cmp dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
jne 0x40ad7c
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00413a95
leave
ret 4

Function at 0x40b574
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x44c06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
cmp dword [ebx + 0x38], 0
je 0x40b613
cmp byte [ebx + 0x3d], 0
je 0x40b613
mov eax, dword [ebx]
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x436288]
mov ecx, ebx
call esi
cmp eax, 0xffffffff
je 0x40b5e5
push edi
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov esi, dword [edi]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x40]
push eax
mov ecx, dword [esi + 0x20]
call dword [0x436288]
mov ecx, edi
call dword [esi + 0x20]
pop edi
sub eax, 0
je 0x40b5e9
sub eax, 1
je 0x40b5ed
dec eax
sub eax, 1
je 0x40b613
xor al, al
jmp 0x40b615
mov byte [ebx + 0x3d], 0
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x40b60a
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.0041d082
add esp, 0x10
cmp esi, eax
jne 0x40b5e5
cmp byte [ebx + 0x3d], 0
sete al
jmp 0x40b615
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00413a95
leave
ret
Function at 0x40c498
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x44c06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 8], ecx
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
push ecx
push 2
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeExW]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x40c561
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
push ecx
push ecx
lea ecx, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040c8d5
mov esi, dword [ebp - 0x14]
xor edi, edi
push esi
push dword [ebp - 0x1c]
push edi
push dword [ebp - 8]
push 2
call dword [sym.imp.VERSION.dll_GetFileVersionInfoExW]
test eax, eax
je 0x40c54f
lea eax, [ebp - 8]
mov dword [ebp - 0x1c], edi
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], edi
push eax
push 0x445ee8
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40c54f
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx + 0xa]
mov dword [ebx], eax
movzx eax, word [ecx + 8]
mov dword [ebx + 4], eax
movzx eax, word [ecx + 0xe]
mov dword [ebx + 8], eax
movzx eax, word [ecx + 0xc]
mov dword [ebx + 0xc], eax
test esi, esi
je 0x40c54b
mov eax, dword [ebp - 0xc]
sub eax, esi
push eax
push esi
call fcn.00409a1b
pop ecx
pop ecx
mov al, 1
jmp 0x40c563
test esi, esi
je 0x40c561
mov eax, dword [ebp - 0xc]
sub eax, esi
push eax
push esi
call fcn.00409a1b
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413a95
leave
ret
Function at 0x40c783
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x44c06c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x80c], 0
lea eax, [ebp - 0x810]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x810], 4
push eax
lea eax, [ebp - 0x814]
mov esi, edx
push eax
push 0x10
push str.AllowMsiOverride
push 0x4468d8
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp dword [ebp - 0x80c], 0
jne 0x40c7ed
mov byte [esi], 0
xor al, al
jmp 0x40c8c6
mov ecx, str.entered_MsiOverride_mode
mov byte [esi], 1
call fcn.00409d9d
push 0x400
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40c81e
mov ecx, str.could_not_get_the_full_path_of_the_Setup_file___skipping_installation
call fcn.00409d9d
jmp 0x40c7e6
xor eax, eax
lea edi, [ebp - 0x824]
stosd dword es:[edi], eax
lea edx, [ebp - 0x824]
lea ecx, [ebp - 0x808]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040c498
test al, al
jne 0x40c846
mov ecx, str.could_not_get_the_Setup_version___skipping_installation
jmp 0x40c817
lea edx, [ebp - 0x824]
mov ecx, str.Setup_version_is
call fcn.0040c5db
push 0x445e84
lea ecx, [ebp - 0x824]
call fcn.0040c572
test al, al
je 0x40c871
mov ecx, str.the_version_of_the_Setup_file_is_invalid___skipping_installation
jmp 0x40c817
xor eax, eax
lea edi, [ebp - 0x834]
stosd dword es:[edi], eax
lea edx, [ebp - 0x834]
mov ecx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040c498
lea edx, [ebp - 0x834]
mov ecx, str.App_version_is
call fcn.0040c5db
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0x834]
call fcn.0040c572
test al, al
jne 0x40c8ba
mov ecx, str.The_app_version_already_installed_is_not_older_than_the_setup_version__skipping_installation
jmp 0x40c817
mov ecx, str.Setup_version_is_newer__re_installing_Teams_from_the_machine_wide_installer...
call fcn.00409d9d
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413a95
leave
ret
Function at 0x410d30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x435313
call fcn.004145f3
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x20], esi
push 0x404
lea eax, [ebp - 0x424]
mov dword [ebp - 4], esi
push esi
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], esi
call fcn.00416120
add esp, 0xc
mov dword [ebp - 0x424], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x430], edi
test edi, edi
jne 0x410db9
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x430], eax
test edi, edi
jne 0x410db9
call fcn.00401d87
mov esi, eax
jmp 0x410ebc
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x410ddc
call fcn.00401d87
jmp 0x410eaf
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x410dd2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x410e0f
mov esi, 0x8007000e
jmp 0x410eb1
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x410edf
jb 0x410e2a
cmp eax, 0xffffffff
ja 0x410edf
cmp eax, 0x400
jbe 0x410e3f
push eax
lea ecx, [ebp - 0x424]
call fcn.0040f668
jmp 0x410e61
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x410e61
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
je 0x410e05
push ebx
push dword [ebp - 0x424]
push ebx
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x410dd2
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.00410bcc
mov esi, eax
test edi, edi
je 0x410ebc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x410ed5
lea ecx, [ebp - 0x424]
call fcn.0040f653
mov eax, esi
call fcn.00414540
ret 0x10
push 0x80070216
call fcn.00401ebd
int3
Function at 0x411d00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x44c06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x411d25
xor eax, eax
jmp 0x411d81
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x411d52
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x411d52
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x411e06
cmp dword [edi + 0x4c], 0
je 0x411d7b
mov ecx, edi
call fcn.00411924
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x411d91
push dword [edi + 0x4c]
push ebx
call fcn.0041133a
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x411d80
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00413a95
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x436288]
mov ecx, dword [ebp - 0x2c]
call esi
test eax, eax
js 0x411d7b
cmp eax, 1
jle 0x411dd9
cmp eax, 3
jne 0x411d7b
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x411d6d
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x411df6
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.0041d082
add esp, 0x10
cmp esi, eax
jne 0x411d7b
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x411d7b
mov ax, bx
jmp 0x411d80

Function at 0x428707
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004283ca

Function at 0x428712
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042854b

Function at 0x42cfe3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042cca3
Function at 0x403860
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x4038c1
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x4038a4
cmp edi, 2
jb 0x4038a4
cmp byte [esi], cl
jne 0x4038a4
cmp byte [esi + 1], cl
jne 0x4038a4
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x43a608]
jmp 0x403875
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x43a608]
test edi, edi
jne 0x403875
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x4038f0
cmp cl, 0x23
jne 0x4038d7
cmp byte [esi], cl
jne 0x4038d7
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x43a608]
test cl, cl
jne 0x4038c8
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x403a80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
jne 0x403aa5
push 0x7ca
push str.C:Users_bidyuDownloadsCompressedImGui_Menu_Version_2.0ImGui_Menu_Version_2.0imgui.cpp
push str.filename__mode
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov edi, dword [ebp + 8]
test edi, edi
je 0x403ab2
mov dword [edi], 0
mov edx, 0x439f08
mov ecx, esi
call fcn.00403900
mov esi, eax
test esi, esi
je 0x403ba2
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call ebx
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x403b98
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x403b98
push esi
call ebx
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
cmp ebx, 0xffffffff
je 0x403b98
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x403b98
mov eax, dword [0x47e788]
test eax, eax
je 0x403b2c
inc dword [eax + 0xb4]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x403b98
push esi
push dword [ebp + 8]
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x403b7d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x47e788]
add esp, 4
test eax, eax
je 0x403b6a
dec dword [eax + 0xb4]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x403b8f
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405df0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xe4], 0
jg 0x405e19
push 0x712
push str.C:Users_bidyuDownloadsCompressedImGui_Menu_Version_2.0ImGui_Menu_Version_2.0imgui.h
push str.Size___0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov eax, dword [edi + 0xe4]
lea edx, [ebp + 8]
mov ebx, dword [edi + 0xec]
mov esi, 4
mov ebx, dword [ebx + eax*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x43a608]
sub esi, 1
jne 0x405e33
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x3e7c], ebx
jne 0x405e6a
push ecx
push dword [ebp + 8]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.0041a020
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
Function at 0x409c10
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x409c4d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x409c33
cmp byte [esi], bl
jne 0x409c33
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x43a608]
test bl, bl
jne 0x409c24
pop edi
pop esi
not ecx
pop ebx
jmp fcn.00409bb0