joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402490
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
push edi
xor eax, eax
push esi
push ebx
mov ecx, 0x19
sub esp, 0xfc
lea edi, [esp + 0x28]
mov esi, dword [esp + 0x110]
lea ebx, [esp + 0x28]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x8c]
mov ecx, 0x19
mov byte [esp + 0x28], 0x6b
mov byte [esp + 0x29], 0x65
mov byte [esp + 0x2a], 0x72
mov byte [esp + 0x2b], 0x6e
mov byte [esp + 0x2c], 0x65
mov byte [esp + 0x2d], 0x6c
mov byte [esp + 0x2e], 0x33
mov byte [esp + 0x2f], 0x32
mov byte [esp + 0x30], 0x2e
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x3c]
mov byte [esp + 0x31], 0x64
mov byte [esp + 0x32], 0x6c
mov byte [esp + 0x33], 0x6c
lea ebp, [esi + eax + 0x18]
lea ecx, [esi + eax + 4]
mov eax, dword [ebp + 0x38]
mov dword [esp], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
lea edi, [esp + 0x8c]
mov dword [esp], eax
mov byte [esp + 0x8c], 0x4c
mov byte [esp + 0x8d], 0x6f
mov byte [esp + 0x8e], 0x61
mov dword [esp + 4], edi
mov byte [esp + 0x8f], 0x64
mov byte [esp + 0x90], 0x4c
mov byte [esp + 0x91], 0x69
mov byte [esp + 0x92], 0x62
mov byte [esp + 0x93], 0x72
mov byte [esp + 0x94], 0x61
mov byte [esp + 0x95], 0x72
mov byte [esp + 0x96], 0x79
mov byte [esp + 0x97], 0x41
mov byte [esp + 0x98], 0
call fcn.00401d00
mov dword [esp], ebx
mov dword [0x40c060], eax
call eax
sub esp, 4
mov dword [esp + 4], edi
mov dword [esp], eax
mov byte [esp + 0x8c], 0x56
mov byte [esp + 0x8d], 0x69
mov byte [esp + 0x8e], 0x72
mov byte [esp + 0x8f], 0x74
mov byte [esp + 0x90], 0x75
mov byte [esp + 0x91], 0x61
mov byte [esp + 0x92], 0x6c
mov byte [esp + 0x93], 0x41
mov byte [esp + 0x94], 0x6c
mov byte [esp + 0x95], 0x6c
mov byte [esp + 0x96], 0x6f
mov byte [esp + 0x97], 0x63
mov byte [esp + 0x98], 0
call fcn.00401d00
mov edi, dword [esp + 0x1c]
mov dword [0x40c064], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x1000
mov dword [esp], 0
lea ebx, [edi + edi]
mov dword [esp + 4], ebx
call eax
mov edi, eax
mov eax, dword [ebp + 0x3c]
sub esp, 0x10
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.00401550
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x3c]
movzx eax, word [ecx + 0x10]
lea ebx, [edx + eax + 0x18]
add ebx, esi
cmp word [ecx + 2], 0
je 0x4026a3
xor ebp, ebp
mov edx, dword [ebx + 0x10]
add ebp, 1
add ebx, 0x28
mov dword [esp + 8], edx
mov edx, dword [ebx - 0x14]
add edx, esi
mov dword [esp + 4], edx
mov edx, dword [ebx - 0x1c]
add edx, edi
mov dword [esp], edx
call fcn.00401550
mov eax, dword [esp + 0x18]
movzx edx, word [eax + 2]
cmp edx, ebp
jg 0x402674
add esp, 0xfc
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403230
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push edi
push ebx
xor eax, eax
mov ecx, 0x100
sub esp, 0x954
lea edi, [esp + 0x150]
mov byte [esp + 0x88], 0x6b
mov byte [esp + 0x89], 0x65
mov byte [esp + 0x8a], 0x72
mov byte [esp + 0x8b], 0x6e
rep stosd dword es:[edi], eax
lea eax, [esp + 0x88]
mov byte [esp + 0x8c], 0x65
mov byte [esp + 0x8d], 0x6c
mov byte [esp + 0x8e], 0x33
mov byte [esp + 0x8f], 0x32
mov dword [esp], eax
mov byte [esp + 0x90], 0x2e
mov byte [esp + 0x91], 0x64
mov byte [esp + 0x92], 0x6c
mov byte [esp + 0x93], 0x6c
mov byte [esp + 0x94], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
lea edx, [esp + 0x24]
mov dword [esp], eax
mov byte [esp + 0x24], 0x4c
mov byte [esp + 0x25], 0x6f
mov byte [esp + 0x26], 0x61
mov dword [esp + 4], edx
mov byte [esp + 0x27], 0x64
mov byte [esp + 0x28], 0x4c
mov byte [esp + 0x29], 0x69
mov byte [esp + 0x2a], 0x62
mov byte [esp + 0x2b], 0x72
mov byte [esp + 0x2c], 0x61
mov byte [esp + 0x2d], 0x72
mov byte [esp + 0x2e], 0x79
mov byte [esp + 0x2f], 0x41
mov byte [esp + 0x30], 0
call fcn.00401d00
lea edx, [esp + 0xec]
mov dword [0x40c060], eax
mov byte [esp + 0xec], 0x53
mov byte [esp + 0xed], 0x68
mov byte [esp + 0xee], 0x65
mov dword [esp], edx
mov byte [esp + 0xef], 0x6c
mov byte [esp + 0xf0], 0x6c
mov byte [esp + 0xf1], 0x33
mov byte [esp + 0xf2], 0x32
mov byte [esp + 0xf3], 0x2e
mov byte [esp + 0xf4], 0x64
mov byte [esp + 0xf5], 0x6c
mov byte [esp + 0xf6], 0x6c
mov byte [esp + 0xf7], 0
call eax
sub esp, 4
lea ebx, [esp + 0x150]
mov dword [esp + 4], str.SHGetFolderPathA
mov dword [esp], eax
call fcn.00401d00
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 7
mov dword [esp], 0
call eax
mov edx, ebx
sub esp, 0x14
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x4033c8
test eax, 0x8080
je 0x403460
mov ecx, eax
lea edi, [esp + 0x550]
add cl, al
mov ecx, 0x100
sbb edx, 3
xor eax, eax
rep stosd dword es:[edi], eax
lea edi, [esp + 0x550]
mov dword [edx], 0x7665445c
mov dword [edx + 4], 0x53656369
mov dword [edx + 8], 0x2e636e79
mov dword [edx + 0xc], 0x6b6e6c
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleFileNameA
sub esp, 0xc
mov dword [esp + 4], 0x409275
mov dword [esp], ebx
call sub.msvcrt.dll_fopen
test eax, eax
je 0x403470
add esp, 0x954
xor eax, eax
pop ebx
pop edi
ret
shr eax, 0x10
add edx, 2
jmp 0x4033e5
mov dword [esp + 0x10], ebx
mov dword [esp], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.00401a80
add esp, 0x954
xor eax, eax
pop ebx
pop edi
ret
Function at 0x4034b0
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
push ebx
sub esp, 0x34
mov ebx, dword [esp + 0x40]
mov dword [ebx + 0xc], 0xf
mov dword [esp + 4], 1
add ebx, 0x10
mov dword [esp], 0x7a120
call sub.msvcrt.dll_calloc
mov esi, eax
lea eax, [esp + 0x24]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWARE
mov dword [esp + 0x10], eax
mov dword [esp], 0x80000001
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0x7a120
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
lea eax, [esp + 0x28]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.update1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov dword [esp + 4], 0x30d40
mov dword [esp], 0x40
mov dword [esp + 0x2c], 0
call sub.KERNEL32.dll_LocalAlloc
sub esp, 8
mov dword [esp + 8], 0x30d40
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
lea eax, [esp + 0x2c]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
call fcn.004017b0
mov dword [ebx - 0x10], eax
mov dword [esp], 0x2710
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov dword [esp], esi
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x2c]
mov dword [ebx - 0xc], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x104
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleFileNameA
sub esp, 0xc
add esp, 0x34
pop ebx
pop esi
ret
Function at 0x4048e0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40c0ac
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40c0a4]
sub esp, 4
test ebx, ebx
je 0x40492b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x404924
test esi, esi
je 0x404924
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x404900
mov dword [esp], 0x40c0ac
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x404b10
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x404b60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x404c38
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x404b9e
cmp eax, 4
jne 0x404bc0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x404bae
cmp edx, 4
je 0x404bae
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00404b10
Function at 0x10008444
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1026d48f
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x102f6d90]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x102f6d90]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
xor edi, edi
mov ebx, ecx
mov dword [esp + 0x18], edi
cmp dword [ebx + 0x44], edi
je 0x10008654
cmp byte [ebx + 0x49], 0
je 0x10008654
call fcn.10009af7
mov esi, eax
mov eax, dword [ebx]
push esi
mov ecx, ebx
call dword [eax + 0xc]
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x24]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], esi
call fcn.10016956
test al, al
je 0x100084c8
xor al, al
jmp 0x10008656
push edi
lea eax, [esp + 0x5c]
push eax
push 8
pop esi
call fcn.100079a4
mov dword [esp + 0x88], edi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x5c]
call fcn.10007c94
mov edi, eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x8c], 1
call fcn.10007c94
mov esi, eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x8c], 2
call fcn.100087af
lea ecx, [esp + 0x5c]
mov edi, eax
call fcn.10005bbd
add edi, eax
push edi
mov edi, esi
call fcn.100087af
mov ecx, dword [ebx + 0x44]
push eax
lea eax, [ebx + 0x4c]
push eax
call fcn.10004569
lea edi, [esp + 0x4c]
mov esi, eax
mov byte [esp + 0x88], 1
call fcn.1000772e
lea edi, [esp + 0x28]
mov byte [esp + 0x88], 0
call fcn.1000772e
mov eax, esi
sub eax, 0
je 0x1000858a
dec eax
je 0x1000858e
dec eax
dec eax
je 0x1000864d
xor bl, bl
or dword [esp + 0x88], 0xffffffff
lea eax, [esp + 0x58]
push eax
call fcn.10005b3b
mov al, bl
jmp 0x10008656
mov byte [ebx + 0x49], 0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x5c]
call fcn.10007c94
mov edi, eax
mov byte [esp + 0x88], 3
call fcn.100087af
mov esi, dword [esp + 0x1c]
lea edi, [esp + 0x34]
sub esi, eax
mov byte [esp + 0x88], 0
call fcn.1000772e
test esi, esi
je 0x10008600
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x5c]
call fcn.10007c94
mov byte [esp + 0x88], 4
push dword [ebx + 0x54]
or dword [esp + 0x1c], 1
push esi
push 1
mov edi, eax
call fcn.100087af
push eax
call fcn.10220950
add esp, 0x10
mov byte [esp + 0x17], 1
cmp esi, eax
jne 0x10008605
mov byte [esp + 0x17], 0
and dword [esp + 0x88], 0
test byte [esp + 0x18], 1
je 0x10008622
and dword [esp + 0x18], 0xfffffffe
lea edi, [esp + 0x40]
call fcn.1000772e
cmp byte [esp + 0x17], 0
jne 0x1000856f
cmp byte [ebx + 0x49], 0
je 0x1000864d
test esi, esi
jne 0x100084dd
push esi
push 8
pop edi
lea esi, [esp + 0x5c]
call fcn.10007b0d
jmp 0x100084dd
mov bl, 1
jmp 0x10008571
mov al, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.102188c0
mov esp, ebp
pop ebp
ret
Function at 0x1002bf30
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1002bf60
push 0x477
push 0x10274598
call fcn.1003b650
test eax, eax
je 0x1002bf60
int3
mov eax, dword [ebp - 8]
cmp dword [eax + 0x6c], 0
jne 0x1002bfa6
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 1
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10036fc0
push eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.10036ff0
jmp 0x1002bfc0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x6c]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x6c]
mov edx, dword [eax]
mov eax, dword [edx + 0x94]
call eax
mov esp, ebp
pop ebp
ret 4

Function at 0x1002bfd0
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1002c000
push 0x48c
push 0x10274598
call fcn.1003b650
test eax, eax
je 0x1002c000
int3
push 0x102bba70
mov ecx, dword [ebp + 0xc]
call fcn.10001e38
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x68], 0
jne 0x1002c067
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1002c065
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
add edx, 1
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.10036fc0
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
call fcn.10036ff0
jmp 0x1002c088
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.1003e310
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1002c088
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.1002bf30
mov ecx, dword [ebp + 0xc]
call fcn.10001e93
mov esp, ebp
pop ebp
ret 8
Function at 0x100339d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
je 0x10033a55
call fcn.100550b0
mov dword [ebp - 0x10], eax
push 0xf0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10033a55
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10033a2e
xor eax, eax
jmp 0x10033a86
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10033a55
push 0x117f
push 0x10274598
call fcn.1003b650
test eax, eax
je 0x10033a55
int3
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.10033a90
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x10033a83
cmp dword [ebp - 0xc], 0
je 0x10033a83
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.1007cd10
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x1003e770
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1025a978
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x102f6d90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1003e7c8
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x6c], 0
jne 0x1003e7c8
push pe_nt_image_headers32
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcwinocc.cpp
call fcn.1003b650
test eax, eax
je 0x1003e7c8
int3
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x6c], 0
jne 0x1003e7ea
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x1003e84d
lea ecx, [ebp - 0x10]
call fcn.10001dcb
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x6c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x6c]
mov edx, dword [edx]
mov eax, dword [edx + 0x94]
call eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.10003adb
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10039bd0
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10001f35
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x1004b540
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call fcn.100550b0
mov dword [ebp - 8], eax
push 5
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1004b598
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1004b5b2
push 0x113
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
call fcn.1003b650
test eax, eax
je 0x1004b5b2
int3
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.1004b5f0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.1007cd10
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x1004f8f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0xc], 0
je 0x1004fa18
call fcn.100550b0
mov dword [ebp - 0x10], eax
push 0xf0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1004f9ab
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1004f982
push str.DLGINIT_resource_was_found__but_could_not_be_loaded._n
push 0
mov ecx, 0x1030375c
call fcn.10003adb
push eax
push 0x16c
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcoccmgr.cpp
lea ecx, [ebp - 0x20]
call fcn.10001029
push eax
call fcn.100283e0
add esp, 0x10
xor eax, eax
jmp 0x1004fa86
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1004f9a9
push 0x172
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcoccmgr.cpp
call fcn.1003b650
test eax, eax
je 0x1004f9a9
int3
jmp 0x1004fa18
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x1004f9ce
push 0x17a
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcoccmgr.cpp
call fcn.1003b650
test eax, eax
je 0x1004f9ce
int3
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xffffffff
je 0x1004fa18
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0
je 0x1004fa0d
push str.Dialog_has_OLE_controls__but_no_matching_DLGINIT_resource._n
push 0
mov ecx, 0x1030375c
call fcn.10003adb
push eax
push 0x180
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcoccmgr.cpp
lea ecx, [ebp - 0x28]
call fcn.10001029
push eax
call fcn.100283e0
add esp, 0x10
jmp 0x1004fa18
mov edx, dword [ebp - 0x18]
add edx, 4
mov dword [ebp - 0x18], edx
jmp 0x1004f9ce
mov dword [ebp - 8], 1
cmp dword [ebp - 4], 0
je 0x1004fa41
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x1004fa60
cmp dword [ebp - 0xc], 0
je 0x1004fa60
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.1007cd10
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x68], 0
je 0x1004fa83
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x68]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x68]
mov edx, dword [eax]
mov eax, dword [edx + 0xa8]
call eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc