joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30003280
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 0x300032a2
or edi, 0xffffffff
or ebx, 0xffffffff
jmp 0x300032ab
mov edi, dword [eax + 0x34]
mov ebx, dword [eax + 0xbf4]
push 0x104
push 8
push dword [0x30272510]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov eax, dword fs:[0x18]
test eax, eax
je 0x300032dc
mov dword [eax + 0x34], edi
mov dword [eax + 0xbf4], ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x300032dc
push eax
popfd
test esi, esi
jne 0x300032f6
push str.GetResultsPath:_Error_allocating_memory_for_full_path_string
call fcn.30009b60
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x3026eb4c
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x30003300
sub ecx, edx
lea eax, [ecx + 1]
push eax
push 0x3026eb4c
push 0x104
push esi
call fcn.301699a1
mov ebx, dword [ebp - 8]
add esp, 0x10
test ebx, ebx
je 0x300033b2
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x30003330
sub ecx, edx
mov edx, ebx
lea edi, [edx + 1]
mov edi, edi
mov al, byte [edx]
inc edx
test al, al
jne 0x30003340
sub edx, edi
lea eax, [edx + 1]
add eax, ecx
cmp eax, 0x104
jb 0x30003372
push str.GetResultsPath:_Error__destination_path_too_long._n
call fcn.30009b40
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 0x300033b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x300033b2
push esi
push str.GetResultsPath:_Error_creating_output_directory__s
call fcn.30009b60
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 0x30003b90
Capabilities:
Get system information on windows

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x30003ba8
push str.GetPageAddress:_Error___Supplied_address_zero._n
call fcn.30009b40
add esp, 4
xor eax, eax
pop esi
ret
mov ecx, dword [0x302739a4]
test ecx, ecx
jne 0x30003bd8
push 0x302739a0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [0x302739a4]
test ecx, ecx
jne 0x30003bd8
push str.GetPageAddress:_Failed_to_obtain_system_page_size._n
call fcn.30009b60
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 0x30003bf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
je 0x30003c77
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
neg eax
sbb esi, esi
and esi, dword [ebp - 0x28]
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov eax, dword [ecx + 0x20]
mov edx, dword [ecx + 0x1c]
add eax, esi
mov dword [ebp - 0x10], eax
add edx, esi
mov eax, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x14]
add eax, esi
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x30003c77
mov ebx, edi
sub ebx, esi
mov ecx, dword [ebp - 4]
movzx ecx, word [ecx + eax*2]
mov edx, dword [edx + ecx*4]
cmp ebx, edx
jle 0x30003c5d
mov ecx, edi
sub ecx, edx
sub ecx, esi
cmp ecx, 0x18
jbe 0x30003c68
inc eax
cmp eax, dword [ebp - 8]
jae 0x30003c77
mov edx, dword [ebp - 0xc]
jmp 0x30003c44
mov ecx, dword [ebp - 0x10]
pop edi
mov eax, dword [ecx + eax*4]
add eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x300060f0
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 0x30006144
push 0x1c
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x30006144
mov eax, dword [ebp - 0xc]
test al, 0xee
je 0x30006144
test eax, 0x101
jne 0x30006144
test eax, eax
je 0x30006144
lea eax, [ebp - 4]
push eax
push 0x40
push 1
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x3000614c
push esi
push str.PatchByte:_Unable_to_change_memory_protection_at_0x_p
call fcn.30009b40
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 0x30007210
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [0x3021be88]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x302736b8]
push edi
test esi, esi
je 0x30007377
mov edi, dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov ebx, dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov eax, dword [esi]
test eax, eax
je 0x300073d0
cmp dword [esi + 4], 0
je 0x300073af
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 0x300073de
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 0x3000738d
mov esi, dword [esi + 0x88]
test esi, esi
jne 0x30007240
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret
push dword [esi]
push str.ClearAllBreakpoints:_Error_setting_thread_context__thread__d_._n
call fcn.30009b40
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret
push eax
push str.ClearAllBreakpoints:_Error_no_thread_handle_for_thread__d._n
call fcn.30009b40
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret
push esi
push str.ClearAllBreakpoints:_Error:_no_thread_id_for_thread_breakpoints_0x_x._n
call fcn.30009b40
add esp, 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret
Function at 0x30007900
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 0x3000797c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x3000797c
mov eax, dword [ebp - 0xc]
test al, 0xee
je 0x3000797c
test eax, 0x101
jne 0x3000797c
test eax, eax
je 0x3000797c
mov eax, dword [0x30245624]
test eax, eax
je 0x30007952
lea ebx, [ebx]
cmp dword [eax + 4], esi
je 0x3000794d
mov eax, dword [eax]
test eax, eax
jne 0x30007940
jmp 0x30007952
add eax, 0xc
jne 0x3000797c
mov bl, byte [esi]
cmp bl, 0xcc
je 0x3000797c
push 0
mov edx, esi
mov ecx, 0x3024560c
call fcn.3004af40
add esp, 4
test eax, eax
jne 0x30007984
push esi
push str.SetSoftwareBreakpoint:_Unable_to_store_instruction_byte_at_0x_p
call fcn.30009b40
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 0x300079af
push esi
push str.SetSoftwareBreakpoint:_Unable_to_change_memory_protection_at_0x_p
call fcn.30009b40
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 0x30008b50
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x3021be88]
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 0x30008ca5
mov esi, dword [0x30273230]
test esi, esi
je 0x30008b9b
lea esp, [esp]
cmp dword [esi], edi
je 0x30008c0d
mov esi, dword [esi + 0x2c]
test esi, esi
jne 0x30008b90
mov ecx, edi
call fcn.30008290
mov esi, eax
test esi, esi
je 0x30008c8c
mov ecx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.3004ea80
mov dword [esi + 0xc], eax
test eax, eax
je 0x30008bdb
push eax
push ebx
push edi
push str.OpenProcessHandler:_Image_base_for_process__d__handle_0x_x_:_0x_p._n
call fcn.30009b40
add esp, 0x10
push 0x104
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameA]
test eax, eax
je 0x30008c37
lea ecx, [esp + 0x10]
call fcn.30002100
mov ecx, dword [0x302739d0]
mov dword [ecx + 0x14], eax
test eax, eax
jne 0x30008c73
push str.OpenProcessHandler:_Error_translating_target_process_path
jmp 0x30008c6b
cmp dword [esi + 0xc], 0
jne 0x30008c99
mov ecx, ebx
call fcn.3004ea80
mov dword [esi + 0xc], eax
test eax, eax
je 0x30008c99
push eax
push ebx
push edi
push str.OpenProcessHandler:_Image_base_for_process__d__handle_0x_x_:_0x_p._n
call fcn.30009b40
add esp, 0x10
jmp 0x30008c99
mov edx, 1
mov ecx, 0x104
call fcn.300011a0
mov ecx, dword [0x302739d0]
mov dword [ecx + 0x14], eax
test eax, eax
je 0x30008c66
push str.Error_obtaining_target_process_name
push 0x104
push eax
call fcn.30008270
add esp, 0xc
push str.OpenProcessHandler:_Error_obtaining_target_process_name
call fcn.30009b60
add esp, 4
mov eax, dword [0x302739d0]
push dword [eax + 0x14]
push ebx
push edi
push str.OpenProcessHandler:_Injection_info_created_for_process__d__handle_0x_x:__s_n
call fcn.30009b40
add esp, 0x10
jmp 0x30008c99
push str.OpenProcessHandler:_Error___cannot_create_new_injection_info._n
call fcn.30009b40
add esp, 4
mov eax, dword [0x302739d0]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x30008ca7
xor eax, eax
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret
Function at 0x30009630
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 0x300096ea
mov edx, dword [0x3026d3d8]
movzx eax, cx
mov dword [ebp - 0x10], eax
test edx, edx
je 0x300096ea
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 0x300096ea
jmp 0x30009690
xor esi, esi
cmp dword [eax + 0x14], esi
jbe 0x300096e2
jmp 0x300096a0
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 0x300096d9
mov eax, dword [ecx + esi*4]
add eax, edx
cmp dword [ebp - 0x10], edi
je 0x300096ec
push 2
push 0x301f5b2c
push eax
call fcn.30169f50
mov edx, dword [0x3026d3d8]
add esp, 0xc
test eax, eax
jne 0x300096d9
inc edi
mov eax, dword [ebp - 0x14]
inc esi
cmp esi, dword [eax + 0x14]
jb 0x300096a0
add ebx, 5
cmp dword [ebx], 0
jne 0x30009690
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x30009a70
Capabilities:
Print debug messages

Disassembly:
cmp dword [0x30272210], 0
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
jne 0x30009b39
push 0x104
mov esi, 0x30272fe0
push 0
push esi
call fcn.30162560
add esp, 0xc
mov edx, 0x104
push edi
push ecx
push ebx
push 0xffffffffffffffff
mov ecx, esi
call fcn.30009a20
mov al, byte [0x30272fe0]
add esp, 0x10
test al, al
je 0x30009ac9
cmp al, 0xa
jl 0x30009abe
cmp al, 0x7e
jle 0x30009ac1
mov byte [esi], 0x3f
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x30009ab6
cmp dword [0x30270314], 0
je 0x30009ae1
push 0x30272fe0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebx
ret
push 0x104
push 0
push 0x30272c80
call fcn.30162560
add esp, 0xc
push 0x30272fe0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.DEBUG:_u:__s
push 0xffffffffffffffff
push 0x104
push 0x30272c80
call fcn.30009a50
mov ecx, 0x30272c80
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x30009b22
sub ecx, edx
push ecx
push 0x30272c80
call fcn.3004f500
add esp, 8
pop edi
pop esi
pop ebx
ret
Function at 0x30009b60
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 0x30272fe0
call fcn.30162560
add esp, 0xc
lea eax, [ebp + 0xc]
mov edx, 0x104
push eax
push ecx
push dword [ebp + 8]
mov ecx, 0x30272fe0
push 0xffffffffffffffff
call fcn.30009a20
push 0x104
push 0
push 0x30272ec0
call fcn.30162560
add esp, 0x1c
push dword [ebp - 4]
push 0x30272fe0
push esi
push esi
push str.Error__u__0x_x_____s:__s
push 0xffffffffffffffff
push 0x104
push 0x30272ec0
call fcn.30009a50
add esp, 0x20
cmp dword [0x30270314], 0
je 0x30009c07
push 0x30272ec0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
mov esp, ebp
pop ebp
ret
push 0x104
push 0
push 0x30272c80
call fcn.30162560
add esp, 0xc
push 0x30272ec0
push str.DEBUG:_s
push 0xffffffffffffffff
push 0x104
push 0x30272c80
call fcn.30009a50
mov ecx, 0x30272c80
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x30009c41
sub ecx, edx
push ecx
push 0x30272c80
call fcn.3004f500
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x30009fe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x3021be88]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x3027220c]
push esi
push edi
cmp eax, 1
jg 0x3000a202
cmp dword [0x30272544], 0
jne 0x3000a202
test eax, eax
je 0x3000a02c
mov ecx, dword [ebp + 8]
lea edx, [ebp + 0xc]
call fcn.30009a70
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret
mov ecx, str.debugger
call fcn.30003280
push 1
push 0x104
mov edi, eax
call fcn.30169fc8
mov esi, eax
add esp, 8
test esi, esi
jne 0x3000a06a
push str.DebuggerOutput:_failed_to_allocate_memory_for_file_name_string
call fcn.30009b60
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.3015f3bd
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.301698c4
add esp, 4
cmp dword [0x30273204], 0
jne 0x3000a17b
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x30273204], eax
push edi
cmp eax, 0xffffffff
jne 0x3000a0e3
push str.DebuggerOutput:_Unable_to_open_debugger_logfile__s
call fcn.30009b60
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret
push str.DebuggerOutput:_Debugger_logfile__s._n
call fcn.30009b40
lea eax, [ebp - 0x54]
push eax
call fcn.30169fd3
add esp, 0xc
push 0x104
push 0
push 0x30273100
call fcn.30162560
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push 0x40
push eax
call fcn.3016a03b
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
push str.CAPE_Sandbox___Debugger_log:__s
push 0xffffffffffffffff
push 0x104
push 0x30273100
call fcn.30009a50
mov ecx, 0x30273100
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x3000a144
push 0
push 0x30272540
sub ecx, edx
push ecx
push 0x30273100
push dword [0x30273204]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [ebp + 8]
cmp byte [esi], 0xa
jne 0x3000a17e
mov edi, edi
inc esi
mov dword [ebp + 8], esi
cmp byte [esi], 0xa
je 0x3000a170
jmp 0x3000a17e
mov esi, dword [ebp + 8]
push 0x104
push 0
push 0x30273100
call fcn.30162560
add esp, 0xc
lea eax, [ebp + 0xc]
mov edx, 0x104
push eax
push ecx
push esi
push 0xffffffffffffffff
mov ecx, 0x30273100
call fcn.30009a20
mov al, byte [0x30273100]
add esp, 0x10
mov ecx, 0x30273100
test al, al
je 0x3000a1d3
lea ebx, [ebx]
cmp al, 0xa
jl 0x3000a1c8
cmp al, 0x7e
jle 0x3000a1cb
mov byte [ecx], 0x3f
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x3000a1c0
mov ecx, 0x30273100
lea edx, [ecx + 1]
jmp 0x3000a1e0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x3000a1e0
push 0
push 0x30272540
sub ecx, edx
push ecx
push 0x30273100
push dword [0x30273204]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret
Function at 0x3000a220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov ecx, str.CAPE
call fcn.30003280
push 1
push 0x104
mov dword [0x3027320c], eax
call fcn.30169fc8
mov esi, eax
add esp, 8
test esi, esi
jne 0x3000a258
push str.StringsOutput:_failed_to_allocate_memory_for_file_name_string
call fcn.30009b60
add esp, 4
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._u.txt
push 0x104
push esi
call fcn.30001ff0
add esp, 0x10
push esi
push dword [0x3027320c]
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push esi
call fcn.301698c4
add esp, 4
cmp dword [0x30273208], 0
jne 0x3000a2dc
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push dword [0x3027320c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x30273208], eax
push dword [0x3027320c]
cmp eax, 0xffffffff
jne 0x3000a2cf
push str.StringsOutput:_Unable_to_open_strings_output_file__s
call fcn.30009b60
add esp, 8
pop esi
pop ebp
ret
push str.StringsOutput:_Output_file__s._n
call fcn.30009b40
add esp, 8
push 0x104
push 0
push 0x30272da0
call fcn.30162560
add esp, 0xc
lea eax, [ebp + 0xc]
mov edx, 0x104
push eax
push ecx
push dword [ebp + 8]
mov ecx, 0x30272da0
push 0xffffffffffffffff
call fcn.30009a20
mov al, byte [0x30272da0]
add esp, 0x10
mov esi, 0x30272da0
test al, al
je 0x3000a333
lea ebx, [ebx]
cmp al, 0xa
jl 0x3000a328
cmp al, 0x7e
jle 0x3000a32b
mov byte [esi], 0x3f
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x3000a320
push 0x30272da0
call fcn.30009fe0
mov ecx, 0x30272da0
add esp, 4
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x3000a348
sub ecx, edx
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x3000a35e
mov byte [esi], 0xa
mov ecx, 0x30272da0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x3000a366
push 0
push 0x30272540
sub ecx, edx
push ecx
push 0x30272da0
push dword [0x30273208]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebp
ret
Function at 0x3000bf10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, dword [ebx + 0x108]
cmp esi, 0x7d0
jb 0x3000bf2f
mov esi, 0x7d0
push esi
call fcn.3015f9e2
mov ecx, dword [ebx + 0x104]
add esp, 4
mov edi, eax
mov edx, esi
mov dword [ebp - 0x10], edi
push edi
call fcn.30015420
add esp, 4
test al, al
je 0x3000c0a4
test edi, edi
je 0x3000c0af
mov esi, dword [edi + 0x3c]
add esi, edi
cmp dword [esi], 0x4550
je 0x3000bf75
push str.___IMAGE_NT_SIGNATURE_doesnt_match.
jmp 0x3000c09c
cmp dword [esi + 0x78], 0
je 0x3000c097
mov edi, dword [esi + 0x7c]
test edi, edi
je 0x3000c097
cmp edi, 0x30
jae 0x3000bf94
mov edi, 0x8c
push edi
call fcn.3015f9e2
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x3000c0a4
mov ecx, dword [ebp + 8]
mov edx, edi
push ebx
mov ecx, dword [ecx + 0x104]
add ecx, dword [esi + 0x78]
call fcn.30015420
add esp, 4
test al, al
je 0x3000c08f
mov eax, dword [ebx + 0x1c]
mov edi, ebx
sub edi, dword [esi + 0x78]
mov ecx, dword [ebx + 0x24]
add eax, edi
add ecx, edi
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x20]
add eax, edi
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test ecx, ecx
je 0x3000c04c
xor esi, esi
cmp dword [ebx + 0x18], esi
jbe 0x3000c08f
mov eax, dword [eax + esi*4]
add eax, edi
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x3000c020
test dl, dl
je 0x3000c01c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x3000c020
add eax, 2
add ecx, 2
test dl, dl
jne 0x3000c000
xor eax, eax
jmp 0x3000c025
sbb eax, eax
or eax, 1
test eax, eax
je 0x3000c03d
mov eax, dword [ebp - 8]
inc esi
mov ecx, dword [ebp + 0xc]
cmp esi, dword [ebx + 0x18]
jb 0x3000bff5
push ebx
call fcn.3015f9dd
jmp 0x3000c0a1
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + esi*2]
mov edx, dword [ecx + eax*4]
jmp 0x3000c07a
mov ecx, dword [ebx + 0x14]
xor edx, edx
test ecx, ecx
je 0x3000c08f
mov esi, dword [ebx + 0x10]
movzx edi, word [ebp + 0x10]
lea esp, [esp]
lea eax, [esi + edx]
cmp edi, eax
je 0x3000c074
inc edx
cmp edx, ecx
jb 0x3000c060
push ebx
call fcn.3015f9dd
jmp 0x3000c0a1
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + edx*4]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x104]
mov eax, dword [ebp + 0x14]
add ecx, edx
mov dword [eax], ecx
push ebx
call fcn.3015f9dd
jmp 0x3000c0a1
push str.___No_export_table.
call fcn.30009b40
add esp, 4
push dword [ebp - 0x10]
call fcn.3015f9dd
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x30012740
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x30239764], 0
jne 0x3001281d
push edi
push 0x301f673c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
je 0x3001281c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtCreateThreadEx
push edi
call esi
push str.NtDuplicateObject
push edi
call esi
push str.NtOpenProcess
push edi
call esi
push str.NtOpenThread
push edi
call esi
push str.NtQueryObject
push edi
call esi
push str.NtQueryInformationFile
push edi
call esi
push str.NtQueryInformationProcess
push edi
call esi
push str.NtQueryInformationThread
push edi
call esi
push str.NtQuerySystemInformation
push edi
call esi
push str.NtQueryVirtualMemory
push edi
call esi
push str.NtResumeProcess
push edi
mov dword [0x30239768], eax
call esi
push str.NtResumeThread
push edi
call esi
push str.NtSetInformationThread
push edi
call esi
push str.NtSuspendProcess
push edi
call esi
push str.NtTerminateProcess
push edi
call esi
push str.NtOpenSymbolicLinkObject
push edi
call esi
push str.NtQuerySymbolicLinkObject
push edi
mov dword [0x3023976c], eax
call esi
push str.RtlNtStatusToDosError
push edi
mov dword [0x30239770], eax
call esi
push str.NtClose
push edi
mov dword [0x30239764], eax
call esi
mov dword [0x30239774], eax
pop esi
pop edi
ret