joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30002320
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc2c
mov eax, dword [0x30215e88]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov dword [ebp - 0xc28], ecx
push edi
mov word [ebp - 0xc20], ax
pushfd
mov eax, dword fs:[0x18]
pop ebx
test eax, eax
jne 0x30002359
or esi, 0xffffffff
or edi, 0xffffffff
jmp 0x30002362
mov esi, dword [eax + 0x34]
mov edi, dword [eax + 0xbf4]
push 0x104
push 8
push dword [0x3026d8b0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword fs:[0x18]
mov dword [ebp - 0xc24], eax
test ecx, ecx
je 0x30002395
mov dword [ecx + 0x34], esi
mov dword [ecx + 0xbf4], edi
test ebx, ebx
je 0x30002395
push ebx
popfd
test eax, eax
jne 0x300023a8
push str.TranslatePathFromDeviceToLetter:_Unable_to_allocate_buffer_for_DriveLetterFilePath
call fcn.3000a0d0
jmp 0x3000254a
lea eax, [ebp - 0xc20]
push eax
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x30002540
mov eax, dword [0x301e0490]
lea edi, [ebp - 0xc20]
movzx ecx, word [ebp - 0xc20]
xor ebx, ebx
mov dword [ebp - 0xc], eax
mov ax, word [0x301e0494]
mov word [ebp - 8], ax
jmp 0x300023f0
push 0x104
lea eax, [ebp - 0x218]
mov word [ebp - 0xc], cx
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x30002504
lea esi, [ebp - 0x218]
lea ecx, [esi + 2]
jmp 0x30002420
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x30002420
sub esi, ecx
sar esi, 1
cmp esi, 0x104
jae 0x30002504
push esi
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xc28]
call fcn.30164487
xor ebx, ebx
add esp, 0xc
test eax, eax
sete bl
mov dword [ebp - 0xc2c], ebx
test eax, eax
jne 0x30002504
mov eax, dword [ebp - 0xc28]
cmp word [eax + esi*2], 0x5c
lea eax, [eax + esi*2]
jne 0x30002504
push eax
lea eax, [ebp - 0xc]
push eax
push 0x301e0498
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.30001250
lea eax, [ebp - 0x420]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x300024a1
sub eax, edx
sar eax, 1
cmp eax, 0x7ffffffe
jbe 0x300024c4
mov edx, dword [ebp - 0xc24]
xor eax, eax
mov word [edx], ax
jmp 0x30002510
mov ecx, dword [ebp - 0xc24]
lea ebx, [ebp - 0x420]
mov edx, 0x104
sub ebx, ecx
test eax, eax
je 0x300024f2
movzx esi, word [ebx + ecx]
test si, si
je 0x300024f2
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x300024d7
jmp 0x300024f6
test edx, edx
jne 0x300024f9
sub ecx, 2
mov ebx, dword [ebp - 0xc2c]
xor eax, eax
mov word [ecx], ax
mov edx, dword [ebp - 0xc24]
lea ebx, [ebx]
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x30002510
test ebx, ebx
jne 0x3000252d
movzx eax, word [edi]
mov ecx, eax
test ax, ax
jne 0x300023f0
mov eax, edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.30159c2d
mov esp, ebp
pop ebp
ret
push str.TranslatePathFromDeviceToLetter:_GetLogicalDriveStrings_failed
call fcn.3000a0f0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.30159c2d
mov esp, ebp
pop ebp
ret
Function at 0x30002df0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov ecx, edx
call fcn.30002d00
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [0x3026ea64]
test edx, edx
je 0x30002e1e
lea ebx, [ebx]
cmp dword [edx], eax
je 0x30002e40
mov edx, dword [edx + 0x88]
test edx, edx
jne 0x30002e10
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.ContextClearAllBreakpoints:_No_breakpoints_found_for_current_thread__d._n
call fcn.3000a0d0
push str.ContextClearTrackedRegion:_Failed_to_clear_breakpoints._n
call fcn.3000a0d0
add esp, 0xc
xor eax, eax
pop esi
ret
test edx, edx
je 0x30002e1e
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
mov dword [edx + 0x1c], 0
mov dword [edx + 0x20], 0
mov dword [edx + 0x2c], 0
mov dword [edx + 0x30], 0
mov dword [edx + 0x34], 0
mov dword [edx + 0x38], 0
mov dword [edx + 0x3c], 0
mov dword [edx + 0x40], 0
mov dword [edx + 0x4c], 0
mov dword [edx + 0x50], 0
mov dword [edx + 0x54], 0
mov dword [edx + 0x58], 0
mov dword [edx + 0x5c], 0
mov dword [edx + 0x60], 0
mov dword [edx + 0x6c], 0
mov dword [edx + 0x70], 0
mov dword [edx + 0x74], 0
mov dword [edx + 0x78], 0
mov dword [edx + 0x7c], 0
mov dword [edx + 0x80], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
cmp dword [0x3026b28c], 1
jle 0x30002f27
call fcn.300077a0
mov eax, 1
pop esi
ret
Function at 0x30003500
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
pushfd
mov eax, dword fs:[0x18]
pop dword [ebp - 4]
test eax, eax
jne 0x30003522
or edi, 0xffffffff
or ebx, 0xffffffff
jmp 0x3000352b
mov edi, dword [eax + 0x34]
mov ebx, dword [eax + 0xbf4]
push 0x104
push 8
push dword [0x3026d8b0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov eax, dword fs:[0x18]
test eax, eax
je 0x3000355c
mov dword [eax + 0x34], edi
mov dword [eax + 0xbf4], ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x3000355c
push eax
popfd
test esi, esi
jne 0x30003576
push str.GetResultsPath:_Error_allocating_memory_for_full_path_string
call fcn.3000a0f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x30269aec
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x30003580
sub ecx, edx
lea eax, [ecx + 1]
push eax
push 0x30269aec
push 0x104
push esi
call fcn.30164201
mov ebx, dword [ebp - 8]
add esp, 0x10
test ebx, ebx
je 0x30003632
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x300035b0
sub ecx, edx
mov edx, ebx
lea edi, [edx + 1]
mov edi, edi
mov al, byte [edx]
inc edx
test al, al
jne 0x300035c0
sub edx, edi
lea eax, [edx + 1]
add eax, ecx
cmp eax, 0x104
jb 0x300035f2
push str.GetResultsPath:_Error__destination_path_too_long._n
call fcn.3000a0d0
add esp, 4
mov ecx, esi
call fcn.300011f0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x30003632
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x30003632
push esi
push str.GetResultsPath:_Error_creating_output_directory__s
call fcn.3000a0f0
add esp, 8
mov ecx, esi
call fcn.300011f0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x30003e10
Capabilities:
Get system information on windows

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x30003e28
push str.GetPageAddress:_Error___Supplied_address_zero._n
call fcn.3000a0d0
add esp, 4
xor eax, eax
pop esi
ret
mov ecx, dword [0x3026ed44]
test ecx, ecx
jne 0x30003e58
push 0x3026ed40
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [0x3026ed44]
test ecx, ecx
jne 0x30003e58
push str.GetPageAddress:_Failed_to_obtain_system_page_size._n
call fcn.3000a0f0
add esp, 4
xor eax, eax
pop esi
ret
mov eax, esi
xor edx, edx
div ecx
pop esi
imul eax, ecx
ret
Function at 0x30003e70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x30211b18
push 0x3015b760
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x30215e88]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
test ebx, ebx
je 0x30003f4d
mov dword [ebp - 4], 0
call fcn.30002560
mov edx, eax
test edx, edx
je 0x30003f46
mov esi, dword [edx + 0x3c]
add esi, edx
je 0x30003f46
mov esi, dword [esi + 0x78]
add esi, edx
je 0x30003f46
mov eax, dword [esi + 0x20]
add eax, edx
mov dword [ebp - 0x1c], eax
je 0x30003f46
mov edi, dword [esi + 0x1c]
add edi, edx
mov dword [ebp - 0x24], edi
je 0x30003f46
mov eax, dword [esi + 0x24]
add eax, edx
mov dword [ebp - 0x28], eax
je 0x30003f46
xor ecx, ecx
mov dword [ebp - 0x20], ecx
cmp ecx, dword [esi + 0x14]
jae 0x30003f46
movzx eax, word [eax + ecx*2]
mov edi, dword [edi + eax*4]
mov eax, ebx
sub eax, edx
cmp eax, edi
jle 0x30003f34
mov eax, ebx
sub eax, edi
sub eax, edx
cmp eax, 0x18
ja 0x30003f34
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + ecx*4]
add eax, edx
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc ecx
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
jmp 0x30003ef1
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x30006690
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov bl, dl
test esi, esi
je 0x300066e4
push 0x1c
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x300066e4
mov eax, dword [ebp - 0xc]
test al, 0xee
je 0x300066e4
test eax, 0x101
jne 0x300066e4
test eax, eax
je 0x300066e4
lea eax, [ebp - 4]
push eax
push 0x40
push 1
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x300066ec
push esi
push str.PatchByte:_Unable_to_change_memory_protection_at_0x_p
call fcn.3000a0d0
add esp, 8
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
mov byte [esi], bl
push eax
push dword [ebp - 4]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x300077a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [0x30215e88]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x3026ea64]
push edi
test esi, esi
je 0x30007907
mov edi, dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov ebx, dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov eax, dword [esi]
test eax, eax
je 0x30007960
cmp dword [esi + 4], 0
je 0x3000793f
lea eax, [ebp - 0x2d8]
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
push eax
mov dword [ebp - 0x2d8], 0x10010
push dword [esi + 4]
call edi
test eax, eax
je 0x3000796e
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d4], 0
push eax
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x2c0], 0
push dword [esi + 4]
call ebx
test eax, eax
je 0x3000791d
mov esi, dword [esi + 0x88]
test esi, esi
jne 0x300077d0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.30159c2d
mov esp, ebp
pop ebp
ret
push dword [esi]
push str.ClearAllBreakpoints:_Error_setting_thread_context__thread__d_._n
call fcn.3000a0d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.30159c2d
mov esp, ebp
pop ebp
ret
push eax
push str.ClearAllBreakpoints:_Error_no_thread_handle_for_thread__d._n
call fcn.3000a0d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.30159c2d
mov esp, ebp
pop ebp
ret
push esi
push str.ClearAllBreakpoints:_Error:_no_thread_id_for_thread_breakpoints_0x_x._n
call fcn.3000a0d0
add esp, 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30159c2d
mov esp, ebp
pop ebp
ret
Function at 0x30007e90
Capabilities:
Allocate or change rwx memory
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
test esi, esi
je 0x30007f0c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x30007f0c
mov eax, dword [ebp - 0xc]
test al, 0xee
je 0x30007f0c
test eax, 0x101
jne 0x30007f0c
test eax, eax
je 0x30007f0c
mov eax, dword [0x3023f9b4]
test eax, eax
je 0x30007ee2
lea ebx, [ebx]
cmp dword [eax + 4], esi
je 0x30007edd
mov eax, dword [eax]
test eax, eax
jne 0x30007ed0
jmp 0x30007ee2
add eax, 0xc
jne 0x30007f0c
mov bl, byte [esi]
cmp bl, 0xcc
je 0x30007f0c
push 0
mov edx, esi
mov ecx, 0x3023f9b4
call fcn.3004c320
add esp, 4
test eax, eax
jne 0x30007f14
push esi
push str.SetSoftwareBreakpoint:_Unable_to_store_instruction_byte_at_0x_p
call fcn.3000a0d0
add esp, 8
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [eax], bl
lea eax, [ebp - 4]
push eax
push 0x40
push 1
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x30007f3f
push esi
push str.SetSoftwareBreakpoint:_Unable_to_change_memory_protection_at_0x_p
call fcn.3000a0d0
add esp, 8
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
mov byte [esi], 0xcc
push eax
push dword [ebp - 4]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x300090e0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x30215e88]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, eax
je 0x30009235
mov esi, dword [0x3026e5d0]
test esi, esi
je 0x3000912b
lea esp, [esp]
cmp dword [esi], edi
je 0x3000919d
mov esi, dword [esi + 0x2c]
test esi, esi
jne 0x30009120
mov ecx, edi
call fcn.30008820
mov esi, eax
test esi, esi
je 0x3000921c
mov ecx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.3004ff50
mov dword [esi + 0xc], eax
test eax, eax
je 0x3000916b
push eax
push ebx
push edi
push str.OpenProcessHandler:_Image_base_for_process__d__handle_0x_x_:_0x_p._n
call fcn.3000a0d0
add esp, 0x10
push 0x104
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameA]
test eax, eax
je 0x300091c7
lea ecx, [esp + 0x10]
call fcn.30002100
mov ecx, dword [0x3026ed74]
mov dword [ecx + 0x14], eax
test eax, eax
jne 0x30009203
push str.OpenProcessHandler:_Error_translating_target_process_path
jmp 0x300091fb
cmp dword [esi + 0xc], 0
jne 0x30009229
mov ecx, ebx
call fcn.3004ff50
mov dword [esi + 0xc], eax
test eax, eax
je 0x30009229
push eax
push ebx
push edi
push str.OpenProcessHandler:_Image_base_for_process__d__handle_0x_x_:_0x_p._n
call fcn.3000a0d0
add esp, 0x10
jmp 0x30009229
mov edx, 1
mov ecx, 0x104
call fcn.300011a0
mov ecx, dword [0x3026ed74]
mov dword [ecx + 0x14], eax
test eax, eax
je 0x300091f6
push str.Error_obtaining_target_process_name
push 0x104
push eax
call fcn.30008800
add esp, 0xc
push str.OpenProcessHandler:_Error_obtaining_target_process_name
call fcn.3000a0f0
add esp, 4
mov eax, dword [0x3026ed74]
push dword [eax + 0x14]
push ebx
push edi
push str.OpenProcessHandler:_Injection_info_created_for_process__d__handle_0x_x:__s_n
call fcn.3000a0d0
add esp, 0x10
jmp 0x30009229
push str.OpenProcessHandler:_Error___cannot_create_new_injection_info._n
call fcn.3000a0d0
add esp, 4
mov eax, dword [0x3026ed74]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x30009237
xor eax, eax
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.30159c2d
mov esp, ebp
pop ebp
ret
Function at 0x30009bc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
test ecx, ecx
je 0x30009c7a
mov edx, dword [0x30267718]
movzx eax, cx
mov dword [ebp - 0x10], eax
test edx, edx
je 0x30009c7a
mov ecx, dword [edx + 0x3c]
xor edi, edi
mov eax, dword [ecx + edx + 0xc8]
mov ebx, dword [eax + edx + 0x50]
mov eax, dword [ecx + edx + 0x78]
mov ecx, dword [eax + edx + 0x20]
add eax, edx
add ecx, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ecx
mov esi, dword [eax + 0x1c]
add esi, edx
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x24]
add esi, edx
mov dword [ebp - 8], esi
cmp dword [ebx], edi
je 0x30009c7a
jmp 0x30009c20
xor esi, esi
cmp dword [eax + 0x14], esi
jbe 0x30009c72
jmp 0x30009c30
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + esi*2]
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 4]
cmp eax, dword [ebx]
jne 0x30009c69
mov eax, dword [ecx + esi*4]
add eax, edx
cmp dword [ebp - 0x10], edi
je 0x30009c7c
push 2
push 0x301f0b94
push eax
call fcn.30164910
mov edx, dword [0x30267718]
add esp, 0xc
test eax, eax
jne 0x30009c69
inc edi
mov eax, dword [ebp - 0x14]
inc esi
cmp esi, dword [eax + 0x14]
jb 0x30009c30
add ebx, 5
cmp dword [ebx], 0
jne 0x30009c20
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x3000a000
Capabilities:
Print debug messages

Disassembly:
cmp dword [0x3026d5c4], 0
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
jne 0x3000a0c9
push 0x104
mov esi, 0x3026e380
push 0
push esi
call fcn.3015cdc0
add esp, 0xc
mov edx, 0x104
push edi
push ecx
push ebx
push 0xffffffffffffffff
mov ecx, esi
call fcn.30009fb0
mov al, byte [0x3026e380]
add esp, 0x10
test al, al
je 0x3000a059
cmp al, 0xa
jl 0x3000a04e
cmp al, 0x7e
jle 0x3000a051
mov byte [esi], 0x3f
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x3000a046
cmp dword [0x3026b2b8], 0
je 0x3000a071
push 0x3026e380
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebx
ret
push 0x104
push 0
push 0x3026e020
call fcn.3015cdc0
add esp, 0xc
push 0x3026e380
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.DEBUG:_u:__s
push 0xffffffffffffffff
push 0x104
push 0x3026e020
call fcn.30009fe0
mov ecx, 0x3026e020
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x3000a0b2
sub ecx, edx
push ecx
push 0x3026e020
call fcn.300509d0
add esp, 8
pop edi
pop esi
pop ebx
ret
Function at 0x3000a0f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x400
push esi
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x104
push 0
push 0x3026e380
call fcn.3015cdc0
add esp, 0xc
lea eax, [ebp + 0xc]
mov edx, 0x104
push eax
push ecx
push dword [ebp + 8]
mov ecx, 0x3026e380
push 0xffffffffffffffff
call fcn.30009fb0
push 0x104
push 0
push 0x3026e260
call fcn.3015cdc0
add esp, 0x1c
push dword [ebp - 4]
push 0x3026e380
push esi
push esi
push str.Error__u__0x_x_____s:__s
push 0xffffffffffffffff
push 0x104
push 0x3026e260
call fcn.30009fe0
add esp, 0x20
cmp dword [0x3026b2b8], 0
je 0x3000a197
push 0x3026e260
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
mov esp, ebp
pop ebp
ret
push 0x104
push 0
push 0x3026e020
call fcn.3015cdc0
add esp, 0xc
push 0x3026e260
push str.DEBUG:_s
push 0xffffffffffffffff
push 0x104
push 0x3026e020
call fcn.30009fe0
mov ecx, 0x3026e020
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x3000a1d1
sub ecx, edx
push ecx
push 0x3026e020
call fcn.300509d0
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x3000a570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x30215e88]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x3026d5c0]
push esi
push edi
cmp eax, 1
jg 0x3000a792
cmp dword [0x3026d8e0], 0
jne 0x3000a792
test eax, eax
je 0x3000a5bc
mov ecx, dword [ebp + 8]
lea edx, [ebp + 0xc]
call fcn.3000a000
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.30159c2d
mov esp, ebp
pop ebp
ret
mov ecx, str.debugger
call fcn.30003500
push 1
push 0x104
mov edi, eax
call fcn.30164988
mov esi, eax
add esp, 8
test esi, esi
jne 0x3000a5fa
push str.DebuggerOutput:_failed_to_allocate_memory_for_file_name_string
call fcn.3000a0f0
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.30159c2d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._u.log
push 0x104
push esi
call fcn.30001ff0
add esp, 0x10
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push esi
call fcn.30164124
add esp, 4
cmp dword [0x3026e5a4], 0
jne 0x3000a70b
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x3026e5a4], eax
push edi
cmp eax, 0xffffffff
jne 0x3000a673
push str.DebuggerOutput:_Unable_to_open_debugger_logfile__s
call fcn.3000a0f0
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.30159c2d
mov esp, ebp
pop ebp
ret
push str.DebuggerOutput:_Debugger_logfile__s._n
call fcn.3000a0d0
lea eax, [ebp - 0x54]
push eax
call fcn.30164993
add esp, 0xc
push 0x104
push 0
push 0x3026e4a0
call fcn.3015cdc0
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push 0x40
push eax
call fcn.301649fb
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
push str.CAPE_Sandbox___Debugger_log:__s
push 0xffffffffffffffff
push 0x104
push 0x3026e4a0
call fcn.30009fe0
mov ecx, 0x3026e4a0
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x3000a6d4
push 0
push 0x3026d8dc
sub ecx, edx
push ecx
push 0x3026e4a0
push dword [0x3026e5a4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [ebp + 8]
cmp byte [esi], 0xa
jne 0x3000a70e
mov edi, edi
inc esi
mov dword [ebp + 8], esi
cmp byte [esi], 0xa
je 0x3000a700
jmp 0x3000a70e
mov esi, dword [ebp + 8]
push 0x104
push 0
push 0x3026e4a0
call fcn.3015cdc0
add esp, 0xc
lea eax, [ebp + 0xc]
mov edx, 0x104
push eax
push ecx
push esi
push 0xffffffffffffffff
mov ecx, 0x3026e4a0
call fcn.30009fb0
mov al, byte [0x3026e4a0]
add esp, 0x10
mov ecx, 0x3026e4a0
test al, al
je 0x3000a763
lea ebx, [ebx]
cmp al, 0xa
jl 0x3000a758
cmp al, 0x7e
jle 0x3000a75b
mov byte [ecx], 0x3f
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x3000a750
mov ecx, 0x3026e4a0
lea edx, [ecx + 1]
jmp 0x3000a770
mov al, byte [ecx]
inc ecx
test al, al
jne 0x3000a770
push 0
push 0x3026d8dc
sub ecx, edx
push ecx
push 0x3026e4a0
push dword [0x3026e5a4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.30159c2d
mov esp, ebp
pop ebp
ret