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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
lea eax, [ebp - 0x108]
push edi
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 0x10], 0xd4
push eax
mov byte [ebp - 0xf], 0x31
mov byte [ebp - 0xe], 0x22
mov byte [ebp - 0xd], 0xf0
mov byte [ebp - 0xc], 0xbb
mov byte [ebp - 0xb], 0x19
mov byte [ebp - 0xa], 0xe9
mov byte [ebp - 9], 0x45
mov byte [ebp - 8], 0x35
mov byte [ebp - 7], 0x68
mov byte [ebp - 6], 0x24
mov byte [ebp - 5], 0xc2
mov byte [ebp - 4], 0x9e
mov byte [ebp - 3], 0x71
mov byte [ebp - 2], 0x7a
mov byte [ebp - 1], 0x68
call fcn.004354b9
push 0x20
mov esi, 0x562238
pop edi
lea eax, [ebp - 0x30]
push edi
push esi
push eax
call fcn.0042ca49
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x30]
push edi
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00435576
lea eax, [ebp - 0x50]
push edi
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0042ca49
add esp, 0x30
cmp byte [ebp - 0x30], 0
je 0x4353cb
lea eax, [ebp - 0x30]
push eax
push 0
call fcn.004353d8
pop ecx
test eax, eax
pop ecx
jne 0x4353cf
add esi, edi
push edi
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.0042ca49
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x30]
push edi
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00435576
lea eax, [ebp - 0x50]
push edi
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0042ca49
add esp, 0x28
jmp 0x43537f
xor eax, eax
jmp 0x4353d4
mov eax, 0xeaf5
pop edi
pop esi
leave
ret

Function at 0x4353d8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.004294bf
and byte [ebp - 9], 0
add esp, 0xc
mov byte [ebp - 0x14], 0x46
mov byte [ebp - 0xf], 0x69
mov byte [ebp - 0xa], 0x41
mov byte [ebp - 0x13], 0x69
mov byte [ebp - 0xe], 0x6e
mov byte [ebp - 0x12], 0x6e
mov byte [ebp - 0xd], 0x64
mov byte [ebp - 0x11], 0x64
mov byte [ebp - 0xc], 0x6f
mov byte [ebp - 0x10], 0x57
mov byte [ebp - 0xb], 0x77
call fcn.00435454
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x435434
leave
ret
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
mov esi, eax
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.004294bf
add esp, 0xc
mov eax, esi
pop esi
leave
ret

Function at 0x435454
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.004294bf
mov eax, dword [0x55ee1c]
and byte [ebp - 0xa], 0
and byte [ebp - 9], 0
and byte [ebp - 8], 0
add esp, 0xc
cmp eax, 1
mov byte [ebp - 0xc], 0x6c
mov byte [ebp - 0xb], 0x6c
mov byte [ebp - 0x14], 0x75
mov byte [ebp - 0x13], 0x73
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x72
mov byte [ebp - 0x10], 0x33
mov byte [ebp - 0xf], 0x32
mov byte [ebp - 0xe], 0x2e
mov byte [ebp - 0xd], 0x64
jne 0x4354b7
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x55ee1c], eax
leave
ret
Function at 0x4356a5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 2
mov byte [ebp - 0xc], 0x4f
mov byte [ebp - 0xa], 0x4c
mov byte [ebp - 8], 0x44
mov byte [ebp - 6], 0x47
mov byte [ebp - 4], 0x45
mov byte [ebp - 2], 0x45
mov byte [ebp - 0xb], 0x4c
mov byte [ebp - 9], 0x59
mov byte [ebp - 7], 0x42
mov byte [ebp - 5], 0x2e
mov byte [ebp - 3], 0x58
mov byte [ebp - 1], bl
mov byte [ebp - 0x18], 0x44
mov byte [ebp - 0x16], 0x50
mov byte [ebp - 0x14], 0x4e
mov byte [ebp - 0x12], 0x53
mov byte [ebp - 0x10], 0x45
mov byte [ebp - 0xe], 0x45
mov byte [ebp - 0x17], 0x45
mov byte [ebp - 0x15], 0x45
mov byte [ebp - 0x13], 0x44
mov byte [ebp - 0x11], 0x2e
mov byte [ebp - 0xf], 0x58
mov byte [ebp - 0xd], bl
mov byte [ebp - 0x24], 0x57
mov byte [ebp - 0x22], 0x32
mov byte [ebp - 0x20], 0x41
mov byte [ebp - 0x1e], 0x4d
mov byte [ebp - 0x1c], 0x45
mov byte [ebp - 0x1a], 0x45
mov byte [ebp - 0x23], 0x33
mov byte [ebp - 0x21], 0x44
mov byte [ebp - 0x1f], 0x53
mov byte [ebp - 0x1d], 0x2e
mov byte [ebp - 0x1b], 0x58
mov byte [ebp - 0x19], bl
call fcn.004359a4
mov esi, eax
pop ecx
cmp esi, 0xffffffff
pop ecx
mov dword [ebp - 0x28], esi
je 0x43585b
lea eax, [ebp - 0x154]
mov dword [ebp - 0x154], 0x128
push eax
push esi
call fcn.00435a54
pop ecx
test eax, eax
pop ecx
je 0x435862
call fcn.00435906
cmp dword [ebp - 0x14c], eax
jne 0x43578f
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x154]
push eax
push esi
call fcn.00435adc
pop ecx
test eax, eax
pop ecx
jne 0x435779
lea eax, [ebp - 0x154]
push eax
push esi
call fcn.00435a54
pop ecx
test eax, eax
pop ecx
je 0x435862
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x14c], eax
jne 0x435843
lea eax, [ebp - 0x130]
push eax
call fcn.004358ce
lea eax, [ebp - 0x130]
push eax
call fcn.004358ab
lea eax, [ebp - 0xc]
push eax
call fcn.004358ce
lea eax, [ebp - 0x18]
push eax
call fcn.004358ce
lea eax, [ebp - 0x24]
push eax
call fcn.004358ce
lea eax, [ebp - 0xc]
push 0xc
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00435870
mov esi, eax
lea eax, [ebp - 0x18]
push 0xc
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00435870
mov edi, eax
lea eax, [ebp - 0x24]
push 0xd
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00435870
add esp, 0x38
cmp esi, ebx
je 0x43585b
cmp edi, ebx
je 0x43585b
cmp eax, ebx
je 0x43585b
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x154]
push eax
push esi
call fcn.00435adc
pop ecx
test eax, eax
pop ecx
je 0x43585f
jmp 0x4357b9
xor eax, eax
jmp 0x43586b
push 1
pop ebx
push esi
call fcn.00429728
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x435906
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.004294bf
and byte [ebp - 1], 0
add esp, 0xc
mov byte [ebp - 0x14], 0x47
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x74
mov byte [ebp - 0x11], 0x43
mov byte [ebp - 0x10], 0x75
mov byte [ebp - 0xf], 0x72
mov byte [ebp - 0xe], 0x72
mov byte [ebp - 0xd], 0x65
mov byte [ebp - 0xc], 0x6e
mov byte [ebp - 0xb], 0x74
mov byte [ebp - 0xa], 0x50
mov byte [ebp - 9], 0x72
mov byte [ebp - 8], 0x6f
mov byte [ebp - 7], 0x63
mov byte [ebp - 6], 0x65
mov byte [ebp - 5], 0x73
mov byte [ebp - 4], 0x73
mov byte [ebp - 3], 0x49
mov byte [ebp - 2], 0x64
call fcn.004294ee
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.004294bf
mov eax, fcn.00435906
add esp, 0xc
test eax, eax
je 0x43599c
call esi
jmp 0x4359a1
call fcn.00433476
pop esi
leave
ret

Function at 0x4359a4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x19
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.004294bf
and byte [ebp - 4], 0
add esp, 0xc
mov byte [ebp - 0x1c], 0x43
mov byte [ebp - 0x17], 0x65
mov byte [ebp - 0x12], 0x68
mov byte [ebp - 0xd], 0x32
mov byte [ebp - 8], 0x73
mov byte [ebp - 0x1b], 0x72
mov byte [ebp - 0x16], 0x54
mov byte [ebp - 0x11], 0x65
mov byte [ebp - 0xc], 0x53
mov byte [ebp - 7], 0x68
mov byte [ebp - 0x1a], 0x65
mov byte [ebp - 0x15], 0x6f
mov byte [ebp - 0x10], 0x6c
mov byte [ebp - 0xb], 0x6e
mov byte [ebp - 6], 0x6f
mov byte [ebp - 0x19], 0x61
mov byte [ebp - 0x14], 0x6f
mov byte [ebp - 0xf], 0x70
mov byte [ebp - 0xa], 0x61
mov byte [ebp - 5], 0x74
mov byte [ebp - 0x18], 0x74
mov byte [ebp - 0x13], 0x6c
mov byte [ebp - 0xe], 0x33
mov byte [ebp - 9], 0x70
call fcn.004294ee
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x435a34
leave
ret
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
mov esi, eax
push 0x19
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.004294bf
add esp, 0xc
mov eax, esi
pop esi
leave
ret

Function at 0x435a54
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0xf
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.004294bf
and byte [ebp - 2], 0
add esp, 0xc
mov byte [ebp - 0x10], 0x50
mov byte [ebp - 0xb], 0x73
mov byte [ebp - 6], 0x69
mov byte [ebp - 0xf], 0x72
mov byte [ebp - 0xa], 0x73
mov byte [ebp - 5], 0x72
mov byte [ebp - 0xe], 0x6f
mov byte [ebp - 9], 0x33
mov byte [ebp - 4], 0x73
mov byte [ebp - 0xd], 0x63
mov byte [ebp - 8], 0x32
mov byte [ebp - 3], 0x74
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 7], 0x46
call fcn.004294ee
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x435abc
leave
ret
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
mov esi, eax
push 0xf
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.004294bf
add esp, 0xc
mov eax, esi
pop esi
leave
ret
Function at 0x435adc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0xf
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.004294bf
and byte [ebp - 3], 0
and byte [ebp - 2], 0
add esp, 0xc
mov byte [ebp - 0x10], 0x50
mov byte [ebp - 0xb], 0x73
mov byte [ebp - 6], 0x65
mov byte [ebp - 0xf], 0x72
mov byte [ebp - 0xa], 0x73
mov byte [ebp - 5], 0x78
mov byte [ebp - 0xe], 0x6f
mov byte [ebp - 9], 0x33
mov byte [ebp - 4], 0x74
mov byte [ebp - 0xd], 0x63
mov byte [ebp - 8], 0x32
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 7], 0x4e
call fcn.004294ee
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x435b44
leave
ret
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
mov esi, eax
push 0xf
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.004294bf
add esp, 0xc
mov eax, esi
pop esi
leave
ret

Function at 0x435d9f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push OleUIInsertObjectA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x435df7
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x532cc8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x435dea
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x435df9
xor eax, eax
pop esi
leave
ret 4
Function at 0x436e14
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
je 0x436f13
call fcn.004e6da2
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_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x436ebb
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x436e8c
push str.DLGINIT_resource_was_found__but_could_not_be_loaded._n
push 0x564248
call fcn.00478e45
add esp, 8
xor eax, eax
jmp 0x436f5c
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x436eb3
push 0x146
push str.occmgr.cpp
call fcn.004dfd30
test eax, eax
je 0x436eb3
int3
xor edx, edx
test edx, edx
jne 0x436e99
jmp 0x436f13
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x436ede
push 0x14e
push str.occmgr.cpp
call fcn.004dfd30
test eax, eax
je 0x436ede
int3
xor edx, edx
test edx, edx
jne 0x436ec4
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xffffffff
je 0x436f13
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0
je 0x436f08
push str.Dialog_has_OLE_controls__but_no_matching_DLGINIT_resource._n
push 0x564288
call fcn.00478e45
add esp, 8
jmp 0x436f13
mov edx, dword [ebp - 0x18]
add edx, 4
mov dword [ebp - 0x18], edx
jmp 0x436ee4
mov dword [ebp - 0xc], 1
cmp dword [ebp - 4], 0
je 0x436f3a
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 - 0x1c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1c]
call dword [edx + 0x1c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x436f59
cmp dword [ebp - 8], 0
je 0x436f59
mov eax, dword [ebp - 8]
push eax
call fcn.00435ea0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x475e60
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00456c20
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x475f2b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x475f2b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x475ede
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x475ee9
or bh, 8
and edi, 0x8000000
je 0x475f04
mov eax, dword [0x57695c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x475f2b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x476300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x47632b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x47634f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x47636a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x47aae3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52eb69
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004ed850
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable._AFX_DEBUG_STATE.0
push str.AFX.INI
push 1
push str.TraceEnabled
push str.Diagnostics
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x574b84], eax
push str.AFX.INI
push 0
push str.TraceFlags
push str.Diagnostics
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x574b80], eax
cmp dword [0x574b90], 0
je 0x47ab6c
push 0x77
push 0x5677f0
call fcn.004dfd30
test eax, eax
je 0x47ab6c
int3
xor ecx, ecx
test ecx, ecx
jne 0x47ab52
push 0x47a914
call fcn.00455270
add esp, 4
mov dword [0x574b90], eax
cmp dword [0x574b94], 0
je 0x47ab9e
push 0x7a
push 0x567800
call fcn.004dfd30
test eax, eax
je 0x47ab9e
int3
xor edx, edx
test edx, edx
jne 0x47ab84
push 0x47aa86
call fcn.004574a0
add esp, 4
mov dword [0x574b94], eax
push 4
push 2
call fcn.004573c0
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4967cd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
call fcn.004e6da2
mov dword [ebp - 4], eax
push 5
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x496826
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x496840
push 0xeb
push str.dlgcore.cpp
call fcn.004dfd30
test eax, eax
je 0x496840
int3
xor edx, edx
test edx, edx
jne 0x496826
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.0049689b
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.00435ea0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4975ee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x48]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x44]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x40], 0
je 0x497641
call fcn.004e6da2
mov dword [ebp - 0x10], eax
push 5
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x40]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x497654
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 1
cmp dword [ebp - 0xc], 0
je 0x4976e8
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dx, word [ecx + 2]
cmp edx, 0xffff
jne 0x49769f
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0xc]
mov ax, word [edx + 0x12]
mov word [ebp - 0x18], ax
mov ecx, dword [ebp - 0xc]
mov dx, word [ecx + 0x14]
mov word [ebp - 0x1c], dx
jmp 0x4976b5
mov eax, dword [ebp - 0xc]
mov cx, word [eax + 0xa]
mov word [ebp - 0x18], cx
mov edx, dword [ebp - 0xc]
mov ax, word [edx + 0xc]
mov word [ebp - 0x1c], ax
mov ecx, dword [ebp - 0x20]
and ecx, 0x1801
test ecx, ecx
jne 0x4976db
movsx edx, word [ebp - 0x18]
test edx, edx
jne 0x4976db
movsx eax, word [ebp - 0x1c]
test eax, eax
jne 0x4976db
mov dword [ebp - 0x28], 1
jmp 0x4976e2
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x40], 0
jne 0x4976fa
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x44], 0
je 0x497703
mov ecx, dword [ebp - 4]
push ecx
call fcn.00435ea0
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x40], 0
je 0x497716
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4978af
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x4978d2
push 0x33c
push str.dlgcore.cpp
call fcn.004dfd30
test eax, eax
je 0x4978d2
int3
xor eax, eax
test eax, eax
jne 0x4978b8
call fcn.004e6da2
mov dword [ebp - 8], eax
push 5
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x49793e
mov eax, dword [ebp + 8]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
test eax, eax
je 0x497920
mov ecx, dword [ebp + 8]
push ecx
push str.ERROR:_Cannot_find_dialog_template_named__s._n
call fcn.00478e45
add esp, 8
jmp 0x497937
mov edx, dword [ebp + 8]
and edx, 0xffff
push edx
push str.ERROR:_Cannot_find_dialog_template_with_IDD_0x_04X._n
call fcn.00478e45
add esp, 8
xor eax, eax
jmp 0x497a68
cmp dword [ebp + 0xc], 0
jne 0x49794e
mov eax, 1
jmp 0x497a68
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x497981
push str.Warning:_LoadResource_failed_for_dialog_template._n
push 0x5627e8
call fcn.00478e45
add esp, 8
mov eax, 1
jmp 0x497a68
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax + 2]
cmp ecx, 0xffff
jne 0x4979aa
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x14], eax
jmp 0x4979b2
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00435ea0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edx, dword [ebp - 0x14]
and edx, 0x10000000
test edx, edx
je 0x497a14
mov eax, dword [ebp + 8]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
test eax, eax
je 0x4979f9
mov ecx, dword [ebp + 8]
push ecx
push str.ERROR:_Dialog_named__s_must_be_invisible._n
call fcn.00478e45
add esp, 8
jmp 0x497a10
mov edx, dword [ebp + 8]
and edx, 0xffff
push edx
push str.ERROR:_Dialog_with_IDD_0x_04X_must_be_invisible._n
call fcn.00478e45
add esp, 8
xor eax, eax
jmp 0x497a68
mov eax, dword [ebp - 0x14]
and eax, 0x40000000
test eax, eax
jne 0x497a63
mov ecx, dword [ebp + 8]
shr ecx, 0x10
and ecx, 0xffff
and ecx, 0xffff
test ecx, ecx
je 0x497a49
mov edx, dword [ebp + 8]
push edx
push str.ERROR:_Dialog_named__s_must_have_the_child_style._n
call fcn.00478e45
add esp, 8
jmp 0x497a5f
mov eax, dword [ebp + 8]
and eax, 0xffff
push eax
push str.ERROR:_Dialog_with_IDD_0x_04X_must_have_the_child_style._n
call fcn.00478e45
add esp, 8
xor eax, eax
jmp 0x497a68
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8