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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589259
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x62f018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 2
lea esi, [edi + 0x48]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 4
mov ecx, esi
call fcn.00404570
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
lea esi, [edi + 0x30]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 8
mov ecx, esi
call fcn.00404570
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0
lea esi, [edi + 0x18]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0xc
mov ecx, esi
call fcn.00404570
mov byte [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0x10
mov ecx, edi
call fcn.00404570
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b4540
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a25f
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x62f018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, 0x6355a1
call fcn.00561ea5
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [ebp - 4], 3
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], 4
lea eax, [esi + 0x18]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov byte [ebp - 4], 8
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 9
lea eax, [esi + 0x30]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xa
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov byte [ebp - 4], 0xd
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0xe
lea eax, [esi + 0x48]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xf
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov byte [ebp - 4], 0x12
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0x13
lea eax, [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x14
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov byte [ebp - 4], 0x17
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0x18
lea eax, [esi + 0x78]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x19
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov byte [ebp - 4], 0x1c
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0x1d
lea eax, [esi + 0x98]
push 0x35c
push ecx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov dword [esi + 0x90], eax
mov word [esi + 0x94], ax
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 0x4b4cd0
Capabilities:
Get number of processors
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a65f
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x62f018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, 0x6355a1
call fcn.00561ea5
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [ebp - 4], 3
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], 4
lea eax, [esi + 0x18]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov byte [ebp - 4], 8
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 9
lea eax, [esi + 0x30]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xa
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov byte [ebp - 4], 0xd
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0xe
lea eax, [esi + 0x48]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xf
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov byte [ebp - 4], 0x12
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0x13
lea eax, [esi + 0x64]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x14
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov byte [ebp - 4], 0x17
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0x18
lea eax, [esi + 0x7c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x19
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov byte [ebp - 4], 0x1c
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0x1d
mov byte [esi + 0x60], cl
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 0x4b5bc0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x62f018]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
mov ebp, ecx
mov dword [esp + 0xc], eax
push edi
mov edi, dword [esp + 0x20]
mov ecx, 0x6355a1
call fcn.00561ea5
mov esi, dword [esp + 0x24]
xor ebx, ebx
cmp dword [ebp + 0x10], 0xffffffff
je 0x4b5c42
mov ecx, 0x100000
nop dword [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x4b5c42
test ecx, ecx
je 0x4b5c3e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x4b5c00
xor eax, eax
jmp 0x4b5c47
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4b5c51
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052f553
add esp, 0xc
ret 0xc

Function at 0x4b7bd0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b428
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x62f018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, 0x6355a1
call fcn.00561ea5
mov eax, dword [esi + 8]
test eax, eax
jne 0x4b7c1d
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
mov dword [ebp - 0x10], 0
add eax, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
je 0x4b7c40
mov eax, dword [eax]
test eax, eax
je 0x4b7c40
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 1
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x4b7ccc
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 0x4b73e0
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
je 0x4b7cb3
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4b7ca1
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 0x4b7cb3
mov bl, 1
jmp 0x4b7cce
push 0xffffffffffffffff
push edi
call ebx
sub eax, 1
jne 0x4b7cc4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.004b75b0
xor bl, bl
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4b7cf0
mov eax, dword [eax]
test eax, eax
je 0x4b7ce9
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
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
Function at 0x4bbc70
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x62f018]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, ecx
mov ecx, 0x6355a1
push edi
mov edi, dword [esp + 0x14]
call fcn.00561ea5
mov eax, dword [esi]
test eax, eax
je 0x4bbcdf
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4bbcdf
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4bbcba
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4bbcdf
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.0052f553
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0052f553
add esp, 8
ret 4

Function at 0x4bc020
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58c418
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x62f018]
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, edx
mov edi, ecx
mov ecx, 0x6355a1
call fcn.00561ea5
cmp esi, 0xffffffff
jne 0x4bc062
xor al, al
jmp 0x4bc0df
and esi, 0xffffb1af
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4bc072
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push eax
call ebx
test eax, eax
je 0x4bc084
mov al, 1
jmp 0x4bc0df
lea ecx, [ebp - 0x28]
call fcn.00403f80
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004bcaf0
test al, al
je 0x4bc0b8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x4bc0b8
mov bl, 1
jmp 0x4bc0ba
xor bl, bl
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.00404570
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
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.0052f553
mov esp, ebp
pop ebp
ret
Function at 0x4bc100
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58c468
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x62f018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, 0x6355a1
call fcn.00561ea5
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4bc140
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4bc1a2
lea ecx, [ebp - 0x28]
call fcn.00403f80
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004bcaf0
test al, al
je 0x4bc17f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00404570
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f553
mov esp, ebp
pop ebp
ret
Function at 0x4bc380
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58c5d0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x62f018]
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 ecx, 0x6355a1
call fcn.00561ea5
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4bc3c1
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x4bc3d5
mov al, 1
jmp 0x4bc521
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4bc3df
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403ed0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004bc100
mov ebx, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00404570
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
cmp ebx, 0xffffffff
jne 0x4bc42b
xor al, al
jmp 0x4bc521
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4bc435
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403ed0
mov dword [ebp - 4], 5
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.004bc020
mov bl, al
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.00404570
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
test bl, bl
je 0x4bc424
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4bc482
mov eax, dword [esi]
push eax
call edi
test eax, eax
jne 0x4bc3ce
lea ecx, [ebp - 0x28]
call fcn.00403f80
mov dword [ebp - 4], 0xa
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.004bcaf0
test al, al
je 0x4bc4c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
test eax, eax
je 0x4bc4c0
mov bl, 1
jmp 0x4bc4fc
cmp dword [esi + 0x14], 8
jb 0x4bc4c8
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x48]
call fcn.00403ed0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x48]
mov edx, dword [ebp - 0x30]
call fcn.004bc020
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x48]
call fcn.00404570
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x48]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0xa
xor bl, bl
mov dword [ebp - 4], 0x14
lea ecx, [ebp - 0x28]
call fcn.00404570
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
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.0052f553
mov esp, ebp
pop ebp
ret
Function at 0x4bc570
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x624]
sub esp, 0x624
push 0xffffffffffffffff
push 0x58c620
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x62f018]
xor eax, ebp
mov dword [ebp + 0x620], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, 0x6355a1
call fcn.00561ea5
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov eax, dword [0x63214c]
mov dword [ebp - 0x10], 0x63214c
test eax, eax
je 0x4bc5d6
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 1
mov edx, dword [0x632160]
test edx, edx
je 0x4bc63b
cmp esi, 0x632150
je 0x4bc60b
cmp dword [0x632164], 8
mov eax, 0x632150
push edx
cmovae eax, dword [0x632150]
mov ecx, esi
push eax
call fcn.00404640
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4bc62d
mov eax, dword [eax]
test eax, eax
je 0x4bc626
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
mov al, 1
jmp 0x4bc73c
push 0x20c
lea eax, [ebp + 0x414]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x414]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x4bc711
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x61e], ax
lea eax, [ebp]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp]
push 0x208
push eax
lea eax, [ebp + 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x4bc6d5
test eax, eax
je 0x4bc6d5
add eax, eax
cmp eax, 0x412
jae 0x4bc75d
xor ecx, ecx
mov word [ebp + eax], cx
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bc6c5
lea eax, [ebp]
jmp 0x4bc6f1
lea ecx, [ebp + 0x414]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bc6e0
lea eax, [ebp + 0x414]
sub ecx, edx
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00404640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040c6d0
mov al, 1
jmp 0x4bc73c
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4bc733
mov eax, dword [eax]
test eax, eax
je 0x4bc72c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x620]
xor ecx, ebp
call fcn.0052f553
lea esp, [ebp + 0x624]
pop ebp
ret
call fcn.0052fda7
int3
Function at 0x4bc770
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x62f018]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
push esi
mov esi, ecx
mov ecx, 0x6355a1
push edi
mov edi, edx
call fcn.00561ea5
push 0x20c
lea eax, [esp + 0x10]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x4bc7b8
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x4bc7c0
mov esi, dword [esi]
lea eax, [esp + 0xc]
push eax
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4bc81a
xor eax, eax
lea edx, [esp + 0xc]
mov word [esp + 0x216], ax
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4bc7e4
sub edx, esi
lea eax, [esp + 0xc]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.00404640
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0052f553
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0052f553
add esp, 0x210
ret
Function at 0x4bce40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x608670
push 0x52ff95
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x62f018]
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 esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov ecx, 0x6355a1
call fcn.00561ea5
mov dword [ebp - 0x28], 0
xor edi, edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x2c], edi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [esi]
mov esi, dword [eax + 0x28]
mov dword [ebp - 0x40], esi
test esi, esi
jne 0x4bceb5
xor eax, eax
jmp 0x4bd02b
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4bcff6
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x4bcff6
push 0x5ce744
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4bcff6
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x4bcff6
push str.GetLengthSid
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4bcff6
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x4bcff6
push str.InitializeAcl
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4bcff6
push 2
push dword [ebp - 0x30]
push edi
call eax
test eax, eax
je 0x4bcff6
push str.AddAccessAllowedAce
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4bcff6
push dword [ebp - 0x28]
push 0x10000000
push 2
push edi
call eax
test eax, eax
je 0x4bcff6
push str.SetSecurityDescriptorDacl
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4bcff6
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4bcfdf
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x4bcfcc
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x4bcfdc
jmp 0x4bcff6
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push edi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.004bd052
test ebx, ebx
jne 0x4bd029
test edi, edi
je 0x4bd01b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor edi, edi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4bd029
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
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.0052f553
mov esp, ebp
pop ebp
ret 0xc