joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44cf50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x673f64]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [eax + 4]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov edx, dword [edi + 4]
cmp ebx, dword [esi + 0x4c]
jl 0x44cfe2
jg 0x44cf7d
cmp edx, dword [esi + 0x48]
jbe 0x44cfe2
sub edx, dword [esi + 0x48]
mov eax, dword [esi + 0x74]
sbb ebx, dword [esi + 0x4c]
push ebx
push edx
mov ecx, dword [eax]
push str.Data_large_than_expected__lld
push str.HttpToFileTask::OnData
push eax
call dword [ecx + 8]
add esp, 0x14
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0x18]
mov eax, ecx
or eax, 0x80000000
mov dword [edi + 0x18], eax
test ecx, ecx
js 0x44cfc8
mov dword [esi + 0x70], 0x80072efb
jne 0x44cfc8
mov eax, dword [esi + 0x54]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058a7e9
mov esp, ebp
pop ebp
ret 8
push 0
lea eax, [ebp - 8]
push eax
push edx
push dword [edi]
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44d000
mov edx, dword [ebp - 8]
cmp edx, dword [edi + 4]
je 0x44d05f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x74]
mov edi, eax
push edi
push str.WriteFile_failed__u.
push str.HttpToFileTask::OnData
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
add esp, 0x10
test edi, edi
jle 0x44d02c
movzx edi, di
or edi, 0x80070000
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx + 0x18]
mov eax, ecx
or eax, 0x80000000
mov dword [ebx + 0x18], eax
test ecx, ecx
js 0x44d055
mov dword [esi + 0x70], edi
jne 0x44d055
mov eax, dword [esi + 0x54]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 8]
mov ecx, dword [esi + 0x44]
sub esp, 0x10
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 0x50]
mov dword [ebp - 0x18], eax
mov eax, esp
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], 0
movups xmm0, xmmword [ebp - 0x18]
mov edx, dword [ecx]
push ecx
movups xmmword [eax], xmm0
call dword [edx + 0xc]
mov eax, dword [ebp - 8]
add dword [esi + 0x40], eax
mov ecx, dword [ebp - 4]
adc dword [esi + 0x44], 0
sub dword [esi + 0x48], eax
pop edi
sbb dword [esi + 0x4c], 0
xor ecx, ebp
pop esi
pop ebx
call fcn.0058a7e9
mov esp, ebp
pop ebp
ret 8
Function at 0x44daa0
Capabilities:
Query remote server for available data

Disassembly:
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
push esi
push edi
mov esi, ecx
push 0
push 0
lea edi, [esi + 0x70]
push edi
push dword [esi + 0x6c]
call ebx
test eax, eax
je 0x44dad9
nop dword [eax]
mov ecx, esi
call fcn.0044ddb0
test al, al
je 0x44db40
push 0
push 0
push edi
push dword [esi + 0x6c]
call ebx
test eax, eax
jne 0x44dac0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
je 0x44db40
mov ecx, dword [esi + 0x80]
push edi
push str.InternetQueryDataAvailable_failed:__u.
push str.HttpTask::QueryAvailable
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
add esp, 0x10
test edi, edi
jle 0x44db10
movzx edi, di
or edi, 0x80070000
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx + 0x18]
mov eax, ecx
or eax, 0x80000000
mov dword [ebx + 0x18], eax
test ecx, ecx
js 0x44db39
mov dword [esi + 0x74], edi
jne 0x44db39
push dword [esi + 0x6c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret
Function at 0x452b80
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]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x452ba9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x452bbf
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x452bb6
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x452bf2
nop
cmp esi, ecx
jae 0x452bb6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x452be0
cmp esi, ecx
jae 0x452bb6
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x453690
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.00456469
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x453791
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 0x453791
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x453791
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x453791
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x453718
cmp esi, ecx
jae 0x453791
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x453702
cmp esi, ecx
jae 0x453791
movzx eax, word [esi]
test ax, ax
je 0x453791
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 0x45374b
push edi
mov ecx, ebx
call fcn.00453b00
mov edx, dword [ebx]
movzx eax, word [esi]
jmp 0x45374e
mov eax, dword [ebp + 8]
movzx ecx, ax
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.005c080d
add esp, 0x10
cmp eax, 0x50
ja case.0x45376c.1
movzx eax, byte [eax + 0x4537c0]
jmp dword [eax*4 + 0x4537b0]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x4537a1
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.00454dc7
push 0x80070057
call fcn.00452b30
call fcn.00454dad
jae 0x4537e9
inc ebp
add byte [edi + esi + 0x37ab0045], bl
inc ebp
add byte [ebx + 0x4537], ch
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 0x4538d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
xor cl, cl
test eax, eax
je 0x4539da
test eax, 0xffff0000
jne 0x4539da
push esi
push edi
movzx edi, ax
push edi
call fcn.00456469
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x4539d6
mov eax, edi
shr eax, 4
push 6
inc eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x4539d6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4539d6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4539d6
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x453969
cmp esi, ecx
jae 0x4539d6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x453957
cmp esi, ecx
jae 0x4539d6
movzx eax, word [esi]
test ax, ax
je 0x4539d6
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 0x45399c
push edi
mov ecx, ebx
call fcn.00453b00
mov edx, dword [ebx]
movzx eax, word [esi]
jmp 0x45399f
mov eax, dword [ebp + 8]
movzx ecx, ax
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.005c080d
add esp, 0x10
cmp eax, 0x50
ja case.0x4539bd.1
movzx eax, byte [eax + 0x453a08]
jmp dword [eax*4 + 0x4539f8]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x4539ed
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
pop edi
mov cl, 1
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00454dad
call fcn.00454dc7
push 0x80070057
call fcn.00452b30
nop
les edi, [ecx]
inc ebp
add al, ch
cmp dword [ebp], eax
jecxz 0x453a3b
inc ebp
add bl, ah
cmp dword [ebp], eax
add byte [ebx], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add dword [ebx], eax
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [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 [ebx]
add ah, cl
int3
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 0x454230
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.004688eb

Function at 0x45c7f8
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 0x45c837
call fcn.00455f9c
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45c837
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45c83f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.00466ed3
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x45d23b
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 0x45d2c7
cmp dword [esi + 0x20], 0
je 0x45d2c7
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45d2c7
cmp dword [ebp + 8], 0
je 0x45d2c7
xor edi, edi
mov ebx, edi
call fcn.00455f9c
push 0x605af8
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 0x45d2ab
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 0x45d2c7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.00467c93
mov edi, eax
add esp, 0xc
test edi, edi
je 0x45d2c3
mov ecx, esi
call fcn.0045cfd9
mov eax, edi
jmp 0x45d2c9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x461d4a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5f1d6d
call fcn.0058aef3
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x461d70
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x461dca
lea ecx, [ebp - 0x10]
call fcn.00453890
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 [0x603454]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.005c0358
push eax
call fcn.00452a50
add esp, 0x14
test esi, esi
je 0x461dbd
push esi
call fcn.005c0535
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00452c20
mov eax, ebx
call fcn.0058aec1
ret 8
Function at 0x46403d
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.00461949
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 0x464079
call fcn.0046425a
mov dword [esi + 0xc], 1
jmp 0x46407e
call fcn.0046425a
cmp dword [esi], 0
je 0x4640c9
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 0x4640a4
push edi
call fcn.004564db
lea ecx, [edi + 1]
push ecx
jmp 0x4640b3
push 0xff
call fcn.00453a90
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004564fe
pop edi
jmp 0x4640ed
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 0x4640ed
push dword [esi]
push dword [ebp - 4]
call fcn.00463823
pop esi
leave
ret 0xc

Function at 0x4641b1
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.0046425a
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4641f9
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004564db
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004564fe
jmp 0x464204
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00463823
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4688eb
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 0x468916
cmp dword [edi + 0x80], 0
jne 0x468916
movzx eax, bx
mov dword [edi + 0x80], eax
call fcn.00455f9c
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.00468b89
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x468943
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.00455f9c
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 0x468976
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.00468989
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x46ab04
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 0x46ab5a
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x46ab33
call fcn.004650fe
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x46ab48
call fcn.004650fe
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x46ab5a
call fcn.004650fe
call fcn.00455f9c
cmp dword [eax + 0x3c], 0
je 0x46ab6f
push edi
mov ecx, ebx
call fcn.0046a227
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0046ad55
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x46ab98
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x46aba4
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 0x48a364
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 0x48a37d
call fcn.00455f9c
mov esi, dword [eax + 0xc]
push 0x60c894
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x48a3bf
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x48a3bf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x48a3bf
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0048a3c8
jmp 0x48a3c1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x527537
Capabilities:
Get file system object information

Disassembly:
push 0x4cc
mov eax, 0x5fb1f7
call fcn.0058af26
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00454ca0
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x642460
call fcn.00467230
cmp eax, 0xffffffff
jne 0x527612
push 0
push 0x6484d4
lea ecx, [ebp - 0x4d0]
call fcn.00467230
cmp eax, 0xffffffff
jne 0x527612
push 0
push 0x643f4c
lea ecx, [ebp - 0x4d0]
call fcn.00467230
cmp eax, 0xffffffff
jne 0x527612
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00454ca0
add eax, 0x10
pop ecx
mov dword [ebp - 0x4d8], eax
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea ecx, [ebp - 0x218]
push ecx
push 0x104
push edx
push eax
lea edi, [eax - 0x10]
push edx
mov dword [ebp - 0x4d4], edi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x5275e1
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x603454]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x4d4]
mov edi, eax
call fcn.00452c20
jmp 0x52764b
lea eax, [ebp - 0x218]
push eax
call fcn.005c0535
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00453c00
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00452c20
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 0x527638
mov edi, dword [ebp - 0x4cc]
jmp 0x52764b
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x603454]
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.00452c20
mov eax, edi
call fcn.0058aed5
ret

Function at 0x5414db
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.005c4511
pop ecx
test eax, eax
jne 0x54151d
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004317b0
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5414e3
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 0x58c020
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ff761
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x673f64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x219], 1
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x220], 0
push 0x62ef2c
lea ecx, [ebp - 0x238]
call fcn.005943b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.005947d0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x58c0f6
push 0x62ef48
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x58c0e9
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0x8023
push 0
call dword [ebp - 0x220]
test eax, eax
jl 0x58c0e9
mov dword [ebp - 0x228], 1
mov byte [ebp - 0x219], 0
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, byte [ebp - 0x219]
test eax, eax
je 0x58c152
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.005ae810
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Common_Application_Data
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov dword [ebp - 0x228], 1
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.00594300
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058a7e9
mov esp, ebp
pop ebp
ret 4

Function at 0x58c990
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x58ca0d
mov eax, dword [ebp + 0x14]
push eax
call fcn.005c0535
add esp, 4
shl eax, 1
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x58ca03
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0x10