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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
push 0x1002e82a
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx edx, word [ecx + 0x14]
lea edx, [edx + ecx + 0x18]
movzx ecx, word [ecx + 6]
test ecx, ecx
je 0x10013de1
test dword [edx + 0x24], 0x80000000
jne 0x10013e8b
add edx, 0x28
dec ecx
jne 0x10013dce
xor ecx, ecx
and dword [esp + 0x14], 0
test ecx, ecx
je 0x10013e80
mov esi, dword [ecx + 0xc]
and dword [esp + 0x10], 0
add esi, eax
mov eax, dword [ecx + 8]
lea ebx, [eax + esi - 8]
xor eax, eax
lea edi, [esp + 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x20], 0x10013d95
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
cmp esi, ebx
ja 0x10013e80
mov eax, dword [esi]
cmp eax, esi
jne 0x10013e76
cmp eax, dword [esi + 4]
jne 0x10013e76
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], esi
mov dword [eax + 4], ecx
mov eax, ecx
push 0x1002eb0d
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x10013e5e
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
mov dword [eax + 4], ecx
cmp dword [esp + 0x10], 0
je 0x10013e76
mov dword [esp + 0x14], esi
add esi, 8
cmp dword [esp + 0x10], 0
je 0x10013e26
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
jmp 0x10013de3

Function at 0x10013e92
Capabilities:
Check os version

Disassembly:
push ebx
xor ebx, ebx
inc ebx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x10013ecc
push 0x1002efce
push 0x1002e82a
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10013f19
push esi
push edi
push 0x100112c6
push 0
call eax
test eax, eax
jne 0x10013f19
jmp 0x10013f12
cmp dword [0x1002d2bc], 0
jne 0x10013ee3
call fcn.10013da2
mov dword [0x1002d2bc], eax
test eax, eax
je 0x10013f19
push 0x10
call fcn.100012ea
test eax, eax
je 0x10013f16
mov ecx, dword [0x1002d2bc]
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [eax + 8], 0x100112c6
mov dword [eax + 0xc], edi
mov dword [esi], eax
mov edx, dword [ecx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [edx], eax
mov dword [ecx + 4], eax
xor ebx, ebx
jmp 0x10013f19
push 8
pop ebx
mov eax, ebx
pop ebx
ret

Function at 0x100141e2
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x1001422b
cmp dword [esp + 4], 0
not eax
je 0x10014227
push esi
mov cl, byte [edx]
dec dword [esp + 8]
movzx ecx, cl
mov esi, ecx
xor esi, eax
and esi, 0xf
shr eax, 4
xor eax, dword [esi*4 + 0x10029778]
shr ecx, 4
mov esi, eax
and esi, 0xf
xor ecx, esi
shr eax, 4
xor eax, dword [ecx*4 + 0x10029778]
inc edx
cmp dword [esp + 8], 0
jne 0x100141f0
pop esi
not eax
jmp 0x1001422d
xor eax, eax
ret 4
Function at 0x10014230
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x10015ecf
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1002d240]
push ebx
mov dword [ebp - 8], eax
xor ebx, ebx
push edi
lea eax, [ebp - 8]
mov edx, esi
mov dword [ebp - 4], ebx
call fcn.100115bb
mov edi, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 4]
push eax
push ebx
call edi
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x10015f48
add eax, eax
push eax
push ebx
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x10015f48
lea ecx, [ebp - 4]
push ecx
push eax
call edi
test eax, eax
je 0x10015f38
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
add eax, eax
push eax
xor eax, eax
call fcn.100141e2
not eax
xor dword [esi], eax
push dword [ebp - 8]
push ebx
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 4]
push eax
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x10015fa4
add eax, eax
push eax
push ebx
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x10015fa4
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x10015f96
mov eax, dword [ebp - 4]
add eax, eax
push eax
mov edx, edi
xor eax, eax
call fcn.100141e2
not eax
xor dword [esi + 0xc], eax
push edi
push ebx
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
inc eax
xor ecx, ecx
cpuid
lea edi, [ebp - 0x18]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
xor eax, dword [ebp - 0xc]
pop edi
xor eax, dword [ebp - 0x10]
pop ebx
xor eax, dword [ebp - 0x18]
mov dword [esi + 4], eax
leave
ret

Function at 0x100163ca
Capabilities:
Receive http response

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0xc], 0
jne 0x100163dc
call fcn.10016a7e
test eax, eax
jne 0x100163e4
mov eax, esi
pop esi
jmp fcn.10016940
pop esi
ret
Function at 0x100165be
Capabilities:
Check os version
Initialize winhttp library
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push dword [ebp + 8]
xor eax, eax
call fcn.100128d1
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x1001670b
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
ja 0x100165f2
jne 0x100165ed
shr eax, 8
cmp al, 1
ja 0x100165f2
mov dword [ebp + 8], edi
jmp 0x100165f9
mov dword [ebp + 8], 4
push edi
push edi
push edi
push dword [ebp + 8]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push ebx
mov dword [esi + 0x10], eax
call fcn.100012ff
cmp dword [esi + 0x10], edi
je 0x1001670b
push dword [esi]
xor eax, eax
call fcn.100128d1
mov ebx, eax
cmp ebx, edi
je 0x1001670b
mov eax, dword [ebp + 0x14]
neg eax
sbb eax, eax
push edi
and eax, 0x16b
add eax, 0x50
push eax
push ebx
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
push ebx
mov dword [esi + 0x14], eax
call fcn.100012ff
cmp dword [esi + 0x14], edi
je 0x1001670b
mov ebx, 0x100
mov dword [ebp + 8], ebx
cmp dword [ebp + 0x14], edi
je 0x1001666c
mov dword [ebp + 8], 0x800100
push dword [esi + 4]
xor eax, eax
call fcn.100128d1
mov dword [ebp + 0x14], eax
cmp eax, edi
je 0x1001670b
mov ecx, 0x1002e49c
cmp dword [ebp + 0x10], edi
jne 0x10016690
mov ecx, 0x1002e4e8
push dword [ebp + 8]
push edi
push edi
push edi
push eax
push ecx
push dword [esi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
push dword [ebp + 0x14]
mov dword [esi + 0x18], eax
call fcn.100012ff
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x1001670b
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp + 8]
push ecx
push 0x1f
push eax
mov dword [ebp - 4], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x100166e5
or dword [ebp + 8], ebx
push 4
lea eax, [ebp + 8]
push eax
push 0x1f
push dword [esi + 0x18]
call edi
push 4
lea eax, [ebp + 0xc]
push eax
push 6
push dword [esi + 0x18]
call edi
test eax, eax
je 0x1001670b
push 4
lea eax, [ebp + 0xc]
push eax
push 5
push dword [esi + 0x18]
call edi
test eax, eax
je 0x1001670b
xor eax, eax
jmp 0x10016711
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
leave
ret 0x10
Function at 0x100167a9
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 0x14]
and dword [ebp + 0x14], 0
push esi
push edi
push 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
pop edi
mov dword [ebp - 4], eax
lea eax, [esi + 4]
push eax
push esi
push dword [ebp + 8]
call fcn.10015ffb
test eax, eax
je 0x100168b0
mov dword [ebp + 0xc], ebx
test ebx, ebx
jne 0x100167ee
mov dword [ebp + 0xc], 0x1002e47c
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x68
push eax
call fcn.100012ea
mov ebx, eax
test ebx, ebx
je 0x100168b0
push 0x1002e576
push dword [ebp + 0xc]
push 0x1002e4a6
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esi + 0x30]
push eax
lea ecx, [esi + 8]
push ecx
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ebx
call fcn.100160ac
push ebx
mov edi, eax
call fcn.100012ff
test edi, edi
jne 0x100168b0
cmp dword [ebp + 0x18], edi
jne 0x10016850
mov dword [ebp + 0x18], 0xea60
push 0
push 1
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call fcn.100165be
mov edi, eax
test edi, edi
jne 0x100168b0
push dword [ebp + 0x14]
call fcn.100128d1
mov ebx, eax
test ebx, ebx
jne 0x10016878
push 8
pop edi
jmp 0x100168b0
push 0x10000000
push 0xffffffffffffffff
push ebx
push dword [esi + 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x10016895
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
call fcn.100012ff
test edi, edi
jne 0x100168b0
push dword [esi + 0x30]
push dword [esi + 8]
push edi
push dword [esi + 0x18]
call fcn.10016717
mov edi, eax
cmp dword [ebp + 0x14], 0
mov dword [esi + 0x28], edi
je 0x100168c1
push dword [ebp + 0x14]
call fcn.100012ff
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x10016a7e
Capabilities:
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [esi + 0x28]
push ebx
push edi
xor edi, edi
lea ebx, [esi + 0x2c]
mov dword [ebp - 0xc], edi
mov dword [ebx], edi
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x10016b7a
push edi
push dword [esi + 0x18]
mov dword [ebp - 4], 4
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x10016b71
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0x20000013
push dword [esi + 0x18]
call sub.WINHTTP.dll_WinHttpQueryHeaders
test eax, eax
je 0x10016b71
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x16
push dword [esi + 0x18]
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
call sub.WINHTTP.dll_WinHttpQueryHeaders
mov eax, dword [ebp - 4]
add eax, 2
push eax
call fcn.100012ea
mov ebx, eax
cmp ebx, edi
je 0x10016b68
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0x16
push dword [esi + 0x18]
call sub.WINHTTP.dll_WinHttpQueryHeaders
test eax, eax
je 0x10016b57
shr dword [ebp - 4], 1
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ebx + ecx*2], ax
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.100012ea
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x10016b4e
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push ebx
push eax
call sub.ntdll.dll_wcstombs
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [esi + 0xc], eax
jmp 0x10016b60
mov dword [ebp - 8], 8
jmp 0x10016b60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
push ebx
call fcn.100012ff
jmp 0x10016b7a
mov dword [ebp - 8], 8
jmp 0x10016b7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret

Function at 0x10016c78
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push 0x14
call fcn.100012ea
mov esi, eax
test esi, esi
je 0x10016cf3
push ebx
push edi
push 0x1002f8a1
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x10016ce9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002f8a9
push ebx
call edi
mov dword [esi], eax
test eax, eax
je 0x10016ce9
push 0x1002f8b0
push ebx
call edi
mov dword [esi + 4], eax
test eax, eax
je 0x10016ce9
push 0x1002f8b8
push ebx
call edi
mov dword [esi + 8], eax
test eax, eax
je 0x10016ce9
push 0x1002f30e
push ebx
call edi
mov dword [esi + 0xc], eax
test eax, eax
je 0x10016ce9
push 0x1002f8bf
push ebx
call edi
mov dword [esi + 0x10], eax
test eax, eax
jne 0x10016cf1
push esi
call fcn.100012ff
xor esi, esi
pop edi
pop ebx
mov eax, esi
pop esi
ret
Function at 0x10017342
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x10017395
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100125a8
test eax, eax
je 0x10017384
cmp dword [ebp - 8], 4
jne 0x10017384
inc ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x10017a4a
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x4e8
push ebx
push esi
xor eax, eax
push 0x4c8
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
or ebx, 0xffffffff
mov dword [esp + 0x28], 0xccccfeeb
call sub.ntdll.dll_memset
add esp, 0xc
call fcn.10011bfd
mov esi, eax
lea eax, [esp + 8]
push eax
push dword [edi]
mov dword [esp + 0x58], 0x100003
call fcn.100178c3
test eax, eax
jl 0x10017b9f
lea eax, [esp + 0x10]
push eax
push 4
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [edi]
call fcn.100119c0
test eax, eax
je 0x10017b9f
cmp dword [esp + 0x10], 4
jne 0x10017b9f
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [edi]
call fcn.100177d6
test eax, eax
je 0x10017b9f
lea eax, [esp + 0x20]
cdq
mov ebx, 0xbb8
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
push dword [0x1002d23c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10017b20
push 0x64
pop ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [esp + 0x14]
mov eax, dword [edi + 4]
push dword [esp + 0x14]
cdq
push edx
push eax
push 0
push 2
push dword [esi + 4]
sub ebx, 0x64
push dword [esi]
call fcn.10025dd0
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 0x138]
add esp, 0x20
test ebx, ebx
jle 0x10017b69
cmp eax, dword [esp + 8]
jne 0x10017aff
cmp ecx, dword [esp + 0xc]
jne 0x10017aff
cmp eax, dword [esp + 8]
jne 0x10017b75
cmp ecx, dword [esp + 0xc]
je 0x10017b7c
mov ebx, 0x261
jmp 0x10017b8b
mov esi, dword [ebp + 8]
push 0
push 0
push edi
call fcn.100175cc
mov ebx, eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [edi]
call fcn.100177d6
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10017ba9
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2ec
push ebx
push esi
push edi
xor esi, esi
push 0x2c8
mov edi, eax
lea eax, [esp + 0x30]
push esi
push eax
mov dword [esp + 0x34], esi
call sub.ntdll.dll_memset
mov ebx, dword [edi]
add esp, 0xc
push esi
mov eax, ebx
mov dword [esp + 0x28], 0xccccfeeb
mov dword [esp + 0x1c], esi
call fcn.100117cc
test eax, eax
je 0x10017cc0
mov dword [esp + 0x18], 0x10
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x28], 0x10007
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x10017c17
push dword [edi]
call fcn.1001739d
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x1c]
push ebx
call fcn.10012567
test eax, eax
je 0x10017cfd
cmp dword [esp + 0x1c], 4
jne 0x10017cfd
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x14]
push ebx
call fcn.10017342
test eax, eax
je 0x10017cfd
mov dword [esp + 0x14], 0xbb8
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
push dword [0x1002d23c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10017c85
mov dword [esp + 0x14], 0x64
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
sub dword [esp + 0x14], 0x64
lea eax, [esp + 0x28]
push eax
push dword [edi + 4]
call fcn.10012546
cmp dword [esp + 0x14], esi
mov eax, dword [esp + 0xe0]
jle 0x10017cb3
cmp eax, dword [esp + 0x10]
jne 0x10017c5f
cmp eax, dword [esp + 0x10]
je 0x10017cd9
mov esi, 0x261
jmp 0x10017ce9
test byte [0x1002d230], 1
je 0x10017bf9
push dword [ebp + 8]
call fcn.10017a4a
mov esi, eax
jmp 0x10017cf8
push esi
push dword [esp + 0x1c]
mov esi, dword [ebp + 8]
push edi
call fcn.100175cc
mov esi, eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x14]
push ebx
call fcn.10017342
cmp esi, 0xffffffff
jne 0x10017d05
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test byte [ebp + 0xc], 4
jne 0x10017d14
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10017e00
Capabilities:
Get process image filename

Disassembly:
push ebx
push edi
xor ebx, ebx
push 0x1000
inc ebx
call fcn.100012ea
mov edi, eax
test edi, edi
je 0x10017e67
push 0x800
push edi
push dword [esp + 0x14]
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x10017e61
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
test esi, esi
je 0x10017e60
push esi
call dword [sym.imp.ntdll.dll__wcsupr]
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov edx, esi
xor eax, eax
call fcn.100141e2
not eax
xor eax, dword [0x1002d244]
cmp eax, 0x93c01765
jne 0x10017e60
xor ebx, ebx
pop esi
push edi
call fcn.100012ff
pop edi
mov eax, ebx
pop ebx
ret 4

Function at 0x10017e6e
Capabilities:
Resume thread

Disassembly:
push dword [esi]
call fcn.10017e00
test eax, eax
jne 0x10017e8b
test byte [esp + 4], 4
jne 0x10017e9d
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x10017e9d
push 0
push dword [esp + 8]
mov eax, esi
push 0x1002d2e0
call fcn.10017ba9
ret 4
Function at 0x10018446
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0x40
xor ecx, ecx
push ecx
push 2
xor eax, eax
mov dword [ebp - 0xc], ecx
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push ecx
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 4], ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
pop edi
leave
ret 0xc

Function at 0x100187ad
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0x1c
mov edx, ebx
xor eax, eax
mov dword [ebp + 8], 8
call fcn.100141e2
lea ecx, [ebp - 4]
not eax
push ecx
push eax
mov eax, dword [0x1002d328]
call fcn.10019b1c
test eax, eax
jne 0x100187e2
xor edi, edi
jmp 0x100187e5
mov edi, dword [ebp - 4]
test edi, edi
je 0x10018946
mov eax, dword [edi + 0x4a18]
push esi
mov dword [ebp - 8], eax
test eax, eax
jne 0x100188a8
push dword [ebx]
push eax
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1001882b
push 0x104
lea eax, [edi + 0x10]
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x1002d32c], 0
mov dword [edi + 0x4a1c], 1
je 0x1001888c
push 0x5c
push 0
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x1001888c
inc eax
inc eax
push 0x2e
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
test esi, esi
je 0x10018869
xor eax, eax
mov word [esi], ax
push dword [ebp - 4]
push dword [0x1002d32c]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x10018882
and dword [edi + 0x4a1c], eax
test esi, esi
je 0x1001888c
push 0x2e
pop eax
mov word [esi], ax
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0x400
lea eax, [edi + 0x218]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor edx, edx
mov dword [edi + 0x4a18], 1
cmp dword [edi + 0x4a1c], edx
je 0x1001892f
movzx ecx, word [ebx + 0x20]
cmp cx, dx
je 0x100188ef
mov eax, dword [edi + 8]
cmp eax, 0x2000
jae 0x100188ef
cmp cx, 8
jne 0x100188df
cmp eax, edx
je 0x100188ea
dec eax
mov dword [edi + 8], eax
jmp 0x100188ea
mov word [edi + eax*2 + 0xa18], cx
inc dword [edi + 8]
mov dword [ebp + 8], edx
jmp 0x100188f6
mov dword [ebp + 8], 0x6f
cmp dword [ebx + 0x22], edx
je 0x1001892f
push 0x14
call fcn.100012ea
mov esi, eax
test esi, esi
je 0x1001892f
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebx + 0x22]
mov dword [esi + 0x10], eax
and dword [ebx + 0x22], 0
lea eax, [edi + 0x4a20]
mov ecx, dword [eax + 4]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [ecx], esi
mov dword [eax + 4], esi
cmp dword [ebp - 8], 0
pop esi
je 0x10018946
push 0
push dword [0x1002d328]
lea eax, [edi - 0x1c]
call fcn.10019c08
mov eax, dword [ebp + 8]
pop edi
pop ebx
leave
ret 4
Function at 0x10018bd5
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x88
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x68], ebx
mov esi, 0x80
mov eax, dword [ebx + 0x1002c058]
cmp eax, dword [ebp + 0x74]
jne 0x10018c37
cmp dword [ebx + 0x1002c05c], 0
je 0x10018c47
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x78]
call dword [sym.imp.USER32.dll_GetClassNameA]
mov edi, eax
test edi, edi
jle 0x10018c47
lea eax, [ebp - 0x1c]
push eax
call sub.ntdll.dll__strupr
pop ecx
push edi
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.100141e2
not eax
cmp eax, dword [ebx + 0x1002c05c]
je 0x10018c47
inc dword [ebp + 0x68]
add ebx, 0x14
cmp ebx, 0x3c
jb 0x10018bf0
jmp 0x10018d0c
mov edi, dword [ebp + 0x68]
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextA]
imul edi, edi, 0x14
cmp dword [edi + 0x1002c064], 0
je 0x10018c8e
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x78]
call ebx
mov dword [ebp + 0x78], eax
test eax, eax
jle 0x10018c8e
lea eax, [ebp - 0x1c]
push eax
call sub.ntdll.dll__strupr
pop ecx
push dword [ebp + 0x78]
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.100141e2
not eax
cmp eax, dword [edi + 0x1002c064]
jne 0x10018d0c
cmp dword [edi + 0x1002c060], 0
je 0x10018ccd
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.USER32.dll_GetClassNameA]
mov dword [ebp + 0x78], eax
test eax, eax
jle 0x10018ccd
lea eax, [ebp - 0x1c]
push eax
call sub.ntdll.dll__strupr
pop ecx
push dword [ebp + 0x78]
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.100141e2
not eax
cmp eax, dword [edi + 0x1002c060]
jne 0x10018d0c
cmp dword [edi + 0x1002c068], 0
je 0x10018d05
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x7c]
call ebx
mov esi, eax
test esi, esi
jle 0x10018d05
lea eax, [ebp - 0x1c]
push eax
call sub.ntdll.dll__strupr
pop ecx
push esi
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.100141e2
not eax
cmp eax, dword [edi + 0x1002c068]
jne 0x10018d0c
mov dword [ebp + 0x64], 1
mov eax, dword [ebp + 0x64]
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc