joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ad1ea8f
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x4ad33b78]
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x210]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ecx
push eax
call fcn.4ad08d61
test al, al
jne 0x4ad1eac1
xor eax, eax
jmp 0x4ad1ebd1
push edi
lea eax, [ebp - 0x210]
push 0x4ad0136c
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
xor edi, edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x624]
push eax
push 0x104
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x4ad1eb29
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x90
jne 0x4ad1eb16
xor eax, eax
jmp 0x4ad1ebd0
push edi
call esi
push eax
call fcn.4ad05fb5
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4ad1ebd0
cmp word [ebp - 0x210], 0x5c
jne 0x4ad1eb44
lea eax, [ebp - 0x210]
push eax
call fcn.4ad01a79
mov word [eax], di
jmp 0x4ad1eb4b
mov word [ebp - 0x20e], di
cmp word [ebp - 0x41c], di
je 0x4ad1eb74
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
push 2
push 0x235f
push esi
call fcn.4ad1ce7c
add esp, 0x14
jmp 0x4ad1eb8b
lea eax, [ebp - 0x210]
push eax
push 1
push 0x235e
push esi
call fcn.4ad1ce7c
add esp, 0x10
cmp eax, edi
jne 0x4ad1ebd0
mov eax, dword [ebp - 0x624]
mov ecx, eax
and ecx, 0xffff
push ecx
shr eax, 0x10
push eax
push 0x4ad3d8d4
lea eax, [ebp - 0x61c]
push 0x100
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
lea eax, [ebp - 0x61c]
push eax
push 1
push 0x235b
push esi
call fcn.4ad1ce7c
add esp, 0x24
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.4ad01305
leave
ret 8

Function at 0x4ad1efd9
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4ad33b78]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
call fcn.4ad0ff25
test edi, edi
je 0x4ad1f00e
lea eax, [ebp - 0x210]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x210]
push eax
call fcn.4ad1ea63
test eax, eax
je 0x4ad1f032
lea eax, [ebp - 0x210]
push 0x4ad0136c
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
and dword [ebp - 0x214], 0
and dword [ebp - 0x218], 0
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push 6
push esi
call fcn.4ad1cdef
lea eax, [ebp - 0x210]
push eax
push 0xe
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0x10]
call fcn.4ad1ebe3
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0x14]
push 0x4ad19334
call fcn.4ad0ca1d
push eax
push 2
push 0x2379
push esi
call fcn.4ad1ce7c
mov ecx, dword [ebp - 4]
add esp, 0x14
pop edi
pop esi
call fcn.4ad01305
leave
ret 0x10

Function at 0xc2e000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0xc2e00a
jmp 0xc3000f
jmp fcn.00936058
Function at 0x100590d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1005938
test al, 0x10
je 0x100592e
xor eax, eax
cmp dword [ebp + 0xc], eax
setne al
jmp 0x100593a
xor eax, eax
cmp dword [ebp + 0xc], eax
sete al
jmp 0x100593a
xor eax, eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret 0xc

Function at 0x1005c5d
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
xor eax, eax
cmp word [ebp - 0x24], 9
pop edi
sete al
leave
ret

Function at 0x1005c8c
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
xor eax, eax
cmp word [ebp - 0x24], 6
pop edi
sete al
leave
ret

Function at 0x10066a4
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor eax, eax
xor esi, esi
cmp dword [ebp + 8], eax
jne 0x10066ba
mov esi, 0x80070057
jmp 0x10066e0
push 1
push eax
push eax
push dword [ebp + 8]
push 0x10015e0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x10066e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01005a24
mov esi, eax
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x1006806
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100683b
test al, 0x10
jne 0x100683b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100683b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01005a24
mov esi, eax
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10068e3
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x101f100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x90
xor edi, edi
lea eax, [ebp - 0x94]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x100693f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01005a24
mov edi, eax
jmp 0x1006964
cmp dword [ebp - 0x88], 2
jne 0x1006960
cmp dword [ebp - 0x94], 5
ja 0x100695b
jne 0x1006960
cmp dword [ebp - 0x90], edi
jbe 0x1006960
xor eax, eax
inc eax
jmp 0x1006962
xor eax, eax
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01012505
leave
ret 4
Function at 0x100697b
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x101f100]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x11c
xor edi, edi
lea eax, [ebp - 0x120]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x10069d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01005a24
mov edi, eax
jmp 0x10069ea
cmp dword [ebp - 0x11c], 5
je 0x10069f9
cmp dword [ebp - 0x11c], 6
jae 0x10069ea
mov edi, 0x80040200
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.01012505
leave
ret
mov eax, dword [ebp - 0x118]
dec eax
je 0x1006a48
dec eax
jne 0x10069e5
cmp byte [ebp - 6], 1
jne 0x1006a25
call fcn.01005c5d
test eax, eax
je 0x1006a25
cmp word [ebp - 0xc], 2
sbb eax, eax
inc eax
jne 0x10069ea
mov edi, 0x8004040a
jmp 0x10069ea
mov eax, 0x8000
cmp ax, word [ebp - 8]
je 0x1006a3a
cmp word [ebp - 0xc], 2
sbb eax, eax
inc eax
jmp 0x1006a3d
xor eax, eax
inc eax
cmp eax, edi
jne 0x10069ea
mov edi, 0x8004040b
jmp 0x10069ea
cmp word [ebp - 0xc], 3
sbb eax, eax
inc eax
jne 0x10069ea
mov edi, 0x80040409
jmp 0x10069ea

Function at 0x1006a5e
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x101f100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x418], eax
test eax, eax
je 0x1006a89
test ebx, ebx
jne 0x1006a93
mov esi, 0x80070057
jmp 0x1006b74
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
cmp eax, 0xffffffff
je 0x1006aa6
test al, 0x10
je 0x1006ab0
mov esi, 0x80070002
jmp 0x1006b73
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
mov esi, 0x104
push esi
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x1006b65
cmp dword [ebp - 0x41c], 0
jne 0x1006aeb
mov esi, 0x80070057
jmp 0x1006b73
push dword [ebp - 0x41c]
lea eax, [ebp - 0x20c]
push ebx
push 0x10016bc
push esi
push eax
call fcn.01006521
mov esi, eax
add esp, 0x14
test esi, esi
jl 0x1006b73
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x1006b45
test al, 0x10
je 0x1006b26
mov esi, 0x80070005
jmp 0x1006b73
test al, 1
je 0x1006b45
cmp dword [ebp + 0x10], 0
je 0x1006b45
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1006b65
xor eax, eax
cmp dword [ebp + 0x10], eax
sete al
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1006b73
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01005a24
mov esi, eax
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01012505
leave
ret 0xc
Function at 0x1006b8b
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x101f100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
jne 0x1006bb2
mov ebx, 0x80070057
jmp 0x1006c0c
push 0x11c
lea eax, [ebp - 0x120]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1006bf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01005a24
mov ebx, eax
jmp 0x1006c0c
and dword [esi], ebx
cmp dword [ebp - 0x110], 2
jne 0x1006c0c
cmp dword [ebp - 0x11c], 6
jb 0x1006c0c
mov dword [esi], 1
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.01012505
leave
ret 4
Function at 0x1007229
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x101f100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x638], eax
lea eax, [ebp - 0x62c]
push eax
push 0x104
push esi
call fcn.010065ee
mov edi, eax
test edi, edi
jl 0x1007425
push ebx
push esi
mov ebx, 0x105
push ebx
lea eax, [ebp - 0x41c]
push eax
call fcn.01006402
mov edi, eax
test edi, edi
jl 0x1007424
lea eax, [ebp - 0x62c]
push eax
push 1
push dword [ebp - 0x62c]
call fcn.0100623e
mov edi, eax
test edi, edi
jl 0x1007424
mov eax, dword [ebp - 0x62c]
lea eax, [ebp + eax*2 - 0x41c]
cmp word [eax], 0x5c
jne 0x10072bc
xor ecx, ecx
mov word [eax], cx
and dword [ebp - 0x630], 0
xor eax, eax
cmp word [ebp - 0x41c], 0x5c
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x62c], eax
jne 0x10072ee
lea eax, [ebp - 0x41a]
mov dword [ebp - 0x62c], eax
push 0x5c
push dword [ebp - 0x62c]
call dword [sym.imp.msvcrt.dll_wcschr]
mov esi, eax
pop ecx
pop ecx
mov dword [ebp - 0x634], esi
lea eax, [ebp - 0x628]
test esi, esi
jne 0x1007333
push dword [ebp - 0x62c]
push ebx
push eax
call fcn.01006402
mov edi, eax
test edi, edi
jl 0x1007424
mov dword [ebp - 0x630], 1
jmp 0x100736f
sub esi, dword [ebp - 0x62c]
sar esi, 1
push esi
push dword [ebp - 0x62c]
push ebx
push eax
call fcn.0100643c
mov edi, eax
test edi, edi
jl 0x1007424
mov eax, dword [ebp - 0x62c]
cmp dword [ebp - 0x634], eax
jb 0x100740f
xor eax, eax
mov word [ebp + esi*2 - 0x628], ax
lea eax, [ebp - 0x628]
push eax
push ebx
lea eax, [ebp - 0x210]
push eax
call fcn.0100648b
mov edi, eax
test edi, edi
jl 0x1007424
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x210]
push eax
call esi
cmp eax, 0xffffffff
je 0x10073a5
test al, 0x10
jne 0x10073d5
mov eax, dword [ebp - 0x630]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x638]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1007416
lea eax, [ebp - 0x210]
push eax
call esi
cmp eax, 0xffffffff
je 0x1007416
mov eax, dword [ebp - 0x634]
test eax, eax
je 0x1007400
add eax, 2
push 0x100156c
mov dword [ebp - 0x62c], eax
push ebx
lea eax, [ebp - 0x210]
push eax
call fcn.0100648b
mov edi, eax
test edi, edi
jl 0x1007424
cmp dword [ebp - 0x630], 0
je 0x10072ee
jmp 0x1007424
mov edi, 0x80070216
jmp 0x1007424
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01005a24
mov edi, eax
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01012505
leave
ret 8
Function at 0x10079f2
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
test esi, esi
jne 0x1007a0d
push 0x80004005
call fcn.01005cdd
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x1007a0f
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1008054
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x101f100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.01007950
mov edi, eax
cmp edi, esi
je 0x10080c6
lea ecx, [ebp - 0x214]
call fcn.010078dd
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01012505
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x10080e4
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.01008054
cmp eax, esi
jne 0x100812f
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x10080ce
lea ecx, [ebp - 0x214]
call fcn.010078dd
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.01007857
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.010078dd
mov eax, esi
jmp 0x10080b6

Function at 0x1008af0
Capabilities:
Timestomp file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
or dword [ebp - 4], 0xffffffff
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi + 0x14]
lea ecx, [ebp - 4]
xor edi, edi
call fcn.01006150
lea eax, [ebp - 0x14]
push eax
movzx eax, word [esi + 0x1a]
push eax
movzx eax, word [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x1008b6d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x1008b6d
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push dword [ebp - 4]
call fcn.01005a4c
movzx eax, al
neg eax
lea ecx, [ebp - 0xc]
push ecx
sbb eax, eax
lea ecx, [ebp - 0x1c]
push ecx
not eax
and eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x1008b7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01005a24
mov edi, eax
lea ecx, [ebp - 4]
call fcn.0100612c
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x1008bac
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x1008bca
mov esi, 0x80070057
jmp 0x1008c1c
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
lea ecx, [ebp - 4]
mov esi, eax
call fcn.0100707c
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
je 0x1008c19
call esi
cmp eax, 5
je 0x1008c19
mov eax, dword [ebp - 4]
cmp eax, ebx
jne 0x1008c09
call esi
push eax
call fcn.01005a24
mov esi, eax
jmp 0x1008c1c
push eax
lea ecx, [edi + 4]
mov dword [ebp - 4], ebx
call fcn.010088f1
mov esi, ebx
jmp 0x1008c1c
xor esi, esi
inc esi
lea ecx, [ebp - 4]
call fcn.0100707c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1009c73
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp + 0x18], ebx
jne 0x1009c93
mov esi, 0x80070057
jmp 0x1009d73
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov esi, eax
cmp esi, ebx
jne 0x1009cbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01005a24
mov esi, eax
jmp 0x1009d73
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x1009cab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0x14], eax
cmp eax, ebx
je 0x1009cab
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
jne 0x1009cf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1009d6a
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 4]
mov esi, eax
call fcn.010070ec
cmp esi, ebx
jne 0x1009d0f
mov dword [ebp - 4], ebx
jmp 0x1009ceb
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
je 0x1009ceb
push edi
push dword [ebp + 0x14]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
test eax, eax
je 0x1009ceb
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1009d68
call edi
test eax, eax
jne 0x1009d68
lea eax, [ebp - 8]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov esi, eax
cmp esi, ebx
jl 0x1009d72
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 8], ebx
mov dword [ecx], eax
mov dword [ebp - 4], ebx
jmp 0x1009d72
call edi
push eax
call fcn.01005a24
mov esi, eax
pop edi
lea ecx, [ebp - 8]
call fcn.0100662a
lea ecx, [ebp - 4]
call fcn.010070ec
mov eax, esi
pop esi
pop ebx
leave
ret 0x14
Function at 0x100c31a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x101c54d
call fcn.010125d3
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x100c373
call fcn.0100773d
mov esi, eax
jmp 0x100c47c
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x100c38c
call fcn.0100773d
jmp 0x100c46e
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
cmp eax, esi
je 0x100c382
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x420], edi
cmp eax, edi
jae 0x100c3f2
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100c3d8
lea ecx, [ebp - 0x418]
call fcn.01007fe9
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.01007ef8
mov eax, esi
call fcn.0101263e
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.01008745
mov dword [ebp - 4], 1
jmp 0x100c420
cmp dword [ebp - 0x418], esi
jne 0x100c42f
mov esi, 0x8007000e
jmp 0x100c470
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x100c382
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.0100a49f
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100c3dd
lea ecx, [ebp - 0x418]
call fcn.01007fe9
jmp 0x100c3dd
Function at 0x100cfee
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
cmp dword [ebp + 8], esi
jne 0x100d014
mov ebx, 0x80070057
jmp 0x100d0c2
cmp dword [ebp + 0x14], esi
je 0x100d00a
push edi
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
pop edi
push edi
lea eax, [ebp - 0x60]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x60], edi
cmp dword [ebp + 0xc], esi
je 0x100d055
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
call fcn.0100c9c3
mov ebx, eax
cmp ebx, esi
jl 0x100d0c1
mov eax, dword [ebp - 0xc]
cmp eax, esi
jne 0x100d057
xor eax, eax
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x60]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100d083
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01005a24
mov ebx, eax
jmp 0x100d0c1
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 4]
call fcn.0100707c
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 8]
call fcn.0100707c
mov dword [ebp - 8], edi
mov dword [ebp + 0xc], esi
cmp dword [ebp + 0x10], esi
je 0x100d0b9
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 4]
call fcn.01006782
mov ebx, eax
cmp ebx, esi
jl 0x100d0c1
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
pop edi
lea ecx, [ebp - 8]
call fcn.0100707c
lea ecx, [ebp - 4]
call fcn.0100707c
lea ecx, [ebp - 0xc]
call fcn.01007124
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10