joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100276ac
Capabilities:
Get file version info

Disassembly:
push 0x14
mov eax, 0x10090063
call fcn.10086e1a
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x10005434
mov dword [ebp - 0x18], ebx
push dword [ebp + 8]
call fcn.1005833e
mov dword [ebp - 4], ebx
mov eax, dword [0x100aee70]
xor esi, esi
inc esi
mov ecx, 0x100aee70
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 0x1002770a
lea ecx, [ebp - 0x10]
call fcn.10078d3a
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.10078afc
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 0x10027797
push esi
call fcn.1007b88d
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 0x10027790
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x1000496c
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x10027790
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 0x10005444
push dword [ebp + 8]
call fcn.10078b7a
add esp, 0x18
push ebx
call fcn.1007b89d
pop ecx
lea eax, [edi - 0x10]
call fcn.10078f0e
mov eax, dword [ebp + 8]
call fcn.10086f06
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100ae210]
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, 0x10005460
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 0x1002785b
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 0x1002785b
lea edi, [ebp - 0x20c]
call fcn.1002787b
push 0x208
mov eax, edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
push 2
push esi
push 0x100054e0
push dword [ebp - 0x210]
call edi
push 4
lea eax, [ebp - 0x214]
push eax
push 4
push esi
push 0x10005504
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.1007b091
leave
ret
Function at 0x1002787b
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x10094603
call fcn.10086e1a
xor ebx, ebx
mov dword [ebp - 0x10], 0x80004005
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
cmp edi, ebx
je 0x100279a0
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push 0x10005528
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, eax
jne 0x10027908
lea eax, [ebp - 0x1c]
push eax
push edi
push ebx
push ebx
push 0x10005598
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 0x10027908
xor eax, eax
push edi
mov word [edi + 0x206], ax
call esi
cmp eax, 0xffffffff
je 0x10027908
mov dword [ebp - 0x10], ebx
jmp 0x100279a0
push edi
push ebx
push ebx
push 0x2b
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, 0x104
test eax, eax
js 0x1002793e
push 0x100055a8
push ebx
push edi
call fcn.1007b8ad
add esp, 0xc
test eax, eax
jne 0x1002793e
push edi
call esi
cmp eax, 0xffffffff
je 0x1002793e
and dword [ebp - 0x10], 0
jmp 0x100279a0
mov eax, dword [0x100aee70]
mov ecx, 0x100aee70
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.10025d3f
push 0x100055e4
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0x18]
call fcn.10058e8b
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.10078f0e
push dword [ebp - 0x18]
push ebx
push edi
call fcn.1007b927
add esp, 0xc
push edi
call esi
cmp eax, 0xffffffff
je 0x10027995
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10078f0e
mov eax, dword [ebp - 0x10]
call fcn.10086f06
ret

Function at 0x100281d5
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x100ae210]
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 0x1002820f
call fcn.100789c8
jmp 0x1002829e
cmp eax, esi
jbe 0x1002821d
mov eax, 0x80020013
jmp 0x1002829e
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x1000571c
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10028205
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.1007b98f
add esp, 0x10
call fcn.1007896e
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.1002809d
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1007b091
leave
ret
Function at 0x1002c406
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], 4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002c44b
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002c44b
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10078f0e
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.10078f0e
mov al, bl
pop ebx
leave
ret 0xc

Function at 0x10034265
Capabilities:
Identify system language via api

Disassembly:
push 0x24
mov eax, 0x10097fee
call fcn.10086e1a
mov esi, ecx
push 0x100089f8
lea eax, [ebp - 0x14]
push eax
call fcn.1005833e
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push esi
lea edi, [ebp - 0x14]
call fcn.1002a63e
mov eax, dword [ebp - 0x10]
mov ebx, eax
mov dword [ebp - 0x30], ebx
test eax, eax
je 0x100342a7
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 0x100342bd
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.10078f0e
mov eax, dword [ebx]
push ebx
call dword [eax + 0x28]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x30]
call fcn.1002a849
jmp 0x1003435c
push dword [ebp + 0xc]
lea edi, [ebp - 0x24]
sub esp, 0xc
mov esi, esp
mov dword [ebp - 0x18], esp
call fcn.1002a48a
call fcn.10034397
mov edx, eax
mov dword [ebp - 0x18], edx
cmp edx, 0xfffffffd
jne 0x1003430e
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edx, ax
mov dword [ebp - 0x18], edx
test edx, edx
je 0x1003433f
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
xor edi, edi
test ecx, ecx
jle 0x1003432c
mov eax, dword [esi]
cmp dword [eax], edx
je 0x1003432f
inc edi
add eax, 4
cmp edi, ecx
jl 0x10034320
or edi, 0xffffffff
cmp edi, 0xffffffff
jne 0x1003433f
lea ebx, [ebp - 0x18]
call fcn.1005bc6d
mov ebx, dword [ebp - 0x30]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10034350
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x30]
call fcn.1002a849
mov byte [ebp - 4], 3
cmp dword [ebp - 0x24], 0
setne al
test al, al
jne 0x100342e0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10034380
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.10086f06
ret 8
Function at 0x100356a3
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009625f
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100ae210]
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 0x10005e9c
push eax
call fcn.1005833e
lea eax, [esp + 0x1c]
push eax
call fcn.1006988c
and dword [esp + 0x34], 0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.10078eab
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x18]
push eax
call fcn.1002a8cc
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.10078f0e
push dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
call fcn.100357e5
push dword [ebp + 0x10]
mov bl, al
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
push 0x10009498
push eax
call fcn.1005833e
lea eax, [esp + 0x24]
push eax
call fcn.1006988c
mov byte [esp + 0x34], 3
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x28], esp
mov esi, esp
call fcn.10078eab
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x20]
push eax
call fcn.1002a8cc
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, dword [esi]
je 0x10035795
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.10078f0e
push dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
call fcn.100357e5
test bl, bl
jne 0x100357c1
test al, al
je 0x100357c3
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 0x10035b82
Capabilities:
Enumerate files on windows

Disassembly:
push 0x268
mov eax, 0x1008fc7c
call fcn.10086e8d
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.1007e770
add esp, 0xc
push 0x100094bc
lea eax, [ebp + 8]
call fcn.10058e4a
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 0x10035cb3
lea eax, [ebp - 0x238]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10035c0b
sub eax, edx
sar eax, 1
cmp eax, 4
jne 0x10035c9b
movzx eax, word [ebp - 0x238]
push eax
call fcn.1007c211
pop ecx
test eax, eax
je 0x10035c9b
movzx eax, word [ebp - 0x236]
push eax
call fcn.1007c211
pop ecx
test eax, eax
je 0x10035c9b
movzx eax, word [ebp - 0x234]
push eax
call fcn.1007c211
pop ecx
test eax, eax
je 0x10035c9b
movzx eax, word [ebp - 0x232]
push eax
call fcn.1007c211
pop ecx
test eax, eax
je 0x10035c9b
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.1005833e
lea ebx, [ebp - 0x26c]
mov byte [ebp - 4], 2
call fcn.10059067
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
call fcn.10078f0e
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 0x10035c02
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10078f0e
mov eax, esi
call fcn.10086f1f
ret 4
Function at 0x1003953c
Capabilities:
Check if file exists

Disassembly:
push 0x14
mov eax, 0x10093deb
call fcn.10086e1a
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [edi + 0xc], ebx
jle 0x100396d9
test ebx, ebx
js 0x100396e1
cmp ebx, dword [edi + 0xc]
jge 0x100396e1
mov eax, dword [edi + 8]
push 0
push 0x100b5fe8
push 0x100b5fa8
mov ecx, ebx
push 0
push dword [eax + ecx*4]
call fcn.100868b5
mov esi, eax
add esp, 0x14
test esi, esi
je 0x100396cc
cmp byte [ebp + 0x14], 0
je 0x10039621
mov eax, dword [0x100aee70]
mov ecx, 0x100aee70
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.10036cb7
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.10058e8b
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10078f0e
mov ebx, dword [ebp - 0x18]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10039612
lea edi, [esi + 8]
lea eax, [ebp - 0x18]
call fcn.100584b9
or dword [ebp - 4], 0xffffffff
lea eax, [ebx - 0x10]
call fcn.10078f0e
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
jmp 0x100396cc
or dword [ebp - 4], 0xffffffff
lea eax, [ebx - 0x10]
call fcn.10078f0e
mov ebx, dword [ebp - 0x14]
cmp ebx, dword [edi + 0xc]
jge 0x100396e1
mov eax, dword [edi + 8]
push 0
push 0x100b5fc8
push 0x100b5fa8
mov ecx, ebx
push 0
push dword [eax + ecx*4]
call fcn.100868b5
add esp, 0x14
mov byte [ebp - 0xd], 0
test eax, eax
je 0x1003965d
cmp dword [eax + 0xf4], 4
jne 0x1003965d
mov byte [ebp - 0xd], 1
mov eax, dword [0x100aee70]
mov ecx, 0x100aee70
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
cmp byte [ebp - 0xd], 0
mov dword [ebp - 4], 2
jne 0x100396bd
lea eax, [ebp - 0x20]
push eax
mov eax, esi
call fcn.10036cd8
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.10058e8b
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.10078f0e
lea edi, [esi + 8]
lea eax, [ebp - 0x18]
call fcn.100584b9
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.10078f0e
inc ebx
mov dword [ebp - 0x14], ebx
cmp ebx, dword [edi + 0xc]
jl 0x10039559
call fcn.10086f06
ret 0x10
call fcn.100778c8
int3
Function at 0x10045238
Capabilities:
Enumerate processes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x100ae210]
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 0x100452bd
push 0x228
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.1007e770
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x100452a9
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp + 8]
je 0x100452b0
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x10045290
jmp 0x100452b6
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.1007b091
leave
ret 4

Function at 0x1004531e
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x1008fa12
call fcn.10086e1a
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10078eab
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 0xc]
push 0x1001ab18
xor ebx, ebx
mov eax, esi
mov byte [ebp - 4], 1
call fcn.10078bdc
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 0x10045371
mov ecx, esi
call fcn.10078d3a
push dword [esi]
xor ebx, ebx
push ebx
push 0x10015c78
push edi
call fcn.1004530d
test eax, eax
jne 0x1004538f
lea eax, [edi - 0x10]
call fcn.10078f0e
jmp 0x100453ad
or eax, 0xffffffff
call fcn.10078afc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
lea eax, [edi - 0x10]
je 0x10045388
call fcn.10078f0e
mov bl, 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10078f0e
mov al, bl
call fcn.10086f06
ret 8
Function at 0x10045531
Capabilities:
Enumerate gui resources

Disassembly:
push 0x30
mov eax, 0x10095a4a
call fcn.10086e1a
push 0x1000c9f4
lea eax, [ebp - 0x14]
push eax
call fcn.1005833e
and dword [ebp - 4], 0
mov edi, 0x1000ca50
push edi
lea eax, [ebp - 0x20]
push eax
call fcn.1005833e
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push 0x1000ca08
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.1005b6dd
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 0x100457ae
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.10045740
push ebx
push dword [ebp + 8]
lea edi, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.1004565a
mov eax, dword [esi]
xor edi, edi
mov ecx, esi
cmp dword [ebx + 4], edi
jne 0x10045602
push 0x1000ca60
push 2
call dword [eax + 4]
lea edi, [ebp - 0x2c]
call fcn.1005b6dd
lea edi, [ebp - 0x3c]
call fcn.1005b6dd
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 0
call fcn.1002395e
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10078f0e
xor eax, eax
call fcn.10086f06
ret 4
push 0x1000ca8c
push 2
call dword [eax + 4]
call fcn.100454e9
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 0x100455d0
and dword [ebp + 8], edi
test edi, edi
js 0x1004564f
cmp edi, eax
jge 0x1004564f
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 0x10045627
jmp 0x100455d0
call fcn.100778c8
int3
Function at 0x100457c7
Capabilities:
Get graphical window text

Disassembly:
push 0x20
mov eax, 0x10095a00
call fcn.10086e1a
mov edi, ecx
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, dword [ebp - 0x14]
je 0x1004590e
mov eax, dword [0x100aee70]
mov ecx, 0x100aee70
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
and dword [ebp - 4], 0
mov eax, dword [ebx - 8]
xor ecx, ecx
inc ecx
sub ecx, dword [ebx - 4]
mov esi, 0x200
sub eax, esi
or eax, ecx
jge 0x1004582d
mov eax, esi
lea ecx, [ebp - 0x10]
call fcn.10078d3a
mov ebx, dword [ebp - 0x10]
cmp dword [ebx - 8], esi
jge 0x1004583c
push 0x80070057
call fcn.10078e8c
mov dword [ebx - 0xc], esi
xor eax, eax
mov word [ebx + 0x400], ax
cmp dword [ebx - 4], 1
mov esi, dword [ebx - 8]
jle 0x10045860
push dword [ebx - 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.10078c9e
mov ebx, dword [ebp - 0x10]
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
or eax, 0xffffffff
lea esi, [ebp - 0x10]
call fcn.10078afc
push dword [edi + 0xc]
lea eax, [ebp - 0x18]
push dword [ebp - 0x14]
push eax
call fcn.10045424
push dword [ebp + 8]
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
setne al
mov byte [ebp + 8], al
push dword [ebp + 8]
mov eax, esi
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
call fcn.1004545a
mov byte [ebp - 4], 2
mov eax, dword [edi + 4]
xor ecx, ecx
mov dword [ebp + 8], ecx
cmp eax, ecx
jle 0x100458e8
mov edx, dword [ebp - 0x2c]
cmp dword [ebp + 8], 0
jl 0x10045957
cmp dword [ebp + 8], eax
jge 0x10045957
mov esi, dword [edi]
cmp edx, dword [ecx + esi]
je 0x10045919
inc dword [ebp + 8]
add ecx, 0x14
cmp dword [ebp + 8], eax
jl 0x100458c3
lea eax, [ebp - 0x2c]
push eax
mov esi, edi
call fcn.1005b5f3
lea esi, [ebp - 0x2c]
call fcn.10045962
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10078f0e
lea eax, [ebx - 0x10]
call fcn.10078f0e
xor eax, eax
inc eax
call fcn.10086f06
ret 4
mov esi, dword [ebp + 8]
cmp esi, eax
jge 0x10045957
imul esi, esi, 0x14
add esi, dword [edi]
mov eax, dword [esi]
sub eax, edx
jne 0x10045949
cmp byte [esi + 0xc], al
setne al
xor ecx, ecx
cmp byte [ebp - 0x20], cl
setne cl
sub eax, ecx
jne 0x10045949
push dword [ebp - 0x24]
add esi, 8
push esi
call fcn.10058608
test eax, eax
jns 0x100458f3
push dword [ebp + 8]
call fcn.1005b684
jmp 0x100458e8
call fcn.100778c8
int3
Function at 0x10046e46
Capabilities:
Accept command line arguments

Disassembly:
push 0x1c
mov eax, 0x10093a17
call fcn.10086e1a
mov edi, dword [ebp + 8]
mov dword [edi], 0x1001955c
mov eax, dword [0x100aee70]
mov ecx, 0x100aee70
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
lea ebx, [edi + 4]
push ebx
call fcn.100450b2
lea eax, [esi - 0x10]
call fcn.10078f0e
and dword [edi + 0x10], 0
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10023e77
push 0
push 0x10003bd0
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 4
call fcn.10023a16
test al, al
je 0x10046efd
cmp byte [ebp + 0x10], 0
jne 0x10046efd
push dword [ebp + 0xc]
mov esi, ebx
call fcn.1004516f
push 0xc
call fcn.1007c0aa
mov esi, eax
pop ecx
mov dword [ebp + 0x10], esi
mov byte [ebp - 4], 5
test esi, esi
je 0x10046f2d
mov dword [esi], 0x100194cc
and dword [esi + 4], 0
mov byte [ebp - 4], 7
call fcn.10023834
mov ecx, ebx
mov dword [esi + 8], eax
call fcn.1006aba1
call eax
jmp 0x10046f28
lea eax, [ebp - 0x28]
call fcn.100241d6
test al, al
je 0x10046f34
cmp byte [ebp + 0x10], 0
jne 0x10046f34
push 8
call fcn.1007c0aa
mov esi, eax
pop ecx
test esi, esi
je 0x10046f2d
mov dword [esi], 0x10019404
call fcn.10023834
mov dword [esi + 4], eax
jmp 0x10046f2f
xor esi, esi
mov dword [edi + 0x10], esi
jmp 0x10046f4a
push dword [ebp + 0xc]
mov esi, ebx
call fcn.1004516f
mov ecx, ebx
call fcn.1006aba1
call eax
mov dword [edi + 0x10], eax
lea ecx, [ebp - 0x28]
call fcn.100241a9
mov eax, edi
call fcn.10086f06
ret 0xc

Function at 0x100472f2
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi + 8], eax
xor eax, eax
push eax
push eax
push esi
push 0x100472bd
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
mov al, 1
pop esi
pop ebp
ret 4