joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b8468
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd8
mov eax, dword [0x54c03c]
mov esi, dword [ebp + 8]
xor eax, ebp
mov dword [esp + 0xd0], eax
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x4b8492
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b84c8
and eax, 0x410
cmp eax, 0x410
jne 0x4b84c8
mov ecx, esi
call fcn.004b8580
mov ecx, dword [esp + 0xd0]
mov ebx, eax
xor ecx, ebp
call fcn.004d45c8
mov eax, ebx
jmp 0x4b8578
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x4b84d2
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
test eax, eax
jne 0x4b8568
push 2
call fcn.00414940
add esp, 4
test al, al
je 0x4b8566
call sub.KERNEL32.dll_GetLastError
mov ecx, esp
push eax
push 2
push 0x94
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.00415cc0
lea eax, [esp + 0x10]
push str.DeleteFile
push eax
call fcn.004015c0
add esp, 8
mov ebx, eax
mov eax, dword [esi + 0x10]
cmp dword [esi + 0x14], 7
jbe 0x4b8529
mov esi, dword [esi]
lea edi, [esp + 0xb8]
push eax
push esi
push edi
call fcn.004209d0
add esp, 0xc
mov eax, dword [edi + 0x10]
cmp dword [edi + 0x14], 0xf
mov ecx, edi
jbe 0x4b854d
mov ecx, dword [esp + 0xb8]
push eax
push ecx
push ebx
call fcn.00402d73
add esp, 0xc
mov ecx, edi
call fcn.00401b04
mov ecx, esp
call fcn.00415de0
xor ebx, ebx
mov ecx, dword [esp + 0xd0]
xor ecx, ebp
call fcn.004d45c8
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4b8580
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd8
mov eax, dword [0x54c03c]
mov esi, ecx
xor eax, ebp
mov dword [esp + 0xd0], eax
mov eax, ecx
cmp dword [ecx + 0x14], 7
jbe 0x4b85a9
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov bl, 1
test eax, eax
jne 0x4b863c
push 2
call fcn.00414940
add esp, 4
test al, al
je 0x4b863a
call sub.KERNEL32.dll_GetLastError
mov ecx, esp
push eax
push 2
push 0x2f
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.00415cc0
lea eax, [esp + 0x10]
push str.RemoveDirectory
push eax
call fcn.004015c0
add esp, 8
mov ebx, eax
mov eax, dword [esi + 0x10]
cmp dword [esi + 0x14], 7
jbe 0x4b85fd
mov esi, dword [esi]
lea edi, [esp + 0xb8]
push eax
push esi
push edi
call fcn.004209d0
add esp, 0xc
mov eax, dword [edi + 0x10]
cmp dword [edi + 0x14], 0xf
mov ecx, edi
jbe 0x4b8621
mov ecx, dword [esp + 0xb8]
push eax
push ecx
push ebx
call fcn.00402d73
add esp, 0xc
mov ecx, edi
call fcn.00401b04
mov ecx, esp
call fcn.00415de0
xor ebx, ebx
mov ecx, dword [esp + 0xd0]
xor ecx, ebp
call fcn.004d45c8
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4bad8a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xf8
mov eax, dword [0x54c03c]
lea edi, [ecx + 0x18]
mov esi, ecx
mov ecx, edi
xor eax, ebp
mov dword [esp + 0xf0], eax
call fcn.004bb1aa
lea ebx, [esp + 0xb0]
mov ecx, esi
push ebx
push 0
push 0x40
push edx
push eax
call fcn.004c2052
test al, al
je 0x4bae3b
movzx eax, word [esp + 0xb0]
cmp eax, 0x5a4d
jne 0x4bae70
mov ecx, edi
call fcn.004bb1aa
mov ebx, eax
mov eax, dword [esp + 0xec]
mov ecx, esi
mov edi, eax
sar edi, 0x1f
add ebx, eax
adc edi, edx
push dword [ebp + 8]
push 0
push 0x108
push edi
push ebx
call fcn.004c2052
test al, al
je 0x4baea2
mov eax, dword [ebp + 8]
cmp dword [eax], 0x4550
jne 0x4baed0
mov eax, dword [ebp + 0xc]
mov ecx, ebx
mov bl, 1
test eax, eax
je 0x4baf24
mov dword [eax], ecx
mov dword [eax + 4], edi
jmp 0x4baf24
push 1
call fcn.00414940
add esp, 4
test al, al
je 0x4baf22
mov edi, esp
mov ecx, edi
push 1
push 0x12e
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.004149d0
lea eax, [esp + 8]
push str.could_not_read_dos_header_from
jmp 0x4baefc
push 1
call fcn.00414940
add esp, 4
test al, al
je 0x4baf22
mov edi, esp
mov ecx, edi
push 1
push 0x134
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.004149d0
lea eax, [esp + 8]
push str.invalid_e_magic_in_dos_header_of
jmp 0x4baefc
push 1
call fcn.00414940
add esp, 4
test al, al
je 0x4baf22
mov edi, esp
mov ecx, edi
push 1
push 0x13c
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.004149d0
lea eax, [esp + 8]
push str.could_not_read_nt_headers_from
jmp 0x4baefc
push 1
call fcn.00414940
add esp, 4
test al, al
je 0x4baf22
mov edi, esp
mov ecx, edi
push 1
push 0x142
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.004149d0
lea eax, [esp + 8]
push str.invalid_signature_in_nt_headers_of
push eax
call fcn.004015c0
add esp, 8
mov ecx, dword [esi + 0x10]
cmp dword [esi + 0x14], 0xf
jbe 0x4baf10
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.00402d73
add esp, 0xc
mov ecx, edi
call fcn.00413fc0
xor ebx, ebx
mov ecx, dword [esp + 0xf0]
xor ecx, ebp
call fcn.004d45c8
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x4baf3e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xf8
mov eax, dword [0x54c03c]
lea edi, [ecx + 0x18]
mov esi, ecx
mov ecx, edi
xor eax, ebp
mov dword [esp + 0xf0], eax
call fcn.004bb1aa
lea ebx, [esp + 0xb0]
mov ecx, esi
push ebx
push 0
push 0x40
push edx
push eax
call fcn.004c2052
test al, al
je 0x4bafef
movzx eax, word [esp + 0xb0]
cmp eax, 0x5a4d
jne 0x4bb024
mov ecx, edi
call fcn.004bb1aa
mov ebx, eax
mov eax, dword [esp + 0xec]
mov ecx, esi
mov edi, eax
sar edi, 0x1f
add ebx, eax
adc edi, edx
push dword [ebp + 8]
push 0
push 0xf8
push edi
push ebx
call fcn.004c2052
test al, al
je 0x4bb056
mov eax, dword [ebp + 8]
cmp dword [eax], 0x4550
jne 0x4bb084
mov eax, dword [ebp + 0xc]
mov ecx, ebx
mov bl, 1
test eax, eax
je 0x4bb0d8
mov dword [eax], ecx
mov dword [eax + 4], edi
jmp 0x4bb0d8
push 1
call fcn.00414940
add esp, 4
test al, al
je 0x4bb0d6
mov edi, esp
mov ecx, edi
push 1
push 0x12e
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.004149d0
lea eax, [esp + 8]
push str.could_not_read_dos_header_from
jmp 0x4bb0b0
push 1
call fcn.00414940
add esp, 4
test al, al
je 0x4bb0d6
mov edi, esp
mov ecx, edi
push 1
push 0x134
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.004149d0
lea eax, [esp + 8]
push str.invalid_e_magic_in_dos_header_of
jmp 0x4bb0b0
push 1
call fcn.00414940
add esp, 4
test al, al
je 0x4bb0d6
mov edi, esp
mov ecx, edi
push 1
push 0x13c
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.004149d0
lea eax, [esp + 8]
push str.could_not_read_nt_headers_from
jmp 0x4bb0b0
push 1
call fcn.00414940
add esp, 4
test al, al
je 0x4bb0d6
mov edi, esp
mov ecx, edi
push 1
push 0x142
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.004149d0
lea eax, [esp + 8]
push str.invalid_signature_in_nt_headers_of
push eax
call fcn.004015c0
add esp, 8
mov ecx, dword [esi + 0x10]
cmp dword [esi + 0x14], 0xf
jbe 0x4bb0c4
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.00402d73
add esp, 0xc
mov ecx, edi
call fcn.00413fc0
xor ebx, ebx
mov ecx, dword [esp + 0xf0]
xor ecx, ebp
call fcn.004d45c8
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x4c0990
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
xor ebx, ebx
mov edi, edx
mov esi, ecx
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
push ebx
push edx
push ebx
push 0x8000004
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, esi
push eax
call fcn.00402480
mov eax, dword [esi]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x4c09d3
push edi
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4f80e3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f80ee
Function at 0x407751
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edx
push 0
mov esi, ecx
inc edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
movzx eax, si
push 0x17
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4077e0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4077e0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4077e0
mov eax, dword [ebp - 8]
push 0x40379c
push dword [eax]
call dword [sym.imp.msvcrt.dll_fopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4077e0
push esi
push edi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.msvcrt.dll_fwrite]
push esi
lea edi, [eax - 1]
neg edi
sbb edi, edi
inc edi
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4077e7
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 8
mov eax, 0x40f600
call fcn.0040ee8f
mov dword [ebp - 0x14], edx
mov esi, ecx
test esi, esi
je 0x4078f9
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x17
mov edi, eax
push 0x8f
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x4078f9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4078f9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4078f9
push esi
push 1
push edi
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC42.dll_CString::CString_1]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push 0x22
pop ebx
push ebx
push ebx
push 0x4037a0
push eax
call dword [sym.imp.MFC42.dll_CString::Format]
push esi
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_fputs]
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0x4037c4
push eax
call dword [sym.imp.MFC42.dll_CString::Format]
push esi
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_fputs]
mov edi, dword [ebp - 0x14]
add esp, 0x2c
mov ecx, edi
push 0x2f
push 0x5c
call dword [sym.imp.MFC42.dll_CString::Replace]
push ebx
push dword [edi]
lea eax, [ebp - 0x10]
push ebx
push 0x4037dc
push eax
call dword [sym.imp.MFC42.dll_CString::Format]
push esi
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_fputs]
lea eax, [ebp - 0x10]
push 0x403800
push eax
call dword [sym.imp.MFC42.dll_CString::Format]
push esi
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_fputs]
add esp, 0x2c
lea ecx, [ebp - 0x10]
call dword [0x41412c]
call fcn.0040ee5d
ret
Function at 0x40831e
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4113f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x413a98], 0
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0x40838c
lea eax, [ebp - 0x108]
push eax
push dword [esi]
push dword [edi]
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x20
jbe 0x408374
push 3
push dword [esi]
lea eax, [ebp - 0x108]
push dword [edi]
push eax
push 0x403bb0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x40838c
cmp dword [0x413a98], 0
jne 0x40838c
push 0
push 0
push 0x403bb8
call dword [sym.imp.MFC42.dll_AfxMessageBox]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040e600
leave
ret
Function at 0x40bf20
Capabilities:
Enumerate files on windows

Disassembly:
push 0x174
mov eax, 0x40fba2
call fcn.0040eec2
mov esi, ecx
mov dword [ebp - 0x160], esi
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x150]
push 0x140
xor edi, edi
mov dword [ebp - 0x158], ebx
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x154]
call dword [sym.imp.MFC42.dll_CString::CString_1]
push ebx
lea ecx, [ebp - 0x154]
mov dword [ebp - 4], edi
call dword [sym.imp.MFC42.dll_CString::operator]
push 0x40410c
lea ecx, [ebp - 0x154]
call dword [0x41425c]
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40c141
lea eax, [esi + 0xa8]
push ecx
push edi
mov ecx, eax
mov dword [ebp - 0x15c], eax
call fcn.0040c741
push edi
push edi
push 0x14b
push dword [esi + 0x80]
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x17c]
call fcn.0040b9a2
push dword [ebp - 0x158]
lea ecx, [ebp - 0x17c]
mov byte [ebp - 4], 1
call dword [sym.imp.MFC42.dll_CString::operator]
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x17c]
call dword [0x41425c]
lea eax, [ebp - 0x17c]
push eax
call fcn.0040bd1b
mov esi, eax
test esi, esi
je 0x40c04b
sub esp, 0xc
lea eax, [ebp - 0x17c]
mov ecx, esp
push eax
call fcn.0040c16e
mov ecx, dword [ebp - 0x15c]
call fcn.0040c60e
push dword [ebp - 0x17c]
mov eax, dword [ebp - 0x160]
push edi
push 0x14a
push dword [eax + 0x80]
call dword [sym.imp.USER32.dll_SendMessageA]
inc edi
lea eax, [ebp - 0x150]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40c120
lea ecx, [ebp - 0x170]
call fcn.0040b9a2
push dword [ebp - 0x158]
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 2
call dword [sym.imp.MFC42.dll_CString::operator]
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x170]
call dword [0x41425c]
lea eax, [ebp - 0x170]
push eax
call fcn.0040bd1b
mov dword [ebp - 0x164], eax
test eax, eax
je 0x40c0e6
sub esp, 0xc
lea eax, [ebp - 0x170]
mov ecx, esp
push eax
call fcn.0040c16e
mov ecx, dword [ebp - 0x15c]
call fcn.0040c60e
push dword [ebp - 0x170]
mov eax, dword [ebp - 0x160]
push edi
push 0x14a
push dword [eax + 0x80]
call dword [sym.imp.USER32.dll_SendMessageA]
inc edi
lea eax, [ebp - 0x150]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 1
mov esi, eax
call dword [0x41412c]
lea ecx, [ebp - 0x170]
call dword [0x41412c]
test esi, esi
jne 0x40c061
mov esi, dword [ebp - 0x164]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x178]
call dword [0x41412c]
lea ecx, [ebp - 0x17c]
call dword [0x41412c]
mov edi, esi
lea ecx, [ebp - 0x154]
call dword [0x41412c]
mov eax, edi
call fcn.0040ee71
ret 4
Function at 0x40d26c
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
test esi, esi
jne 0x40d2d0
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xb7
cmp eax, ebx
jne 0x40d2cf
cmp dword [0x413a94], edi
je 0x40d2cc
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push 0x2000000
push 3
push edi
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x40d2df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x40d2cf
xor esi, esi
inc esi
pop ebx
lea ecx, [ebp + 8]
call dword [0x41412c]
pop edi
mov eax, esi
pop esi
pop ebp
ret
xor esi, esi
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40d2cf
Function at 0x40e370
Capabilities:
Terminate process

Disassembly:
call fcn.0040ed05
jmp 0x40e37a
push 0x58
push 0x410eb8
call fcn.0040edb8
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x413df0
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x40e3cc
cmp eax, esi
jne 0x40e3bf
xor esi, esi
inc esi
mov edi, esi
jmp 0x40e3cf
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40e3a3
xor esi, esi
inc esi
cmp dword [0x413df4], esi
jne 0x40e3e1
push 0x1f
call fcn.005be000
pop ecx
jmp 0x40e41b
cmp dword [0x413df4], ebx
jne 0x40e415
mov dword [0x413df4], esi
push 0x402db8
push 0x402dac
call fcn.0040e559
pop ecx
pop ecx
test eax, eax
je 0x40e41b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40e549
mov dword [0x413644], esi
cmp dword [0x413df4], esi
jne 0x40e43e
push 0x402da8
push 0x402d94
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x413df4], 2
test edi, edi
jne 0x40e44b
xor eax, eax
mov ecx, 0x413df0
xchg dword [ecx], eax
cmp dword [0x413e00], 0
je 0x40e477
push 0x413e00
call fcn.0040ec10
pop ecx
test eax, eax
je 0x40e477
push ebx
push 2
push ebx
mov esi, dword [0x413e00]
mov ecx, esi
call dword [0x4144bc]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x20]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x40e4d5
test cl, cl
je 0x40e4a4
test edi, edi
jne 0x40e4d5
test cl, cl
je 0x40e4a4
cmp cl, 0x20
ja 0x40e4a4
inc esi
mov dword [ebp - 0x1c], esi
mov cl, byte [esi]
jmp 0x40e493
test byte [ebp - 0x3c], 1
je 0x40e4b0
movzx eax, word [ebp - 0x38]
jmp 0x40e4b3
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x413640], eax
cmp dword [0x413658], 0
jne 0x40e52e
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x40e4e6
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x20], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x40e4f9
inc esi
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x40e484
cmp dword [0x413644], 0
jne 0x40e542
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x413640]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40eaf4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x410f58
call fcn.0040edb8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40eb54
cmp eax, 0xffffffff
je 0x40eb54
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40eb4d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40eb4d
cmp edx, 0x10000000
jae 0x40eb4d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40eb4a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40ebc0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40ebfe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40ebf6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40ec00
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40ebe6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40ecd0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x40ed01
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40ed01
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x40ed01
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401fe7
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push 0x10
mov eax, 0x500cc9
call fcn.004d766c
mov eax, dword [ebx + 8]
mov esi, dword [sym.imp.MSVCR80.dll__wcsicmp]
push str.kcmpp.exe
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x402045
mov eax, dword [ebx + 8]
push 0x50b048
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x402045
cmp dword [0x55ac14], 0
je 0x40203e
push 0x50b0ac
push ecx
call fcn.004022da
add esp, 4
call fcn.00402322
mov esi, eax
call fcn.0040234b
xor eax, eax
jmp 0x4021dd
call fcn.004546ab
test eax, eax
jne 0x402066
call fcn.0045485e
test eax, eax
jne 0x402066
cmp dword [0x55ac14], eax
je 0x40203e
push str.not_inst_number
jmp 0x402029
xor edi, edi
cmp dword [ebx + 0x10], edi
jne 0x40207c
cmp dword [0x55ac14], edi
je 0x40203e
push str.switch_off
jmp 0x402029
cmp dword [ebx + 0x18], edi
je 0x402099
call fcn.004605fe
test eax, eax
je 0x402099
cmp dword [0x55ac14], edi
je 0x40203e
push str.switch_on_and_Pcmgr_close
jmp 0x402029
push ebx
call fcn.00401d3a
mov eax, dword [0x55a320]
mov esi, 0x55a320
mov ecx, esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edi
mov eax, dword [0x55a320]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea esi, [ebx + 0x1c]
mov eax, esi
call fcn.0040296e
test eax, eax
jne 0x4020f5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.k_x.exe
lea eax, [ebp - 0x10]
call fcn.00401a17
jmp 0x402140
mov eax, esi
call fcn.0040296e
mov edi, eax
dec edi
je 0x402123
push 0
call dword [sym.imp.MSVCR80.dll__time64]
pop ecx
push eax
call dword [sym.imp.MSVCR80.dll_srand]
mov esi, dword [sym.imp.MSVCR80.dll_rand]
pop ecx
call esi
call esi
call esi
cdq
idiv edi
jmp 0x402125
xor edx, edx
mov esi, edx
lea edi, [ebx + 0x1c]
call fcn.0047a7e6
push dword [eax]
lea eax, [ebp - 0x10]
push 0x50b140
call fcn.00401a17
xor edi, edi
pop ecx
pop ecx
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push dword [ebx + 4]
push 0x50b078
call fcn.00401a17
mov eax, dword [ebx]
add esp, 0xc
push edi
mov edi, dword [ebp - 0x18]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40217c
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebx + 0x14]
jge 0x4021c7
xor edi, edi
jmp 0x4020d1
cmp dword [0x55ac14], 0
je 0x40219f
push str.CopyFile_true
push ecx
call fcn.004022da
add esp, 4
call fcn.00402322
mov esi, eax
call fcn.0040234b
lea eax, [ebp - 0x10]
push eax
mov esi, ebx
mov dword [ebp - 0x1c], 1
call fcn.00401f8f
push dword [ebp + 8]
push edi
call fcn.00460bf9
pop ecx
pop ecx
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004012f9
lea eax, [edi - 0x10]
call fcn.004012f9
mov eax, dword [ebp - 0x1c]
call fcn.004d7744
ret 4