joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a66
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [eax + 0xc]
and dword [esi + 4], 0
or dword [esi], 0xffffffff
or dword [esi + 0x10], 0xffffffff
or dword [esi + 8], 0xffffffff
and dword [esi + 0x14], 0
mov dword [ebp - 4], ecx
call fcn.0040297a
test al, al
jne 0x402c1a
mov ecx, dword [ebp - 4]
call fcn.00402910
test al, al
je 0x402b79
lea eax, [edi + 0x78]
test eax, eax
je 0x402b36
mov ecx, dword [eax + 0x70]
test ecx, ecx
je 0x402b36
cmp dword [eax + 0x74], 0
je 0x402b36
mov eax, dword [ebp + 8]
push 0
push ecx
push dword [eax + 8]
push edi
call dword [sym.imp.IMAGEHLP.dll_ImageRvaToVa]
mov ebx, eax
test ebx, ebx
je 0x402b36
cmp dword [ebx], 0x48
push str.CLI_header_has_unexpected_size
sete al
push eax
call fcn.00411727
mov eax, dword [ebx]
and dword [ebp + 8], 0
add eax, dword [edi + 0xe8]
pop ecx
pop ecx
mov dword [esi + 0xc], eax
movzx ecx, word [edi + 0x14]
movzx edx, word [edi + 6]
test edx, edx
lea ecx, [ecx + edi + 0x18]
mov dword [ebp + 0xc], edx
jbe 0x402b36
mov edx, dword [ecx + 0x10]
mov edi, dword [ecx + 8]
cmp edi, edx
jae 0x402b18
mov edx, edi
mov edi, dword [ecx + 0xc]
mov dword [ebp - 4], edx
cmp eax, edi
jb 0x402b28
add edx, edi
cmp eax, edx
jb 0x402b40
inc dword [ebp + 8]
add ecx, 0x28
mov edx, dword [ebp + 8]
cmp edx, dword [ebp + 0xc]
jb 0x402b0c
push str.Error_finding_CLI_section_for_.NET_game__maybe_its_not_a_.NET_exe_
jmp 0x402bc3
mov edx, dword [ebp + 8]
mov dword [esi + 4], ecx
mov dword [esi], edx
mov edx, eax
sub edx, edi
push str.CLI_header_has_unexpected_size
mov dword [esi + 8], edx
mov ecx, dword [ecx + 0x14]
add ecx, edx
mov dword [esi + 0x10], ecx
mov ecx, dword [ebx + 8]
sub ecx, eax
mov dword [esi + 0x14], ecx
add ecx, edx
cmp ecx, dword [ebp - 4]
setb al
push eax
call fcn.00411727
pop ecx
pop ecx
jmp 0x402c1a
mov edx, dword [edi + 0x28]
and dword [ebp + 8], 0
mov dword [esi + 0xc], edx
movzx eax, word [edi + 0x14]
movzx ecx, word [edi + 6]
test ecx, ecx
lea eax, [eax + edi + 0x18]
mov dword [ebp + 0xc], ecx
jbe 0x402bbe
mov ecx, dword [eax + 0x10]
mov edi, dword [eax + 8]
cmp edi, ecx
jae 0x402ba2
mov ecx, edi
mov edi, dword [eax + 0xc]
cmp edx, edi
jb 0x402bb0
lea ebx, [edi + ecx]
cmp edx, ebx
jb 0x402bd5
inc dword [ebp + 8]
add eax, 0x28
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0xc]
jb 0x402b96
push str.Error_calculating_file_offset__what_type_of_PE_file_is_this___
push 0
call fcn.00411727
pop ecx
xor al, al
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8
mov ebx, dword [ebp + 8]
sub edx, edi
mov dword [esi], ebx
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov eax, dword [eax + 0x14]
sub ecx, edx
add eax, edx
mov ebx, ecx
mov ecx, dword [ebp - 4]
mov dword [esi + 0x10], eax
call fcn.004028a6
test al, al
je 0x402c17
mov edi, 0x80
push str.The_Code_Section_is_not_long_enough_to_encode.
cmp ebx, edi
sbb al, al
inc al
push eax
call fcn.00411727
pop ecx
mov dword [esi + 0x14], edi
pop ecx
jmp 0x402c1a
mov dword [esi + 0x14], ebx
mov al, 1
jmp 0x402bce
Function at 0x402cac
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push str.ReflexiveArcadeRAW_004.wdt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402d06
push ebx
lea eax, [ebp - 4]
push esi
push eax
mov esi, 0x4352f4
push 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push edi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
pop ebx
je 0x402d06
cmp dword [ebp - 4], 8
jne 0x402d06
mov eax, esi
jmp 0x402d08
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x402d0c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push str.ReflexiveArcadeRAW_004.wdt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402d69
lea eax, [ebp - 4]
push 0
push eax
push 8
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
setne byte [ebp + 0xb]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0xb], 0
je 0x402d65
cmp dword [ebp - 4], 8
jne 0x402d65
xor eax, eax
inc eax
jmp 0x402d6b
xor eax, eax
jmp 0x402d6b
xor al, al
pop esi
leave
ret 4

Function at 0x403879
Capabilities:
Create thread
Print debug messages

Disassembly:
push esi
mov esi, ecx
fld dword [esi + 0x18]
fcomp dword [0x4282e0]
fnstsw ax
test ah, 0x41
je 0x4038ab
call fcn.0040743b
test al, al
jne 0x4038ab
push 0
push str.Demo_Expired
push str.Thank_you_for_playing__your_demo_has_expired._nBuy_now_to_upgrade_instantly.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
ret
mov ecx, esi
call fcn.00404003
call fcn.00401006
mov ecx, eax
call fcn.0040117b
test al, al
jne 0x4038a9
call fcn.00401006
mov ecx, eax
call fcn.0040103b
mov ecx, esi
call fcn.004038e1
test al, al
je 0x4038a9
mov ecx, esi
pop esi
jmp fcn.00403a6d
Function at 0x4038e1
Capabilities:
Create process on windows
Print debug messages
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x950
push ebx
push esi
push edi
push 0x44
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x50]
push ebx
push eax
mov dword [ebp - 0xc], ecx
call fcn.0041c580
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 0x50], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 1
push 0x100000
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
test eax, eax
jne 0x40395f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push str.GameWrapper:_Duplicate_Thread_Failed__last_error__x_n
push eax
call fcn.0041c5d8
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x403a62
push 2
push 1
lea eax, [ebp - 8]
push 0x100001
push eax
call esi
push eax
call fcn.00401006
mov ecx, eax
call fcn.00414adf
push eax
call esi
push eax
call edi
test eax, eax
jne 0x4039bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push str.GameWrapper:_Duplicate_Game_Failed__last_error__x_n
push eax
call fcn.0041c5d8
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403a62
push dword [ebp - 8]
mov edi, str.0x_08x
lea eax, [ebp - 0x150]
push edi
push eax
call fcn.0041c5d8
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
push str.GAME_HANDLE
call esi
push dword [ebp - 4]
lea eax, [ebp - 0x150]
push edi
push eax
call fcn.0041c5d8
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
push str.WRAPPER_HANDLE
call esi
mov eax, dword [ebp - 0xc]
add eax, 0x48
push eax
lea eax, [ebp - 0x50]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push ebx
push str.ReflexiveArcadeRAW_003.wdt
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x403a66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push str.GameWrapper:_Create_Process_Failed__last_error__x_n
push eax
call fcn.0041c5d8
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 8]
call esi
xor al, al
jmp 0x403a68
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404003
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov byte [esi + 0x15], 1
push dword [0x4354a0]
call edi
call fcn.00401006
mov ecx, eax
call fcn.00401a44
mov ebx, eax
test ebx, ebx
je 0x4040ad
and byte [esi + 0x14], 0
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebx
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 1
push ebx
call edi
lea edi, [esi + 4]
cmp dword [edi], 0
jne 0x404059
cmp dword [esi + 0xc], 0
je 0x4040ad
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x4040ad
mov eax, dword [esi + 0xc]
cmp dword [ebp - 8], eax
jne 0x404087
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [edi]
jne 0x404087
mov ecx, dword [ebp - 4]
cmp ecx, dword [esi + 0x10]
jne 0x404087
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [esi + 8]
je 0x4040ad
mov ecx, dword [esi + 8]
mov esi, dword [esi + 0x10]
mov edx, dword [edi]
sub esi, ecx
push 1
sub eax, edx
push esi
push eax
push ecx
push edx
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
push 0x10
push 0
push edi
call fcn.0041c580
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4042c6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
call fcn.00401006
mov ecx, eax
call fcn.00402c65
fld dword [ebp + 8]
fcomp dword [0x4282e0]
mov edi, eax
fnstsw ax
test ah, 5
jp 0x4042f0
fldz
fstp dword [ebp + 8]
xor esi, esi
push esi
call fcn.00402f57
add byte [ebp + esi + 8], al
inc esi
cmp esi, 4
pop ecx
jb 0x4042f2
call fcn.0040434f
mov esi, eax
test esi, esi
je 0x40432e
lea eax, [ebp + 8]
push 4
push eax
push 4
push 0
push edi
call fcn.00402fac
pop ecx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00401006
mov ecx, eax
call fcn.00402d0c
pop edi
pop esi
leave
ret
Function at 0x404eed
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push dword [0x4354a0]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [esi + 0x30]
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp byte [esi], al
je 0x404f7f
mov dword [ebp - 4], eax
call fcn.004075f3
test eax, eax
jle 0x404f98
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040760a
mov esi, eax
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
movsd dword es:[edi], dword [esi]
pop ecx
push 0xcc0020
movsd dword es:[edi], dword [esi]
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push dword [ebp - 0x1c]
push ebx
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
inc dword [ebp - 4]
call fcn.004075f3
cmp dword [ebp - 4], eax
jl 0x404f2f
pop edi
jmp 0x404f98
push 0xcc0020
push eax
push eax
push ebx
push dword [esi + 0x28]
push dword [esi + 0x2c]
push eax
push eax
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 8]
push dword [0x4354a0]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebx
leave
ret

Function at 0x40535e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push str.SOFTWAREReflexiveArcade
lea eax, [ebp - 0x210]
push 0x42cf80
push eax
call fcn.0041c5d8
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0xf003f
lea eax, [ebp - 0x210]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4053d3
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.DoTimeBeeping
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4053d3
cmp dword [ebp - 4], eax
setne al
mov byte [0x435494], al
leave
ret
Function at 0x40561c
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x800
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp dword [esi + 0x5c], ebx
jne 0x405669
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x5c], eax
jne 0x405669
call ebp
push eax
lea eax, [esp + 0x14]
push str.GameWrapper:_Create_Pause_Event_Failed__last_error__x_n
push eax
call fcn.0041c5d8
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esi + 0x60], ebx
jne 0x40569c
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x60], eax
jne 0x40569c
call ebp
push eax
lea eax, [esp + 0x14]
push str.GameWrapper:_Create_Timeout_Event_Failed__last_error__x_n
push eax
call fcn.0041c5d8
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x814]
mov eax, dword [esi + 0x5c]
pop edi
mov dword [ecx], eax
mov eax, dword [esi + 0x60]
mov ecx, dword [esp + 0x814]
pop esi
pop ebp
pop ebx
mov dword [ecx], eax
add esp, 0x800
ret 8

Function at 0x4056e4
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x405753
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x224
push eax
push edi
call sub.KERNEL32.dll_Module32First
jmp 0x405748
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
call fcn.004279b0
pop ecx
test eax, eax
pop ecx
je 0x40575a
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x224
push eax
push edi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x40571c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
leave
ret 4
mov al, 1
jmp 0x405755

Function at 0x40575e
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
call fcn.0040743b
test al, al
je 0x405791
lea eax, [esp]
push 0x400
push eax
call fcn.004076e2
pop ecx
test al, al
pop ecx
jne 0x405791
push str.No_unlock_code_when_purchased___bad_error_for_you
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, 1
jmp 0x405793
xor al, al
add esp, 0x400
ret
Function at 0x405e0b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push esi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x405e76
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x405e48
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405e76
push ebx
call fcn.0041cc92
cmp eax, esi
pop ecx
mov dword [ebp + 8], eax
je 0x405e3f
lea ecx, [ebp - 4]
push esi
push ecx
push ebx
push eax
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
jne 0x405e7a
xor al, al
jmp 0x405e95
push ebx
push dword [ebp + 8]
call fcn.00405caa
mov ecx, dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [ecx], eax
call fcn.0041cba9
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406912
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
push esi
push edi
push 0x42d2ec
push dword [ebp + 8]
call fcn.0041ceb4
mov esi, eax
xor edi, edi
pop ecx
cmp esi, edi
pop ecx
je 0x4069cd
push 2
push edi
push esi
call fcn.0041d2ec
xor ebx, ebx
inc ebx
push ebx
push 0xfffffffffffffffa
push esi
call fcn.0041d2ec
push esi
push ebx
lea eax, [ebp - 2]
push 2
push eax
call fcn.0041d1d5
movzx eax, word [ebp - 2]
push ebx
push 0xfffffffffffffffe
pop ecx
sub ecx, eax
push ecx
push esi
call fcn.0041d2ec
push esi
call fcn.0041d053
mov dword [ebp + 8], eax
push esi
movzx eax, word [ebp - 2]
push eax
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.0041d1d5
add esp, 0x48
push edi
push edi
push esi
call fcn.0041d2ec
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000000
push ebx
mov ebx, str.Microsoft_Base_Cryptographic_Provider_v1.0
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push eax
call edi
test eax, eax
jne 0x4069d4
push 0xf0000008
push 1
push ebx
push eax
lea eax, [ebp - 8]
push eax
call edi
test eax, eax
jne 0x4069d4
push esi
call fcn.0041cdca
pop ecx
xor al, al
jmp 0x406abc
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4069fc
push esi
call fcn.0041cdca
pop ecx
xor bl, bl
jmp 0x406aaf
mov ebx, dword [ebp + 8]
and byte [ebp + 0xb], 0
mov edi, 0x400
cmp ebx, edi
jge 0x406a12
mov edi, ebx
mov byte [ebp + 0xb], 1
push esi
push edi
lea eax, [ebp - 0x410]
push 1
push eax
call fcn.0041d1d5
add esp, 0x10
lea eax, [ebp - 0x410]
push 0
push edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x406a90
sub ebx, edi
cmp byte [ebp + 0xb], 0
je 0x406a03
push esi
call fcn.0041cdca
pop ecx
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push esi
push esi
push 0x54
push 0x42d230
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x406a97
movzx eax, word [ebp - 2]
push esi
push str.ReflexiveArcade_DLL_Signature
push dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureA]
test eax, eax
jne 0x406a9b
xor bl, bl
jmp 0x406a9d
push esi
call fcn.0041cdca
pop ecx
xor bl, bl
jmp 0x406aa6
mov bl, 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406ae4
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
ret
Function at 0x406b03
Capabilities:
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x348]
push eax
call fcn.0041c440
lea eax, [ebp - 0x348]
push 0x42d34c
push eax
call fcn.0041c450
add esp, 0x10
lea eax, [ebp - 0x140]
mov bl, 1
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406bde
test byte [ebp - 0x140], 0x10
jne 0x406bc8
push dword [ebp + 0xc]
lea eax, [ebp - 0x44c]
push eax
call fcn.0041c440
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x44c]
push eax
call fcn.0041c450
push dword [ebp + 8]
lea eax, [ebp - 0x244]
push eax
call fcn.0041c440
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.0041c450
lea eax, [ebp - 0x244]
push eax
call fcn.00406ae4
add esp, 0x24
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x406bc8
xor bl, bl
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406b52
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop esi
pop ebx
leave
ret

Function at 0x406beb
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push esi
lea eax, [ebp - 0x348]
push dword [ebp + 8]
push eax
call fcn.0041c440
lea eax, [ebp - 0x348]
push str..
push eax
call fcn.0041c450
add esp, 0x10
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406ccc
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0041c440
lea eax, [ebp - 0x104]
push 0x42c45c
push eax
call fcn.0041c450
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0041c450
lea eax, [ebp - 0x218]
push 0x42d354
push eax
call fcn.0041d3b0
add esp, 0x20
test eax, eax
je 0x406cb6
lea eax, [ebp - 0x218]
push 0x42d350
push eax
call fcn.0041d3b0
pop ecx
test eax, eax
pop ecx
je 0x406cb6
test byte [ebp - 0x244], 0x10
lea eax, [ebp - 0x104]
push eax
je 0x406cb0
call fcn.00406beb
jmp 0x406cb5
call fcn.00406ae4
pop ecx
lea eax, [ebp - 0x244]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406c37
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
leave
ret
Function at 0x407ae8
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x407b16
push esi
call fcn.0040a9d0
cmp dword [esi + 0x40], 0
pop ecx
je 0x407b0f
xor eax, eax
mov dword [esi + 0x10], 0xcf
inc eax
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x407b88
mov eax, dword [esi + 0x1b0]
cmp dword [eax + 0x10], 0
je 0x407b7a
mov eax, dword [esi + 8]
test eax, eax
je 0x407b37
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x1b0]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x407b76
cmp eax, 2
je 0x407b7a
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x407b2c
cmp eax, 3
je 0x407b5b
cmp eax, 1
jne 0x407b2c
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x407b2c
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x407b2c
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
mov dword [esi + 0x98], eax
jmp 0x407ba6
cmp eax, 0xcc
je 0x407ba6
mov eax, dword [esi]
mov dword [eax + 0x14], 0x12
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
push esi
call fcn.00407baf
pop ecx
pop esi
ret