joyce8/EMBER2024-capa huggingface dataset:
Function at 0x565c4d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.00565696
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x565c8a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x565c8a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x565c8e
xor eax, eax
jmp 0x565d0c
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.00550b95
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x565cc6
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x565cb0
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.00565dfd
push ebx
mov edi, eax
call fcn.00550bbe
test edi, edi
pop ecx
je 0x565d08
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.00565bc6
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00565d11
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x401be0
Capabilities:
Create process on windows
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x44
lea eax, [ebp - 0x58]
xorps xmm0, xmm0
push 0
push eax
mov esi, edx
mov edi, ecx
movups xmmword [ebp - 0x10], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x2c], 1
xor eax, eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0x44
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401c61
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4039c0
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x47700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
test eax, eax
push esi
mov esi, 0x4393e2
cmovne esi, eax
mov eax, esi
push edi
mov edi, ecx
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4039f0
sub eax, edx
push ebx
lea ebx, [eax + 1]
test ebx, ebx
je 0x403a20
push ebx
call fcn.00435da9
push ebx
push esi
push eax
mov dword [ebp - 0xe4], eax
call sub.VCRUNTIME140.dll_memcpy
mov ebx, dword [ebp - 0xe4]
add esp, 0x10
jmp 0x403a22
xor ebx, ebx
cmp dword [edi + 0xc], 0
je 0x403a35
cmp dword [edi + 0x10], 0
je 0x403a35
mov ecx, edi
call fcn.00403b50
mov esi, dword [sym.imp.USER32.dll_EnumDisplaySettingsW]
lea eax, [ebp - 0xe0]
push eax
push 0xffffffffffffffff
push 0
mov dword [ebp - 0x9c], 0xdc
call esi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xe0]
cmp dword [ebp - 0x34], ecx
push eax
cmovb ecx, dword [ebp - 0x34]
push 0xffffffffffffffff
push 0
mov dword [edi + 0xc], ecx
mov dword [ebp - 0x9c], 0xdc
call esi
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 0x30], ecx
mov al, byte [ebp + 0x18]
cmovb ecx, dword [ebp - 0x30]
cmp dword [ebp + 0x14], 4
mov dword [edi + 0x10], ecx
mov ecx, 3
cmovb ecx, dword [ebp + 0x14]
mov byte [edi + 0x24], al
mov al, byte [ebp + 0x1c]
mov dword [edi + 0x14], ecx
mov ecx, edi
mov dword [edi + 0x44], 0
mov dword [edi + 0x40], 0
mov byte [edi + 0x54], al
mov word [edi + 0xb0], pe_nt_image_headers32
mov dword [edi + 0x28], ebx
call fcn.00402cf0
cmp byte [edi + 0x24], 0
pop ebx
je 0x403ace
mov ecx, edi
call fcn.004037b0
push 8
call fcn.00435da9
add esp, 4
mov esi, eax
push 0
push 0
mov dword [esi], edi
mov eax, dword [edi + 0x28]
push 0
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0
push 0
push 0
push 0
mov dword [edi + 0xbc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push esi
push 0x4034d0
push 0
push 0
mov dword [edi + 0xb8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [edi + 0xb8]
mov dword [edi + 0xb4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0043574b
mov esp, ebp
pop ebp
ret 0x18
Function at 0x403b50
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x403c0e
cmp dword [esi + 0x10], 0
je 0x403c0e
push dword [esi + 0xc0]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
push dword [esi + 0xb4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xd0]
call fcn.0043575c
push dword [esi + 0x28]
call fcn.0043575c
add esp, 8
mov dword [esi + 0xd0], 0
cmp byte [esi + 0x24], 0
mov dword [esi + 0x28], 0
je 0x403bb5
mov ecx, esi
call fcn.00403970
mov ecx, esi
mov dword [esi + 0x30], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
mov byte [esi + 0x24], 0
mov byte [esi + 0x54], 1
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x28], 0
call fcn.00402cf0
mov eax, esi
pop esi
ret
pop esi
jmp fcn.00402cf0

Function at 0x403ec0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x47700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0xc], 0
je 0x403fb6
cmp dword [ebx + 0x10], 0
je 0x403fb6
cmp byte [ebx + 0x54], 0
je 0x403fb6
cmp byte [ebx + 0x24], 0
mov byte [ebx + 0x54], 0
je 0x403f02
call fcn.004037b0
push 5
push dword [ebx + 0xc0]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [ebx + 0x54], 0
je 0x403f39
or ecx, 0xffffffff
or eax, ecx
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x40], ecx
mov ecx, ebx
call fcn.004040b0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043574b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xc]
dec eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x10]
dec eax
mov dword [ebp - 0x14], 0
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push 0xcf0000
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x14]
sub edi, dword [ebp - 0x14]
sub edi, dword [ebx + 0xc]
mov esi, dword [ebp - 8]
inc edi
shr edi, 1
sub esi, edi
sub esi, dword [ebp - 0x10]
sub esi, dword [ebx + 0x10]
push eax
push dword [ebx + 0xc0]
inc esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
add eax, esi
add ecx, edi
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x40], ecx
mov ecx, ebx
call fcn.004040b0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043574b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043574b
mov esp, ebp
pop ebp
ret
Function at 0x4046b0
Capabilities:
Get common file path
Get program files directory
Query environment variable

Disassembly:
push ecx
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x478980]
cmp eax, dword [ecx + 4]
jle 0x40472f
push 0x478980
call fcn.0043592c
add esp, 4
cmp dword [0x478980], 0xffffffff
jne 0x40472f
push 0x438900
mov dword [0x478738], 0
mov dword [0x47873c], 0
mov dword [0x478740], 0
mov dword [0x478744], 0
mov byte [0x478748], 0
mov dword [0x47874c], 0
call fcn.00435d86
add esp, 4
push 0x478980
call fcn.004358e2
add esp, 4
call fcn.00401a20
push 0xffffffffffffffff
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x47874c], 0
jne 0x4047c3
push 1
push 1
push 1
push 0x104
mov ecx, 0x478738
call fcn.00407f20
mov eax, dword [0x47874c]
push 0
push 0x26
mov byte [eax], 0
push dword [0x47874c]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x4047c3
push str.PROGRAMFILES
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x4047a4
push 0x103
push eax
push dword [0x47874c]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
jmp 0x4047c3
mov eax, dword [0x47874c]
movq xmm0, qword [str.C:PROGRA1]
movq qword [eax], xmm0
mov eax, dword [0x47874c]
mov ecx, dword [0x457fac]
mov dword [eax + 8], ecx
call fcn.00401a20
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x47874c]
pop ecx
ret
Function at 0x421250
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
push ebx
push esi
push edi
test ecx, ecx
je 0x4212d6
test eax, eax
je 0x4212d6
test edx, edx
jne 0x42127c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, edx
xor ebx, ebx
mov esi, 0x3f00000
push eax
cmp edi, esi
lea eax, [ebx + ecx]
cmovb esi, edi
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
add ebx, eax
sub edi, eax
cmp esi, eax
jne 0x4212b7
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
test edi, edi
jne 0x421280
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4212cd
push dword [esp + 0x14]
push ebx
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.00401b40
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
push eax
cmp edx, 1
mov eax, 0x4587c0
mov ecx, 0x4393e2
cmovbe eax, ecx
push eax
call fcn.00401930
push eax
push edx
lea eax, [esp + 0x2c]
push str.cimg::fread__:_Invalid_reading_request_of__u__s_s_from_file__p_to_buffer__p.
push eax
call fcn.00401450
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x475714
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x421380
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
push ebx
push esi
push edi
test ecx, ecx
je 0x421406
test eax, eax
je 0x421406
test edx, edx
jne 0x4213ac
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, edx
xor ebx, ebx
mov esi, 0x3f00000
push eax
cmp edi, esi
lea eax, [ebx + ecx]
cmovb esi, edi
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
add ebx, eax
sub edi, eax
cmp esi, eax
jne 0x4213e7
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
test edi, edi
jne 0x4213b0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4213fd
push dword [esp + 0x14]
push ebx
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.00401b40
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
push eax
cmp edx, 1
mov eax, 0x4587c0
mov ecx, 0x4393e2
cmovbe eax, ecx
push eax
call fcn.00401920
push eax
push edx
lea eax, [esp + 0x2c]
push str.cimg::fread__:_Invalid_reading_request_of__u__s_s_from_file__p_to_buffer__p.
push eax
call fcn.00401450
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x475714
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x421450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov eax, ecx
mov dword [esp + 0xc], edx
mov ecx, dword [ebp + 8]
mov dword [esp + 8], eax
push esi
push edi
test eax, eax
je 0x4214de
test ecx, ecx
je 0x4214de
test edx, edx
jne 0x42147e
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, edx
xor ebx, ebx
lea eax, [edi + edi]
mov esi, 0x1f80000
cmp eax, 0x3f00000
mov eax, dword [esp + 0x10]
push ecx
cmovb esi, edi
push esi
lea eax, [eax + ebx*2]
push 2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
add ebx, eax
sub edi, eax
cmp esi, eax
jne 0x4214bf
mov ecx, dword [ebp + 8]
test edi, edi
jne 0x421482
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4214d5
push dword [esp + 0x14]
push ebx
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.00401b40
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push ecx
cmp edx, 1
mov eax, 0x4587c0
mov ecx, 0x4393e2
cmovbe eax, ecx
push eax
call fcn.00401940
push eax
push edx
lea eax, [esp + 0x2c]
push str.cimg::fread__:_Invalid_reading_request_of__u__s_s_from_file__p_to_buffer__p.
push eax
call fcn.00401450
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x475714
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x421550
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov eax, ecx
mov dword [esp + 0xc], edx
mov ecx, dword [ebp + 8]
mov dword [esp + 8], eax
push esi
push edi
test eax, eax
je 0x4215e2
test ecx, ecx
je 0x4215e2
test edx, edx
jne 0x42157e
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, edx
xor ebx, ebx
lea eax, [edi*4]
mov esi, 0xfc0000
cmp eax, 0x3f00000
mov eax, dword [esp + 0x10]
push ecx
cmovb esi, edi
push esi
lea eax, [eax + ebx*4]
push 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
add ebx, eax
sub edi, eax
cmp esi, eax
jne 0x4215c3
mov ecx, dword [ebp + 8]
test edi, edi
jne 0x421582
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4215d9
push dword [esp + 0x14]
push ebx
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.00401b40
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push ecx
cmp edx, 1
mov eax, 0x4587c0
mov ecx, 0x4393e2
cmovbe eax, ecx
push eax
call fcn.00401960
push eax
push edx
lea eax, [esp + 0x2c]
push str.cimg::fread__:_Invalid_reading_request_of__u__s_s_from_file__p_to_buffer__p.
push eax
call fcn.00401450
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x475714
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x421650
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov eax, ecx
mov dword [esp + 0xc], edx
mov ecx, dword [ebp + 8]
mov dword [esp + 8], eax
push esi
push edi
test eax, eax
je 0x4216e2
test ecx, ecx
je 0x4216e2
test edx, edx
jne 0x42167e
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, edx
xor ebx, ebx
lea eax, [edi*4]
mov esi, 0xfc0000
cmp eax, 0x3f00000
mov eax, dword [esp + 0x10]
push ecx
cmovb esi, edi
push esi
lea eax, [eax + ebx*4]
push 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
add ebx, eax
sub edi, eax
cmp esi, eax
jne 0x4216c3
mov ecx, dword [ebp + 8]
test edi, edi
jne 0x421682
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4216d9
push dword [esp + 0x14]
push ebx
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.00401b40
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push ecx
cmp edx, 1
mov eax, 0x4587c0
mov ecx, 0x4393e2
cmovbe eax, ecx
push eax
call fcn.004229b0
push eax
push edx
lea eax, [esp + 0x2c]
push str.cimg::fread__:_Invalid_reading_request_of__u__s_s_from_file__p_to_buffer__p.
push eax
call fcn.00401450
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x475714
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x421720
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov eax, ecx
mov dword [esp + 0xc], edx
mov ecx, dword [ebp + 8]
mov dword [esp + 8], eax
push esi
push edi
test eax, eax
je 0x4217b2
test ecx, ecx
je 0x4217b2
test edx, edx
jne 0x42174e
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, edx
xor ebx, ebx
lea eax, [edi*4]
mov esi, 0xfc0000
cmp eax, 0x3f00000
mov eax, dword [esp + 0x10]
push ecx
cmovb esi, edi
push esi
lea eax, [eax + ebx*4]
push 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
add ebx, eax
sub edi, eax
cmp esi, eax
jne 0x421793
mov ecx, dword [ebp + 8]
test edi, edi
jne 0x421752
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4217a9
push dword [esp + 0x14]
push ebx
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.00401b40
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push ecx
cmp edx, 1
mov eax, 0x4587c0
mov ecx, 0x4393e2
cmovbe eax, ecx
push eax
call fcn.00401970
push eax
push edx
lea eax, [esp + 0x2c]
push str.cimg::fread__:_Invalid_reading_request_of__u__s_s_from_file__p_to_buffer__p.
push eax
call fcn.00401450
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x475714
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x4217f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov eax, ecx
mov dword [esp + 0xc], edx
mov ecx, dword [ebp + 8]
mov dword [esp + 8], eax
push esi
push edi
test eax, eax
je 0x42187e
test ecx, ecx
je 0x42187e
test edx, edx
jne 0x42181e
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, edx
xor ebx, ebx
lea eax, [edi + edi]
mov esi, 0x1f80000
cmp eax, 0x3f00000
mov eax, dword [esp + 0x10]
push ecx
cmovb esi, edi
push esi
lea eax, [eax + ebx*2]
push 2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
add ebx, eax
sub edi, eax
cmp esi, eax
jne 0x42185f
mov ecx, dword [ebp + 8]
test edi, edi
jne 0x421822
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x421875
push dword [esp + 0x14]
push ebx
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.00401b40
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push ecx
cmp edx, 1
mov eax, 0x4587c0
mov ecx, 0x4393e2
cmovbe eax, ecx
push eax
call fcn.00401950
push eax
push edx
lea eax, [esp + 0x2c]
push str.cimg::fread__:_Invalid_reading_request_of__u__s_s_from_file__p_to_buffer__p.
push eax
call fcn.00401450
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x475714
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x4218c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov eax, ecx
mov dword [esp + 0xc], edx
mov ecx, dword [ebp + 8]
mov dword [esp + 8], eax
push esi
push edi
test eax, eax
je 0x421952
test ecx, ecx
je 0x421952
test edx, edx
jne 0x4218ee
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, edx
xor ebx, ebx
lea eax, [edi*8]
mov esi, 0x7e0000
cmp eax, 0x3f00000
mov eax, dword [esp + 0x10]
push ecx
cmovb esi, edi
push esi
lea eax, [eax + ebx*8]
push 8
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
add ebx, eax
sub edi, eax
cmp esi, eax
jne 0x421933
mov ecx, dword [ebp + 8]
test edi, edi
jne 0x4218f2
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x421949
push dword [esp + 0x14]
push ebx
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.00401b40
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push ecx
cmp edx, 1
mov eax, 0x4587c0
mov ecx, 0x4393e2
cmovbe eax, ecx
push eax
call fcn.004019a0
push eax
push edx
lea eax, [esp + 0x2c]
push str.cimg::fread__:_Invalid_reading_request_of__u__s_s_from_file__p_to_buffer__p.
push eax
call fcn.00401450
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x475714
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x4219f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov eax, ecx
mov dword [esp + 0xc], edx
mov ecx, dword [ebp + 8]
mov dword [esp + 8], eax
push esi
push edi
test eax, eax
je 0x421a82
test ecx, ecx
je 0x421a82
test edx, edx
jne 0x421a1e
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, edx
xor ebx, ebx
lea eax, [edi*4]
mov esi, 0xfc0000
cmp eax, 0x3f00000
mov eax, dword [esp + 0x10]
push ecx
cmovb esi, edi
push esi
lea eax, [eax + ebx*4]
push 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
add ebx, eax
sub edi, eax
cmp esi, eax
jne 0x421a63
mov ecx, dword [ebp + 8]
test edi, edi
jne 0x421a22
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x421a79
push dword [esp + 0x14]
push ebx
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.00401b40
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push ecx
cmp edx, 1
mov eax, 0x4587c0
mov ecx, 0x4393e2
cmovbe eax, ecx
push eax
call fcn.004019b0
push eax
push edx
lea eax, [esp + 0x2c]
push str.cimg::fread__:_Invalid_reading_request_of__u__s_s_from_file__p_to_buffer__p.
push eax
call fcn.00401450
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x475714
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x421af0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
push ebx
push esi
push edi
test ecx, ecx
je 0x421b76
test eax, eax
je 0x421b76
test edx, edx
jne 0x421b1c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, edx
xor ebx, ebx
mov esi, 0x3f00000
push eax
cmp edi, esi
lea eax, [ebx + ecx]
cmovb esi, edi
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
add ebx, eax
sub edi, eax
cmp esi, eax
jne 0x421b57
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
test edi, edi
jne 0x421b20
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x421b6d
push dword [esp + 0x14]
push ebx
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.00401b40
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
push eax
cmp edx, 1
mov eax, 0x4587c0
mov ecx, 0x4393e2
cmovbe eax, ecx
push eax
call fcn.00401910
push eax
push edx
lea eax, [esp + 0x2c]
push str.cimg::fread__:_Invalid_reading_request_of__u__s_s_from_file__p_to_buffer__p.
push eax
call fcn.00401450
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x475714
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3