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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x10037f20
xor eax, eax
jmp 0x10037f69
cmp dword [0x1065fa04], 0
jne 0x10037f34
push 0x1065fa00
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x1065fa04], 0
jne 0x10037f4e
push str.GetBaseAddress:_Failed_to_obtain_system_page_size._n
call fcn.1003e760
add esp, 4
xor eax, eax
jmp 0x10037f69
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100794f0
add esp, 8
test eax, eax
jne 0x10037f66
xor eax, eax
jmp 0x10037f69
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret

Function at 0x10037f70
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x10037f80
xor eax, eax
jmp 0x10037fda
cmp dword [0x1065fa04], 0
jne 0x10037f94
push 0x1065fa00
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x1065fa04], 0
jne 0x10037fae
push str.GetRegionSize:_Failed_to_obtain_system_page_size._n
call fcn.1003e760
add esp, 4
xor eax, eax
jmp 0x10037fda
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100794f0
add esp, 8
test eax, eax
jne 0x10037fd7
mov edx, dword [ebp + 8]
push edx
push str.GetRegionSize:_unable_to_query_memory_address_0x_p
call fcn.1003e760
add esp, 8
xor eax, eax
jmp 0x10037fda
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x10037ff0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 8], 0
jne 0x10038003
xor eax, eax
jmp 0x100380a8
cmp dword [0x1065fa04], 0
jne 0x10038017
push 0x1065fa00
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x1065fa04], 0
jne 0x10038031
push str.GetAllocationSize:_Failed_to_obtain_system_page_size._n
call fcn.1003e760
add esp, 4
xor eax, eax
jmp 0x100380a8
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100794f0
add esp, 8
test eax, eax
jne 0x1003805a
mov edx, dword [ebp + 8]
push edx
push str.GetAllocationSize:_unable_to_query_memory_address_0x_p
call fcn.1003e760
add esp, 8
xor eax, eax
jmp 0x100380a8
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 0x100380a2
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.100794f0
add esp, 8
test eax, eax
jne 0x100380a0
mov eax, dword [ebp - 4]
push eax
push str.GetAllocationSize:_unable_to_query_memory_page_0x_p
call fcn.1003e760
add esp, 8
xor eax, eax
jmp 0x100380a8
jmp 0x10038066
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x100380b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x100380be
jmp 0x1003810f
cmp dword [0x1065fa04], 0
jne 0x100380d2
push 0x1065fa00
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x1065fa04], 0
jne 0x100380ea
push str.GetMemoryInfo:_Failed_to_obtain_system_page_size._n
call fcn.1003e760
add esp, 4
jmp 0x1003810f
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100794f0
add esp, 8
test eax, eax
jne 0x1003810f
mov edx, dword [ebp + 8]
push edx
push str.GetMemoryInfo:_unable_to_query_memory_address_0x_p
call fcn.1003e760
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x10038120
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 8], 0
jne 0x10038133
xor eax, eax
jmp 0x10038203
cmp dword [0x1065fa04], 0
jne 0x10038147
push 0x1065fa00
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x1065fa04], 0
jne 0x10038164
push str.GetAccessibleSize:_Failed_to_obtain_system_page_size._n
call fcn.1003e760
add esp, 4
xor eax, eax
jmp 0x10038203
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100794f0
add esp, 8
test eax, eax
jne 0x1003818d
mov edx, dword [ebp + 8]
push edx
push str.GetAccessibleSize:_unable_to_query_memory_address_0x_p
call fcn.1003e760
add esp, 8
xor eax, eax
jmp 0x10038203
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 0x100381fd
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.100794f0
add esp, 8
test eax, eax
jne 0x100381d9
mov eax, dword [ebp - 4]
add eax, dword [0x1065fa04]
push eax
push str.GetAccessibleSize:_unable_to_query_memory_page_0x_p
call fcn.1003e760
add esp, 8
xor eax, eax
jmp 0x10038203
mov ecx, dword [ebp - 0x10]
and ecx, 0xee
jne 0x100381e6
jmp 0x100381fd
mov edx, dword [ebp - 0x10]
and edx, 0x101
je 0x100381f3
jmp 0x100381fd
cmp dword [ebp - 0x10], 0
jne 0x100381fb
jmp 0x100381fd
jmp 0x10038199
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10038210
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x10038223
xor eax, eax
jmp 0x100382a6
cmp dword [0x1065fa04], 0
jne 0x10038237
push 0x1065fa00
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x1065fa04], 0
jne 0x10038251
push str.IsAddressAccessible:_Failed_to_obtain_system_page_size._n
call fcn.1003e760
add esp, 4
xor eax, eax
jmp 0x100382a6
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100794f0
add esp, 8
test eax, eax
jne 0x1003827a
mov edx, dword [ebp + 8]
push edx
push str.IsAddressAccessible:_unable_to_query_memory_address_0x_p
call fcn.1003e760
add esp, 8
xor eax, eax
jmp 0x100382a6
mov eax, dword [ebp - 8]
and eax, 0xee
jne 0x10038288
xor eax, eax
jmp 0x100382a6
mov ecx, dword [ebp - 8]
and ecx, 0x101
je 0x10038297
xor eax, eax
jmp 0x100382a6
cmp dword [ebp - 8], 0
jne 0x100382a1
xor eax, eax
jmp 0x100382a6
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x100383f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0x104
call fcn.100731a0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10038421
push str.GetResultsPath:_Error_allocating_memory_for_full_path_string
call fcn.1003e760
add esp, 4
xor eax, eax
jmp 0x10038529
push 0x104
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.1024a480
add esp, 0xc
mov ecx, 1
imul edx, ecx, 0
movsx eax, byte [edx + 0x104f1fc4]
test eax, eax
je 0x10038470
push 0x104f1fc4
call fcn.1024e180
add esp, 4
add eax, 1
push eax
push 0x104f1fc4
push 0x104
mov ecx, dword [ebp - 4]
push ecx
call fcn.10259d1b
add esp, 0x10
jmp 0x10038488
push 0xc
push str.C:_windows_
push 0x104
mov edx, dword [ebp - 4]
push edx
call fcn.10259d1b
add esp, 0x10
cmp dword [ebp + 8], 0
je 0x10038526
mov eax, dword [ebp - 4]
push eax
call fcn.1024e180
add esp, 4
mov esi, eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1024e180
add esp, 4
lea edx, [esi + eax + 1]
cmp edx, 0x104
jb 0x100384d5
push str.GetResultsPath:_Error__destination_path_too_long._n
call fcn.1003cfe0
add esp, 4
mov eax, dword [ebp - 4]
push eax
call fcn.100732b0
add esp, 4
xor eax, eax
jmp 0x10038529
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 0x10038526
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10038526
mov ecx, dword [ebp - 4]
push ecx
push str.GetResultsPath:_Error_creating_output_directory__s
call fcn.1003e760
add esp, 8
mov edx, dword [ebp - 4]
push edx
call fcn.100732b0
add esp, 4
xor eax, eax
jmp 0x10038529
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10038c00
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x10038c1a
push str.GetPageAddress:_Error___Supplied_address_zero._n
call fcn.1003cfe0
add esp, 4
xor eax, eax
jmp 0x10038c5a
cmp dword [0x1065fa04], 0
jne 0x10038c2e
push 0x1065fa00
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x1065fa04], 0
jne 0x10038c48
push str.GetPageAddress:_Failed_to_obtain_system_page_size._n
call fcn.1003e760
add esp, 4
xor eax, eax
jmp 0x10038c5a
mov eax, dword [ebp + 8]
xor edx, edx
div dword [0x1065fa04]
imul eax, dword [0x1065fa04]
pop ebp
ret
Function at 0x10038df0
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 0x10038e50
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x18]
cmp eax, 0x20b
je 0x10038e50
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
jmp 0x10038fca
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 6]
test edx, edx
je 0x10038e6a
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 6]
cmp ecx, 0xffff
jle 0x10038e80
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
jmp 0x10038fca
mov edx, dword [ebp + 8]
cmp dword [edx + 0x50], 0
je 0x10038e95
mov eax, dword [ebp + 8]
cmp dword [eax + 0x50], 0x77000000
jbe 0x10038eab
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
jmp 0x10038fca
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 0x10038ece
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 0x10038ee5
mov edx, dword [ebp - 0x1c]
add edx, 0x28
mov dword [ebp - 0x1c], edx
jmp 0x10038ec5
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 0
jne 0x10038f0d
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0xc], 0
jne 0x10038f0d
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
jmp 0x10038fca
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x14], 0
je 0x10038f27
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 0x10038f3f
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0xc], 0
je 0x10038f3f
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 0x10038f50
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
cmp edx, dword [ecx + 0x50]
jbe 0x10038f7b
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.1003cfe0
add esp, 0xc
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
jmp 0x10038fca
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
jmp 0x10038fca
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100390b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0xc], 0
jne 0x100390d0
push str.ScanForDisguisedPE:_Error__zero_size_given_n
call fcn.1003cfe0
add esp, 4
xor eax, eax
jmp 0x100391fc
cmp dword [0x1065fa04], 0
jne 0x100390e4
push 0x1065fa00
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x1065fa04], 0
jne 0x10039101
push str.ScanForDisguisedPE:_Failed_to_obtain_system_page_size._n
call fcn.1003e760
add esp, 4
xor eax, eax
jmp 0x100391fc
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x1065fa04]
ja 0x10039120
push str.ScanForDisguisedPE:_Size_too_small._n
call fcn.1003cfe0
add esp, 4
xor eax, eax
jmp 0x100391fc
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100388f0
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 8]
jbe 0x10039148
mov ecx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 4], 0
jmp 0x1003915a
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
sub eax, dword [0x1065fa04]
cmp dword [ebp - 4], eax
jae 0x100391e2
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
push ecx
call fcn.10038fe0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10039184
jmp 0x10039151
cmp dword [ebp - 0xc], 0xffffffff
jne 0x100391b1
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.1003cfe0
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 0x100391fc
cmp dword [ebp + 0x10], 0
je 0x100391c2
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.1003cfe0
add esp, 8
mov eax, 1
jmp 0x100391fc
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.1003cfe0
add esp, 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10039470
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.100731a0
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x100394d6
mov ecx, dword [ebp + 0xc]
push ecx
push str.DumpMemory:_Failed_to_allocate_0x_x_bytes_for_buffer_copy._n
call fcn.1003cfe0
add esp, 8
jmp 0x100395ba
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 0x10039527
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 0x10039581
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x10039572
mov ecx, dword [ebp - 0x1c]
push ecx
push str.DumpMemory:_Payload_name_exists_already:__s
call fcn.1003cfe0
add esp, 8
jmp 0x1003957f
push str.DumpMemory:_Could_not_create_Payload
call fcn.1003e760
add esp, 4
jmp 0x100395ba
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 0x100395b3
push str.DumpMemory:_WriteFile_error_on_Payload
call fcn.1003e760
add esp, 4
jmp 0x100395ba
mov dword [ebp - 0x28], 1
cmp dword [ebp - 0x20], 0
je 0x100395cc
mov eax, dword [ebp - 0x20]
push eax
call fcn.100732b0
add esp, 4
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], 0
je 0x10039615
mov edx, dword [0x1065f9f8]
mov eax, dword [ebp + 8]
mov dword [edx + 0x1c], eax
mov ecx, dword [0x1065f9f8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x20], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.1003e8a0
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.1003cfe0
add esp, 0xc
cmp dword [ebp - 0x1c], 0
je 0x10039627
mov eax, dword [ebp - 0x1c]
push eax
call fcn.100732b0
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 0x10039da0
Capabilities:
Accept command line arguments
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1065fa58], 0
jne 0x10039db4
jmp 0x10039fbf
mov eax, 0x2c
shl eax, 0
push eax
call fcn.100731a0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10039de5
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 [0x1065f9f8], eax
cmp dword [0x1065f9f8], 0
jne 0x10039dfb
jmp 0x10039fbf
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [0x1065f9f8]
mov dword [ecx + 8], eax
call fcn.10075960
mov edx, dword [0x1065f9f8]
mov dword [edx + 0xc], eax
push 0x104
call fcn.100731a0
add esp, 4
mov ecx, dword [0x1065f9f8]
mov dword [ecx], eax
push 0
push 0
push 0x104
mov edx, dword [0x1065f9f8]
mov eax, dword [edx]
push eax
mov ecx, dword [0x1065fa58]
push ecx
call fcn.10251edf
add esp, 4
add eax, 1
push eax
mov edx, dword [0x1065fa58]
push edx
push 0x400
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [0x1065f9f8]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, 0x104f1894
test edx, edx
je 0x10039e85
mov eax, dword [0x1065f9f8]
mov dword [eax + 0x24], 0x104f1894
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x10039eb6
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0xa
jl 0x10039ea5
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0x7e
jle 0x10039eab
mov ecx, dword [ebp - 4]
mov byte [ecx], 0x3f
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x10039e85
mov dword [0x1065fa30], 0
mov dword [0x104ff49c], 0
cmp dword [0x1065c7c4], 0
je 0x10039edf
mov eax, dword [0x1065c7c4]
mov dword [0x1065f95c], eax
jmp 0x10039eec
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x1065f95c], eax
cmp dword [0x104f170c], 0
je 0x10039f07
push str.Initialising_Yara..._n
call fcn.1003cfe0
add esp, 4
call fcn.10062010
mov dword [0x1065f960], 0x94
push 0x1065f960
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10039f32
push str.TSMAM_init:_Failed_to_get_OS_version
call fcn.1003e760
add esp, 4
jmp 0x10039fbf
cmp dword [0x104f1710], 0
je 0x10039f65
cmp dword [0x1065f964], 6
jne 0x10039f4d
cmp dword [0x1065f968], 1
ja 0x10039f56
cmp dword [0x1065f964], 6
jbe 0x10039f65
mov ecx, dword [0x1065c924]
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 [0x1065f95c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, dword [0x1065c924]
push ecx
mov edx, dword [0x1065f9f8]
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.1003cfe0
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push str.Commandline:__s_n
call fcn.1003cfe0
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x1003de40
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 0x1003de60
jmp 0x1003dfd6
mov eax, dword [ebp + 0xc]
push eax
call fcn.1003d0d0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1003df96
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1003d150
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.1003cfe0
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x1003deb5
push str.OpenProcessHandler:_Error___cannot_create_new_injection_info._n
call fcn.1003cfe0
add esp, 4
jmp 0x1003df94
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.100731a0
add esp, 4
mov ecx, dword [0x1065f9f8]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp + 8]
push edx
call fcn.10073b60
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
je 0x1003df1e
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.1003cfe0
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 0x1003df66
push str.OpenProcessHandler:_Handle_insufficient_to_obtain_target_process_name._n
call fcn.1003cfe0
add esp, 4
push str.Unable_to_obtain_target_process_name
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [0x1065f9f8]
mov eax, dword [edx + 0x14]
push eax
call fcn.1003d060
add esp, 0xc
jmp 0x1003df94
lea ecx, [ebp - 8]
push ecx
mov edx, dword [0x1065f9f8]
mov eax, dword [edx + 0x14]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.10037d10
add esp, 0xc
test eax, eax
jne 0x1003df94
push str.OpenProcessHandler:_Error_translating_target_process_path
call fcn.1003e760
add esp, 4
jmp 0x1003dfd6
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
jne 0x1003dfd6
mov eax, dword [ebp + 8]
push eax
call fcn.10073b60
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
je 0x1003dfd6
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 0x103dd978
call fcn.1003cfe0
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x1003e760
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 0x104ff6b0
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 0x104ff6b0
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 0x1003e7e9
mov dword [ebp - 0x14], 0xffffffff
jmp 0x1003e7ef
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 0x104
push 0
push 0x104ff5a8
call fcn.1024a480
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ecx
push 0x104ff6b0
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 0x104ff5a8
call fcn.1003e6f0
add esp, 0x20
cmp dword [0x104f16e0], 0
je 0x1003e843
push 0x104ff5a8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1003e890
push 0x104
push 0
push 0x104ff4a0
call fcn.1024a480
add esp, 0xc
push 0x104ff5a8
push str.CRITICAL:_s
push 0xffffffffffffffff
push 0x104
push 0x104ff4a0
call fcn.1003e6f0
add esp, 0x14
push 0x104ff4a0
call fcn.1024e180
add esp, 4
push eax
push 0x104ff4a0
call fcn.1007b4e0
add esp, 8
mov dword [ebp - 0xc], 0
mov esp, ebp
pop ebp
ret