joyce8/EMBER2024-capa huggingface dataset:
Function at 0x69077530
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x58
test byte [0x6907a148], 8
mov dword [ebp - 8], ebx
mov edx, dword [ecx + 8]
mov dword [ebp - 4], esi
mov ebx, dword [ecx]
mov dword [ebp - 0xc], ecx
mov esi, dword [ecx + 4]
jne 0x690775d0
test esi, esi
sete cl
test edx, edx
sete al
or cl, al
jne 0x690775c0
test ebx, ebx
je 0x690775c0
lea ecx, [ebp - 0x1c]
mov eax, ebx
call sym._get_region_scans_data
test eax, eax
mov ebx, eax
je 0x69077590
mov ecx, dword [ebp - 0xc]
mov eax, ebx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 8]
mov dword [esi], edx
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x6907757c
mov ebx, 2
jmp 0x6907757c
mov dword [esp + 0x18], edx
mov ecx, str.GdipGetRegionScansCount
mov eax, 0x6907a148
mov dword [ebp - 0x2c], edx
mov edx, str.__p___p___p__n
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_12
mov edx, dword [ebp - 0x2c]
jmp 0x6907755a

Function at 0x69077610
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0xc], ebx
mov ebx, dword [ecx + 8]
mov dword [ebp - 8], esi
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
mov dword [ebp - 4], edi
mov edi, dword [ecx + 4]
test ebx, ebx
sete cl
test esi, esi
sete dl
or cl, dl
jne 0x69077700
test eax, eax
je 0x69077700
lea ecx, [ebp - 0x1c]
mov edx, esi
call sym._get_region_scans_data
test eax, eax
mov esi, eax
jne 0x690776e0
mov eax, dword [ebp - 0x1c]
test edi, edi
mov dword [ebp - 0x30], eax
mov ecx, dword [eax + 8]
mov dword [ebx], ecx
je 0x690776b6
test ecx, ecx
je 0x690776b6
shl ecx, 4
lea ebx, [edi + ecx]
mov dword [ebp - 0x2c], ebx
lea edx, [eax + 0x20]
mov eax, edi
lea esi, [esi]
lea esi, [esi]
mov ecx, dword [edx]
add eax, 0x10
add edx, 0x10
mov edi, dword [edx - 8]
mov ebx, dword [edx - 0xc]
mov dword [eax - 0x10], ecx
sub edi, ecx
mov ecx, dword [edx - 4]
mov dword [eax - 0xc], ebx
mov dword [eax - 8], edi
sub ecx, ebx
mov dword [eax - 4], ecx
cmp eax, dword [ebp - 0x2c]
jne 0x69077690
mov edi, dword [ebp - 0x30]
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov dword [esp + 8], edi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x690776e2
xor esi, esi
mov ecx, dword [ebp - 0x10]
mov eax, esi
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov esi, 2
jmp 0x690776e2
Function at 0x69077710
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov ebx, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov eax, dword [ecx]
mov edi, dword [ecx + 4]
test ebx, ebx
sete cl
test esi, esi
sete dl
or cl, dl
jne 0x69077910
test eax, eax
je 0x69077910
lea ecx, [ebp - 0x1c]
mov edx, esi
call sym._get_region_scans_data
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x690778f0
mov edx, dword [ebp - 0x1c]
test edi, edi
mov dword [ebp - 0x34], edx
mov esi, dword [edx + 8]
mov dword [ebx], esi
je 0x690778bf
test esi, esi
je 0x690778bf
lea eax, [esi - 1]
cmp eax, 2
jbe 0x69077919
mov ecx, esi
add edx, 0x20
shr ecx, 2
mov eax, edi
shl ecx, 6
add ecx, edi
lea esi, [esi]
lea esi, [esi]
nop
movdqu xmm3, xmmword [edx + 0x10]
movdqu xmm2, xmmword [edx + 0x30]
movdqu xmm0, xmmword [edx]
movdqu xmm5, xmmword [edx + 0x20]
movdqu xmm1, xmm0
movdqu xmm7, xmm5
shufps xmm1, xmm3, 0x88
add eax, 0x40
shufps xmm7, xmm2, 0x88
add edx, 0x40
shufps xmm0, xmm3, 0xdd
movdqu xmm6, xmm1
shufps xmm5, xmm2, 0xdd
shufps xmm6, xmm7, 0x88
movdqu xmm4, xmm0
shufps xmm1, xmm7, 0xdd
shufps xmm4, xmm5, 0x88
shufps xmm0, xmm5, 0xdd
psubd xmm1, xmm6
cvtdq2ps xmm2, xmm6
psubd xmm0, xmm4
cvtdq2ps xmm3, xmm4
movups xmm4, xmm2
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm0, xmm0
unpcklps xmm4, xmm1
unpckhps xmm2, xmm1
movups xmm1, xmm3
unpckhps xmm3, xmm0
unpcklps xmm1, xmm0
movups xmm0, xmm4
unpcklps xmm0, xmm1
unpckhps xmm4, xmm1
movlps qword [eax - 0x40], xmm0
movhps qword [eax - 0x38], xmm0
movups xmm0, xmm2
unpcklps xmm0, xmm3
movlps qword [eax - 0x30], xmm4
movhps qword [eax - 0x28], xmm4
unpckhps xmm2, xmm3
movlps qword [eax - 0x20], xmm0
movhps qword [eax - 0x18], xmm0
movlps qword [eax - 0x10], xmm2
movhps qword [eax - 8], xmm2
cmp eax, ecx
jne 0x690777a0
mov ebx, esi
and ebx, 0xfffffffc
test esi, 3
je 0x690778bf
mov dword [ebp - 0x30], esi
mov edx, dword [ebp - 0x34]
lea eax, [ebx + 2]
shl eax, 4
add edx, eax
lea eax, [edi + eax - 0x20]
lea esi, [esi]
nop
mov ecx, dword [edx]
pxor xmm0, xmm0
inc ebx
mov edi, dword [edx + 4]
add eax, 0x10
add edx, 0x10
mov esi, dword [edx - 8]
cvtsi2ss xmm0, ecx
sub esi, ecx
mov ecx, dword [edx - 4]
movss dword [eax - 0x10], xmm0
pxor xmm0, xmm0
cvtsi2ss xmm0, edi
sub ecx, edi
movss dword [eax - 0xc], xmm0
pxor xmm0, xmm0
cvtsi2ss xmm0, esi
movss dword [eax - 8], xmm0
pxor xmm0, xmm0
cvtsi2ss xmm0, ecx
movss dword [eax - 4], xmm0
cmp dword [ebp - 0x30], ebx
ja 0x69077870
mov ebx, dword [ebp - 0x34]
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov dword [esp + 8], ebx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x690778f7
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [ebp - 0x2c], 2
jmp 0x690778f7
xor ebx, ebx
jmp 0x69077856
Function at 0x69077a30
Capabilities:
Get process heap flags

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [0x69088108]
mov esi, dword fs:[0x18]
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [0x69088104]
xor edx, edx
sub esp, 0xc
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [0x690880c8]
xor ecx, ecx
sub esp, 0xc
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [0x690880c4]
sub esp, 0xc
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x69077ac0
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x38
test byte [0x6907a158], 8
mov dword [ebp - 0xc], ebx
movzx ebx, word [ecx + 4]
mov dword [ebp - 8], esi
mov esi, dword [ecx]
mov dword [ebp - 4], edi
mov edi, dword [ecx + 8]
mov dword [ebp - 0x10], ecx
jne 0x69077b98
test edi, edi
je 0x69077bd3
mov edx, 0x34
mov ecx, 8
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [edi], eax
sub esp, 0xc
test eax, eax
je 0x69077c10
mov word [eax + 4], bx
xor ebx, ebx
test byte [0x6907a158], 8
mov dword [eax], esi
mov word [eax + 6], 0
mov dword [eax + 0xc], 1
mov dword [eax + 0x18], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
jne 0x69077be0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov dword [esp + 0x18], edi
mov eax, str.__i___x___p__n
mov dword [esp + 0xc], eax
mov eax, str.GdipCreateStringFormat
mov dword [esp + 8], eax
mov eax, 0x6907a158
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_13
test edi, edi
jne 0x69077afa
mov ebx, 2
jmp 0x69077b7d
mov dword [esp + 0x10], eax
mov edx, str.GdipCreateStringFormat
mov ecx, 0x6907a158
mov dword [esp + 8], edx
mov eax, str._____p_n
mov dword [esp + 0xc], eax
mov dword [esp + 4], ecx
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_13
jmp 0x69077b7d
mov ebx, 3
jmp 0x69077b7d
Function at 0x69077c20
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], ebx
mov ebx, dword [ecx]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
test ebx, ebx
je 0x69077cd8
cmp ebx, 0x690880e0
je 0x69077cd0
cmp ebx, 0x690880a0
je 0x69077cd0
mov eax, dword [ebx + 0x28]
mov edi, dword fs:[0x18]
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x24]
xor edx, edx
sub esp, 0xc
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
xor ecx, ecx
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
xor eax, eax
sub esp, 0xc
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 4
xor eax, eax
jmp 0x69077cb7
mov eax, 2
jmp 0x69077cb7
Function at 0x69078220
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0xc], ebx
mov ebx, dword [ecx]
mov dword [ebp - 8], esi
mov eax, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov esi, dword [ecx + 8]
mov dword [ebp - 4], edi
test ebx, ebx
mov dword [ebp - 0x1c], eax
je 0x69078360
test esi, esi
je 0x69078360
test byte [0x6907a158], 8
jne 0x69078320
mov eax, dword [ebp - 0x1c]
mov edx, 8
mov dword [esp + 4], edx
mov ecx, dword fs:[0x18]
mov dword [ebp - 0x24], ecx
shl eax, 3
mov dword [esp + 8], eax
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x69078395
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0x20]
mov dword [ebx + 0x28], edi
sub esp, 0xc
cmp ecx, 8
jae 0x690782f0
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x2c], eax
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 0xc
test edi, 1
jne 0x69078370
test edi, 2
jne 0x69078380
test edi, 4
je 0x690782cd
mov eax, dword [esi]
add edi, 4
add esi, 4
sub ecx, 4
mov dword [edi - 4], eax
jmp 0x690782cd
mov dword [esp + 0x14], eax
mov ecx, str._p___d___p_n
mov edi, str.GdipSetStringFormatMeasurableCharacterRanges
mov dword [esp + 0x18], esi
mov eax, 0x6907a158
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_13
jmp 0x69078264
mov eax, 2
jmp 0x690782d7
movzx eax, byte [esi]
inc edi
inc esi
dec ecx
mov byte [edi - 1], al
jmp 0x690782f8
movzx eax, word [esi]
add edi, 2
add esi, 2
sub ecx, 2
mov word [edi - 2], ax
jmp 0x69078304
mov eax, 3
jmp 0x690782d7
Function at 0x69078b60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
test eax, eax
je 0x69078bd0
cmp byte [esi + eax - 1], 0xa
mov ebx, eax
je 0x69078bc8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x690881a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x69078b8d
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x690792a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov ebx, dword [ebp + 0xc]
mov dword [esp], ebx
call sym.___wine_dbg_get_channel_flags
movzx ecx, byte [ebp + 8]
movzx eax, al
sar eax, cl
test al, 1
je 0x69079478
mov edx, dword [0x690881a4]
mov eax, dword fs:[0x18]
cmp dword [eax + 0x24], edx
je 0x69079468
test byte [0x6907a194], 8
jne 0x69079410
lea edi, [esp + 0x28]
mov esi, edi
test byte [0x6907a1a4], 8
jne 0x690793d0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov ecx, str._04x:
mov dword [esp + 4], ecx
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x6907932b
cmp dword [ebp + 8], 3
jbe 0x69079390
mov dword [esp], 2
mov ebx, edi
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov esi, dword [ebx]
add ebx, 4
lea ecx, [esi - 0x1010101]
not esi
and ecx, esi
and ecx, 0x80808080
je 0x6907933a
mov dword [esp + 0xc], eax
mov esi, ecx
mov eax, 1
mov dword [esp + 4], eax
shr esi, 0x10
test ecx, 0x8080
mov dword [esp], edi
cmove ecx, esi
lea esi, [ebx + 2]
mov dl, cl
cmove ebx, esi
add dl, cl
sbb ebx, 3
sub ebx, edi
mov dword [esp + 8], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 0x10]
add eax, esi
inc ebx
mov dword [esp + 0x10], ebx
mov dword [esp], eax
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 8]
mov ecx, dword [edx*4 + str.2__bi8__bi___biA__biGCC:__GNU__9.3_win32_20200320]
mov edx, str._s:_s:_s
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov ecx, edi
sub ecx, eax
add ecx, 0xc8
mov dword [esp + 4], ecx
call sym._snprintf.constprop.0
jmp 0x6907932b
mov dword [esp], 0x6907a1a4
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x69079300
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov ecx, str._04x:
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sym._sprintf
add esi, eax
jmp 0x69079300
mov dword [esp], 0x6907a194
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x690792ed
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
mov esi, str._3u._03u:
mov dword [esp + 4], esi
lea edi, [esp + 0x28]
mov dword [esp], edi
mov ecx, eax
mul edx
shr edx, 6
mov dword [esp + 8], edx
imul eax, edx, 0x3e8
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea esi, [edi + eax]
jmp 0x690792f3
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xffffffff
jmp 0x69079388
Function at 0x405d90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0
push ecx
push 0x405dd0
push 0
push 0
mov dword [ebp - 4], 0
call fcn.005126c6
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 4

Function at 0x405df0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [0x58bd20]
xor eax, esp
mov dword [esp + 0x2c], eax
mov dword [esp + 4], 0
mov ecx, 8
lea eax, [esp + 8]
mov byte [eax], 0
inc eax
dec ecx
jne 0x405e15
mov ecx, 0xc
lea eax, [esp + 0x20]
mov byte [eax], 0
inc eax
dec ecx
jne 0x405e25
mov ecx, 0x10
lea eax, [esp + 0x10]
mov byte [eax], 0
inc eax
dec ecx
jne 0x405e35
lea eax, [esp + 4]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x405e65
xor al, al
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0051202b
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
push ecx
push 0x567020
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push 0
push 0
mov edx, 2
push 0
mov dword [esp + 0x28], edx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
push 0
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [esp + 0x2c]
test eax, eax
setne al
xor ecx, esp
call fcn.0051202b
mov esp, ebp
pop ebp
ret

Function at 0x406400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40641b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406452
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40644e
jmp 0x406440
cmp esi, eax
jae 0x406452
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406440
cmp esi, eax
jb 0x406459
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408950
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5806f8
push 0x514ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x58bd20]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x22c], 1
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0x230]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x408a1c
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x228]
push eax
push 5
mov ecx, dword [ebp - 0x230]
push ecx
push esi
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x408a1c
mov edx, dword [ebp - 0x228]
push edx
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x224]
push ecx
push 1
lea edx, [ebp - 0x220]
push edx
push esi
call dword [sym.imp.NETAPI32.dll_NetUserGetInfo]
test eax, eax
jne 0x408a1c
mov eax, dword [ebp - 0x224]
cmp dword [eax + 0xc], 2
je 0x408a1c
mov dword [ebp - 0x22c], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.00408a4f
cmp dword [ebp - 0x22c], esi
setne al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0051202b
mov esp, ebp
pop ebp
ret

Function at 0x40c460
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [esi + 4]
cmp dword [eax + 4], 0
je 0x40c4e5
mov eax, dword [eax + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40c47b
xor eax, eax
jmp 0x40c483
push str.Initialize
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x40c498
push str.Finalize
push eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x40c4ad
push str.PrepareRun
push eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x40c4c2
push 0x567ebc
push eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
test eax, eax
jne 0x40c4d6
mov dword [esi + 0x18], eax
mov al, 1
pop edi
ret
push 0x567ec0
push eax
call edi
mov dword [esi + 0x18], eax
mov al, 1
pop edi
ret
xor al, al
ret
Function at 0x40cbd0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov edi, eax
push 1
lea eax, [ebp - 0x20]
push eax
mov byte [esi], 0
mov dword [esi + 4], 0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
cmp dword [edi + 0x14], 8
lea edx, [ebp - 0x20]
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], edx
mov dword [ebp - 4], 0
jb 0x40cc1b
mov edi, dword [edi]
push edi
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
pop edi
mov eax, esi
jne 0x40cc49
mov dword [esi + 4], 0
mov byte [esi], 0
mov esp, ebp
pop ebp
ret
cmp dword [esi + 4], 0
setne cl
mov byte [esi], cl
mov esp, ebp
pop ebp
ret

Function at 0x40cc60
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5379b8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x58bd20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, 8
cmp dword [ebp + 0x1c], esi
jae 0x40cc93
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ccb0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], esi
jb 0x40ccde
mov eax, dword [ebp + 8]
push eax
jmp 0x40ccd6
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], esi
jae 0x40ccbb
lea eax, [ebp + 8]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], esi
jb 0x40ccde
mov ecx, dword [ebp + 8]
push ecx
call fcn.00413334
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ccf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5389c2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x58bd20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 0x21c], ebx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
push ebx
mov eax, 0x566618
mov dword [ebp - 0x220], esi
call fcn.00401a90
mov dword [ebp - 4], ebx
mov dword [ebp - 0x21c], 1
mov ecx, 0x208
lea eax, [ebp - 0x218]
mov byte [eax], bl
inc eax
dec ecx
jne 0x40cd62
push ebx
push 0x23
lea ecx, [ebp - 0x218]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40cdbd
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40cd86
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
call fcn.00401a90
push 0x2b
mov eax, str.Canon_Inc_ICUniversalInstallerServiceLog
mov ecx, esi
call fcn.004038a0
push 1
mov eax, 0x566804
mov ecx, esi
call fcn.004038a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051202b
mov esp, ebp
pop ebp
ret