joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ec1a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x48e158]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ec5d
cmp word [esi], dx
jne 0x41ec5d
or byte [edi + eax + 0x28], 4
jmp 0x41ec62
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41edb5
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41ed95
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41eca4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ecda
cmp eax, edx
jae 0x41ece6
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41ec7c
jmp 0x41edb5
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ed91
cmp dword [ebp - 0x14], 0
je 0x41ed91
mov eax, dword [ebx*4 + 0x48e158]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41ed69
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41ed32
mov word [esi], cx
jmp 0x41ed65
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x48e158]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x48e158]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x48e158]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41edb5
pop ebx
cmp word [ebp - 4], bx
jne 0x41ed7a
cmp esi, dword [ebp + 0xc]
jne 0x41ed7a
mov word [esi], bx
jmp 0x41edb2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041877e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41edb5
push 0xd
jmp 0x41edae
mov ecx, dword [ebx*4 + 0x48e158]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41edac
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41edb5
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x421550
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42157d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42157d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x1002a55
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c8
mov eax, dword [0x1009604]
and word [ebp - 0x104], 0
push esi
mov esi, dword [ebp + 8]
push edi
push 0x3f
mov dword [ebp - 4], eax
pop ecx
push dword [0x1009040]
xor eax, eax
lea edi, [ebp - 0x102]
rep stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1002aae
push dword [0x1009040]
lea eax, [ebp - 0x370]
push 0x136
push eax
call fcn.01002409
jmp 0x1002b14
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x7c8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1002aec
lea eax, [ebp - 0x79c]
push eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x578]
push eax
call fcn.01002409
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1002aff
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x578]
push eax
call fcn.01002409
push esi
lea eax, [ebp - 0x370]
push eax
lea eax, [ebp - 0x578]
push eax
call dword [sym.imp.comdlg32.dll_GetFileTitleW]
push 1
push 1
push dword [0x10090c8]
lea eax, [ebp - 0x104]
push 0x7f
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
mov eax, dword [0x1009834]
add esp, 0x14
test eax, eax
pop edi
pop esi
je 0x1002b50
lea ecx, [ebp - 0x104]
push ecx
push 1
push 0x40b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [0x1009044]
lea eax, [ebp - 0x370]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x370]
push eax
push dword [0x1009830]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
call fcn.01007147
leave
ret 4

Function at 0x100398d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 4
je 0x10039d1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [entry0]
test eax, eax
jne 0x10039d1
cmp dword [ebp - 4], 4
je 0x10039d6
mov eax, dword [ebp + 0x10]
jmp 0x10039d9
mov eax, dword [ebp - 8]
leave
ret 0xc

Function at 0x10039e2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x18]
add esi, esi
cmp dword [ebp + 8], 0
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp + 0x18], esi
je 0x1003a1b
lea eax, [ebp + 0x18]
push eax
push edi
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [entry0]
test eax, eax
jne 0x1003a1b
cmp dword [ebp + 8], 1
je 0x1003a2e
mov ecx, esi
mov esi, dword [ebp + 0x10]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x401436
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ecx + 0x28]
test edi, edi
jne 0x40145a
push edi
push esi
push dword [ebp + 8]
push edx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setg al
jmp 0x40146a
mov eax, dword [edi]
push esi
push dword [ebp + 8]
push edx
push edi
call dword [eax + 0xc]
test eax, eax
setns al
test al, al
jne 0x401471
and dword [esi], 0
pop edi
movzx eax, al
pop esi
pop ebp
ret 8
Function at 0x403d42
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x43c064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
xor ebx, ebx
mov edx, ecx
lea ecx, [ebp - 0x210]
push 0x105
mov dword [edi], 9
call fcn.0040b4cf
lea ecx, [ebp - 0x210]
call fcn.00405730
mov esi, eax
test esi, esi
je 0x403da2
xor edx, edx
mov ecx, esi
call fcn.0040b240
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403da2
test al, 0x10
jne 0x403da2
mov bl, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
movzx eax, bl
xor ecx, ebp
pop ebx
call fcn.00416bd0
mov esp, ebp
pop ebp
ret
Function at 0x404760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x43c064]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x43dab4], 0
jne 0x404810
and dword [ebp - 0x6c], 0
lea eax, [ebp - 0x6c]
push esi
push eax
push 0x20019
push ecx
mov edx, str.SOFTWAREMicrosoftInternet_Explorer
mov dword [ebp - 0x70], 0x64
mov ecx, 0x80000002
call fcn.0040bac7
xor esi, esi
inc esi
test eax, eax
jne 0x4047fa
movzx eax, byte [ebp - 0x68]
xor ecx, ecx
cmp dword [ebp - 0x74], esi
cmove eax, ecx
mov byte [ebp - 0x68], al
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x74]
push eax
push ecx
push str.Version
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4047fa
cmp word [ebp - 0x68], ax
je 0x4047fa
push 0xa
pop edx
lea ecx, [ebp - 0x68]
call fcn.0040b796
mov ecx, dword [0x43dab0]
cmp eax, 4
cmova ecx, esi
mov dword [0x43dab0], ecx
cmp dword [ebp - 0x6c], 0
mov dword [0x43dab4], esi
pop esi
je 0x404810
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [0x43dab0]
xor ecx, ebp
call fcn.00416bd0
mov esp, ebp
pop ebp
ret

Function at 0x404823
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x43c064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
xor eax, eax
push esi
mov word [ebp - 0x210], ax
mov edi, ecx
push 0x20
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], esi
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40494a
cmp word [ebp - 0x210], si
je 0x40494a
push ebx
test edi, edi
je 0x4048fd
lea ecx, [ebp - 0x210]
mov ebx, esi
call fcn.0040b2d4
mov ecx, dword [ebp - 0x210]
dec eax
mov dword [ebp - 0x218], eax
call fcn.0040b665
mov cx, word [edi]
mov dx, ax
call fcn.0040b665
cmp ax, dx
jne 0x4048ed
mov eax, edi
lea ecx, [ebp - 0x210]
sub eax, ecx
mov dword [ebp - 0x21c], eax
cmp ebx, dword [ebp - 0x218]
je 0x404903
inc ebx
lea eax, [eax + ebx*2]
mov cx, word [ebp + eax - 0x210]
call fcn.0040b665
mov cx, word [ebp + ebx*2 - 0x210]
mov dx, ax
call fcn.0040b665
cmp dx, ax
mov eax, dword [ebp - 0x21c]
je 0x4048b9
movzx ecx, word [edi + ebx*2]
movzx eax, word [ebp + ebx*2 - 0x210]
sub ecx, eax
jmp 0x4048ff
mov ecx, esi
test ecx, ecx
jne 0x404949
push esi
push 0x10
push 0x40204e
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.USER32.dll_DdeInitializeW]
mov edx, dword [ebp - 0x214]
mov ecx, edi
call fcn.0040495c
mov esi, eax
test esi, esi
jne 0x404934
mov ecx, edi
call fcn.00404b49
mov esi, eax
cmp dword [ebp - 0x214], 0
je 0x404949
push dword [ebp - 0x214]
call dword [sym.imp.USER32.dll_DdeUninitialize]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00416bd0
mov esp, ebp
pop ebp
ret
Function at 0x405757
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x43c064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, eax
mov dword [ebp - 0x4fc], eax
mov dword [ebp - 0x4f8], eax
mov ebx, edx
mov dword [ebp - 0x4f0], eax
mov edx, ecx
mov dword [ebp - 0x4f4], eax
lea eax, [ebp - 0x4fc]
push eax
push 0x20019
push ecx
mov ecx, Ordinal_1
call fcn.0040bac7
test eax, eax
jne 0x405939
lea eax, [ebp - 0x4f8]
mov edx, str.CurVer
push eax
push 0x20019
push ecx
mov ecx, dword [ebp - 0x4fc]
call fcn.0040bac7
test eax, eax
jne 0x405859
movzx eax, byte [ebp - 0xd0]
xor ecx, ecx
cmp dword [ebp - 0x4ec], 1
mov dword [ebp - 0x500], 0xca
cmove eax, ecx
mov byte [ebp - 0xd0], al
lea eax, [ebp - 0x500]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x4ec]
push eax
push ecx
push ecx
push dword [ebp - 0x4f8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405859
cmp dword [ebp - 0x4ec], 1
jne 0x405939
cmp word [ebp - 0xd0], di
je 0x405859
lea eax, [ebp - 0x4f0]
push eax
push 0x20019
push ecx
lea edx, [ebp - 0xd0]
mov ecx, Ordinal_1
call fcn.0040bac7
test eax, eax
jne 0x405939
push 0x105
mov edx, 0x41b320
lea ecx, [ebp - 0x2dc]
call fcn.0040b4cf
push 0x105
mov edx, ebx
lea ecx, [ebp - 0x2dc]
call fcn.0040b51a
push 0x105
mov edx, 0x41b7a4
lea ecx, [ebp - 0x2dc]
call fcn.0040b51a
cmp dword [ebp - 0x4f0], edi
lea eax, [ebp - 0x4f4]
mov ecx, dword [ebp - 0x4fc]
lea edx, [ebp - 0x2dc]
cmovne ecx, dword [ebp - 0x4f0]
push eax
push 0x20019
push ecx
call fcn.0040bac7
test eax, eax
jne 0x405939
lea eax, [ebp - 0x504]
mov dword [ebp - 0x504], 0x208
push eax
push esi
lea eax, [ebp - 0x4ec]
xor edx, edx
push eax
push ecx
mov ecx, dword [ebp - 0x4f4]
call fcn.0040bb66
test eax, eax
jne 0x405939
cmp dword [ebp - 0x4ec], 1
je 0x405903
cmp dword [ebp - 0x4ec], 2
je 0x40590c
jmp 0x405939
cmp dword [ebp - 0x4ec], 2
jne 0x405936
mov ebx, 0x104
lea ecx, [ebp - 0x4e8]
push ebx
mov edx, esi
call fcn.0040b4cf
push ebx
push esi
lea eax, [ebp - 0x4e8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x103
ja 0x405939
xor edi, edi
inc edi
cmp dword [ebp - 0x4f4], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x405950
push dword [ebp - 0x4f4]
call esi
xor ebx, ebx
mov dword [ebp - 0x4f4], ebx
cmp dword [ebp - 0x4f0], ebx
je 0x405968
push dword [ebp - 0x4f0]
call esi
mov dword [ebp - 0x4f0], ebx
cmp dword [ebp - 0x4f8], ebx
je 0x40597e
push dword [ebp - 0x4f8]
call esi
mov dword [ebp - 0x4f8], ebx
cmp dword [ebp - 0x4fc], ebx
je 0x405994
push dword [ebp - 0x4fc]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416bd0
mov esp, ebp
pop ebp
ret 8
Function at 0x4073e3
Capabilities:
Delete registry value

Disassembly:
push 0x1c
mov eax, 0x418a38
call fcn.00418264
mov ebx, edx
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov edi, eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x18]
mov edx, str.SOFTWARE
push eax
lea eax, [ebp - 0x28]
push eax
sub esp, 0x14
call fcn.0040bb2f
test eax, eax
jne 0x40750c
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
mov edx, 0x41b934
push eax
sub esp, 0x14
call fcn.0040bb2f
test eax, eax
jne 0x40750c
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
mov edx, str.Internet_Explorer
push eax
sub esp, 0x14
call fcn.0040bb2f
test eax, eax
jne 0x40750c
cmp dword [ebp + 8], edi
mov eax, str.Default_HTML_Editor
mov ecx, dword [ebp - 0x14]
mov esi, str.Default_MHTML_Editor
cmove esi, eax
mov edx, esi
call fcn.0040902d
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
mov edx, esi
push eax
sub esp, 0x14
call fcn.0040bb2f
test eax, eax
jne 0x40750c
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
mov edx, 0x41b96c
push eax
sub esp, 0x14
call fcn.0040bb2f
test eax, eax
jne 0x40750c
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
mov edx, 0x41b290
push eax
sub esp, 0x14
call fcn.0040bb2f
test eax, eax
jne 0x40750c
push str.Description
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp - 0x1c]
xor esi, esi
push esi
mov ecx, ebx
call fcn.00408c7b
call fcn.00404760
test eax, eax
je 0x407509
push esi
push esi
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendNotifyMessageW]
xor edi, edi
inc edi
cmp dword [ebp - 0x1c], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40751d
push dword [ebp - 0x1c]
call esi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x20], ebx
je 0x40752c
push dword [ebp - 0x20]
call esi
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x10], ebx
je 0x407539
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x407546
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x24], ebx
je 0x407553
push dword [ebp - 0x24]
call esi
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x28], ebx
je 0x407560
push dword [ebp - 0x28]
call esi
mov eax, edi
call fcn.00418238
ret 4
Function at 0x4091a9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov eax, ecx
xor esi, esi
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
push ecx
push esi
lea ecx, [ebp - 8]
mov dword [ebp - 4], esi
push ecx
push esi
mov ebx, edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4091dd
cmp dword [ebp - 8], 1
mov ecx, dword [ebp - 4]
je 0x4091df
mov ecx, esi
mov edi, dword [ebp + 0xc]
mov eax, 0x208
mov esi, dword [ebp + 8]
cmp ecx, eax
cmovb ecx, eax
add ecx, 2
mov dword [ebp - 4], ecx
cmp ecx, dword [edi]
jbe 0x409225
cmp dword [esi], 0
je 0x40920e
mov ecx, dword [esi]
call fcn.00401e39
and dword [esi], 0
and dword [edi], 0
mov ecx, dword [ebp - 4]
call fcn.00401e04
mov dword [esi], eax
test eax, eax
je 0x409248
mov eax, dword [ebp - 4]
xor ecx, ecx
mov dword [edi], eax
mov eax, dword [esi]
mov word [eax], cx
lea eax, [ebp - 4]
mov edx, ebx
push eax
push dword [esi]
lea eax, [ebp - 8]
push eax
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.0040bb66
test eax, eax
je 0x409245
mov ecx, dword [esi]
xor edx, edx
mov word [ecx], dx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4096fe
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov ebx, edx
mov eax, ecx
xor esi, esi
mov dword [ebp - 0x14], ebx
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], esi
call fcn.0040b2d4
mov ecx, ebx
mov dword [ebp - 4], eax
call fcn.004096a7
mov ebx, eax
mov edi, 0x41a734
test ebx, ebx
cmovne edi, ebx
xor eax, eax
cmp word [edi], ax
je 0x409769
mov eax, edi
push dword [ebp - 4]
mov edx, dword [ebp - 0xc]
lea ecx, [eax + 2]
cmp eax, edi
mov dword [ebp - 0x10], ecx
cmova eax, ecx
mov ecx, eax
call fcn.0040b35f
test eax, eax
je 0x4097e0
mov ecx, dword [ebp - 0x10]
push 0x3b
pop edx
call fcn.0040b2eb
test eax, eax
jne 0x40973a
mov edx, dword [ebp - 4]
mov ecx, edi
lea edx, [edx + 2]
call fcn.0040b555
mov esi, eax
test esi, esi
je 0x4097e0
mov ecx, esi
call fcn.0040b2d4
mov dword [ebp - 0x10], eax
lea ecx, [esi + eax*2]
cmp ecx, esi
jbe 0x409796
push 0x3b
pop eax
mov word [ecx], ax
add ecx, 2
mov edi, dword [ebp - 4]
test ecx, ecx
je 0x4097a9
mov edx, dword [ebp - 0xc]
lea eax, [edi + 1]
push eax
call fcn.0040b4cf
push 1
push dword [ebp - 0x14]
lea edx, [ebp - 8]
mov ecx, 0x80000002
call fcn.00405e3c
test eax, eax
je 0x4097e0
mov eax, dword [ebp - 0x10]
add eax, edi
lea eax, [eax*2 + 2]
push eax
push esi
push 1
xor eax, eax
push eax
push str.KnownIDs
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test ebx, ebx
je 0x4097eb
mov ecx, ebx
call fcn.00401e39
test esi, esi
je 0x4097f6
mov ecx, esi
call fcn.00401e39
cmp dword [ebp - 8], 0
pop edi
pop esi
pop ebx
je 0x409808
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x40b96d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x43c064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x220]
push edi
push eax
push 0x20219
xor ebx, ebx
mov edi, str.SoftwareMicrosoftOffice16.0common_filespaths
push ebx
push edi
push 0x80000002
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
call esi
test eax, eax
jne 0x40ba8d
lea eax, [ebp - 0x21c]
push eax
push 0x20119
push ebx
push edi
push 0x80000002
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40ba85
movzx eax, byte [ebp - 0x210]
xor edx, edx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
inc edx
mov dword [ebp - 0x218], 0x20a
cmp dword [ebp - 0x214], edx
cmove eax, ecx
mov byte [ebp - 0x210], al
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
push str.mso.dll
push dword [ebp - 0x220]
call edi
test eax, eax
jne 0x40ba7d
cmp dword [ebp - 0x214], 1
jne 0x40ba7d
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x20a
push eax
lea eax, [ebp - 0x210]
mov byte [ebp - 0x210], bl
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
push str.mso.dll
push dword [ebp - 0x21c]
call edi
test eax, eax
jne 0x40ba7d
xor ecx, ecx
movzx ebx, bl
inc ecx
cmp dword [ebp - 0x214], ecx
cmove ebx, ecx
push dword [ebp - 0x21c]
call esi
push dword [ebp - 0x220]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
movzx eax, bl
xor ecx, ebp
pop ebx
call fcn.00416bd0
mov esp, ebp
pop ebp
ret
Function at 0x40c3d0
Capabilities:
Create process on windows

Disassembly:
push 0x25c
mov eax, 0x418da4
call fcn.00418297
mov esi, edx
mov eax, dword [ebp + 0x24]
xor edx, edx
mov ebx, dword [ebp + 0x20]
mov edi, edx
push 7
mov dword [ebp - 0x268], eax
xor eax, eax
pop ecx
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x238], ecx
mov word [ebp - 0x24c], ax
mov dword [ebp - 4], edx
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x220], ecx
mov word [ebp - 0x234], ax
mov byte [ebp - 4], 1
call fcn.0040dd16
test al, al
je 0x40c4d6
push 0x104
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
push str.Microsoft.OfficeHelper
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x40c4d6
test esi, esi
je 0x40c544
cmp word [esi], di
je 0x40c544
push esi
lea ecx, [ebp - 0x234]
call fcn.0040a434
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x264]
call fcn.0040c022
push eax
lea ecx, [ebp - 0x24c]
call fcn.0040cd6b
lea ecx, [ebp - 0x264]
call fcn.0040a261
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x40c4d6
cmp dword [ebp - 0x238], 8
lea edi, [ebp - 0x24c]
cmovae edi, dword [ebp - 0x24c]
test eax, eax
je 0x40c4d6
cmp dword [ebp - 0x220], 8
lea esi, [ebp - 0x234]
cmovae esi, dword [ebp - 0x234]
push dword [ebp - 0x268]
xor eax, eax
push ebx
push eax
push eax
push 0x400
push eax
push eax
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
mov dword [ebp - method.Mso::Logging::StructuredObject_unsigned_int__1_.virtual_0], vtable.Mso::Logging::StructuredObject_unsigned_int__1_.0
lea eax, [ebp - 0x258]
mov dword [ebp - 0x254], str.Param
push eax
push str.HevCreateProcess_
push ecx
mov ecx, 0x170b0c5
mov dword [ebp - 0x250], esi
call fcn.00401d78
lea ecx, [ebp - 0x234]
call fcn.0040a261
lea ecx, [ebp - 0x24c]
call fcn.0040a261
mov eax, esi
call fcn.0041824c
ret 0x20
push edi
push 0x170b0c4
call fcn.0040e4e2
int3

Function at 0x40c550
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x48]
push 0x3c
push 0
push eax
mov esi, edx
mov ebx, ecx
or edi, 0x40
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x38], eax
xor eax, eax
cmp dword [ebp + 0xc], eax
mov dword [ebp - 0x48], 0x3c
sete al
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x40c5b3
cmp dword [ebp - 0x10], 0
je 0x40c5b3
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], vtable.Mso::Logging::StructuredObject_unsigned_int__1_.0
push eax
push str.HevShellExecuteEx_
push ecx
mov ecx, 0x170b0c6
mov dword [ebp - 8], str.Param
mov dword [ebp - 4], esi
call fcn.00401d78
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc