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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4310b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov byte [ebp - 0x14], 1
mov esi, 0x104
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x10], esi
push eax
mov edi, ecx
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [ebp - 0x220]
add esp, 0xc
cmp byte [ebp - 0x14], al
sete al
dec eax
and eax, 0x7ee3
add eax, esi
push eax
call fcn.0040d300
test eax, eax
js 0x4120c3
push 0x24
pop ecx
call fcn.0040cbc0
mov esi, eax
test esi, esi
je 0x421dca
mov ecx, esi
mov dword [esi], edi
call fcn.0041199e
mov eax, dword [esi + 0x18]
mov ecx, 0xffce
mov ebx, dword [esi]
mov edi, dword [esi + 0xc]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], ebx
call fcn.0040cbc0
test eax, eax
je 0x421dca
push 0
mov edx, 0x7fe7
mov dword [0x43981c], eax
mov ecx, eax
call fcn.004083c5
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x421da1
mov edx, dword [ebp - 0x10]
push ebx
call fcn.00411809
test eax, eax
jne 0x4120c3
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x421dac
push 0x5c
pop eax
mov edx, eax
call fcn.0040f211
xor ecx, ecx
mov word [eax + 2], cx
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x421db7
push eax
mov ecx, 0x44bc58
call fcn.0040f229
test edi, edi
je 0x4120ef
movzx eax, word [edi]
push 0x3a
pop edx
cmp ax, dx
je 0x4120ef
push 0x5c
pop ecx
cmp ax, cx
jne 0x412093
cmp edi, ebx
je 0x421dc2
mov eax, ebx
xor ecx, ecx
cmp word [eax], cx
je 0x41207b
mov ecx, eax
add eax, 2
cmp eax, edi
jne 0x41206b
movzx eax, word [ecx]
cmp ax, dx
je 0x421dc2
push 0x5c
pop ecx
cmp ax, cx
je 0x421dc2
movzx ebx, word [edi]
xor eax, eax
push dword [ebp - 0x224]
mov word [edi], ax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4120eb
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [0x439820], eax
mov word [edi], bx
cmp dword [0x439820], 0
je 0x4120ef
xor esi, esi
inc esi
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x4120da
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417b90
leave
ret
xor eax, eax
jmp 0x4120b2
mov ecx, esi
call fcn.0041199e
mov eax, dword [ebp - 0x228]
mov dword [esi + 0x18], eax
jmp 0x4120c6
lea ecx, [ebp - 0x220]
jmp 0x412000
lea ecx, [ebp - 0x220]
jmp 0x41201c
lea eax, [ebp - 0x220]
jmp 0x412037
add edi, 2
jmp 0x412093
call fcn.0042ce7c
push 1
push 0x443a98
call dword [sym.imp.msvcrt.dll_longjmp]
int3
Function at 0x412291
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [0x4310b4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x230], 0
mov eax, 0x104
push ebx
push esi
push edi
push eax
mov dword [ebp - 0x228], eax
xor ebx, ebx
lea eax, [ebp - 0x438]
inc ebx
push 0
push eax
mov esi, edx
mov byte [ebp - 0x22c], bl
mov edi, ecx
call sub.msvcrt.dll_memset
and dword [ebp - 0x18], 0
add esp, 0xc
mov eax, 0x104
mov byte [ebp - 0x14], bl
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0x220]
push 0
push eax
call sub.msvcrt.dll_memset
and dword [ebp - 0x448], 0
add esp, 0xc
mov eax, 0x104
mov byte [ebp - 0x444], bl
mov dword [ebp - 0x440], eax
push eax
lea eax, [ebp - 0x650]
push 0
push eax
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [ebp - 0x438]
add esp, 0xc
cmp byte [ebp - 0x22c], al
sete al
dec eax
and eax, 0x7ee3
add eax, 0x104
push eax
call fcn.0040d300
test eax, eax
js 0x421f5f
xor eax, eax
lea ecx, [ebp - 0x220]
cmp byte [ebp - 0x14], al
sete al
dec eax
and eax, 0x7ee3
add eax, 0x104
push eax
call fcn.0040d300
test eax, eax
js 0x421f5f
xor eax, eax
lea ecx, [ebp - 0x220]
cmp byte [ebp - 0x14], al
sete al
dec eax
and eax, 0x7ee3
add eax, 0x104
push eax
call fcn.0040d300
test eax, eax
js 0x421f5f
and dword [0x439820], 0
mov eax, dword [ebp - 0x448]
test eax, eax
jne 0x4123b4
lea eax, [ebp - 0x650]
push dword [ebp - 0x440]
mov edx, esi
mov ecx, edi
push eax
call fcn.00407349
test al, al
je 0x412450
mov eax, dword [ebp - 0x448]
test eax, eax
jne 0x4123dc
lea eax, [ebp - 0x650]
push eax
lea ecx, [ebp - 0x220]
call fcn.0040f229
push 0x40263c
lea ecx, [ebp - 0x220]
call fcn.004121c1
mov ecx, dword [ebp - 0x230]
test ecx, ecx
je 0x421f2c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x421f37
push dword [ebp - 0x228]
xor edx, edx
push ecx
push edx
lea ecx, [ebp - 0x654]
push ecx
push edx
push edx
push edx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumeInformationW]
test eax, eax
je 0x421f42
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x41249c
push 0x402634
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x4124a4
xor bl, bl
cmp dword [ebp - 0x448], 0
jne 0x421f6e
mov eax, dword [ebp - 0x18]
and dword [ebp - 0x18], 0
test eax, eax
je 0x412472
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov eax, dword [ebp - 0x230]
and dword [ebp - 0x230], 0
test eax, eax
je 0x41248b
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417b90
leave
ret
lea eax, [ebp - 0x438]
jmp 0x41243e
cmp dword [ebp - 0x654], 0xc
je 0x412452
jmp 0x412450
lea ecx, [ebp - 0x438]
jmp 0x412406
lea eax, [ebp - 0x220]
jmp 0x412411
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea ecx, [eax - 0x90]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [0x439820], ecx
jmp 0x412450
mov dword [0x439820], 8
jmp 0x412450
push dword [ebp - 0x448]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
jmp 0x41245f
Function at 0x413830
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x47c
mov eax, dword [0x4310b4]
xor eax, esp
mov dword [esp + 0x478], eax
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
je 0x4139a8
mov eax, 0x104
mov byte [esp + 0x224], 1
push eax
xor ebx, ebx
mov dword [esp + 0x22c], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x224], ebx
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [esp + 0x24]
add esp, 0xc
cmp byte [esp + 0x224], al
sete al
dec eax
and eax, 0xfdc6
add eax, 0x208
push eax
call fcn.0040d300
test eax, eax
js 0x4139ac
mov ebx, dword [esp + 0x220]
test ebx, ebx
je 0x422751
mov esi, dword [esp + 0x228]
mov ecx, edi
call fcn.0040f070
lea ecx, [esp + 0x10]
push ecx
push ebx
push esi
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFullPathNameW]
mov ebx, eax
test ebx, ebx
je 0x4139ac
mov esi, dword [esp + 0x220]
test esi, esi
je 0x42275a
push 4
push 0x402694
push esi
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x422763
mov eax, dword [esp + 0x10]
xor edi, edi
test eax, eax
je 0x4227d8
cmp word [eax], di
je 0x4227d8
lea eax, [esp + 0x14]
mov edx, esi
push eax
lea eax, [esp + 0x234]
mov ecx, fcn.00417010
push eax
push edi
push 0x1037
call fcn.00416ed9
mov ecx, dword [esp + 0x14]
movzx ebx, al
call fcn.00411bba
test ebx, ebx
je 0x413982
mov eax, dword [esp + 0x220]
mov dword [esp + 0x220], edi
test eax, eax
je 0x41396b
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov eax, ebx
mov ecx, dword [esp + 0x484]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00417b90
mov esp, ebp
pop ebp
ret
movzx eax, word [esi + 2]
push 0x5c
pop ecx
cmp ax, cx
je 0x4227c0
cmp eax, 0x3a
jne 0x413951
cmp word [esi + 4], cx
jne 0x413951
cmp word [esi + 6], di
jne 0x413951
jmp 0x4227c0
xor eax, eax
jmp 0x41396d
xor edi, edi
jmp 0x413951
lea ebx, [esp + 0x18]
jmp 0x4138bd
lea esi, [esp + 0x18]
jmp 0x4138f2
add esi, 8
push esi
push edi
mov dword [esp + 0x18], esi
call dword [sym.imp.msvcrt.dll_wcsstr]
mov dword [esp + 0x18], eax
pop ecx
pop ecx
test eax, eax
je 0x4227a5
cmp eax, edi
jbe 0x4227a5
movzx esi, word [eax]
xor ecx, ecx
push edi
mov word [eax], cx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
mov ebx, eax
mov eax, dword [esp + 0x10]
mov word [eax], si
cmp ebx, 0xffffffff
jne 0x4139ac
xor edi, edi
jmp 0x4227b9
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
mov ebx, eax
xor edi, edi
cmp ebx, 0xffffffff
jne 0x413951
mov ebx, edi
jmp 0x413951
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x413951
xor ebx, ebx
inc ebx
jmp 0x413951
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
jmp 0x413951
Function at 0x4155c5
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
test edx, 0x400
jne 0x423e90
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x24]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.ntdll.dll_RtlDosPathNameToRelativeNtPathName_U_WithStatus]
test eax, eax
js 0x423e90
cmp word [ebp - 0x24], di
ja 0x423e76
mov eax, edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x1c], eax
push 0x5040
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x14]
push 4
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x18
push eax
push 0x10000
lea eax, [ebp - 4]
mov dword [ebp - 0x30], 0x40
push eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov esi, eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntdll.dll_RtlReleaseRelativeName]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
test esi, esi
js 0x423e90
mov ecx, dword [ebp - 4]
call fcn.00415695
test eax, eax
jne 0x423e81
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test esi, esi
je 0x423e90
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x24]
jmp 0x41560e
mov ecx, dword [ebp - 4]
call fcn.0042d6bd
mov esi, eax
jmp 0x415677
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x415688
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
jmp 0x415688

Function at 0x415714
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0x1a
mov edi, ecx
mov ecx, dword [edx + 0x20]
pop eax
mov word [ebp - 4], ax
test ecx, ecx
je 0x415745
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x423ede
inc dword [0x43978c]
pop edi
pop esi
leave
ret 8
mov ecx, edx
jmp 0x41572d
call fcn.0042c067
test eax, eax
je 0x423f0c
mov ecx, esi
call fcn.0040cc8e
test eax, eax
jne 0x423f0c
push eax
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test edi, edi
je 0x423f4c
test byte [edi + 0x1c], 0x80
jne 0x423f4c
mov ecx, esi
call fcn.0040cc8e
test eax, eax
jne 0x423f4c
mov eax, dword [0x43977c]
cmp eax, 3
je 0x423f4c
cmp dword [ebp + 0xc], 0
je 0x423f4c
cmp eax, 2
je 0x423f4c
push dword [ebp + 0xc]
push 0
push 0
push esi
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileTime]
mov ecx, esi
call fcn.0040fa2d
jmp 0x415739
Function at 0x415780
Capabilities:
Delete file
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push eax
push edi
push dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], eax
mov esi, ecx
mov dword [0x439818], eax
push ebx
push esi
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x423fc9
mov ecx, dword [edi]
test ecx, ecx
je 0x423f7d
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x1c]
test eax, 0xc000
je 0x4157e8
mov ecx, 0x8002
and eax, ecx
cmp eax, ecx
je 0x423fa1
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x14
cmp ecx, 2
jb 0x4157f7
mov ecx, 0xfeff
cmp word [ebx], cx
je 0x415801
or eax, 0x8000
mov dword [edx + 0x1c], eax
jmp 0x4157cf
or eax, 0x4000
jmp 0x4157fc
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x3e3
je 0x423fc9
mov ecx, dword [edi]
test ecx, ecx
jne 0x4157c2
and dword [0x439820], ecx
xor eax, eax
jmp 0x4157e1
mov esi, dword [edi]
lea eax, [ebp - 4]
push eax
xor ecx, ecx
mov edx, ebx
push edi
inc ecx
call fcn.0042a943
cmp esi, dword [edi]
je 0x4157de
mov dword [0x439818], 1
jmp 0x4157de
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, esi
mov dword [0x439820], eax
call fcn.0040fa2d
mov ecx, dword [ebp + 0x14]
call fcn.0040cc8e
mov ecx, dword [ebp + 0x14]
test eax, eax
jne 0x423ffa
call fcn.0040fa2d
push dword [ebp + 0x18]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
jmp 0x423fff
call fcn.0040fa2d
mov ecx, dword [0x439820]
xor edx, edx
inc edx
call fcn.0042c182
int3

Function at 0x415ee0
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [ebx]
mov edi, edx
mov dword [ebp - 4], ecx
and dword [esi], 0
neg eax
sbb eax, eax
add eax, 3
push eax
push edi
push ecx
call dword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
test eax, eax
je 0x42439c
xor eax, eax
inc eax
mov dword [esi], eax
pop edi
pop esi
pop ebx
leave
ret 8
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
jne 0x4243e0
push 0x400023d4
mov edx, 0x400023d3
mov ecx, edi
call fcn.0042d188
sub eax, 0
je 0x4243d8
dec eax
sub eax, 1
jne 0x4243c7
and dword [ebx], eax
push 3
push edi
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
jmp 0x415f14
xor eax, eax
inc eax
jmp 0x415f16
xor eax, eax
jmp 0x415f16
Function at 0x4166ab
Capabilities:
Check if file exists
Delete directory
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4310b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x10]
mov edi, ecx
push eax
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push 4
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFullPathNameW]
cmp eax, 3
je 0x424a45
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
test eax, eax
je 0x424a62
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00417b90
leave
ret
cmp word [ebp - 0xa], 0x3a
jne 0x4166dd
cmp word [ebp - 8], 0x5c
jne 0x4166dd
xor eax, eax
jmp 0x4166ee
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
cmp esi, 5
jne 0x4166ec
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4166ec
test al, 1
je 0x4166ec
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
test eax, eax
je 0x4166ec
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
test eax, eax
je 0x424ab0
xor esi, esi
jmp 0x4166ec
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
jmp 0x4166ec
Function at 0x416ed9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 2
xor ebx, ebx
mov dword [ebp - 4], ecx
push ebx
xor eax, eax
cmp dword [ebp + 0xc], eax
push ebx
push dword [ebp + 0x10]
sete al
push eax
push edx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileExW]
mov esi, dword [ebp + 0x14]
mov edi, eax
mov dword [esi], edi
cmp edi, 0xffffffff
jne 0x416f1e
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [0x439820], eax
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
push dword [ebp + 8]
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
cmp eax, fcn.00417010
jne 0x416fd7
call fcn.00417010
test eax, eax
je 0x416fc2
mov dword [0x439820], ebx
cmp edi, 0xffffffff
je 0x416f72
mov edi, dword [0x439830]
test edi, edi
je 0x416f76
mov ecx, dword [0x439834]
cmp ecx, dword [0x439838]
jge 0x416f96
test edi, edi
je 0x416f72
mov eax, dword [esi]
mov dword [edi + ecx*4], eax
inc ecx
mov dword [0x439834], ecx
mov bl, 1
jmp 0x416f15
push 0x14
push ebx
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov edi, eax
mov ecx, dword [0x439834]
mov dword [0x439830], edi
jmp 0x416f62
lea esi, [ecx*4 + 4]
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push esi
push edi
push ebx
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapReAlloc]
mov edi, eax
test edi, edi
je 0x42565e
inc dword [0x439838]
mov esi, dword [ebp + 0x14]
jmp 0x416f88
push dword [ebp + 0x10]
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
test eax, eax
je 0x416feb
mov edi, dword [esi]
jmp 0x416f05
mov ecx, eax
call dword [0x44d4ec]
mov ecx, dword [ebp - 4]
call ecx
mov edi, dword [esi]
jmp 0x416f37
push dword [esi]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
or dword [esi], 0xffffffff
jmp 0x416f0a
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, dword [ebp + 0x14]
mov dword [0x439820], eax
push dword [esi]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
or dword [esi], 0xffffffff
xor al, al
jmp 0x416f17
Function at 0x4170c0
Capabilities:
Set console window title

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4310b4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x218]
xor eax, eax
mov dword [ebp - 0x220], esi
push edi
mov dword [ebp - 0x21c], eax
mov ebx, eax
call fcn.00417233
test eax, eax
js 0x42567e
mov eax, dword [ebp - 0x218]
cmp eax, 3
jae 0x4256dc
test eax, eax
jne 0x42568c
inc eax
mov edi, eax
mov dword [ebp - 0x21c], eax
push 0x40002748
mov dword [ebp - 0x22c], edi
call fcn.004171fd
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4256cb
mov ecx, ebx
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x417140
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x224], ecx
cmp ecx, 0x104
jae 0x4171cf
mov ecx, 0x208
call fcn.0040cbc0
mov esi, eax
mov dword [ebp - 0x228], esi
test esi, esi
je 0x4171cf
push ebx
mov edx, 0x104
mov ecx, esi
call fcn.0040dfe0
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x4256e4
cmp dword [eax + 0x3c], 0
je 0x4171f1
push dword [eax + 0x3c]
mov edx, 0x104
mov ecx, esi
call fcn.0040ebf0
test eax, eax
jne 0x4171c4
push esi
call dword [sym.imp.api_ms_win_core_console_l2_2_0.dll_SetConsoleTitleW]
xor eax, eax
mov byte [0x4397d4], al
mov edi, eax
cmp dword [ebp - 0x21c], 0
je 0x4171cb
test esi, esi
je 0x4171cb
mov ecx, esi
call fcn.0040cb50
test ebx, ebx
je 0x4171d6
push ebx
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
test edi, edi
jne 0x4256cb
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417b90
leave
ret 4
xor ecx, ecx
mov edi, ecx
jmp 0x4171c4
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test esi, esi
je 0x42576f
mov ecx, dword [esi + 0x3c]
call fcn.0040974c
mov esi, eax
test esi, esi
je 0x425768
mov ecx, esi
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4256ad
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jb 0x4171a7
xor edi, edi
inc edi
xor eax, eax
push eax
push 8
call fcn.004128ff
pop ecx
pop ecx
jmp 0x4171de
add eax, 0xfffffff0
jmp 0x41710d
lea eax, [ebp - 0x214]
push 0x104
push eax
mov dword [ebp - 0x218], eax
call dword [sym.imp.api_ms_win_core_console_l2_2_0.dll_GetConsoleTitleW]
test eax, eax
je 0x4171c4
lea eax, [ebp - 0x214]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x425749
mov eax, dword [ebp - 0x224]
lea edi, [ebp - 0x214]
lea esi, [eax + eax]
add edi, esi
push ebx
push edi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x425727
mov esi, dword [ebp - 0x228]
mov dword [ebp - 0x218], edi
mov edi, dword [ebp - 0x22c]
push dword [ebp - 0x218]
mov edx, 0x104
mov ecx, esi
call fcn.0040ebf0
test eax, eax
jne 0x4171c4
jmp 0x4171a7
xor eax, eax
jmp 0x4171b5
xor eax, eax
mov edi, eax
jmp 0x4171de
Function at 0x417fa0
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x430000
call fcn.004182a0
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x418000
cmp eax, 0xffffffff
je 0x418000
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x417ff9
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x417ff9
cmp edx, 0x10000000
jae 0x417ff9
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 0x417ff6
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 0x418080
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 0x4180be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4180b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4180c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4180a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4181a0
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 0x4181d1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4181d1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x4181d1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x426e36
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4310b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edi, 0x104
push ecx
mov edx, edi
mov dword [ebx], esi
lea ecx, [ebp - 0x20c]
mov dword [ebx + 4], esi
call fcn.0040dfe0
push 0x403bd4
mov edx, edi
lea ecx, [ebp - 0x20c]
call fcn.0040ebf0
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1f0003
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov dword [ebp - 0x214], eax
test eax, eax
jne 0x426eb5
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x426ef1
push ecx
mov ecx, dword [ebp + 4]
lea edx, [edi - 0x3b]
call fcn.00426aa0
mov esi, eax
jmp 0x426ef1
lea edx, [ebp - 0x210]
mov dword [ebp - 0x210], esi
mov ecx, eax
call fcn.004267ee
mov edi, eax
test edi, edi
jns 0x426ee5
mov ecx, dword [ebp + 4]
mov edx, 0xcf
push edi
push 0x4034b0
call fcn.00426aba
mov esi, edi
jmp 0x426ef1
mov eax, dword [ebp - 0x210]
cdq
mov dword [ebx], eax
mov dword [ebx + 4], edx
lea ecx, [ebp - 0x214]
call fcn.004196e5
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417b90
leave
ret 8