joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100383a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x100383b0
xor eax, eax
jmp 0x100383f9
cmp dword [0x1065fbe4], 0
jne 0x100383c4
push 0x1065fbe0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x1065fbe4], 0
jne 0x100383de
push str.GetBaseAddress:_Failed_to_obtain_system_page_size._n
call fcn.1003ebe0
add esp, 4
xor eax, eax
jmp 0x100383f9
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10079980
add esp, 8
test eax, eax
jne 0x100383f6
xor eax, eax
jmp 0x100383f9
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret

Function at 0x10038400
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x10038410
xor eax, eax
jmp 0x1003846a
cmp dword [0x1065fbe4], 0
jne 0x10038424
push 0x1065fbe0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x1065fbe4], 0
jne 0x1003843e
push str.GetRegionSize:_Failed_to_obtain_system_page_size._n
call fcn.1003ebe0
add esp, 4
xor eax, eax
jmp 0x1003846a
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10079980
add esp, 8
test eax, eax
jne 0x10038467
mov edx, dword [ebp + 8]
push edx
push str.GetRegionSize:_unable_to_query_memory_address_0x_p
call fcn.1003ebe0
add esp, 8
xor eax, eax
jmp 0x1003846a
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x10038470
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 8], 0
jne 0x10038483
xor eax, eax
jmp 0x10038528
cmp dword [0x1065fbe4], 0
jne 0x10038497
push 0x1065fbe0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x1065fbe4], 0
jne 0x100384b1
push str.GetAllocationSize:_Failed_to_obtain_system_page_size._n
call fcn.1003ebe0
add esp, 4
xor eax, eax
jmp 0x10038528
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10079980
add esp, 8
test eax, eax
jne 0x100384da
mov edx, dword [ebp + 8]
push edx
push str.GetAllocationSize:_unable_to_query_memory_address_0x_p
call fcn.1003ebe0
add esp, 8
xor eax, eax
jmp 0x10038528
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 8]
jne 0x10038522
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.10079980
add esp, 8
test eax, eax
jne 0x10038520
mov eax, dword [ebp - 4]
push eax
push str.GetAllocationSize:_unable_to_query_memory_page_0x_p
call fcn.1003ebe0
add esp, 8
xor eax, eax
jmp 0x10038528
jmp 0x100384e6
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10038530
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x1003853e
jmp 0x1003858f
cmp dword [0x1065fbe4], 0
jne 0x10038552
push 0x1065fbe0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x1065fbe4], 0
jne 0x1003856a
push str.GetMemoryInfo:_Failed_to_obtain_system_page_size._n
call fcn.1003ebe0
add esp, 4
jmp 0x1003858f
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10079980
add esp, 8
test eax, eax
jne 0x1003858f
mov edx, dword [ebp + 8]
push edx
push str.GetMemoryInfo:_unable_to_query_memory_address_0x_p
call fcn.1003ebe0
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x100385a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 8], 0
jne 0x100385b3
xor eax, eax
jmp 0x10038683
cmp dword [0x1065fbe4], 0
jne 0x100385c7
push 0x1065fbe0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x1065fbe4], 0
jne 0x100385e4
push str.GetAccessibleSize:_Failed_to_obtain_system_page_size._n
call fcn.1003ebe0
add esp, 4
xor eax, eax
jmp 0x10038683
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10079980
add esp, 8
test eax, eax
jne 0x1003860d
mov edx, dword [ebp + 8]
push edx
push str.GetAccessibleSize:_unable_to_query_memory_address_0x_p
call fcn.1003ebe0
add esp, 8
xor eax, eax
jmp 0x10038683
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 8]
jne 0x1003867d
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.10079980
add esp, 8
test eax, eax
jne 0x10038659
mov eax, dword [ebp - 4]
add eax, dword [0x1065fbe4]
push eax
push str.GetAccessibleSize:_unable_to_query_memory_page_0x_p
call fcn.1003ebe0
add esp, 8
xor eax, eax
jmp 0x10038683
mov ecx, dword [ebp - 0x10]
and ecx, 0xee
jne 0x10038666
jmp 0x1003867d
mov edx, dword [ebp - 0x10]
and edx, 0x101
je 0x10038673
jmp 0x1003867d
cmp dword [ebp - 0x10], 0
jne 0x1003867b
jmp 0x1003867d
jmp 0x10038619
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10038690
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x100386a3
xor eax, eax
jmp 0x10038726
cmp dword [0x1065fbe4], 0
jne 0x100386b7
push 0x1065fbe0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x1065fbe4], 0
jne 0x100386d1
push str.IsAddressAccessible:_Failed_to_obtain_system_page_size._n
call fcn.1003ebe0
add esp, 4
xor eax, eax
jmp 0x10038726
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10079980
add esp, 8
test eax, eax
jne 0x100386fa
mov edx, dword [ebp + 8]
push edx
push str.IsAddressAccessible:_unable_to_query_memory_address_0x_p
call fcn.1003ebe0
add esp, 8
xor eax, eax
jmp 0x10038726
mov eax, dword [ebp - 8]
and eax, 0xee
jne 0x10038708
xor eax, eax
jmp 0x10038726
mov ecx, dword [ebp - 8]
and ecx, 0x101
je 0x10038717
xor eax, eax
jmp 0x10038726
cmp dword [ebp - 8], 0
jne 0x10038721
xor eax, eax
jmp 0x10038726
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10038870
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0x104
call fcn.10073630
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100388a1
push str.GetResultsPath:_Error_allocating_memory_for_full_path_string
call fcn.1003ebe0
add esp, 4
xor eax, eax
jmp 0x100389a9
push 0x104
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.1024a9c0
add esp, 0xc
mov ecx, 1
imul edx, ecx, 0
movsx eax, byte [edx + 0x104f2168]
test eax, eax
je 0x100388f0
push 0x104f2168
call fcn.1024e6c0
add esp, 4
add eax, 1
push eax
push 0x104f2168
push 0x104
mov ecx, dword [ebp - 4]
push ecx
call fcn.1025a0f3
add esp, 0x10
jmp 0x10038908
push 0xc
push str.C:_windows_
push 0x104
mov edx, dword [ebp - 4]
push edx
call fcn.1025a0f3
add esp, 0x10
cmp dword [ebp + 8], 0
je 0x100389a6
mov eax, dword [ebp - 4]
push eax
call fcn.1024e6c0
add esp, 4
mov esi, eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1024e6c0
add esp, 4
lea edx, [esi + eax + 1]
cmp edx, 0x104
jb 0x10038955
push str.GetResultsPath:_Error__destination_path_too_long._n
call fcn.1003d460
add esp, 4
mov eax, dword [ebp - 4]
push eax
call fcn.10073740
add esp, 4
xor eax, eax
jmp 0x100389a9
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100389a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100389a6
mov ecx, dword [ebp - 4]
push ecx
push str.GetResultsPath:_Error_creating_output_directory__s
call fcn.1003ebe0
add esp, 8
mov edx, dword [ebp - 4]
push edx
call fcn.10073740
add esp, 4
xor eax, eax
jmp 0x100389a9
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10039080
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x1003909a
push str.GetPageAddress:_Error___Supplied_address_zero._n
call fcn.1003d460
add esp, 4
xor eax, eax
jmp 0x100390da
cmp dword [0x1065fbe4], 0
jne 0x100390ae
push 0x1065fbe0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x1065fbe4], 0
jne 0x100390c8
push str.GetPageAddress:_Failed_to_obtain_system_page_size._n
call fcn.1003ebe0
add esp, 4
xor eax, eax
jmp 0x100390da
mov eax, dword [ebp + 8]
xor edx, edx
div dword [0x1065fbe4]
imul eax, dword [0x1065fbe4]
pop ebp
ret
Function at 0x10039270
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1038bef8
push 0x10272d90
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 0x100392d0
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x18]
cmp eax, 0x20b
je 0x100392d0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
jmp 0x1003944a
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 6]
test edx, edx
je 0x100392ea
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 6]
cmp ecx, 0xffff
jle 0x10039300
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
jmp 0x1003944a
mov edx, dword [ebp + 8]
cmp dword [edx + 0x50], 0
je 0x10039315
mov eax, dword [ebp + 8]
cmp dword [eax + 0x50], 0x77000000
jbe 0x1003932b
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
jmp 0x1003944a
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 0x1003934e
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 0x10039365
mov edx, dword [ebp - 0x1c]
add edx, 0x28
mov dword [ebp - 0x1c], edx
jmp 0x10039345
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 0
jne 0x1003938d
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0xc], 0
jne 0x1003938d
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
jmp 0x1003944a
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x14], 0
je 0x100393a7
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 0x100393bf
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0xc], 0
je 0x100393bf
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 0x100393d0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
cmp edx, dword [ecx + 0x50]
jbe 0x100393fb
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.1003d460
add esp, 0xc
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
jmp 0x1003944a
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
jmp 0x1003944a
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10039530
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0xc], 0
jne 0x10039550
push str.ScanForDisguisedPE:_Error__zero_size_given_n
call fcn.1003d460
add esp, 4
xor eax, eax
jmp 0x1003967c
cmp dword [0x1065fbe4], 0
jne 0x10039564
push 0x1065fbe0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x1065fbe4], 0
jne 0x10039581
push str.ScanForDisguisedPE:_Failed_to_obtain_system_page_size._n
call fcn.1003ebe0
add esp, 4
xor eax, eax
jmp 0x1003967c
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x1065fbe4]
ja 0x100395a0
push str.ScanForDisguisedPE:_Size_too_small._n
call fcn.1003d460
add esp, 4
xor eax, eax
jmp 0x1003967c
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10038d70
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 8]
jbe 0x100395c8
mov ecx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 4], 0
jmp 0x100395da
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
sub eax, dword [0x1065fbe4]
cmp dword [ebp - 4], eax
jae 0x10039662
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
push ecx
call fcn.10039460
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10039604
jmp 0x100395d1
cmp dword [ebp - 0xc], 0xffffffff
jne 0x10039631
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.1003d460
add esp, 8
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
push eax
call fcn.10038530
add esp, 4
xor eax, eax
jmp 0x1003967c
cmp dword [ebp + 0x10], 0
je 0x10039642
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.1003d460
add esp, 8
mov eax, 1
jmp 0x1003967c
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.1003d460
add esp, 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100398f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1038bf38
push 0x10272d90
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.10073630
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10039956
mov ecx, dword [ebp + 0xc]
push ecx
push str.DumpMemory:_Failed_to_allocate_0x_x_bytes_for_buffer_copy._n
call fcn.1003d460
add esp, 8
jmp 0x10039a3a
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.1024ad90
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
jmp 0x100399a7
call fcn.100389b0
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 0x10039a01
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x100399f2
mov ecx, dword [ebp - 0x1c]
push ecx
push str.DumpMemory:_Payload_name_exists_already:__s
call fcn.1003d460
add esp, 8
jmp 0x100399ff
push str.DumpMemory:_Could_not_create_Payload
call fcn.1003ebe0
add esp, 4
jmp 0x10039a3a
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 0x10039a33
push str.DumpMemory:_WriteFile_error_on_Payload
call fcn.1003ebe0
add esp, 4
jmp 0x10039a3a
mov dword [ebp - 0x28], 1
cmp dword [ebp - 0x20], 0
je 0x10039a4c
mov eax, dword [ebp - 0x20]
push eax
call fcn.10073740
add esp, 4
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], 0
je 0x10039a95
mov edx, dword [0x1065fbd8]
mov eax, dword [ebp + 8]
mov dword [edx + 0x1c], eax
mov ecx, dword [0x1065fbd8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x20], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.1003ed30
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.1003d460
add esp, 0xc
cmp dword [ebp - 0x1c], 0
je 0x10039aa7
mov eax, dword [ebp - 0x1c]
push eax
call fcn.10073740
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 0x1003a220
Capabilities:
Accept command line arguments
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1065fc38], 0
jne 0x1003a234
jmp 0x1003a43f
mov eax, 0x2c
shl eax, 0
push eax
call fcn.10073630
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1003a265
mov ecx, 0x2c
shl ecx, 0
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.1024a9c0
add esp, 0xc
mov eax, dword [ebp - 8]
mov dword [0x1065fbd8], eax
cmp dword [0x1065fbd8], 0
jne 0x1003a27b
jmp 0x1003a43f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [0x1065fbd8]
mov dword [ecx + 8], eax
call fcn.10075df0
mov edx, dword [0x1065fbd8]
mov dword [edx + 0xc], eax
push 0x104
call fcn.10073630
add esp, 4
mov ecx, dword [0x1065fbd8]
mov dword [ecx], eax
push 0
push 0
push 0x104
mov edx, dword [0x1065fbd8]
mov eax, dword [edx]
push eax
mov ecx, dword [0x1065fc38]
push ecx
call fcn.1025241f
add esp, 4
add eax, 1
push eax
mov edx, dword [0x1065fc38]
push edx
push 0x400
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [0x1065fbd8]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, 0x104f1a38
test edx, edx
je 0x1003a305
mov eax, dword [0x1065fbd8]
mov dword [eax + 0x24], 0x104f1a38
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x1003a336
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0xa
jl 0x1003a325
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0x7e
jle 0x1003a32b
mov ecx, dword [ebp - 4]
mov byte [ecx], 0x3f
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x1003a305
mov dword [0x1065fc10], 0
mov dword [0x104ff680], 0
cmp dword [0x1065c9a4], 0
je 0x1003a35f
mov eax, dword [0x1065c9a4]
mov dword [0x1065fb3c], eax
jmp 0x1003a36c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x1065fb3c], eax
cmp dword [0x104f18b0], 0
je 0x1003a387
push str.Initialising_Yara..._n
call fcn.1003d460
add esp, 4
call fcn.100624d0
mov dword [0x1065fb40], 0x94
push 0x1065fb40
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1003a3b2
push str.TSMAM_init:_Failed_to_get_OS_version
call fcn.1003ebe0
add esp, 4
jmp 0x1003a43f
cmp dword [0x104f18b4], 0
je 0x1003a3e5
cmp dword [0x1065fb44], 6
jne 0x1003a3cd
cmp dword [0x1065fb48], 1
ja 0x1003a3d6
cmp dword [0x1065fb44], 6
jbe 0x1003a3e5
mov ecx, dword [0x1065cb04]
push ecx
call fcn.10036cc0
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 [0x1065fb3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, dword [0x1065cb04]
push ecx
mov edx, dword [0x1065fbd8]
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.1003d460
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push str.Commandline:__s_n
call fcn.1003d460
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x1003e2c0
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 0x1003e2e0
jmp 0x1003e456
mov eax, dword [ebp + 0xc]
push eax
call fcn.1003d550
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1003e416
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1003d5d0
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.1003d460
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x1003e335
push str.OpenProcessHandler:_Error___cannot_create_new_injection_info._n
call fcn.1003d460
add esp, 4
jmp 0x1003e414
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.10073630
add esp, 4
mov ecx, dword [0x1065fbd8]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp + 8]
push edx
call fcn.10073ff0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
je 0x1003e39e
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.1003d460
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 0x1003e3e6
push str.OpenProcessHandler:_Handle_insufficient_to_obtain_target_process_name._n
call fcn.1003d460
add esp, 4
push str.Unable_to_obtain_target_process_name
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [0x1065fbd8]
mov eax, dword [edx + 0x14]
push eax
call fcn.1003d4e0
add esp, 0xc
jmp 0x1003e414
lea ecx, [ebp - 8]
push ecx
mov edx, dword [0x1065fbd8]
mov eax, dword [edx + 0x14]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.100381a0
add esp, 0xc
test eax, eax
jne 0x1003e414
push str.OpenProcessHandler:_Error_translating_target_process_path
call fcn.1003ebe0
add esp, 4
jmp 0x1003e456
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
jne 0x1003e456
mov eax, dword [ebp + 8]
push eax
call fcn.10073ff0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
je 0x1003e456
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 0x103ddb00
call fcn.1003d460
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x1003ebe0
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 0x104ff898
call fcn.1024a9c0
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 0x104ff898
call fcn.10001170
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
call fcn.1025215a
add esp, 0x20
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x1003ec69
mov dword [ebp - 0x14], 0xffffffff
jmp 0x1003ec6f
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 0x104
push 0
push 0x104ff790
call fcn.1024a9c0
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ecx
push 0x104ff898
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 0x104ff790
call fcn.1003eb70
add esp, 0x20
cmp dword [0x104f1884], 0
je 0x1003ecc3
push 0x104ff790
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1003ed10
push 0x104
push 0
push 0x104ff688
call fcn.1024a9c0
add esp, 0xc
push 0x104ff790
push str.CRITICAL:_s
push 0xffffffffffffffff
push 0x104
push 0x104ff688
call fcn.1003eb70
add esp, 0x14
push 0x104ff688
call fcn.1024e6c0
add esp, 4
push eax
push 0x104ff688
call fcn.1007b970
add esp, 8
mov dword [ebp - 0xc], 0
mov esp, ebp
pop ebp
ret