joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2148
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x52e474]
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, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea edx, [ebp - 0x2c]
mov dword [ebp - 4], 0
push edx
push dword [ebp + 0x1c]
mov dword [ebp - 0x2c], 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402719
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
cmp ecx, eax
ja 0x4026e3
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x4026f0
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.004042b0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp + 0x18]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov dword [esi + 0x14], 0xf
cmovae edx, dword [ebp - 0x28]
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [edx], 0
jne 0x40273e
xor ecx, ecx
jmp 0x40274c
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402743
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.00405360
lea ecx, [ebp - 0x28]
call fcn.00404c00
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.00491b3a
mov esp, ebp
pop ebp
ret

Function at 0x402780
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0x18]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4027cd
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x4027b2
mov eax, dword [eax]
push ecx
push eax
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x402840
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x402865
xor al, al
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret
Function at 0x402890
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4028b5
xor al, al
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret

Function at 0x4028f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f21b2
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x52e474]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x118]
push 0x105
push 0
push eax
call fcn.004938a0
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 2
push 0x51f6cc
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
call fcn.00405360
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], 0
jne 0x402993
push 3
push 0x51f6d0
lea ecx, [ebp - 0x130]
call fcn.00404aa0
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x134], 0xf
mov dword [ebp - 0x138], 0
mov byte [ebp - 0x148], 0
call fcn.00404db0
push 1
push 0
lea eax, [ebp - 0x1ac]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x148]
mov byte [ebp - 0x1ac], 0x20
call fcn.00403370
cmp eax, 0xffffffff
je 0x402abb
push 1
push 0x51f6bc
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x164], 0xf
mov dword [ebp - 0x168], 0
mov byte [ebp - 0x178], 0
call fcn.00405360
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x160]
push 1
push 0x51f6bc
mov dword [ebp - 0x14c], 0xf
mov dword [ebp - 0x150], 0
mov byte [ebp - 0x160], 0
call fcn.00405360
lea eax, [ebp - 0x148]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x190]
push eax
call fcn.00403930
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x1a8]
call fcn.00403960
add esp, 0x10
lea ecx, [ebp - 0x148]
push eax
call fcn.004030e0
lea ecx, [ebp - 0x1a8]
call fcn.00404c00
lea ecx, [ebp - 0x190]
call fcn.00404c00
lea ecx, [ebp - 0x160]
call fcn.00404c00
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 1
call fcn.00404c00
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x190]
call fcn.00403a50
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 5
call fcn.004049a0
lea ecx, [ebp - 0x190]
mov byte [ebp - 4], 1
call fcn.00404c00
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x130]
push 1
cmovae eax, dword [ebp - 0x130]
push 0
push eax
lea eax, [ebp - 0x118]
push str.regsvr32.exe
push eax
call fcn.00402480
add esp, 0x14
lea ecx, [ebp - 0x148]
call fcn.00404c00
lea ecx, [ebp - 0x130]
call fcn.00404c00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00491b3a
mov esp, ebp
pop ebp
ret
Function at 0x405730
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2348
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x52e474]
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 eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x138], eax
call fcn.00401d00
push 0xffffffffffffffff
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push 0
push eax
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x13c], 0xf
mov dword [ebp - 0x140], 0
mov byte [ebp - 0x150], 0
call fcn.00404db0
mov eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x12c]
cmp dword [ebp - 0x13c], 0x10
mov edx, 0x100
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x150]
cmovae eax, dword [ebp - 0x150]
mov dword [ebp - 0x130], eax
xor eax, eax
nop word [eax + eax]
mov byte [ecx], al
lea ecx, [ecx + 1]
inc eax
cmp ax, dx
jl 0x4057e0
xor dl, dl
mov word [ebp - 0x2c], 0
xor ebx, ebx
lea esi, [ebp - 0x12c]
mov edi, 0x100
mov eax, dword [ebp - 0x130]
lea esi, [esi + 1]
mov cl, byte [esi - 1]
movzx edx, dl
mov al, byte [edx + eax]
add al, bl
add al, cl
movzx ebx, al
movzx eax, byte [ebp + ebx - 0x12c]
mov byte [esi - 1], al
lea eax, [edx + 1]
cdq
idiv dword [ebp - 0x134]
mov byte [ebp + ebx - 0x12c], cl
sub edi, 1
jne 0x405800
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x40589e
movzx edx, byte [ebp - 0x2c]
movzx ebx, byte [ebp - 0x2b]
nop dword [eax]
inc dl
inc esi
movzx edx, dl
mov cl, byte [ebp + edx - 0x12c]
add bl, cl
movzx ebx, bl
movzx eax, byte [ebp + ebx - 0x12c]
mov byte [ebp + edx - 0x12c], al
mov byte [ebp + ebx - 0x12c], cl
movzx eax, cl
add al, byte [ebp + edx - 0x12c]
mov ecx, dword [ebp - 0x138]
movzx eax, al
movzx eax, byte [ebp + eax - 0x12c]
xor byte [edi + ecx], al
movsx edi, si
cmp edi, dword [ebp + 0xc]
jl 0x405850
lea ecx, [ebp - 0x150]
call fcn.00404c00
lea ecx, [ebp - 0x28]
call fcn.00404c00
mov al, 1
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.00491b3a
mov esp, ebp
pop ebp
ret 8
Function at 0x405990
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2397
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x52e474]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x4059e5
mov dword [esi], 0x51f7e8
mov dword [esi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov edi, dword [eax + 4]
add edi, esi
mov ecx, edi
call fcn.00408370
lea ebx, [esi + 0x10]
mov dword [edi + 0x3c], 0
push 0x20
mov ecx, edi
mov dword [edi + 0x38], ebx
call fcn.00408070
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x405a48
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.004091c0
mov dword [ebp - 4], 2
mov eax, dword [esi]
mov dword [ebp + 8], ebx
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + esi - 4], eax
mov ecx, ebx
call fcn.00407f00
lea eax, [ebx + 4]
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [ebx + 0xc], eax
lea ecx, [ebx + 8]
lea eax, [ebx + 0x14]
mov byte [ebx + 0x48], 0
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov byte [ebx + 0x3d], 0
mov dword [ebx + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov dword [ebx + 0x4c], 0
mov eax, dword [0x534254]
mov dword [ebx + 0x40], eax
mov eax, dword [0x534258]
mov dword [ebx + 0x44], eax
mov eax, esi
mov dword [ebx + 0x38], 0
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 0x407440
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2148
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x52e474]
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
cmp dword [edi + 0x38], 0
je 0x407592
cmp byte [edi + 0x3d], 0
je 0x407592
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x407499
xor al, al
jmp 0x407594
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
nop
mov eax, dword [edi + 0x38]
lea ebx, [ebp - 0x28]
cmp ecx, 0x10
lea esi, [ebp - 0x28]
cmovae ebx, edx
cmovae esi, edx
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
cmp eax, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x4074f5
mov dword [ebp - 0x2c], esi
xor eax, eax
jmp 0x407516
mov ecx, dword [edi + 0x38]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, ebx
push eax
push esi
lea eax, [edi + 0x40]
push eax
mov eax, dword [ebp - 0x30]
call dword [eax + 0x20]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub eax, 0
je 0x407533
sub eax, 1
je 0x407537
sub eax, 2
je 0x407584
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.00404c00
mov al, bl
jmp 0x407594
mov byte [edi + 0x3d], 0
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, edx
sub esi, eax
je 0x407566
push dword [edi + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0049c2f2
add esp, 0x10
cmp esi, eax
jne 0x407525
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [edi + 0x3d], 0
je 0x407584
test esi, esi
jne 0x4074d0
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004042b0
jmp 0x4074c9
lea ecx, [ebp - 0x28]
mov bl, 1
call fcn.00404c00
mov al, bl
jmp 0x407594
mov al, 1
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.00491b3a
mov esp, ebp
pop ebp
ret
Function at 0x407f00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2716
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x52e474]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00491b9d
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00444620
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409bf0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2998
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x52e474]
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 ebx, ecx
mov esi, dword [ebp + 0xc]
push 0x1c
call fcn.00491b9d
mov ecx, dword [ebp + 8]
mov edi, eax
mov eax, dword [ebp + 0x1c]
add esp, 4
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x48], 0xf
mov dword [edi], ecx
mov ecx, dword [ebp + 0x10]
mov dword [edi + 8], ecx
mov ecx, dword [ebp + 0x14]
mov dword [edi + 0xc], ecx
mov ecx, dword [ebp + 0x18]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x20]
mov dword [edi + 4], esi
mov dword [edi + 0x10], ecx
mov dword [edi + 0x18], eax
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
cmp byte [esi], 0
jne 0x409c70
xor ecx, ecx
jmp 0x409c7e
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409c75
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x5c]
call fcn.00405360
mov dword [ebp - 0x44], edi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x5c]
push dword [ebp - 0x60]
push eax
push ecx
lea eax, [ebp - 0x64]
mov ecx, ebx
push eax
call fcn.0040c530
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
call fcn.00404c00
cmp byte [ebp - 0x60], 0
jne 0x409d41
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp byte [esi], 0
jne 0x409cd9
xor ecx, ecx
jmp 0x409ce9
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409ce0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00405360
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0x2e
push str.more_than_one_flags_defined_with_the_same_name
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00405360
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00409a90
lea ecx, [ebp - 0x28]
call fcn.00404c00
lea ecx, [ebp - 0x40]
call fcn.00404c00
push 0
call fcn.004aac7c
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.00491b3a
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40cc10
Capabilities:
Create process on windows
Find taskbar

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0x54
push edi
mov edi, dword [eax]
mov eax, dword [0x53428c]
cmp eax, dword [edi + 4]
jle 0x40cc5b
push 0x53428c
call fcn.00491d3d
mov eax, dword [0x53428c]
add esp, 4
cmp eax, 0xffffffff
jne 0x40cc5b
call fcn.0040d3a0
push 0x53428c
mov word [0x534290], ax
call fcn.00491cfe
add esp, 4
mov eax, 0x600
cmp word [0x534290], ax
jb 0x40cd67
call fcn.0040ce20
test eax, eax
je 0x40cd67
push esi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x40cd04
mov ecx, eax
call fcn.0040cd90
mov esi, eax
test esi, esi
je 0x40cd04
mov ecx, dword [0x534284]
cmp ecx, dword [edi + 4]
jle 0x40cce1
push 0x534284
call fcn.00491d3d
mov eax, dword [0x534284]
add esp, 4
mov ecx, dword [0x534288]
cmp eax, 0xffffffff
jne 0x40cce7
push 0x51f9cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x534284
mov dword [0x534288], eax
call fcn.00491cfe
add esp, 4
mov ecx, dword [0x534288]
test ecx, ecx
je 0x40ccfd
push str.CreateProcessWithTokenW
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x40cd0c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push 0x40
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], 0x44
push 0
push eax
call fcn.004938a0
add esp, 0xc
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
movups xmmword [ebp - 0x10], xmm0
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0x10]
push 0
push 0x20
push dword [ebp + 0xc]
push dword [ebp + 8]
push 1
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
test ebx, ebx
je 0x40cd5b
push dword [ebp - 0x10]
call edi
push dword [ebp - 0xc]
call edi
push esi
call edi
mov eax, ebx
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x51f9a4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
pop edi
setg cl
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x40ce20
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x52e474]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40ce89
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491b3a
mov esp, ebp
pop ebp
ret
Function at 0x40d0e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
call fcn.0040d130
test al, al
jne 0x40d0f4
pop esi
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
sub ecx, edx
cmp dword [eax + 0x14], 0x10
jb 0x40d109
mov eax, dword [eax]
push ecx
push edx
push 3
push 0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
sete al
pop ebp
ret 8
Function at 0x40f710
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x40f728
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jae 0x40f77b
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x40f749
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jae 0x40f76c
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp - 8]
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor eax, ecx
mov dword [ebp - 8], eax
jmp 0x40f740
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx*4 + 0x530890], eax
jmp 0x40f71f
jmp 0x40f786
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x800
jae 0x40f7be
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x530490]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
mov edx, dword [ebp - 0x10]
shr edx, 8
xor edx, dword [ecx*4 + 0x530890]
mov eax, dword [ebp - 4]
mov dword [eax*4 + 0x530890], edx
jmp 0x40f77d
mov dword [0x532890], fcn.00414910
call fcn.0040fbf0
test eax, eax
jne 0x40f7db
mov dword [0x532890], 0x414a20
mov esp, ebp
pop ebp
ret

Function at 0x40f8d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x40f8e6
xor eax, eax
jmp 0x40f91f
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
call fcn.0049b731
add esp, 0x10
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
cmp eax, dword [ebp - 4]
jne 0x40f911
xor eax, eax
jmp 0x40f91f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.0049b32d
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x40f930
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x40f946
xor eax, eax
jmp 0x40f97f
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
call fcn.0049c2f2
add esp, 0x10
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
cmp eax, dword [ebp - 4]
jne 0x40f971
xor eax, eax
jmp 0x40f97f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.0049b32d
add esp, 4
mov esp, ebp
pop ebp
ret