joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100976f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 4]
cmp edx, eax
jle 0x1009775c
push eax
push ecx
push edx
push ecx
mov edx, str.ERROR:
mov ecx, 0x1011e818
call fcn.10015b30
mov edx, str.BlockHash::AddAllBlocksThroughIndex___called_with_index
mov ecx, eax
call fcn.10015b30
add esp, 4
mov ecx, eax
call fcn.100427f0
mov edx, str._higher_than_end_index
mov ecx, eax
call fcn.10015b30
add esp, 4
mov ecx, eax
call fcn.1003bab0
push eax
call fcn.100874f0
add esp, 4
cmp byte [0x1011fb44], 0
je 0x10097823
jmp 0x1009782a
mov ecx, dword [ebx + 0x34]
shl ecx, 4
cmp edx, ecx
jg 0x100977b3
push ecx
push ecx
push edx
push ecx
mov edx, str.ERROR:
mov ecx, 0x1011e818
call fcn.10015b30
mov edx, str.BlockHash::AddAllBlocksThroughIndex___called_with_index
mov ecx, eax
call fcn.10015b30
add esp, 4
mov ecx, eax
call fcn.100427f0
mov edx, str.___last_index_added__
mov ecx, eax
call fcn.10015b30
add esp, 4
mov ecx, eax
call fcn.100427f0
mov edx, 0x100ead68
mov ecx, eax
call fcn.10015b30
jmp 0x10097741
cmp eax, 0x10
jb 0x10097823
add eax, 0xfffffff0
cmp edx, eax
jle 0x100977c2
lea edx, [eax + 1]
mov eax, dword [ebx]
add edx, eax
mov dword [ebp + 8], edx
lea edi, [eax + 0x10]
add edi, ecx
cmp edi, edx
jae 0x10097823
movzx eax, byte [edi]
lea edx, [edi + 3]
movzx ecx, byte [edi + 1]
mov esi, 7
imul eax, eax, 0x101
add eax, ecx
lea esp, [esp]
movzx ecx, byte [edx - 1]
lea edx, [edx + 2]
imul eax, eax, 0x101
add ecx, eax
imul eax, ecx, 0x101
movzx ecx, byte [edx - 2]
add eax, ecx
and eax, 0x7fffff
dec esi
jne 0x100977f0
push eax
mov ecx, ebx
call fcn.10097540
add edi, 0x10
cmp edi, dword [ebp + 8]
jb 0x100977d2
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov ecx, 0x1011e818
call fcn.10019c80
push 1
call fcn.100a1242
int3

Function at 0x100978c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
shr eax, 4
cmp edx, eax
jb 0x10097910
push edx
push ecx
mov edx, str.ERROR:
mov ecx, 0x1011e818
call fcn.10015b30
mov edx, str.NextMatchingBlock_called_for_invalid_block_number
mov ecx, eax
call fcn.10015b30
add esp, 4
mov ecx, eax
call fcn.100427f0
push eax
call fcn.100874f0
add esp, 4
cmp byte [0x1011fb44], 0
jne 0x10097922
or eax, 0xffffffff
pop ebp
ret 8
mov eax, dword [ecx + 0x14]
push dword [ebp + 0xc]
push dword [eax + edx*4]
call fcn.10097840
pop ebp
ret 8
mov ecx, 0x1011e818
call fcn.10019c80
push 1
call fcn.100a1242
int3
Function at 0x10098370
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, 0x10120620
mov word [0x10120b20], 0
push esi
dec eax
mov word [0x10120620], 0x301
push edi
mov edi, 0x10120620
mov byte [0x10120b23], 1
mov ebx, 2
sub edi, eax
lea esi, [eax + 2]
mov cl, byte [esi]
lea esi, [esi + 1]
mov dl, cl
mov al, cl
and dl, 0x80
neg dl
sbb dl, dl
add al, al
xor al, cl
and dl, 0x1b
xor al, dl
mov byte [edi + esi - 1], al
movzx eax, al
mov byte [eax + 0x10120b20], bl
inc ebx
cmp ebx, 0x100
jl 0x100983a5
mov byte [0x101203a0], 0x63
mov ebx, 1
mov byte [0x10120503], 0
jmp 0x100983f0
movzx eax, bl
mov ecx, 0x1012071f
movzx eax, byte [eax + 0x10120b20]
sub ecx, eax
mov cl, byte [ecx]
mov dl, cl
rol dl, 1
xor cl, dl
rol dl, 1
xor cl, dl
rol dl, 1
mov al, dl
rol al, 1
xor al, cl
xor al, dl
xor al, 0x63
mov byte [ebx + 0x101203a0], al
movzx eax, al
mov byte [eax + 0x101204a0], bl
inc ebx
cmp ebx, 0x100
jl 0x100983f0
mov al, 1
mov edx, 0x101205a0
movzx ecx, al
mov dword [edx], ecx
mov cl, al
and cl, 0x80
neg cl
sbb cl, cl
add al, al
and cl, 0x1b
add edx, 4
xor al, cl
cmp edx, 0x10120618
jl 0x10098438
mov ecx, dword [0x101141ac]
xor esi, esi
mov edi, 0xff
mov ah, byte [esi + 0x101203a0]
mov bl, ah
mov bh, ah
and bl, 0x80
mov al, bl
neg al
sbb al, al
add bh, bh
and al, 0x1b
mov dl, bh
xor dl, al
xor dl, ah
neg bl
movzx edx, dl
sbb bl, bl
movzx eax, ah
shl edx, 8
and bl, 0x1b
or edx, eax
xor bh, bl
mov bl, byte [esi + 0x101204a0]
shl edx, 8
or edx, eax
movzx eax, bh
shl edx, 8
or edx, eax
mov dword [esi*4 + 0x10120720], edx
test cl, cl
je 0x100984dc
test bl, bl
je 0x100984dc
movzx eax, cl
movzx edx, bl
movzx eax, byte [eax + 0x10120b20]
movzx edx, byte [edx + 0x10120b20]
add eax, edx
cdq
idiv edi
mov al, byte [edx + 0x10120620]
mov byte [ebp - 1], al
jmp 0x100984e0
mov byte [ebp - 1], 0
test ch, ch
je 0x1009850c
test bl, bl
je 0x1009850c
movzx eax, ch
movzx edx, bl
movzx eax, byte [eax + 0x10120b20]
movzx edx, byte [edx + 0x10120b20]
add eax, edx
cdq
idiv edi
mov al, byte [edx + 0x10120620]
mov byte [ebp - 2], al
jmp 0x10098510
mov byte [ebp - 2], 0
mov al, byte [0x101141ae]
test al, al
je 0x1009853e
test bl, bl
je 0x1009853e
movzx eax, al
movzx edx, bl
movzx eax, byte [eax + 0x10120b20]
movzx edx, byte [edx + 0x10120b20]
add eax, edx
cdq
idiv edi
mov bh, byte [edx + 0x10120620]
jmp 0x10098540
xor bh, bh
mov al, byte [0x101141af]
test al, al
je 0x1009856e
test bl, bl
je 0x1009856e
movzx eax, al
movzx edx, bl
movzx eax, byte [eax + 0x10120b20]
movzx edx, byte [edx + 0x10120b20]
add eax, edx
cdq
idiv edi
mov bl, byte [edx + 0x10120620]
jmp 0x10098570
xor bl, bl
movzx edx, byte [ebp - 1]
movzx eax, byte [ebp - 2]
shl edx, 8
or edx, eax
movzx eax, bh
shl edx, 8
or edx, eax
movzx eax, bl
shl edx, 8
or edx, eax
mov dword [esi*4 + 0x1011ffa0], edx
inc esi
cmp esi, 0x100
jl 0x10098465
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100c1500
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x100c15d0
push 0xffffffffffffffff
push 0x100d6fb8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10112840]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x101136c8]
cmp eax, 0xffffffff
jne 0x100c1609
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x100c1616
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x2c], 0
test ebp, ebp
je 0x100c167d
jmp 0x100c164c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp + 0xc]
jne 0x100c16ba
test edi, edi
jne 0x100c16c0
push 0x100c11d0
push 0x1011fa58
call fcn.100c0e70
mov eax, dword [0x101136c8]
add esp, 8
cmp eax, 0xffffffff
je 0x100c167d
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x2c], 0xffffffff
test ebp, ebp
je 0x100c16a6
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100c16a6
mov eax, dword [ebp]
mov ecx, ebp
push 0
call dword [eax]
push ebp
push 0
call esi
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test edi, edi
je 0x100c16f8
mov edi, edi
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x100c16e9
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
mov ecx, esi
push 0
mov eax, dword [esi]
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x100c16c0
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
mov dword [esp + 0x18], eax
mov esi, dword [ebx]
cmp esi, ebx
je 0x100c1640
mov ebp, eax
mov edi, edi
cmp byte [esi + 0xd], 0
mov edi, esi
jne 0x100c1757
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x100c173c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x100c1757
jmp 0x100c1730
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x100c1730
jmp 0x100c1757
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x100c1755
cmp esi, dword [eax + 8]
jne 0x100c1755
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100c1745
mov esi, eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x100c176b
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x100c176b
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push edi
lea eax, [esp + 0x24]
mov ecx, ebp
push eax
call fcn.100c1200
cmp esi, ebx
jne 0x100c1710
mov ebp, dword [esp + 0x14]
jmp 0x100c1640
Function at 0x100c15d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x100c15d0
push 0xffffffffffffffff
push 0x100d6fb8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10112840]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x101136c8]
cmp eax, 0xffffffff
jne 0x100c1609
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x100c1616
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x2c], 0
test ebp, ebp
je 0x100c167d
jmp 0x100c164c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp + 0xc]
jne 0x100c16ba
test edi, edi
jne 0x100c16c0
push 0x100c11d0
push 0x1011fa58
call fcn.100c0e70
mov eax, dword [0x101136c8]
add esp, 8
cmp eax, 0xffffffff
je 0x100c167d
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x2c], 0xffffffff
test ebp, ebp
je 0x100c16a6
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100c16a6
mov eax, dword [ebp]
mov ecx, ebp
push 0
call dword [eax]
push ebp
push 0
call esi
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test edi, edi
je 0x100c16f8
mov edi, edi
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x100c16e9
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
mov ecx, esi
push 0
mov eax, dword [esi]
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x100c16c0
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
mov dword [esp + 0x18], eax
mov esi, dword [ebx]
cmp esi, ebx
je 0x100c1640
mov ebp, eax
mov edi, edi
cmp byte [esi + 0xd], 0
mov edi, esi
jne 0x100c1757
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x100c173c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x100c1757
jmp 0x100c1730
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x100c1730
jmp 0x100c1757
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x100c1755
cmp esi, dword [eax + 8]
jne 0x100c1755
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100c1745
mov esi, eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x100c176b
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x100c176b
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push edi
lea eax, [esp + 0x24]
mov ecx, ebp
push eax
call fcn.100c1200
cmp esi, ebx
jne 0x100c1710
mov ebp, dword [esp + 0x14]
jmp 0x100c1640
Function at 0x401770
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x412004]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x401000
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 6
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], str.Window
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
mov edx, dword [ebp + 8]
push edx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x410bf0
push str.Window
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0x1c], eax
push 0xa
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov byte [ebp - 0x18], 1
mov edx, 0x2e
mov word [ebp - 0x16], dx
mov eax, 0x3e9
mov word [ebp - 0x14], ax
mov byte [ebp - 0x12], 1
mov ecx, 0xd
mov word [ebp - 0x10], cx
mov edx, 0x3ea
mov word [ebp - 0xe], dx
mov byte [ebp - 0xc], 1
mov eax, 0x20
mov word [ebp - 0xa], ax
mov ecx, 0x3eb
mov word [ebp - 8], cx
push 3
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.USER32.dll_CreateAcceleratorTableW]
mov dword [ebp - 0x20], eax
push 0
push 0
push 0
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4018b1
lea ecx, [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4018af
lea ecx, [ebp - 0x64]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x64]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x401871
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DestroyAcceleratorTable]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004018ce
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40759c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x40fb0e
call fcn.0040df74
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x407619
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x407619
call fcn.004015ef
mov esi, eax
jmp 0x4076f0
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40763c
call fcn.004015ef
jmp 0x4076e3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x407632
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x40766c
mov esi, 0x8007000e
jmp 0x4076e5
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00404754
jmp 0x407692
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x407665
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x407632
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x418]
call fcn.00407462
mov esi, eax
test edi, edi
je 0x4076f0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x407709
lea ecx, [ebp - 0x418]
call fcn.00405446
lea ecx, [ebp - 0x428]
call fcn.00401263
mov eax, esi
call fcn.0040dec5
ret 0x10
Function at 0x408cd1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x408ce4
push 0xd
pop eax
jmp 0x408d28
push esi
xor eax, eax
push edi
mov dword [ebp + 0xc], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp + 0xc]
jne 0x408cf7
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x408cef
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x408d2f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x408d41
push 0xd
pop eax
jmp 0x408d73
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x408d4a
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x409c7a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4132a4]
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 0x4127c0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x409ce3
cmp dword [ebp - 0x210], 4
jb 0x409ce3
test edi, edi
lea eax, [ebp - 0x20c]
cmovne esi, edi
push esi
push eax
call fcn.00409d9d
jmp 0x409ce5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040d73d
mov esp, ebp
pop ebp
ret 8

Function at 0x409cf7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4132a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push eax
push 0
push 2
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x409d8a
mov ecx, dword [ebp - 0x210]
cmp ecx, 4
jb 0x409d8a
shr ecx, 1
push 0xffffffffffffffff
cmp word [ebp + ecx*2 - 0x210], 0x5c
sete al
lea eax, [eax*2 + str.Microsoft_SharedOffice16_]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00409d9d
jmp 0x409d8c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040d73d
mov esp, ebp
pop ebp
ret 4
Function at 0x40da3b
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x415438
call fcn.0040dfd1
push 1
call fcn.0040dabe
pop ecx
test al, al
jne 0x40d8e4
push 7
call fcn.0040e623
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0040da89
mov byte [ebp - 0x24], al
mov eax, dword [0x4175dc]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x40d8dd
test eax, eax
jne 0x40d94e
mov dword [0x4175dc], ecx
push 0x4112c4
push 0x4112ac
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40d931
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40da35
push 0x4112a8
push 0x411274
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x4175dc], 2
jmp 0x40d953
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0040dc1b
pop ecx
call fcn.0040e617
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x40d983
push esi
call fcn.0040db8e
pop ecx
test al, al
je 0x40d983
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0040e852
call esi
call fcn.0040e61d
mov esi, eax
cmp dword [esi], edi
je 0x40d9a1
push esi
call fcn.0040db8e
pop ecx
test al, al
je 0x40d9a1
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.0040e738
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_wide_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.0040e76b
test al, al
jne 0x40d9da
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x40d9e3
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0040dc38
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x40da35
call fcn.0040e017
ret
call fcn.0040d74a
jmp 0x40d8c5

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x405f2d21
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x42e1d0
nop
mov ecx, 0x5e525c5
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4030f3
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x480010]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x403187
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x403144
cmp dword [ebp + 0x10], ebx
jne 0x40317b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.004030f3
test eax, eax
jne 0x403156
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x40312b
push dword [ebp - 4]
call dword [0xde98a020]
pop ebx
add byte [ebx], al
and eax, 0x562c7fcf
ljmp 0xb86e
mov edi, 0x6a3d92f5
pop ss
movsd dword es:[edi], dword [esi]
inc eax
and ch, 0x43
mov al, 0xb1
xchg ecx, eax
mov cl, 0x91
ret

Function at 0x405c5e
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x100c], 0
jne 0x405cb4
inc dword [0x477f54]
mov eax, dword [0x477f54]
or dword [esi + 0x1010], 2
push 0x40
push 0x1000
push 0xa
push 0
mov dword [esi + 0x1c98], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0x100c], eax
mov byte [eax], 0xb8
inc eax
mov ecx, 0x408d27
mov dword [eax], esi
add eax, 4
mov byte [eax], 0xe9
inc eax
sub ecx, eax
sub ecx, 4
mov dword [eax], ecx
mov eax, dword [esi + 0x100c]
pop esi
ret

Function at 0x405e2f
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x477f50
push 0x40
push 4
push 0x477f60
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
mov byte [0x477f60], 0xc2
mov dword [0x477f50], eax
mov dword [0x477f58], eax
mov dword [0x477f68], eax
mov dword [0x477f5c], eax
mov dword [0x477f54], eax
mov byte [0x477f62], al
ret