joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463e57
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x5ec]
sub esp, 0x66c
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp + 0x5e8], eax
push ebx
mov ebx, dword [ebp + 0x5f4]
test ebx, ebx
jne 0x463e84
xor eax, eax
jmp 0x463ff5
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x463e7d
push ebx
call fcn.00484927
pop ecx
cmp eax, 3
jbe 0x463e7d
push esi
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp + 0x3e0], ax
lea eax, [ebp + 0x3e2]
push eax
mov dword [ebp - 0x7c], 1
call fcn.00484150
xor eax, eax
push esi
push eax
mov word [ebp + 0x1d8], ax
lea eax, [ebp + 0x1da]
push eax
call fcn.00484150
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0x18
push ebx
lea eax, [ebp + 0x1d8]
push eax
call esi
push 0x4c528c
lea eax, [ebp + 0x1d8]
push eax
call esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x1d8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x80], eax
cmp eax, 0xffffffff
je 0x463fea
lea ecx, [ebp - 0x78]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x463fe1
push edi
mov edi, 0x208
test byte [ebp - 0x78], 0x10
je 0x463f8e
cmp word [ebp - 0x4c], 0x2e
jne 0x463f53
cmp word [ebp - 0x4a], 0
je 0x463fcb
cmp word [ebp - 0x4a], 0x2e
jne 0x463f53
cmp word [ebp - 0x48], 0
je 0x463fcb
push edi
lea eax, [ebp + 0x3e0]
push 0
push eax
call fcn.00484150
add esp, 0xc
push ebx
lea eax, [ebp + 0x3e0]
push eax
call esi
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x3e0]
push eax
call esi
lea eax, [ebp + 0x3e0]
push eax
call fcn.00463e57
and dword [ebp - 0x7c], eax
pop ecx
jmp 0x463fcb
push edi
lea eax, [ebp + 0x3e0]
push 0
push eax
call fcn.00484150
add esp, 0xc
push ebx
lea eax, [ebp + 0x3e0]
push eax
call esi
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x3e0]
push eax
call esi
lea eax, [ebp + 0x3e0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x463fcb
and dword [ebp - 0x7c], eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x463f2d
pop edi
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
and eax, dword [ebp - 0x7c]
pop esi
mov ecx, dword [ebp + 0x5e8]
xor ecx, ebp
pop ebx
call fcn.00484247
add ebp, 0x5ec
leave
ret

Function at 0x46849a
Capabilities:
Accept command line arguments

Disassembly:
push 4
mov eax, 0x4bae8c
call fcn.0048501f
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, 0x4ecda4
lea ecx, [esi + 4]
push edi
mov dword [esi], vtable.CCommandParser.0
call fcn.0040ba90
and dword [ebp - 4], 0
lea ecx, [esi + 8]
push edi
call fcn.0040ba90
lea ebx, [esi + 0xc]
push edi
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.0040ba90
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov ecx, ebx
call fcn.0040c8e0
mov ecx, esi
call fcn.0046836a
mov eax, esi
call fcn.004850f7
ret
Function at 0x4684fc
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xc4]
sub esp, 0x144
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp + 0xc0], eax
push esi
push 0x24
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00484150
mov esi, 0x11c
push esi
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.00484150
add esp, 0x18
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x46855d
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], 0x114
call esi
test eax, eax
je 0x468591
push str.GetNativeSystemInfo
push 0x4c3364
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x468591
lea ecx, [ebp - 0x80]
push ecx
call eax
cmp word [ebp - 0x80], 9
je 0x46858c
cmp word [ebp - 0x80], 6
jne 0x468591
xor eax, eax
inc eax
jmp 0x468593
xor eax, eax
mov ecx, dword [ebp + 0xc0]
xor ecx, ebp
pop esi
call fcn.00484247
add ebp, 0xc4
leave
ret

Function at 0x46862d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00484150
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
jne 0x468683
xor eax, eax
inc eax
cmp dword [ebp - 0x78], eax
jne 0x468683
cmp word [ebp + 0x94], ax
je 0x468685
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.00484247
add ebp, 0xa0
leave
ret

Function at 0x46869a
Capabilities:
Get disk size

Disassembly:
push ebp
lea ebp, [esp - 0x1ac]
sub esp, 0x22c
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp + 0x1a8], eax
mov eax, dword [ebp + 0x1b8]
push ebx
push esi
mov esi, dword [ebp + 0x1b4]
mov dword [ebp - 0x70], eax
xor ebx, ebx
xor eax, eax
cmp esi, ebx
je 0x468739
push edi
push 0x208
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x62]
push ebx
push eax
call fcn.00484150
push ebx
push ebx
push ebx
lea eax, [ebp - 0x64]
push eax
push esi
call fcn.0048e9c6
xor eax, eax
mov dword [ebp - 0x6c], ebx
lea edi, [ebp - 0x68]
stosd dword es:[edi], eax
mov dword [ebp - 0x80], ebx
lea edi, [ebp - 0x7c]
stosd dword es:[edi], eax
add esp, 0x20
mov dword [ebp - 0x78], ebx
lea edi, [ebp - 0x74]
stosd dword es:[edi], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
pop edi
test eax, eax
je 0x468737
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x68]
mov dword [eax + 4], ecx
xor eax, eax
inc eax
jmp 0x468739
xor eax, eax
mov ecx, dword [ebp + 0x1a8]
pop esi
xor ecx, ebp
pop ebx
call fcn.00484247
add ebp, 0x1ac
leave
ret
Function at 0x468803
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x468822
test byte [ebp - 4], 7
je 0x468822
xor eax, eax
inc eax
leave
ret
call fcn.00468790
leave
ret

Function at 0x468bfc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.00484950
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x468cdf
test edi, edi
je 0x468cdf
cmp dword [ebp + 0x10], 0x80
jl 0x468cdf
and dword [ebp - 0x200c], 0
push 0x2000
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.00484150
add esp, 0xc
lea eax, [ebp - 0x200c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x468cdf
cmp eax, 0x1fff
ja 0x468cdf
lea ecx, [ebp - 0x2004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x468cdf
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x2008]
push eax
push 0x4ce4dc
lea eax, [ebp - 0x2004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x468cdf
push dword [ebp + 0x10]
push 0
push edi
call fcn.00484150
mov eax, dword [ebp - 0x2008]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push 0x4c5ea8
push dword [ebp + 0x10]
push edi
call fcn.00446d7d
xor eax, eax
add esp, 0x28
inc eax
jmp 0x468ce1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00484247
leave
ret

Function at 0x469013
Capabilities:
Get disk information

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0xc
mov eax, 0x4baeca
call fcn.0048501f
push 0x800
xor ebx, ebx
lea eax, [ebp]
push ebx
push eax
call fcn.00484150
add esp, 0xc
lea eax, [ebp]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea esi, [ebp]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
cmp word [ebp], bx
je 0x4690cf
push 0x4ecda4
lea ecx, [ebp - 0x10]
call fcn.0040ba90
movzx eax, word [esi]
push eax
lea eax, [ebp - 0x10]
push 0x4c55b0
push eax
mov dword [ebp - 4], ebx
call fcn.0041cbb1
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.0046869a
mov eax, dword [ebp - 0x14]
add esp, 0x14
cmp eax, dword [ebp + 0x810]
jg 0x4690f4
jl 0x4690b3
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x80c]
ja 0x4690f4
push esi
call fcn.00484927
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [edi - 0x10]
lea esi, [esi + eax*2 + 2]
call fcn.0040dd20
cmp word [esi], bx
jne 0x469069
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 + 0x800]
xor ecx, ebp
call fcn.00484247
add ebp, 0x804
leave
ret
movzx esi, word [esi]
lea ecx, [edi - 0x10]
call fcn.0040dd20
mov ax, si
jmp 0x4690d1
Function at 0x46933e
Capabilities:
Delete directory
Delete file
Move file

Disassembly:
push ebp
sub esp, 0x914
lea ebp, [esp - 4]
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp + 0x914], eax
push 0xc
mov eax, 0x4baf37
call fcn.0048501f
mov ebx, dword [ebp + 0x920]
xor esi, esi
mov dword [ebp - 0x10], ebx
cmp ebx, esi
je 0x46950b
push ebx
call fcn.00484927
pop ecx
test eax, eax
je 0x46950b
push 0x5c
pop eax
mov word [ebp + 0x458], ax
mov dword [ebp + 0x45c], esi
mov dword [ebp + 0x460], esi
xor eax, eax
mov edi, 0x18e
push edi
mov word [ebp + 0x5f4], ax
lea eax, [ebp + 0x5f6]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.00484150
push ebx
push 0x4c5418
lea esi, [edi + 2]
lea eax, [ebp + 0x5f4]
push esi
push eax
call fcn.00446d7d
add esp, 0x1c
lea eax, [ebp + 0x5f4]
push eax
lea ecx, [ebp]
call fcn.0045d5c6
test eax, eax
je 0x4694ef
mov ebx, 0x4bf160
lea ecx, [ebp]
call fcn.0045ce0b
lea ecx, [ebp]
mov dword [ebp - 0x18], eax
call fcn.0045d589
test eax, eax
jne 0x4694e2
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp]
call fcn.0045ecc6
push 0xc8
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040cf00
push eax
push esi
lea eax, [ebp + 0x464]
push eax
call fcn.0040e610
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.0040dd20
push 0x10
lea ecx, [ebp]
call fcn.0045cde7
push edi
push 0
test eax, eax
je 0x469491
xor eax, eax
mov word [ebp + 0x784], ax
lea eax, [ebp + 0x786]
push eax
call fcn.00484150
lea eax, [ebp + 0x464]
push eax
push dword [ebp - 0x10]
lea eax, [ebp + 0x784]
push ebx
push esi
push eax
call fcn.00446d7d
lea eax, [ebp + 0x784]
push eax
call fcn.0046933e
add esp, 0x24
jmp 0x4694e2
xor eax, eax
mov word [ebp + 0x784], ax
lea eax, [ebp + 0x786]
push eax
call fcn.00484150
lea eax, [ebp + 0x464]
push eax
push dword [ebp - 0x10]
lea eax, [ebp + 0x784]
push ebx
push esi
push eax
call fcn.00446d7d
add esp, 0x20
lea eax, [ebp + 0x784]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4694e2
push 4
push eax
lea eax, [ebp + 0x784]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 0x18], 0
jne 0x4693ee
mov ebx, dword [ebp - 0x10]
lea ecx, [ebp]
call fcn.0045ce32
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp]
call fcn.0045ce32
xor eax, eax
inc eax
jmp 0x46950d
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 + 0x914]
xor ecx, ebp
call fcn.00484247
add ebp, 0x918
leave
ret
Function at 0x46966e
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp + 0x394], eax
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x7c], ax
xor edi, edi
lea eax, [ebp - 0x7a]
push edi
push eax
call fcn.00484150
xor eax, eax
push esi
mov word [ebp + 0x18c], ax
lea eax, [ebp + 0x18e]
push edi
push eax
call fcn.00484150
add esp, 0x18
push edi
push 0x20
lea eax, [ebp - 0x7c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x104
lea eax, [ebp + 0x18c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x18c]
push eax
lea ecx, [ebp - 0x80]
call fcn.0040b680
push edi
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x80]
call fcn.00418675
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
mov ecx, dword [ebp - 0x80]
add ecx, 0xfffffff0
call fcn.0040dd20
mov ecx, dword [ebp + 0x394]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00484247
add ebp, 0x398
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x518
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
call fcn.0046862d
test eax, eax
je 0x4698d3
push 0x208
lea eax, [ebp - 0x518]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.crypt32.dll
lea eax, [ebp - 0x518]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x518]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4698d3
xor eax, eax
push 0xfe
mov word [ebp - 0x104], ax
lea eax, [ebp - 0x102]
push esi
push eax
call fcn.00484150
push 0x80
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x518]
push eax
call fcn.00468bfc
add esp, 0x18
test eax, eax
je 0x4698d3
lea eax, [ebp - 0x104]
push str.6.1.7601.24382
push eax
call fcn.00469627
pop ecx
pop ecx
test eax, eax
jge 0x4698d3
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00484247
leave
ret
Function at 0x469ead
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
push esi
push edi
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x469ed2
xor eax, eax
jmp 0x469f7b
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, edi
je 0x469f25
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
cmp eax, edi
je 0x469f25
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, edi
jne 0x469f0c
push edi
jmp 0x469f1f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, edi
jne 0x469f29
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x469f7a
push ebx
push dword [ebp + 0xc]
push eax
call fcn.0048a200
add esp, 0xc
push esi
mov dword [ebp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebp + 0x10]
xor ebx, ebx
call fcn.00428417
push eax
push edi
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x469f64
push edi
push dword [ebp + 0x10]
call fcn.00428301
pop ecx
pop ecx
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x469f78
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1104
call fcn.00484950
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x800
push esi
xor edi, edi
lea eax, [ebp - 0x1104]
push edi
push eax
call fcn.00484150
push esi
lea eax, [ebp - 0x904]
push edi
push eax
call fcn.00484150
add esp, 0x18
lea eax, [ebp - 0x1104]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x100
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.00484150
add esp, 0xc
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.00441255
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x1104]
push eax
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x904]
push str..tmp
push eax
call fcn.0048497b
pop ecx
pop ecx
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46a39b
inc edi
cmp edi, 0xa
jl 0x46a332
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00484247
leave
ret
lea eax, [ebp - 0x904]
push eax
mov ecx, ebx
call fcn.0040c8e0
xor eax, eax
inc eax
jmp 0x46a38c
Function at 0x46a3ae
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, word [ebp + 8]
push esi
push edi
push dword [ebp + 0xc]
mov edi, ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x46a3d4
xor al, al
jmp 0x46a51b
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp + 8], ebx
test ebx, ebx
je 0x46a42c
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x46a42c
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x46a413
push eax
jmp 0x46a426
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x46a433
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
jmp 0x46a51a
push ebx
push dword [ebp + 0xc]
push eax
call fcn.0048a200
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
and dword [ebp - 4], 0
lea esi, [edi + 0x15]
push esi
call fcn.0046a2c8
pop ecx
test eax, eax
je 0x46a499
mov eax, dword [esi]
push 0x4c6028
push eax
call fcn.0048a95e
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x46a499
push ebx
push dword [ebp + 8]
push 1
push dword [ebp + 0xc]
call fcn.0048f0b2
add esp, 0x10
cmp eax, dword [ebp + 8]
jne 0x46a499
push ebx
call fcn.0048edd6
push ebx
call fcn.0048a81c
pop ecx
pop ecx
mov dword [ebp - 4], 1
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x46a4b1
mov esi, dword [esi]
push ebx
push esi
call fcn.004282e3
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x46a4e7
and dword [ebp + 0xc], 0
lea ecx, [ebp + 0xc]
call fcn.00428417
push eax
push 0
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x46a4da
push eax
push dword [ebp + 0xc]
call fcn.00428301
pop ecx
pop ecx
mov ebx, eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x46a4e7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [edi + 0x11], ebx
test ebx, ebx
je 0x46a513
mov ecx, ebx
mov dword [edi + 0xd], 1
call fcn.004300e0
mov ecx, dword [edi + 0x11]
mov dword [edi + 5], eax
call fcn.00430104
mov dword [edi + 9], eax
mov ecx, edi
call fcn.00469da6
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x46b92e
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x4c6038
push 1
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 4], eax
test eax, eax
je 0x46b997
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x46b978
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push str.Q360InstallerMainWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x46b999
push edi
lea edi, [esi + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 4]
call fcn.0046b80a
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
leave
ret 0xc

Function at 0x46c3f8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push 0x46c3e1
push eax
push eax
mov dword [ebp - 4], eax
call fcn.0048e68c
add esp, 0x18
mov dword [esi + 0x1c], eax
pop esi
leave
ret

Function at 0x46ca9f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push 0x46ca88
push eax
push eax
mov dword [ebp - 4], eax
mov dword [esi + 0x4c], eax
call fcn.0048e68c
mov dword [esi + 0x20], eax
add esp, 0x18
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x46cfde
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
and dword [esi], 0
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x46d00d
xor eax, eax
jmp 0x46d065
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x46d031
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x46d009
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x228]
je 0x46d04f
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x46d031
jmp 0x46d057
mov eax, dword [ebp - 0x218]
mov dword [esi], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [esi], eax
setne al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00484247
leave
ret 8

Function at 0x46d26d
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.00484150
push dword [esi]
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0048e73c
push 0x4c528c
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0048eaca
add esp, 0x24
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46d2f9
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00484247
leave
ret 4
cmp word [ebp - 0x430], 0x2e
jne 0x46d318
lea eax, [ebp - 0x45c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46d2f9
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
jmp 0x46d2e9