joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d58e0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push ebp
xor edi, edi
call fcn.100b0be0
push ebp
call fcn.100b0b00
mov esi, eax
add esp, 8
test esi, esi
je 0x100d5ae9
push ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 4]
add eax, eax
cmp eax, dword [esi + 8]
jg 0x100d5915
mov eax, esi
jmp 0x100d591f
push eax
push esi
call fcn.100900c0
add esp, 8
test eax, eax
je 0x100d5ae8
mov ebp, dword [ebx + 4]
dec ebp
js 0x100d5a98
mov eax, dword [ebx]
mov edx, dword [eax + ebp*4]
mov ecx, edx
shr ecx, 1
mov eax, edx
and eax, 0x20000
and ecx, 0x8000
or ecx, eax
mov eax, edx
and eax, 0x40000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x80000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x100000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x200000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x400000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x800000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x1000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x2000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x4000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x8000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x10000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x20000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x40000000
shr ecx, 1
or ecx, eax
and edx, reloc.WS2_32.dll_accept
mov eax, dword [esi]
shr ecx, 1
or ecx, edx
shr ecx, 1
mov dword [eax + ebp*8 + 4], ecx
mov eax, dword [ebx]
mov ecx, dword [eax + ebp*4]
mov edx, ecx
and edx, 0x8000
mov eax, ecx
add edx, edx
and eax, 0x4000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x2000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x1000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x800
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x400
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x200
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x100
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x80
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x40
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x20
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x10
or edx, eax
mov eax, ecx
add edx, edx
and eax, 8
or edx, eax
mov eax, ecx
add edx, edx
and eax, 4
or edx, eax
mov eax, ecx
add edx, edx
and eax, 2
or edx, eax
and ecx, 1
mov eax, dword [esi]
add edx, edx
or edx, ecx
mov dword [eax + ebp*8], edx
dec ebp
jns 0x100d5931
mov eax, dword [ebx + 4]
add eax, eax
mov dword [esi + 4], eax
test eax, eax
jle 0x100d5ac1
mov ecx, dword [esi]
lea edx, [eax - 1]
lea edx, [ecx + edx*4]
lea esp, [esp]
mov ecx, dword [edx]
lea edx, [edx - 4]
test ecx, ecx
jne 0x100d5abe
dec eax
test eax, eax
jg 0x100d5ab0
mov dword [esi + 4], eax
cmp dword [esi + 4], edi
jne 0x100d5ac9
mov dword [esi + 0xc], edi
push dword [esp + 0x1c]
push esi
push dword [esp + 0x1c]
call fcn.100d49f0
mov ebp, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
mov ecx, 1
cmovne edi, ecx
pop ebx
push ebp
call fcn.100b0a90
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x100d82c0
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
test esi, esi
jle 0x100d83ac
push edi
mov edi, dword [esp + 0x14]
inc edi
lea ebx, [ebx]
movzx edx, byte [edi - 1]
cmp esi, 3
jl 0x100d833e
movzx ecx, byte [edi]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + 0x10105fe8]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x10105fe8]
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + 0x10105fe8]
mov byte [eax + 2], cl
movzx ecx, byte [edx + 0x10105fe8]
mov byte [eax + 3], cl
jmp 0x100d838f
shl edx, 0x10
cmp esi, 2
jne 0x100d834e
movzx ecx, byte [edi]
shl ecx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + 0x10105fe8]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x10105fe8]
mov byte [eax + 1], cl
cmp esi, 1
jne 0x100d837b
lea ecx, [esi + 0x3c]
jmp 0x100d8388
shr edx, 6
and edx, 0x3f
movzx ecx, byte [edx + 0x10105fe8]
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
sub esi, 3
add eax, 4
add ebx, 4
add edi, 3
test esi, esi
jg 0x100d82e0
pop edi
mov byte [eax], 0
mov eax, ebx
pop esi
pop ebx
ret
mov byte [eax], bl
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x403d30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push edi
call fcn.00448ca5
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x403e31
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x403e31
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403e31
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403e31
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x403db8
cmp esi, ecx
jae 0x403e31
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x403da2
cmp esi, ecx
jae 0x403e31
movzx eax, word [esi]
test ax, ax
je 0x403e31
mov edx, dword [ebx]
mov edi, eax
mov dword [ebp + 8], eax
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x403deb
push edi
mov ecx, ebx
call fcn.00404130
mov edx, dword [ebx]
movzx eax, word [esi]
jmp 0x403dee
mov eax, dword [ebp + 8]
movzx ecx, ax
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.0057a30e
add esp, 0x10
cmp eax, 0x50
ja case.0x403e0c.1
movzx eax, byte [eax + 0x403e60]
jmp dword [eax*4 + 0x403e50]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x403e41
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00448e4e
push 0x80070057
call fcn.00402040
call fcn.00448e34
adc edi, dword [esi]
inc eax
add byte [esi + edi], bh
inc eax
add byte [ebx + 0x3e], cl
inc eax
add byte [ebx + 0x3e], cl
inc eax
add byte [eax], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ecx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [eax]
int3
Function at 0x4057a0
Capabilities:
Compress data via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59817d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x609004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], edx
mov ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [esi + 4], eax
test ebx, ebx
je 0x40590d
cmp edx, 0xc
jl 0x40590d
mov eax, dword [0x612c20]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x405808
push str.ntdll.dll
call edi
mov dword [0x612c20], eax
test eax, eax
je 0x40581d
push str.RtlComputeCrc32
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [0x612c20]
test eax, eax
jne 0x405832
push str.ntdll.dll
call edi
mov dword [0x612c20], eax
test eax, eax
jne 0x405832
mov dword [ebp - 0x24], eax
jmp 0x405841
push str.RtlDecompressBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp dword [ebx], 0x6c8f4
jne 0x40590d
mov edi, dword [ebx + 4]
xor edx, edx
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], edx
test edi, edi
je 0x4058da
push ecx
push edi
lea ecx, [ebp - 0x1c]
call fcn.00407450
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff4
push eax
lea eax, [ebx + 0xc]
push eax
push edi
push dword [ebp - 0x1c]
push 2
call dword [ebp - 0x24]
test eax, eax
jne 0x4058d7
cmp dword [ebp - 0x20], edi
jne 0x4058d7
lea eax, [ebp - 0x1c]
cmp esi, eax
je 0x4058d0
mov eax, dword [ebp - 0x1c]
mov bl, 1
mov edx, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
mov ecx, dword [esi + 8]
mov dword [ebp - 0x1c], edx
mov dword [esi + 8], eax
mov dword [ebp - 0x14], ecx
jmp 0x4058dc
mov edx, dword [ebp - 0x1c]
mov bl, 1
jmp 0x4058dc
mov edx, dword [ebp - 0x1c]
xor bl, bl
test edx, edx
je 0x405909
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x4058ff
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40592b
push ecx
push edx
call fcn.00575c03
add esp, 8
mov al, bl
jmp 0x40590f
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005757bf
mov esp, ebp
pop ebp
ret
call fcn.0057e78d
int3
Function at 0x407630
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0049e311
Function at 0x4103ce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x41040d
call fcn.00450026
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41040d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x410415
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.004c022d
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x410e29
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x410eb5
cmp dword [esi + 0x20], 0
je 0x410eb5
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x410eb5
cmp dword [ebp + 8], 0
je 0x410eb5
xor edi, edi
mov ebx, edi
call fcn.00450026
push 0x5ad178
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x410e99
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x410eb5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.004c0dd0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x410eb1
mov ecx, esi
call fcn.00410bc7
mov eax, edi
jmp 0x410eb7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x415ddb
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5991d7
call fcn.00575c66
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x415e01
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x415e5b
lea ecx, [ebp - 0x10]
call fcn.00403f00
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x5aba40]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0057fec2
push eax
call fcn.00401fb0
add esp, 0x14
test esi, esi
je 0x415e4e
push esi
call fcn.0057fb0d
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004020f0
mov eax, ebx
call fcn.00575c34
ret 8
Function at 0x41feb4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x41fecd
call fcn.00450026
mov esi, dword [eax + 0xc]
push 0x5ae4f4
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x41ff0f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41ff0f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x41ff0f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0041ff18
jmp 0x41ff11
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x49cc13
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x49cc66
push esi
push dword [ebp + 8]
call fcn.0049cdfc
mov edi, eax
test edi, edi
je 0x49cc61
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x49cc61
mov eax, dword [ebp - 8]
jmp 0x49cc78
mov eax, dword [ebp + 0x10]
jmp 0x49cc78
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

Function at 0x49e311
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x84], ebx
test ebx, 0xffff0000
jne 0x49e33c
cmp dword [edi + 0x80], 0
jne 0x49e33c
movzx eax, bx
mov dword [edi + 0x80], eax
call fcn.00450026
push 5
push ebx
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0049e5af
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x49e369
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call fcn.00450026
push 5
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x49e39c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push edi
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.0049e3af
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4a03b2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x4a03f7
call fcn.00450026
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4a03f4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4a043e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x4a041a
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5aba40]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x4a043b
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x5aba40]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x4a3939
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.005820e2
pop ecx
test eax, eax
jne 0x4a397b
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x5bb00c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0041a117
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4a3941
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x4c32d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x4c3326
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4c32ff
call fcn.0043400f
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4c3314
call fcn.0043400f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4c3326
call fcn.0043400f
call fcn.00450026
cmp dword [eax + 0x3c], 0
je 0x4c333b
push edi
mov ecx, ebx
call fcn.004c29f3
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004c3521
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4c3364
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4c3370
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4c8bf7
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
je 0x4c8c3e
push 0x5ac790
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4c8c4d
push str.MoveFileTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4c8c4d
push dword [esi]
mov ecx, edi
push 2
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x5aba40]
call edi
jmp 0x4c8c4f
cmp dword [esi + 4], ebx
je 0x4c8c4d
pop edi
pop esi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileW]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x50d2ea
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x59950e
call fcn.00575c66
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040a860
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x50d348
call fcn.00450074
cmp eax, 1
jne 0x50d348
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.0046215b
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040adfb
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004020f0
inc esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.004020f0
mov eax, esi
call fcn.00575c34
ret 0x10

Function at 0x50d36f
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x59950e
call fcn.00575c66
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040a860
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x50d3cd
call fcn.00450074
cmp eax, 1
jne 0x50d3cd
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.0046215b
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040adfb
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004020f0
inc esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.004020f0
mov eax, esi
call fcn.00575c34
ret 0x14
Function at 0x54cb27
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.004159bc
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 0x54cb63
call fcn.0054cd44
mov dword [esi + 0xc], 1
jmp 0x54cb68
call fcn.0054cd44
cmp dword [esi], 0
je 0x54cbb3
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x54cb8e
push edi
call fcn.00410489
lea ecx, [edi + 1]
push ecx
jmp 0x54cb9d
push 0xff
call fcn.004040c0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00412b8c
pop edi
jmp 0x54cbd7
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 0x54cbd7
push dword [esi]
push dword [ebp - 4]
call fcn.004c14c3
pop esi
leave
ret 0xc

Function at 0x54cc9b
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.0054cd44
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x54cce3
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00410489
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00412b8c
jmp 0x54ccee
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004c14c3
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x56c36a
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00574bb4
call fcn.0045007a
cmp dword [eax + 0x14], 0
jne 0x56c385
mov ecx, esi
pop esi
jmp fcn.0056b68e
pop esi
ret

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

Disassembly:
push esi
mov esi, ecx
call fcn.00401f30
call fcn.0045007a
cmp dword [eax + 0x14], 0
jne 0x57103a
mov ecx, esi
pop esi
jmp fcn.00570890
pop esi
ret