joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463dc7
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 0x463df4
xor eax, eax
jmp 0x463f65
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x463ded
push ebx
call fcn.004848a7
pop ecx
cmp eax, 3
jbe 0x463ded
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.004840d0
xor eax, eax
push esi
push eax
mov word [ebp + 0x1d8], ax
lea eax, [ebp + 0x1da]
push eax
call fcn.004840d0
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 0x463f5a
lea ecx, [ebp - 0x78]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x463f51
push edi
mov edi, 0x208
test byte [ebp - 0x78], 0x10
je 0x463efe
cmp word [ebp - 0x4c], 0x2e
jne 0x463ec3
cmp word [ebp - 0x4a], 0
je 0x463f3b
cmp word [ebp - 0x4a], 0x2e
jne 0x463ec3
cmp word [ebp - 0x48], 0
je 0x463f3b
push edi
lea eax, [ebp + 0x3e0]
push 0
push eax
call fcn.004840d0
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.00463dc7
and dword [ebp - 0x7c], eax
pop ecx
jmp 0x463f3b
push edi
lea eax, [ebp + 0x3e0]
push 0
push eax
call fcn.004840d0
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 0x463f3b
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 0x463e9d
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.004841c7
add ebp, 0x5ec
leave
ret

Function at 0x468409
Capabilities:
Accept command line arguments

Disassembly:
push 4
mov eax, 0x4bae0c
call fcn.00484f9f
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.004682d9
mov eax, esi
call fcn.00485077
ret
Function at 0x46846b
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.004840d0
mov esi, 0x11c
push esi
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.004840d0
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 0x4684cc
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], 0x114
call esi
test eax, eax
je 0x468500
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 0x468500
lea ecx, [ebp - 0x80]
push ecx
call eax
cmp word [ebp - 0x80], 9
je 0x4684fb
cmp word [ebp - 0x80], 6
jne 0x468500
xor eax, eax
inc eax
jmp 0x468502
xor eax, eax
mov ecx, dword [ebp + 0xc0]
xor ecx, ebp
pop esi
call fcn.004841c7
add ebp, 0xc4
leave
ret

Function at 0x46859c
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.004840d0
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 0x4685f2
xor eax, eax
inc eax
cmp dword [ebp - 0x78], eax
jne 0x4685f2
cmp word [ebp + 0x94], ax
je 0x4685f4
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.004841c7
add ebp, 0xa0
leave
ret

Function at 0x468609
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 0x4686a8
push edi
push 0x208
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x62]
push ebx
push eax
call fcn.004840d0
push ebx
push ebx
push ebx
lea eax, [ebp - 0x64]
push eax
push esi
call fcn.0048e946
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 0x4686a6
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 0x4686a8
xor eax, eax
mov ecx, dword [ebp + 0x1a8]
pop esi
xor ecx, ebp
pop ebx
call fcn.004841c7
add ebp, 0x1ac
leave
ret
Function at 0x468772
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 0x468791
test byte [ebp - 4], 7
je 0x468791
xor eax, eax
inc eax
leave
ret
call fcn.004686ff
leave
ret

Function at 0x468b6b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.004848d0
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 0x468c4e
test edi, edi
je 0x468c4e
cmp dword [ebp + 0x10], 0x80
jl 0x468c4e
and dword [ebp - 0x200c], 0
push 0x2000
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.004840d0
add esp, 0xc
lea eax, [ebp - 0x200c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x468c4e
cmp eax, 0x1fff
ja 0x468c4e
lea ecx, [ebp - 0x2004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x468c4e
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x2008]
push eax
push 0x4ce474
lea eax, [ebp - 0x2004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x468c4e
push dword [ebp + 0x10]
push 0
push edi
call fcn.004840d0
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 0x4c5e40
push dword [ebp + 0x10]
push edi
call fcn.00446d66
xor eax, eax
add esp, 0x28
inc eax
jmp 0x468c50
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004841c7
leave
ret

Function at 0x468f82
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, 0x4bae4a
call fcn.00484f9f
push 0x800
xor ebx, ebx
lea eax, [ebp]
push ebx
push eax
call fcn.004840d0
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 0x46903e
push 0x4ecda4
lea ecx, [ebp - 0x10]
call fcn.0040ba90
movzx eax, word [esi]
push eax
lea eax, [ebp - 0x10]
push 0x4c554c
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.00468609
mov eax, dword [ebp - 0x14]
add esp, 0x14
cmp eax, dword [ebp + 0x810]
jg 0x469063
jl 0x469022
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x80c]
ja 0x469063
push esi
call fcn.004848a7
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 0x468fd8
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.004841c7
add ebp, 0x804
leave
ret
movzx esi, word [esi]
lea ecx, [edi - 0x10]
call fcn.0040dd20
mov ax, si
jmp 0x469040
Function at 0x4692ad
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, 0x4baeb7
call fcn.00484f9f
mov ebx, dword [ebp + 0x920]
xor esi, esi
mov dword [ebp - 0x10], ebx
cmp ebx, esi
je 0x46947a
push ebx
call fcn.004848a7
pop ecx
test eax, eax
je 0x46947a
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.004840d0
push ebx
push 0x4c5418
lea esi, [edi + 2]
lea eax, [ebp + 0x5f4]
push esi
push eax
call fcn.00446d66
add esp, 0x1c
lea eax, [ebp + 0x5f4]
push eax
lea ecx, [ebp]
call fcn.0045d5ae
test eax, eax
je 0x46945e
mov ebx, 0x4bf160
lea ecx, [ebp]
call fcn.0045cdf3
lea ecx, [ebp]
mov dword [ebp - 0x18], eax
call fcn.0045d571
test eax, eax
jne 0x469451
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp]
call fcn.0045ecae
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.0045cdcf
push edi
push 0
test eax, eax
je 0x469400
xor eax, eax
mov word [ebp + 0x784], ax
lea eax, [ebp + 0x786]
push eax
call fcn.004840d0
lea eax, [ebp + 0x464]
push eax
push dword [ebp - 0x10]
lea eax, [ebp + 0x784]
push ebx
push esi
push eax
call fcn.00446d66
lea eax, [ebp + 0x784]
push eax
call fcn.004692ad
add esp, 0x24
jmp 0x469451
xor eax, eax
mov word [ebp + 0x784], ax
lea eax, [ebp + 0x786]
push eax
call fcn.004840d0
lea eax, [ebp + 0x464]
push eax
push dword [ebp - 0x10]
lea eax, [ebp + 0x784]
push ebx
push esi
push eax
call fcn.00446d66
add esp, 0x20
lea eax, [ebp + 0x784]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x469451
push 4
push eax
lea eax, [ebp + 0x784]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 0x18], 0
jne 0x46935d
mov ebx, dword [ebp - 0x10]
lea ecx, [ebp]
call fcn.0045ce1a
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp]
call fcn.0045ce1a
xor eax, eax
inc eax
jmp 0x46947c
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.004841c7
add ebp, 0x918
leave
ret
Function at 0x4695dd
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.004840d0
xor eax, eax
push esi
mov word [ebp + 0x18c], ax
lea eax, [ebp + 0x18e]
push edi
push eax
call fcn.004840d0
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.004841c7
add ebp, 0x398
leave
ret

Function at 0x469798
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.0046859c
test eax, eax
je 0x469842
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 0x469842
xor eax, eax
push 0xfe
mov word [ebp - 0x104], ax
lea eax, [ebp - 0x102]
push esi
push eax
call fcn.004840d0
push 0x80
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x518]
push eax
call fcn.00468b6b
add esp, 0x18
test eax, eax
je 0x469842
lea eax, [ebp - 0x104]
push str.6.1.7601.24382
push eax
call fcn.00469596
pop ecx
pop ecx
test eax, eax
jge 0x469842
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004841c7
leave
ret
Function at 0x469e1c
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 0x469e41
xor eax, eax
jmp 0x469eea
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, edi
je 0x469e94
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 0x469e94
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, edi
jne 0x469e7b
push edi
jmp 0x469e8e
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, edi
jne 0x469e98
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x469ee9
push ebx
push dword [ebp + 0xc]
push eax
call fcn.0048a180
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 0x469ed3
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 0x469ee7
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 0x46a237
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1104
call fcn.004848d0
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.004840d0
push esi
lea eax, [ebp - 0x904]
push edi
push eax
call fcn.004840d0
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.004840d0
add esp, 0xc
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.0044123f
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.004848fb
pop ecx
pop ecx
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46a30a
inc edi
cmp edi, 0xa
jl 0x46a2a1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004841c7
leave
ret
lea eax, [ebp - 0x904]
push eax
mov ecx, ebx
call fcn.0040c8e0
xor eax, eax
inc eax
jmp 0x46a2fb
Function at 0x46a31d
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 0x46a343
xor al, al
jmp 0x46a48a
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 0x46a39b
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 0x46a39b
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x46a382
push eax
jmp 0x46a395
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x46a3a2
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
jmp 0x46a489
push ebx
push dword [ebp + 0xc]
push eax
call fcn.0048a180
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.0046a237
pop ecx
test eax, eax
je 0x46a408
mov eax, dword [esi]
push 0x4c5fc0
push eax
call fcn.0048a8de
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x46a408
push ebx
push dword [ebp + 8]
push 1
push dword [ebp + 0xc]
call fcn.0048f032
add esp, 0x10
cmp eax, dword [ebp + 8]
jne 0x46a408
push ebx
call fcn.0048ed56
push ebx
call fcn.0048a79c
pop ecx
pop ecx
mov dword [ebp - 4], 1
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x46a420
mov esi, dword [esi]
push ebx
push esi
call fcn.004282e3
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x46a456
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 0x46a449
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 0x46a456
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 0x46a482
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.00469d15
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x46b89d
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x4c5fd0
push 1
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 4], eax
test eax, eax
je 0x46b906
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x46b8e7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x4bf008
call dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x46b908
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.0046b779
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
leave
ret 0xc

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

Function at 0x46ca0e
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 0x46c9f7
push eax
push eax
mov dword [ebp - 4], eax
mov dword [esi + 0x4c], eax
call fcn.0048e60c
mov dword [esi + 0x20], eax
add esp, 0x18
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x46cf4d
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 0x46cf7c
xor eax, eax
jmp 0x46cfd4
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x46cfa0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x46cf78
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x228]
je 0x46cfbe
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x46cfa0
jmp 0x46cfc6
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.004841c7
leave
ret 8

Function at 0x46d1dc
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.004840d0
push dword [esi]
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0048e6bc
push 0x4c528c
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0048ea4a
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 0x46d268
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004841c7
leave
ret 4
cmp word [ebp - 0x430], 0x2e
jne 0x46d287
lea eax, [ebp - 0x45c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46d268
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
jmp 0x46d258