joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ada40
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523c6c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x575054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
lea esi, [edi + 0x18]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 4
lea ecx, [esi + 0x48]
call fcn.004032a0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x30]
call fcn.004032a0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x18]
call fcn.004032a0
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.004032a0
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.004032a0
push 0x88
push ebx
call fcn.0050f64c
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4af540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5240a0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x575054]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
test eax, eax
je 0x4af642
cmp byte [eax + 0x54], 0
je 0x4af642
add eax, 0x1c
lea ecx, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x1c], xmm0
call fcn.004ae300
mov dword [ebp - 4], 0
mov ecx, dword [esi + 4]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
call fcn.00405910
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4af616
push 0
mov edx, edi
lea ecx, [ebp - 0x38]
call fcn.004bb4f0
add esp, 4
mov byte [ebp - 4], 1
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x38]
call fcn.00405900
push eax
call fcn.004089e0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00405a70
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x4af63b
cmp byte [ebp - 0x18], 0
je 0x4af63b
mov eax, dword [esi]
test eax, eax
je 0x4af637
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x1c], 0
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.0050f27d
mov esp, ebp
pop ebp
ret 4
Function at 0x4b23d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
push edi
call fcn.00405910
mov ecx, dword [ebp + 8]
mov ebx, eax
mov edi, 0x811c9dc5
call fcn.00405900
mov ecx, 0
add eax, eax
je 0x4b2411
nop dword [eax]
movzx edx, byte [ecx + ebx]
inc ecx
xor edx, edi
imul edi, edx, 0x1000193
cmp ecx, eax
jb 0x4b2400
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
and eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b4aa0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x575054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str.mshtml.dll]
mov dword [ebp - 0x1c], eax
mov ecx, dword [0x538150]
mov dword [ebp - 0x18], ecx
mov edx, dword [0x538154]
mov dword [ebp - 0x14], edx
mov eax, dword [0x538158]
mov dword [ebp - 0x10], eax
mov ecx, dword [0x53815c]
mov dword [ebp - 0xc], ecx
mov dx, word [0x538160]
mov word [ebp - 8], dx
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4b4b0b
xor al, al
jmp 0x4b4bc8
mov edx, dword [ebp - 0x30]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4b4b27
xor al, al
jmp 0x4b4bc8
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x4b4b4f
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor al, al
jmp 0x4b4bc8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x28]
push eax
push 0x53ad28
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4b4bbc
cmp dword [ebp - 0x24], 0
jbe 0x4b4bbc
cmp dword [ebp - 0x28], 0
je 0x4b4bbc
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 8]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 8]
and ecx, 0xffff
movzx edx, cx
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
jmp 0x4b4bc8
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050f27d
mov esp, ebp
pop ebp
ret
Function at 0x4b67f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525a30
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x575054]
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
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x18], xmm0
xor esi, esi
mov dword [ebp - 0x18], esi
xor bl, bl
push fcn.00402340
mov byte [ebp - 0x14], bl
push 6
mov dword [ebp - 0x34], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4b68c0
cmp dword [ebp - 0x34], esi
je 0x4b68c0
lea ecx, [ebp - 0x30]
call fcn.00403340
mov dword [ebp - 4], esi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x30]
push str.9CDB4DA2_ACEA_446E_AA3A_D25628140939__d__p
push eax
call fcn.004b9230
add esp, 0x10
lea ecx, [ebp - 0x30]
call fcn.00405910
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x4b68b1
push 0xffffffffffffffff
push esi
call edi
test eax, eax
jne 0x4b68a0
mov bl, 1
mov byte [ebp - 0x14], bl
jmp 0x4b68b1
xor bl, bl
push esi
mov byte [ebp - 0x14], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004032a0
mov dword [ebp - 4], 1
cmp byte [0x579200], 0
jne 0x4b68f9
mov ecx, dword [0x5791e0]
test ecx, ecx
je 0x4b68e5
push 0xffffffffffffffff
push ecx
call edi
mov ecx, dword [0x5791e0]
mov eax, dword [0x5791d8]
mov edi, dword [eax]
test ecx, ecx
je 0x4b68fb
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4b68fb
xor edi, edi
mov dword [ebp - 4], 0xffffffff
test bl, bl
je 0x4b6913
test esi, esi
je 0x4b6926
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4b6917
test esi, esi
je 0x4b6926
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call eax
mov dword [ebp - 0x18], 0
mov eax, edi
mov byte [ebp - 0x14], 0
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.0050f27d
mov esp, ebp
pop ebp
ret
Function at 0x4b8150
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x575054]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, dword [esp + 0x148]
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 0x4b8297
cmp dword [esi + 4], 6
push edi
ja 0x4b81ab
jne 0x4b8233
cmp dword [esi + 8], 2
jb 0x4b8233
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x4b8233
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4b8233
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4b8233
movups xmm0, xmmword [0x53f5e8]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x53f5f8]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4b8233
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4b8233
cmp word [edi + 2], ax
jbe 0x4b8233
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 0x4b827e
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 0x4b827e
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.0050f27d
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.0050f27d
add esp, 0x140
ret
Function at 0x4b9c50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x565d70
push 0x50f8c8
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x575054]
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 - 0x438], edi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00415980
mov edx, esi
mov ecx, edi
call fcn.004b9d80
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x4b9ce5
test bl, bl
jne 0x4b9d54
cmp edi, 0x1a
jne 0x4b9d54
mov ecx, esi
call fcn.00415980
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 eax, [ebp - 0x430]
push eax
call fcn.004035e0
add esp, 4
push eax
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.004033d0
mov ecx, esi
call fcn.004058f0
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.0050f27d
mov esp, ebp
pop ebp
ret

Function at 0x4bbd10
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526584
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x575054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00403340
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00403340
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00403340
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00403340
mov byte [ebp - 4], 3
lea ecx, [esi + 0x70]
mov word [esi + 0x60], 0x101
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
call fcn.00403340
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4bc610
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5267f0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x575054]
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.004058f0
test al, al
je 0x4bc64d
xor al, al
jmp 0x4bc80b
push edi
call fcn.004bc4a0
add esp, 4
test al, al
je 0x4bc661
mov al, 1
jmp 0x4bc80b
push 0
mov ecx, edi
call fcn.00405910
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x4bc6b0
lea ecx, [ebp - 0x28]
call fcn.00403340
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004da410
test al, al
je 0x4bc6a1
push 0
lea ecx, [ebp - 0x28]
call fcn.00405910
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004032a0
push edi
call fcn.004bc4a0
add esp, 4
test al, al
jne 0x4bc65a
mov ecx, edi
call fcn.00405900
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4bc7ac
mov ecx, edi
call fcn.00403360
mov ebx, eax
nop word [eax + eax]
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x4bc6ec
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x4bc70f
mov eax, ebx
cmp ecx, 8
jb 0x4bc705
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x4bc79c
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00408940
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004058f0
test al, al
jne 0x4bc78d
lea eax, [ebp - 0x28]
push eax
call fcn.004bc280
add esp, 4
test al, al
jne 0x4bc78d
push 0
lea ecx, [ebp - 0x28]
call fcn.00405910
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4bc78d
lea ecx, [ebp - 0x40]
call fcn.00403340
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004da410
test al, al
je 0x4bc781
push 0
lea ecx, [ebp - 0x40]
call fcn.00405910
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004032a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004032a0
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x4bc6e0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call fcn.004bc280
add esp, 4
test al, al
jne 0x4bc802
push 0
mov ecx, edi
call fcn.00405910
push eax
call ebx
test eax, eax
jne 0x4bc802
lea ecx, [ebp - 0x40]
call fcn.00403340
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.004da410
test al, al
je 0x4bc7f3
push 0
lea ecx, [ebp - 0x40]
call fcn.00405910
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004032a0
push edi
call fcn.004bc4a0
add esp, 4
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.0050f27d
mov esp, ebp
pop ebp
ret
Function at 0x4bcee0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x575054]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
call fcn.00415980
push 0x412
lea eax, [esp + 8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x4bcf3c
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0050f27d
add esp, 0x418
ret
cmp eax, 0x208
jae 0x4bcf24
xor eax, eax
mov word [esp + 0x414], ax
lea eax, [esp + 4]
push eax
call fcn.004035e0
add esp, 4
mov ecx, esi
push eax
lea eax, [esp + 8]
push eax
call fcn.004033d0
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.0050f27d
add esp, 0x418
ret

Function at 0x4bd860
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51bd68
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x575054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x4bd8a3
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
lea ecx, [ebp - 0x10]
call fcn.00403fa0
lea eax, [edi + 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.00409150
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x4bd91b
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea edi, [esi + 4]
push 1
push edi
call ebx
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x4bd440
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x4bd940
push 0xffffffffffffffff
push edi
call ebx
sub eax, 1
jne 0x4bd913
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.004bd5d0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00409180
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4bd958
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x4bd902
mov bl, 1
jmp 0x4bd91d
Function at 0x4c1ff0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x575054]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.0050f2a1
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 0x4c204c
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.0050f27d
add esp, 0x120
ret
Function at 0x4c96d0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x4c9708
mov edx, dword [esp + 4]
test edx, edx
je 0x4c9708
cmp dword [eax], 0xffffffff
je 0x4c9708
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c9708
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x4c9740
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x575054]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x4c97a3
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4c97a3
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c977e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4c97a3
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0050f27d
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0050f27d
add esp, 8
ret 4
Function at 0x4cc030
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5285db
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x575054]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x4cc069
call fcn.004cc1d0
cmp byte [0x5790ec], 0
jne 0x4cc07c
mov eax, SysReAllocStringLen
jmp 0x4cc1ac
mov eax, dword [esi]
test eax, eax
jne 0x4cc0fc
push 8
call fcn.0050f2a1
mov edi, eax
add esp, 4
mov dword [ebp - 0x138], edi
mov dword [ebp - 4], 0
push 1
call fcn.0050f2a1
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0x118
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x134], 0x11c
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4cc0eb
cmp dword [ebp - 0x130], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4cc19b
call fcn.004c2bc0
test al, al
jne 0x4cc136
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.004c3160
test al, al
je 0x4cc19b
mov ecx, dword [esi]
add ecx, 4
call fcn.004c2720
call fcn.004c2bc0
test al, al
je 0x4cc19b
push str.Advapi32.dll
lea ecx, [ebp - 0x150]
call fcn.004032f0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x150]
push eax
call fcn.004ccc10
mov ecx, eax
call fcn.004cccd0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.004032a0
test edi, edi
je 0x4cc19b
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4cc19b
push dword [esi]
push dword [ebp + 8]
call eax
test eax, eax
je 0x4cc19b
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4cc1aa
mov dword [eax], SysReAllocStringLen
mov eax, dword [esi]
mov eax, dword [eax]
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.0050f27d
mov esp, ebp
pop ebp
ret 4
Function at 0x4cc390
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528696
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x575054]
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 edi, dword [ebp + 8]
lea ecx, [ebp - 0x650]
mov ebx, dword [ebp + 0xc]
call fcn.00403340
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x654]
push 4
call fcn.00403fa0
push 0x579218
lea ecx, [ebp - 0x654]
call fcn.00409150
mov byte [ebp - 4], 1
mov ecx, 0x57921c
call fcn.004058f0
test al, al
jne 0x4cc43f
push 0x57921c
call fcn.004036c0
lea ecx, [ebp - 0x650]
add esp, 4
cmp ecx, eax
je 0x4cc503
mov ecx, 0x57921c
call fcn.00403360
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4cc436
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
jmp 0x4cc4f8
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x4cc596
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x638]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x638]
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x4cc4e1
test eax, eax
je 0x4cc4e1
add eax, eax
cmp eax, 0x412
jae 0x4cc5d9
xor ecx, ecx
mov word [ebp + eax - 0x638], cx
lea eax, [ebp - 0x638]
push eax
call fcn.004035e0
add esp, 4
push eax
lea eax, [ebp - 0x638]
jmp 0x4cc4f7
lea eax, [ebp - 0x220]
push eax
call fcn.004035e0
add esp, 4
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x650]
call fcn.004033d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x654]
call fcn.00409180
push ebx
push edi
lea eax, [ebp - 0x650]
mov ecx, esi
push eax
call fcn.004cc320
test al, al
je 0x4cc52a
mov bl, 1
jmp 0x4cc5a7
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x4cc5a5
xor eax, eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x220]
push eax
call fcn.004035e0
add esp, 4
lea ecx, [ebp - 0x650]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004033d0
push ebx
push edi
lea eax, [ebp - 0x650]
mov ecx, esi
push eax
call fcn.004cc320
mov bl, al
jmp 0x4cc5a7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x654]
call fcn.00409180
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x650]
call fcn.004032a0
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.0050f27d
mov esp, ebp
pop ebp
ret 8
call fcn.0050f7ee
int3