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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0x620], 0
cmp dword [ebp + 0xc], 0
je 0x10038c4a
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0x104
jae 0x10038c5a
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x104
xor eax, eax
jmp 0x10038db9
lea ecx, [ebp - 0x620]
push ecx
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x10038da3
mov dx, word [0x103dc318]
mov word [ebp - 4], dx
mov al, byte [0x103dc31a]
mov byte [ebp - 2], al
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x620]
mov dword [ebp - 8], ecx
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 8]
mov dl, byte [ecx]
mov byte [ebp + eax - 4], dl
push 0x104
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x10038d73
lea edx, [ebp - 0x11c]
push edx
call fcn.1024f510
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x104
jae 0x10038d73
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x11c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1025b023
add esp, 0xc
test eax, eax
jne 0x10038d09
mov dword [ebp - 0x14], 1
jmp 0x10038d10
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10038d73
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
cmp edx, 0x5c
jne 0x10038d73
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x103dc310
push 0x104
lea edx, [ebp - 0x220]
push edx
call fcn.100388a0
add esp, 0x14
lea eax, [ebp - 0x220]
push eax
call fcn.1024f510
add esp, 4
push eax
lea ecx, [ebp - 0x220]
push ecx
push 0x104
mov edx, dword [ebp + 0xc]
push edx
call fcn.10038820
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 0x18], 0
je 0x10038d8d
jmp 0x10038d73
cmp dword [ebp - 0x10], 0
jne 0x10038da1
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x10038c97
jmp 0x10038db4
push str.TranslatePathFromDeviceToLetter:_GetLogicalDriveStrings_failed
call fcn.1003f670
add esp, 4
xor eax, eax
jmp 0x10038db9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10038dc0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x10038dd0
xor eax, eax
jmp 0x10038e19
cmp dword [0x10661944], 0
jne 0x10038de4
push 0x10661940
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x10661944], 0
jne 0x10038dfe
push str.GetAllocationBase:_Failed_to_obtain_system_page_size._n
call fcn.1003f670
add esp, 4
xor eax, eax
jmp 0x10038e19
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1007a7a0
add esp, 8
test eax, eax
jne 0x10038e16
xor eax, eax
jmp 0x10038e19
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x10038e20
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x10038e30
xor eax, eax
jmp 0x10038e79
cmp dword [0x10661944], 0
jne 0x10038e44
push 0x10661940
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x10661944], 0
jne 0x10038e5e
push str.GetBaseAddress:_Failed_to_obtain_system_page_size._n
call fcn.1003f670
add esp, 4
xor eax, eax
jmp 0x10038e79
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1007a7a0
add esp, 8
test eax, eax
jne 0x10038e76
xor eax, eax
jmp 0x10038e79
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret

Function at 0x10038e80
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x10038e90
xor eax, eax
jmp 0x10038eea
cmp dword [0x10661944], 0
jne 0x10038ea4
push 0x10661940
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x10661944], 0
jne 0x10038ebe
push str.GetRegionSize:_Failed_to_obtain_system_page_size._n
call fcn.1003f670
add esp, 4
xor eax, eax
jmp 0x10038eea
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1007a7a0
add esp, 8
test eax, eax
jne 0x10038ee7
mov edx, dword [ebp + 8]
push edx
push str.GetRegionSize:_unable_to_query_memory_address_0x_p
call fcn.1003f670
add esp, 8
xor eax, eax
jmp 0x10038eea
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x10038ef0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 8], 0
jne 0x10038f03
xor eax, eax
jmp 0x10038fa8
cmp dword [0x10661944], 0
jne 0x10038f17
push 0x10661940
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x10661944], 0
jne 0x10038f31
push str.GetAllocationSize:_Failed_to_obtain_system_page_size._n
call fcn.1003f670
add esp, 4
xor eax, eax
jmp 0x10038fa8
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1007a7a0
add esp, 8
test eax, eax
jne 0x10038f5a
mov edx, dword [ebp + 8]
push edx
push str.GetAllocationSize:_unable_to_query_memory_address_0x_p
call fcn.1003f670
add esp, 8
xor eax, eax
jmp 0x10038fa8
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 0x10038fa2
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.1007a7a0
add esp, 8
test eax, eax
jne 0x10038fa0
mov eax, dword [ebp - 4]
push eax
push str.GetAllocationSize:_unable_to_query_memory_page_0x_p
call fcn.1003f670
add esp, 8
xor eax, eax
jmp 0x10038fa8
jmp 0x10038f66
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10038fb0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x10038fbe
jmp 0x1003900f
cmp dword [0x10661944], 0
jne 0x10038fd2
push 0x10661940
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x10661944], 0
jne 0x10038fea
push str.GetMemoryInfo:_Failed_to_obtain_system_page_size._n
call fcn.1003f670
add esp, 4
jmp 0x1003900f
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1007a7a0
add esp, 8
test eax, eax
jne 0x1003900f
mov edx, dword [ebp + 8]
push edx
push str.GetMemoryInfo:_unable_to_query_memory_address_0x_p
call fcn.1003f670
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x10039020
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 8], 0
jne 0x10039033
xor eax, eax
jmp 0x10039103
cmp dword [0x10661944], 0
jne 0x10039047
push 0x10661940
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x10661944], 0
jne 0x10039064
push str.GetAccessibleSize:_Failed_to_obtain_system_page_size._n
call fcn.1003f670
add esp, 4
xor eax, eax
jmp 0x10039103
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1007a7a0
add esp, 8
test eax, eax
jne 0x1003908d
mov edx, dword [ebp + 8]
push edx
push str.GetAccessibleSize:_unable_to_query_memory_address_0x_p
call fcn.1003f670
add esp, 8
xor eax, eax
jmp 0x10039103
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 0x100390fd
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.1007a7a0
add esp, 8
test eax, eax
jne 0x100390d9
mov eax, dword [ebp - 4]
add eax, dword [0x10661944]
push eax
push str.GetAccessibleSize:_unable_to_query_memory_page_0x_p
call fcn.1003f670
add esp, 8
xor eax, eax
jmp 0x10039103
mov ecx, dword [ebp - 0x10]
and ecx, 0xee
jne 0x100390e6
jmp 0x100390fd
mov edx, dword [ebp - 0x10]
and edx, 0x101
je 0x100390f3
jmp 0x100390fd
cmp dword [ebp - 0x10], 0
jne 0x100390fb
jmp 0x100390fd
jmp 0x10039099
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10039110
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x10039123
xor eax, eax
jmp 0x100391a6
cmp dword [0x10661944], 0
jne 0x10039137
push 0x10661940
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x10661944], 0
jne 0x10039151
push str.IsAddressAccessible:_Failed_to_obtain_system_page_size._n
call fcn.1003f670
add esp, 4
xor eax, eax
jmp 0x100391a6
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1007a7a0
add esp, 8
test eax, eax
jne 0x1003917a
mov edx, dword [ebp + 8]
push edx
push str.IsAddressAccessible:_unable_to_query_memory_address_0x_p
call fcn.1003f670
add esp, 8
xor eax, eax
jmp 0x100391a6
mov eax, dword [ebp - 8]
and eax, 0xee
jne 0x10039188
xor eax, eax
jmp 0x100391a6
mov ecx, dword [ebp - 8]
and ecx, 0x101
je 0x10039197
xor eax, eax
jmp 0x100391a6
cmp dword [ebp - 8], 0
jne 0x100391a1
xor eax, eax
jmp 0x100391a6
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x100392f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0x104
call fcn.10074450
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10039321
push str.GetResultsPath:_Error_allocating_memory_for_full_path_string
call fcn.1003f670
add esp, 4
xor eax, eax
jmp 0x10039429
push 0x104
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.1024b810
add esp, 0xc
mov ecx, 1
imul edx, ecx, 0
movsx eax, byte [edx + 0x104f3ac8]
test eax, eax
je 0x10039370
push 0x104f3ac8
call fcn.1024f510
add esp, 4
add eax, 1
push eax
push 0x104f3ac8
push 0x104
mov ecx, dword [ebp - 4]
push ecx
call fcn.1025365f
add esp, 0x10
jmp 0x10039388
push 0xc
push str.C:_windows_
push 0x104
mov edx, dword [ebp - 4]
push edx
call fcn.1025365f
add esp, 0x10
cmp dword [ebp + 8], 0
je 0x10039426
mov eax, dword [ebp - 4]
push eax
call fcn.1024f510
add esp, 4
mov esi, eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1024f510
add esp, 4
lea edx, [esi + eax + 1]
cmp edx, 0x104
jb 0x100393d5
push str.GetResultsPath:_Error__destination_path_too_long._n
call fcn.1003def0
add esp, 4
mov eax, dword [ebp - 4]
push eax
call fcn.10074560
add esp, 4
xor eax, eax
jmp 0x10039429
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 0x10039426
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10039426
mov ecx, dword [ebp - 4]
push ecx
push str.GetResultsPath:_Error_creating_output_directory__s
call fcn.1003f670
add esp, 8
mov edx, dword [ebp - 4]
push edx
call fcn.10074560
add esp, 4
xor eax, eax
jmp 0x10039429
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10039b00
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x10039b1a
push str.GetPageAddress:_Error___Supplied_address_zero._n
call fcn.1003def0
add esp, 4
xor eax, eax
jmp 0x10039b5a
cmp dword [0x10661944], 0
jne 0x10039b2e
push 0x10661940
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x10661944], 0
jne 0x10039b48
push str.GetPageAddress:_Failed_to_obtain_system_page_size._n
call fcn.1003f670
add esp, 4
xor eax, eax
jmp 0x10039b5a
mov eax, dword [ebp + 8]
xor edx, edx
div dword [0x10661944]
imul eax, dword [0x10661944]
pop ebp
ret
Function at 0x10039cf0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1038cfb8
push 0x10273bd0
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 0x10039d50
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x18]
cmp eax, 0x20b
je 0x10039d50
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
jmp 0x10039eca
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 6]
test edx, edx
je 0x10039d6a
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 6]
cmp ecx, 0xffff
jle 0x10039d80
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
jmp 0x10039eca
mov edx, dword [ebp + 8]
cmp dword [edx + 0x50], 0
je 0x10039d95
mov eax, dword [ebp + 8]
cmp dword [eax + 0x50], 0x77000000
jbe 0x10039dab
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
jmp 0x10039eca
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 0x10039dce
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 0x10039de5
mov edx, dword [ebp - 0x1c]
add edx, 0x28
mov dword [ebp - 0x1c], edx
jmp 0x10039dc5
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 0
jne 0x10039e0d
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0xc], 0
jne 0x10039e0d
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
jmp 0x10039eca
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x14], 0
je 0x10039e27
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 0x10039e3f
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0xc], 0
je 0x10039e3f
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 0x10039e50
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
cmp edx, dword [ecx + 0x50]
jbe 0x10039e7b
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.1003def0
add esp, 0xc
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
jmp 0x10039eca
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
jmp 0x10039eca
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10039fb0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0xc], 0
jne 0x10039fd0
push str.ScanForDisguisedPE:_Error__zero_size_given_n
call fcn.1003def0
add esp, 4
xor eax, eax
jmp 0x1003a0fc
cmp dword [0x10661944], 0
jne 0x10039fe4
push 0x10661940
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x10661944], 0
jne 0x1003a001
push str.ScanForDisguisedPE:_Failed_to_obtain_system_page_size._n
call fcn.1003f670
add esp, 4
xor eax, eax
jmp 0x1003a0fc
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x10661944]
ja 0x1003a020
push str.ScanForDisguisedPE:_Size_too_small._n
call fcn.1003def0
add esp, 4
xor eax, eax
jmp 0x1003a0fc
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100397f0
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 8]
jbe 0x1003a048
mov ecx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 4], 0
jmp 0x1003a05a
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
sub eax, dword [0x10661944]
cmp dword [ebp - 4], eax
jae 0x1003a0e2
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
push ecx
call fcn.10039ee0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1003a084
jmp 0x1003a051
cmp dword [ebp - 0xc], 0xffffffff
jne 0x1003a0b1
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.1003def0
add esp, 8
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
push eax
call fcn.10038fb0
add esp, 4
xor eax, eax
jmp 0x1003a0fc
cmp dword [ebp + 0x10], 0
je 0x1003a0c2
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.1003def0
add esp, 8
mov eax, 1
jmp 0x1003a0fc
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.1003def0
add esp, 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003a370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1038cff8
push 0x10273bd0
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.10074450
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1003a3d6
mov ecx, dword [ebp + 0xc]
push ecx
push str.DumpMemory:_Failed_to_allocate_0x_x_bytes_for_buffer_copy._n
call fcn.1003def0
add esp, 8
jmp 0x1003a4ba
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.1024bbe0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
jmp 0x1003a427
call fcn.10039430
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 0x1003a481
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x1003a472
mov ecx, dword [ebp - 0x1c]
push ecx
push str.DumpMemory:_Payload_name_exists_already:__s
call fcn.1003def0
add esp, 8
jmp 0x1003a47f
push str.DumpMemory:_Could_not_create_Payload
call fcn.1003f670
add esp, 4
jmp 0x1003a4ba
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 0x1003a4b3
push str.DumpMemory:_WriteFile_error_on_Payload
call fcn.1003f670
add esp, 4
jmp 0x1003a4ba
mov dword [ebp - 0x28], 1
cmp dword [ebp - 0x20], 0
je 0x1003a4cc
mov eax, dword [ebp - 0x20]
push eax
call fcn.10074560
add esp, 4
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], 0
je 0x1003a515
mov edx, dword [0x10661938]
mov eax, dword [ebp + 8]
mov dword [edx + 0x1c], eax
mov ecx, dword [0x10661938]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x20], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.1003f7b0
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.1003def0
add esp, 0xc
cmp dword [ebp - 0x1c], 0
je 0x1003a527
mov eax, dword [ebp - 0x1c]
push eax
call fcn.10074560
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 0x1003aca0
Capabilities:
Accept command line arguments
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10661998], 0
jne 0x1003acb4
jmp 0x1003aebf
mov eax, 0x2c
shl eax, 0
push eax
call fcn.10074450
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1003ace5
mov ecx, 0x2c
shl ecx, 0
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.1024b810
add esp, 0xc
mov eax, dword [ebp - 8]
mov dword [0x10661938], eax
cmp dword [0x10661938], 0
jne 0x1003acfb
jmp 0x1003aebf
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [0x10661938]
mov dword [ecx + 8], eax
call fcn.10076c10
mov edx, dword [0x10661938]
mov dword [edx + 0xc], eax
push 0x104
call fcn.10074450
add esp, 4
mov ecx, dword [0x10661938]
mov dword [ecx], eax
push 0
push 0
push 0x104
mov edx, dword [0x10661938]
mov eax, dword [edx]
push eax
mov ecx, dword [0x10661998]
push ecx
call fcn.1025326f
add esp, 4
add eax, 1
push eax
mov edx, dword [0x10661998]
push edx
push 0x400
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [0x10661938]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, 0x104f3398
test edx, edx
je 0x1003ad85
mov eax, dword [0x10661938]
mov dword [eax + 0x24], 0x104f3398
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x1003adb6
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0xa
jl 0x1003ada5
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0x7e
jle 0x1003adab
mov ecx, dword [ebp - 4]
mov byte [ecx], 0x3f
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x1003ad85
mov dword [0x10661970], 0
mov dword [0x10500ff4], 0
cmp dword [0x1065e324], 0
je 0x1003addf
mov eax, dword [0x1065e324]
mov dword [0x1066189c], eax
jmp 0x1003adec
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x1066189c], eax
cmp dword [0x104f3210], 0
je 0x1003ae07
push str.Initialising_Yara..._n
call fcn.1003def0
add esp, 4
call fcn.10062f30
mov dword [0x106618a0], 0x94
push 0x106618a0
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1003ae32
push str.TSMAM_init:_Failed_to_get_OS_version
call fcn.1003f670
add esp, 4
jmp 0x1003aebf
cmp dword [0x104f3214], 0
je 0x1003ae65
cmp dword [0x106618a4], 6
jne 0x1003ae4d
cmp dword [0x106618a8], 1
ja 0x1003ae56
cmp dword [0x106618a4], 6
jbe 0x1003ae65
mov ecx, dword [0x1065e484]
push ecx
call fcn.10037740
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 [0x1066189c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, dword [0x1065e484]
push ecx
mov edx, dword [0x10661938]
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.1003def0
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push str.Commandline:__s_n
call fcn.1003def0
add esp, 8
mov esp, ebp
pop ebp
ret