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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58cc58
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5ee034]
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, dword [ebp + 8]
mov ecx, esi
call fcn.0040b6a0
test al, al
je 0x43a910
xor al, al
jmp 0x43aa78
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov edx, esi
lea ecx, [ebp - 0x4c]
call fcn.0044f8e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00404580
mov byte [ebp - 4], 2
lea edx, [ebp - 0x34]
mov ecx, esi
call fcn.00451250
mov edx, 0x5b18ec
lea ecx, [ebp - 0x34]
call fcn.0044d6f0
mov edx, 0x5b18ec
lea ecx, [ebp - 0x34]
call fcn.0044d780
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x34]
call fcn.004524e0
mov ecx, dword [ebp - 0x1c]
add esp, 4
mov eax, dword [ebp - 0x18]
cmp ecx, eax
mov edx, eax
mov dword [ebp - 0x54], ecx
sete bl
sub edx, ecx
add edx, 3
xor esi, esi
shr edx, 2
xor edi, edi
cmp ecx, eax
cmova edx, esi
mov esi, ecx
mov dword [ebp - 0x50], edx
test edx, edx
je 0x43a9d1
mov ecx, dword [esi]
call fcn.00574b00
mov ecx, dword [esi]
call fcn.00574b00
mov edx, dword [ebp - 0x50]
lea esi, [esi + 4]
inc edi
cmp edi, edx
jne 0x43a9b5
mov ecx, dword [ebp - 0x1c]
xor edi, edi
test edx, edx
je 0x43aa4f
mov esi, dword [ecx]
test esi, esi
je 0x43aa38
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, esi
je 0x43aa32
push esi
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x43aa32
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, esi
jne 0x43aa09
xor bh, bh
jmp 0x43aa27
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne bh
test eax, eax
je 0x43aa27
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bh, bh
jne 0x43aa3c
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
test bl, bl
je 0x43aa44
mov ecx, dword [ebp - 0x54]
mov bl, 1
mov edx, dword [ebp - 0x50]
add ecx, 4
inc edi
mov dword [ebp - 0x54], ecx
cmp edi, edx
jne 0x43a9d7
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00404570
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00404570
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00436240
mov al, bl
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.0057d0c6
mov esp, ebp
pop ebp
ret 4
Function at 0x4401e0
Capabilities:
Get graphical window text

Disassembly:
push edi
push 0
push str.Progman
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x440214
push 0
push 0xd
push 0x52c
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0xd
push 0x52c
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
ret
Function at 0x446e20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58ec4e
mov eax, dword fs:[0]
push eax
mov eax, 0x105c
call fcn.00585760
mov eax, dword [0x5ee034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1060], esi
mov dword [ebp - 0x1064], esi
lea ecx, [ebp - 0x1028]
mov dword [ebp - 0x1044], 0
call fcn.00446700
lea ecx, [ebp - 0x1028]
mov dword [ebp - 4], 1
call fcn.0044f200
test al, al
jne 0x446eca
xor eax, eax
mov dword [esi + 0x10], 0
push eax
mov dword [esi + 0x14], 7
mov ecx, esi
push 0x5a6dd8
mov word [esi], ax
call fcn.00404780
mov dword [ebp - 0x1044], 1
lea ecx, [ebp - 0x1028]
mov dword [ebp - 4], 2
call fcn.00404720
jmp 0x447094
push 0xa
xor eax, eax
mov dword [ebp - 0x104c], 0
mov dword [ebp - 0x1048], 0
lea ecx, [ebp - 0x105c]
push str.config.ini
mov dword [ebp - 0x104c], 0
mov dword [ebp - 0x1048], 7
mov word [ebp - 0x105c], ax
call fcn.00404780
lea eax, [ebp - 0x105c]
mov byte [ebp - 4], 6
push eax
lea edx, [ebp - 0x1028]
lea ecx, [ebp - 0x1040]
call fcn.0044fd90
add esp, 4
lea ecx, [ebp - 0x105c]
mov byte [ebp - 4], 9
call fcn.00404720
push 0x1000
lea eax, [ebp - 0x1010]
mov byte [ebp - 4], 8
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1040]
cmp dword [ebp - 0x102c], 8
cmovae eax, dword [ebp - 0x1040]
push eax
push 0x800
lea eax, [ebp - 0x1010]
push eax
push 0x5a6dd8
push 0x5b7640
push str.Install
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x446fd9
push eax
mov dword [esi + 0x10], eax
mov ecx, esi
mov dword [esi + 0x14], 7
push 0x5a6dd8
mov word [esi], ax
call fcn.00404780
mov dword [ebp - 0x1044], 1
lea ecx, [ebp - 0x1040]
mov byte [ebp - 4], 0xd
call fcn.00404720
lea ecx, [ebp - 0x1028]
mov dword [ebp - 4], 0x11
call fcn.00404720
jmp 0x447094
xor eax, eax
cmp word [ebp - 0x1010], ax
je 0x44705d
inc eax
cmp word [ebp + eax*2 - 0x1010], 0
jne 0x446fe4
test eax, eax
je 0x44705d
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x105c]
call fcn.00406350
lea eax, [ebp - 0x105c]
mov byte [ebp - 4], 0x1d
push eax
lea edx, [ebp - 0x1028]
mov ecx, esi
call fcn.0044fd90
add esp, 4
mov dword [ebp - 0x1044], 1
lea ecx, [ebp - 0x105c]
mov byte [ebp - 4], 0x1e
call fcn.00404720
lea ecx, [ebp - 0x1040]
mov byte [ebp - 4], 0x22
call fcn.00404720
lea ecx, [ebp - 0x1028]
mov dword [ebp - 4], 0x26
call fcn.00404720
jmp 0x447094
push 0x5a6dd8
mov ecx, esi
call fcn.00406350
mov dword [ebp - 0x1044], 1
lea ecx, [ebp - 0x1040]
mov byte [ebp - 4], 0x15
call fcn.00404720
lea ecx, [ebp - 0x1028]
mov dword [ebp - 4], 0x19
call fcn.00404720
mov byte [ebp - 4], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057d0c6
mov esp, ebp
pop ebp
ret
Function at 0x4482a0
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58ef0b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x288
mov eax, dword [0x5ee034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov esi, edi
cmp dword [edi + 0x14], 8
jb 0x448303
mov esi, dword [edi]
lea ecx, [ebp - 0x220]
mov edx, 0x104
mov eax, ecx
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x448330
movzx eax, word [esi + ecx]
test ax, ax
je 0x448330
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x448312
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x44
lea eax, [ebp - 0x280]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x280], 0x44
cmp dword [edi + 0x14], 8
xorps xmm0, xmm0
movups xmmword [ebp - 0x290], xmm0
jb 0x448379
mov edi, dword [edi]
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push 0x10
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4483d6
mov eax, dword [ebp - 0x28c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4483c2
push eax
call esi
mov dword [ebp - 0x28c], 0
mov ecx, dword [ebp - 0x290]
test ecx, ecx
je 0x4483cf
push ecx
call esi
xor eax, eax
jmp 0x4484c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x5ee1a4], 0
mov esi, eax
je 0x4484c2
push ecx
mov ecx, 0x5ee1a0
call fcn.00424070
mov ecx, dword [0x5ee1a4]
cmp byte [ecx + 0x54], 0
je 0x4484c2
cmp dword [ecx + 0x58], 2
jb 0x4484c2
mov al, byte [ecx + 0x5c]
mov byte [ebp - 0x291], al
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
push esi
lea eax, [ebp - 0x238]
mov dword [ebp - 4], 1
push str._Utility_
push eax
call fcn.0044dae0
add esp, 0xc
lea eax, [ebp - 0x238]
mov ecx, 0x5ee1a0
push 0xd7
push str.RC::RCSoftMgrUtility::RunProcess
push str.d:jenkinsworkspacepc_2345softmgr_build_softmgrmain_srccommon_rcsoftmgrutility.cpp
push eax
push 2
call fcn.00424ac0
cmp byte [ebp - 0x291], 0
je 0x4484a9
lea eax, [ebp - 0x238]
mov ecx, 0x5ee1a0
push eax
call fcn.00424d70
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], 2
call fcn.00404720
mov dword [ebp - 4], 0xffffffff
mov eax, 0xc0011149
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0057d0c6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x44f5a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58fea0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5ee034]
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 edi, ecx
call fcn.0040b6a0
test al, al
je 0x44f5dd
xor al, al
jmp 0x44f782
call fcn.0044f400
test al, al
je 0x44f5ed
mov al, 1
jmp 0x44f782
push 0
mov ecx, edi
call fcn.00404530
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x44f63c
lea ecx, [ebp - 0x28]
call fcn.00404580
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.0046f760
test al, al
je 0x44f62d
push 0
lea ecx, [ebp - 0x28]
call fcn.00404530
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404570
mov ecx, edi
call fcn.0044f400
test al, al
jne 0x44f5e6
mov ecx, edi
call fcn.0040b6b0
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x44f727
call fcn.00404690
mov ebx, eax
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x44f66e
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x44f691
mov eax, ebx
cmp ecx, 8
jb 0x44f687
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x44f717
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00448750
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0040b6a0
test al, al
jne 0x44f708
call fcn.0044f200
test al, al
jne 0x44f708
push 0
lea ecx, [ebp - 0x28]
call fcn.00404530
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x44f708
lea ecx, [ebp - 0x40]
call fcn.00404580
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0046f760
test al, al
je 0x44f6fc
push 0
lea ecx, [ebp - 0x40]
call fcn.00404530
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00404570
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404570
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x44f662
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.0044f200
test al, al
jne 0x44f77b
push 0
mov ecx, edi
call fcn.00404530
push eax
call ebx
test eax, eax
jne 0x44f77b
lea ecx, [ebp - 0x40]
call fcn.00404580
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.0046f760
test al, al
je 0x44f76c
push 0
lea ecx, [ebp - 0x40]
call fcn.00404530
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404570
mov ecx, edi
call fcn.0044f400
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.0057d0c6
mov esp, ebp
pop ebp
ret
Function at 0x450140
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x5ee034]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push 0x118
push 0
lea eax, [esi + 4]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x450282
cmp dword [esi + 4], 6
push edi
ja 0x450196
jne 0x45021e
cmp dword [esi + 8], 2
jb 0x45021e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x45021e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45021e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45021e
movups xmm0, xmmword [0x5b8638]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x5b8648]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x45021e
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x45021e
cmp word [edi + 2], ax
jbe 0x45021e
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x450269
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x450269
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.0057d0c6
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.0057d0c6
add esp, 0x140
ret

Function at 0x451450
Capabilities:
Get common file path

Disassembly:
sub esp, 0x41c
mov eax, dword [0x5ee034]
xor eax, esp
mov dword [esp + 0x418], eax
push esi
mov esi, ecx
call fcn.00404690
mov dword [esp + 4], 0
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], 0
jb 0x451483
mov eax, dword [eax]
lea edx, [esp + 4]
mov ecx, eax
call fcn.00404a00
push 0x412
lea eax, [esp + 0xc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x4514ce
xor al, al
pop esi
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0057d0c6
add esp, 0x41c
ret
cmp eax, 0x208
jae 0x4514b6
xor eax, eax
lea ecx, [esp + 8]
mov word [esp + 0x418], ax
call fcn.00404a30
push eax
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00404780
mov ecx, dword [esp + 0x41c]
mov al, 1
pop esi
xor ecx, esp
call fcn.0057d0c6
add esp, 0x41c
ret
Function at 0x451ee0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
mov dword [esi], 0
mov word [esi + 4], 0
call fcn.0040b6a0
test al, al
jne 0x451f03
call fcn.00404530
jmp 0x451f05
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x451f2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, esi
jne 0x451f2f
mov byte [esi + 5], 1
pop esi
ret 4
mov eax, esi
pop esi
ret 4

Function at 0x451f60
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590338
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x5ee034]
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 eax, dword [esi]
mov edi, dword [ebp + 8]
test eax, eax
je 0x451fa3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
lea ecx, [ebp - 0x14]
mov word [esi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0046f830
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x451fcc
lea edx, [eax + 8]
jmp 0x451fce
xor edx, edx
mov ecx, edi
call fcn.0040b6a0
test al, al
jne 0x451fe0
call fcn.00404530
jmp 0x451fe2
xor eax, eax
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x452003
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x452003
mov byte [esi + 5], 1
cmp dword [esi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0046f9b0
mov al, bl
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.0057d0c6
mov esp, ebp
pop ebp
ret 4
Function at 0x452040
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590338
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x5ee034]
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 eax, dword [esi]
mov edi, dword [ebp + 8]
test eax, eax
je 0x452083
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [esi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0046f8f0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x4520ad
lea ebx, [eax + 8]
jmp 0x4520af
xor ebx, ebx
mov ecx, edi
call fcn.0040b6a0
test al, al
jne 0x4520c1
call fcn.00404530
jmp 0x4520c3
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
test eax, eax
jne 0x45210e
call ecx
cmp eax, 5
jne 0x452108
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.0040b6a0
test al, al
jne 0x4520fa
call fcn.00404530
jmp 0x4520fc
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi]
test eax, eax
je 0x45212c
call ecx
cmp eax, 0xb7
jne 0x452121
mov byte [esi + 5], 1
mov ecx, dword [esi]
call fcn.0045a9e0
mov eax, dword [esi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0046f9b0
mov al, bl
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.0057d0c6
mov esp, ebp
pop ebp
ret 4
Function at 0x454e90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5d9d80
push 0x57de18
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x5ee034]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x438], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00404690
mov dword [ebp - 0x43c], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x454f00
mov eax, dword [eax]
lea edx, [ebp - 0x43c]
mov ecx, eax
call fcn.00404a00
mov edx, esi
mov ecx, edi
call fcn.00455010
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x454f4b
test bl, bl
jne 0x454fe4
cmp edi, 0x1a
jne 0x454fe4
mov ecx, esi
call fcn.00404690
mov dword [ebp - 0x438], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x454f7c
mov eax, dword [eax]
lea edx, [ebp - 0x438]
mov ecx, eax
call fcn.00404a00
push 0x410
push 0
lea eax, [ebp - 0x430]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x430]
call fcn.00404a30
push eax
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.00404780
mov ecx, esi
call fcn.0040b6a0
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0057d0c6
mov esp, ebp
pop ebp
ret
Function at 0x4552d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5908c1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5ee034]
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 edi, edx
mov esi, ecx
mov dword [ebp - 0x30], esi
push 0
mov dword [ebp - 0x34], esi
mov ecx, edi
push 0x25
mov dword [ebp - 0x2c], 0
call fcn.004487f0
push edi
cmp eax, 0xffffffff
jne 0x455337
mov ecx, esi
call fcn.004045a0
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 1
jmp 0x4553e2
lea ecx, [ebp - 0x28]
call fcn.004045a0
mov dword [ebp - 4], 1
mov ecx, edi
push 0
push 0
call fcn.00404530
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x455369
push edi
mov ecx, esi
call fcn.004045a0
jmp 0x4553cf
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0057de0f
mov edx, dword [ebp - 0x30]
add esp, 4
inc edx
mov ebx, eax
mov ecx, edi
push edx
push ebx
call fcn.00404530
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4553bb
cmp eax, dword [ebp - 0x30]
ja 0x4553bb
xor ecx, ecx
mov word [ebx + eax*2], cx
mov ecx, ebx
call fcn.00404a30
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.00404780
push ebx
call fcn.0057d777
add esp, 4
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00419500
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00404570
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.0057d0c6
mov esp, ebp
pop ebp
ret

Function at 0x4594d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x5ee034]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.0057d388
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x45952c
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.0057d0c6
add esp, 0x120
ret