joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003920
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
mov edi, dword [ebp + 8]
xor bl, bl
cmp dword [edi + 0x10], 0
je 0x10003a5a
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], 0
je 0x10003a51
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x1000394f
mov eax, dword [esi]
lea ecx, [ebp - 8]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 4], eax
test eax, eax
je 0x10003a51
push 0x10084060
push eax
call fcn.10024aaa
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x10003a51
cmp dword [esi + 0x14], 0x10
jb 0x10003985
mov esi, dword [esi]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x10003a37
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push dword [ebp + 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10003a37
mov eax, dword [ebp - 0xc]
push 0x10084060
push 0x80
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 4], ecx
call fcn.10024aaa
mov esi, eax
add esp, 8
test esi, esi
je 0x10003a39
cmp dword [edi + 0x14], 0x10
jb 0x100039e9
mov edi, dword [edi]
push edi
push dword [ebp - 4]
push str.StringFileInfo_08lx_s
push 0x80
push esi
call fcn.10003d80
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp + 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10003a33
mov edx, dword [ebp - 0x14]
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003a20
sub ecx, edi
push ecx
mov ecx, dword [ebp + 0x10]
push edx
call fcn.10002110
mov bl, 1
jmp 0x10003a39
xor esi, esi
push dword [ebp + 8]
call fcn.10024536
add esp, 4
test esi, esi
je 0x10003a51
push esi
call fcn.10024536
add esp, 4
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10003fb0
Capabilities:
Hash data with md5

Disassembly:
mov byte [ecx + 0x68], 0
mov eax, ecx
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x10004890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100811d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x10004931
cmp byte [esi + 0x3d], 0
je 0x10004931
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100048e7
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x100048f9
sub eax, 1
je 0x100048fd
sub eax, 2
je 0x10004931
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002453b
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000491a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10043ef1
add esp, 0x10
cmp edi, eax
jne 0x100048e7
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002453b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.1002453b
mov esp, ebp
pop ebp
ret

Function at 0x10006290
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100062a0
sub esi, ecx
mov edx, 2
sar esi, 1
xor ecx, ecx
lea edi, [esi + 1]
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1002452d
lea ecx, [esi*2 + 2]
mov ebx, eax
push ecx
push 0
push ebx
call fcn.1003b8a0
push dword [ebp + 8]
push edi
push ebx
call fcn.1003feb8
add esp, 0x1c
mov byte [ebp - 1], 1
xor edi, edi
test esi, esi
js 0x1000633c
cmp word [ebx + edi*2], 0x5c
jne 0x10006320
xor eax, eax
push ebx
mov word [ebx + edi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10006317
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10006338
mov eax, 0x5c
mov word [ebx + edi*2], ax
inc edi
cmp edi, esi
jle 0x100062f3
push ebx
call fcn.10024536
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 1], 0
push ebx
call fcn.10024536
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006350
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005fe20
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x100811d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
test eax, eax
je 0x1000648a
movzx eax, word [eax]
mov word [ebp - 0x40], ax
xor eax, eax
push eax
push eax
mov dword [ebp - 0x30], 1
mov word [ebp - 0x3e], ax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x1000648a
inc eax
xor ecx, ecx
mov dword [ebp - 0x50], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1002452d
mov ecx, dword [ebp - 0x50]
add esp, 4
mov esi, eax
mov dword [ebp - 0x48], esi
test ecx, ecx
je 0x10006417
xor eax, eax
mov edi, esi
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x54]
push esi
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x10006428
push esi
jmp 0x10006482
xor eax, eax
mov word [ebp - 0x42], ax
mov eax, esi
movzx eax, word [eax]
cmp dword [ebp - 0x2c], 8
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 2
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.10043f85
add esp, 0xc
test eax, eax
je 0x1000646a
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x10006455
movzx eax, word [esi]
test ax, ax
je 0x1000647f
jmp 0x10006433
mov ax, word [ebp - 0x44]
mov word [ebp - 0x28], ax
xor eax, eax
mov dword [ebp - 0x18], 1
mov word [ebp - 0x26], ax
push dword [ebp - 0x48]
call fcn.10024536
add esp, 4
movups xmm0, xmmword [ebp - 0x28]
mov dword [edi + 0x10], 0
lea ecx, [ebp - 0x40]
mov dword [edi + 0x14], 0
xor eax, eax
movups xmmword [edi], xmm0
mov word [ebp - 0x28], ax
movq xmm0, qword [ebp - 0x18]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
movq qword [edi + 0x10], xmm0
call fcn.100037c0
lea ecx, [ebp - 0x28]
call fcn.100037c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002453b
mov esp, ebp
pop ebp
ret
Function at 0x100064f0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100811d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.1003b8a0
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
add esp, 0xc
or ecx, 0x8000
cmp byte [ebp + 0x10], 0
cmove ecx, dword [ebp + 0xc]
push eax
push 0
push 0
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
test eax, eax
je 0x10006578
xor eax, eax
xor ecx, ecx
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006564
sub ecx, edx
sar ecx, 1
push ecx
push 0
jmp 0x1000659d
xor eax, eax
lea ecx, [ebp - 0x20c]
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006586
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10003c60
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1002453b
mov esp, ebp
pop ebp
ret

Function at 0x10006880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x100811d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0x14]
push 0x208
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 0x21c], esi
call fcn.1003b8a0
add esp, 0xc
mov edi, 0x20019
lea eax, [ebp - 0x210]
push eax
push edi
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x10006949
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x104
push eax
push esi
push esi
push esi
push dword [ebp - 0x218]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x1000693d
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push dword [ebp - 0x218]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 2
jne 0x1000696e
cmp ebx, reloc.OLEAUT32.dll_SysReAllocString
jne 0x1000696e
cmp edi, 0x20019
jne 0x1000696e
mov esi, dword [ebp - 0x21c]
mov edi, 0x20119
jmp 0x100068d5
mov ebx, dword [ebp - 0x220]
lea ecx, [ebp - 0x20c]
xor eax, eax
lea edx, [ecx + 2]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006990
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.10003c60
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002453b
mov esp, ebp
pop ebp
ret
Function at 0x10007cb0
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1218
call fcn.10024d50
mov eax, dword [0x100811d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x1000
mov dword [ebp - 0x1218], eax
lea eax, [ebp - 0x1210]
push 0
push eax
call fcn.1003b8a0
add esp, 0xc
mov dword [ebp - 0x1214], 0
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0x1214]
push eax
push 0x1000
lea eax, [ebp - 0x1210]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x10007de3
push ebx
mov ebx, dword [ebp - 0x1214]
push esi
shr ebx, 2
xor esi, esi
test ebx, ebx
je 0x10007dd1
push edi
nop dword [eax]
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.1003b8a0
add esp, 0xc
push dword [ebp + esi*4 - 0x1210]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
lea eax, [ebp - 0x210]
push 0x104
push eax
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test edi, edi
je 0x10007d79
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.10047774
push dword [ebp - 0x1218]
lea eax, [ebp - 0x210]
push eax
call fcn.1003cb5a
add esp, 0x10
test eax, eax
jne 0x10007db9
inc esi
cmp esi, ebx
jb 0x10007d30
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002453b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + esi*4 - 0x1210]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002453b
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002453b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1002453b
mov esp, ebp
pop ebp
ret
Function at 0x10007f50
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10060028
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x100811d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x44], edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x50], ecx
test eax, eax
jne 0x10007f9c
xor al, al
jmp 0x10008130
cmp dword [edi + 0x14], 0
ja 0x10007fec
lea eax, [ebp - 0x40]
push eax
call fcn.10007ab0
mov esi, eax
add edi, 4
add esp, 4
cmp edi, esi
je 0x10007fe1
mov ecx, edi
call fcn.100037c0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x40]
call fcn.100037c0
mov edi, dword [ebp - 0x44]
mov eax, dword [edi + 0x14]
add edi, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x44], eax
cmp dword [edi + 0x14], 8
jb 0x1000800b
mov edi, dword [edi]
cmp eax, 8
jae 0x10008020
movups xmm0, xmmword [edi]
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x10008059
mov esi, eax
lea ecx, [ebp - 0x28]
mov eax, SysReAllocString
or esi, 7
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.10003a70
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x28], eax
lea ecx, [ecx*2 + 2]
push ecx
push edi
push eax
call fcn.1003b320
mov eax, dword [ebp - 0x44]
add esp, 0xc
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
push 0xa
push str.Software_
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.10003ae0
mov edx, dword [ebp - 0x48]
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008080
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10003ae0
mov esi, dword [ebp - 0x4c]
test esi, esi
je 0x100080cd
push 1
push 0x10066f44
lea ecx, [ebp - 0x28]
call fcn.10003ae0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100080b4
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10003ae0
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x10008109
push 1
push 0x10066f44
lea ecx, [ebp - 0x28]
call fcn.10003ae0
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100080f0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10003ae0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push VariantInit
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x28]
call fcn.100037c0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002453b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10008460
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x100811d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
cmp dword [edi + 0x14], 0
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
ja 0x100084f9
lea eax, [ebp - 0x1c]
push eax
call fcn.10007ab0
mov esi, eax
lea ebx, [edi + 4]
add esp, 4
cmp ebx, esi
je 0x100084ee
mov ecx, ebx
call fcn.100037c0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebx], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebx + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x1c]
call fcn.100037c0
mov ebx, dword [ebp - 0x30]
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
jb 0x10008504
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x20]
push ecx
push 0xf013f
push 0
push eax
push VariantInit
call esi
test eax, eax
jne 0x10008543
lea eax, [ebp - 0x24]
push eax
push 0xf013f
push 0
push str.SoftWare
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x10008558
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002453b
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x28]
push 0
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x100085a0
push dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x20]
call esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002453b
mov esp, ebp
pop ebp
ret 0x10
push 0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x28]
call esi
test eax, eax
je 0x100085e9
push dword [ebp - 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x20]
call esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002453b
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp - 0x38]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100085f1
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x28]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x20]
call esi
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002453b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1000e5b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100609bb
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x100811d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x108], ecx
mov esi, dword [ebp + 8]
movzx eax, word [ebp + 0x24]
xor ebx, ebx
push 0xa
push eax
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1000e74d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000e74d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [ebp - 0x104], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp dword [ebp - 0x104], ebx
jne 0x1000e63f
test edi, edi
je 0x1000e74d
cmp dword [ebp + 0x1c], ebx
jbe 0x1000e6c9
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x40]
call fcn.10006a40
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.10003fb0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc4]
call fcn.100060f0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xc4]
call fcn.10005810
lea esi, [edi + 1]
mov byte [ebp - 4], 2
push esi
call fcn.1003fead
push esi
mov ebx, eax
push 0
push ebx
call fcn.1003b8a0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push ecx
push edi
push ebx
push dword [ebp - 0x104]
call fcn.10003670
add esp, 0x20
lea ecx, [ebp - 0x28]
call fcn.10001f20
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.10001f20
sub esp, 0x18
mov ecx, ebx
mov edx, esp
lea esi, [ecx + 1]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
mov byte [edx], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000e6e4
sub ecx, esi
push ecx
push ebx
mov ecx, edx
call fcn.10002110
lea eax, [ebp - 0x58]
push eax
call fcn.10006e70
add esp, 0x1c
push 1
push 1
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x100]
call fcn.1000c6f0
mov esi, dword [ebp - 0x108]
lea eax, [ebp - 0x100]
push eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.1000fa40
lea ecx, [ebp - 0x100]
call fcn.1000d420
cmp dword [esi + 4], 0
lea ecx, [ebp - 0x58]
seta bl
call fcn.10001f20
jmp 0x1000e74f
xor bl, bl
mov edx, dword [ebp + 0x20]
cmp edx, 0x10
jb 0x1000e77f
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000e775
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000e79f
push edx
push ecx
call fcn.100244c7
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002453b
mov esp, ebp
pop ebp
ret 0x20
call fcn.1003fc49
int3
Function at 0x10018780
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10060770
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100811d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.100244fd
mov edi, eax
add esp, 4
test edi, edi
je 0x1001882b
push 1
mov dword [ebp - 4], 0
call fcn.10022a7a
mov dword [edi + 4], eax
add esp, 4
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001b780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100811d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1001b7b0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002453b
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1001b7ec
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1001b7ec
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002453b
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x1001b8d1
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1001b814
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1001b847
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.1004b6de
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002453b
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x1001b8d1
cmp eax, 1
jle 0x1001b8a4
cmp eax, 3
jne 0x1001b8d1
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.10013060
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002453b
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1001b8c1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10043ef1
add esp, 0x10
cmp edi, eax
jne 0x1001b8d1
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x1001b7d7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002453b
mov esp, ebp
pop ebp
ret 4