joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425930
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042cd40
add esp, 8
test eax, eax
jne 0x425953
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x10
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
test esi, esi
je 0x4259fd
lea ecx, [ebp - 0x10]
call fcn.0042d110
push 1
push edi
push esi
lea ecx, [ebp - 0x10]
call fcn.0042dfc0
test al, al
jne 0x42598d
lea ecx, [ebp - 0x10]
call fcn.0042d2f0
lea eax, [edi + 1]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425992
sub ecx, edx
sar ecx, 1
je 0x4259e6
movzx eax, word [esi + ecx*2 - 2]
cmp eax, 0x2e
je 0x4259e6
cmp ecx, 1
jbe 0x4259bf
cmp word [esi + ecx*2 - 4], 0x2e
jne 0x4259bf
cmp eax, 0x5c
je 0x4259e6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4259eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.0042d2f0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov edi, 1
lea ecx, [ebp - 0x10]
call fcn.0042d2f0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov edi, 1
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x425a60
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
push dword [ebp + 0xc]
call fcn.0042cd40
add esp, 8
test eax, eax
jne 0x425a88
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x1c
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [eax + 8]
call fcn.00429950
add esp, 0xc
test al, al
jne 0x425aac
mov eax, 0x57
mov esp, ebp
pop ebp
ret 0x1c
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
cmp edx, 0xffffffff
jne 0x425acc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esp, ebp
pop ebp
ret 0x1c
cmp dword [ebp + 0x20], 0
jne 0x425ae7
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
xor eax, eax
mov esp, ebp
pop ebp
ret 0x1c
cmp dword [ebp - 4], 0
je 0x425af8
mov eax, 1
mov esp, ebp
pop ebp
ret 0x1c
cmp edx, 0x7fffffff
ja 0x425aed
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
xor eax, eax
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x425d60
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042cd40
add esp, 8
test eax, eax
jne 0x425d83
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0x20]
push ebx
push esi
xor esi, esi
push edi
mov dword [eax], esi
call fcn.0042d110
mov ebx, dword [ebp + 0x18]
mov edx, ebx
mov edi, dword [ebp + 0x14]
and edx, 4
mov dword [ebp + 0x18], edx
jne 0x425daa
test bl, 2
je 0x425dc2
push 0
push 1
push edi
lea ecx, [ebp - 0x20]
call fcn.0042dfc0
test al, al
je 0x425f4a
mov edx, dword [ebp + 0x18]
test edi, edi
je 0x425f4a
cmp word [edi], si
je 0x425f4a
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp + 0x18], eax
jmp 0x425de0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425de0
sub ecx, dword [ebp + 0x18]
sar ecx, 1
cmp word [edi + ecx*2 - 2], 0x2e
je 0x425f4a
test edx, edx
je 0x425e11
mov edx, 0xc0000000
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], 2
jmp 0x425e4b
test bl, 2
je 0x425e2f
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
jne 0x425f4a
mov edx, 0xc0000000
mov dword [ebp + 0x10], esi
jmp 0x425e44
test bl, 1
je 0x425f4a
mov edx, SysReAllocString
mov dword [ebp + 0x10], 1
mov dword [ebp + 0x14], 3
mov eax, ebx
mov dword [ebp - 4], edx
and eax, 0x28
cmp al, 0x28
je 0x425f4a
mov ecx, ebx
mov eax, ebx
and ecx, 8
and eax, 0x20
add ecx, ecx
or ecx, eax
mov eax, 0x80
shl ecx, 0x17
test bl, 0x40
push 0
mov ebx, 0x4000100
cmovne eax, ebx
or ecx, eax
push ecx
push dword [ebp + 0x14]
mov dword [ebp - 8], ecx
push 0
push dword [ebp + 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x18], eax
cmp eax, 0xffffffff
je 0x425f08
mov ebx, dword [ebp - 8]
test ebx, 0x10000000
je 0x425f26
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x425ec4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x425f23
mov eax, dword [ebp - 8]
xor ecx, ecx
or ecx, dword [ebp - 0xc]
or eax, 0
mov dword [ebp - 0xc], eax
ja 0x425edc
cmp ecx, 0xee6b280
jbe 0x425f23
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
and ebx, 0xefffffff
push ebx
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x18], eax
cmp eax, 0xffffffff
jne 0x425f26
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.0042d2f0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x425f4f
push dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 8]
add eax, 8
push eax
call fcn.00429890
add esp, 0xc
test al, al
jne 0x425f4f
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
lea ecx, [ebp - 0x20]
call fcn.0042d2f0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x425f70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042cd40
add esp, 8
test eax, eax
jne 0x425f91
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x1c
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [eax + 8]
call fcn.00429950
add esp, 0xc
test al, al
jne 0x425fb5
mov eax, 0x57
mov esp, ebp
pop ebp
ret 0x1c
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
test ebx, ebx
je 0x42603b
mov esi, dword [ebp + 0x20]
test esi, esi
je 0x42603b
push dword [ebp + 0x18]
push 0
push 0x11
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov dword [esi], eax
test eax, eax
jne 0x425fe5
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push edi
lea ecx, [ebp + 0x10]
xor edi, edi
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x426030
push eax
push ebx
push dword [ebp + 0x18]
mov dword [ebx], edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x426016
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
test edi, edi
je 0x426030
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov dword [esi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
pop esi
mov eax, 0x57
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x426050
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042cd40
add esp, 8
test eax, eax
jne 0x426073
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x10
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
test edi, edi
je 0x4260ce
lea ecx, [ebp - 0x10]
call fcn.0042d110
push esi
push 1
push edi
lea ecx, [ebp - 0x10]
call fcn.0042dfc0
test al, al
jne 0x4260a9
lea ecx, [ebp - 0x10]
call fcn.0042d2f0
pop edi
lea eax, [esi + 1]
pop esi
mov esp, ebp
pop ebp
ret 0x10
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4260bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.0042d2f0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov esi, 1
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4260e0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042cd40
add esp, 8
test eax, eax
jne 0x426103
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x10
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
test edi, edi
je 0x42615d
lea ecx, [ebp - 0x10]
call fcn.0042d110
push esi
push esi
push edi
lea ecx, [ebp - 0x10]
call fcn.0042dfc0
test al, al
jne 0x426138
lea ecx, [ebp - 0x10]
call fcn.0042d2f0
pop edi
lea eax, [esi + 1]
pop esi
mov esp, ebp
pop ebp
ret 0x10
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x42614b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.0042d2f0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov esi, 1
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x426170
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push edi
push ebx
call fcn.0042cd40
add esp, 8
test eax, eax
jne 0x426199
pop edi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push esi
lea ecx, [ebp - 0x10]
call fcn.0042d110
push 0
push 1
push dword [ebp + 0x18]
lea ecx, [ebp - 0x10]
call fcn.0042dfc0
test al, al
je 0x42623b
push 0
push 1
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x10]
call fcn.0042dfc0
test al, al
je 0x42623b
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
push dword [edx]
mov eax, dword [ecx]
push edi
push ebx
push ecx
call dword [eax + 0x30]
mov esi, eax
test esi, esi
jne 0x426240
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call dword [sym.imp.MSVCR120.dll__wrename]
mov ecx, dword [ebp + 8]
add esp, 8
mov esi, eax
mov eax, dword [ecx]
push dword [ebp + 0x14]
push 1
test esi, esi
jne 0x42621f
push dword [ebp + 0x1c]
push edi
push ebx
push ecx
call dword [eax + 0x2c]
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0042d2f0
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push dword [ebp + 0x18]
push edi
push ebx
push ecx
call dword [eax + 0x2c]
lea ecx, [ebp - 0x10]
call fcn.0042d2f0
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov esi, 1
lea ecx, [ebp - 0x10]
call fcn.0042d2f0
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x426260
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042cd40
add esp, 8
test eax, eax
jne 0x426281
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x18
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push dword [esi + 8]
call fcn.00429950
add esp, 0xc
test al, al
jne 0x4262a7
mov eax, 0x57
pop esi
mov esp, ebp
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [esi]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [eax + 0x60]
test eax, eax
jne 0x4262ce
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
inc eax
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x426350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042cd40
add esp, 8
test eax, eax
jne 0x426371
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x18
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [eax + 8]
call fcn.00429950
add esp, 0xc
test al, al
jne 0x426395
mov eax, 0x57
mov esp, ebp
pop ebp
ret 0x18
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
test ebx, ebx
je 0x426407
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x426407
cmp word [esi], 1
jne 0x4263fa
cmp dword [esi + 4], 1
jne 0x4263fa
cmp dword [esi + 0x14], 0
jne 0x4263fa
push edi
lea eax, [ebp + 0x10]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov edi, eax
test edi, edi
jne 0x4263f1
push eax
push ebx
mov dword [ebx], eax
push dword [esi + 0x10]
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4263e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 0x18
pop esi
mov eax, 0x57
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x426c40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x43ffa8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push eax
push ecx
call fcn.0042cd40
add esp, 8
test eax, eax
jne 0x426c81
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043342a
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x426cb1
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindClose]
movzx eax, si
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043342a
mov esp, ebp
pop ebp
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
movzx esi, cx
mov ecx, dword [ebp - 4]
movzx eax, si
xor ecx, ebp
pop esi
call fcn.0043342a
mov esp, ebp
pop ebp
ret 0x10

Function at 0x426dd0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [eax + 8]
call fcn.00429990
add esp, 0xc
test al, al
jne 0x426df8
mov eax, 0x57
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x426ea0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [eax + 8]
call fcn.00429990
add esp, 0xc
test al, al
jne 0x426eca
mov eax, 0x57
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x426efa
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 8], 4
jne 0x426eef
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x426f10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [eax + 8]
call fcn.00429990
add esp, 0xc
test al, al
jne 0x426f38
mov eax, 0x57
mov esp, ebp
pop ebp
ret 0x14
push esi
mov esi, dword [ebp + 0x18]
test esi, esi
jne 0x426f4a
lea eax, [esi + 0x57]
pop esi
mov esp, ebp
pop ebp
ret 0x14
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x426fcb
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x426fc2
push eax
push 0
push 0x11
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov dword [esi], eax
test eax, eax
jne 0x426f94
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret 0x14
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x426fc2
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x426fe0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [eax + 8]
call fcn.00429990
add esp, 0xc
test al, al
jne 0x427008
mov eax, 0x57
mov esp, ebp
pop ebp
ret 0x10
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x427030
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [eax + 8]
call fcn.00429990
add esp, 0xc
test al, al
jne 0x427058
mov eax, 0x57
mov esp, ebp
pop ebp
ret 0x14
push ebx
mov ebx, dword [ebp + 0x18]
push esi
test ebx, ebx
je 0x427121
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x427121
cmp word [esi], 1
jne 0x427114
cmp dword [esi + 4], 1
jne 0x427114
cmp dword [esi + 0x14], 0
jne 0x427114
lea eax, [ebp + 0xc]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x427126
cmp ebx, 2
jb 0x427114
test bl, 1
jne 0x427114
cmp dword [esi + 0x10], ebx
jne 0x427114
mov edx, dword [ebp + 0xc]
cmp byte [edx + ebx - 2], al
jne 0x427114
cmp byte [edx + ebx - 1], al
jne 0x427114
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4270c5
sub ecx, edi
sar ecx, 1
pop edi
lea eax, [ecx*2 + 2]
cmp eax, ebx
jne 0x427114
push ebx
push edx
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x427103
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, 0x57
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x427220
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042cd40
add esp, 8
test eax, eax
jne 0x427243
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x18
push esi
push dword [ebp + 0x14]
call fcn.00426420
add esp, 4
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0042d110
push dword [ebp + 0x18]
lea ecx, [ebp - 0x10]
push esi
call fcn.0042df30
test al, al
jne 0x42727f
lea ecx, [ebp - 0x10]
mov esi, 1
call fcn.0042d2f0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x18
lea eax, [ebp + 0x10]
push eax
push 0xf003f
push 0
push dword [ebp + 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4272ad
push dword [ebp + 0x1c]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
xor esi, esi
call fcn.0042d2f0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4272c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa48
mov eax, dword [0x43ffa8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
push eax
push ecx
call fcn.0042cd40
add esp, 8
test eax, eax
je 0x42742f
push 0x3c
lea eax, [ebp - 0xa48]
push 0
push eax
call fcn.0043373c
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xa2c], eax
lea eax, [ebp - 0x208]
push eax
push 0
push 0
push 0
push esi
mov dword [ebp - 0xa48], 0x3c
mov dword [ebp - 0xa44], 0x100
mov dword [ebp - 0xa40], 0
mov dword [ebp - 0xa3c], edi
mov dword [ebp - 0xa38], esi
mov dword [ebp - 0xa34], 0
mov dword [ebp - 0xa30], ebx
mov dword [ebp - 0xa0c], 0x400
call dword [sym.imp.MSVCR120.dll__wsplitpath]
add esp, 0x20
lea eax, [ebp - 0xa0c]
push eax
lea eax, [ebp - 0xa08]
push eax
push str.open
lea eax, [ebp - 0x208]
push eax
push 9
push 0
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
test eax, eax
jne 0x42742f
push dword [ebp - 0xa0c]
mov esi, dword [sym.imp.MSVCR120.dll_wcsncmp]
lea eax, [ebp - 0xa08]
push str.WinWord
push eax
call esi
add esp, 0xc
test eax, eax
je 0x427409
push dword [ebp - 0xa0c]
lea eax, [ebp - 0xa08]
push str.Excel
push eax
call esi
add esp, 0xc
test eax, eax
je 0x427409
push dword [ebp - 0xa0c]
lea eax, [ebp - 0xa08]
push str.OUTLOOK
push eax
call esi
add esp, 0xc
test eax, eax
je 0x427409
push dword [ebp - 0xa0c]
lea eax, [ebp - 0xa08]
push str.POWERPNT
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x42742f
lea eax, [ebp - 0xa48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x42742f
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043342a
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043342a
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4281f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x43ffa8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042cd40
add esp, 8
test eax, eax
jne 0x42821f
mov eax, 0x80004005
jmp 0x42836a
push dword [ebp + 0x14]
call fcn.00426420
add esp, 4
lea ecx, [ebp - 0x20]
mov esi, eax
mov dword [ebp - 0xc], esi
call fcn.0042d110
mov ebx, dword [ebp + 0x18]
lea ecx, [ebp - 0x20]
push ebx
push esi
call fcn.0042df30
test al, al
jne 0x428252
mov esi, 1
jmp 0x428360
mov edi, dword [ebp + 0x20]
test edi, edi
jne 0x428261
lea esi, [edi + 0x57]
jmp 0x428360
cmp word [edi], 1
jne 0x42835b
cmp dword [edi + 4], 1
jne 0x42835b
cmp dword [edi + 0x14], 0
jne 0x42835b
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov esi, eax
test esi, esi
jne 0x428360
test ebx, ebx
je 0x4282d3
mov ecx, ebx
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4282a0
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x4282be
xor eax, eax
jmp 0x4282d3
add esi, esi
mov eax, esi
call fcn.00433750
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.00425570
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x428350
mov ebx, dword [ebp + 0x1c]
test ebx, ebx
je 0x42831a
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x428300
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x42831e
xor eax, eax
jmp 0x428333
add esi, esi
mov eax, esi
call fcn.00433750
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.00425570
push dword [edi + 0x10]
push dword [ebp - 0x10]
push 3
push 0
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
xor esi, esi
jmp 0x428360
mov esi, 0x80004005
lea ecx, [ebp - 0x20]
call fcn.0042d2f0
mov eax, esi
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043342a
mov esp, ebp
pop ebp
ret 0x1c