joyce8/EMBER2024-capa huggingface dataset:
Function at 0x549c47
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x549c7f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00547cc2
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00547c9a
jmp 0x549c8b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x54b445
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x54b487
call fcn.0055193d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x54b487
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x54b47e
xor eax, eax
jmp 0x54b48f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0054b495
pop edi
pop esi
pop ebx
ret 4

Function at 0x551e6d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x551e9b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x551eb9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00551dd3
jmp 0x551eb9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x551eb9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00551dd3
test edi, edi
mov eax, edi
jne 0x551ea3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1001bdc
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call fcn.01001beb
jmp fcn.01001b4b

Function at 0x4792d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4d000]
push edi
or ebp, 0xffffffff
jmp 0x4792f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4792f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4792e8
mov eax, 1
add ebx, ebx
jne 0x47930b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47931c
jne 0x47933b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47933b
dec eax
add ebx, ebx
jne 0x479328
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x479300
add ebx, ebx
jne 0x479337
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x47938d
xor ecx, ecx
sub eax, 3
jb 0x479353
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4793c2
sar eax, 1
mov ebp, eax
jmp 0x47935e
add ebx, ebx
jne 0x47935e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47932c
inc ecx
add ebx, ebx
jne 0x47936c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47932c
add ebx, ebx
jne 0x479379
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47936e
jne 0x47938a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47936e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4793ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47939e
jmp 0x4792ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4793ac
add edi, ecx
jmp 0x4792ee
pop esi
mov edi, esi
mov ecx, 0x93
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4793ca
cmp byte [edi], 6
jne 0x4793ca
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4793cf
lea edi, [esi + 0x77000]
mov eax, dword [edi]
or eax, eax
je 0x479447
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x790c8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x79104]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4793fc
mov ecx, edi
jns 0x47942b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x79108]
or eax, eax
je 0x479441
mov dword [ebx], eax
add ebx, 4
jmp 0x479419
call dword [esi + 0x79118]
mov ebp, dword [esi + 0x7910c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x47947b
sub esp, 0xffffff80
jmp 0x4013bc
Function at 0x10001a90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push str.kernel32.dll
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10001b28
mov edx, dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
mov dword [esi + 4], edx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
lea edi, [esi + 0xd]
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, dword [esi]
sub eax, 5
mov dword [esi + 0xe], eax
lea eax, [ebp + 0x10]
push eax
push 0x40
push 5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp + 0xc]
push eax
push 5
lea eax, [esi + 8]
push eax
push dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 8]
push eax
push 5
push edi
mov edi, dword [ebp - 4]
push dword [edi]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push dword [ebp + 0x10]
push 5
push dword [edi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [edi]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi]
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10001b90
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x101b0e5c]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
lea eax, [esp + 8]
mov esi, edx
push eax
push 0x20028
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10001bd4
xor al, al
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.10139936
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xc]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x10001bc2
mov eax, dword [esp + 0xc]
neg esi
push 0
push 0
mov dword [esp + 0x20], eax
sbb esi, esi
mov eax, dword [esp + 0x18]
and esi, 2
push 0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
push 0
push dword [esp + 0x1c]
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x24]
neg eax
pop esi
sbb eax, eax
xor ecx, esp
inc eax
call fcn.10139936
mov esp, ebp
pop ebp
ret
Function at 0x10001c50
Capabilities:
Create thread
Get common file path
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10157118
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x101b0e5c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x100
lea eax, [ebp - 0x110]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x218], 0
call fcn.1013cba0
push 0x104
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.1013cba0
add esp, 0x18
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x10192c40
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.1014273c
add esp, 0xc
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x214]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x111], al
test al, al
jne 0x10001cf0
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x10001d1c
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.100032d0
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x110]
push 0x100
push eax
call fcn.1014273c
add esp, 0xc
mov edx, 1
call fcn.10001b90
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x10001deb
lea esi, [ebp - 0x110]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10001d60
push 4
push 0x1000
sub esi, ecx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x10001deb
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0x110]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x10001db4
push 0x8000
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor edx, edx
call fcn.10001b90
xor bl, bl
jmp 0x10001e2c
push 0x10192c58
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10001deb
lea ecx, [ebp - 0x218]
push ecx
push 0
push ebx
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
jne 0x10001df6
xor edx, edx
call fcn.10001b90
xor bl, bl
jmp 0x10001e2c
xor edx, edx
call fcn.10001b90
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push 0x8000
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10001e4e
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10139936
mov esp, ebp
pop ebp
ret
Function at 0x10001e70
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x101b0e5c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push edx
push 0
push 0x410
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10001f3d
lea eax, [ebp - 0x414]
push eax
push 4
lea eax, [ebp - 0x40c]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x10001f36
push 0x104
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x40c]
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test eax, eax
je 0x10001f36
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.1013fb96
lea eax, [ebp - 0x108]
push eax
lea eax, [edi + 4]
push 0x104
push eax
call fcn.101427a5
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x308]
push eax
lea eax, [edi + 0x108]
push str._s_s
push eax
call fcn.10002de0
add esp, 0x30
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.10139936
mov esp, ebp
pop ebp
ret

Function at 0x100020b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x101b0e5c]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x10], 0x128
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100020fe
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.10139936
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10002142
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [esp + 0x34]
push eax
call fcn.1013fe69
push str.PLAZAUPDATE.EXE
push eax
call fcn.1013c3b0
add esp, 0xc
test eax, eax
jne 0x1000213e
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x10002114
jmp 0x10002142
mov ebx, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x13c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10139936
mov esp, ebp
pop ebp
ret
Function at 0x10003060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10003075
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100030b6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x100030b2
nop word [eax + eax]
cmp esi, edx
jae 0x100030b6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x100030a0
cmp esi, edx
jb 0x100030bb
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x10007907
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x101573ed
call fcn.1013a265
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov ecx, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [ecx], edi
cmp dword [eax + 0x58], edi
je 0x100079b1
push dword [ebp + 8]
mov ecx, eax
call fcn.10007c3c
mov esi, eax
test esi, esi
je 0x10007a44
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
push eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
test eax, eax
jne 0x1000799a
push edx
call fcn.100039b3
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000799a
xor edi, edi
inc edi
jmp 0x100079a4
push dword [ebx]
call fcn.100039bc
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.100077cc
jmp 0x10007a42
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [esi + 0x84]
mov ecx, esi
push eax
call fcn.1013a228
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x18], esi
test esi, esi
je 0x10007a3a
mov ecx, dword [ebp + 0x14]
mov eax, esi
shr eax, 1
push eax
mov dword [ecx], eax
call fcn.100039b3
mov dword [ebx], eax
pop ecx
test esi, esi
jle 0x10007a34
mov esi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.100077a9
push edi
lea ecx, [ebp - 0x10]
lea ebx, [eax - 1]
shl bl, 4
sub bl, 0x41
call fcn.100077a9
add al, bl
mov edx, edi
test edx, edx
jns 0x10007a25
add edx, 1
sar edx, 1
mov ecx, dword [esi]
add edi, 2
mov byte [edx + ecx], al
cmp edi, dword [ebp - 0x18]
jl 0x100079fc
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.100036a0
mov eax, edi
call fcn.1013a22e
ret 0x10
Function at 0x10007a4c
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x10007a9f
push esi
push dword [ebp + 8]
call fcn.10007c3c
mov edi, eax
test edi, edi
jne 0x10007a6f
mov eax, dword [ebp + 0x10]
jmp 0x10007ab1
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10007a6a
mov eax, dword [ebp - 8]
jmp 0x10007ab1
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100133cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x10013414
call fcn.10009a86
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10013414
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x10013430
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.1001c703
mov ebx, eax
test edi, edi
je 0x1001342e
test esi, esi
je 0x1001342e
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10013e19
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x10013ed7
cmp dword [esi + 0x20], 0
je 0x10013ed7
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10013ed7
cmp dword [ebp + 8], 0
je 0x10013ed7
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.10009a86
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10013ea8
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10013ed7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.1001d2b3
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x10013ec8
test edi, edi
je 0x10013ec8
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x10013ed3
mov ecx, esi
call fcn.10013bbc
mov eax, ebx
jmp 0x10013ed9
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100183f8
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x1015a9f4
call fcn.1013a265
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x1001841e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x1001847d
call fcn.10006497
push eax
lea ecx, [ebp - 0x10]
call fcn.10003030
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.1013a228
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.10142f40
push eax
call fcn.1000408c
add esp, 0x14
test esi, esi
je 0x10018470
push esi
call fcn.10142880
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.100036a0
mov eax, ebx
call fcn.1013a22e
ret 8

Function at 0x1001c288
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.10018342
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x1001c2c4
call fcn.1001c4aa
mov dword [esi + 0xc], 1
jmp 0x1001c2c9
call fcn.1001c4aa
cmp dword [esi], 0
je 0x1001c312
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x1001c2ec
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.10006116
jmp 0x1001c2fd
push 0xff
mov ecx, esi
call fcn.10003410
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10006139
jmp 0x1001c336
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x1001c336
push dword [esi]
push dword [ebp - 4]
call fcn.1000b9ac
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1001c3ff
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.1001c4aa
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x1001c447
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10006116
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10006139
jmp 0x1001c452
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.1000b9ac
pop edi
pop esi
pop ebp
ret 0xc