joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aec90
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4c9d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x53c160]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x30], esi
push 1
push 0
push 0
push 0x11
push 2
push 2
mov dword [ebp - 0x30], esi
call dword [sym.imp.WS2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x4aecf6
mov dword [esi], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c3ba1
mov esp, ebp
pop ebp
ret
push str.WSASocket
lea ecx, [ebp - 0x2c]
call fcn.004086c0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.004aec70
int3

Function at 0x4e1eab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e1b5c

Function at 0x4e1eb6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e1ce6

Function at 0x4e9f01
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e9a54
Function at 0x401740
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x476230
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b2b0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
push eax
call fcn.00401020
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov edx, dword [0x48eacc]
mov eax, dword [edx + 0xc]
mov ecx, 0x48eacc
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
push 0x47aa0c
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x40], 1
call fcn.004012b0
lea ebp, [ebx + 1]
test eax, eax
je 0x4017af
mov dword [0x48fbb8], ebp
push 0x47aa10
lea edx, [esp + 0x1c]
push edx
call fcn.004012b0
test eax, eax
je 0x4017c8
mov dword [0x48fbb4], ebp
push 0x47aa14
lea eax, [esp + 0x1c]
push eax
call fcn.004012b0
test eax, eax
je 0x4017e1
mov dword [0x48fbec], ebp
push str.notSaveUserInfo
lea ecx, [esp + 0x1c]
push ecx
call fcn.004012b0
test eax, eax
je 0x4017fa
mov dword [0x48fbec], ebx
push str.showsilent
lea edx, [esp + 0x1c]
push edx
call fcn.004012b0
test eax, eax
je 0x401813
mov dword [0x48fbb4], ebp
push str.InstallCover
lea eax, [esp + 0x1c]
push eax
call fcn.004012b0
test eax, eax
je 0x40182c
mov dword [0x48fc74], ebp
lea eax, [esi - 0x10]
mov byte [esp + 0x38], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40184c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x24]
cmp esi, ebx
je 0x40187b
mov edi, dword [esp + 0x28]
cmp esi, edi
je 0x401872
lea esp, [esp]
mov eax, esi
call fcn.004014e0
add esi, 0x20
cmp esi, edi
jne 0x401860
mov esi, dword [esp + 0x24]
push esi
call fcn.00459f85
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00459f85
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x4018b0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4761e6
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x48b2b0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b2b0]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov eax, dword [0x48fbbc]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
jne 0x401a2d
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebx
push 0x206
lea edx, [esp + 0x2a]
xor ecx, ecx
push ebx
mov dword [esp + 0x240], ebx
push edx
mov word [esp + 0x30], cx
call fcn.0045e0a0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x2001f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallklive
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x401986
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
lea edi, [esp + 0x18]
lea esi, [esp + 0x28]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
call fcn.00405600
cmp ebp, ebx
je 0x401982
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x24]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401990
sub eax, edx
sar eax, 1
jne 0x4019d6
cmp ebp, ebx
je 0x4019ac
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004599ac
add esp, 0x228
ret
lea eax, [esp + 0x24]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4019e0
sub eax, edx
sar eax, 1
lea edx, [esp + 0x24]
mov ebx, eax
push edx
mov eax, 0x48fbbc
call fcn.0040c520
mov eax, 0x48fbbc
call fcn.0040c7a0
mov edx, dword [0x48fbbc]
call fcn.0041cd50
mov dword [esp + 0x238], 0xffffffff
test ebp, ebp
je 0x401a2b
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
lea esi, [esp + 0x14]
call fcn.0041d780
mov esi, 1
mov dword [esp + 0x238], esi
mov eax, dword [eax]
push eax
push str.silent_install_path:_ws
mov ecx, 0x48fcd8
call fcn.00427400
mov dword [esp + 0x240], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401a82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x48fbe4]
mov dword [0x48fbd8], esi
cmp dword [ecx - 0xc], ebx
je 0x4019ac
push ebx
push ebx
push 0x48fbd8
push 0x41cde0
push ebx
push ebx
mov dword [0x48fbdc], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x48fbe0], eax
cmp eax, ebx
je 0x4019ac
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4019ac
mov edx, dword [0x48fbe0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x48fbe0], ebx
cmp dword [0x48fbdc], ebx
je 0x4019ac
mov eax, esi
jmp 0x4019ae
Function at 0x402e00
Capabilities:
Check os version

Disassembly:
test byte [0x48fe34], 1
jne 0x402ed0
or dword [0x48fe34], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
xor edx, edx
cmp ecx, 5
jbe 0x402e29
lea eax, [edx + 1]
jmp 0x402e3a
jae 0x402e2f
xor eax, eax
jmp 0x402e3a
shr eax, 8
xor cl, cl
cmp cl, al
sbb eax, eax
neg eax
neg eax
sbb eax, eax
and eax, 0x20000
or eax, 0xb
push 0x48
mov dword [0x48c6b4], eax
push edx
xor eax, eax
xor ecx, ecx
push 0x48c6f4
mov dword [0x48c6b8], 0x42bed0
mov dword [0x48c6bc], edx
mov dword [0x48c6c0], edx
mov dword [0x48c6c4], edx
mov dword [0x48c6c8], edx
mov dword [0x48c6cc], edx
mov dword [0x48c6d0], 6
mov dword [0x48c6d4], edx
mov dword [0x48c6d8], edx
mov dword [0x48c6dc], edx
mov dword [0x48c6e0], edx
mov dword [0x48c6e4], edx
mov dword [0x48c6e8], 0x7f00
mov dword [0x48c6ec], 1
mov word [0x48c6f0], ax
mov word [0x48c6f2], cx
call fcn.0045e0a0
add esp, 0xc
mov eax, 0x48c6b0
ret

Function at 0x405600
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
test edi, edi
jne 0x40560f
push 0x80004005
call fcn.0040c6b0
mov ecx, dword [esp + 8]
mov edx, dword [ecx]
push edi
push esi
lea eax, [esp + 8]
push eax
push 0
push str.InstallDir
push edx
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x405695
mov ecx, dword [edi]
test ecx, ecx
jbe 0x405690
mov edx, dword [esp]
test edx, edx
jbe 0x405699
cmp edx, 2
jbe 0x40567c
cmp edx, 7
jne 0x405699
test cl, 1
jne 0x40566e
shr ecx, 1
cmp ecx, 1
jb 0x40566e
cmp word [esi + ecx*2 - 2], 0
jne 0x40566e
cmp ecx, 1
jbe 0x405695
cmp word [esi + ecx*2 - 4], 0
je 0x405695
xor eax, eax
mov word [esi], ax
mov eax, 0xd
pop ecx
ret 4
test cl, 1
jne 0x40568b
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x405695
mov eax, 0xd
xor ecx, ecx
mov word [esi], cx
pop ecx
ret 4
xor edx, edx
mov word [esi], dx
lea eax, [edx + 0xd]
pop ecx
ret 4
Function at 0x406ca0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4762b8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b2b0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x2c]
mov eax, dword [0x48eacc]
mov edx, dword [eax + 0xc]
mov ecx, 0x48eacc
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
push 0
lea eax, [esp + 0x1c]
push eax
push ebp
mov dword [esp + 0x30], 0
call fcn.0040be80
mov edx, 0x47addc
mov ecx, eax
call fcn.00409ee0
test eax, eax
je 0x406d28
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x18]
push ecx
push edx
mov ecx, esi
call fcn.00406c20
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x406d23
mov dword [ecx], eax
jmp 0x406d25
mov dword [esi], eax
mov dword [esi + 4], eax
push 1
lea eax, [esp + 0x1c]
push eax
push ebp
call fcn.0040be80
mov edx, 0x47addc
mov ecx, eax
call fcn.00409ee0
test eax, eax
je 0x406d65
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x18]
push ecx
push edx
mov ecx, esi
call fcn.00406c20
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x406d60
mov dword [ecx], eax
jmp 0x406d62
mov dword [esi], eax
mov dword [esi + 4], eax
push 0x47addc
push ebp
call fcn.0040be80
lea ecx, [esp + 0x20]
mov edx, eax
call fcn.0040a060
test eax, eax
je 0x406d9f
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.00406c20
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x406d9a
mov dword [ecx], eax
jmp 0x406d9c
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0040be80
cmp dword [eax + 4], 0
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
je 0x406df9
call fcn.0040be80
mov edi, dword [eax + 4]
movzx edx, bp
push 0x47addc
push edx
push edi
call ebx
test eax, eax
je 0x406df9
push edi
lea ecx, [esp + 0x1c]
call fcn.0040a210
add esp, 4
test eax, eax
je 0x406df9
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.00406c20
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x406df4
mov dword [ecx], eax
jmp 0x406df6
mov dword [esi], eax
mov dword [esi + 4], eax
movzx edx, bp
push 0x47addc
push edx
push 0x400000
call ebx
test eax, eax
je 0x406e42
push 0x400000
lea ecx, [esp + 0x1c]
call fcn.0040a210
add esp, 4
test eax, eax
je 0x406e42
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.00406c20
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x406e3d
mov dword [ecx], eax
jmp 0x406e3f
mov dword [esi], eax
mov dword [esi + 4], eax
xor edx, edx
cmp dword [esi + 8], edx
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x18]
setne dl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov esi, edx
mov edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406e76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x40a060
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x474108
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b2b0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
mov eax, dword [edi]
xor ebx, ebx
mov dword [esp + 0x18], ebx
cmp dword [eax - 0xc], ebx
je 0x40a19c
mov edx, dword [0x48eacc]
mov eax, dword [edx + 0xc]
mov ecx, 0x48eacc
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x30]
mov eax, dword [edi]
push ecx
push edx
push eax
push str._s_d._s
lea edi, [esp + 0x24]
call fcn.0040a040
mov ecx, dword [esp + 0x24]
add esp, 0x10
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40a174
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x40a16d
mov eax, dword [esi]
sub eax, 0x10
mov dword [esp + 0x30], ebx
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea ecx, [edi + 0xa]
sub eax, ecx
or eax, edx
jge 0x40a129
mov eax, esi
call fcn.0040b370
mov eax, dword [esi]
push ebx
lea edx, [esp + 0x34]
push edx
push edi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x40a15f
cmp dword [esp + 0x30], edi
jne 0x40a15f
mov eax, edi
call fcn.0040a1d0
lea ecx, [esp + 0x14]
call fcn.0040c690
mov eax, 1
jmp 0x40a1a0
mov eax, dword [esi]
cmp dword [eax - 8], ebx
jl 0x40a1b6
mov dword [eax - 0xc], ebx
mov eax, dword [esi]
mov byte [eax], bl
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a19c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0x80070057
call fcn.0040c6b0
int3

Function at 0x40a210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov ebx, eax
push ebx
push ebp
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x40a231
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40a22a
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x40a22a
mov eax, dword [esi]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea ecx, [edi + 1]
sub eax, ecx
or edx, eax
jge 0x40a26c
mov eax, esi
call fcn.0040b370
mov ecx, dword [esi]
push edi
push ebp
push ecx
call fcn.0045fe40
add esp, 0xc
mov eax, edi
call fcn.0040a1d0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x40bcb0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x476b58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x48b2b0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0xa
mov dword [esp + 0x38], ebx
mov eax, dword [0x48f98c]
cmp eax, ebx
jne 0x40bd2e
push 0x30
call fcn.0045a06d
add esp, 4
cmp eax, ebx
jne 0x40bd22
push 0x483da4
lea eax, [esp + 0x1b]
push eax
mov byte [esp + 0x1f], bl
call fcn.0045e39b
mov esi, eax
call fcn.0040bab0
mov dword [0x48f98c], eax
mov ebx, eax
call fcn.00406b90
push 0x64
lea ecx, [esp + 0x1c]
call fcn.00406ca0
mov edi, eax
add esp, 4
test edi, edi
jne 0x40bd67
lea ecx, [esp + 0x18]
call fcn.00406ae0
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40bd81
mov eax, esi
mov ecx, dword [eax + 8]
mov esi, dword [esi]
call fcn.0040bb30
or edi, eax
test esi, esi
jne 0x40bd6f
lea ecx, [esp + 0x18]
call fcn.00406ae0
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x40c100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40c117
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40c148
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x40c144
cmp esi, eax
jae 0x40c148
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x40c134
cmp esi, eax
jb 0x40c14e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x40cb10
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x475328
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x48b2b0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x10]
push eax
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
mov dword [esp + 0x3c], ebx
push SysReAllocString
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x40cb92
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push SysReAllocString
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x40cc03
mov edi, dword [esp + 0x10]
lea esi, [esp + 0x14]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], edi
call fcn.0040ca10
mov ecx, dword [esp + 0x14]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push ebx
push ecx
push edi
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x40cbd8
push edi
call esi
xor edi, edi
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x20], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cbfc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebx
je 0x40cc03
push edi
call esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret
Function at 0x40cc20
Capabilities:
Check if file exists
Create process on windows

Disassembly:
sub esp, 0x40
push ebp
mov ebp, dword [esp + 0x48]
push esi
mov esi, eax
push esi
mov dword [esp + 0xc], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40cc5c
push esi
push str.KFunction::RunApp_File__ws_not_exist.
mov ecx, 0x48fcd8
call fcn.00427400
add esp, 8
mov eax, 1
pop esi
pop ebp
add esp, 0x40
ret
push 0x38
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0045e0a0
xor eax, eax
add esp, 0xc
mov ecx, edi
neg ecx
sbb ecx, ecx
lea edx, [esp + 0xc]
and ecx, 0xa
push edx
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40ccca
test ebp, ebp
je 0x40ccc3
mov eax, dword [esp + 0x44]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, 1
jmp 0x40cceb
push ebx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KFunction::RunApp_ShellExecuteEx_error:_d__wait:_d__show:_d__path:_ws__cmd:_ws
mov ecx, 0x48fcd8
call fcn.00427400
mov esi, dword [esp + 0x20]
add esp, 0x18
mov eax, dword [esp + 0x44]
test eax, eax
je 0x40ccfa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebp
add esp, 0x40
ret

Function at 0x40cd10
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x483f20
push 0x45e180
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x48b2b0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x38], esi
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, esi
je 0x40cdbe
lea ecx, [ebp - 0x28]
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, esi
je 0x40cdbe
mov edi, 1
mov dword [ebp - 0x38], edi
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 2
push esi
push esi
push esi
lea ecx, [ebp - 0x38]
push ecx
push esi
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp eax, esi
je 0x40cdbe
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.0040cde1
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d350
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x475281
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x48b2b0]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b2b0]
xor eax, esp
push eax
lea eax, [esp + 0x284]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x294]
lea eax, [esp + 0x18]
xor esi, esi
push eax
mov dword [esp + 0x20], esi
call fcn.0040c310
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
mov ebx, 0x47b38c
mov dword [esp + 0x294], esi
call fcn.0040bda0
mov eax, dword [eax]
add esp, 8
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d3f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, 0xffffffff
jne 0x40d3ff
mov esi, 1
jmp 0x40d4f3
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
test byte [esp + 0x2c], 0x10
je 0x40d4cc
push 0x47b390
lea ecx, [esp + 0x5c]
push ecx
call ebp
test eax, eax
je 0x40d4cc
push 0x47b394
lea edx, [esp + 0x5c]
push edx
call ebp
test eax, eax
je 0x40d4cc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
lea ebx, [esp + 0x60]
call fcn.0040bda0
push eax
lea edx, [esp + 0x34]
push edx
mov ebx, 0x47b228
mov byte [esp + 0x29c], 1
call fcn.0040bda0
mov byte [esp + 0x29c], 2
mov eax, dword [eax]
push eax
call fcn.0040d350
mov esi, eax
mov byte [esp + 0x2a0], 1
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d4a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28c], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d4c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40d4e8
lea ecx, [esp + 0x2c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d405
mov dword [esp + 0x1c], 1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [esp + 0x28c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d529
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x284]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.004599ac
add esp, 0x27c
ret