joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459917
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.00457746
mov bl, al
mov edi, 0x348b49bc
mov eax, dword [ebx]
idiv dword [eax + 0x50746547]
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x459933
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x459933
call fcn.00457746
dec esp
aas
popfd
dec esi
mov ebx, dword [edx + 0x24]
add ebx, edi
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi

Function at 0x4c959d
Capabilities:
Get file system object information

Disassembly:
push 0x4c8
mov eax, 0x5a9ce8
call fcn.0052d245
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00403660
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x5ec790
call fcn.004056a0
cmp eax, 0xffffffff
jne 0x4c9651
push 0
push 0x5be7e0
lea ecx, [ebp - 0x4d0]
call fcn.004056a0
cmp eax, 0xffffffff
jne 0x4c9651
push 0
push 0x5b96fc
lea ecx, [ebp - 0x4d0]
call fcn.004056a0
cmp eax, 0xffffffff
jne 0x4c9651
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00403660
pop ecx
lea edi, [eax + 0x10]
mov dword [ebp - 0x4d4], edi
xor ecx, ecx
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x218]
push eax
push 0x104
push ecx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4c962d
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
lea ecx, [edi - 0x10]
mov ebx, eax
call fcn.00402760
jmp 0x4c9680
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00403560
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0
call fcn.00402760
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4c9677
mov ebx, dword [ebp - 0x4cc]
jmp 0x4c9680
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.00402760
mov eax, ebx
call fcn.0052d1f4
ret
Function at 0x53eb08
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x616040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.005313a3
mov dword [ebp - 0x14], eax
cmp dword [0x621774], esi
jne 0x53ebfb
push 0x800
push esi
push 0x5e5590
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x53eb88
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x53ecdb
push esi
push esi
push 0x5e5590
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x53ecdb
push 0x5e55a8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x53ecdb
push eax
call ebx
push 0x5e55b4
push edi
mov dword [0x621774], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5e55c4
push edi
mov dword [0x621778], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x62177c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x621784], eax
test eax, eax
je 0x53ebf8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x621780], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x53ec20
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x53ec13
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x53ec35
push 4
pop eax
jmp 0x53ecdd
cmp dword [ebp - 0x14], esi
je 0x53ec35
push dword [0x621774]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x53ec1a
mov eax, dword [0x621780]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x53ec93
cmp dword [0x621784], edi
je 0x53ec93
push eax
call ebx
push dword [0x621784]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x53ec93
test eax, eax
je 0x53ec93
call ecx
test eax, eax
je 0x53ec88
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x53ec88
test byte [ebp - 8], 1
jne 0x53ec93
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x53ecc3
mov eax, dword [0x621778]
cmp eax, edi
je 0x53ecc0
push eax
call ebx
test eax, eax
je 0x53ecc0
call eax
mov esi, eax
test esi, esi
je 0x53ecc0
mov eax, dword [0x62177c]
cmp eax, edi
je 0x53ecc0
push eax
call ebx
test eax, eax
je 0x53ecc0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x621774]
call ebx
test eax, eax
je 0x53ecdb
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x53ecdd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00527e5c
mov esp, ebp
pop ebp
ret
Function at 0x547070
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae748
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x616040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
cmp dword [edi + 0x80], 0
jne 0x5471f3
call fcn.00414a91
test eax, 0x800
jne 0x5471f3
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x5471f3
push dword [edi + 0x74]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x5471f3
push 0xd
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
mov dword [ebp - 0x30], esi
test esi, esi
jne 0x547107
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push 0x60baf4
push eax
call fcn.0052d7c1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x547129
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push 0x60baf4
push eax
call fcn.0052d7c1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 1
test ebx, ebx
jne 0x54715f
mov dword [ebp - 0x1c], ebx
mov word [ebp + ebx*2 - 0x2c], ax
jmp 0x547169
push ecx
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004022d0
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x547175
lea eax, [ebp - 0x2c]
push ebx
push dword [ebp - 0x38]
push eax
call fcn.0052eff0
add esp, 0xc
xor esi, esi
mov eax, dword [ebp - 0x1c]
cmp esi, eax
jge 0x5471d1
cmp eax, esi
ja 0x547199
push str.invalid_string_position
call fcn.00546d68
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x5471a5
lea eax, [ebp - 0x2c]
movzx eax, word [eax + esi*2]
test eax, eax
je 0x5471d1
push eax
mov ecx, edi
call fcn.00546f60
test eax, eax
jne 0x5471ce
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [ebp - 0x2c]
call fcn.00401fe0
mov eax, 1
jmp 0x5471f5
inc esi
jmp 0x547184
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.00546ec0
cmp dword [ebp - 0x18], 8
jb 0x5471ed
push dword [ebp - 0x2c]
call fcn.0040d533
add esp, 4
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00527e5c
mov esp, ebp
pop ebp
ret 4
Function at 0x54f770
Capabilities:
Delete file

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x49c]
cmp esi, dword [edi + 0x4a0]
je 0x54f7a0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esp, [esp]
push dword [esi]
call ebx
add esi, 0x1c
cmp esi, dword [edi + 0x4a0]
jne 0x54f790
pop ebx
pop edi
pop esi
ret

Function at 0x555880
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afad1
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x616040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push 0
mov dword [esi + 0x88], edi
call fcn.00417716
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 8]
movzx eax, ax
push eax
call fcn.0041792c
call fcn.00416d27
mov eax, dword [eax + 4]
cmp word [eax + 0xd4], 0
jbe 0x55596b
call fcn.0041505f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x555904
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp + 0xc]
mov dword [ebp + 8], 0
push eax
lea ecx, [ebp - 0x18]
call fcn.00417765
call fcn.00416d27
lea ecx, [ebp - 0x18]
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xd4]
push eax
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
call fcn.00417994
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55596b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp word [eax], 1
jne 0x555995
mov ecx, 0xffff
cmp word [eax + 2], cx
jne 0x555995
cmp dword [0x62202c], 0
je 0x555995
or dword [eax + 8], 0x400000
push 0
push edi
push eax
mov ecx, esi
call fcn.00419e27
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00417751
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x5559d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afafc
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x616040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea ecx, [ebp - 0x20]
mov dword [esi + 0x78], 0
call fcn.00417716
push 0x65
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.0041792c
call fcn.00416d27
mov eax, dword [eax + 4]
cmp word [eax + 0xd4], 0
jbe 0x555ab3
call fcn.0041505f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x555a4c
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x20]
call fcn.00417765
call fcn.00416d27
lea ecx, [ebp - 0x20]
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xd4]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.00417994
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x555ab3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp word [eax], 1
jne 0x555add
mov ecx, 0xffff
cmp word [eax + 2], cx
jne 0x555add
cmp dword [0x62202c], 0
je 0x555add
or dword [eax + 8], 0x400000
push 0
push dword [esi + 0x88]
mov ecx, esi
push eax
call fcn.0041a15c
mov ecx, esi
call fcn.00419e9d
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00417751
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x556660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afd63
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x616040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push 0
mov dword [esi + 0x88], edi
mov dword [esi + 0x78], 0
call fcn.00417716
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 8]
movzx eax, ax
push eax
call fcn.0041792c
call fcn.00416d27
mov eax, dword [eax + 4]
cmp word [eax + 0xd4], 0
jbe 0x556752
call fcn.0041505f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x5566eb
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp + 0xc]
mov dword [ebp + 8], 0
push eax
lea ecx, [ebp - 0x18]
call fcn.00417765
call fcn.00416d27
lea ecx, [ebp - 0x18]
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xd4]
push eax
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
call fcn.00417994
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x556752
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp word [eax], 1
jne 0x55677c
mov ecx, 0xffff
cmp word [eax + 2], cx
jne 0x55677c
cmp dword [0x62202c], 0
je 0x55677c
or dword [eax + 8], 0x400000
push 0
push edi
push eax
mov ecx, esi
call fcn.00419e27
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00417751
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x5567b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afd8e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x616040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea ecx, [ebp - 0x20]
mov dword [esi + 0x78], 0
call fcn.00417716
push 0x69
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.0041792c
call fcn.00416d27
mov eax, dword [eax + 4]
cmp word [eax + 0xd4], 0
jbe 0x556893
call fcn.0041505f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x55682c
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x20]
call fcn.00417765
call fcn.00416d27
lea ecx, [ebp - 0x20]
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xd4]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.00417994
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x556893
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp word [eax], 1
jne 0x5568bd
mov ecx, 0xffff
cmp word [eax + 2], cx
jne 0x5568bd
cmp dword [0x62202c], 0
je 0x5568bd
or dword [eax + 8], 0x400000
push 0
push dword [esi + 0x88]
mov ecx, esi
push eax
call fcn.0041a15c
mov ecx, esi
call fcn.00419e9d
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00417751
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x556cf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afe3e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x616040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push 0
mov dword [esi + 0x88], edi
mov dword [esi + 0x78], 0
call fcn.00417716
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 8]
movzx eax, ax
push eax
call fcn.0041792c
call fcn.00416d27
mov eax, dword [eax + 4]
cmp word [eax + 0xd4], 0
jbe 0x556de2
call fcn.0041505f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x556d7b
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp + 0xc]
mov dword [ebp + 8], 0
push eax
lea ecx, [ebp - 0x18]
call fcn.00417765
call fcn.00416d27
lea ecx, [ebp - 0x18]
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xd4]
push eax
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
call fcn.00417994
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x556de2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp word [eax], 1
jne 0x556e0c
mov ecx, 0xffff
cmp word [eax + 2], cx
jne 0x556e0c
cmp dword [0x62202c], 0
je 0x556e0c
or dword [eax + 8], 0x400000
push 0
push edi
push eax
mov ecx, esi
call fcn.00419e27
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00417751
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x556e50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afe69
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x616040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea ecx, [ebp - 0x20]
mov dword [esi + 0x78], 0
call fcn.00417716
push 0x68
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.0041792c
call fcn.00416d27
mov eax, dword [eax + 4]
cmp word [eax + 0xd4], 0
jbe 0x556f33
call fcn.0041505f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x556ecc
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x20]
call fcn.00417765
call fcn.00416d27
lea ecx, [ebp - 0x20]
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xd4]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.00417994
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x556f33
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp word [eax], 1
jne 0x556f5d
mov ecx, 0xffff
cmp word [eax + 2], cx
jne 0x556f5d
cmp dword [0x62202c], 0
je 0x556f5d
or dword [eax + 8], 0x400000
push 0
push dword [esi + 0x88]
mov ecx, esi
push eax
call fcn.0041a15c
mov ecx, esi
call fcn.00419e9d
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00417751
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x55d1f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b028a
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push esi
push edi
mov eax, dword [0x616040]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp ebx, 1
jne 0x55d2f3
push 0
push 0x69
lea ecx, [esp + 0x1c]
call fcn.00419943
mov dword [esp + 0x14], vtable.CDlgProgress.0
mov dword [esp + 0xac], 0
mov eax, dword [ebp + 0x14]
lea ecx, [esp + 0x14]
mov dword [esp + 0xd8], 0
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], 0x1fbd
mov dword [esp + 0xb8], 0x1fb2
mov dword [esp + 0xbc], 0x23c1
mov dword [esp + 0xc0], esi
call fcn.005567b0
mov edx, dword [esp + 0xc8]
test edx, edx
je 0x55d2af
mov ecx, dword [ebp + 0x10]
call fcn.00547e70
mov ebx, 2
mov dword [esp + 0x14], vtable.CDlgProgress.0
mov dword [esp + 0xd8], 1
mov ecx, dword [esp + 0xac]
test ecx, ecx
je 0x55d2d4
mov eax, dword [ecx]
push 1
call dword [eax + 4]
lea ecx, [esp + 0x14]
mov dword [esp + 0xac], 0
mov dword [esp + 0xd8], 0xffffffff
call fcn.00419990
cmp ebx, 2
jne 0x55d319
mov eax, dword [esi + 0x1d4]
mov edi, dword [eax + 8]
mov esi, dword [eax + 4]
test edi, edi
jle 0x55d319
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [esi + 0x90]
dec edi
jne 0x55d308
mov eax, ebx
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x567740
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0abb
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x616040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, cl
push 0x20001
mov edx, 0x1e240
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0058f8e0
add esp, 4
mov byte [ebp - 4], 1
mov ecx, 0x5e9af0
mov esi, dword [ebp - 0x18]
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x5677ba
test dx, dx
je 0x5677b6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5677ba
add eax, 4
add ecx, 4
test dx, dx
jne 0x567794
xor eax, eax
jmp 0x5677bf
sbb eax, eax
or eax, 1
or edi, 0xffffffff
test eax, eax
jne 0x5678c6
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWARECanonIJ_Scan_Utility
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 0x10], 0
jne 0x5677fc
xor bl, bl
jmp 0x5678c8
test bl, bl
jne 0x567895
call fcn.0041505f
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x567820
push 0x80004005
call fcn.00402740
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
mov edx, str.TempDir
push eax
call fcn.0058b990
add esp, 4
test eax, eax
je 0x567875
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00403bd0
add esp, 8
test al, al
je 0x567875
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], 0
call fcn.00402b60
jmp 0x5678c6
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x567895
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push 1
push 0
push str.TempDir
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], 0
mov bl, 1
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5678e5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x567906
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret