joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463fb0
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 0x463fdd
xor eax, eax
jmp 0x46414e
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x463fd6
push ebx
call fcn.00484d27
pop ecx
cmp eax, 3
jbe 0x463fd6
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.00484550
xor eax, eax
push esi
push eax
mov word [ebp + 0x1d8], ax
lea eax, [ebp + 0x1da]
push eax
call fcn.00484550
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0x18
push ebx
lea eax, [ebp + 0x1d8]
push eax
call esi
push 0x4c52f4
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 0x464143
lea ecx, [ebp - 0x78]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x46413a
push edi
mov edi, 0x208
test byte [ebp - 0x78], 0x10
je 0x4640e7
cmp word [ebp - 0x4c], 0x2e
jne 0x4640ac
cmp word [ebp - 0x4a], 0
je 0x464124
cmp word [ebp - 0x4a], 0x2e
jne 0x4640ac
cmp word [ebp - 0x48], 0
je 0x464124
push edi
lea eax, [ebp + 0x3e0]
push 0
push eax
call fcn.00484550
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.00463fb0
and dword [ebp - 0x7c], eax
pop ecx
jmp 0x464124
push edi
lea eax, [ebp + 0x3e0]
push 0
push eax
call fcn.00484550
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 0x464124
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 0x464086
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.00484647
add ebp, 0x5ec
leave
ret

Function at 0x4685f5
Capabilities:
Accept command line arguments

Disassembly:
push 4
mov eax, 0x4bb2cf
call fcn.00485421
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.004684c5
mov eax, esi
call fcn.004854f9
ret
Function at 0x468657
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.00484550
mov esi, 0x11c
push esi
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.00484550
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 0x4686b8
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], 0x114
call esi
test eax, eax
je 0x4686ec
push str.GetNativeSystemInfo
push 0x4c33cc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4686ec
lea ecx, [ebp - 0x80]
push ecx
call eax
cmp word [ebp - 0x80], 9
je 0x4686e7
cmp word [ebp - 0x80], 6
jne 0x4686ec
xor eax, eax
inc eax
jmp 0x4686ee
xor eax, eax
mov ecx, dword [ebp + 0xc0]
xor ecx, ebp
pop esi
call fcn.00484647
add ebp, 0xc4
leave
ret

Function at 0x468788
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.00484550
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 0x4687de
xor eax, eax
inc eax
cmp dword [ebp - 0x78], eax
jne 0x4687de
cmp word [ebp + 0x94], ax
je 0x4687e0
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.00484647
add ebp, 0xa0
leave
ret

Function at 0x4687f5
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 0x468894
push edi
push 0x208
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x62]
push ebx
push eax
call fcn.00484550
push ebx
push ebx
push ebx
lea eax, [ebp - 0x64]
push eax
push esi
call fcn.0048edc6
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 0x468892
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 0x468894
xor eax, eax
mov ecx, dword [ebp + 0x1a8]
pop esi
xor ecx, ebp
pop ebx
call fcn.00484647
add ebp, 0x1ac
leave
ret
Function at 0x46895e
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 0x46897d
test byte [ebp - 4], 7
je 0x46897d
xor eax, eax
inc eax
leave
ret
call fcn.004688eb
leave
ret

Function at 0x468d7e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.00484d50
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 0x468e61
test edi, edi
je 0x468e61
cmp dword [ebp + 0x10], 0x80
jl 0x468e61
and dword [ebp - 0x200c], 0
push 0x2000
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.00484550
add esp, 0xc
lea eax, [ebp - 0x200c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x468e61
cmp eax, 0x1fff
ja 0x468e61
lea ecx, [ebp - 0x2004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x468e61
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x2008]
push eax
push 0x4ce544
lea eax, [ebp - 0x2004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x468e61
push dword [ebp + 0x10]
push 0
push edi
call fcn.00484550
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 0x4c5f10
push dword [ebp + 0x10]
push edi
call fcn.00446dcf
xor eax, eax
add esp, 0x28
inc eax
jmp 0x468e63
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00484647
leave
ret

Function at 0x469195
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, 0x4bb30d
call fcn.00485421
push 0x800
xor ebx, ebx
lea eax, [ebp]
push ebx
push eax
call fcn.00484550
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 0x469251
push 0x4ecda4
lea ecx, [ebp - 0x10]
call fcn.0040ba90
movzx eax, word [esi]
push eax
lea eax, [ebp - 0x10]
push 0x4c5618
push eax
mov dword [ebp - 4], ebx
call fcn.0041cc03
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.004687f5
mov eax, dword [ebp - 0x14]
add esp, 0x14
cmp eax, dword [ebp + 0x810]
jg 0x469276
jl 0x469235
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x80c]
ja 0x469276
push esi
call fcn.00484d27
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 0x4691eb
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.00484647
add ebp, 0x804
leave
ret
movzx esi, word [esi]
lea ecx, [edi - 0x10]
call fcn.0040dd20
mov ax, si
jmp 0x469253
Function at 0x4694cc
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, 0x4bb37a
call fcn.00485421
mov ebx, dword [ebp + 0x920]
xor esi, esi
mov dword [ebp - 0x10], ebx
cmp ebx, esi
je 0x469699
push ebx
call fcn.00484d27
pop ecx
test eax, eax
je 0x469699
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.00484550
push ebx
push 0x4c5480
lea esi, [edi + 2]
lea eax, [ebp + 0x5f4]
push esi
push eax
call fcn.00446dcf
add esp, 0x1c
lea eax, [ebp + 0x5f4]
push eax
lea ecx, [ebp]
call fcn.0045d71e
test eax, eax
je 0x46967d
mov ebx, 0x4bf1c8
lea ecx, [ebp]
call fcn.0045cf63
lea ecx, [ebp]
mov dword [ebp - 0x18], eax
call fcn.0045d6e1
test eax, eax
jne 0x469670
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp]
call fcn.0045ee1e
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.0045cf3f
push edi
push 0
test eax, eax
je 0x46961f
xor eax, eax
mov word [ebp + 0x784], ax
lea eax, [ebp + 0x786]
push eax
call fcn.00484550
lea eax, [ebp + 0x464]
push eax
push dword [ebp - 0x10]
lea eax, [ebp + 0x784]
push ebx
push esi
push eax
call fcn.00446dcf
lea eax, [ebp + 0x784]
push eax
call fcn.004694cc
add esp, 0x24
jmp 0x469670
xor eax, eax
mov word [ebp + 0x784], ax
lea eax, [ebp + 0x786]
push eax
call fcn.00484550
lea eax, [ebp + 0x464]
push eax
push dword [ebp - 0x10]
lea eax, [ebp + 0x784]
push ebx
push esi
push eax
call fcn.00446dcf
add esp, 0x20
lea eax, [ebp + 0x784]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x469670
push 4
push eax
lea eax, [ebp + 0x784]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 0x18], 0
jne 0x46957c
mov ebx, dword [ebp - 0x10]
lea ecx, [ebp]
call fcn.0045cf8a
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp]
call fcn.0045cf8a
xor eax, eax
inc eax
jmp 0x46969b
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.00484647
add ebp, 0x918
leave
ret
Function at 0x4697fc
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.00484550
xor eax, eax
push esi
mov word [ebp + 0x18c], ax
lea eax, [ebp + 0x18e]
push edi
push eax
call fcn.00484550
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.00484647
add ebp, 0x398
leave
ret

Function at 0x469c53
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.00468788
test eax, eax
je 0x469cfd
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 0x469cfd
xor eax, eax
push 0xfe
mov word [ebp - 0x104], ax
lea eax, [ebp - 0x102]
push esi
push eax
call fcn.00484550
push 0x80
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x518]
push eax
call fcn.00468d7e
add esp, 0x18
test eax, eax
je 0x469cfd
lea eax, [ebp - 0x104]
push str.6.1.7601.24382
push eax
call fcn.004697b5
pop ecx
pop ecx
test eax, eax
jge 0x469cfd
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00484647
leave
ret
Function at 0x46a2d7
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 0x46a2fc
xor eax, eax
jmp 0x46a3a5
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, edi
je 0x46a34f
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 0x46a34f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, edi
jne 0x46a336
push edi
jmp 0x46a349
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, edi
jne 0x46a353
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x46a3a4
push ebx
push dword [ebp + 0xc]
push eax
call fcn.0048a600
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.0042846c
push eax
push edi
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x46a38e
push edi
push dword [ebp + 0x10]
call fcn.00428356
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 0x46a3a2
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 0x46a6f2
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1104
call fcn.00484d50
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.00484550
push esi
lea eax, [ebp - 0x904]
push edi
push eax
call fcn.00484550
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.00484550
add esp, 0xc
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.004412a8
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.00484d7b
pop ecx
pop ecx
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46a7c5
inc edi
cmp edi, 0xa
jl 0x46a75c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00484647
leave
ret
lea eax, [ebp - 0x904]
push eax
mov ecx, ebx
call fcn.0040c8e0
xor eax, eax
inc eax
jmp 0x46a7b6
Function at 0x46a7d8
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 0x46a7fe
xor al, al
jmp 0x46a945
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 0x46a856
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 0x46a856
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x46a83d
push eax
jmp 0x46a850
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x46a85d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
jmp 0x46a944
push ebx
push dword [ebp + 0xc]
push eax
call fcn.0048a600
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.0046a6f2
pop ecx
test eax, eax
je 0x46a8c3
mov eax, dword [esi]
push 0x4c6090
push eax
call fcn.0048ad5e
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x46a8c3
push ebx
push dword [ebp + 8]
push 1
push dword [ebp + 0xc]
call fcn.0048f4b2
add esp, 0x10
cmp eax, dword [ebp + 8]
jne 0x46a8c3
push ebx
call fcn.0048f1d6
push ebx
call fcn.0048ac1c
pop ecx
pop ecx
mov dword [ebp - 4], 1
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x46a8db
mov esi, dword [esi]
push ebx
push esi
call fcn.00428338
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x46a911
and dword [ebp + 0xc], 0
lea ecx, [ebp + 0xc]
call fcn.0042846c
push eax
push 0
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x46a904
push eax
push dword [ebp + 0xc]
call fcn.00428356
pop ecx
pop ecx
mov ebx, eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x46a911
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 0x46a93d
mov ecx, ebx
mov dword [edi + 0xd], 1
call fcn.00430133
mov ecx, dword [edi + 0x11]
mov dword [edi + 5], eax
call fcn.00430157
mov dword [edi + 9], eax
mov ecx, edi
call fcn.0046a1d0
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x46bd58
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x4c60a0
push 1
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 4], eax
test eax, eax
je 0x46bdc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x46bda2
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 0x46bdc3
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.0046bc34
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
leave
ret 0xc

Function at 0x46c822
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 0x46c80b
push eax
push eax
mov dword [ebp - 4], eax
call fcn.0048ea8c
add esp, 0x18
mov dword [esi + 0x1c], eax
pop esi
leave
ret

Function at 0x46cea2
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 0x46ce8b
push eax
push eax
mov dword [ebp - 4], eax
mov dword [esi + 0x4c], eax
call fcn.0048ea8c
mov dword [esi + 0x20], eax
add esp, 0x18
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x46d3e1
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 0x46d410
xor eax, eax
jmp 0x46d468
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x46d434
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x46d40c
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x228]
je 0x46d452
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x46d434
jmp 0x46d45a
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.00484647
leave
ret 8

Function at 0x46d670
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.00484550
push dword [esi]
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0048eb3c
push 0x4c52f4
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0048eeca
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 0x46d6fc
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00484647
leave
ret 4
cmp word [ebp - 0x430], 0x2e
jne 0x46d71b
lea eax, [ebp - 0x45c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46d6fc
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
jmp 0x46d6ec