joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e38c4
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 0x4e39c3
call fcn.005c5e42
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 0x4e396b
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 0x4e393c
push str.DLGINIT_resource_was_found__but_could_not_be_loaded._n
push 0x66eca0
call fcn.0053fb15
add esp, 8
xor eax, eax
jmp 0x4e3a0c
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 0x4e3963
push 0x146
push str.occmgr.cpp
call fcn.005c3050
test eax, eax
je 0x4e3963
int3
xor edx, edx
test edx, edx
jne 0x4e3949
jmp 0x4e39c3
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x4e398e
push 0x14e
push str.occmgr.cpp
call fcn.005c3050
test eax, eax
je 0x4e398e
int3
xor edx, edx
test edx, edx
jne 0x4e3974
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xffffffff
je 0x4e39c3
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0
je 0x4e39b8
push str.Dialog_has_OLE_controls__but_no_matching_DLGINIT_resource._n
push 0x66ece0
call fcn.0053fb15
add esp, 8
jmp 0x4e39c3
mov edx, dword [ebp - 0x18]
add edx, 4
mov dword [ebp - 0x18], edx
jmp 0x4e3994
mov dword [ebp - 0xc], 1
cmp dword [ebp - 4], 0
je 0x4e39ea
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 0x4e3a09
cmp dword [ebp - 8], 0
je 0x4e3a09
mov eax, dword [ebp - 8]
push eax
call fcn.004e31f0
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 0x4ec470
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62e38e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push 0x1af
push str.dbview.cpp
mov eax, dword [ebp + 0x14]
push eax
call fcn.00575350
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.005917ae
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x4ec5c5
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.user32.dll_GetWindowTextLengthA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x4ec55e
lea ecx, [ebp - 0x18]
call fcn.005bf5d7
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x18]
call fcn.00565c68
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.user32.dll_GetWindowTextA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.00565da3
lea ecx, [ebp - 0x18]
call fcn.005bf630
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x10]
call fcn.005bf646
cmp dword [ebp - 0x14], eax
jle 0x4ec531
mov ecx, dword [ebp + 0x10]
call fcn.005bf646
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00592a2d
mov edx, dword [ebp - 0x14]
add edx, 1
push edx
push 0
mov ecx, dword [ebp + 0x10]
call fcn.00565c68
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.user32.dll_GetWindowTextA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.005654bc
jmp 0x4ec57f
mov ecx, dword [ebp + 0x10]
call fcn.005bf646
add eax, 1
push eax
push 0
mov ecx, dword [ebp + 0x10]
call fcn.00565c68
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.user32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x10]
call fcn.00565da3
mov ecx, dword [ebp + 0x10]
call fcn.005bf630
test eax, eax
jne 0x4ec5b5
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.004d5115
test eax, eax
je 0x4ec5b3
push 1
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.004d654b
jmp 0x4ec5c3
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.004d654b
jmp 0x4ec627
mov ecx, dword [ebp + 0x14]
call fcn.004d4d81
test eax, eax
je 0x4ec5e1
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.004d5041
test eax, eax
je 0x4ec5f6
push 0
push 0xffffffffffffffff
push 0x14e
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.user32.dll_SendMessageA]
jmp 0x4ec627
mov ecx, dword [ebp + 0x10]
call fcn.005bf67a
push eax
push 0xffffffffffffffff
push 0x14d
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.user32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4ec627
mov ecx, dword [ebp + 0x10]
call fcn.005bf67a
push eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.00585a83
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x527c90
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.00500930
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x527d5b
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 0x527d5b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x527d0e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x527d19
or bh, 8
and edi, 0x8000000
je 0x527d34
mov eax, dword [0x686d1c]
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 0x527d5b
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 0x528130
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 0x52815b
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 0x52817f
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 0x52819a
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 [0x68a080]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [0x68983c]
mov esi, eax
push edi
push 0
call dword [0x68a078]
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 0x541eb3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62e049
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.005d6c30
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 [0x684b3c], eax
push str.AFX.INI
push 0
push str.TraceFlags
push str.Diagnostics
call dword [sym.imp.kernel32.dll_GetPrivateProfileIntA]
mov dword [0x684b38], eax
cmp dword [0x684b48], 0
je 0x541f3c
push 0x77
push 0x672104
call fcn.005c3050
test eax, eax
je 0x541f3c
int3
xor ecx, ecx
test ecx, ecx
jne 0x541f22
push 0x541ce4
call fcn.00505240
add esp, 4
mov dword [0x684b48], eax
cmp dword [0x684b4c], 0
je 0x541f6e
push 0x7a
push 0x672114
call fcn.005c3050
test eax, eax
je 0x541f6e
int3
xor edx, edx
test edx, edx
jne 0x541f54
push 0x541e56
call fcn.00502ee0
add esp, 4
mov dword [0x684b4c], eax
push 4
push 2
call fcn.00502e00
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 0x567ce5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0x100
jne 0x567d50
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0x70
jne 0x567d50
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
and eax, 0x4000
test eax, eax
jne 0x567d50
push 0x10
call dword [sym.imp.user32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jl 0x567d50
push 0x11
call dword [sym.imp.user32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jl 0x567d50
push 0x12
call dword [sym.imp.user32.dll_GetKeyState]
movsx eax, ax
test eax, eax
jl 0x567d50
mov dword [ebp - 4], 1
jmp 0x567d57
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x5698cd
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.005c5e42
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 0x569926
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 0x569940
push 0xeb
push str.dlgcore.cpp
call fcn.005c3050
test eax, eax
je 0x569940
int3
xor edx, edx
test edx, edx
jne 0x569926
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.0056999b
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.004e31f0
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 0x56a6ee
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 0x56a741
call fcn.005c5e42
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 0x56a754
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 0x56a7e8
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 0x56a79f
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 0x56a7b5
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 0x56a7db
movsx edx, word [ebp - 0x18]
test edx, edx
jne 0x56a7db
movsx eax, word [ebp - 0x1c]
test eax, eax
jne 0x56a7db
mov dword [ebp - 0x28], 1
jmp 0x56a7e2
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 0x56a7fa
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x44], 0
je 0x56a803
mov ecx, dword [ebp - 4]
push ecx
call fcn.004e31f0
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x40], 0
je 0x56a816
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 0x56a9af
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 0x56a9d2
push 0x33c
push str.dlgcore.cpp
call fcn.005c3050
test eax, eax
je 0x56a9d2
int3
xor eax, eax
test eax, eax
jne 0x56a9b8
call fcn.005c5e42
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 0x56aa3e
mov eax, dword [ebp + 8]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
test eax, eax
je 0x56aa20
mov ecx, dword [ebp + 8]
push ecx
push str.ERROR:_Cannot_find_dialog_template_named__s._n
call fcn.0053fb15
add esp, 8
jmp 0x56aa37
mov edx, dword [ebp + 8]
and edx, 0xffff
push edx
push str.ERROR:_Cannot_find_dialog_template_with_IDD_0x_04X._n
call fcn.0053fb15
add esp, 8
xor eax, eax
jmp 0x56ab68
cmp dword [ebp + 0xc], 0
jne 0x56aa4e
mov eax, 1
jmp 0x56ab68
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 0x56aa81
push str.Warning:_LoadResource_failed_for_dialog_template._n
push 0x66eb74
call fcn.0053fb15
add esp, 8
mov eax, 1
jmp 0x56ab68
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 0x56aaaa
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x14], eax
jmp 0x56aab2
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004e31f0
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 0x56ab14
mov eax, dword [ebp + 8]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
test eax, eax
je 0x56aaf9
mov ecx, dword [ebp + 8]
push ecx
push str.ERROR:_Dialog_named__s_must_be_invisible._n
call fcn.0053fb15
add esp, 8
jmp 0x56ab10
mov edx, dword [ebp + 8]
and edx, 0xffff
push edx
push str.ERROR:_Dialog_with_IDD_0x_04X_must_be_invisible._n
call fcn.0053fb15
add esp, 8
xor eax, eax
jmp 0x56ab68
mov eax, dword [ebp - 0x14]
and eax, 0x40000000
test eax, eax
jne 0x56ab63
mov ecx, dword [ebp + 8]
shr ecx, 0x10
and ecx, 0xffff
and ecx, 0xffff
test ecx, ecx
je 0x56ab49
mov edx, dword [ebp + 8]
push edx
push str.ERROR:_Dialog_named__s_must_have_the_child_style._n
call fcn.0053fb15
add esp, 8
jmp 0x56ab5f
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.0053fb15
add esp, 8
xor eax, eax
jmp 0x56ab68
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x56b377
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
push 0xed
push str.filecore.cpp
mov eax, dword [ebp - 8]
push eax
call fcn.00575350
mov ecx, dword [ebp - 8]
cmp dword [ecx + 4], 0xffffffff
jne 0x56b3b3
push 0xee
push str.filecore.cpp
call fcn.005c3050
test eax, eax
je 0x56b3b3
int3
xor edx, edx
test edx, edx
jne 0x56b396
cmp dword [ebp + 0xc], 0
jne 0x56b3c4
jmp 0x56b465
cmp dword [ebp + 8], 0
jne 0x56b3de
push 0xf3
push str.filecore.cpp
call fcn.005c3050
test eax, eax
je 0x56b3de
int3
xor eax, eax
test eax, eax
jne 0x56b3c4
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0053fd56
test eax, eax
jne 0x56b40b
push 0xf4
push str.filecore.cpp
call fcn.005c3050
test eax, eax
je 0x56b40b
int3
xor eax, eax
test eax, eax
jne 0x56b3e4
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x56b448
mov ecx, dword [ebp - 8]
add ecx, 0xc
call fcn.005bf67a
push eax
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.00575aa0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x56b465
mov ecx, dword [ebp - 8]
add ecx, 0xc
call fcn.005bf67a
push eax
push 0xffffffffffffffff
push 0xd
call fcn.00575c80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x56bbac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push 0x66f02c
push 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
test eax, eax
jne 0x56bc82
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
test eax, eax
jne 0x56bc78
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push str.InProcServer32
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
test eax, eax
jne 0x56bc6e
push 0x104
mov ecx, dword [ebp + 0xc]
call fcn.00565c68
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], 0x104
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
push 0x682c7c
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov dword [ebp - 0x18], eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
call fcn.00565da3
xor ecx, ecx
cmp dword [ebp - 0x18], 0
sete cl
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x56bc8b
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x178], 0
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
push 0x800
push 0x160
lea ecx, [ebp - 0x174]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.shell32.dll_SHGetFileInfoA]
test eax, eax
je 0x56bcec
mov eax, dword [ebp - 0x16c]
and eax, 0x10000
test eax, eax
jne 0x56bcf3
xor eax, eax
jmp 0x56be23
lea ecx, [ebp - 0x14]
push ecx
push 0x636188
push 0
push 0x636198
lea ecx, [ebp - 4]
call fcn.0056b927
test eax, eax
jge 0x56bd16
xor eax, eax
jmp 0x56be23
lea edx, [ebp - 0x10]
push edx
push 0x640b10
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
call dword [ecx]
test eax, eax
jl 0x56be15
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0x178], 0
jne 0x56bd50
mov dword [ebp - 0x180], 0
jmp 0x56bd9e
mov ecx, dword [ebp - 0x178]
push ecx
call dword [sym.imp.kernel32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x17c]
shl eax, 1
add eax, 3
and al, 0xfc
call fcn.00500930
mov dword [ebp - 0x184], esp
mov edx, dword [ebp - 0x17c]
push edx
mov eax, dword [ebp - 0x178]
push eax
mov ecx, dword [ebp - 0x184]
push ecx
call fcn.004e48b0
mov dword [ebp - 0x180], eax
push 0
mov edx, dword [ebp - 0x180]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
push edx
call dword [ecx + 0x14]
test eax, eax
jl 0x56be09
push 2
mov ecx, dword [ebp + 8]
call fcn.005cc32c
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
call dword [ecx + 0x4c]
test eax, eax
jl 0x56be09
push 0
push 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [eax + 8]
mov eax, 1
jmp 0x56be23
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [eax + 8]
xor eax, eax
lea esp, [ebp - 0x184]
mov esp, ebp
pop ebp
ret 0x10