joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002a81f
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x100a286b
call fcn.10094b6a
xor ebx, ebx
mov dword [ebp - 0x10], 0x80004005
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
cmp edi, ebx
je 0x1002a944
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push 0x10004fc8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, eax
jne 0x1002a8ac
lea eax, [ebp - 0x1c]
push eax
push edi
push ebx
push ebx
push 0x10005038
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 0x1002a8ac
xor eax, eax
push edi
mov word [edi + 0x206], ax
call esi
cmp eax, 0xffffffff
je 0x1002a8ac
mov dword [ebp - 0x10], ebx
jmp 0x1002a944
push edi
push ebx
push ebx
push 0x2b
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, 0x104
test eax, eax
js 0x1002a8e2
push 0x10005048
push ebx
push edi
call fcn.100878c8
add esp, 0xc
test eax, eax
jne 0x1002a8e2
push edi
call esi
cmp eax, 0xffffffff
je 0x1002a8e2
and dword [ebp - 0x10], 0
jmp 0x1002a944
mov eax, dword [0x100bcf90]
mov ecx, 0x100bcf90
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.10028b91
push 0x10005084
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0x18]
call fcn.1005ff00
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.10084b37
push dword [ebp - 0x18]
push ebx
push edi
call fcn.10087942
add esp, 0xc
push edi
call esi
cmp eax, 0xffffffff
je 0x1002a939
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10084b37
mov eax, dword [ebp - 0x10]
call fcn.10094c56
ret

Function at 0x1002b159
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x100bc210]
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 0x1002b191
call fcn.100845fb
jmp 0x1002b220
cmp eax, esi
jbe 0x1002b19f
mov eax, 0x80020013
jmp 0x1002b220
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x100051bc
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1002b187
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.100879aa
add esp, 0x10
call fcn.100845a3
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.1002b029
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10086de1
leave
ret
Function at 0x1002f6e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x1009ba87
call fcn.10094b6a
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.10084ad6
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10084ad6
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 0x1002f756
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 0x1002f756
mov byte [ebp - 0xd], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
call fcn.10084b37
lea eax, [edi - 0x10]
call fcn.10084b37
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10084b37
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.10084b37
mov al, byte [ebp - 0xd]
call fcn.10094c56
ret 0xc

Function at 0x100367fe
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov al, byte [0x2ff845c6]
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
Function at 0x10037a89
Capabilities:
Access peb ldr_data

Disassembly:
mov ch, 0x7c
stc
invalid
invalid
dec edi
jg 0x10037a4b
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x10037aa2
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.100358de
xor al, 0x19
inc edi
jbe 0x10037a3b
clc
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.100358de
invalid
xchg ecx, eax
jnp 0x10037aea
mov cl, byte [ecx - 0x75]
xor al, 0x8b
int1

Function at 0x10037c38
Capabilities:
Identify system language via api

Disassembly:
push 0x24
mov eax, 0x100a6179
call fcn.10094b6a
mov esi, ecx
push 0x10008730
lea eax, [ebp - 0x14]
push eax
call fcn.1005f361
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push esi
lea edi, [ebp - 0x14]
call fcn.1002d5ae
mov eax, dword [ebp - 0x10]
mov ebx, eax
mov dword [ebp - 0x30], ebx
test eax, eax
je 0x10037c7a
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 0x10037c90
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.10084b37
mov eax, dword [ebx]
push ebx
call dword [eax + 0x28]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x30]
call fcn.1002d7a7
jmp 0x10037d2f
push dword [ebp + 0xc]
lea edi, [ebp - 0x24]
sub esp, 0xc
mov esi, esp
mov dword [ebp - 0x18], esp
call fcn.1002d400
call fcn.10037d6a
mov edx, eax
mov dword [ebp - 0x18], edx
cmp edx, 0xfffffffd
jne 0x10037ce1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edx, ax
mov dword [ebp - 0x18], edx
test edx, edx
je 0x10037d12
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
xor edi, edi
test ecx, ecx
jle 0x10037cff
mov eax, dword [esi]
cmp dword [eax], edx
je 0x10037d02
inc edi
add eax, 4
cmp edi, ecx
jl 0x10037cf3
or edi, 0xffffffff
cmp edi, 0xffffffff
jne 0x10037d12
lea ebx, [ebp - 0x18]
call fcn.1006b4f9
mov ebx, dword [ebp - 0x30]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10037d23
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x30]
call fcn.1002d7a7
mov byte [ebp - 4], 3
cmp dword [ebp - 0x24], 0
setne al
test al, al
jne 0x10037cb3
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10037d53
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.10094c56
ret 8
Function at 0x10039068
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a4496
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100bc210]
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 0x1000593c
push eax
call fcn.1005f361
lea eax, [esp + 0x1c]
push eax
call fcn.10072eb3
and dword [esp + 0x34], 0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.10084ad6
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x18]
push eax
call fcn.1002db95
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.10084b37
push dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
call fcn.100391a8
push dword [ebp + 0x10]
mov bl, al
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
push 0x10009238
push eax
call fcn.1005f361
lea eax, [esp + 0x24]
push eax
call fcn.10072eb3
mov byte [esp + 0x34], 3
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x28], esp
mov esi, esp
call fcn.10084ad6
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x20]
push eax
call fcn.1002db95
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, dword [esi]
je 0x10039158
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.10084b37
push dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
call fcn.100391a8
test bl, bl
jne 0x10039184
test al, al
je 0x10039186
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 0x10039543
Capabilities:
Enumerate files on windows

Disassembly:
push 0x268
mov eax, 0x1009da5a
call fcn.10094bdd
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.1008a7e0
add esp, 0xc
push 0x1000925c
lea eax, [ebp + 8]
call fcn.1005fec1
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 0x10039674
lea eax, [ebp - 0x238]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100395cc
sub eax, edx
sar eax, 1
cmp eax, 4
jne 0x1003965c
movzx eax, word [ebp - 0x238]
push eax
call fcn.1008822c
pop ecx
test eax, eax
je 0x1003965c
movzx eax, word [ebp - 0x236]
push eax
call fcn.1008822c
pop ecx
test eax, eax
je 0x1003965c
movzx eax, word [ebp - 0x234]
push eax
call fcn.1008822c
pop ecx
test eax, eax
je 0x1003965c
movzx eax, word [ebp - 0x232]
push eax
call fcn.1008822c
pop ecx
test eax, eax
je 0x1003965c
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.1005f361
lea ebx, [ebp - 0x26c]
mov byte [ebp - 4], 2
call fcn.100600d0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
call fcn.10084b37
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 0x100395c3
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10084b37
mov eax, esi
call fcn.10094c6f
ret 4
Function at 0x1003d55b
Capabilities:
Check if file exists

Disassembly:
push 0x14
mov eax, 0x100a2045
call fcn.10094b6a
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [edi + 0xc], ebx
jle 0x1003d6f8
test ebx, ebx
js 0x1003d700
cmp ebx, dword [edi + 0xc]
jge 0x1003d700
mov eax, dword [edi + 8]
push 0
push 0x100c4258
push 0x100c4218
mov ecx, ebx
push 0
push dword [eax + ecx*4]
call fcn.10094605
mov esi, eax
add esp, 0x14
test esi, esi
je 0x1003d6eb
cmp byte [ebp + 0x14], 0
je 0x1003d640
mov eax, dword [0x100bcf90]
mov ecx, 0x100bcf90
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.1003abec
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.1005ff00
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10084b37
mov ebx, dword [ebp - 0x18]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003d631
lea edi, [esi + 8]
lea eax, [ebp - 0x18]
call fcn.1005f4dc
or dword [ebp - 4], 0xffffffff
lea eax, [ebx - 0x10]
call fcn.10084b37
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
jmp 0x1003d6eb
or dword [ebp - 4], 0xffffffff
lea eax, [ebx - 0x10]
call fcn.10084b37
mov ebx, dword [ebp - 0x14]
cmp ebx, dword [edi + 0xc]
jge 0x1003d700
mov eax, dword [edi + 8]
push 0
push 0x100c4238
push 0x100c4218
mov ecx, ebx
push 0
push dword [eax + ecx*4]
call fcn.10094605
add esp, 0x14
mov byte [ebp - 0xd], 0
test eax, eax
je 0x1003d67c
cmp dword [eax + 0x134], 4
jne 0x1003d67c
mov byte [ebp - 0xd], 1
mov eax, dword [0x100bcf90]
mov ecx, 0x100bcf90
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
cmp byte [ebp - 0xd], 0
mov dword [ebp - 4], 2
jne 0x1003d6dc
lea eax, [ebp - 0x20]
push eax
mov eax, esi
call fcn.1003ac0b
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.1005ff00
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.10084b37
lea edi, [esi + 8]
lea eax, [ebp - 0x18]
call fcn.1005f4dc
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.10084b37
inc ebx
mov dword [ebp - 0x14], ebx
cmp ebx, dword [edi + 0xc]
jl 0x1003d578
call fcn.10094c56
ret 0x10
call fcn.10083247
int3
Function at 0x1004937f
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x100bc210]
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 0x10049402
push 0x228
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.1008a7e0
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x100493ee
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp + 8]
je 0x100493f5
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x100493d5
jmp 0x100493fb
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.10086de1
leave
ret 4

Function at 0x1004945f
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x1009d5af
call fcn.10094b6a
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10084ad6
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 0xc]
push 0x1001d3bc
xor ebx, ebx
mov eax, esi
mov byte [ebp - 4], 1
call fcn.10084807
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 0x100494b2
mov ecx, esi
call fcn.1008495f
push dword [esi]
xor ebx, ebx
push ebx
push 0x100183d8
push edi
call fcn.10049450
test eax, eax
jne 0x100494d0
lea eax, [edi - 0x10]
call fcn.10084b37
jmp 0x100494ee
or eax, 0xffffffff
call fcn.1008472b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
lea eax, [edi - 0x10]
je 0x100494c9
call fcn.10084b37
mov bl, 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10084b37
mov al, bl
call fcn.10094c56
ret 8
Function at 0x10049ab2
Capabilities:
Enumerate gui resources

Disassembly:
push 0x30
mov eax, 0x100a3be5
call fcn.10094b6a
push 0x1000c9a4
lea eax, [ebp - 0x14]
push eax
call fcn.1005f361
and dword [ebp - 4], 0
mov edi, 0x1000ca00
push edi
lea eax, [ebp - 0x20]
push eax
call fcn.1005f361
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push 0x1000c9b8
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.10062a97
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 0x10049d2d
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.10049cc1
push ebx
push dword [ebp + 8]
lea edi, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.10049bdb
mov eax, dword [esi]
xor edi, edi
mov ecx, esi
cmp dword [ebx + 4], edi
jne 0x10049b83
push 0x1000ca10
push 2
call dword [eax + 4]
lea edi, [ebp - 0x2c]
call fcn.10062a97
lea edi, [ebp - 0x3c]
call fcn.10062a97
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 0
call fcn.10026646
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10084b37
xor eax, eax
call fcn.10094c56
ret 4
push 0x1000ca3c
push 2
call dword [eax + 4]
call fcn.10049a6a
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 0x10049b51
and dword [ebp + 8], edi
test edi, edi
js 0x10049bd0
cmp edi, eax
jge 0x10049bd0
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 0x10049ba8
jmp 0x10049b51
call fcn.10083247
int3
Function at 0x10049d44
Capabilities:
Get graphical window text

Disassembly:
push 0x20
mov eax, 0x100a3b9b
call fcn.10094b6a
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 0x10049e8b
mov eax, dword [0x100bcf90]
mov ecx, 0x100bcf90
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 0x10049daa
mov eax, esi
lea ecx, [ebp - 0x10]
call fcn.1008495f
mov ebx, dword [ebp - 0x10]
cmp dword [ebx - 8], esi
jge 0x10049db9
push 0x80070057
call fcn.10084aa9
mov dword [ebx - 0xc], esi
xor eax, eax
mov word [ebx + 0x400], ax
cmp dword [ebx - 4], 1
mov esi, dword [ebx - 8]
jle 0x10049ddd
push dword [ebx - 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.100848c5
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.1008472b
push dword [edi + 0xc]
lea eax, [ebp - 0x18]
push dword [ebp - 0x14]
push eax
call fcn.100497b8
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.100499db
mov byte [ebp - 4], 2
mov eax, dword [edi + 4]
xor ecx, ecx
mov dword [ebp + 8], ecx
cmp eax, ecx
jle 0x10049e65
mov edx, dword [ebp - 0x2c]
cmp dword [ebp + 8], 0
jl 0x10049ed4
cmp dword [ebp + 8], eax
jge 0x10049ed4
mov esi, dword [edi]
cmp edx, dword [ecx + esi]
je 0x10049e96
inc dword [ebp + 8]
add ecx, 0x14
cmp dword [ebp + 8], eax
jl 0x10049e40
lea eax, [ebp - 0x2c]
push eax
mov esi, edi
call fcn.100629af
lea esi, [ebp - 0x2c]
call fcn.10049edf
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10084b37
lea eax, [ebx - 0x10]
call fcn.10084b37
xor eax, eax
inc eax
call fcn.10094c56
ret 4
mov esi, dword [ebp + 8]
cmp esi, eax
jge 0x10049ed4
imul esi, esi, 0x14
add esi, dword [edi]
mov eax, dword [esi]
sub eax, edx
jne 0x10049ec6
cmp byte [esi + 0xc], al
setne al
xor ecx, ecx
cmp byte [ebp - 0x20], cl
setne cl
sub eax, ecx
jne 0x10049ec6
push dword [ebp - 0x24]
add esi, 8
push esi
call fcn.1005f623
test eax, eax
jns 0x10049e70
push dword [ebp + 8]
call fcn.10062a40
jmp 0x10049e65
call fcn.10083247
int3
Function at 0x1004b537
Capabilities:
Accept command line arguments

Disassembly:
push 0x1c
mov eax, 0x100a1c2b
call fcn.10094b6a
mov edi, dword [ebp + 8]
mov dword [edi], 0x1001bd54
mov eax, dword [0x100bcf90]
mov ecx, 0x100bcf90
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.10049201
lea eax, [esi - 0x10]
call fcn.10084b37
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.10026b5d
push 0
push 0x10003658
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 4
call fcn.100266fe
test al, al
je 0x1004b5ee
cmp byte [ebp + 0x10], 0
jne 0x1004b5ee
push dword [ebp + 0xc]
mov esi, ebx
call fcn.100492bc
push 0xc
call fcn.100880c5
mov esi, eax
pop ecx
mov dword [ebp + 0x10], esi
mov byte [ebp - 4], 5
test esi, esi
je 0x1004b61e
mov dword [esi], 0x1001bcc0
and dword [esi + 4], 0
mov byte [ebp - 4], 7
call fcn.10026543
mov ecx, ebx
mov dword [esi + 8], eax
call fcn.100747a9
call eax
jmp 0x1004b619
lea eax, [ebp - 0x28]
call fcn.10026ee3
test al, al
je 0x1004b625
cmp byte [ebp + 0x10], 0
jne 0x1004b625
push 8
call fcn.100880c5
mov esi, eax
pop ecx
test esi, esi
je 0x1004b61e
mov dword [esi], 0x1001bbf4
call fcn.10026543
mov dword [esi + 4], eax
jmp 0x1004b620
xor esi, esi
mov dword [edi + 0x10], esi
jmp 0x1004b63b
push dword [ebp + 0xc]
mov esi, ebx
call fcn.100492bc
mov ecx, ebx
call fcn.100747a9
call eax
mov dword [edi + 0x10], eax
lea ecx, [ebp - 0x28]
call fcn.10026eb8
mov eax, edi
call fcn.10094c56
ret 0xc

Function at 0x1004b9c4
Capabilities:
Create thread

Disassembly:
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 0x1004b991
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
Function at 0x1004cb4a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebx]
push 0x20
push dword [ebp + 0xc]
mov ecx, ebx
push dword [ebp + 8]
mov dword [ebp - 0x14], 0x80091007
call dword [eax]
test al, al
je 0x1004cc5b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
test al, al
je 0x1004cc5b
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x1004cc53
push esi
mov esi, 0x100000
push esi
call fcn.100878a8
pop ecx
mov dword [ebp - 8], eax
cmp eax, edi
je 0x1004cc49
push edi
lea ecx, [ebp + 8]
push ecx
push esi
mov dword [ebp + 8], edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
jmp 0x1004cbf8
cmp dword [ebp + 8], 4
ja 0x1004cc40
push dword [ebp + 8]
mov eax, dword [ebx]
push dword [ebp - 8]
mov ecx, ebx
call dword [eax + 8]
test al, al
je 0x1004cc40
cmp dword [ebp + 8], esi
jne 0x1004cc03
and dword [ebp + 8], 0
push 0
lea eax, [ebp + 8]
push eax
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x1004cbce
jmp 0x1004cc40
mov eax, dword [ebx]
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 4]
push ecx
mov ecx, ebx
call dword [eax + 0xc]
test al, al
je 0x1004cc40
cmp dword [ebp - 0x10], 0x20
jne 0x1004cc36
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp - 4]
push 8
pop ecx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x1004cc36
and dword [ebp - 0x14], eax
push dword [ebp - 4]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
push dword [ebp - 8]
call fcn.100878b8
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
pop edi
mov eax, dword [ebp - 0x14]
leave
ret 8