joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ff920
Capabilities:
Query environment variable
Resume thread
Terminate process

Disassembly:
sub esp, 0x270
push ebx
xor ebx, ebx
lea eax, [edx - 1]
mov dword [esp + 4], ebx
push esi
push edi
cmp eax, 0xfff
ja 0x100ffb07
push dword [esp + 0x280]
push edx
mov edx, ecx
lea ecx, [esp + 0x14]
call fcn.100ffb60
mov edi, dword [esp + 0xc]
test eax, eax
je 0x100ffaec
push 0x104
lea eax, [esp + 0x6c]
push eax
push str.WINDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x100ffaec
cmp eax, 0x104
jae 0x100ffaec
mov ecx, 0x104
lea eax, [esp + 0x68]
nop dword [eax]
cmp byte [eax], bl
je 0x100ff99a
inc eax
sub ecx, 1
jne 0x100ff990
mov edx, 0x104
mov esi, ecx
mov eax, edx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x100ffaec
push accept
push 0x10271400
push ecx
lea ecx, [esp + 0x74]
sub edx, esi
add ecx, esi
call fcn.10101150
test eax, eax
js 0x100ffaec
lea eax, [edi + 0xc]
push eax
push str.rundll32.exe___hs__1
lea eax, [esp + 0x178]
push 0x104
push eax
call fcn.10056a80
add esp, 0x10
test eax, eax
js 0x100ffaec
lea eax, [esp + 0x10]
mov dword [esp + 0x20], 0x44
push eax
lea eax, [esp + 0x24]
xorps xmm0, xmm0
push eax
push 0
push 0
push 4
push 0
push 0
push 0
lea eax, [esp + 0x190]
movlpd qword [esp + 0x44], xmm0
push eax
lea eax, [esp + 0x8c]
movlpd qword [esp + 0x50], xmm0
push eax
movups xmmword [esp + 0x38], xmm0
movlpd qword [esp + 0x5c], xmm0
movlpd qword [esp + 0x64], xmm0
movlpd qword [esp + 0x6c], xmm0
movlpd qword [esp + 0x74], xmm0
movlpd qword [esp + 0x7c], xmm0
movlpd qword [esp + 0x84], xmm0
call dword [esp + 0x2ac]
test eax, eax
je 0x100ffaec
push dword [edi]
mov ecx, dword [esp + 0x14]
mov edx, 0x10257318
push edi
call fcn.100ffec0
test eax, eax
jne 0x100ffaa2
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x14]
call esi
jmp 0x100ffaec
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x1f4
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x14]
call esi
cmp dword [esp + 0xc], ebx
jne 0x100ffaec
mov ebx, 1
test edi, edi
je 0x100ffb0f
push edi
call fcn.1006e708
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x270
ret 8
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x270
ret 8
Function at 0x100ffd90
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x10320e80]
sub esp, 0x10
push esi
test eax, eax
jne 0x100ffdb3
mov esi, 0x26b1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [eax + 4]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100ffde1
mov esi, 0x26ad
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x10320e80]
xor ecx, ecx
mov edx, 4
push ebx
push ebp
mov eax, dword [eax + 8]
mul edx
push edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1006e70d
mov ecx, dword [0x10320e80]
mov ebp, eax
add esp, 4
xor edi, edi
xor esi, esi
mov edx, dword [ecx]
mov eax, dword [ecx + 8]
sub edx, 0x10
mov dword [esp + 0x18], edx
test eax, eax
je 0x100ffe79
add ecx, 0xc
mov dword [esp + 0x14], ecx
nop dword [eax + eax]
lea ebx, [ecx + edi]
mov dword [esp + 0x10], 0
sub edx, edi
test ebx, ebx
je 0x100ffeae
cmp edx, 0x7fffffff
ja 0x100ffeae
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.10101260
test eax, eax
js 0x100ffeae
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
mov edx, dword [esp + 0x18]
add edi, eax
mov eax, dword [0x10320e80]
mov dword [ebp + esi*4], ebx
inc esi
mov eax, dword [eax + 8]
cmp esi, eax
jb 0x100ffe30
mov ecx, dword [esp + 0x1c]
mov edx, ebp
push eax
call fcn.101004f0
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xffffd951
add esi, 0x26af
test ebp, ebp
je 0x100ffea4
push ebp
call fcn.1006e708
add esp, 4
pop edi
pop ebp
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, 0x26ae
jmp 0x100ffe97
Function at 0x100ffec0
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1cc
push ebx
mov ebx, dword [esp + 0x1d8]
push ebp
push esi
push edi
push 4
push 0x1000
lea eax, [ebx + 0x1b8]
mov dword [esp + 0x24], edx
push eax
mov edi, ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
je 0x10100122
push 0x40
lea eax, [esp + 0xa4]
mov dword [esp + 0x18], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ebp, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
add esp, 0xc
mov eax, 0x5a4d
mov dword [esp + 0xdc], 0x40
mov word [esp + 0xa0], ax
lea eax, [esp + 0x14]
push eax
push 0x40
lea eax, [esp + 0xa8]
push eax
push esi
push edi
call ebp
test eax, eax
je 0x10100122
cmp dword [esp + 0x14], 0x40
jne 0x10100122
push 0xf8
lea eax, [esp + 0xe4]
add esi, 0x40
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0xe0], 0x4550
mov eax, 1
mov dword [esp + 0xf4], 0x200000e0
mov word [esp + 0xe6], ax
mov eax, 0x10b
mov word [esp + 0xf8], ax
lea eax, [esp + 0x14]
push eax
push 0xf8
lea eax, [esp + 0xe8]
push eax
push esi
push edi
call ebp
test eax, eax
je 0x10100122
cmp dword [esp + 0x14], 0xf8
jne 0x10100122
mov eax, dword [str..detour]
add esi, 0xf8
mov dword [esp + 0x20], eax
xorps xmm0, xmm0
mov eax, dword [0x10271424]
mov dword [esp + 0x24], eax
mov eax, esi
sub eax, dword [esp + 0x18]
add eax, 0x28
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], eax
lea eax, [ebx + 0x58]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x14]
push eax
push 0x28
lea eax, [esp + 0x28]
movlpd qword [esp + 0x3c], xmm0
push eax
push esi
push edi
movlpd qword [esp + 0x50], xmm0
mov dword [esp + 0x58], 0
call ebp
test eax, eax
je 0x10100122
cmp dword [esp + 0x14], 0x28
jne 0x10100122
lea eax, [ebx + 0x58]
mov dword [esp + 0x48], 0x40
mov dword [esp + 0x54], eax
xorps xmm0, xmm0
lea eax, [esp + 0x14]
movlpd qword [esp + 0x58], xmm0
push eax
push 0x40
lea eax, [esp + 0x50]
movlpd qword [esp + 0x68], xmm0
push eax
add esi, 0x28
movlpd qword [esp + 0x74], xmm0
push esi
push edi
movlpd qword [esp + 0x84], xmm0
movlpd qword [esp + 0x8c], xmm0
movlpd qword [esp + 0x94], xmm0
mov dword [esp + 0x60], 0x727444
mov dword [esp + 0x64], 0x40
call ebp
test eax, eax
je 0x10100122
cmp dword [esp + 0x14], 0x40
jne 0x10100122
lea eax, [ebx + 0x18]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], eax
add esi, 0x40
mov eax, dword [esp + 0x1c]
movups xmm0, xmmword [eax]
lea eax, [esp + 0x14]
push eax
push 0x18
lea eax, [esp + 0x90]
push eax
push esi
push edi
movups xmmword [esp + 0xa4], xmm0
call ebp
test eax, eax
je 0x10100122
cmp dword [esp + 0x14], 0x18
jne 0x10100122
lea eax, [esp + 0x14]
push eax
push ebx
push dword [esp + 0x1e8]
lea ecx, [esi + 0x18]
push ecx
push edi
call ebp
test eax, eax
je 0x10100122
cmp dword [esp + 0x14], ebx
jne 0x10100122
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1cc
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1cc
ret 8
Function at 0x10100140
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, dword [ebp + 0x1c]
lea edx, [esp - 0x10]
sub esp, 0x20
mov ecx, dword [ebp + 0x34]
or eax, 4
test ecx, ecx
cmove ecx, dword [sym.imp.KERNEL32.dll_CreateProcessW]
push edx
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call ecx
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x1010018a
movups xmm0, xmmword [esp + 0x10]
movups xmmword [ecx], xmm0
test eax, eax
je 0x101001c3
mov ecx, dword [ebp + 0x30]
lea edx, [esp + 8]
mov eax, dword [esp + 8]
test ecx, ecx
cmovne eax, ecx
mov dword [esp + 8], eax
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x10]
setne al
push eax
call fcn.101004f0
test eax, eax
jne 0x101001cb
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x30
test byte [ebp + 0x1c], 4
jne 0x101001db
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov esp, ebp
pop ebp
ret 0x30

Function at 0x101001f0
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, dword [ebp + 0x1c]
lea edx, [esp - 0x10]
sub esp, 0x20
mov ecx, dword [ebp + 0x34]
or eax, 4
test ecx, ecx
cmove ecx, dword [sym.imp.KERNEL32.dll_CreateProcessA]
push edx
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call ecx
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x1010023a
movups xmm0, xmmword [esp + 0x10]
movups xmmword [ecx], xmm0
test eax, eax
je 0x10100273
mov ecx, dword [ebp + 0x30]
lea edx, [esp + 8]
mov eax, dword [esp + 8]
test ecx, ecx
cmovne eax, ecx
mov dword [esp + 8], eax
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x10]
setne al
push eax
call fcn.101004f0
test eax, eax
jne 0x1010027b
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x30
test byte [ebp + 0x1c], 4
jne 0x1010028b
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov esp, ebp
pop ebp
ret 0x30
Function at 0x10100f80
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x5c
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
test esi, esi
jne 0x10100fa1
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x5c
ret 4
push 0x1c
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0
push eax
xorps xmm0, xmm0
push esi
push edi
movups xmmword [esp + 0x1c], xmm0
movq qword [esp + 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x10101035
push 0
push 0x40
lea eax, [esp + 0x30]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x10101035
mov eax, 0x5a4d
cmp word [esp + 0x28], ax
jne 0x1010102a
mov eax, dword [esp + 0x64]
cmp eax, dword [esp + 0x18]
ja 0x1010102a
cmp eax, 0x40
jb 0x1010102a
mov ebx, dword [esp + 0x6c]
add eax, esi
push 0
push 0xf8
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x10101035
cmp dword [ebx], 0x4550
jne 0x1010102a
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x5c
ret 4
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x5c
ret 4
Function at 0x10101ab0
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10320e8c], eax
je 0x10101ac6
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x10320ea8]
push edi
test esi, esi
je 0x10101b3b
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop word [eax + eax]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [esi + 0xc]
call ebp
cmp dword [esi + 4], 0
jne 0x10101b27
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x10101b27
push 0x48
push 0
mov edi, ebx
push ebx
and edi, 0xffff0000
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 8]
add esp, 0xc
mov dword [ebx + 0x40], eax
mov dword [edi + 8], ebx
mov dword [esi + 0x10], 0
mov edi, dword [esi]
push 0x18
push esi
call fcn.1006e6d7
add esp, 8
mov esi, edi
test edi, edi
jne 0x10101ae0
pop ebp
mov dword [0x10320ea8], 0
call fcn.10102200
mov edi, dword [0x10320ea0]
test edi, edi
je 0x10101b78
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
nop word [eax + eax]
push dword [edi + 4]
call ebx
mov esi, dword [edi]
push 8
push edi
call fcn.1006e6d7
add esp, 8
mov edi, esi
test esi, esi
jne 0x10101b60
pop edi
pop esi
mov dword [0x10320ea0], 0
xor eax, eax
mov dword [0x10320e8c], 0
pop ebx
pop ecx
ret
Function at 0x10102290
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1029b6a0
push 0x1024778b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x10102332
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x10102332
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x10102332
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x10102332
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x101023f0
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x10320e88]
test eax, eax
jne 0x10102465
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, dword [esp + 8]
cmp esi, eax
jne 0x1010240e
xor eax, eax
pop esi
ret 4
push edi
push 8
call fcn.1006e6a7
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10102451
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 8
push edi
call fcn.1006e6d7
add esp, 8
mov dword [0x10320e88], esi
mov eax, esi
mov dword [0x10320e94], 0
pop edi
pop esi
ret 4
mov eax, dword [0x10320ea0]
mov dword [edi + 4], esi
mov dword [edi], eax
xor eax, eax
mov dword [0x10320ea0], edi
pop edi
pop esi
ret 4
Function at 0x10102470
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10320e8c], eax
je 0x10102488
mov eax, 0x10dd
pop ecx
ret 8
mov eax, dword [0x10320e88]
test eax, eax
jne 0x1010264f
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x101024a6
lea eax, [edi + 0x57]
pop edi
pop ecx
ret 8
push ebx
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x101024c4
cmp dword [ebx], 0
jne 0x101024cf
mov dword [0x10320e88], 6
mov dword [0x10320e94], ebx
pop ebx
mov eax, 6
pop edi
pop ecx
ret 8
push ebp
push esi
push 0x18
call fcn.1006e6a7
mov esi, dword [ebx]
add esp, 4
mov ebp, eax
test esi, esi
je 0x1010254a
cmp byte [esi], 0xff
jne 0x10102508
cmp byte [esi + 1], 0x25
jne 0x10102508
mov eax, dword [esi + 2]
mov ecx, esi
mov edx, eax
mov dword [esp + 0x1c], eax
call fcn.10102290
test al, al
je 0x10102508
mov esi, dword [esp + 0x1c]
mov esi, dword [esi]
cmp byte [esi], 0xeb
jne 0x1010254a
movsx eax, byte [esi + 1]
add esi, 2
add esi, eax
mov al, byte [esi]
cmp al, 0xff
jne 0x1010253e
cmp byte [esi + 1], 0x25
jne 0x1010253e
mov eax, dword [esi + 2]
mov ecx, esi
mov edx, eax
mov dword [esp + 0x1c], eax
call fcn.10102290
test al, al
je 0x1010254a
mov esi, dword [esp + 0x1c]
mov esi, dword [esi]
jmp 0x1010254a
cmp al, 0xe9
jne 0x1010254a
mov eax, dword [esi + 1]
add esi, 5
add esi, eax
cmp byte [edi], 0xff
jne 0x1010256f
cmp byte [edi + 1], 0x25
jne 0x1010256f
mov eax, dword [edi + 2]
mov ecx, edi
mov edx, eax
mov dword [esp + 0x1c], eax
call fcn.10102290
test al, al
je 0x1010256f
mov edi, dword [esp + 0x1c]
mov edi, dword [edi]
cmp byte [edi], 0xeb
jne 0x101025b1
movsx eax, byte [edi + 1]
add edi, 2
add edi, eax
mov al, byte [edi]
cmp al, 0xff
jne 0x101025a5
cmp byte [edi + 1], 0x25
jne 0x101025a5
mov eax, dword [edi + 2]
mov ecx, edi
mov edx, eax
mov dword [esp + 0x1c], eax
call fcn.10102290
test al, al
je 0x101025b1
mov edi, dword [esp + 0x1c]
mov edi, dword [edi]
jmp 0x101025b1
cmp al, 0xe9
jne 0x101025b1
mov eax, dword [edi + 1]
add edi, 5
add edi, eax
movzx eax, byte [esi + 0x36]
mov ecx, dword [esi + 0x40]
sub ecx, eax
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x10102624
cmp eax, 0x1e
ja 0x10102624
cmp dword [esi + 0x44], edi
jne 0x10102624
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
push 0x40
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x101025f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10102632
mov eax, dword [esp + 0x1c]
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], ebx
mov dword [ebp + 0x10], esi
mov dword [ebp + 4], 1
mov eax, dword [esp + 0x10]
mov dword [ebp + 0x14], eax
mov eax, dword [0x10320ea8]
pop esi
mov dword [ebp], eax
xor eax, eax
mov dword [0x10320ea8], ebp
pop ebp
pop ebx
pop edi
pop ecx
ret 8
cmp dword [0x10320ea4], 0
mov esi, 9
jne 0x10102638
mov dword [0x10320e88], esi
push 0x18
push ebp
call fcn.1006e6d7
add esp, 8
mov dword [0x10320e94], ebx
mov eax, esi
pop esi
pop ebp
pop ebx
pop edi
pop ecx
ret 8
Function at 0x10102660
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
cmp dword [0x10320e8c], 0
jne 0x101026d7
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x10320e8c
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x101026d7
push esi
mov esi, dword [0x10320e98]
mov dword [0x10320ea8], eax
mov dword [0x10320ea0], eax
mov dword [0x10320e94], eax
push edi
test esi, esi
je 0x101026bd
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call edi
test eax, eax
je 0x101026c8
mov esi, dword [esi + 4]
test esi, esi
jne 0x101026a3
xor eax, eax
pop edi
mov dword [0x10320e88], eax
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [0x10320e88], eax
pop esi
pop ecx
ret
mov eax, 0x10dd
pop ecx
ret

Function at 0x101033a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1029b700
push 0x1024778b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, ecx
mov dword [ebp - 0x1c], ecx
test eax, eax
jne 0x101033d9
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x101033f4
push 0xc1
jmp 0x101034da
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x1010340b
push 0xbf
jmp 0x101034da
movzx eax, word [ebx + 0x14]
test ax, ax
je 0x101034d5
lea ecx, [ebx + 0x18]
add ecx, eax
mov dword [ebp - 0x24], ecx
xor esi, esi
mov dword [ebp - 0x20], esi
movzx eax, word [ebx + 6]
cmp esi, eax
jae 0x101034d5
lea eax, [esi + esi*4]
lea edi, [ecx + eax*8]
mov ecx, str..detour
mov eax, edi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10103460
test dl, dl
je 0x1010345c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10103460
add eax, 2
add ecx, 2
test dl, dl
jne 0x10103440
xor eax, eax
jmp 0x10103465
sbb eax, eax
or eax, 1
test eax, eax
jne 0x101034b6
mov eax, dword [edi + 0xc]
test eax, eax
je 0x101034d5
cmp dword [edi + 0x10], 0
je 0x101034d5
mov esi, dword [ebp - 0x1c]
add esi, eax
mov eax, dword [esi]
cmp eax, 0x40
jb 0x101034d5
cmp dword [esi + 4], 0x727444
jne 0x101034d5
cmp dword [esi + 8], 0
jne 0x10103494
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc esi
mov ecx, dword [ebp - 0x24]
jmp 0x10103422
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10103540
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1029b730
push 0x1024778b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
lea esi, [ecx + 0x10000]
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], 0
mov edi, 0x5a4d
push 0x1c
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x101035a6
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x24], 0x1000
jne 0x1010362b
cmp byte [ebp - 0x20], 1
je 0x1010362b
test dword [ebp - 0x20], 0x100
jne 0x1010362b
mov dword [ebp - 4], 0
cmp word [esi], di
jne 0x101035e0
mov eax, dword [esi + 0x3c]
cmp eax, dword [ebp - 0x28]
ja 0x101035e0
cmp eax, 0x40
jb 0x101035e0
cmp dword [eax + esi], 0x4550
je 0x101035ef
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x28]
add esi, dword [ebp - 0x34]
jmp 0x10103584
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x28]
add esi, dword [ebp - 0x34]
jmp 0x10103584
Function at 0x10103bd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1029b760
push 0x1024778b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, ecx
test eax, eax
jne 0x10103c03
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], 0
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10103c1b
push 0xc1
jmp 0x10103c74
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
je 0x10103c2f
push 0xbf
jmp 0x10103c74
cmp word [esi + 0x14], 0
je 0x10103c6f
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x50]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1010b830
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10252e79
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
mov dword [ebp - 0x10], 0
push esi
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], str.e:watermarkmodulecommon_vendorincludegoogleprotobufgenerated_message_util.cc
mov dword [ebp - 0x2c], 0x4d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push 0x15
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push str.CHECK_failed:_false:
mov dword [ebp - 0x10], 1
call fcn.1001c410
mov edx, dword [ebp + 8]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1010b8a2
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.1001c410
push 1
push 0x10267f24
lea ecx, [ebp - 0x28]
call fcn.1001c410
push dword [ebp + 0xc]
lea eax, [ebp - 0xb4]
push 0x10272bec
push 0x80
push eax
call fcn.10041c90
lea eax, [ebp - 0xb4]
mov byte [ebp - 0x35], 0
add esp, 0x10
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1010b8f0
sub eax, edx
lea ecx, [ebp - 0x28]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.1001c410
lea ecx, [ebp - 0x34]
call sym.WMCommon.dll_private:_void___thiscall_google::protobuf::internal::LogMessage::Finish_void_
lea ecx, [ebp - 0x34]
call sym.WMCommon.dll_public:_void___thiscall_google::protobuf::internal::LogMessage::destructor_void_
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3