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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1038beb8
push 0x10272a10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x10038e10
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x18]
cmp eax, 0x20b
je 0x10038e10
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
jmp 0x10038f8a
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 6]
test edx, edx
je 0x10038e2a
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 6]
cmp ecx, 0xffff
jle 0x10038e40
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
jmp 0x10038f8a
mov edx, dword [ebp + 8]
cmp dword [edx + 0x50], 0
je 0x10038e55
mov eax, dword [ebp + 8]
cmp dword [eax + 0x50], 0x77000000
jbe 0x10038e6b
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
jmp 0x10038f8a
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x14]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx + 0x18]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], 1
jmp 0x10038e8e
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x24], ecx
jae 0x10038ea5
mov edx, dword [ebp - 0x1c]
add edx, 0x28
mov dword [ebp - 0x1c], edx
jmp 0x10038e85
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 0
jne 0x10038ecd
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0xc], 0
jne 0x10038ecd
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
jmp 0x10038f8a
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x14], 0
je 0x10038ee7
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0x1c]
add ecx, dword [edx + 0x10]
mov dword [ebp - 0x20], ecx
jmp 0x10038eff
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0xc], 0
je 0x10038eff
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x1c]
add edx, dword [eax + 0x10]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
je 0x10038f10
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
cmp edx, dword [ecx + 0x50]
jbe 0x10038f3b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push str.GetMinPESize:_Possible_PE_image_rejected_due_to_min_size__d_bytes__SizeOfImage_0x_x_._n
call fcn.1003cfa0
add esp, 0xc
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
jmp 0x10038f8a
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
jmp 0x10038f8a
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10039070
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0xc], 0
jne 0x10039090
push str.ScanForDisguisedPE:_Error__zero_size_given_n
call fcn.1003cfa0
add esp, 4
xor eax, eax
jmp 0x100391bc
cmp dword [0x1065f9e4], 0
jne 0x100390a4
push 0x1065f9e0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x1065f9e4], 0
jne 0x100390c1
push str.ScanForDisguisedPE:_Failed_to_obtain_system_page_size._n
call fcn.1003e700
add esp, 4
xor eax, eax
jmp 0x100391bc
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x1065f9e4]
ja 0x100390e0
push str.ScanForDisguisedPE:_Size_too_small._n
call fcn.1003cfa0
add esp, 4
xor eax, eax
jmp 0x100391bc
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100388b0
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 8]
jbe 0x10039108
mov ecx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 4], 0
jmp 0x1003911a
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
sub eax, dword [0x1065f9e4]
cmp dword [ebp - 4], eax
jae 0x100391a2
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
push ecx
call fcn.10038fa0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10039144
jmp 0x10039111
cmp dword [ebp - 0xc], 0xffffffff
jne 0x10039171
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
push edx
push str.ScanForDisguisedPE:_Exception_occurred_scanning_buffer_at_0x_x_n
call fcn.1003cfa0
add esp, 8
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
push eax
call fcn.100380b0
add esp, 4
xor eax, eax
jmp 0x100391bc
cmp dword [ebp + 0x10], 0
je 0x10039182
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
push eax
push str.ScanForDisguisedPE:_PE_image_located_at:_0x_p_n
call fcn.1003cfa0
add esp, 8
mov eax, 1
jmp 0x100391bc
mov ecx, dword [ebp + 8]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.ScanForDisguisedPE:_No_PE_image_located_in_range_0x_p_0x_p._n
call fcn.1003cfa0
add esp, 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10039430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1038bef8
push 0x10272a10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.100730e0
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10039496
mov ecx, dword [ebp + 0xc]
push ecx
push str.DumpMemory:_Failed_to_allocate_0x_x_bytes_for_buffer_copy._n
call fcn.1003cfa0
add esp, 8
jmp 0x1003957a
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.1024a850
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
jmp 0x100394e7
call fcn.10038530
mov dword [ebp - 0x1c], eax
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x10039541
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x10039532
mov ecx, dword [ebp - 0x1c]
push ecx
push str.DumpMemory:_Payload_name_exists_already:__s
call fcn.1003cfa0
add esp, 8
jmp 0x1003953f
push str.DumpMemory:_Could_not_create_Payload
call fcn.1003e700
add esp, 4
jmp 0x1003957a
mov dword [ebp - 0x2c], 0
push 0
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10039573
push str.DumpMemory:_WriteFile_error_on_Payload
call fcn.1003e700
add esp, 4
jmp 0x1003957a
mov dword [ebp - 0x28], 1
cmp dword [ebp - 0x20], 0
je 0x1003958c
mov eax, dword [ebp - 0x20]
push eax
call fcn.100731f0
add esp, 4
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], 0
je 0x100395d5
mov edx, dword [0x1065f9d8]
mov eax, dword [ebp + 8]
mov dword [edx + 0x1c], eax
mov ecx, dword [0x1065f9d8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x20], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.1003e840
add esp, 4
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push str.DumpMemory:_Payload_successfully_created:__s__size__d_bytes_
call fcn.1003cfa0
add esp, 0xc
cmp dword [ebp - 0x1c], 0
je 0x100395e7
mov eax, dword [ebp - 0x1c]
push eax
call fcn.100731f0
add esp, 4
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10039d60
Capabilities:
Accept command line arguments
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1065fa38], 0
jne 0x10039d74
jmp 0x10039f7f
mov eax, 0x2c
shl eax, 0
push eax
call fcn.100730e0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10039da5
mov ecx, 0x2c
shl ecx, 0
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.1024a480
add esp, 0xc
mov eax, dword [ebp - 8]
mov dword [0x1065f9d8], eax
cmp dword [0x1065f9d8], 0
jne 0x10039dbb
jmp 0x10039f7f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [0x1065f9d8]
mov dword [ecx + 8], eax
call fcn.100758a0
mov edx, dword [0x1065f9d8]
mov dword [edx + 0xc], eax
push 0x104
call fcn.100730e0
add esp, 4
mov ecx, dword [0x1065f9d8]
mov dword [ecx], eax
push 0
push 0
push 0x104
mov edx, dword [0x1065f9d8]
mov eax, dword [edx]
push eax
mov ecx, dword [0x1065fa38]
push ecx
call fcn.10251edf
add esp, 4
add eax, 1
push eax
mov edx, dword [0x1065fa38]
push edx
push 0x400
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [0x1065f9d8]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, 0x104f1874
test edx, edx
je 0x10039e45
mov eax, dword [0x1065f9d8]
mov dword [eax + 0x24], 0x104f1874
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x10039e76
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0xa
jl 0x10039e65
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0x7e
jle 0x10039e6b
mov ecx, dword [ebp - 4]
mov byte [ecx], 0x3f
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x10039e45
mov dword [0x1065fa10], 0
mov dword [0x104ff47c], 0
cmp dword [0x1065c7a4], 0
je 0x10039e9f
mov eax, dword [0x1065c7a4]
mov dword [0x1065f93c], eax
jmp 0x10039eac
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x1065f93c], eax
cmp dword [0x104f16ec], 0
je 0x10039ec7
push str.Initialising_Yara..._n
call fcn.1003cfa0
add esp, 4
call fcn.10061f10
mov dword [0x1065f940], 0x94
push 0x1065f940
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10039ef2
push str.TSMAM_init:_Failed_to_get_OS_version
call fcn.1003e700
add esp, 4
jmp 0x10039f7f
cmp dword [0x104f16f0], 0
je 0x10039f25
cmp dword [0x1065f944], 6
jne 0x10039f0d
cmp dword [0x1065f948], 1
ja 0x10039f16
cmp dword [0x1065f944], 6
jbe 0x10039f25
mov ecx, dword [0x1065c904]
push ecx
call fcn.10036830
add esp, 4
mov edx, dword fs:[4]
mov dword [ebp - 0xc], edx
mov eax, dword fs:[8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [0x1065f93c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, dword [0x1065c904]
push ecx
mov edx, dword [0x1065f9d8]
mov eax, dword [edx + 8]
push eax
push str.Monitor_initialised:_32_bit_monitor_loaded_in_process__d_at_0x_x__thread__d__image_base_0x_x__stack_from_0x_x_0x_x_n
call fcn.1003cfa0
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push str.Commandline:__s_n
call fcn.1003cfa0
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x1003dde0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov dword [ebp - 8], 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp + 0xc], eax
jne 0x1003de00
jmp 0x1003df76
mov eax, dword [ebp + 0xc]
push eax
call fcn.1003d090
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1003df36
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1003d110
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
push str.OpenProcessHandler:_Injection_info_created_for_Pid__d__handle_0x_x._n
call fcn.1003cfa0
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x1003de55
push str.OpenProcessHandler:_Error___cannot_create_new_injection_info._n
call fcn.1003cfa0
add esp, 4
jmp 0x1003df34
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], 0
mov edx, dword [ebp - 8]
push edx
call fcn.100730e0
add esp, 4
mov ecx, dword [0x1065f9d8]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp + 8]
push edx
call fcn.10073aa0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
je 0x1003debe
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
push str.OpenProcessHandler:_Image_base_for_process__d__handle_0x_x_:_0x_p._n
call fcn.1003cfa0
add esp, 0x10
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1003df06
push str.OpenProcessHandler:_Handle_insufficient_to_obtain_target_process_name._n
call fcn.1003cfa0
add esp, 4
push str.Unable_to_obtain_target_process_name
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [0x1065f9d8]
mov eax, dword [edx + 0x14]
push eax
call fcn.1003d020
add esp, 0xc
jmp 0x1003df34
lea ecx, [ebp - 8]
push ecx
mov edx, dword [0x1065f9d8]
mov eax, dword [edx + 0x14]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.10037d10
add esp, 0xc
test eax, eax
jne 0x1003df34
push str.OpenProcessHandler:_Error_translating_target_process_path
call fcn.1003e700
add esp, 4
jmp 0x1003df76
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
jne 0x1003df76
mov eax, dword [ebp + 8]
push eax
call fcn.10073aa0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
je 0x1003df76
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0x103dd930
call fcn.1003cfa0
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x1003e700
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0x400
mov edx, dword [ebp - 4]
push edx
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x104
push 0
push 0x104ff690
call fcn.1024a480
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
push 0xffffffffffffffff
push 0x104
push 0x104ff690
call fcn.10001170
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
call fcn.10251c1a
add esp, 0x20
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x1003e789
mov dword [ebp - 0x14], 0xffffffff
jmp 0x1003e78f
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 0x104
push 0
push 0x104ff588
call fcn.1024a480
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ecx
push 0x104ff690
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 4]
push eax
push str.Error__d__0x_x_____s:__s
push 0xffffffffffffffff
push 0x104
push 0x104ff588
call fcn.1003e690
add esp, 0x20
cmp dword [0x104f16c0], 0
je 0x1003e7e3
push 0x104ff588
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1003e830
push 0x104
push 0
push 0x104ff480
call fcn.1024a480
add esp, 0xc
push 0x104ff588
push str.CRITICAL:_s
push 0xffffffffffffffff
push 0x104
push 0x104ff480
call fcn.1003e690
add esp, 0x14
push 0x104ff480
call fcn.1024e180
add esp, 4
push eax
push 0x104ff480
call fcn.1007b420
add esp, 8
mov dword [ebp - 0xc], 0
mov esp, ebp
pop ebp
ret
Function at 0x10047000
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov dword [ebp - 8], ecx
xor eax, eax
mov dword [ebp - 0x10], eax
mov word [ebp - 0xc], ax
push 0x208
push 0
lea ecx, [ebp - 0x42c]
push ecx
call fcn.1024a480
add esp, 0xc
mov edx, 2
shl edx, 0
mov eax, 0x3a
mov word [ebp + edx - 0x10], ax
push 3
mov ecx, dword [ebp - 8]
call fcn.10047470
mov byte [ebp - 1], 0x61
jmp 0x10047056
mov cl, byte [ebp - 1]
add cl, 1
mov byte [ebp - 1], cl
movsx edx, byte [ebp - 1]
cmp edx, 0x7a
jg 0x10047113
movsx ax, byte [ebp - 1]
mov ecx, 2
imul edx, ecx, 0
mov word [ebp + edx - 0x10], ax
push 0x104
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jbe 0x1004710e
movsx edx, byte [ebp - 1]
push edx
call fcn.1025b6b4
add esp, 4
mov ecx, 2
imul edx, ecx, 0
mov word [ebp + edx - 0x224], ax
mov eax, 2
shl eax, 0
mov ecx, 0x3a
mov word [ebp + eax - 0x224], cx
mov edx, 2
shl edx, 1
xor eax, eax
mov word [ebp + edx - 0x224], ax
lea ecx, [ebp - 0x42c]
push ecx
call fcn.10251edf
add esp, 4
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x42c]
push edx
push 0x104
lea eax, [ebp - 0x21e]
push eax
call fcn.1025b5db
add esp, 0xc
lea ecx, [ebp - 0x224]
push ecx
mov ecx, dword [ebp - 8]
call fcn.10047510
jmp 0x1004704d
mov ecx, dword [ebp - 8]
call fcn.10047250
mov esp, ebp
pop ebp
ret
Function at 0x1004fe80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x104f3374], 0
je 0x1004fe92
jmp 0x10050027
push 0x1030846c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1004feab
jmp 0x10050027
push 0x10308478
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104f3364], eax
push 0x1030848c
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104f3390], eax
push 0x103084a0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104f3380], eax
push 0x103084b0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104f3398], eax
push 0x103084c0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104f337c], eax
push 0x103084d0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104f33a0], eax
push 0x103084e8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104f338c], eax
push 0x10308504
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104f339c], eax
push 0x10308520
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104f3394], eax
push 0x1030853c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104f3384], eax
push 0x10308554
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104f3388], eax
push 0x10308564
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104f3368], eax
push str.NtSetInformationThread
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104f3370], eax
push str.NtSuspendProcess
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104f336c], eax
push 0x103085a0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104f3378], eax
push str.NtOpenSymbolicLinkObject
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104f3358], eax
push str.NtQuerySymbolicLinkObject
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104f335c], eax
push 0x103085ec
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104f3374], eax
push 0x10308604
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104f3360], eax
mov esp, ebp
pop ebp
ret
Function at 0x10050750
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
movzx eax, byte [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.100516f0
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10248ee6
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x38], eax
mov ecx, dword [ebp - 8]
call fcn.100518b0
movzx ecx, al
test ecx, ecx
je 0x100508c7
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x3c]
push eax
call fcn.10054fc0
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x44], eax
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x38]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100508bf
mov byte [ebp - 1], 1
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
push ecx
mov ecx, dword [ebp - 8]
call fcn.100512f0
mov ecx, dword [ebp - 8]
call fcn.10050510
movzx edx, al
test edx, edx
je 0x100508bf
movzx eax, byte [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.10051670
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x10]
jae 0x100508bf
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x44], 0
jbe 0x1005084a
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x44]
cmp edx, dword [ebp - 0x10]
jae 0x1005084a
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x44]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.10248ee1
add esp, 4
mov edx, dword [ebp - 0xc]
push edx
call fcn.10248ee6
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x38], ecx
push 0
push 0
push 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100508bf
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x38]
push eax
mov ecx, dword [ebp - 8]
call fcn.100512f0
mov ecx, dword [ebp - 8]
call fcn.100519a0
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 4
Function at 0x10052540
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2c]
push ecx
call fcn.10248ee6
add esp, 4
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x28], eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x28]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100525ae
mov dword [ebp - 8], 1
jmp 0x100525b5
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret 8