joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4037b0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x418878
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x420280]
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.00403080
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403803
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.00403890
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.00403080
cmp dword [esp + 0x24], 8
jb 0x40384d
mov eax, dword [esp + 0x10]
push eax
call fcn.0040b1ea
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 0x403b10
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 0x403b27
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403b58
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x403b54
cmp esi, eax
jae 0x403b58
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x403b44
cmp esi, eax
jb 0x403b5e
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 0x404d10
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x420280]
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.004050d0
xor eax, eax
mov dword [esp + 0x44], esi
mov word [esp + 0x34], ax
mov dword [esp + 0x10], esi
push 8
mov eax, str.cx_vcapp
lea esi, [esp + 0x34]
mov dword [esp + 0x4c], 7
call fcn.004048d0
mov ecx, esi
mov ebx, 0x41c320
lea esi, [esp + 0x14]
call fcn.004037b0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.00403080
mov esi, 8
cmp dword [esp + 0x2c], esi
jb 0x404d9c
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040b1ea
add esp, 4
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], esi
jae 0x404daa
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 0x404e01
mov edx, dword [ebp + 0x14]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x422784
push 0x67
push edi
mov dword [0x42277c], edi
mov dword [0x422780], edx
call esi
push 0x64
push 0x42284c
push 0x6d
push edi
call esi
mov eax, edi
call fcn.00404e50
call fcn.00404670
mov esi, eax
jmp 0x404e05
mov esi, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.00405030
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x48], 8
jb 0x404e31
mov eax, dword [esp + 0x34]
push eax
call fcn.0040b1ea
add esp, 4
mov ecx, dword [esp + 0x4c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0040b1f5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406290
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x4062a0
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4062b0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406790
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x420280]
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 0x40680a
xor eax, eax
cmp ecx, ebp
je 0x4067f2
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 0x406818
cmp ecx, ebp
je 0x4068ab
push ecx
jmp 0x4068a5
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 0x40687a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00406790
mov ebx, eax
cmp ebx, ebp
jne 0x4068c8
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 0x406840
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40688d
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.00406940
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4068ab
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.0040b1f5
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4068d7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x4068ad
Function at 0x4073c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x418ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x420280]
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 0x40743f
call fcn.00405bc0
mov esi, eax
jmp 0x407521
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 0x40745b
call fcn.00405bc0
jmp 0x407518
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x407474
call fcn.00405bc0
jmp 0x407518
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x4074a8
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x407496
lea eax, [ebp]
call fcn.004062e0
lea esi, [ebp - 0x1c]
call fcn.004044a0
mov eax, 0x8007000e
jmp 0x407533
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00405b80
mov dword [ebp - 4], 1
jmp 0x4074d1
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x4074df
mov esi, 0x8007000e
jmp 0x40751a
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 0x4074fd
call fcn.00405bc0
jmp 0x407518
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.00407270
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x407531
lea eax, [ebp]
call fcn.004062e0
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.0040b1f5
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4078b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x418a9c
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x420280]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x420280]
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 + 0x30], ebx
test byte [0x422ad0], al
jne 0x407930
or dword [0x422ad0], eax
xor eax, eax
push 0x419020
mov dword [0x422acc], 7
mov dword [0x422ac8], ebx
mov word [0x422ab8], ax
call fcn.0040bc31
add esp, 4
cmp dword [0x422ac8], ebx
je 0x407950
xor ecx, ecx
push 0xffffffffffffffff
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], ebx
mov word [ebp + 4], cx
push ebx
jmp 0x407ae8
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 0x407966
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x54]
mov esi, 0x422ab4
call fcn.004048d0
mov edi, esi
lea eax, [esp + 0x14]
call fcn.00407840
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov dword [esp + 0x270], ebx
call fcn.00403080
mov edi, 8
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x2c], edi
jb 0x4079c4
mov eax, dword [esp + 0x18]
push eax
call fcn.0040b1ea
add esp, 4
mov ebx, 0x41c560
mov ecx, 0x422ab4
lea esi, [esp + 0x14]
call fcn.004037b0
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x422ab4
mov dword [esp + 0x270], 1
call fcn.00403080
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x2c], edi
jb 0x407a0f
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040b1ea
add esp, 4
mov ebx, str.cx_vcapp
mov ecx, 0x422ab4
lea esi, [esp + 0x14]
call fcn.004037b0
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x422ab4
mov dword [esp + 0x270], 2
call fcn.00403080
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x2c], edi
jb 0x407a5a
mov edx, dword [esp + 0x18]
push edx
call fcn.0040b1ea
add esp, 4
mov ebx, 0x41c55c
mov ecx, 0x422ab4
lea esi, [esp + 0x34]
call fcn.004037b0
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x422ab4
mov dword [esp + 0x270], 3
call fcn.00403080
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x4c], edi
jb 0x407aa5
mov eax, dword [esp + 0x38]
push eax
call fcn.0040b1ea
add esp, 4
xor ecx, ecx
cmp dword [0x422acc], edi
mov edi, dword [0x422ab8]
mov esi, 7
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], 0
mov word [esp + 0x38], cx
jae 0x407ad0
mov edi, 0x422ab8
call fcn.00407b20
xor edx, edx
push 0xffffffffffffffff
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], 0
mov word [ebp + 4], dx
push edx
push 0x422ab4
mov ecx, ebp
call fcn.00403080
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.0040b1f5
add esp, 0x254
ret
Function at 0x407b20
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x418988
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x420280]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
mov eax, dword [0x420280]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
xor ebx, ebx
cmp edi, ebx
je 0x407bdd
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 0x407b80
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x30]
call fcn.004048d0
mov dword [esp + 0x54], ebx
push 0x41c55c
mov ebx, 1
xor eax, eax
mov edx, esi
call fcn.004047f0
mov esi, eax
cmp esi, 0xffffffff
jne 0x407be4
push edi
call ebp
test eax, eax
jne 0x407c70
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407c70
lea ecx, [esp + 0x2c]
call fcn.00402db0
xor al, al
jmp 0x407c9d
lea ecx, [esp + 0x2c]
lea ebp, [esi + 1]
push ecx
mov ecx, ebp
xor edx, edx
lea esi, [esp + 0x14]
call fcn.00407d00
mov eax, dword [esp + 0x14]
mov esi, 8
cmp dword [esp + 0x28], esi
jae 0x407c0c
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407c36
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], esi
jae 0x407c25
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407cbb
push 0x41c55c
mov ebx, 1
mov eax, ebp
lea edx, [esp + 0x30]
call fcn.004047f0
cmp dword [esp + 0x28], 8
mov esi, eax
jb 0x407c61
mov edx, dword [esp + 0x14]
push edx
call fcn.0040b1ea
add esp, 4
cmp esi, 0xffffffff
jne 0x407be4
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call ebp
test eax, eax
jne 0x407c87
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407bd4
cmp dword [esp + 0x44], 8
jb 0x407c9b
mov eax, dword [esp + 0x30]
push eax
call fcn.0040b1ea
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.0040b1f5
add esp, 0x48
ret
cmp dword [esp + 0x28], esi
jb 0x407cce
mov eax, dword [esp + 0x14]
push eax
call fcn.0040b1ea
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 0x407cf8
mov edx, dword [esp + 0x30]
push edx
call fcn.0040b1ea
add esp, 4
xor al, al
jmp 0x407c9d
Function at 0x408780
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
cmp dword [esi + 0xac], 0
jne 0x408798
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 + 0xac]
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 + 0xac]
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0xac]
push ecx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0xac]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov al, 1
pop esi
add esp, 0x20
ret 4

Function at 0x408820
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx]
mov edx, dword [eax + 0x8c]
push 0
call edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x408860
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push edi
call edx
push eax
call dword [sym.imp.USER32.dll_IsIconic]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x408890
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push 9
mov ecx, esi
call edx
push eax
call edi
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push 5
mov ecx, esi
call edx
push eax
call edi
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push 0x43
push 0
push 0
push 0
push 0
push 0
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
ret
Function at 0x4098d0
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 0x4098f0
mov esi, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x58]
test edi, edi
je 0x4098fe
cmp edi, eax
je 0x409903
call fcn.0040b8f5
cmp dword [esp + 0xc], esi
je 0x409a2f
test edi, edi
jne 0x409a24
call fcn.0040b8f5
xor eax, eax
mov edx, dword [esp + 0xc]
cmp edx, dword [eax + 0x14]
jne 0x40992a
call fcn.0040b8f5
mov eax, dword [esp + 0xc]
mov edi, dword [eax + 8]
mov eax, dword [edi + 0x24]
mov dword [edi + 0xc], 1
test eax, eax
je 0x409946
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 0x409987
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x409976
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 0x40999c
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 4]
mov dword [esi + 8], 1
test eax, eax
je 0x4099da
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4099c9
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 0x4099e8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00409b30
push edi
call fcn.0040b1ea
mov eax, dword [esp + 0xc]
add esp, 4
test eax, eax
jne 0x409a2b
call fcn.0040b8f5
xor eax, eax
mov esi, dword [esp + 0xc]
cmp esi, dword [eax + 0x14]
jne 0x409a15
call fcn.0040b8f5
mov edx, dword [esi]
mov edi, dword [esp + 8]
mov dword [esp + 0xc], edx
jmp 0x4098f0
mov eax, dword [edi]
jmp 0x40991c
mov eax, dword [eax]
jmp 0x409a07
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 0x409a65
mov esi, dword [eax]
push eax
call fcn.0040b1ea
add esp, 4
mov eax, esi
cmp esi, dword [ebx + 0x6c]
jne 0x409a46
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 0x409b30
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x418ccb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x420280]
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 0x409ba1
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x409b90
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 0x409bb2
push esi
call fcn.00409c80
call fcn.00409d00
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 0x409bd9
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 0x40a800
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 0x40a86c
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 0x40b1f5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420280]
jne 0x40b1ff
repz ret
jmp fcn.0040d8c7

Function at 0x4135ae
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.0040ed6d
and dword [ebp - 4], 0
cmp dword [0x4224fc], 0
mov ebx, eax
jne 0x41365f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413710
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413710
push eax
call fcn.0040ecfb
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4224fc], eax
call esi
push eax
call fcn.0040ecfb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x422500], eax
call esi
push eax
call fcn.0040ecfb
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x422504], eax
call esi
push eax
call fcn.0040ecfb
pop ecx
mov dword [0x42250c], eax
test eax, eax
je 0x41365f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040ecfb
pop ecx
mov dword [0x422508], eax
mov eax, dword [0x422508]
cmp eax, ebx
je 0x4136b7
cmp dword [0x42250c], ebx
je 0x4136b7
push eax
call fcn.0040ed76
push dword [0x42250c]
mov esi, eax
call fcn.0040ed76
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4136b7
test edi, edi
je 0x4136b7
call esi
test eax, eax
je 0x4136ae
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4136ae
test byte [ebp - 0xc], 1
jne 0x4136b7
or dword [ebp + 0x10], 0x200000
jmp 0x4136f0
mov eax, dword [0x422500]
cmp eax, ebx
je 0x4136f0
push eax
call fcn.0040ed76
pop ecx
test eax, eax
je 0x4136f0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4136f0
mov eax, dword [0x422504]
cmp eax, ebx
je 0x4136f0
push eax
call fcn.0040ed76
pop ecx
test eax, eax
je 0x4136f0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4224fc]
call fcn.0040ed76
pop ecx
test eax, eax
je 0x413710
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413712
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret