joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100029b0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x10002a16
push 0x2a
mov ecx, edi
call fcn.10002b2f
mov eax, dword [esi]
mov ebx, dword [edi]
test eax, eax
je 0x100029e1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x250]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
mov eax, dword [edi + 8]
setne dl
lea ecx, [eax - 1]
cmp eax, ecx
jbe 0x10002a0b
mov eax, dword [edi]
mov dword [edi + 8], ecx
and word [eax + ecx*2], 0
test dl, dl
jne 0x10002a2d
xor al, al
pop edi
pop esi
pop ebx
leave
ret
lea ecx, [ebp - 0x250]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
setne al
test al, al
je 0x10002a0f
xor ebx, ebx
cmp byte [ebp + 0x14], 0
je 0x10002a40
test byte [ebp - 0x250], 0x10
je 0x10002a7e
jmp 0x10002a49
test byte [ebp - 0x250], 0x10
jne 0x10002a7e
push ebx
push ebx
lea eax, [ebp - 0x45c]
push 0x209
push eax
lea eax, [ebp - 0x224]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp + 0xc]
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
je 0x10002aa2
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10002a0f
lea ecx, [ebp - 0x250]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
setne al
test al, al
je 0x10002a0f
jmp 0x10002a2f
lea eax, [ebp - 0x224]
mov ecx, edi
push eax
call fcn.10002b80
mov al, 1
jmp 0x10002a11

Function at 0x100031a0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 8], edi
je 0x100031ea
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x100031c5
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], edi
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x10002f6b
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0xc], eax
jne 0x100031ea
mov dword [esi + 8], 1
pop edi
pop esi
pop ecx
ret

Function at 0x10004af4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x10004b06
mov eax, dword [esi]
mov dword [esi + 8], ebx
mov byte [eax], bl
push edi
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, eax
mov ecx, esi
inc edi
lea eax, [edi + 1]
push eax
call fcn.10004f87
push dword [esi + 4]
push ebx
push dword [esi]
call sub.MSVCRT.dll_memset
mov eax, dword [esi]
add esp, 0xc
push edi
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [esi]
xor ecx, ecx
pop edi
cmp byte [eax], bl
je 0x10004b4a
inc ecx
cmp byte [eax + ecx], bl
jne 0x10004b44
mov dword [esi + 8], ecx
pop esi
pop ebx
ret 4
Function at 0x10004b52
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x1001d314
call fcn.1001cf00
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [0x10032d0c], ebx
push esi
mov esi, ecx
jne 0x10004ba5
lea ecx, [ebp - 0x18]
call fcn.10004a7d
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.10004af4
push dword [ebp - 0x18]
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.10004c61
cmp dword [ebp - 0x18], ebx
je 0x10004bf7
push dword [ebp - 0x18]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
jmp 0x10004bf7
cmp dword [esi + 8], ebx
jbe 0x10004bb2
mov eax, dword [esi]
mov dword [esi + 8], ebx
mov word [eax], bx
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
mov ecx, esi
inc edi
lea eax, [edi + 1]
push eax
call fcn.10004fb2
push dword [esi + 4]
push ebx
push dword [esi]
call sub.MSVCRT.dll_memset
mov eax, dword [esi]
add esp, 0xc
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi]
xor ecx, ecx
pop edi
cmp word [eax], bx
je 0x10004bf4
inc ecx
inc eax
inc eax
jmp 0x10004bea
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x10006dae
Capabilities:
Set registry value

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

Function at 0x10006e0a
Capabilities:
Delete registry key
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov edi, str.SOFTWAREWinampin_vorbis
push eax
mov esi, 0x80000001
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
xor bl, bl
cmp dword [ebp + 8], 0
jne 0x10006e5c
push 0
push str.version
push dword [ebp - 4]
call fcn.10006d5e
add esp, 0xc
cmp eax, 0x10204
jne 0x10006e58
push dword [ebp - 4]
call fcn.10006f40
pop ecx
jmp 0x10006e7b
mov bl, 1
jmp 0x10006e7b
push dword [ebp - 4]
call fcn.10006f5f
mov dword [esp], 0x10204
push str.version
push dword [ebp - 4]
call fcn.10006dae
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x10006e90
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x10006f3b
lea eax, [ebp - 0x108]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x108]
lea ecx, [ebp - 0x108]
cmp eax, ecx
jb 0x10006ed4
cmp byte [eax], 0x2e
je 0x10006ed4
dec eax
jmp 0x10006ec2
inc eax
push 0x10022778
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x108]
pop ecx
and byte [ebp - 0x208], 0
push eax
and byte [ebp + 0xb], 0
lea eax, [ebp - 0x208]
push 0x100
push eax
lea eax, [ebp + 0xb]
push eax
push str.proxy
push str.Winamp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp dword [0x10031f28], esi
jbe 0x10006f2a
mov eax, dword [0x10031f20]
mov dword [0x10031f28], esi
and byte [eax], 0
lea eax, [ebp - 0x208]
mov ecx, 0x10031f20
push eax
call fcn.10004aac
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006f7f
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1001d42c
call fcn.1001cf00
sub esp, 0x28
push ebx
xor ebx, ebx
cmp dword [0x10032d0c], ebx
push esi
push edi
mov esi, ecx
jne 0x10007087
lea ecx, [ebp - 0x28]
call fcn.10004a7d
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
call fcn.10004a7d
push dword [ebp + 0xc]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.10004c07
lea eax, [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
push ebx
mov byte [ebp - 4], 2
push dword [ebp - 0x34]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
push dword [ebp + 8]
call edi
test eax, eax
jne 0x10007058
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x10007058
cmp dword [ebp - 0x18], 1
jne 0x10007058
inc eax
lea ecx, [ebp - 0x28]
push eax
call fcn.10004f87
push dword [ebp - 0x24]
push ebx
push dword [ebp - 0x28]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x28]
push ebx
push ebx
push dword [ebp - 0x34]
push dword [ebp + 8]
call edi
mov ecx, dword [ebp - 0x28]
xor eax, eax
cmp byte [ecx], bl
je 0x1000702d
inc eax
cmp byte [eax + ecx], bl
jne 0x10007027
push ecx
mov ecx, esi
mov dword [ebp - 0x20], eax
call fcn.10004c61
cmp dword [ebp - 0x34], ebx
mov esi, dword [sym.imp.MSVCRT.dll_free]
je 0x10007049
push dword [ebp - 0x34]
call esi
pop ecx
cmp dword [ebp - 0x28], ebx
je 0x10007054
push dword [ebp - 0x28]
call esi
pop ecx
mov al, 1
jmp 0x10007076
cmp dword [ebp - 0x34], ebx
mov esi, dword [sym.imp.MSVCRT.dll_free]
je 0x10007069
push dword [ebp - 0x34]
call esi
pop ecx
cmp dword [ebp - 0x28], ebx
je 0x10007074
push dword [ebp - 0x28]
call esi
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea eax, [ebp - 0x1c]
push ebx
push eax
push ebx
mov dword [ebp - 0x14], ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], ebx
push dword [ebp + 8]
call edi
test eax, eax
jne 0x10007074
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x10007074
cmp dword [ebp - 0x1c], 1
jne 0x10007074
shr eax, 1
inc eax
mov ecx, esi
push eax
call fcn.10004fb2
push dword [esi + 4]
push ebx
push dword [esi]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [esi]
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov eax, dword [esi]
xor ecx, ecx
cmp word [eax], bx
je 0x100070ed
inc ecx
inc eax
inc eax
jmp 0x100070e3
mov dword [esi + 8], ecx
jmp 0x10007054
Function at 0x100070f5
Capabilities:
Set registry value

Disassembly:
mov eax, 0x1001d448
call fcn.1001cf00
sub esp, 0x18
push esi
push edi
xor edi, edi
cmp dword [0x10032d0c], edi
jne 0x10007166
push ecx
lea ecx, [ebp - 0x24]
call fcn.10004f3b
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.10004a7d
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.10004c07
inc esi
push esi
push dword [ebp - 0x24]
push 1
push edi
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp - 0x18], edi
mov esi, dword [sym.imp.MSVCRT.dll_free]
je 0x10007159
push dword [ebp - 0x18]
call esi
pop ecx
cmp dword [ebp - 0x24], edi
je 0x1000717f
push dword [ebp - 0x24]
call esi
pop ecx
jmp 0x1000717f
mov eax, dword [ecx + 8]
lea eax, [eax + eax + 2]
push eax
push dword [ecx]
push 1
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x10008f66
Capabilities:
Get process heap flags

Disassembly:
mov eax, 0x1001d5a2
call fcn.1001cf00
push ecx
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x18]
call fcn.10004a3b
xor ebx, ebx
lea ecx, [esi + 0x24]
mov dword [ebp - 4], ebx
call fcn.10004a7d
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.10004a7d
push 0x2d0
lea eax, [esi + 0x40]
push ebx
push eax
mov dword [esi], 0x1001e99c
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp - 0xc]
add esp, 0xc
cmp byte [ebp + 0xc], bl
mov dword [esi + 0x10], ebx
mov byte [esi + 0x3c], bl
mov byte [esi + 0x3d], bl
sete al
mov byte [esi + 0x3f], al
mov dword [esi + 8], ebx
mov byte [esi + 0x3e], bl
mov dword [esi + 0x14], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x100095f7
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
and byte [ebp + 0xb], 0
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
mov cl, byte [eax]
mov byte [ebp + 8], cl
mov cl, byte [eax + 2]
mov al, byte [eax + 4]
mov byte [ebp + 9], cl
mov byte [ebp + 0xa], al
mov eax, dword [0x10032d68]
cmp eax, 2
je 0x10009637
cmp eax, 1
jne 0x1000967e
cmp word [0x10032d64], 0x3e8
jbe 0x1000967e
mov eax, dword [0x10032410]
test eax, eax
jne 0x10009660
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x10032410], eax
je 0x10009672
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp + 8]
push ecx
call eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov ecx, eax
or ecx, edx
jne 0x100096a2
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
mul dword [ebp - 0xc]
leave
ret
Function at 0x1000b0ff
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x1001d714
call fcn.1001cf00
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
push 1
mov eax, dword [esi + 0x4c]
pop edi
test eax, eax
je 0x1000b166
cmp dword [eax + 0x20], 0
je 0x1000b149
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x24]
mov dword [esi + 0xf0], edi
mov ecx, dword [ecx + eax*4]
call fcn.1000ad79
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x30]
mov ebx, dword [esi + 0x24]
mov eax, dword [ecx]
push dword [ebx + edx*4]
call dword [eax + 0x18]
mov ebx, dword [ebp + 8]
cmp ebx, dword [esi + 0x44]
mov ecx, dword [esi + 0x4c]
je 0x1000b161
test ecx, ecx
je 0x1000b15b
mov eax, dword [ecx]
push edi
call dword [eax + 8]
and dword [esi + 0x4c], 0
jmp 0x1000b166
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [ebp + 0xc]
add dword [esi + 0x30], eax
mov ecx, dword [esi + 0x30]
jns 0x1000b177
and dword [esi + 0x30], 0
jmp 0x1000b182
mov eax, dword [esi + 0x2c]
cmp ecx, eax
jl 0x1000b182
dec eax
mov dword [esi + 0x30], eax
cmp dword [esi + 0x4c], 0
mov dword [esi + 0x44], ebx
jne 0x1000b1ef
test ebx, ebx
je 0x1000b1b8
push 0xa4
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [ebp + 8], ecx
xor eax, eax
cmp ecx, eax
mov dword [ebp - 4], eax
je 0x1000b1e1
push dword [esi + 0x48]
push dword [esi + 0x40]
push dword [esi + 0xc]
call fcn.1000b32a
jmp 0x1000b1e1
push 0x134
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
mov dword [ebp - 4], edi
je 0x1000b1df
push dword [esi + 0x48]
push dword [esi + 0x40]
push dword [esi + 0xc]
call fcn.1000c250
jmp 0x1000b1e1
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov ecx, esi
mov dword [esi + 0x4c], eax
call fcn.1000b02e
xor eax, eax
cmp dword [esi + 0x4c], eax
je 0x1000b21d
push eax
push eax
push 0xf0
push 0x422
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ecx, dword [esi + 0x24]
push eax
mov eax, dword [esi + 0x30]
push dword [ecx + eax*4]
mov ecx, dword [esi + 0x4c]
call fcn.1000b2a0
cmp dword [esi + 0x44], 0
mov eax, str.___to_simple_mode
jne 0x1000b22d
mov eax, str.to_advanced_mode___
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
push eax
push 0x41d
push dword [esi + 0xc]
call edi
xor eax, eax
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [esi + 0x30], eax
setg al
push eax
push 0x41f
push dword [esi + 0xc]
call ebx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esi + 0x2c]
xor ecx, ecx
dec eax
cmp dword [esi + 0x30], eax
setl cl
push ecx
push 0x41e
push dword [esi + 0xc]
call ebx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x28]
push dword [ecx + eax*4]
push 0x3ef
push dword [esi + 0xc]
call edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x1000f24c
Capabilities:
Delete file

Disassembly:
mov eax, 0x1001d858
call fcn.1001cf00
sub esp, 0x10
and dword [ebp - 0x10], 0
cmp dword [0x10032d0c], 0
push esi
je 0x1000f272
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1000f299
lea ecx, [ebp - 0x1c]
call fcn.10004a7d
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.10004c07
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test byte [ebp - 0x10], 1
mov esi, eax
je 0x1000f2b1
cmp dword [ebp - 0x1c], 0
je 0x1000f2b1
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x1000f2c0
Capabilities:
Move file

Disassembly:
mov eax, 0x1001d88b
call fcn.1001cf00
sub esp, 0x1c
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x10032d0c], edi
push 1
mov dword [ebp - 0x10], edi
pop ebx
je 0x1000f2ee
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x1000f339
lea ecx, [ebp - 0x28]
call fcn.10004a7d
push dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], edi
call fcn.10004c07
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.10004a7d
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 2
call fcn.10004c07
mov eax, dword [ebp - 0x1c]
push esi
push eax
mov dword [ebp - 0x10], 3
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test byte [ebp - 0x10], 2
mov esi, dword [sym.imp.MSVCRT.dll_free]
mov dword [ebp + 0xc], eax
je 0x1000f357
and dword [ebp - 0x10], 0xfffffffd
cmp dword [ebp - 0x1c], edi
je 0x1000f357
push dword [ebp - 0x1c]
call esi
pop ecx
test byte [ebp - 0x10], bl
je 0x1000f367
cmp dword [ebp - 0x28], edi
je 0x1000f367
push dword [ebp - 0x28]
call esi
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1000f379
Capabilities:
Copy file

Disassembly:
mov eax, 0x1001d8bf
call fcn.1001cf00
sub esp, 0x1c
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x10032d0c], edi
push 1
mov dword [ebp - 0x10], edi
pop ebx
je 0x1000f3aa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x1000f3f8
lea ecx, [ebp - 0x28]
call fcn.10004a7d
push dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], edi
call fcn.10004c07
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.10004a7d
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 2
call fcn.10004c07
push dword [ebp + 0x10]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test byte [ebp - 0x10], 2
mov esi, dword [sym.imp.MSVCRT.dll_free]
mov dword [ebp + 0xc], eax
je 0x1000f416
and dword [ebp - 0x10], 0xfffffffd
cmp dword [ebp - 0x1c], edi
je 0x1000f416
push dword [ebp - 0x1c]
call esi
pop ecx
test byte [ebp - 0x10], bl
je 0x1000f426
cmp dword [ebp - 0x28], edi
je 0x1000f426
push dword [ebp - 0x28]
call esi
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x1000f523
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x1001d8e8
call fcn.1001cf00
sub esp, 0x10
and dword [ebp - 0x10], 0
cmp dword [0x10032d0c], 0
push esi
je 0x1000f54c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1000f577
lea ecx, [ebp - 0x1c]
call fcn.10004a7d
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.10004c07
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], 1
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [ebp - 0x10], 1
mov esi, eax
je 0x1000f58f
cmp dword [ebp - 0x1c], 0
je 0x1000f58f
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x1000f77a
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp eax, ecx
je 0x1000f811
mov edx, dword [eax]
push ebx
push esi
push edi
mov byte [edx + 0x16], cl
mov edx, dword [eax]
mov byte [edx + 0x17], cl
mov edx, dword [eax]
mov byte [edx + 0x18], cl
mov edx, dword [eax]
mov byte [edx + 0x19], cl
mov esi, dword [eax + 4]
xor edx, edx
cmp esi, ecx
jle 0x1000f7c6
mov edi, dword [eax]
mov ebx, ecx
shr ebx, 0x18
movzx edi, byte [edi + edx]
xor edi, ebx
shl ecx, 8
mov edi, dword [edi*4 + 0x100230ac]
xor ecx, edi
inc edx
cmp edx, esi
jl 0x1000f7a8
xor edx, edx
cmp dword [eax + 0xc], edx
jle 0x1000f7ed
mov esi, dword [eax + 8]
movzx edi, byte [esi + edx]
mov ebx, ecx
shr ebx, 0x18
xor edi, ebx
shl ecx, 8
mov edi, dword [edi*4 + 0x100230ac]
xor ecx, edi
inc edx
cmp edx, dword [eax + 0xc]
jl 0x1000f7d0
mov edx, dword [eax]
pop edi
mov byte [edx + 0x16], cl
mov esi, dword [eax]
mov edx, ecx
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [eax]
mov edx, ecx
shr edx, 0x10
mov byte [esi + 0x18], dl
mov eax, dword [eax]
shr ecx, 0x18
pop esi
mov byte [eax + 0x19], cl
pop ebx
ret
Function at 0xa8d370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xa8d38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xab6074
push ecx
mov edi, eax
call fcn.00aa1198
mov esi, eax
add esp, 8
test esi, esi
jne 0xa8d3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00aa102e
push esi
call fcn.00aa0fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xa90850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xa908ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xabb720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xa908ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00aa11e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xa908ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xabb720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xa9092a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00aa2082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xa90957
mov word [eax], si
add eax, 2
push eax
call fcn.00aa2030
add esp, 4
jmp 0xa90959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xa908ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xa908b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xa90ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret