joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e8a8
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41e98d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x41e9a8
push ebx
push 0x41e9b8
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00406894
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.004042f0
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], 4
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00406648
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x41e938
mov al, 0x6a
call fcn.0041e4d0
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0041e87c
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x41e941
call fcn.0041e87c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e994
lea eax, [ebp - 4]
call fcn.00405f8c
ret

Function at 0x41eaa8
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x41eb73
jmp 0x41eb67
cmp dword [esi + 0x10], 0x1000
jne 0x41eb53
test byte [esi + 0x15], 1
jne 0x41eb53
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x41eb04
cmp ebp, 2
je 0x41eb04
cmp ebp, 0x10
je 0x41eb04
cmp ebp, 0x20
jne 0x41eb20
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x41eb20
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x41eb31
mov eax, dword [esi]
add eax, ebx
call fcn.0041eaa0
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x41eb24
cmp byte [esp + 4], 0
je 0x41eb53
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x41eb73
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x41ead9
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x405b24
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x405ba4
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x405ba3
push ebx
mov ebx, 0x47f488
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00402409
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00402409
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x428558
mov byte [edi + esi], al
call fcn.0040f68e
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x405b46
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.0040563b
pop edi
pop ebp
ret 0x14

Function at 0x40951b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40953c
jl 0x409533
test edi, edi
jne 0x40953c
xor eax, eax
xor edx, edx
jmp 0x4095fd
cmp dword [ebx + 0x38], 0
je 0x409551
push eax
push edi
push dword [ebp + 8]
call fcn.00409603
jmp 0x4095fd
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x409598
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x409598
cmp eax, edi
jb 0x409572
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040ad60
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40959e
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4095f2
mov ecx, ebx
call fcn.00408db5
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4095dd
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00413408
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4095f2
jmp 0x4095b0
test edx, edx
je 0x4095f2
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00413408
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40a8bf
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a8fe
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a8fe
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a8fe
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a8fe
cmp dword [ecx + 0x74], 0xe
jbe 0x40a8fe
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41980d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c7f0
push 0x42c7e8
push str.FlsAlloc
push 0x1e
call fcn.0041967a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419841
push dword [ebp + 8]
mov ecx, esi
call dword [0x428184]
call esi
jmp 0x419847
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41988b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c800
push 0x42c7f8
push str.FlsGetValue
push 0x20
call fcn.0041967a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4198c2
push dword [ebp + 8]
mov ecx, esi
call dword [0x428184]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41ccb8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041cb29

Function at 0x41d0b2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040ad10
mov eax, dword [0x47d800]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041ac75
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41d0f4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41d250
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00426840
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47fe30]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041de51
mov ecx, dword [esi*4 + 0x47fe30]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41d249
cmp eax, dword [edi + ecx + 0x24]
jne 0x41d249
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d249
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041de51
add esp, 0x14
test edx, edx
jl 0x41d249
jg 0x41d1bf
test eax, eax
jb 0x41d249
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41d249
jl 0x41d1d9
cmp dword [ebp - 0x1008], eax
ja 0x41d249
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41d1f7
test ebx, ebx
je 0x41d230
cmp ecx, edi
jae 0x41d230
mov al, byte [ecx]
cmp al, 0xd
jne 0x41d211
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41d21d
cmp byte [ecx + 1], 0xa
jne 0x41d21d
inc ecx
jmp 0x41d21d
movzx eax, al
movsx eax, byte [eax + 0x47dac8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41d1f7
cmp edx, ebx
jne 0x41d1f7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41d24e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a123
leave
ret
Function at 0x41d2ef
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47fe30]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41d32f
cmp byte [ebx], 0xa
jne 0x41d32f
or byte [eax + edi + 0x28], 4
jmp 0x41d334
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41d432
mov al, byte [edx]
cmp al, 0x1a
je 0x41d414
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41d363
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41d388
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41d392
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41d345
jmp 0x41d432
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d40f
cmp dword [ebp - 0xc], 0
je 0x41d40f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47fe30]
test byte [eax + edi + 0x28], 0x48
je 0x41d3e9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41d3d4
mov byte [esi], dl
jmp 0x41d3e5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47fe30]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41d432
cmp byte [ebp - 1], 0xa
jne 0x41d3f8
cmp esi, ebx
jne 0x41d3f8
mov byte [esi], 0xa
jmp 0x41d431
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041de6f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41d432
mov byte [esi], 0xd
jmp 0x41d431
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47fe30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d42e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d432
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41d43b
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 + 0x47fe30]
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 0x41d47e
cmp word [esi], dx
jne 0x41d47e
or byte [edi + eax + 0x28], 4
jmp 0x41d483
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 0x41d5d6
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 0x41d5b6
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41d4c5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d4fb
cmp eax, edx
jae 0x41d507
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 0x41d49d
jmp 0x41d5d6
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 0x41d5b2
cmp dword [ebp - 0x14], 0
je 0x41d5b2
mov eax, dword [ebx*4 + 0x47fe30]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41d58a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41d553
mov word [esi], cx
jmp 0x41d586
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47fe30]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47fe30]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47fe30]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41d5d6
pop ebx
cmp word [ebp - 4], bx
jne 0x41d59b
cmp esi, dword [ebp + 0xc]
jne 0x41d59b
mov word [esi], bx
jmp 0x41d5d3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041de6f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41d5d6
push 0xd
jmp 0x41d5cf
mov ecx, dword [ebx*4 + 0x47fe30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d5cd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d5d6
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 0x41f271
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41f30e
push ebx
push esi
call fcn.0041f23a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041e01b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41f2bb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f30d
push edi
push eax
call fcn.00419e40
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41f2db
call fcn.00418ea9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f30c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041e01b
add esp, 0x20
test eax, eax
jne 0x41f2fa
push edi
call fcn.00418ea9
jmp 0x41f302
push ebx
call fcn.00418ea9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x426640
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42666d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42666d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401028
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa20
mov eax, dword [0x403790]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xa1c]
push 7
push 0x104
push eax
xor ebx, ebx
mov esi, 0x80004005
push ebx
push ebx
push 0x22
call sub.Mso99LWin32Client.dll_Ordinal_519
test eax, eax
je 0x401170
push 7
push 0x104
lea eax, [ebp - 0x60c]
push eax
push ebx
call sub.Mso30Win32Client.dll_Ordinal_1149
push eax
push dword [ebp + 0xc]
call sub.Mso99LWin32Client.dll_Ordinal_519
test eax, eax
je 0x401170
lea eax, [ebp - 0x60c]
push eax
push str._t___s___x
lea eax, [ebp - 0x814]
push 0x104
push eax
call fcn.0040122f
add esp, 0x10
cmp eax, 0xffffffff
je 0x401170
push 0x100
lea eax, [ebp - 0x404]
push eax
push 0xe56f1f9e
push edi
call fcn.00401185
mov esi, eax
test esi, esi
js 0x401170
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0xf6cf0522
push edi
call fcn.00401185
mov esi, eax
test esi, esi
js 0x401170
lea eax, [ebp - 0xa20]
mov dword [ebp - 0xa20], ebx
push eax
call fcn.00401374
test eax, eax
js 0x40112b
cmp dword [ebp - 0xa20], 3
jne 0x401116
push 1
jmp 0x401120
cmp dword [ebp - 0xa20], 2
jne 0x40112b
push ebx
push dword [0x405040]
call sub.Mso20Win32Client.dll_Ordinal_906
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
push 1
call fcn.0040124b
mov esi, eax
test esi, esi
js 0x401170
push 1
push ebx
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0xa1c]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb esi, esi
and esi, 0x80004005
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004013e0
mov esp, ebp
pop ebp
ret 8
Function at 0x40124b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftOfficeExcelAddinsMsoTDAddin.Connect.1
push 0x80000001
mov dword [ebp - 8], ebx
mov esi, ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40128e
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x40136a
xor eax, eax
cmp dword [ebp + 8], eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
setne al
add eax, 2
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 4
push ebx
push str.LoadBehavior
push dword [ebp - 4]
call edi
test eax, eax
je 0x4012d0
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x401360
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x401316
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 8]
jne 0x4012dc
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
xor eax, eax
push eax
push str.FriendlyName
push dword [ebp - 4]
call edi
test eax, eax
je 0x401316
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x401360
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x401360
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 8]
jne 0x401326
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
xor eax, eax
push eax
push str.Description
push dword [ebp - 4]
call edi
test eax, eax
je 0x401360
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4013ed
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x403790], eax
je 0x40140f
cmp dword [0x403790], ebx
jne 0x4014a3
push edi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor edi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x403790
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
test edi, edi
push eax
push dword [ebp - 4]
cmovne ebx, edi
mov edi, 0x403790
push 4
push edi
mov dword [0x403790], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push edi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x403790]
not eax
mov dword [0x405070], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4016d3
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x403d98
call fcn.00401d10
push 1
call fcn.00401873
pop ecx
test al, al
jne 0x40157c
push 7
call fcn.00401adb
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0040183e
mov byte [ebp - 0x24], al
mov eax, dword [0x405404]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x401575
test eax, eax
jne 0x4015e6
mov dword [0x405404], ecx
push 0x403148
push 0x403134
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x4015c9
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4016cd
push 0x403130
push 0x403128
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x405404], 2
jmp 0x4015eb
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004019d0
pop ecx
call fcn.00401acf
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x40161b
push esi
call fcn.00401943
pop ecx
test al, al
je 0x40161b
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00401d0a
call esi
call fcn.00401ad5
mov esi, eax
cmp dword [esi], edi
je 0x401639
push esi
call fcn.00401943
pop ecx
test al, al
je 0x401639
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.00401bf0
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.00401c23
test al, al
jne 0x401672
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x40167b
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.004019ed
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4016cd
call fcn.00401d56
ret
call fcn.004013ed
jmp 0x40155d

Function at 0x402112
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x403790]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push eax
push 0
push 2
push esi
push str.SoftwareMicrosoftOffice16.0CommonFilesPaths
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x40217b
cmp dword [ebp - 0x210], 4
jb 0x40217b
test edi, edi
lea eax, [ebp - 0x20c]
cmovne esi, edi
push esi
push eax
call fcn.00402235
jmp 0x40217d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004013e0
mov esp, ebp
pop ebp
ret 8