joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ef23c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x5ef283
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5ef266
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5ef277
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x5ef283
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x5fa9e4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x5faa05
test edi, 0x40000
je 0x5faa1f
test bl, bl
jne 0x5faaa0
mov eax, 0x40000
and eax, edi
cmp eax, 0x40000
jne 0x5faaa0
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x5faa52
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x5faa67
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x5faa76
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x5faa87
cmp byte [esp + 2], 0
je 0x5faaa0
cmp byte [esp + 2], 0
je 0x5faa98
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x5faaa0
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x5fad44
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x5fad6a
mov eax, esp
push eax
push 0x5fad0c
call sub.user32.dll_EnumWindows
jmp 0x5fad7d
mov eax, esp
push eax
push 0x5facec
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x5fae40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
xor eax, eax
mov si, ax
test bl, 4
je 0x5fae52
or si, 1
test bl, 8
je 0x5fae5b
or si, 4
test bl, 1
je 0x5fae64
or si, 8
test bl, 2
je 0x5fae6d
or si, 0x10
test bl, 0x10
je 0x5fae76
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5fae86
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x5fae8c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
xor eax, eax
mov bx, ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5faea5
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5faeb5
or bx, 4
test esi, 0x20000000
je 0x5faec1
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x604888
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x60489a
add esp, 0xfffffff0
call fcn.00408754
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0047eb1c
mov eax, dword [0x621f3c]
mov dword [eax + 4], ebx
mov dword [eax], 0x604d5c
mov eax, dword [0x621f4c]
mov dword [eax + 4], ebx
mov dword [eax], 0x604d68
mov eax, ebx
call fcn.00604d74
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x440c4c]
call fcn.004080fc
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x440c4c]
call fcn.004080fc
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x440c4c]
call fcn.004080fc
mov dword [ebx + 0x64], eax
mov dl, 1
mov eax, dword [0x440c4c]
call fcn.004080fc
mov dword [ebx + 0x68], eax
mov dl, 1
mov eax, dword [0x440c4c]
call fcn.004080fc
mov dword [ebx + 0x84], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x50], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x68]
push eax
mov eax, 0x5fedc8
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x520128]
call fcn.00526c08
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x520128]
call fcn.00526c08
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x520128]
call fcn.00526c08
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x520128]
call fcn.00526c08
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x520128]
call fcn.00526c08
mov dword [ebx + 0x98], eax
mov eax, ebx
call fcn.00605350
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x605180
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x605180
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x605180
mov eax, dword [ebx + 0x94]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x605180
mov eax, dword [ebx + 0x98]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x605180
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x604a1a
call fcn.004087ac
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x604f20
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x6050cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x6050ad
mov dl, 1
mov eax, dword [0x4446c4]
call fcn.0046ea08
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00409f00
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x60509c
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0055ca1c
test al, al
je 0x60508f
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x6050dc
lea eax, [ebp - 0x394]
call fcn.00425ae8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x60508f
xor eax, eax
push ebp
push 0x605088
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x60514c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x605071
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040a99c
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
jne 0x605071
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040a99c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60508f
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x604f91
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x2d], 0
mov dl, 1
call fcn.0046e930
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6050d3
lea eax, [ebp - 0x3a0]
call fcn.00409f00
ret

Function at 0x605cdc
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x629bf8]
cmp byte [eax + 0xc5], 0
jne 0x605d4e
cmp dword [0x629c1c], 0
jne 0x605d0e
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x621b78]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x629c1c], eax
cmp dword [0x629c18], 0
jne 0x605d29
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventW
mov dword [0x629c18], eax
cmp dword [0x629c20], 0
jne 0x605d4e
push esp
push 0
push 0
mov eax, dword [0x621b74]
push eax
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x629c20], eax
pop edx
ret
Function at 0x606170
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x606187
add esp, 0xfffffff0
call fcn.00408754
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0047eb1c
mov eax, dword [0x621df4]
cmp byte [eax], 0
jne 0x6061b4
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x194], al
mov eax, dword [0x622140]
cmp word [eax + 2], 0
jne 0x6061ce
mov eax, dword [0x622140]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00608550
mov eax, dword [0x622280]
cmp word [eax + 2], 0
jne 0x6061e8
mov eax, dword [0x622280]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00608754
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x520128]
call fcn.00526c08
mov esi, eax
mov dword [ebx + 0x54], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x608cd8
mov dl, 1
mov eax, dword [0x440c4c]
call fcn.004080fc
mov dword [ebx + 0xa8], eax
mov dl, 1
mov eax, dword [0x440c4c]
call fcn.004080fc
mov dword [ebx + 0xc8], eax
xor eax, eax
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x70], 0xff000018
mov dword [ebx + 0x8c], 0x1f4
mov byte [ebx + 0x90], 1
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x88], 0x9c4
mov byte [ebx + 0x9c], 0
mov byte [ebx + 0xbd], 1
mov byte [ebx + 0xd4], 1
mov dl, 1
mov eax, dword [0x525294]
call fcn.00531078
mov esi, eax
mov dword [ebx + 0xb8], esi
push 0x6063d8
mov eax, dword [0x621fe8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00531594
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x608fc0
mov dl, 1
mov eax, dword [0x440c4c]
call fcn.004080fc
mov dword [ebx + 0xb0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x621fe8]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.004258e8
test eax, eax
je 0x606302
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00425740
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.004258cc
test eax, eax
je 0x60631a
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0xa4]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040a99c
push ebx
push 0x607f30
call fcn.005fae24
mov dword [ebx + 0x190], eax
mov byte [ebx + 0xe8], 0
mov eax, dword [0x621df4]
cmp byte [eax], 0
jne 0x60636b
mov eax, ebx
call fcn.006065a0
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6e], 1
mov byte [ebx + 0x6f], 1
mov byte [ebx + 0xbe], 1
mov byte [ebx + 0xe9], 0
mov byte [ebx + 0xf4], 0
xor eax, eax
mov dword [ebx + 0xec], eax
mov byte [ebx + 0xeb], 0
xor eax, eax
mov dword [ebx + 0xc0], eax
mov eax, ebx
call fcn.006091f8
mov eax, ebx
call fcn.00609ea4
mov byte [ebx + 0x196], 0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x6063cf
call fcn.004087ac
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6068cc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x60696e
cmp dword [ebx + 0xac], 0
jne 0x606968
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x60680c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x606968
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x60692e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x606968
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 0xa8]
mov edx, esi
call fcn.004698a8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x60693d
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x606c14
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x629bf8]
cmp dword [eax + 0x188], 0
je 0x606d7d
test bl, bl
jne 0x606cd0
cmp dword [esi + 0xb4], 0
jne 0x606cc5
mov eax, esi
call fcn.00609cf4
push eax
push 0x606b14
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x606c96
mov eax, dword [0x629bf8]
cmp byte [eax + 0xeb], 0
je 0x606c96
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x606c77
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x606c96
push 0
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x606c7f
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x606cc5
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.004698a8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x606ca5
inc dword [esi + 0xb4]
jmp 0x606d7d
cmp dword [esi + 0xb4], 0
jle 0x606d7d
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x606d7d
cmp dword [esi + 0x58], 0
je 0x606d32
mov eax, dword [0x629bf8]
cmp byte [eax + 0xeb], 0
je 0x606d32
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x606d13
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x606d32
push 5
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x606d1b
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x606d61
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.004698a8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x606d41
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x5f7a30]
call fcn.0040ca90
pop edi
pop esi
pop ebx
ret
Function at 0x607b3c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x607b99
cmp byte [ebx + 0xeb], 0
jne 0x607b99
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x188]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040a088
mov eax, dword [esi]
test eax, eax
je 0x607b86
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x607ba6
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a2e0
jmp 0x607ba6
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a2e0
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x60940c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x60947d
mov eax, esi
call fcn.005560c4
test al, al
je 0x60947d
mov eax, dword [ebx + 0x98]
call fcn.00555cf0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x60947d
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x150]
test al, al
je 0x60946e
push 0
mov eax, dword [ebx + 0x98]
call fcn.00555cf0
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x98]
xor edx, edx
call fcn.0054c0cc
jmp 0x60947d
mov edx, dword [ebx + 0x88]
mov cl, 1
mov eax, ebx
call fcn.00609218
pop esi
pop ebx
ret
Function at 0x100049b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1014857c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.10004b10
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x100049da
xor eax, eax
jmp 0x10004a7d
push 0x208
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.1008e2a0
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x20c]
push edx
call fcn.1008e2a0
add esp, 0xc
mov dword [ebp - 0x214], 0
lea eax, [ebp + 0x10]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x208
lea eax, [ebp - 0x20c]
push eax
call fcn.10004ce0
mov dword [ebp - 0x21c], eax
push 0
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.10099bb0
add esp, 4
push eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], 0
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100810f8
mov esp, ebp
pop ebp
ret

Function at 0x10004b10
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1014857c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10c], ecx
mov eax, dword [ebp - 0x10c]
cmp dword [eax], 0
je 0x10004b39
jmp 0x10004c00
push 0x104
push 0
lea ecx, [ebp - 0x108]
push ecx
call fcn.1008e2a0
add esp, 0xc
lea edx, [ebp - 0x108]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x10004b6a
jmp 0x10004c00
push 0x104
push 0
mov eax, dword [ebp - 0x10c]
add eax, 4
push eax
call fcn.1008e2a0
add esp, 0xc
mov ecx, dword [ebp - 0x10c]
add ecx, 4
push ecx
push 0
push 0x1010f948
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, dword [ebp - 0x10c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str..bat
mov ecx, dword [ebp - 0x10c]
add ecx, 4
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
mov edx, dword [ebp - 0x10c]
add edx, 4
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 7
push 0xc01200a0
mov eax, dword [ebp - 0x10c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x10c]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100810f8
mov esp, ebp
pop ebp
ret
Function at 0x10009a70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10009a94
xor eax, eax
jmp 0x10009b14
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10009aab
xor eax, eax
jmp 0x10009b14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x10009af7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x10009af7
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x10009ace
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x10009b03
xor eax, eax
jmp 0x10009b14
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x10009b11
xor eax, eax
jmp 0x10009b14
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x1000a630
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2028
call fcn.10081560
mov eax, dword [0x1014857c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x1000a651
xor eax, eax
jmp 0x1000a6d0
push 0x1e
push 0
lea eax, [ebp - 0x2028]
push eax
call fcn.1008e2a0
add esp, 0xc
mov dword [ebp - 0x2008], 0x1000
mov dword [ebp - 0x2024], 3
push 0x2000
push 0
lea ecx, [ebp - 0x2004]
push ecx
call fcn.1008e2a0
add esp, 0xc
push 0x1000
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x2004]
push eax
call fcn.100ac451
add esp, 0xc
lea ecx, [ebp - 0x2004]
mov dword [ebp - 0x2020], ecx
mov edx, 0x614
mov word [ebp - 0x2018], dx
lea eax, [ebp - 0x2028]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100810f8
mov esp, ebp
pop ebp
ret
Function at 0x1000ac60
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1000ac82
mov eax, 1
jmp 0x1000acf1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000ac97
mov eax, 1
jmp 0x1000acf1
push 0x80
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1000acbf
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1000acbf
mov eax, 1
jmp 0x1000acf1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x1000acef
mov edx, dword [ebp - 4]
and edx, 0x10
je 0x1000acef
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1000acef
mov eax, 1
jmp 0x1000acf1
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000ad00
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1000ad38
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x1010fcf4
call fcn.100440d0
add esp, 0xc
mov eax, 1
jmp 0x1000ad9d
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000ad4d
mov eax, 1
jmp 0x1000ad9d
push 0x80
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1000ad8d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1000ad8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp + 8]
push edx
push str.delete__s_failed__error_d
call fcn.100440d0
add esp, 0xc
mov eax, 1
jmp 0x1000ad9d
push 4
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
mov esp, ebp
pop ebp
ret