joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457ac0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b0373
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004a38c2
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004a8f58
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004aa474
test eax, eax
je 0x457bdc
mov ecx, dword [esp + 0x3c]
call fcn.004a8f85
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x457ba0
push edi
mov ecx, esi
call fcn.004a65f5
mov ecx, esi
call fcn.00457d80
cmp dword [esp + 0x38], 1
jne 0x457bd5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004a6730
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x459dc0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x459df3
push esi
call fcn.00468180
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x459dec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x459e79
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x459e62
mov eax, dword [esi + 8]
test eax, eax
je 0x459e17
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x459e5e
cmp eax, 2
je 0x459e62
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x459e0a
cmp eax, 3
je 0x459e3d
cmp eax, 1
jne 0x459e0a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x459e0a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x459e0a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00459ea0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x459e88
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00459ea0
add esp, 4
pop esi
ret

Function at 0x45a720
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x45a741
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x45a741
mov eax, dword [eax + 0x44]
test eax, eax
je 0x45a741
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4759e0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x475a83
test eax, eax
jbe 0x475a83
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x475a83
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x475a2e
xor esi, esi
jmp 0x475a34
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x475a5f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00419040
add esi, eax
push esi
mov ebx, esi
call fcn.00419040
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x475a40
pop ebp
test edi, edi
pop edi
jne 0x475a83
test ebx, ebx
je 0x475a83
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00492450
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x475ba5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x475cbd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x475cbd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004a3d14
mov esi, eax
test esi, esi
je 0x475cbd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x475cbd
mov ecx, esi
call fcn.00475b30
cmp edi, eax
jge 0x475cbd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x475c43
mov dword [esp + 0x34], 1
jmp 0x475c9e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x475cbd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004750e0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x47c260
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4fcfd8]
xor edx, edx
cmp eax, edx
jne 0x47c286
xor eax, eax
mov byte [eax + 0x4fced8], al
inc eax
cmp eax, 0x100
jl 0x47c26e
mov dword [0x4fcfd8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4fced8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x47c317
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x47c2ea
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x47c2b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x47c320
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x47c373
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x47c35a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x482cf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b0c0e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00483610
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4bca3c
call fcn.004a2028
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x482d83
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a2028
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x482d7c
push 0
mov ecx, eax
call fcn.00479e90
mov dword [esi + 0xc], eax
jmp 0x482d85
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x482d85
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4a46b8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a46f0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a2742
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a271a
jmp 0x4a46fc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a5daa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a5dec
call fcn.004ab85f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a5dec
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a5de3
xor eax, eax
jmp 0x4a5df4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a5dfa
pop edi
pop esi
pop ebx
ret 4
Function at 0x4abd8f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4abdbd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4abddb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004abcf5
jmp 0x4abddb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4abddb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004abcf5
test edi, edi
mov eax, edi
jne 0x4abdc5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1000257c
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov eax, 0x1001106c
call fcn.1000a65c
sub esp, 0x40
mov eax, dword [0x100162d0]
mov dword [ebp - 0x10], eax
push esi
lea eax, [ebp - 0x48]
push eax
mov esi, ecx
call fcn.10002428
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.100024d2
and dword [ebp - 0x4c], 0
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x100025bc
lea eax, [ebp - 0x44]
push edi
mov edi, 0x2001f
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x4c]
call fcn.100012b8
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jne 0x10002603
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x100025e7
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x100025fd
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x4c]
call esi
lea ecx, [ebp - 0x4c]
call fcn.100012a1
push edi
push str.CLSID
push SysReAllocString
lea ecx, [ebp - 0x4c]
call fcn.100012b8
test eax, eax
pop edi
jne 0x10002635
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x1000262f
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x4c]
call esi
lea ecx, [ebp - 0x4c]
call fcn.100012a1
lea ecx, [ebp - 0x4c]
call fcn.100012a1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001db9
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.10001db9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.1000989e
leave
ret
Function at 0x10002672
Capabilities:
Get common file path
Get disk information
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x100162d0]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, str.asdf
push eax
xor esi, esi
push esi
push esi
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push esi
push esi
push 0x100123bc
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push esi
push esi
push esi
push esi
push 0x100123b8
push esi
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.100022d4
push esi
lea ecx, [ebp - 0x74]
mov ebx, eax
mov dword [ebp - 0x5c], 0xf
call fcn.100015b4
lea eax, [ebp - 0x58]
push eax
mov ecx, edi
call fcn.10002428
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.100024d2
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.100023d6
mov eax, dword [ebp - 0x1c]
add esp, 0xc
cmp dword [ebp - 8], 0x10
jae 0x1000270d
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x78]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
push 0x100123b6
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.10001db9
push esi
push edi
lea ecx, [ebp - 0x3c]
call fcn.10001db9
push esi
push edi
lea ecx, [ebp - 0x58]
call fcn.10001db9
push esi
push edi
lea ecx, [ebp - 0x74]
call fcn.10001db9
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.1000989e
leave
ret 4

Function at 0x10002774
Capabilities:
Get disk information
Get file attributes

Disassembly:
push ebx
push esi
push edi
xor esi, esi
push esi
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push esi
push esi
push 0x100123bc
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push esi
push esi
push esi
push esi
push 0x100123b8
push esi
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push str.plhc
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
push dword [esp + 0x14]
mov ecx, ebx
call fcn.10002300
mov edi, eax
cmp edi, esi
jl 0x100027c5
mov ecx, ebx
xor edi, edi
call fcn.1000257c
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x10002865
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x1000287f
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 0xc
Function at 0x100028a8
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x100028b3
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x10002911
Capabilities:
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x2f8]
sub esp, 0x378
mov eax, dword [0x100162d0]
push ebx
push esi
push edi
mov dword [ebp + 0x2f4], eax
mov esi, ecx
call dword [0x10016050]
mov ebx, dword [0x100179e4]
mov dword [ebp - 0x80], eax
mov edi, 0x104
push edi
lea eax, [ebp + 0xe8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10002960
call fcn.10001269
jmp 0x10002aa0
cmp eax, edi
jne 0x1000296e
mov eax, 0x8007007a
jmp 0x10002aa0
test ebx, ebx
je 0x10002986
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp ebx, eax
je 0x10002986
lea ecx, [ebp + 0xe8]
jmp 0x100029c4
lea eax, [ebp + 0xe8]
push eax
lea eax, [ebp + 0x1ed]
push eax
mov byte [ebp + 0x1ec], 0x22
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0x1ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [ebp + eax + 0x1ec], 0x22
mov byte [ebp + eax + 0x1ed], 0
lea ecx, [ebp + 0x1ec]
mov eax, dword [esi]
push ecx
push str.Module
push esi
call dword [eax + 0x14]
test eax, eax
jl 0x10002aa0
mov eax, dword [esi]
lea ecx, [ebp + 0xe8]
push ecx
push str.Module_Raw
push esi
call dword [eax + 0x14]
test eax, eax
jl 0x10002aa0
lea eax, [ebp - 0x7c]
push eax
push 0x10016e90
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jl 0x10002aa0
mov ebx, dword [ebp - 0x7c]
test ebx, ebx
jne 0x10002a14
xor eax, eax
jmp 0x10002a39
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.10009830
mov eax, esp
push dword [ebp - 0x80]
push edi
push ebx
push eax
call fcn.1000119a
mov ecx, dword [esi]
push eax
push str.MODULEGUID
push esi
call dword [ecx + 0x14]
push dword [ebp - 0x7c]
mov edi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
jge 0x10002a58
mov eax, edi
jmp 0x10002aa0
push 0x2000
push 0x160
lea eax, [ebp - 0x78]
push eax
push 0
lea eax, [ebp + 0xe8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
mov eax, dword [esi]
jne 0x10002a82
push str.InprocServer32
jmp 0x10002a87
push str.LocalServer32
push str.MODULETYPE
push esi
call dword [eax + 0x14]
test eax, eax
jl 0x10002aa0
mov ecx, dword [0x10016ea0]
mov eax, dword [ecx]
push esi
call dword [eax + 0x14]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x2f4]
call fcn.1000989e
pop edi
pop esi
pop ebx
add ebp, 0x2f8
leave
ret
Function at 0x10002b4d
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x10011081
call fcn.1000a65c
sub esp, 0x11c
mov eax, dword [0x100162d0]
push esi
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x10], eax
call fcn.10004dd3
xor esi, esi
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], esi
call fcn.10005a53
test eax, eax
jne 0x10002bb4
push esi
push esi
push esi
push esi
push esi
push str.kduef
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push str.plhc
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetTextCharsetInfo]
lea ecx, [ebp - 0x128]
call fcn.100058fb
lea ecx, [ebp - 0x128]
call fcn.10005097
test eax, eax
pop esi
jne 0x10002bcf
lea ecx, [ebp - 0x128]
call fcn.100050f2
lea ecx, [ebp - 0x128]
call fcn.100060b5
test eax, eax
jne 0x10002be9
lea ecx, [ebp - 0x128]
call fcn.100051fb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.10004ddf
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor eax, eax
call fcn.1000989e
leave
ret

Function at 0x10002ced
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x100162d0]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x9c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x90], eax
mov dword [ebp - 0x74], esi
call fcn.100012b8
cmp eax, esi
jne 0x10002d75
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x10002d3e
lea eax, [ebp - 0x70]
push eax
call fcn.10002ced
cmp eax, esi
jne 0x10002d74
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], pe_nt_image_headers32
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x10002d31
call fcn.100012a1
push dword [ebp + 0x9c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.100012a1
mov ecx, dword [ebp + 0x90]
mov eax, esi
pop esi
pop ebx
call fcn.1000989e
add ebp, 0x94
leave
ret 4

Function at 0x100050f2
Capabilities:
Copy file

Disassembly:
mov eax, 0x10011214
call fcn.1000a65c
sub esp, 0x3c
mov eax, dword [0x100162d0]
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 0x10], eax
mov esi, ecx
call fcn.1000622c
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebp - 0x48]
call fcn.10002393
add esi, 0xa8
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.10002393
cmp dword [ebp - 0x30], 0x10
mov ecx, dword [ebp - 0x44]
jae 0x1000513d
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x10005149
lea eax, [ebp - 0x28]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001db9
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.10001db9
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.1000989e
leave
ret