joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b10c
Capabilities:
Create process on windows
Resume thread

Disassembly:
push 0x9c
mov eax, 0x414c18
call fcn.00411c50
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x70], eax
movzx eax, byte [ebp + 0x20]
push 0x44
shl eax, 4
pop esi
add eax, 0x404
push esi
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x6c]
push 0
push eax
call sub.msvcrt.dll_memset
or dword [ebp - 0x40], 1
lea edi, [ebp - 0x28]
and dword [ebp - 0x18], 0
xor eax, eax
or dword [ebp - 0x14], 0xffffffff
add esp, 0xc
stosd dword es:[edi], eax
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x64], str.WinSta0Default
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ax, word [ebp + 0x1c]
xor edi, edi
mov word [ebp - 0x3c], ax
and dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x14]
push ecx
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40b250
push 1
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x40b250
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x90]
push ebx
call fcn.00401a6b
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.0040b44e
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x40b1e1
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
xor ebx, ebx
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push dword [ebp - 0x70]
push edi
push dword [ebp - 0x74]
push ebx
push ebx
push ebx
push eax
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
lea ecx, [ebp - 0xa8]
mov edi, eax
call fcn.004024e1
lea ecx, [ebp - 0x90]
call fcn.004024e1
test edi, edi
je 0x40b248
push dword [ebp + 0x18]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
push dword [ebp - 0x28]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x18]
call sub.USERENV.dll_DestroyEnvironmentBlock
test edi, edi
setne bl
cmp dword [ebp - 0x14], 0xffffffff
je 0x40b260
push dword [ebp - 0x14]
call esi
mov al, bl
call fcn.00411bd0
ret
Function at 0x40b372
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x41e098]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov dword [ebp - 0x18], eax
xor esi, esi
lea eax, [ebp - 0x10]
mov dword [ebp - 8], esi
push eax
mov dword [ebp - 0xc], esi
call fcn.0040b4c2
mov ebx, eax
test ebx, ebx
je 0x40b408
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 1
push esi
push esi
call sub.WTSAPI32.dll_WTSEnumerateProcessesW
test eax, eax
je 0x40b3fc
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x40b3fc
mov edi, esi
mov edx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov eax, dword [edi + edx]
cmp eax, dword [ebp - 0x10]
jne 0x40b3f4
mov eax, dword [edi + edx + 8]
test eax, eax
je 0x40b3f4
push eax
push str.winlogon.exe
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
je 0x40b428
mov ecx, dword [ebp - 0xc]
inc esi
add edi, 0x10
cmp esi, ecx
jb 0x40b3ca
push 0x490
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
cmp dword [ebp - 8], 0
je 0x40b416
push dword [ebp - 8]
call sub.WTSAPI32.dll_WTSFreeMemory
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004130e2
leave
ret 0x14
mov eax, dword [ebp - 0x14]
cmp dword [edi + eax + 4], 0xffffffff
je 0x40b3fc
push dword [ebp - 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp + 8]
push dword [edi + eax + 4]
call fcn.0040b268
mov ebx, eax
jmp 0x40b407

Function at 0x40ba21
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x41e098]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
xor ecx, ecx
push eax
push ecx
push ecx
push 3
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x7a
sete bl
jne 0x40bad1
push esi
push dword [ebp - 8]
lea ecx, [ebp - 0xc]
call fcn.004093b4
mov esi, dword [ebp - 0xc]
test al, al
je 0x40babd
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, eax
test ebx, ebx
je 0x40bac5
xor ebx, ebx
mov eax, ebx
cmp dword [esi], ebx
jbe 0x40baa2
movzx edx, byte [ebp + 0xc]
lea ecx, [esi + 0xc]
add edx, edx
mov dword [ecx], edx
inc eax
lea ecx, [ecx + 0xc]
cmp eax, dword [esi]
jb 0x40ba98
push ebx
push ebx
push ebx
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
jmp 0x40bac5
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x40bad0
push esi
call sub.msvcrt.dll_free
pop ecx
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.004130e2
leave
ret 8
Function at 0x40be15
Capabilities:
Get file attributes

Disassembly:
push 0x1c
mov eax, 0x414dcb
call fcn.00411c50
mov edi, ecx
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
xor ebx, ebx
mov dword [ebp - 0x14], 7
push ebx
xor eax, eax
mov dword [ebp - 0x18], ebx
push 0x106
mov word [ebp - 0x28], ax
call fcn.004025bc
push 8
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x28]
pop ebx
cmp dword [ebp - 0x14], ebx
jb 0x40be57
mov eax, dword [ebp - 0x28]
push 0x22
pop ecx
mov word [eax], cx
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffffe
cmp dword [ebp - 0x14], ebx
jb 0x40be6e
mov eax, dword [ebp - 0x28]
push ecx
add eax, 2
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
inc eax
lea ecx, [ebp - 0x28]
cmp eax, dword [ebp - 0x18]
ja 0x40be98
cmp dword [ebp - 0x14], ebx
jb 0x40be8d
mov ecx, dword [ebp - 0x28]
xor edx, edx
mov dword [ebp - 0x18], eax
mov word [ecx + eax*2], dx
jmp 0x40bea3
sub eax, dword [ebp - 0x18]
push 0
push eax
call fcn.00402561
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], ebx
jb 0x40beae
mov eax, dword [ebp - 0x28]
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x40bee6
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], ebx
jb 0x40bec7
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
push 0x22
pop edx
mov word [ecx + eax*2], dx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], ebx
jb 0x40bedc
mov eax, dword [ebp - 0x28]
push eax
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call dword [sym.imp.SHELL32.dll_DragFinish]
lea ecx, [ebp - 0x28]
call fcn.004024e1
xor eax, eax
call fcn.00411bd0
ret 0x10
Function at 0x40d19c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x41e098]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x40d220
cmp byte [esi + 0x3d], 0
je 0x40d220
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40d1f2
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x40d1f6
sub eax, 1
je 0x40d1fa
dec eax
sub eax, 1
je 0x40d220
xor al, al
jmp 0x40d222
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40d217
push dword [esi + 0x4c]
push edi
push 1
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
cmp edi, eax
jne 0x40d1f2
cmp byte [esi + 0x3d], 0
sete al
jmp 0x40d222
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004130e2
leave
ret

Function at 0x40f4b7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x41e098]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40f4da
xor eax, eax
jmp 0x40f5a1
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40f506
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40f506
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x40f599
cmp dword [esi + 0x4c], 0
je 0x40f59d
mov ecx, esi
call fcn.0040d9ba
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x40f526
push dword [esi + 0x4c]
push eax
jmp 0x40f560
mov byte [ebp - 0x28], al
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x40f59d
cmp eax, 1
jle 0x40f570
cmp eax, 3
jne 0x40f59d
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00404082
pop ecx
pop ecx
test al, al
jne 0x40f599
or ebx, 0xffffffff
jmp 0x40f599
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40f58d
push dword [esi + 0x4c]
push edi
push 1
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
cmp edi, eax
jne 0x40f59d
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x40f59d
mov eax, ebx
jmp 0x40f5a0
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004130e2
leave
ret 4
Function at 0x410f92
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x410fb4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00411070
jmp 0x41106b
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x410fd5
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x410fd7
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x41105f
jg 0x410fea
test esi, esi
je 0x41105f
test ecx, ecx
jl 0x41102c
jg 0x410ff4
test eax, eax
je 0x41102c
cmp ebx, ecx
jg 0x411006
jl 0x410ffe
cmp esi, eax
jae 0x411006
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x411032
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x41105f
jg 0x41103c
test esi, esi
je 0x41105f
cmp dword [edi + 0x4c], 0
je 0x41105f
mov ecx, edi
call fcn.0040d9ba
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call sub.msvcrt.dll_fread
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
leave
ret 0xc

Function at 0x41113f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x411161
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00411213
jmp 0x41120e
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x411182
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x411184
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x411202
jg 0x411197
test esi, esi
je 0x411202
test ecx, ecx
jl 0x4111db
jg 0x4111a1
test eax, eax
je 0x4111db
cmp edi, ecx
jg 0x4111b3
jl 0x4111ab
cmp esi, eax
jae 0x4111b3
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x4111de
mov edx, dword [ebp + 8]
test edi, edi
jl 0x411202
jg 0x4111e8
test esi, esi
je 0x411202
cmp dword [ebx + 0x4c], 0
je 0x411202
push dword [ebx + 0x4c]
push esi
push 1
push edx
call sub.msvcrt.dll_fwrite
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x411e60
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
add eax, 0x18
add eax, ecx
movzx ecx, word [ecx + 6]
lea ecx, [ecx + ecx*4]
lea edi, [eax + ecx*8]
cmp eax, edi
je 0x411e9e
mov esi, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
cmp esi, edx
jb 0x411e97
mov ecx, dword [eax + 8]
add ecx, edx
cmp esi, ecx
jb 0x411ea0
add eax, 0x28
cmp eax, edi
jne 0x411e87
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x413750
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x41e098]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x413777
mov ecx, 5
int 0x29
push 2
call fcn.00412750
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x413882
test esi, esi
jne 0x413882
push 2
call fcn.00412750
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004130e2
mov esp, ebp
pop ebp
ret
Function at 0x40d38b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a548]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004086b1
mov dword [ebp - 0x14], eax
cmp dword [0x4320bc], esi
jne 0x40d47e
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d40b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d55e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d55e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d55e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4320bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4320c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4320c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4320cc], eax
test eax, eax
je 0x40d47b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4320c8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d4a3
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d496
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d4b8
push 4
pop eax
jmp 0x40d560
cmp dword [ebp - 0x14], esi
je 0x40d4b8
push dword [0x4320bc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d49d
mov eax, dword [0x4320c8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d516
cmp dword [0x4320cc], edi
je 0x40d516
push eax
call ebx
push dword [0x4320cc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d516
test eax, eax
je 0x40d516
call ecx
test eax, eax
je 0x40d50b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d50b
test byte [ebp - 8], 1
jne 0x40d516
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d546
mov eax, dword [0x4320c0]
cmp eax, edi
je 0x40d543
push eax
call ebx
test eax, eax
je 0x40d543
call eax
mov esi, eax
test esi, esi
je 0x40d543
mov eax, dword [0x4320c4]
cmp eax, edi
je 0x40d543
push eax
call ebx
test eax, eax
je 0x40d543
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4320bc]
call ebx
test eax, eax
je 0x40d55e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d560
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040437c
mov esp, ebp
pop ebp
ret
Function at 0x100050b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push 0x401000
call fcn.10005390
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.10006050
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x10005111
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, 0x53ec8b55
jne 0x10005123
mov eax, 0x3e9
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x401000
call fcn.10005fe0
cmp eax, 0x16197be9
jne 0x1000513e
mov eax, 0x3ea
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8245bc
call fcn.10005fe0
cmp eax, 0x94bf
jne 0x10005159
mov eax, 0x3f3
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8252fc
call fcn.10005fe0
cmp eax, 0x94bf
jne 0x10005174
mov eax, 0x44d
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x82533c
call fcn.10005fe0
cmp eax, 0x94bf
jne 0x1000518f
mov eax, 0x457
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858d51
call fcn.10005fe0
cmp eax, 0x3539f633
jne 0x100051aa
mov eax, 0xc80
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858c61
call fcn.10005fe0
xor ecx, ecx
mov edx, 0xc8a
cmp eax, 0x3539f633
pop esi
cmove ecx, edx
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x10005890
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor ecx, ecx
mov dword [ebp - 0x10], 0
cmp byte [ebp + 0x14], cl
cmovne ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x100058af
mov byte [ebp - 4], cl
jmp 0x100058cc
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push edx
push 0x40
push ecx
push eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100290c0
add esp, 0xc
cmp byte [ebp - 4], 0
je 0x100058fa
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0x14]
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0x14], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x10005900
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor ecx, ecx
cmp byte [ebp + 0x14], cl
push ebx
cmovne ecx, dword [ebp + 0x10]
push esi
xor esi, esi
mov dword [ebp - 0x10], esi
test ecx, ecx
jne 0x1000591e
xor bl, bl
jmp 0x1000593d
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push edx
push 0x40
push ecx
push eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [ebp - 0x10]
test eax, eax
setne bl
push dword [ebp + 0x10]
mov byte [ebp - 4], bl
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.100290c0
add esp, 0xc
test bl, bl
je 0x1000596a
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0x14]
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0x14], eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005970
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub eax, 1
je 0x100059a4
sub eax, 1
je 0x100059fd
sub eax, 2
je 0x10005a5d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, byte [ebp + 0xc]
mov eax, dword [ebp + 8]
sub bl, al
mov bh, byte [ebp + 0x14]
dec bl
mov dword [ebp - 4], eax
movzx ecx, bh
mov dword [ebp - 0x18], 0
test bh, bh
jne 0x100059c9
mov byte [ebp - 0xc], bh
mov byte [eax], bl
jmp 0x10005a00
lea edx, [ebp - 0x10]
mov dword [ebp - 0x14], ecx
push edx
push 0x40
push ecx
push eax
mov dword [ebp - 0x18], eax
call edi
mov ecx, dword [ebp - 4]
test eax, eax
setne byte [ebp - 0xc]
mov byte [ecx], bl
test eax, eax
je 0x10005a00
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
call edi
jmp 0x10005a00
mov bh, byte [ebp + 0x14]
mov eax, dword [ebp - 8]
sub eax, esi
mov dword [ebp - 0x18], 0
mov esi, dword [ebp + 8]
sub eax, esi
movzx eax, ax
mov dword [ebp - 8], eax
movzx ecx, ax
movzx eax, bh
add eax, eax
jne 0x10005a2a
mov byte [ebp - 0xc], 0
mov word [esi], cx
jmp 0x10005a5d
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call edi
mov ecx, dword [ebp - 8]
test eax, eax
setne byte [ebp - 0xc]
mov word [esi], cx
test eax, eax
je 0x10005a5d
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call edi
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
add eax, esi
mov ebx, dword [ebp + 0xc]
sub ebx, eax
mov dword [ebp - 0x18], 0
movzx eax, byte [ebp + 0x14]
shl eax, 2
test eax, eax
jne 0x10005a88
mov byte [ebp - 0xc], al
mov dword [esi], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call edi
test eax, eax
setne byte [ebp - 0xc]
mov dword [esi], ebx
test eax, eax
je 0x10005ab7
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x18]
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret