joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4029a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
push ebp
push esi
push edi
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4029c5
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor al, al
pop edi
pop esi
pop ebp
add esp, 0x10
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebp
push eax
call fcn.0040c550
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x10]
push eax
push 1
xor edi, edi
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x402b0c
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x402b0c
push eax
push ebx
call fcn.00401420
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebx + 0x18], 0x20
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jne 0x402b03
cmp eax, edi
mov dword [esp + 0xc], edi
jle 0x402b03
xor ebp, ebp
cmp dword [esp + 0x14], ebp
jle 0x402af2
mov eax, dword [ebx + 0x18]
imul eax, dword [esp + 0xc]
cdq
and edx, 7
add eax, edx
mov edx, dword [ebx + 0x14]
imul edx, ebp
mov ecx, eax
sar ecx, 3
add ecx, edx
add ecx, dword [ebx + 8]
mov eax, 0x80808081
movzx edi, byte [ecx + 3]
movzx esi, byte [ecx]
imul esi, edi
add esi, 0x7f
imul esi
add edx, esi
movzx esi, byte [ecx + 1]
sar edx, 7
imul esi, edi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx], al
add esi, 0x7f
mov eax, 0x80808081
imul esi
add edx, esi
movzx esi, byte [ecx + 2]
sar edx, 7
imul esi, edi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx + 1], al
add esi, 0x7f
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
inc ebp
cmp ebp, dword [esp + 0x14]
mov byte [ecx + 2], al
jl 0x402a63
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
inc ecx
cmp ecx, eax
mov dword [esp + 0xc], ecx
jl 0x402a57
mov al, 1
pop edi
pop esi
pop ebp
add esp, 0x10
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x10
ret
Function at 0x4039f0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x417b68
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x41f280]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], ax
call fcn.00403070
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403a43
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.00403ad0
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.00403070
cmp dword [esp + 0x24], 8
jb 0x403a8d
mov eax, dword [esp + 0x10]
push eax
call fcn.0040a52c
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x403d50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403d67
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403d98
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x403d94
cmp esi, eax
jae 0x403d98
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x403d84
cmp esi, eax
jb 0x403d9e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x404ef0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x41f280]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
call dword [sym.imp.ole32.dll_OleInitialize]
call fcn.004052b0
xor eax, eax
mov dword [esp + 0x44], esi
mov word [esp + 0x34], ax
mov dword [esp + 0x10], esi
push 3
mov eax, 0x41af88
lea esi, [esp + 0x34]
mov dword [esp + 0x4c], 7
call fcn.00404b10
mov ecx, esi
mov ebx, 0x41b2ac
lea esi, [esp + 0x14]
call fcn.004039f0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.00403070
mov esi, 8
cmp dword [esp + 0x2c], esi
jb 0x404f7c
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040a52c
add esp, 4
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], esi
jae 0x404f8a
lea eax, [esp + 0x34]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x404fe1
mov edx, dword [ebp + 0x14]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x42166c
push 0x67
push edi
mov dword [0x421664], edi
mov dword [0x421668], edx
call esi
push 0x64
push 0x421734
push 0x6d
push edi
call esi
mov eax, edi
call fcn.00405030
call fcn.004048b0
mov esi, eax
jmp 0x404fe5
mov esi, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.00405210
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x48], 8
jb 0x405011
mov eax, dword [esp + 0x34]
push eax
call fcn.0040a52c
add esp, 4
mov ecx, dword [esp + 0x4c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0040a537
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4069c0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x41f280]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x406a3a
xor eax, eax
cmp ecx, ebp
je 0x406a22
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x406a48
cmp ecx, ebp
je 0x406adb
push ecx
jmp 0x406ad5
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x406aaa
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.004069c0
mov ebx, eax
cmp ebx, ebp
jne 0x406af8
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x406a70
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x406abd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.00406b70
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x406adb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a537
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x406b07
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x406add
Function at 0x4075f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x417e70
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x41f280]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x40766f
call fcn.00405dd0
mov esi, eax
jmp 0x407751
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x40768b
call fcn.00405dd0
jmp 0x407748
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x4076a4
call fcn.00405dd0
jmp 0x407748
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x4076d8
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x4076c6
lea eax, [ebp]
call fcn.004064f0
lea esi, [ebp - 0x1c]
call fcn.004046e0
mov eax, 0x8007000e
jmp 0x407763
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00405d90
mov dword [ebp - 4], 1
jmp 0x407701
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x40770f
mov esi, 0x8007000e
jmp 0x40774a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x40772d
call fcn.00405dd0
jmp 0x407748
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.004074a0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x407761
lea eax, [ebp]
call fcn.004064f0
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 + 0x404]
xor ecx, ebp
call fcn.0040a537
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407ae0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x417dc1
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x41f280]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41f280]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x26c]
xor ebx, ebx
mov eax, 1
mov dword [esp + 0x14], ebx
test byte [0x421980], al
jne 0x407b60
or dword [0x421980], eax
xor eax, eax
push 0x418320
mov dword [0x42197c], 7
mov dword [0x421978], ebx
mov word [0x421968], ax
call fcn.0040af73
add esp, 4
cmp dword [0x421978], ebx
je 0x407b7a
push 0xffffffffffffffff
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], ebx
push ebx
jmp 0x407cc2
push ebx
push 0x1a
lea edx, [esp + 0x58]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x50]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407b90
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x54]
mov esi, 0x421964
call fcn.00404b10
mov edi, esi
lea eax, [esp + 0x34]
call fcn.00407a70
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov dword [esp + 0x270], ebx
call fcn.00403070
mov edi, 8
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x4c], edi
jb 0x407bee
mov eax, dword [esp + 0x38]
push eax
call fcn.0040a52c
add esp, 4
mov ebx, 0x41af88
mov ecx, 0x421964
lea esi, [esp + 0x34]
call fcn.004039f0
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x421964
mov dword [esp + 0x270], 1
call fcn.00403070
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x4c], edi
jb 0x407c39
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0040a52c
add esp, 4
mov ebx, 0x41b4ec
mov ecx, 0x421964
lea esi, [esp + 0x18]
call fcn.004039f0
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x421964
mov dword [esp + 0x270], 2
call fcn.00403070
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x30], edi
jb 0x407c84
mov edx, dword [esp + 0x1c]
push edx
call fcn.0040a52c
add esp, 4
xor eax, eax
cmp dword [0x42197c], edi
mov edi, dword [0x421968]
mov esi, 7
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
jae 0x407caf
mov edi, 0x421968
call fcn.00407d00
push 0xffffffffffffffff
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], 0
push 0
xor ecx, ecx
mov word [ebp + 4], cx
push 0x421964
mov ecx, ebp
call fcn.00403070
mov eax, ebp
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0040a537
add esp, 0x254
ret
Function at 0x407d00
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x417c78
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x41f280]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
mov eax, dword [0x41f280]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
xor ebx, ebx
cmp edi, ebx
je 0x407dbd
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call ebp
xor eax, eax
mov word [esp + 0x30], ax
mov eax, edi
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407d60
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x30]
call fcn.00404b10
mov dword [esp + 0x54], ebx
push 0x41b4ec
mov ebx, 1
xor eax, eax
mov edx, esi
call fcn.00404a30
mov esi, eax
cmp esi, 0xffffffff
jne 0x407dc4
push edi
call ebp
test eax, eax
jne 0x407e50
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407e50
lea ecx, [esp + 0x2c]
call fcn.00402d80
xor al, al
jmp 0x407e7d
lea ecx, [esp + 0x2c]
lea ebp, [esi + 1]
push ecx
mov ecx, ebp
xor edx, edx
lea esi, [esp + 0x14]
call fcn.00407ee0
mov eax, dword [esp + 0x14]
mov esi, 8
cmp dword [esp + 0x28], esi
jae 0x407dec
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407e16
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], esi
jae 0x407e05
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407e9b
push 0x41b4ec
mov ebx, 1
mov eax, ebp
lea edx, [esp + 0x30]
call fcn.00404a30
cmp dword [esp + 0x28], 8
mov esi, eax
jb 0x407e41
mov edx, dword [esp + 0x14]
push edx
call fcn.0040a52c
add esp, 4
cmp esi, 0xffffffff
jne 0x407dc4
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call ebp
test eax, eax
jne 0x407e67
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407db4
cmp dword [esp + 0x44], 8
jb 0x407e7b
mov eax, dword [esp + 0x30]
push eax
call fcn.0040a52c
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0040a537
add esp, 0x48
ret
cmp dword [esp + 0x28], esi
jb 0x407eae
mov eax, dword [esp + 0x14]
push eax
call fcn.0040a52c
add esp, 4
xor ecx, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], cx
cmp dword [esp + 0x44], esi
jb 0x407ed8
mov edx, dword [esp + 0x30]
push edx
call fcn.0040a52c
add esp, 4
xor al, al
jmp 0x407e7d
Function at 0x408560
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
cmp dword [esi + 0x70], 0
jne 0x408575
xor al, al
pop esi
add esp, 0x20
ret 4
push 0
lea eax, [esp + 0x18]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edx, dword [esi + 0x70]
lea ecx, [esp + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 8]
sub eax, dword [esp + 0x10]
push 0x41
add eax, dword [esp + 0x24]
push 0
cdq
sub eax, edx
sar eax, 1
push 0
push eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x1c]
add eax, dword [esp + 0x2c]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esi + 0x70]
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x70]
push ecx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x70]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov al, 1
pop esi
add esp, 0x20
ret 4
Function at 0x408c20
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [ebx + 0x6c]
mov ecx, dword [eax]
push esi
push edi
mov edi, dword [ebx + 0x58]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
jmp 0x408c40
mov esi, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x58]
test edi, edi
je 0x408c4e
cmp edi, eax
je 0x408c53
call fcn.0040ac37
cmp dword [esp + 0xc], esi
je 0x408d7f
test edi, edi
jne 0x408d74
call fcn.0040ac37
xor eax, eax
mov edx, dword [esp + 0xc]
cmp edx, dword [eax + 0x14]
jne 0x408c7a
call fcn.0040ac37
mov eax, dword [esp + 0xc]
mov edi, dword [eax + 8]
mov eax, dword [edi + 0x24]
mov dword [edi + 0xc], 1
test eax, eax
je 0x408c96
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [edi + 8]
lea esi, [edi + 4]
mov dword [esi + 8], 1
test eax, eax
je 0x408cd7
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x408cc6
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [edi + 0x24]
mov dword [edi + 0xc], 1
test eax, eax
je 0x408cec
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 4]
mov dword [esi + 8], 1
test eax, eax
je 0x408d2a
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x408d19
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x408d38
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00408e70
push edi
call fcn.0040a52c
mov eax, dword [esp + 0xc]
add esp, 4
test eax, eax
jne 0x408d7b
call fcn.0040ac37
xor eax, eax
mov esi, dword [esp + 0xc]
cmp esi, dword [eax + 0x14]
jne 0x408d65
call fcn.0040ac37
mov edx, dword [esi]
mov edi, dword [esp + 8]
mov dword [esp + 0xc], edx
jmp 0x408c40
mov eax, dword [edi]
jmp 0x408c6c
mov eax, dword [eax]
jmp 0x408d57
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [ebx + 0x6c]
mov dword [ecx + 4], ecx
xor ecx, ecx
mov dword [ebx + 0x70], ecx
cmp eax, dword [ebx + 0x6c]
je 0x408db5
mov esi, dword [eax]
push eax
call fcn.0040a52c
add esp, 4
mov eax, esi
cmp esi, dword [ebx + 0x6c]
jne 0x408d96
mov dword [ebx + 0x50], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov dword [ebx + 0x50], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408e70
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x417ffb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x41f280]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CThreadHolder.0
mov dword [esp + 0x14], 0
mov eax, dword [esi + 4]
mov dword [esi + 8], 1
test eax, eax
je 0x408ee1
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x408ed0
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
cmp dword [esi + 0x14], 0
jne 0x408ef2
push esi
call fcn.00408fc0
call fcn.00409040
mov dword [esp + 0x14], 0xffffffff
mov esi, dword [esi + 0x18]
sub esi, 0x10
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x408f19
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x409b40
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
push esi
lea eax, [esp + 4]
push eax
push 0x20
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x409bac
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push esi
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
push esi
push esi
push 0x10
lea edx, [esp + 0x14]
push edx
push esi
push eax
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x14
ret

Function at 0x40a537
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f280]
jne 0x40a541
repz ret
jmp fcn.0040cc07

Function at 0x4128fe
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040e0ad
and dword [ebp - 4], 0
cmp dword [0x4214fc], 0
mov ebx, eax
jne 0x4129af
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x412a60
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x412a60
push eax
call fcn.0040e03b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4214fc], eax
call esi
push eax
call fcn.0040e03b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x421500], eax
call esi
push eax
call fcn.0040e03b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x421504], eax
call esi
push eax
call fcn.0040e03b
pop ecx
mov dword [0x42150c], eax
test eax, eax
je 0x4129af
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040e03b
pop ecx
mov dword [0x421508], eax
mov eax, dword [0x421508]
cmp eax, ebx
je 0x412a07
cmp dword [0x42150c], ebx
je 0x412a07
push eax
call fcn.0040e0b6
push dword [0x42150c]
mov esi, eax
call fcn.0040e0b6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x412a07
test edi, edi
je 0x412a07
call esi
test eax, eax
je 0x4129fe
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4129fe
test byte [ebp - 0xc], 1
jne 0x412a07
or dword [ebp + 0x10], 0x200000
jmp 0x412a40
mov eax, dword [0x421500]
cmp eax, ebx
je 0x412a40
push eax
call fcn.0040e0b6
pop ecx
test eax, eax
je 0x412a40
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x412a40
mov eax, dword [0x421504]
cmp eax, ebx
je 0x412a40
push eax
call fcn.0040e0b6
pop ecx
test eax, eax
je 0x412a40
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4214fc]
call fcn.0040e0b6
pop ecx
test eax, eax
je 0x412a60
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x412a62
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret