joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479f81
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x494cd8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x30], 0
push esi
mov esi, dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x34], eax
xor eax, eax
push edi
push 2
inc eax
test dword [ebp + 0xc], 0x1008
pop edi
je 0x479ff9
push 0x28
lea eax, [ebp - 0x2c]
push eax
push 0x120009
call fcn.0045ca1c
xor eax, eax
inc eax
push eax
call fcn.0047a20c
test eax, eax
je 0x47a08a
push dword [0x49d7a0]
call esi
test eax, eax
jne 0x479ff1
push dword [0x49d7a8]
call esi
and dword [0x49d518], 0xffffdfff
call fcn.0047a6ee
xor eax, eax
inc eax
push eax
call fcn.0047a20c
test eax, eax
je 0x47a08a
push dword [ebp + 0xc]
push dword [ebp - 0x34]
push 0x49d644
call fcn.0047a0af
test eax, eax
je 0x47a085
test byte [ebp + 0xc], 4
je 0x47a029
mov esi, dword [0x49d6d0]
jmp 0x47a04a
test byte [ebp + 0xc], 8
je 0x47a044
mov esi, dword [0x49d6e0]
cmp esi, dword [0x49d7a4]
cmovne esi, dword [0x49d7a8]
jmp 0x47a04a
mov esi, dword [0x49d75c]
push esi
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
jne 0x47a061
push 0x80006
call fcn.0040b8c0
jmp 0x47a085
lea ecx, [ebp - 0x30]
push ecx
push eax
push esi
push 0x49d644
call fcn.0047a29e
xor ecx, ecx
cmp dword [ebp - 0x30], 0x404
push 1
cmove edi, ecx
test eax, eax
pop eax
cmovne edi, eax
call fcn.0047a6ee
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00490511
mov esp, ebp
pop ebp
ret 8

Function at 0x47a43f
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x47a46c
push esi
call fcn.0047a20c
test eax, eax
je 0x47a46c
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
call fcn.0047a6ee
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x47a738
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push edi
push esi
call dword [esi + 0xc]
mov ebx, eax
mov eax, dword [ebp - 4]
test eax, eax
jne 0x47a825
cmp edi, dword [esi + 0x8c]
jne 0x47a802
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push 2
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x47a7f1
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
call esi
push edi
mov dword [ebp + 0x10], eax
call esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
test esi, esi
je 0x47a7bb
test eax, eax
je 0x47a7bb
push dword [ebp - 8]
push eax
push esi
call fcn.00489fea
mov eax, dword [ebp + 8]
mov dword [eax + 0x88], edi
jmp 0x47a7cc
push 0x50000
mov dword [ebp - 4], 0x401
call fcn.0040b8c0
test esi, esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
je 0x47a7d9
push ebx
call esi
cmp dword [ebp - 0xc], 0
je 0x47a802
push edi
call esi
cmp dword [ebp - 4], 0
je 0x47a802
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x47a802
push 0x50000
mov dword [ebp - 4], 0x401
call fcn.0040b8c0
push ebx
call fcn.00486141
mov esi, eax
push esi
call fcn.00485073
push esi
call fcn.004860b3
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetClipboardData]
mov eax, dword [ebp - 4]
jmp 0x47a82f
xor ecx, ecx
cmp eax, 0x508
cmove eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47ad95
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x494cd8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
mov eax, dword [0x49c6ec]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
push edi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x44]
push esi
push eax
mov dword [0x49c6ec], eax
call sub.VCRUNTIME140.dll__setjmp3
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x47ae90
push 2
push dword [ebp - 0x60]
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x47ae01
call fcn.0040b891
push esi
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x47ae19
call fcn.0040b891
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x47ae30
call fcn.0040b891
mov eax, dword [ebp - 0x48]
mov esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x48]
push dword [ebp - 0x48]
add esi, dword [eax]
add edi, 0x28
call fcn.0047aee4
add edi, eax
mov eax, 0xff00
jmp 0x47ae56
cmp esi, edi
jae 0x47ae5a
add esi, 4
cmp dword [esi], eax
jne 0x47ae4f
xor esi, esi
push esi
push esi
call fcn.004846ec
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], esi
jne 0x47ae70
call fcn.0040b891
push esi
push dword [ebp - 0x48]
push edi
push 4
push dword [ebp - 0x48]
push dword [ebp - 0x50]
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], esi
jne 0x47ae90
call fcn.0040b891
mov eax, dword [ebp - 0x5c]
mov dword [0x49c6ec], eax
cmp dword [ebp - 0x48], esi
je 0x47aea0
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x4c], esi
je 0x47aeae
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp - 0x50], esi
je 0x47aebe
push 2
push dword [ebp - 0x50]
push esi
call fcn.0048485d
cmp dword [ebp - 0x54], esi
jne 0x47aece
push ebx
call fcn.004112ec
jmp 0x47ade8
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00490511
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47c293
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push dword [ebp + 0x18]
xor ebx, ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [ebp + 0x10], ebx
jne 0x47c2b6
mov eax, dword [0x49e1e4]
mov edi, dword [eax + 0x36]
jmp 0x47c2b9
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], edi
cmp dword [ebp + 0xc], ebx
je 0x47c419
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetCursor]
and dword [esi + 4], ebx
xor ebx, ebx
push dword [ebp + 0x14]
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [ebp + 0x14]
movzx ecx, word [esi + 0xc]
mov dword [ebp - 0x24], eax
movzx eax, word [esi + 8]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 0x20], 0x200
mov dword [ebp - 0x18], ecx
push dword [ebp - 0x18]
call fcn.0048d4aa
lea ecx, [esi + 8]
push ecx
push dword [ebp - 0x24]
mov dword [ecx], eax
mov dword [ecx + 4], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
push esi
push dword [ebp + 0x18]
call fcn.0047c45e
mov ecx, eax
mov eax, edi
test ecx, ecx
mov dword [ebp + 8], ecx
cmovne eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [ebp + 8], 0
jne 0x47c340
and dword [esi + 4], 0
cmp ebx, dword [esi + 4]
je 0x47c370
test ebx, ebx
je 0x47c359
push 0
push 0
push 0xb6f
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x47c370
push 0
push 0
push 0xb6e
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, 0x202
cmp dword [ebp - 0x20], edx
je 0x47c3cb
push 3
push 0x20e
push pe_nt_image_headers32
push dword [ebp + 0x14]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
mov eax, dword [ebp - 0x20]
jne 0x47c3b5
mov ecx, 0x202
cmp eax, ecx
cmovne eax, ecx
mov dword [ebp - 0x20], eax
sub eax, 0x200
je 0x47c2ff
dec eax
sub eax, 1
jne 0x47c37a
jmp 0x47c2ff
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x47c3ee
movzx ecx, word [esi + 0xc]
movzx eax, word [esi + 8]
shl ecx, 0x10
or ecx, eax
push ecx
push 0
push edx
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_SendMessageA]
xor edi, edi
call dword [sym.imp.USER32.dll_ReleaseCapture]
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x47c40e
push esi
push ebx
push 0xb6c
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
movzx ebx, ax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x47c41c
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
je 0x47c431
cmp dword [ebp + 0x10], 0
je 0x47c431
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
je 0x47c453
movzx edx, word [esi + 0xc]
movzx ecx, word [esi + 8]
shl edx, 0x10
or edx, ecx
push edx
push 0
push 0x202
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x47fa8b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x49df28]
push ebx
push esi
push edi
or dword [eax + 0x48], 0xffffffff
mov eax, dword [0x49df28]
mov ebx, dword [eax]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0047ec39
cmp dword [ebp + 0x14], 0
mov edx, dword [ebp - 4]
mov edi, edx
mov dword [ebp - 8], edi
je 0x47fad8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0047e627
mov edx, dword [ebp - 4]
mov edi, dword [ebp - 8]
test byte [ebp + 0x10], 4
jne 0x47faf5
mov eax, dword [0x49e1e4]
cmp dword [eax + 0xee], 0
jne 0x47faf5
mov eax, edx
mov esi, edi
mov dword [ebp + 0x10], eax
jmp 0x47fb0d
call fcn.00481fa1
mov ecx, dword [0x49df28]
mov esi, dword [ecx + 0x5c]
add esi, dword [ecx + 0x58]
sub esi, eax
mov eax, esi
mov dword [ebp + 0x10], esi
push dword [ebp - 0xc]
push edi
push edx
push esi
push eax
call fcn.0047eaea
push ebx
call fcn.0048dcdd
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, ebx
jne 0x47fb91
push ebx
call dword [sym.imp.USER32.dll_SetCapture]
push 3
push 0x20e
push pe_nt_image_headers32
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x47fb62
movzx ecx, word [ebp + 0xc]
movzx eax, word [ebp + 8]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 0x24], 0x200
mov dword [ebp - 0x1c], ecx
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
mov eax, dword [ebp - 0x24]
jne 0x47fb7e
cmp eax, 0x202
jne 0x47fb8b
sub eax, 0x200
je 0x47fb9a
dec eax
sub eax, 1
jne 0x47fb30
call dword [sym.imp.USER32.dll_ReleaseCapture]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0x1c]
movzx eax, cx
mov dword [ebp + 8], eax
mov eax, dword [0x49df28]
shr ecx, 0x10
mov dword [ebp + 0xc], ecx
mov edi, dword [eax + 0xac]
sub edi, ecx
test edi, edi
jle 0x47fbbe
push 0xffffffffffffffff
jmp 0x47fbca
mov edi, ecx
sub edi, dword [eax + 0xb4]
js 0x47fbec
push 1
call fcn.0047f86c
push 0
push 2
call fcn.0047e37d
mov eax, dword [0x49df28]
cmp edi, dword [eax + 0x10]
jg 0x47fbe9
push 0x64
call fcn.0047c920
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp + 8]
call fcn.0047ec39
cmp dword [ebp + 0x14], 0
mov eax, dword [ebp - 4]
mov ecx, eax
mov dword [ebp - 8], ecx
je 0x47fc1e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0047e627
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push dword [ebp - 0xc]
push ecx
push eax
push esi
push dword [ebp + 0x10]
call fcn.0047eaea
jmp 0x47fb30
Function at 0x48537a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x49deac], 0
je 0x4855ac
cmp byte [0x49deea], 0
jne 0x4855ac
push ebx
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [0x49deb4]
jne 0x48559e
xor ebx, ebx
inc ebx
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x48559e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00485097
cmp byte [0x49ded9], 0
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
jne 0x48541f
test byte [0x49deb0], 4
je 0x4854f4
sub eax, dword [0x49deeb]
sub edx, dword [0x49deef]
mov ecx, dword [0x49dea0]
cmp eax, ecx
jg 0x485419
neg ecx
cmp eax, ecx
jl 0x485419
mov eax, dword [0x49dea4]
cmp edx, eax
jg 0x485419
neg eax
cmp edx, eax
jge 0x48550c
mov byte [0x49ded9], bl
push edi
push ebx
call fcn.0048510e
mov ch, byte [0x49deb0]
mov edi, 0x200
mov edx, dword [ebp + 0xc]
test ch, 0x20
je 0x485475
test dword [0x49deb0], edi
je 0x485538
cmp byte [0x49df1c], 0
je 0x485518
cmp edx, dword [0x49dec8]
jl 0x485546
mov eax, dword [0x49def3]
mov byte [0x49df1c], 0
mov dword [0x49dec0], eax
mov dword [0x49dec8], edx
test ch, 0x40
mov ecx, dword [ebp + 0x10]
je 0x4854b9
test dword [0x49deb0], edi
je 0x48556f
cmp byte [0x49df1d], 0
je 0x485551
cmp ecx, dword [0x49decc]
jl 0x48557d
mov eax, dword [0x49def7]
mov byte [0x49df1d], 0
mov dword [0x49dec4], eax
mov dword [0x49decc], ecx
mov eax, dword [0x49dea8]
pop edi
mov eax, dword [eax + 4]
test eax, eax
je 0x4854d4
push 0
lea ecx, [ebp + 0xc]
push ecx
call eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
cmp dword [0x49deac], 0
je 0x485588
push ecx
push edx
call fcn.00485651
push 0
call fcn.0048510e
jmp 0x4855ab
cmp eax, dword [0x49deeb]
jne 0x485419
cmp edx, dword [0x49deef]
jne 0x485419
mov byte [0x49ded9], 0
jmp 0x4855ab
cmp edx, dword [0x49dec0]
jg 0x48546f
mov eax, dword [0x49defb]
mov cl, bl
mov byte [0x49df1c], cl
mov dword [0x49dec8], eax
jmp 0x48553e
mov cl, byte [0x49df1c]
test cl, cl
je 0x48546f
mov dword [0x49dec0], edx
jmp 0x485475
cmp ecx, dword [0x49dec4]
jg 0x4854b3
mov eax, dword [0x49deff]
mov byte [0x49df1d], bl
mov dword [0x49decc], eax
jmp 0x485575
mov bl, byte [0x49df1d]
test bl, bl
je 0x4854b3
mov dword [0x49dec4], ecx
jmp 0x4854b9
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0
push dword [0x49deb4]
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x4855ab
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.0048517d
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x485dc2
Capabilities:
Link many functions at runtime
Log keystrokes via polling

Disassembly:
cmp byte [0x49d85c], 0
jne 0x485eb9
push esi
push 4
push 0x2a
xor eax, eax
push eax
push dword [0x49e344]
push eax
push eax
push 0x4804f2
push 0xa
call fcn.004139c4
mov esi, dword [sym.imp.USER32.dll_VkKeyScanA]
push 0x3a
call esi
movsx edx, ax
mov eax, dword [0x49e1e4]
movzx ecx, dl
push edx
mov dword [eax + 0xce], ecx
call fcn.0040d028
mov ecx, dword [0x49e1e4]
push 0x3b
mov dword [ecx + 0xd2], eax
call esi
movsx edx, ax
mov eax, dword [0x49e1e4]
movzx ecx, dl
push edx
mov dword [eax + 0xd6], ecx
call fcn.0040d028
mov ecx, dword [0x49e1e4]
mov dword [ecx + 0xda], eax
cmp dword [0x49e1e0], 0
je 0x485eb1
call fcn.0045cea3
mov dword [0x49d860], eax
test eax, eax
je 0x485eb1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImmGetContext
push eax
call esi
push str.ImmReleaseContext
push dword [0x49d860]
mov dword [0x49d864], eax
call esi
push str.ImmGetDefaultIMEWnd
push dword [0x49d860]
mov dword [0x49d868], eax
call esi
push str.ImmGetCompositionStringA
push dword [0x49d860]
mov dword [0x49d86c], eax
call esi
push str.ImmSetCompositionFontA
push dword [0x49d860]
mov dword [0x49d870], eax
call esi
mov dword [0x49d874], eax
mov byte [0x49d85c], 1
pop esi
ret

Function at 0x487391
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
cmovg edx, dword [ebp + 0x10]
push ebx
mov bl, 0x55
test edx, edx
jle 0x4873be
push esi
mov esi, dword [ebp + 8]
sub esi, ecx
mov al, byte [esi + ecx]
dec edx
xor al, bl
mov byte [ecx], al
mov bl, al
inc ecx
test edx, edx
jg 0x4873ae
pop esi
mov byte [ecx], 0
pop ebx
pop ebp
ret 0x10
Function at 0x48e604
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x49d8cc], 0
je 0x48e61c
mov eax, dword [0x49d8d0]
jmp 0x48e6ec
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwarePoliciesMicrosoftSecurity
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48e66b
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x49d8d0
push esi
push esi
push dword [0x49c498]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48e66b
cmp dword [ebp - 8], 4
je 0x48e6c5
mov eax, dword [ebp - 4]
mov dword [ebp - 4], esi
test eax, eax
je 0x48e67c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftSecurity
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48e6cd
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x49d8d0
push esi
push esi
push dword [0x49c498]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48e6cd
cmp dword [ebp - 8], 4
jne 0x48e6cd
mov esi, dword [0x49d8d0]
jmp 0x48e6d3
mov dword [0x49d8d0], esi
cmp dword [ebp - 4], 0
mov byte [0x49d8cc], 1
je 0x48e6e9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x48e6f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x493f9c
push SysReAllocString
mov dword [ebp - 8], ebx
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x48e782
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x20019
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call edi
test eax, eax
jne 0x48e778
push 4
pop edi
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push str.InsecureQI
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48e778
cmp dword [ebp + 8], edi
jne 0x48e778
mov edi, dword [ebp - 0xc]
cmp edi, 3
ja 0x48e778
cmp dword [ebp - 4], ebx
je 0x48e784
push dword [ebp - 4]
call esi
jmp 0x48e784
cmp dword [ebp - 4], ebx
je 0x48e782
push dword [ebp - 4]
call esi
mov edi, ebx
cmp dword [ebp - 8], ebx
je 0x48e78e
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48fc24
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x494cd8]
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 reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x48fc8d
cmp dword [ebp - 0x210], 4
jb 0x48fc8d
test edi, edi
lea eax, [ebp - 0x20c]
cmovne esi, edi
push esi
push eax
call fcn.0048fd47
jmp 0x48fc8f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00490511
mov esp, ebp
pop ebp
ret 8

Function at 0x48fca1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x494cd8]
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 0x48fd34
mov ecx, dword [ebp - 0x210]
cmp ecx, 4
jb 0x48fd34
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.0048fd47
jmp 0x48fd36
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00490511
mov esp, ebp
pop ebp
ret 4

Function at 0x49051e
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 [0x494cd8], eax
je 0x490540
cmp dword [0x494cd8], ebx
jne 0x4905d4
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 0x494cd8
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, 0x494cd8
push 4
push edi
mov dword [0x494cd8], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push edi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x494cd8]
not eax
mov dword [0x49c598], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x490804
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x4952d8
call fcn.00490a7d
push 1
call fcn.00490bcb
pop ecx
test al, al
jne 0x4906ad
push 7
call fcn.00490e32
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00490b96
mov byte [ebp - 0x24], al
mov eax, dword [0x49dc34]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4906a6
test eax, eax
jne 0x490717
mov dword [0x49dc34], ecx
push 0x4924b8
push 0x4924a4
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x4906fa
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4907fe
push 0x4924a0
push 0x492498
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x49dc34], 2
jmp 0x49071c
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00490d28
pop ecx
call fcn.00490e26
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x49074c
push esi
call fcn.00490c9b
pop ecx
test al, al
je 0x49074c
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00491061
call esi
call fcn.00490e2c
mov esi, eax
cmp dword [esi], edi
je 0x49076a
push esi
call fcn.00490c9b
pop ecx
test al, al
je 0x49076a
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.00490f47
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.00490f7a
test al, al
jne 0x4907a3
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x4907ac
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.00490d45
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4907fe
call fcn.00490ac3
ret
call fcn.0049051e
jmp 0x49068e