joyce8/EMBER2024-capa huggingface dataset:
Function at 0x482e20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov dword [ebp - 8], edx
xor ebx, ebx
push esi
mov edx, ecx
push edi
mov dword [ebp - 4], edx
mov edi, ebx
mov esi, ebx
shr esi, 2
shr edi, 1
mov eax, edi
and eax, 1
movzx ecx, word [edx + esi*2 + 4]
neg eax
shr eax, 4
neg esi
and eax, 0x7f
shr ecx, 4
xor ecx, eax
and esi, 0x7f0
movzx eax, word [edx + 2]
xor esi, eax
mov eax, dword [ebp + 0xc]
shr esi, 4
mov edx, dword [eax + ecx*4]
add edx, dword [eax + esi*4]
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
add edx, dword [ebp - 8]
movzx ecx, word [eax + edi*2 + 8]
mov edi, dword [ebp + 8]
mov eax, ecx
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
mov eax, dword [esi + eax*4]
add eax, edx
mov dword [edi + ebx*4], eax
mov eax, dword [esi + ecx*4]
add eax, edx
mov edx, dword [ebp - 4]
mov dword [edi + ebx*4 + 4], eax
add ebx, 2
cmp ebx, 8
jb 0x482e33
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x482eb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, edx
push edi
mov edi, ecx
imul eax, ebx, 0x440
mov ecx, dword [ebp + 8]
mov esi, ebx
shl esi, 5
add esi, ecx
lea edx, [edi + 0x44]
add edx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], edx
push eax
push edx
movzx edx, word [ecx]
mov ecx, esi
shr edx, 4
mov edx, dword [eax + edx*4]
call fcn.00482e20
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ecx
movzx eax, word [edx]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [ecx + eax*4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
add eax, 0x20
push eax
movzx eax, word [edx + 0x10]
shr eax, 4
mov edx, dword [ecx + eax*4]
lea ecx, [esi + 0x10]
add edx, dword [ebp - 4]
call fcn.00482e20
mov eax, dword [ebp + 8]
add esp, 0x10
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
movzx eax, word [eax + 0x10]
xor eax, 0x7f0
shr eax, 4
add edx, dword [ecx + eax*4]
mov eax, dword [edi]
mov dword [edi + ebx*4 + 4], eax
mov edi, 0x10
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edi
cmp eax, edi
jbe 0x482f9b
mov ebx, ecx
lea eax, [edi - 0x10]
xor esi, esi
mov edi, dword [ebp + 8]
or eax, 0x100
mov edx, eax
shr eax, 1
and edx, 1
neg edx
shr edx, 4
movzx ecx, word [edi + eax*2 + 0x200]
and edx, 0x7f
shr ecx, 4
xor ecx, edx
add esi, dword [ebx + ecx*4]
cmp eax, 2
jae 0x482f60
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
add eax, esi
mov dword [ecx + edi*4], eax
inc edi
mov dword [ebp - 0xc], edi
cmp edi, dword [ebp - 0x10]
jb 0x482f53
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4898c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov dword [ecx + 0x34], 0
lea esi, [ecx + 0x60]
mov word [ecx + 0x1e], 0
xor edx, edx
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x468], 0xffffffff
mov dword [ecx + 0x46c], 0xffffffff
mov dword [ecx + 0x30], 0x20
mov byte [ecx + 0x1d], 1
mov dword [ecx + 0x48], 4
mov ecx, edx
lea esi, [esi + 4]
and ecx, 1
mov eax, edx
shr eax, 1
neg ecx
and ecx, 0xedb88320
inc edx
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [esi - 4], eax
cmp edx, 0x100
jb 0x489900
pop esi
ret

Function at 0x48a8e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0
push dword [ebp + 8]
push edx
push 0
push 0
call fcn.004c1ebe
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x48a90a
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x4963fc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x402050
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x405408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x405400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x4020a5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40209e
test esi, esi
je 0x40209e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402080
mov dword [esp], 0x405408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4022c0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x4022f8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x4022ee
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4022fa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4022e0
xor eax, eax
pop ebx
pop esi
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401112
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44f030]
jne 0x40111c
repz ret
jmp fcn.00401b21

Function at 0x408eec
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.004047e5
and dword [ebp - 4], 0
cmp dword [0x45178c], 0
mov ebx, eax
jne 0x408f9d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40904e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40904e
push eax
call fcn.00404773
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45178c], eax
call esi
push eax
call fcn.00404773
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x451790], eax
call esi
push eax
call fcn.00404773
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x451794], eax
call esi
push eax
call fcn.00404773
pop ecx
mov dword [0x45179c], eax
test eax, eax
je 0x408f9d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404773
pop ecx
mov dword [0x451798], eax
mov eax, dword [0x451798]
cmp eax, ebx
je 0x408ff5
cmp dword [0x45179c], ebx
je 0x408ff5
push eax
call fcn.004047ee
push dword [0x45179c]
mov esi, eax
call fcn.004047ee
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408ff5
test edi, edi
je 0x408ff5
call esi
test eax, eax
je 0x408fec
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408fec
test byte [ebp - 0xc], 1
jne 0x408ff5
or dword [ebp + 0x10], 0x200000
jmp 0x40902e
mov eax, dword [0x451790]
cmp eax, ebx
je 0x40902e
push eax
call fcn.004047ee
pop ecx
test eax, eax
je 0x40902e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40902e
mov eax, dword [0x451794]
cmp eax, ebx
je 0x40902e
push eax
call fcn.004047ee
pop ecx
test eax, eax
je 0x40902e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45178c]
call fcn.004047ee
pop ecx
test eax, eax
je 0x40904e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409050
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b130
Capabilities:
Set console window title

Disassembly:
sub esp, 0x428
mov eax, dword [0x44f030]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [0x2b0a1cc]
push ebx
mov ebx, dword [0x2b09eec]
push esi
mov esi, dword [0x44ff60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40b171
push str.wozekajevirifegavonetucusiva
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [0x2b0a1cc]
mov dword [0x2b09ee8], esi
cmp eax, 0x114e
jne 0x40b199
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
lea eax, [esp + 0x14]
push eax
push str.gavipokucohuj
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov eax, dword [0x2b0a1cc]
cmp eax, 0x2f
jne 0x40b1bb
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
call fcn.0040b060
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401112
add esp, 0x428
ret
Function at 0x40b15f
Capabilities:
Set console window title

Disassembly:
sub esp, 0x428
mov eax, dword [0x44f030]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [0x2b0a1cc]
push ebx
mov ebx, dword [0x2b09eec]
push esi
mov esi, dword [0x44ff60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40b171
push str.wozekajevirifegavonetucusiva
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [0x2b0a1cc]
mov dword [0x2b09ee8], esi
cmp eax, 0x114e
jne 0x40b199
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
lea eax, [esp + 0x14]
push eax
push str.gavipokucohuj
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov eax, dword [0x2b0a1cc]
cmp eax, 0x2f
jne 0x40b1bb
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
call fcn.0040b060
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401112
add esp, 0x428
ret
Function at 0x470638
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, edx
xor eax, eax
push ebp
push 0x470765
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x470740
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 8]
mov eax, dword [0x475330]
mov eax, dword [eax]
call fcn.0045905c
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00409b44
push dword [ebp - 4]
push 0x47077c
lea edx, [ebp - 0x10]
mov eax, dword [0x475330]
mov eax, dword [eax]
call fcn.0045905c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00409b78
push dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 3
call fcn.004055bc
mov eax, dword [ebp - 4]
call fcn.00409938
test al, al
je 0x4706e4
push 1
push 0x470780
push 0x470780
mov eax, dword [ebp - 4]
call fcn.004056b8
push eax
push 0x470784
mov eax, ebx
call fcn.004431bc
push eax
call sub.shell32.dll_ShellExecuteA
jmp 0x470736
lea edx, [ebp - 0x14]
mov eax, dword [0x475330]
mov eax, dword [eax]
call fcn.0045905c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 4]
call fcn.00409b44
mov eax, dword [ebp - 4]
test eax, eax
je 0x47070a
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
jne 0x470736
push 1
push 0x470780
push 0x470780
mov eax, dword [ebp - 4]
call fcn.004056b8
push eax
push 0x470784
mov eax, ebx
call fcn.004431bc
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47074a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47076c
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.0040524c
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push esi
push edi
push 0x40
push 0x3000
push 0x163
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov ecx, 0x58
mov esi, 0x403058
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call eax
pop edi
xor eax, eax
pop esi
ret

Function at 0x401833
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401872
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401872
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401872
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401872
cmp dword [ecx + 0x74], 0xe
jbe 0x401872
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4020e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408bb0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x40d008]
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 dword [ebp - 0x2c], ecx
mov esi, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x18], 0
mov ebx, 7
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
test esi, esi
je 0x40215f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402140
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00402b10
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmp ebx, 8
push 0xe
cmovae ecx, edi
push ecx
call fcn.00402c60
add esp, 8
test eax, eax
je 0x402184
mov esi, 1
jmp 0x402272
push str.AD5908C3_BD87_4135_BED8_A21BB490A892
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 8], eax
test eax, eax
jne 0x4021a5
or esi, 0xffffffff
jmp 0x402272
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4021cc
mov esi, dword [ebp - 0x2c]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
xor esi, esi
jmp 0x402272
mov edx, esi
mov dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4021f3
sub edx, ecx
lea ecx, [ebp - 0x44]
sar edx, 1
push edx
push esi
call fcn.00402b10
mov byte [ebp - 4], 1
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 0x2c]
push eax
call fcn.004022f0
mov esi, eax
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x40225e
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402254
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402254
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004075f7
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov dword [ebp - 4], 0xffffffff
cmp ebx, 8
jb 0x4022af
lea ecx, [ebx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x4022a5
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4022a5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.004075f7
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, esi
mov dword [ebp - 0x14], 7
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.004075b6
mov esp, ebp
pop ebp
ret 4
Function at 0x406b30
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x40c078
push 0x407cf7
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x40d008]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x406b99
xor eax, eax
jmp 0x406d0f
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406cda
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x406cda
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406cda
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 0x406cda
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406cda
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 esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x406cda
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406cda
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x406cda
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406cda
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x406cda
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x406cda
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x406cc3
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x406cb0
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x406cc0
jmp 0x406cda
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
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.00406d36
test ebx, ebx
jne 0x406d0d
test esi, esi
je 0x406cff
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x406d0d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
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.004075b6
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406d60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4095d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x40d008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x406d96
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x406e46
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00407050
test al, al
je 0x406def
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x406e32
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406e28
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406e28
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004075f7
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, edi
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.004075b6
mov esp, ebp
pop ebp
ret
Function at 0x4070e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409668
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x40d008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x2c]
mov dword [esi], 0
push eax
push fcn.004072b0
push 6
mov byte [esi + 4], 0
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x407215
cmp dword [ebp - 0x2c], 0
je 0x407215
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x28]
push str.9CDB4DA2_ACEA_446E_AA3A_D25628140939__d__p
push eax
call fcn.00405150
add esp, 0x10
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
jne 0x4071d4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x407205
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4071fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4071fb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4071e7
mov byte [esi + 4], 1
jmp 0x40719b
push dword [esi]
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
jmp 0x40719b
push edx
push ecx
call fcn.004075f7
add esp, 8
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], eax
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.004075b6
mov esp, ebp
pop ebp
ret