joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005dd0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
push esi
mov esi, ecx
test edx, edx
jle 0x10005e70
push ebx
mov bl, byte [0x10128ce2]
mov bh, byte [0x10128ce1]
cmp edx, 0x20
jb 0x10005e5b
mov ecx, edx
push edi
and ecx, 0x8000001f
jns 0x10005dff
dec ecx
or ecx, 0xffffffe0
inc ecx
mov edi, edx
sub edi, ecx
movsx ecx, bl
movd xmm0, ecx
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
movsx ecx, bh
pshufd xmm1, xmm0, 0
movd xmm0, ecx
lea ecx, [esi + 0x10]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm2, xmm0, 0
nop
movups xmm0, xmmword [ecx - 0x10]
add eax, 0x20
lea ecx, [ecx + 0x20]
pxor xmm0, xmm1
psubb xmm0, xmm2
movups xmmword [ecx - 0x30], xmm0
movups xmm0, xmmword [ecx - 0x20]
pxor xmm0, xmm1
psubb xmm0, xmm2
movups xmmword [ecx - 0x20], xmm0
cmp eax, edi
jl 0x10005e30
pop edi
cmp eax, edx
jge 0x10005e6f
nop
mov cl, byte [eax + esi]
xor cl, bl
sub cl, bh
mov byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x10005e60
pop ebx
pop esi
ret

Function at 0x10005e80
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
push esi
mov esi, ecx
test edx, edx
jle 0x10005f20
push ebx
mov bl, byte [0x10128ce1]
mov bh, byte [0x10128ce2]
cmp edx, 0x20
jb 0x10005f0b
mov ecx, edx
push edi
and ecx, 0x8000001f
jns 0x10005eaf
dec ecx
or ecx, 0xffffffe0
inc ecx
mov edi, edx
sub edi, ecx
movsx ecx, bl
movd xmm0, ecx
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
movsx ecx, bh
pshufd xmm1, xmm0, 0
movd xmm0, ecx
lea ecx, [esi + 0x10]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm2, xmm0, 0
nop
movups xmm0, xmmword [ecx - 0x10]
add eax, 0x20
lea ecx, [ecx + 0x20]
paddb xmm0, xmm1
pxor xmm0, xmm2
movups xmmword [ecx - 0x30], xmm0
movups xmm0, xmmword [ecx - 0x20]
paddb xmm0, xmm1
pxor xmm0, xmm2
movups xmmword [ecx - 0x20], xmm0
cmp eax, edi
jl 0x10005ee0
pop edi
cmp eax, edx
jge 0x10005f1f
nop
mov cl, byte [eax + esi]
add cl, bl
xor cl, bh
mov byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x10005f10
pop ebx
pop esi
ret

Function at 0x10005fb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x10128d8c]
test ecx, ecx
je 0x10005ff3
mov eax, dword [ecx]
mov edx, 0x10128da0
cmp eax, dword [edx]
jne 0x10005fd4
movzx eax, byte [ecx + 4]
cmp al, byte [edx + 4]
je 0x10005ff3
mov ecx, 0xf
call fcn.10011340
push eax
push 0
push 0x1011e1d8
call fcn.100087b0
add esp, 0xc
jmp fcn.10010b20
mov ecx, dword [0x10128d88]
test ecx, ecx
je 0x10006018
mov eax, dword [ecx]
mov edx, 0x10128d98
cmp eax, dword [edx]
jne 0x10006011
movzx eax, byte [ecx + 4]
cmp al, byte [edx + 4]
je 0x10006018
mov ecx, 0x10
jmp 0x10005fd9
mov ecx, dword [0x10128d84]
test ecx, ecx
je 0x1000603d
mov eax, dword [ecx]
mov edx, 0x10128d90
cmp eax, dword [edx]
jne 0x10006036
movzx eax, byte [ecx + 4]
cmp al, byte [edx + 4]
je 0x1000603d
mov ecx, 0x11
jmp 0x10005fd9
mov esp, ebp
pop ebp
ret
Function at 0x10007d70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0xf0
xor eax, eax
mov dl, byte [edi + eax + 0x79ddc0fb]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x1e
jb 0x10007d81
pop edi
mov byte [esi + 0x1e], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10007db0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x7f
xor eax, eax
mov dl, byte [edi + eax + 0x7b9bf7eb]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0xb
jb 0x10007dc1
pop edi
mov byte [esi + 0xb], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10007e80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0xf3
xor eax, eax
mov dl, byte [edi + eax - 0x2b8b1aec]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0xc
jb 0x10007e91
pop edi
mov byte [esi + 0xc], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10007ec0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0xae
xor eax, eax
mov dl, byte [edi + eax - 0x37b821da]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0xe
jb 0x10007ed1
pop edi
mov byte [esi + 0xe], 0
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x100083f0
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1001e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push 0
push 0
push 3
push 0
push 1
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp + 0x14]
push connect
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp + 0x18]
push eax
mov dword [ebp - 0x44], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000844d
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x10008461
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012754
mov esp, ebp
pop ebp
ret 0x14
push esi
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
test esi, esi
jne 0x10008497
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012754
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp - 0x14]
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x100084d4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100084cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100084cd
mov edx, 0x14c
cmp word [ecx + 4], dx
je 0x100084f5
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012754
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp - 0x3c]
mov dword [ebx], edi
mov dword [edx], esi
mov edx, dword [ebp - 0x40]
pop esi
pop edi
pop ebx
mov dword [edx], eax
mov eax, dword [ebp - 0x44]
mov dword [eax], ecx
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012754
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10008690
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1001e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1011e3f0]
mov ecx, dword [ebp + 0xc]
test eax, eax
js 0x1000879d
cmp eax, 1
jge 0x1000879d
push ebx
push edi
imul edi, eax, 0x214
inc eax
push ecx
push 0x100
mov dword [0x1011e3f0], eax
add edi, 0x1011e1dc
lea ebx, [edi + 4]
mov dword [edi], 1
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
cmp dword [edi], 0
je 0x1000879b
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0xe]
lea esi, [edi + 0x110]
movzx ecx, word [ebp - 0x12]
movzx eax, word [ebp - 0x14]
push edx
push ecx
push eax
push ebx
push str.._s_04d__02d__02d.log
push esi
mov dword [edi + 0x104], edx
mov dword [edi + 0x108], ecx
mov dword [edi + 0x10c], eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x210], eax
pop esi
cmp eax, 0xffffffff
jne 0x10008777
mov dword [edi], 0
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012754
mov esp, ebp
pop ebp
ret 8
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1000879b
push dword [edi + 0x210]
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012754
mov esp, ebp
pop ebp
ret 8
Function at 0x100087b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x1001e00c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edi
test eax, eax
js 0x10008996
cmp eax, dword [ecx + 0x218]
jge 0x10008996
imul edi, eax, 0x214
add edi, ecx
cmp dword [edi + 4], 0
je 0x10008996
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x816]
cmp eax, dword [edi + 0x108]
jne 0x1000882f
movzx eax, word [ebp - 0x81a]
cmp eax, dword [edi + 0x10c]
jne 0x1000882f
movzx eax, word [ebp - 0x81c]
cmp eax, dword [edi + 0x110]
je 0x100088ee
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edx, word [ebp - 0x816]
lea esi, [edi + 0x114]
movzx ecx, word [ebp - 0x81a]
movzx eax, word [ebp - 0x81c]
push edx
push ecx
push eax
mov dword [edi + 0x110], eax
lea eax, [edi + 8]
push eax
push str.._s_04d__02d__02d.log
push esi
mov dword [edi + 0x108], edx
mov dword [edi + 0x10c], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x214], eax
cmp eax, 0xffffffff
jne 0x100088b9
mov dword [edi + 4], 0
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10012754
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100088ee
push dword [edi + 0x214]
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10012754
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x80c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
push ecx
push dword [ebp + 0x10]
lea ecx, [ebp - 0x80c]
call fcn.100089b0
add esp, 0xc
lea eax, [ebp - 0x40c]
push 0x400
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
movzx eax, word [ebp - 0x810]
push eax
movzx eax, word [ebp - 0x812]
push eax
movzx eax, word [ebp - 0x814]
push eax
lea eax, [ebp - 0x40c]
push str._02d:_02d:_02d__s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x40c]
add esp, 0x18
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008970
push 0
lea eax, [ebp - 0x820]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x40c]
push eax
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.10012754
mov esp, ebp
pop ebp
ret

Function at 0x10008a20
Capabilities:
Create thread

Disassembly:
cmp dword [0x10128d48], 0
je 0x10008a5d
mov eax, dword [0x10128dc4]
xorps xmm0, xmm0
push 0x10129130
push 0
push 0x1011e3f4
push 0x10008b40
push 0
push 0
mov dword [0x1011e3f8], eax
movups xmmword [0x1011e400], xmm0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1011e3fc], eax
ret 4
Function at 0x10008a60
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x10128d2c], 0
je 0x10008a7c
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [0x10128d2c]
cmp eax, dword [ecx]
jne 0x10008aed
push esi
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi*4 + 0x1011e400]
cmp eax, 0x1388
jb 0x10008aac
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi*4 + 0x1011e400], eax
mov dword [esi*4 + 0x1011e408], 0
mov eax, dword [0x10128d44]
cmp eax, 5
ja case.default.0x10008ab6
jmp dword [eax*4 + 0x10008af4]
push 0
jmp 0x10008ad3
push 0x19
jmp 0x10008ad3
push 0x14
jmp 0x10008ad3
push 0xf
jmp 0x10008ad3
push 0xa
jmp 0x10008ad3
push 5
push esi
call fcn.10008b10
test al, al
jne 0x10008aec
xor edx, edx
push 0
lea ecx, [edx + 9]
call fcn.10004e50
add esp, 4
pop esi
pop ebp
ret 4

Function at 0x10008ee0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x458
mov eax, dword [0x1001e00c]
xor eax, esp
mov dword [esp + 0x454], eax
push esi
push edi
mov edi, dword [ebp + 8]
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1000901e
push 0x104
lea eax, [esp + 0x254]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x10009017
push ecx
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x254]
call fcn.10010c50
add esp, 4
test al, al
je 0x10009017
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.100081e0
test al, al
jne 0x10008f93
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea edx, [esp + 0xc]
mov ecx, 1
call fcn.10004e50
add esp, 4
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x454]
xor ecx, esp
call fcn.10012754
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.10008550
test al, al
jne 0x10008fd7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea edx, [esp + 0xc]
mov ecx, 2
call fcn.10004e50
add esp, 4
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x454]
xor ecx, esp
call fcn.10012754
mov esp, ebp
pop ebp
ret 8
push ecx
lea eax, [esp + 0x4c]
push eax
call fcn.10005cb0
test al, al
jne 0x10009017
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea edx, [esp + 0xc]
mov ecx, 5
call fcn.10004e50
add esp, 4
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x454]
xor ecx, esp
call fcn.10012754
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x45c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.10012754
mov esp, ebp
pop ebp
ret 8
Function at 0x10009200
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100139cb
mov eax, dword fs:[0]
push eax
sub esp, 0xc30
mov eax, dword [0x1001e00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc3c], 0
mov dword [ebp - 0xc38], 0
mov dword [ebp - 0xc34], 0
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0xc3c]
mov dword [ebp - 4], 0
call fcn.10011460
mov word [ebp - 0xc30], 0xac2
mov byte [ebp - 0xc2e], 0xc
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0x800000ff
jns 0x10009285
dec eax
or eax, 0xffffff00
inc eax
mov ebx, dword [ebp - 0xc38]
xor edi, edi
mov byte [ebp - 0xc2d], al
mov eax, dword [ebp - 0xc3c]
sub ebx, eax
sar ebx, 2
mov byte [ebp - 0xc2c], 0x17
mov dword [ebp - 0xc28], ebx
test ebx, ebx
je 0x1000936e
lea esi, [ebp - 0x724]
jmp 0x100092c6
mov eax, dword [ebp - 0xc3c]
cmp edi, 0x14
jge 0x1000936e
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push dword [eax + edi*4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x104
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0xc3c]
push dword [eax + edi*4]
call dword [sym.imp.USER32.dll_GetClassNameA]
movups xmm0, xmmword [ebp - 0x118]
inc edi
movups xmmword [esi - 0x500], xmm0
movups xmm0, xmmword [ebp - 0x108]
movups xmmword [esi - 0x4f0], xmm0
movups xmm0, xmmword [ebp - 0xf8]
movups xmmword [esi - 0x4e0], xmm0
movups xmm0, xmmword [ebp - 0xe8]
movups xmmword [esi - 0x4d0], xmm0
movups xmm0, xmmword [ebp - 0x220]
movups xmmword [esi], xmm0
movups xmm0, xmmword [ebp - 0x210]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x200]
movups xmmword [esi + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x1f0]
movups xmmword [esi + 0x30], xmm0
add esi, 0x40
cmp edi, ebx
jb 0x100092c0
push 0xa0c
lea eax, [ebp - 0xc30]
push eax
call fcn.10003c50
mov ecx, dword [ebp - 0xc3c]
test ecx, ecx
je 0x1000939b
mov eax, dword [ebp - 0xc34]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.1000abc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10012754
mov esp, ebp
pop ebp
ret 4
Function at 0x10009600
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1584
call fcn.10013880
mov eax, dword [0x1001e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x1584]
mov dword [ebp - 0x1584], 0
push eax
push 0x1000
lea eax, [ebp - 0x1458]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x10009654
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012754
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x1584]
xor esi, esi
shr ebx, 2
test ebx, ebx
jle 0x10009742
nop word [eax + eax]
mov eax, dword [ebp + esi*4 - 0x1458]
test eax, eax
je 0x10009739
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x10009732
push 0x104
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x10009732
lea ecx, [ebp - 0x250]
call fcn.10010ed0
push eax
lea eax, [ebp - 0x48]
push 0x100199e4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea edx, [ebp - 0x458]
lea ecx, [ebp - 0x250]
call fcn.10010c50
add esp, 4
test al, al
je 0x10009732
mov eax, dword [ebp + esi*4 - 0x1458]
movups xmm0, xmmword [ebp - 0x48]
mov dword [ebp - 0x1580], eax
lea eax, [ebp - 0x458]
push eax
movups xmmword [ebp - 0x157c], xmm0
lea eax, [ebp - 0x155c]
movups xmm0, xmmword [ebp - 0x38]
push 0x10019cc8
push eax
movups xmmword [ebp - 0x156c], xmm0
call fcn.10008050
add esp, 0xc
lea eax, [ebp - 0x1580]
push eax
call fcn.1000ac90
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, ebx
jl 0x10009670
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10012754
mov esp, ebp
pop ebp
ret
Function at 0x10009760
Capabilities:
Parse pe header
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x1001e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
push 0
push 0
push 3
push 0
push 1
push connect
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp + 0x10]
push eax
mov dword [ebp - 0x44], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100097b3
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x100097c6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012754
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
jne 0x100097fb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012754
mov esp, ebp
pop ebp
ret 0xc
push esi
push dword [ebp - 0x14]
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x1000987b
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x10009874
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x10009874
movzx ecx, word [eax + 4]
mov edx, 0x14c
cmp cx, dx
je 0x10009844
mov edx, 0x8664
cmp cx, dx
jne 0x10009874
push dword [eax + 0x28]
push dword [eax + 0x34]
push eax
call dword [sym.imp.dbghelp.dll_ImageRvaToSection]
mov ecx, eax
test ecx, ecx
je 0x10009874
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x3c]
push 0
push 0
add eax, dword [ecx + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1000989c
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
pop esi
pop ebx
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012754
mov esp, ebp
pop ebp
ret 0xc
push 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0
push eax
push 0x20
push dword [ebp - 0x44]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
je 0x10009875
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx + 0x28]
add eax, dword [ecx + 0x34]
mov ecx, dword [ebp - 0x48]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.10012754
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000a910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10013b58
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1001e00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x1000aa30
cmp byte [ebx + 0x3d], 0
je 0x1000aa30
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x1000a969
xor al, al
jmp 0x1000aa32
sub esp, 8
lea ecx, [ebp - 0x28]
call fcn.1000b120
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
lea edi, [ebx + 0x40]
cmp esi, 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, edx
push eax
push ecx
mov ecx, dword [ebx + 0x38]
push edi
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x1000a9bd
sub eax, 1
je 0x1000a9c1
mov esi, dword [ebp - 0x14]
sub eax, 2
je 0x1000aa19
xor bl, bl
jmp 0x1000aa1b
mov byte [ebx + 0x3d], 0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp esi, 0x10
mov edi, dword [ebp - 0x2c]
cmovae eax, ecx
sub edi, eax
je 0x1000a9f7
push dword [ebx + 0x4c]
cmp esi, 0x10
lea eax, [ebp - 0x28]
push edi
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov esi, dword [ebp - 0x14]
add esp, 0x10
cmp edi, eax
jne 0x1000a9b9
cmp byte [ebx + 0x3d], 0
je 0x1000aa19
test edi, edi
lea edi, [ebx + 0x40]
jne 0x1000a981
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.1000b460
jmp 0x1000a97b
mov bl, 1
cmp esi, 0x10
jb 0x1000aa2c
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x28]
call fcn.1000b540
mov al, bl
jmp 0x1000aa32
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10012754
mov esp, ebp
pop ebp
ret