joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a4ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x46a4c5
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x46a4be
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
movzx edx, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x46a4d9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00469e78
test bl, bl
jne 0x46a5b3
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x4b5d28
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x46a511
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x46a526
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0046a380
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
movzx ebx, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x46a559
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x46a506
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x46a57d
mov eax, 4
mov edx, dword [ebp + 0xc]
movzx ecx, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x46a58f
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x46a5a4
jmp 0x46a674
cmp bl, 1
jne 0x46a674
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x4b5d82
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x46a5d3
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x46a5e8
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0046a380
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
movzx ecx, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x46a61b
sub ebx, 6
inc dword [ebp - 8]
jne 0x46a5c8
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x46a643
mov eax, 4
mov ebx, dword [ebp + 0xc]
movzx edx, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x46a655
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x46a66a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00469ef8
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x4889d4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x488a2e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004889c4
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004862b4
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00485dcc
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488a35
lea eax, [ebp - 4]
call fcn.00404da8
ret
Function at 0x4aa584
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4aa58c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00405228
xor eax, eax
push ebp
push 0x4aa7c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x18]
mov eax, dword [0x4b0954]
mov eax, dword [eax]
call fcn.0045fffc
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00409eb4
mov eax, dword [ebp - 0x14]
mov ecx, 3
mov edx, 1
call fcn.004052a0
mov eax, dword [0x4b0584]
cmp byte [eax], 6
je 0x4aa5f8
mov eax, dword [0x4b0584]
cmp byte [eax], 7
jne 0x4aa61d
lea eax, [ebp - 0x20]
call fcn.00469af4
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.00409eb4
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov ecx, 0x4aa7dc
call fcn.004050c0
jmp 0x4aa637
push dword [ebp - 0xc]
push 0x4aa7f0
push 0x4aa7dc
lea eax, [ebp - 8]
mov edx, 3
call fcn.0040513c
xor eax, eax
push ebp
push 0x4aa677
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffff
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x419c58]
call fcn.0041e9a8
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x370]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.0048de94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aa6a3
mov esi, dword [0x4b0564]
mov esi, dword [esi]
mov edx, dword [0x4b0564]
mov edx, dword [edx]
lea eax, [ebp - 0x24]
mov ecx, 0x4aa824
call fcn.004050c0
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x28]
call fcn.00405238
push eax
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x2c]
call fcn.00405238
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
mov edx, dword [0x4b0564]
mov edx, dword [edx]
mov eax, dword [ebp - 0x10]
call fcn.004aa500
test al, al
je 0x4aa72b
mov edx, dword [0x4b0564]
mov edx, dword [edx]
lea eax, [ebp - 0x30]
mov ecx, 0x4aa824
call fcn.004050c0
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x28]
call fcn.00405238
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x4aa76e
mov edx, dword [0x4b0564]
mov edx, dword [edx]
lea eax, [ebp - 0x34]
mov ecx, 0x4aa824
call fcn.004050c0
mov esi, dword [ebp - 0x34]
mov edi, dword [0x4b0564]
mov edi, dword [edi]
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x28]
call fcn.00405238
push eax
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x2c]
call fcn.00405238
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
mov eax, dword [ebp - 0x10]
call fcn.00403e20
mov eax, dword [ebp - 8]
call fcn.00405238
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa7c8
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00404dcc
lea eax, [ebp - 0x24]
call fcn.00404da8
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00404dcc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404dcc
ret
Function at 0x402bd6
Capabilities:
Hide graphical window

Disassembly:
push 0x40
mov eax, 0x40b5c5
call fcn.0040a2bc
mov edi, ecx
call fcn.004028de
mov ecx, edi
call fcn.00402a59
mov ecx, edi
call fcn.00402a20
mov ecx, edi
call fcn.00403567
test al, al
je 0x402e6a
cmp byte [edi + 0x2510], 0
je 0x402c36
mov ecx, edi
call fcn.0040381f
test al, al
je 0x402e6a
cmp byte [edi + 0x2510], 0
je 0x402c36
mov ecx, edi
call fcn.004037f3
test al, al
je 0x402e6a
push dword [edi]
mov ecx, edi
call fcn.004025d2
test al, al
je 0x402e6a
lea eax, [ebp - 0x4c]
push eax
push 0xffffffffffffffff
call fcn.00409957
call fcn.00406127
call fcn.00406127
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [edi + 0x2510], bl
je 0x402ca0
mov ecx, edi
call fcn.004025a8
test al, al
je 0x402e6a
cmp byte [edi + 0x2510], bl
je 0x402ca0
mov ecx, edi
call fcn.0040387d
test al, al
je 0x402e6a
cmp byte [edi + 0x2510], bl
je 0x402ca0
push 1
mov ecx, edi
call fcn.00402a92
mov byte [ebp - 0x11], bl
call fcn.0040219b
push eax
call fcn.004056f4
test al, al
je 0x402cbf
push 8
mov ecx, edi
call fcn.0040232d
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.00402472
cmp eax, 2
jne 0x402d6d
mov esi, dword [ebp - 0x1c]
mov word [edi + 0x248f], bx
push dword [0x410200]
push esi
call fcn.0040557d
test al, al
je 0x402d61
mov dword [ebp - 0x18], ebx
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
mov byte [ebp - 4], 2
call dword [eax + 0x14]
mov word [edi + 0x248d], 1
push dword [0x41027c]
push dword [ebp - 0x18]
call fcn.0040557d
test al, al
je 0x402d28
mov byte [edi + 0x248f], 1
push dword [0x410280]
push dword [ebp - 0x18]
call fcn.0040557d
test al, al
je 0x402d41
mov byte [edi + 0x2490], 1
mov ecx, dword [ebp - 0x18]
mov dword [edi + 0x2494], 1
mov byte [ebp - 4], 1
test ecx, ecx
je 0x402d77
mov dword [ebp - 0x18], ebx
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x402d77
push 0x66746f38
call sub.Mso20Win32Client.dll_Ordinal_983
jmp 0x402d77
mov ecx, edi
call fcn.004051e8
mov esi, dword [ebp - 0x1c]
push ebx
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_UpdateWindow]
push edi
push 0xffffffffffffffeb
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowLongW]
cmp byte [ebp - 0x11], 0
je 0x402da5
push 9
mov ecx, edi
call fcn.0040232d
mov cl, byte [edi + 0x248e]
test cl, cl
jne 0x402db7
cmp byte [edi + 0x248d], cl
je 0x402dc9
xor eax, eax
test cl, cl
mov ecx, edi
setne al
add eax, 3
push eax
call fcn.0040232d
mov byte [ebp - 4], bl
test esi, esi
je 0x402dd6
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
mov al, 1
jmp 0x402e6c
xor al, al
call fcn.0040a22f
ret
Function at 0x403328
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x990
mov eax, dword [0x40d5d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
mov esi, 0x208
xor ebx, ebx
push esi
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
push esi
lea eax, [ebp - 0x5a4]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
push esi
lea eax, [ebp - 0x93c]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
push 0x40
lea eax, [ebp - 0x98c]
mov dword [ebp - 0x990], 0x44
xorps xmm0, xmm0
push ebx
push eax
movups xmmword [ebp - 0x94c], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 0x30
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
push esi
push eax
call ebx
mov esi, eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call ebx
sub eax, esi
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x5a4]
push 0x104
push eax
call esi
push str.msouc.exe
lea eax, [ebp - 0x5a4]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0x34
test edi, edi
je 0x40342c
push 0x104
push edi
call ebx
push eax
push edi
lea eax, [ebp - 0x93c]
push 0x104
push eax
call esi
add esp, 0x18
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
lea eax, [ebp - 0x94c]
xor esi, esi
push eax
lea eax, [ebp - 0x990]
push eax
push esi
push esi
push 0x4000000
push esi
push esi
push esi
lea eax, [ebp - 0x93c]
push eax
lea eax, [ebp - 0x5a4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403480
push dword [ebp - 0x948]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x94c]
call esi
mov al, 1
jmp 0x4034f0
mov edi, 0xc8
lea eax, [ebp - 0x39c]
push edi
push eax
push 0x556ddf37
push dword [0x412ea0]
call sub.Mso30Win32Client.dll_Ordinal_148
lea eax, [ebp - 0x39c]
push eax
push str.32770
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4034bc
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x4034ee
push edi
lea eax, [ebp - 0x734]
push eax
push 0xb123ffd0
push dword [0x412ea0]
call sub.Mso30Win32Client.dll_Ordinal_148
push 0x10010
lea eax, [ebp - 0x39c]
push eax
lea eax, [ebp - 0x734]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409f27
mov esp, ebp
pop ebp
ret 4
Function at 0x405f8f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
inc ebx
cmp dword [esi + 0x24f0], 0
je 0x405fd4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x24f4]
cmp eax, 0x61a8
jbe 0x405fc3
push 0x94
mov ecx, esi
call fcn.00405953
jmp 0x40600e
cmp dword [esi + 0x24f0], 0
je 0x405fd4
mov byte [esi + 0x2511], bl
jmp 0x40600e
push dword [ebp + 8]
mov ecx, esi
mov byte [esi + 0x2511], 0
call fcn.00403afe
push 0
push 0x7d0
push 0x94
push dword [esi + 0xc]
mov bl, al
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x24f0], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x24f4], eax
pop esi
mov al, bl
pop ebx
pop ebp
ret 4

Function at 0x4075cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x40d5d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
test ebx, ebx
je 0x4076ef
cmp dword [ebp + 0x10], 0
jbe 0x4076ef
cmp dword [ebp + 8], 0
jl 0x4076ef
push 0xa
push dword [ebp + 8]
lea eax, [ebp - 0x54]
push 0x14
push eax
call sub.Mso20Win32Client.dll_Ordinal_82
xor eax, eax
lea edi, [ebp - 0xcc]
stosd dword es:[edi], eax
push 0x32
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xb8]
and dword [ebp - 0xd0], 0
and dword [ebp - 0xcc], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push eax
push 0x10
push 0x400
call edi
lea eax, [ebp - 0xb8]
mov edx, eax
movzx ecx, word [eax]
test cx, cx
je 0x407668
cmp ecx, 0x3b
je 0x40765e
mov word [edx], cx
add edx, 2
add eax, 2
lea ecx, [ebp - 0x54]
cmp eax, ecx
jb 0x40764b
xor eax, eax
mov word [edx], ax
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0xb8]
push eax
call sub.Mso20Win32Client.dll_Ordinal_121
test eax, eax
jne 0x40768b
push 0x396d7462
jmp 0x4076f4
push 0xa
lea eax, [ebp - 0x18]
push eax
push 0xe
push 0x400
call edi
lea eax, [ebp - 0x18]
push 0xa
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0x2c]
push eax
push 0xf
push 0x400
call edi
cmp dword [ebp + 0x10], 0x7fffffff
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xc0], eax
ja 0x4076f9
push dword [ebp + 0x10]
lea eax, [ebp - 0xd0]
push ebx
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
test eax, eax
jne 0x4076eb
push 0x396d7463
jmp 0x4076f4
mov al, 1
jmp 0x4076fb
push 0x396d7461
call sub.Mso20Win32Client.dll_Ordinal_983
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00409f27
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4080cc
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
push 4
call dword [sym.imp.KERNEL32.dll_GetUserPreferredUILanguages]
test eax, eax
je 0x408150
mov eax, dword [ebp - 4]
test eax, eax
je 0x408150
push 2
xor ecx, ecx
pop edx
mul edx
push esi
seto cl
neg ecx
or ecx, eax
push ecx
call sub.Mso20Win32Client.dll_Ordinal_363
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x408150
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 4
call dword [sym.imp.KERNEL32.dll_GetUserPreferredUILanguages]
test eax, eax
je 0x408149
cmp dword [ebp - 4], 0
jbe 0x408149
push 0x10
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoul]
add esp, 0xc
test eax, eax
je 0x408150
cmp eax, 0xffff
ja 0x408150
jmp 0x408156
push esi
call sub.Mso20Win32Client.dll_Ordinal_214
pop ecx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
pop esi
test ax, ax
je 0x408176
xor edx, edx
cmp dx, cx
je 0x408176
push 0x7f
pop edx
cmp dx, cx
jne 0x40817b
mov eax, 0x409
movzx eax, ax
mov esp, ebp
pop ebp
ret

Function at 0x4081d4
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c8
mov eax, dword [0x40d5d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x4c8], eax
cmp dword [esi + 0x15f0], 1
je 0x40820d
cmp dword [esi + 0x15f4], 1
jne 0x408326
cmp byte [esi + 0x1b10], 0
jne 0x40822d
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x408326
mov byte [esi + 0x1b10], 1
cmp dword [esi + 0x15f0], 1
jne 0x4082a8
push ebx
push 0x105
lea eax, [ebp - 0x210]
push eax
call fcn.00407564
mov ebx, 0x2b4
lea eax, [ebp - 0x4c4]
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4c4]
push 0x311
push ebx
push eax
push 0x80
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x4c4]
test eax, eax
je 0x40828e
mov dword [esi + 0x1a84], eax
push 0x104
lea eax, [esi + 0x15fa]
push eax
lea eax, [ebp - 0x4b8]
push eax
call fcn.00405913
jmp 0x4082ad
mov ebx, 0x2b4
cmp dword [esi + 0x15f4], 1
jne 0x408326
push dword [ebp - 0x4c8]
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.00407564
push ebx
lea eax, [ebp - 0x4c4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4c4]
push 0x311
push ebx
push eax
push 0x80
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x4c4]
test eax, eax
je 0x40830e
mov dword [esi + 0x1a88], eax
push 0x104
lea eax, [esi + 0x183e]
push eax
lea eax, [ebp - 0x4b8]
push eax
call fcn.00405913
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00409f27
mov esp, ebp
pop ebp
ret 8
Function at 0x409114
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x40d5d0]
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 0x40917d
cmp dword [ebp - 0x210], 4
jb 0x40917d
test edi, edi
lea eax, [ebp - 0x20c]
cmovne esi, edi
push esi
push eax
call fcn.00409237
jmp 0x40917f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00409f27
mov esp, ebp
pop ebp
ret 8

Function at 0x409191
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x40d5d0]
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 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x409224
mov ecx, dword [ebp - 0x210]
cmp ecx, 4
jb 0x409224
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.00409237
jmp 0x409226
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00409f27
mov esp, ebp
pop ebp
ret 4

Function at 0x409f34
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 [0x40d5d0], eax
je 0x409f56
cmp dword [0x40d5d0], ebx
jne 0x409fea
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 0x40d5d0
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, 0x40d5d0
push 4
push edi
mov dword [0x40d5d0], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push edi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x40d5d0]
not eax
mov dword [0x410358], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a225
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x40e3f8
call fcn.0040a2f3
push 1
call fcn.0040a4c4
pop ecx
test al, al
jne 0x40a0ce
push 7
call fcn.0040a9a9
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0040a48f
mov byte [ebp - 0x24], al
mov eax, dword [0x4130b0]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x40a0c7
test eax, eax
jne 0x40a138
mov dword [0x4130b0], ecx
push 0x40c230
push 0x40c218
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40a11b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40a21f
push 0x40c214
push 0x40c200
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x4130b0], 2
jmp 0x40a13d
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0040a621
pop ecx
call fcn.0040a99d
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x40a16d
push esi
call fcn.0040a594
pop ecx
test al, al
je 0x40a16d
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0040abd8
call esi
call fcn.0040a9a3
mov esi, eax
cmp dword [esi], edi
je 0x40a18b
push esi
call fcn.0040a594
pop ecx
test al, al
je 0x40a18b
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.0040aabe
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.0040aaf1
test al, al
jne 0x40a1c4
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x40a1cd
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0040a63e
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x40a21f
call fcn.0040a339
ret
call fcn.00409f34
jmp 0x40a0af