joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44afbc
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44b161
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40f814]
call fcn.00402f1c
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403b40
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44b137
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043aae4
test al, al
je 0x44b12a
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44b170
lea eax, [ebp - 0x254]
call fcn.00409590
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44b12a
xor eax, eax
push ebp
push 0x44b123
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44b1a8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44b10c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403d6c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x44b10c
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403d6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b12a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44b02d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.00413308
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b168
lea eax, [ebp - 0x260]
call fcn.00403b40
ret
Function at 0x44ba6c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44ba83
add esp, 0xfffffff0
call fcn.0040328c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00417858
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40f2e8]
call fcn.00402f1c
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x40f2e8]
call fcn.00402f1c
mov dword [ebx + 0x90], eax
xor eax, eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x44], 0x80000018
mov dword [ebx + 0x60], 0x1f4
mov byte [ebx + 0x64], 1
xor eax, eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x5c], 0x9c4
mov byte [ebx + 0x70], 0
mov byte [ebx + 0x85], 1
mov dl, 1
mov eax, dword [0x4195e4]
call fcn.00420994
mov esi, eax
mov dword [ebx + 0x80], esi
push 0x44bbf4
mov eax, dword [0x49be38]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00420d38
mov eax, dword [ebx + 0x80]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x44d530
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x49be38]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c828
test eax, eax
je 0x44bb73
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408ea8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c850
test eax, eax
je 0x44bb87
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x74]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403d6c
mov eax, dword [0x49bc80]
cmp byte [eax], 0
jne 0x44bbb8
mov eax, ebx
call fcn.0044bce0
mov byte [ebx + 0x41], 1
mov byte [ebx + 0x42], 1
mov byte [ebx + 0x43], 1
mov byte [ebx + 0x86], 1
xor eax, eax
mov dword [ebx + 0x88], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44bbea
call fcn.004032e4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44bf3c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x49d7ac]
cmp dword [eax + 0x24], 0
je 0x44bfcc
cmp dword [ebx + 0x7c], 0
jne 0x44bfc9
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44bed0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x78]
cmp dword [eax + 8], 0
je 0x44bfc9
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44bf98
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x78]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44bfc9
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x78]
call fcn.00410d1c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44bfa4
inc dword [ebx + 0x7c]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x44c91c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x8c], 0
je 0x44c951
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403c24
jmp 0x44c95b
mov eax, esi
mov edx, dword [ebx + 0x74]
call fcn.00403bd8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44d860
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x44d898
mov eax, esi
call fcn.00436724
test al, al
je 0x44d898
mov eax, dword [ebx + 0x6c]
call fcn.004362fc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44d898
push 0
mov eax, dword [ebx + 0x6c]
call fcn.004362fc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x452960
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x204], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x452b42
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4529aa
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.00452430
mov eax, dword [ebp - 0x204]
mov edx, ebx
call fcn.0040c44c
cmp al, 1
jne 0x4529aa
dec ebx
mov edi, ebx
mov eax, esi
call fcn.00452744
test al, al
je 0x452ae2
test edi, edi
jge 0x4529c1
xor edi, edi
lea ebx, [edi + 1]
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.00452430
mov eax, dword [ebp - 0x204]
call fcn.00403dbc
cmp ebx, eax
jge 0x452a08
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.00452430
mov eax, dword [ebp - 0x204]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x49c224]
and eax, 0xff
bt dword [edx], eax
jae 0x452a08
inc ebx
mov eax, dword [esi + 0x20c]
cmp edi, eax
jl 0x452a16
mov edi, eax
mov ebx, edi
mov ecx, ebx
mov edx, ebx
mov eax, esi
call fcn.0045293c
cmp ebx, edi
je 0x452ada
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x200]
mov byte [eax], 0
inc eax
dec edx
jne 0x452a40
mov byte [ebp - 0x1f0], 0x81
mov eax, esi
mov bx, 0xffcf
call fcn.00403128
and eax, 0x7f
movzx eax, word [eax*2 + 0x49ab9c]
mov byte [ebp + eax - 0x200], 0x81
lea eax, [ebp - 0x200]
push eax
call sub.user32.dll_SetKeyboardState
push 1
mov eax, esi
mov bx, 0xffcf
call fcn.00403128
and eax, 0x7f
movzx eax, word [eax*2 + 0x49ab9c]
push eax
push pe_nt_image_headers32
mov eax, esi
call fcn.004362fc
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, esi
mov bx, 0xffcf
call fcn.00403128
and eax, 0x7f
movzx eax, word [eax*2 + 0x49ab9c]
push eax
push 0x101
mov eax, esi
call fcn.004362fc
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_SetKeyboardState
mov dword [esi + 0x214], edi
jmp 0x452b29
test edi, edi
jge 0x452ae8
xor edi, edi
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.00452430
mov eax, dword [ebp - 0x204]
call fcn.00403dbc
cmp edi, eax
jl 0x452b1e
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.00452430
mov eax, dword [ebp - 0x204]
call fcn.00403dbc
mov edi, eax
mov ecx, edi
mov edx, edi
mov eax, esi
call fcn.0045293c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452b49
lea eax, [ebp - 0x204]
call fcn.00403b40
ret
Function at 0x456cac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov ebx, dword [eax + 0x1ec]
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x456e4f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x224]
mov eax, dword [ebx + 0x10]
call fcn.0041a970
cmp byte [ebp + 8], 0
je 0x456d05
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebx + 0x10]
call fcn.0041a840
jmp 0x456d13
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [ebx + 0x10]
call fcn.0041a840
mov eax, dword [ebx + 0x10]
call fcn.0041a968
dec eax
jle 0x456d59
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x10]
call fcn.0041a838
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0
push 0
lea eax, [ebp - 0x24]
push eax
mov edi, dword [ebx + 0x10]
mov eax, edi
call fcn.0041a968
push eax
push 0x12200
call sub.gdi32.dll_ExtCreatePen
mov edx, eax
mov eax, edi
call fcn.0041a900
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov edi, dword [eax - 8]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x28]
call dword [ebx + 0x24]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + esi*4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
shr ecx, 1
add edx, ecx
add eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov bx, 0xffcf
call fcn.00403128
test al, al
je 0x456da2
test esi, esi
jne 0x456da2
inc dword [ebp - 0xc]
mov eax, esi
xor eax, 1
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + eax*4]
mov dword [ebp - 0x14], edx
add eax, 2
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x18], eax
lea eax, [esi + 2]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 4]
add eax, dword [edx]
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea eax, [esi + ebx]
mov edx, dword [ebp - 0xc]
mov dword [edi + eax*4], edx
mov eax, esi
xor eax, 1
mov edx, eax
add edx, ebx
mov ecx, dword [ebp - 0x14]
mov dword [edi + edx*4], ecx
add ebx, 2
lea edx, [esi + ebx]
mov ecx, dword [ebp - 0xc]
mov dword [edi + edx*4], ecx
add eax, ebx
mov edx, dword [ebp - 0x18]
mov dword [edi + eax*4], edx
add ebx, 2
inc dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + 0x28]
call dword [ecx + 0x24]
mov edx, dword [ebp - 4]
add eax, dword [edx]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jle 0x456dd8
shr ebx, 2
push ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 0xc]
push eax
push edi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1ec]
call fcn.0041b44c
push eax
call sub.gdi32.dll_PolyPolyline
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4850df
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x49ba62
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x485137
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x49ba83
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x48512d
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x48513b
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x498fe0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403f70
mov eax, dword [ebp - 8]
call fcn.00403f70
mov eax, dword [ebp - 0xc]
call fcn.00403f70
xor eax, eax
push ebp
push 0x4990af
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x4990c8
call fcn.00403dc4
lea eax, [ebp - 8]
mov edx, 0x4990c8
call fcn.00403dc4
lea eax, [ebp - 0xc]
mov edx, 0x4990c8
call fcn.00403dc4
mov bl, 1
push 1
lea eax, [ebp - 0xc]
call fcn.00403f8c
push eax
lea eax, [ebp - 8]
call fcn.00403f8c
push eax
lea eax, [ebp - 4]
call fcn.00403f8c
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
jae 0x499094
xor ebx, ebx
push 0
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, 0x4990d4
call fcn.00403e08
mov eax, dword [ebp - 0x10]
mov cx, word [0x4990e8]
mov dl, 1
call fcn.00450b44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4990b6
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403b64
ret
Function at 0x10002410
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x10198040]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0xc], 0x5c
mov byte [ebp - 0xb], 0x4e
mov byte [ebp - 0xa], 0x48
mov byte [ebp - 9], 0x2e
mov byte [ebp - 8], 0x74
mov byte [ebp - 7], 0x78
mov byte [ebp - 6], 0x74
mov byte [ebp - 5], 0
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.10120290
add esp, 8
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
je 0x1000251e
push 0
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
push eax
call fcn.10003fff
add esp, 4
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x124], 0
push 0
lea edx, [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x114], 0
je 0x1000251e
mov eax, dword [ebp - 0x114]
push eax
call fcn.10002590
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011f6f8
mov esp, ebp
pop ebp
ret
Function at 0x1000b0cd
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 0x1000b112
call fcn.1000862a
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1000b112
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1000b12e
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.100182e3
mov ebx, eax
test edi, edi
je 0x1000b12c
test esi, esi
je 0x1000b12c
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 0x1001ad53
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.1000862a
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1001ad8a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.1001adab
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1001da2d
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.1000f83b
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x1001da69
call fcn.1001dc4c
mov dword [esi + 0xc], 1
jmp 0x1001da6e
call fcn.1001dc4c
cmp dword [esi], 0
je 0x1001dab7
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x1001da91
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.1000b185
jmp 0x1001daa2
push 0xff
mov ecx, esi
call fcn.10005dc2
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10006bed
jmp 0x1001dadb
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x1001dadb
push dword [esi]
push dword [ebp - 4]
call fcn.1000fc8c
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001dba1
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.1001dc4c
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x1001dbe9
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1000b185
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10006bed
jmp 0x1001dbf4
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.1000fc8c
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1002d224
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.10063dfd
call fcn.1000867e
cmp dword [eax + 0x14], 0
jne 0x1002d23f
mov ecx, esi
pop esi
jmp fcn.1002c62a
pop esi
ret

Function at 0x1002df87
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.10076ffd
call fcn.1000867e
cmp dword [eax + 0x14], 0
jne 0x1002dfa2
mov ecx, esi
pop esi
jmp fcn.1002d870
pop esi
ret
Function at 0x401000
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
mov esi, dword [ebp + 0xc]
xor edx, edx
or eax, 0xffffffff
mov ecx, dword [ebp + 8]
mov dl, byte [esi]
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x40102c]
inc esi
dec ecx
jne 0x401011
not eax
pop edx
pop ecx
pop esi
leave
ret 8

Function at 0x40142c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret 0xc
Function at 0x401795
Capabilities:
Copy file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
pushal
push str.ConceptDrawPro.exe
lea eax, [ebp - 0x200]
push eax
call sub.kernel32.dll_lstrcpyA
push 0
push 0x82
push 3
push 0
push 2
push 0x80000000
lea eax, [ebp - 0x200]
push eax
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x401812
push 4
push 0x403ba4
push str.Cant_open_File._Search_for_it_
push dword [0x403c24]
call sub.user32.dll_MessageBoxA
cmp eax, 6
jne 0x40180d
push dword [0x403c24]
push str.Exe_Files
lea eax, [ebp - 0x200]
push eax
call fcn.004019eb
cmp eax, 1
jne 0x40180d
jmp 0x4017b0
jmp 0x4019e8
mov dword [0x403c14], eax
push 0
push dword [0x403c14]
call sub.kernel32.dll_GetFileSize
mov dword [0x403c18], eax
push 0
push 0
push 0
push dword [0x403c14]
call sub.kernel32.dll_SetFilePointer
mov ebx, dword [0x403c18]
push ebx
push 0x42
call sub.kernel32.dll_GlobalAlloc
mov dword [0x403c20], eax
push dword [0x403c20]
call sub.kernel32.dll_GlobalLock
mov dword [0x403c1c], eax
mov ebx, dword [0x403c18]
push 0
push 0x403a73
push ebx
push dword [0x403c1c]
push dword [0x403c14]
call sub.kernel32.dll_ReadFile
push dword [0x403c14]
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x403c18]
cmp eax, dword [0x403209]
je 0x4018ab
push str.Wrong_Filesize
push 0x6a
push dword [0x403c24]
call sub.user32.dll_SetDlgItemTextA
jmp 0x4019d2
cmp byte [0x40320d], 1
jne 0x4018e4
push dword [0x403c1c]
push dword [0x403c18]
call fcn.00401000
cmp eax, dword [0x40320e]
je 0x4018e4
push str.CRC32_check_failed
push 0x6a
push dword [0x403c24]
call sub.user32.dll_SetDlgItemTextA
jmp 0x4019d2
mov esi, 0x403214
mov edi, dword [0x403c1c]
add esi, 4
jmp 0x401910
mov ecx, dword [esi]
mov al, byte [esi + 4]
cmp al, byte [ecx + edi]
jne 0x401909
mov al, byte [esi + 5]
mov byte [ecx + edi], al
xor eax, eax
inc eax
jmp 0x40190d
xor eax, eax
jmp 0x40191c
add esi, 6
cmp dword [esi], 0
je 0x40191c
cmp word [esi + 4], 0
jne 0x4018f4
or eax, eax
jne 0x401937
push str.Bytes_not_found_or_already_patched
push 0x6a
push dword [0x403c24]
call sub.user32.dll_SetDlgItemTextA
jmp 0x4019d2
push 0
push 0
push 0xf0
push dword [0x403c28]
call sub.user32.dll_SendMessageA
cmp eax, 1
jne 0x401990
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrlenA
mov dword ss:[eax + ebp - 0x404], 0x4b41422e
push 1
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x200]
push eax
call sub.kernel32.dll_CopyFileA
push dword [0x403c18]
push dword [0x403c1c]
lea eax, [ebp - 0x200]
push eax
call fcn.0040142c
or eax, eax
jne 0x4019c0
push str.Cant_Save_File__Maybe_its_write_protected_
push 0x6a
push dword [0x403c24]
call sub.user32.dll_SetDlgItemTextA
jmp 0x4019d2
push str.File_saved__Now_test_it_
push 0x6a
push dword [0x403c24]
call sub.user32.dll_SetDlgItemTextA
push dword [0x403c1c]
call sub.kernel32.dll_GlobalUnlock
push dword [0x403c20]
call sub.kernel32.dll_GlobalFree
popal
leave
ret