joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10028a24
Capabilities:
Check if file exists
Create directory

Disassembly:
push 4
mov eax, 0x10098f7c
call fcn.1009220a
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10082a9f
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.1005ee9c
mov edi, dword [ebp - 0x10]
test eax, eax
jne 0x10028a7b
mov esi, 0x800700a1
lea eax, [edi - 0x10]
call fcn.10082afb
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10082afb
mov eax, esi
call fcn.100922e2
ret 4
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10028a5e
push esi
push edi
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, esi
je 0x10028a5e
jle 0x10028a9f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x10028a5e

Function at 0x1002a3cf
Capabilities:
Get common file path

Disassembly:
push 0x18
mov eax, 0x10098efe
call fcn.1009220a
and dword [ebp - 4], 0
and dword [ebp - 0x1c], 0
mov eax, dword [0x100b8f90]
mov edi, 0x100b8f90
mov ecx, edi
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 1
mov esi, dword [ebp + 8]
mov ecx, edi
call fcn.10082a50
mov eax, dword [ebx - 8]
xor ecx, ecx
inc ecx
mov dword [ebp - 0x1c], ecx
sub ecx, dword [ebx - 4]
mov edx, 0x104
sub eax, edx
or eax, ecx
jge 0x1002a42d
mov eax, edx
lea ecx, [ebp - 0x10]
call fcn.10082950
mov ebx, dword [ebp - 0x10]
push ebx
xor eax, eax
push eax
push eax
push 0x25
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1002a4c6
or eax, 0xffffffff
lea esi, [ebp - 0x10]
call fcn.10082749
mov eax, dword [0x100b8f90]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x10004bbc
push ebx
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.1005edc7
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 0x18], 0x104
mov dword [ebp - 0x20], eax
call fcn.10082a9f
lea edi, [eax + 0x10]
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 3
push dword [ebp - 0x18]
mov esi, dword [ebp + 8]
call fcn.100829a0
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
push edi
call dword [sym.imp.msi.dll_MsiMessageBoxW]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
call fcn.10082afb
or eax, 0xffffffff
call fcn.10082749
mov eax, dword [ebp - 0x20]
call fcn.10082afb
lea eax, [ebx - 0x10]
call fcn.10082afb
mov eax, dword [ebp + 8]
call fcn.100922e2
ret 4
Function at 0x1002a8d1
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009f428
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push edi
mov eax, dword [0x100b8210]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x100b8f90]
mov ecx, 0x100b8f90
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, esi
mov dword [esp + 0x30], ebx
call fcn.10029340
test al, al
je 0x1002a95c
mov dword [esp + 0x14], ebx
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 1
call fcn.1002857d
push dword [esp + 0x14]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
lea eax, [esp + 0x10]
jne 0x1002a950
push esi
push 0x10004c28
jmp 0x1002a9a4
push dword [esp + 0x14]
push esi
push 0x10004cc8
jmp 0x1002a9b9
cmp esi, 0x80004004
jne 0x1002a979
push 0x10004d78
push 0x22
pop ebx
lea eax, [esp + 0x14]
call fcn.10082811
xor ebx, ebx
jmp 0x1002a9d0
mov dword [esp + 0x14], ebx
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 2
call fcn.1002857d
push dword [esp + 0x14]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
lea eax, [esp + 0x10]
jne 0x1002a9af
push esi
push 0x10004dc0
push eax
call fcn.100827bb
add esp, 0xc
jmp 0x1002a9c2
push dword [esp + 0x14]
push esi
push 0x10004e40
push eax
call fcn.100827bb
add esp, 0x10
mov byte [esp + 0x30], bl
push dword [esp + 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0x10004528
lea eax, [esp + 0x1c]
push eax
call fcn.1005e2c8
mov byte [esp + 0x30], 3
mov eax, dword [edi]
or eax, dword [edi + 4]
je 0x1002aa30
push ebx
call fcn.10085495
pop ecx
mov ecx, dword [edi]
mov edi, dword [edi + 4]
sub eax, ecx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
sbb edx, edi
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], edx
call fcn.1002a606
lea edi, [esp + 0x18]
mov byte [esp + 0x30], 4
call fcn.1005e434
mov byte [esp + 0x30], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.10082afb
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea edi, [esp + 0x18]
call fcn.1005eb8c
mov ecx, dword [ebp + 8]
mov byte [esp + 0x30], 5
push dword [eax]
mov edx, dword [ecx]
call dword [edx + 0x4c]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.10082afb
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.10082afb
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.10082afb
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1002aa8a
Capabilities:
Get file version info

Disassembly:
push 0x14
mov eax, 0x1009ad9a
call fcn.1009220a
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x10004f04
mov dword [ebp - 0x18], ebx
push dword [ebp + 8]
call fcn.1005e2c8
mov dword [ebp - 4], ebx
mov eax, dword [0x100b8f90]
xor esi, esi
inc esi
mov ecx, 0x100b8f90
mov dword [ebp - 0x18], esi
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], esi
mov ecx, dword [edi - 8]
mov edx, esi
sub edx, dword [edi - 4]
mov eax, 0x105
sub ecx, eax
or ecx, edx
jge 0x1002aae8
lea ecx, [ebp - 0x10]
call fcn.10082950
mov edi, dword [ebp - 0x10]
push 0x104
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
or eax, 0xffffffff
lea esi, [ebp - 0x10]
call fcn.10082749
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
cmp esi, ebx
je 0x1002ab75
push esi
call fcn.100855a7
pop ecx
mov ebx, eax
push ebx
push esi
push dword [ebp - 0x14]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1002ab6e
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x1000443c
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1002ab6e
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
movzx edx, ax
push edx
shr eax, 0x10
push eax
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
push 0x10004f14
push dword [ebp + 8]
call fcn.100827bb
add esp, 0x18
push ebx
call fcn.100855b2
pop ecx
lea eax, [edi - 0x10]
call fcn.10082afb
mov eax, dword [ebp + 8]
call fcn.100922e2
ret 4

Function at 0x1002ab88
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100b8210]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x210]
push eax
push 0x20019
xor esi, esi
push esi
mov ebx, 0x10004f30
push ebx
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1002ac32
push esi
lea eax, [ebp - 0x210]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1002ac32
lea edi, [ebp - 0x20c]
call fcn.1002ac4d
push 0x208
mov eax, edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
push 2
push esi
push 0x10004fb0
push dword [ebp - 0x210]
call edi
push 4
lea eax, [ebp - 0x214]
push eax
push 4
push esi
push 0x10004fd4
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 7
call edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10084b58
leave
ret
Function at 0x1002ac4d
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x1009f3dd
call fcn.1009220a
xor ebx, ebx
mov dword [ebp - 0x10], 0x80004005
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
cmp edi, ebx
je 0x1002ad72
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push 0x10004ff8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, eax
jne 0x1002acda
lea eax, [ebp - 0x1c]
push eax
push edi
push ebx
push ebx
push 0x10005068
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], ebx
jne 0x1002acda
xor eax, eax
push edi
mov word [edi + 0x206], ax
call esi
cmp eax, 0xffffffff
je 0x1002acda
mov dword [ebp - 0x10], ebx
jmp 0x1002ad72
push edi
push ebx
push ebx
push 0x2b
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, 0x104
test eax, eax
js 0x1002ad10
push 0x10005078
push ebx
push edi
call fcn.100855bd
add esp, 0xc
test eax, eax
jne 0x1002ad10
push edi
call esi
cmp eax, 0xffffffff
je 0x1002ad10
and dword [ebp - 0x10], 0
jmp 0x1002ad72
mov eax, dword [0x100b8f90]
mov ecx, 0x100b8f90
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
call fcn.1002903c
push 0x100050b4
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0x18]
call fcn.1005edc7
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.10082afb
push dword [ebp - 0x18]
push ebx
push edi
call fcn.10085632
add esp, 0xc
push edi
call esi
cmp eax, 0xffffffff
je 0x1002ad67
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10082afb
mov eax, dword [ebp - 0x10]
call fcn.100922e2
ret

Function at 0x1002b505
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x100b8210]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x414]
push eax
mov esi, 0x100
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1002b53d
call fcn.10082637
jmp 0x1002b5cc
cmp eax, esi
jbe 0x1002b54b
mov eax, 0x80020013
jmp 0x1002b5cc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x100051ec
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1002b533
xor eax, eax
mov word [ebp - 6], ax
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
lea esi, [edi + 8]
push 0x101
push esi
call fcn.10085695
add esp, 0x10
call fcn.100825e9
and dword [ebp - 0x41c], 0
lea ecx, [ebp - 0x420]
push ecx
push 0x2100
push 2
mov eax, 0x40000000
push 0
push eax
push esi
mov dword [ebp - 0x420], 0xc
mov dword [ebp - 0x418], 1
mov dword [edi + 0x20c], eax
call fcn.1002b3ee
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10084b58
leave
ret
Function at 0x1002f8bd
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x10098de2
call fcn.1009220a
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.10082a9f
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10082a9f
lea esi, [eax + 0x10]
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002f933
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push 0
push 0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002f933
mov byte [ebp - 0xd], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
call fcn.10082afb
lea eax, [edi - 0x10]
call fcn.10082afb
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10082afb
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.10082afb
mov al, byte [ebp - 0xd]
call fcn.100922e2
ret 0xc
Function at 0x100378b7
Capabilities:
Identify system language via api

Disassembly:
push 0x24
mov eax, 0x100a29ae
call fcn.1009220a
mov esi, ecx
push 0x10008760
lea eax, [ebp - 0x14]
push eax
call fcn.1005e2c8
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push esi
lea edi, [ebp - 0x14]
call fcn.1002d830
mov eax, dword [ebp - 0x10]
mov ebx, eax
mov dword [ebp - 0x30], ebx
test eax, eax
je 0x100378f9
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [esi + 8]
mov dword [ebp - 0x28], ecx
test eax, eax
je 0x1003790f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10082afb
mov eax, dword [ebx]
push ebx
call dword [eax + 0x28]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x30]
call fcn.1002da1a
jmp 0x100379ae
push dword [ebp + 0xc]
lea edi, [ebp - 0x24]
sub esp, 0xc
mov esi, esp
mov dword [ebp - 0x18], esp
call fcn.1002d6a0
call fcn.100379e4
mov edx, eax
mov dword [ebp - 0x18], edx
cmp edx, 0xfffffffd
jne 0x10037960
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edx, ax
mov dword [ebp - 0x18], edx
test edx, edx
je 0x10037991
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
xor edi, edi
test ecx, ecx
jle 0x1003797e
mov eax, dword [esi]
cmp dword [eax], edx
je 0x10037981
inc edi
add eax, 4
cmp edi, ecx
jl 0x10037972
or edi, 0xffffffff
cmp edi, 0xffffffff
jne 0x10037991
lea ebx, [ebp - 0x18]
call fcn.100612ec
mov ebx, dword [ebp - 0x30]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100379a2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x30]
call fcn.1002da1a
mov byte [ebp - 4], 3
cmp dword [ebp - 0x24], 0
setne al
test al, al
jne 0x10037932
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100379d2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
call fcn.100922e2
ret 8
Function at 0x10038c74
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a0e41
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100b8210]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push dword [ebp + 0x10]
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 0x1000596c
push eax
call fcn.1005e2c8
lea eax, [esp + 0x1c]
push eax
call fcn.1007185a
and dword [esp + 0x34], 0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.10082a9f
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x18]
push eax
call fcn.1002ddf9
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.10082afb
push dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
call fcn.10038daf
push dword [ebp + 0x10]
mov bl, al
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
push 0x10009268
push eax
call fcn.1005e2c8
lea eax, [esp + 0x24]
push eax
call fcn.1007185a
mov byte [esp + 0x34], 3
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x28], esp
mov esi, esp
call fcn.10082a9f
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x20]
push eax
call fcn.1002ddf9
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, dword [esi]
je 0x10038d64
push eax
call edi
mov eax, dword [esi]
mov dword [esp + 0x10], eax
and dword [esi], 0
push dword [esp + 0x18]
call edi
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.10082afb
push dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
call fcn.10038daf
test bl, bl
jne 0x10038d90
test al, al
je 0x10038d92
mov bl, 1
push dword [esp + 0x10]
call edi
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003912f
Capabilities:
Enumerate files on windows

Disassembly:
push 0x268
mov eax, 0x1009a9db
call fcn.10092273
and dword [ebp - 0x270], 0
mov esi, ecx
mov dword [ebp - 0x274], esi
push 0x24c
xor ebx, ebx
lea eax, [ebp - 0x260]
inc ebx
push 0
mov dword [ebp - 4], ebx
and dword [ebp - 0x264], 0
push eax
call fcn.100882c0
add esp, 0xc
push 0x1000928c
lea eax, [ebp + 8]
call fcn.1005ed8d
lea eax, [ebp - 0x264]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x268], eax
setne al
and dword [esi], 0
and dword [esi + 4], 0
and dword [esi + 8], 0
mov dword [ebp - 0x270], ebx
jmp 0x10039260
lea eax, [ebp - 0x238]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100391b8
sub eax, edx
sar eax, 1
cmp eax, 4
jne 0x10039248
movzx eax, word [ebp - 0x238]
push eax
call fcn.10085e8b
pop ecx
test eax, eax
je 0x10039248
movzx eax, word [ebp - 0x236]
push eax
call fcn.10085e8b
pop ecx
test eax, eax
je 0x10039248
movzx eax, word [ebp - 0x234]
push eax
call fcn.10085e8b
pop ecx
test eax, eax
je 0x10039248
movzx eax, word [ebp - 0x232]
push eax
call fcn.10085e8b
pop ecx
test eax, eax
je 0x10039248
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.1005e2c8
lea ebx, [ebp - 0x26c]
mov byte [ebp - 4], 2
call fcn.1005ef43
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
call fcn.10082afb
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
setne al
test al, al
jne 0x100391af
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10082afb
mov eax, esi
call fcn.100922f6
ret 4
Function at 0x1003cfd2
Capabilities:
Check if file exists

Disassembly:
push 0x14
mov eax, 0x1009ec50
call fcn.1009220a
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [edi + 0xc], ebx
jle 0x1003d16f
test ebx, ebx
js 0x1003d177
cmp ebx, dword [edi + 0xc]
jge 0x1003d177
mov eax, dword [edi + 8]
push 0
push 0x100c04c8
push 0x100c0488
mov ecx, ebx
push 0
push dword [eax + ecx*4]
call fcn.10091ce6
mov esi, eax
add esp, 0x14
test esi, esi
je 0x1003d162
cmp byte [ebp + 0x14], 0
je 0x1003d0b7
mov eax, dword [0x100b8f90]
mov ecx, 0x100b8f90
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
call fcn.1003a6d8
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov eax, dword [eax]
mov ecx, dword [ecx]
push eax
push ecx
lea eax, [ebp - 0x18]
call fcn.1005edc7
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10082afb
mov ebx, dword [ebp - 0x18]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003d0a8
lea edi, [esi + 8]
lea eax, [ebp - 0x18]
call fcn.1005e434
or dword [ebp - 4], 0xffffffff
lea eax, [ebx - 0x10]
call fcn.10082afb
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
jmp 0x1003d162
or dword [ebp - 4], 0xffffffff
lea eax, [ebx - 0x10]
call fcn.10082afb
mov ebx, dword [ebp - 0x14]
cmp ebx, dword [edi + 0xc]
jge 0x1003d177
mov eax, dword [edi + 8]
push 0
push 0x100c04a8
push 0x100c0488
mov ecx, ebx
push 0
push dword [eax + ecx*4]
call fcn.10091ce6
add esp, 0x14
mov byte [ebp - 0xd], 0
test eax, eax
je 0x1003d0f3
cmp dword [eax + 0x134], 5
jne 0x1003d0f3
mov byte [ebp - 0xd], 1
mov eax, dword [0x100b8f90]
mov ecx, 0x100b8f90
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
cmp byte [ebp - 0xd], 0
mov dword [ebp - 4], 2
jne 0x1003d153
lea eax, [ebp - 0x20]
push eax
mov eax, esi
call fcn.1003a6f2
mov ecx, dword [ebp + 0x10]
mov byte [ebp - 4], 3
mov eax, dword [eax]
mov ecx, dword [ecx]
push eax
push ecx
lea eax, [ebp - 0x18]
call fcn.1005edc7
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.10082afb
lea edi, [esi + 8]
lea eax, [ebp - 0x18]
call fcn.1005e434
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10082afb
inc ebx
mov dword [ebp - 0x14], ebx
cmp ebx, dword [edi + 0xc]
jl 0x1003cfef
call fcn.100922e2
ret 0x10
call fcn.1008132d
int3
Function at 0x10048bcb
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x100b8210]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x10048c4e
push 0x228
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.100882c0
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x10048c3a
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp + 8]
je 0x10048c41
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x10048c21
jmp 0x10048c47
mov edi, dword [ebp - 0x218]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.10084b58
leave
ret 4

Function at 0x10048c9c
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x1009a554
call fcn.1009220a
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10082a9f
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 0xc]
push 0x1001d82c
xor ebx, ebx
mov eax, esi
mov byte [ebp - 4], 1
call fcn.10082811
mov eax, dword [esi]
mov edx, dword [eax - 8]
xor ecx, ecx
inc ecx
sub ecx, dword [eax - 4]
mov eax, 0x208
sub edx, eax
or ecx, edx
jge 0x10048cef
mov ecx, esi
call fcn.10082950
push dword [esi]
xor ebx, ebx
push ebx
push 0x10018710
push edi
call fcn.10048c92
test eax, eax
jne 0x10048d0d
lea eax, [edi - 0x10]
call fcn.10082afb
jmp 0x10048d2b
or eax, 0xffffffff
call fcn.10082749
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
lea eax, [edi - 0x10]
je 0x10048d06
call fcn.10082afb
mov bl, 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10082afb
mov al, bl
call fcn.100922e2
ret 8
Function at 0x100492c2
Capabilities:
Enumerate gui resources

Disassembly:
push 0x30
mov eax, 0x100a06ac
call fcn.1009220a
push 0x1000ca5c
lea eax, [ebp - 0x14]
push eax
call fcn.1005e2c8
and dword [ebp - 4], 0
mov edi, 0x1000cab8
push edi
lea eax, [ebp - 0x20]
push eax
call fcn.1005e2c8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push 0x1000ca70
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 8]
mov edi, ebx
call fcn.100618de
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
push 0x1004952e
mov dword [ebp - 0x30], esi
call dword [sym.imp.USER32.dll_EnumWindows]
lea eax, [ebp - 0x2c]
lea edi, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.100494c7
push ebx
push dword [ebp + 8]
lea edi, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.100493e6
mov eax, dword [esi]
xor edi, edi
mov ecx, esi
cmp dword [ebx + 4], edi
jne 0x10049393
push 0x1000cac8
push 2
call dword [eax + 4]
lea edi, [ebp - 0x2c]
call fcn.100618de
lea edi, [ebp - 0x3c]
call fcn.100618de
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 0
call fcn.10026bbb
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10082afb
xor eax, eax
call fcn.100922e2
ret 4
push 0x1000caf4
push 2
call dword [eax + 4]
call fcn.1004927f
mov eax, dword [eax]
mov edx, dword [esi]
push eax
push 2
mov ecx, esi
call dword [edx + 4]
mov eax, dword [ebx + 4]
test eax, eax
jle 0x10049361
and dword [ebp + 8], edi
test edi, edi
js 0x100493e0
cmp edi, eax
jge 0x100493e0
mov eax, dword [ebx]
add eax, dword [ebp + 8]
mov edx, dword [esi]
mov eax, dword [eax + 0x10]
push eax
push 2
mov ecx, esi
call dword [edx + 4]
mov eax, dword [ebx + 4]
add dword [ebp + 8], 0x14
inc edi
cmp edi, eax
jl 0x100493b8
jmp 0x10049361
call fcn.1008132d
int3