joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e698
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x40e6f2
inc esi
xor edi, edi
cmp edi, 1
jne 0x40e6be
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x40e6cc
cmp edi, 1
jle 0x40e6cc
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040e224
test eax, eax
jne 0x40e6f2
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x40e6f2
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x40e6f2
inc edi
dec esi
jne 0x40e6ae
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x40e6fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40e720
mov eax, dword [ebp - 4]
jmp 0x40e723
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret

Function at 0x40e728
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x40e775
xor ebx, ebx
jmp 0x40e76a
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.00407bbc
test eax, eax
jne 0x40e769
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x40e81f
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x40e74b
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x40e781
je 0x40e78a
jmp 0x40e793
call fcn.0040bc94
mov esi, eax
jmp 0x40e795
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x40e795
xor esi, esi
test si, si
je 0x40e81f
xor ebx, ebx
jmp 0x40e7bb
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x40e7ba
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x40e81f
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x40e7a2
xor ebx, ebx
jmp 0x40e814
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, esi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x40e813
mov eax, esi
and ax, 0x3ff
cmp ax, 4
jne 0x40e808
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.0040e6fc
push eax
mov eax, esi
call fcn.0040e6fc
pop edx
cmp edx, eax
jne 0x40e813
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x40e81f
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x40e7ca
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x40ec0c
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 0x40ece1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40ecfc
push ebx
push 0x40ed0c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040513c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403250
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x40ec8c
mov al, 0x6a
call fcn.0040e82c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040ebe0
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40ec95
call fcn.0040ebe0
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 0x40ece8
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40edfc
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 0x40eec7
jmp 0x40eebb
cmp dword [esi + 0x10], 0x1000
jne 0x40eea7
test byte [esi + 0x15], 1
jne 0x40eea7
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x40ee58
cmp ebp, 2
je 0x40ee58
cmp ebp, 0x10
je 0x40ee58
cmp ebp, 0x20
jne 0x40ee74
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 0x40ee74
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40ee85
mov eax, dword [esi]
add eax, ebx
call fcn.0040edf4
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40ee78
cmp byte [esp + 4], 0
je 0x40eea7
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 0x40eec7
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x40ee2d
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40186e
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x41c320]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x418], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x102
ja 0x4018ea
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x102
ja 0x4018ea
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x20c]
push eax
call esi
push dword [ebp - 0x418]
push edi
push ebx
call fcn.0040179f
mov edi, eax
lea eax, [ebp - 0x414]
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416547
mov esp, ebp
pop ebp
ret 8

Function at 0x4058f3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40590d
test al, 0x10
jne 0x40590d
xor eax, eax
inc eax
jmp 0x40590f
xor eax, eax
pop ebp
ret 4

Function at 0x406adb
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov byte [eax], 0
test esi, esi
je 0x406b40
cmp byte [esi], 0
je 0x406b40
cmp byte [esi + 1], 0x3a
jne 0x406b40
cmp byte [esi + 2], 0x5c
jne 0x406b40
push eax
push 0x226
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov al, byte [esi]
mov ecx, esi
jmp 0x406b22
cmp al, 0x5c
push ecx
cmove edi, ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov ecx, eax
mov al, byte [ecx]
test al, al
jne 0x406b12
mov eax, edi
sub eax, esi
cmp eax, 2
jne 0x406b30
inc edi
push ebx
mov bl, byte [edi]
push esi
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov byte [edi], bl
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x408598
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x41c320]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x18], eax
push esi
push edi
xor esi, esi
mov dword [ebp - 0x20], ebx
mov eax, dword [ebx + 0x1cc]
mov edi, dword [ebx + 0x104]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x1d0]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x1d8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
add eax, 6
lea edi, [eax + edi*2]
mov dword [ebp - 0x1c], edi
cmp dword [ebx + 0x140], esi
je 0x408668
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 0x148]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 1
push dword [ebx + 0x148]
call esi
push 0xd
xor eax, eax
push eax
push eax
push edi
push dword [ebx + 0x6c]
push eax
push dword [ebx + 0x148]
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_DeferWindowPos]
push 1
push dword [ebx + 0x15c]
call esi
mov ecx, dword [ebx + 0x6c]
xor edx, edx
mov eax, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
add eax, 6
push 0xd
push edx
push edx
push edi
add eax, ecx
push eax
push edx
push dword [ebx + 0x15c]
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_DeferWindowPos]
imul eax, dword [ebx + 0xfc], 0xe
add eax, 4
add edi, eax
mov dword [ebp - 0x1c], edi
jmp 0x40869a
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push esi
push dword [ebx + 0x15c]
call edi
push esi
push dword [ebx + 0x15c]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
call esi
push 0
push dword [ebx + 0x148]
call edi
push 0
push dword [ebx + 0x148]
call esi
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp + 0xc]
mov edi, ebx
mov esi, dword [ebp - 0x28]
sub edi, esi
mov ecx, dword [ebp - 0x24]
sub edi, ecx
mov edx, dword [ebp - 0x2c]
sub edi, edx
push 0xd
mov dword [eax + 0x1d0], ecx
xor ecx, ecx
push ecx
push ecx
push dword [ebp - 0x1c]
mov dword [eax + 0x1cc], esi
push esi
push ecx
mov dword [eax + 0x1d4], edi
mov dword [eax + 0x1d8], edx
push dword [eax + 0x170]
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_DeferWindowPos]
add esi, dword [ebp - 0x24]
xor eax, eax
push 0xd
push eax
push eax
push dword [ebp - 0x1c]
push esi
push eax
mov eax, dword [ebp - 0x20]
push dword [eax + 0x184]
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_DeferWindowPos]
push 0xd
xor ecx, ecx
lea eax, [esi + edi]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
push ecx
push ecx
push dword [ebp - 0x1c]
push eax
push ecx
push dword [esi + 0x198]
push edi
call dword [sym.imp.USER32.dll_DeferWindowPos]
mov eax, dword [esi + 0xfc]
add eax, dword [esi + 0xc0]
mov ecx, dword [ebp - 0x1c]
add ecx, eax
mov eax, dword [ebp + 0x14]
push 0xc
sub eax, ecx
push eax
lea eax, [ebx - 1]
push eax
push ecx
push 0
push 0
push dword [esi + 0x1b8]
push edi
call dword [sym.imp.USER32.dll_DeferWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416547
mov esp, ebp
pop ebp
ret 0x10
Function at 0x409de6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push 9
xor eax, eax
lea edi, [ebp - 0x2c]
pop ecx
xor ebx, ebx
mov esi, 0x421720
rep stosd dword es:[edi], eax
or dword [ebp - 0xc], 0xffffffff
or dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [0x421720], eax
je 0x409e51
mov edi, dword [ebp + 8]
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push ebx
push 0x10
push ebx
push dword [esi]
push edi
call dword [eax + 0x10]
test eax, eax
jne 0x409e4a
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp - 4]
call fcn.0040a6e8
test eax, eax
jne 0x409eab
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 4], ebx
add esi, 0x10
cmp dword [esi], ebx
jne 0x409e19
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 8]
mov edi, dword [ebp - 0x2c]
push ecx
push 2
push dword [ebp - 0x20]
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x34]
test eax, eax
jne 0x409eab
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
add edx, 4
test edi, edi
je 0x409e91
mov eax, dword [edx]
xor eax, dword [ecx]
movzx eax, ax
xor eax, dword [edx]
lea edx, [edx + 4]
mov dword [ecx], eax
lea ecx, [ecx + 0x10]
sub edi, 1
jne 0x409e78
mov ecx, dword [ebp - 0x24]
cmp dword [ebp - 0x2c], ebx
je 0x409ea1
mov eax, dword [esi]
push ebx
push ecx
push dword [ebp - 0x2c]
push esi
call dword [eax + 0x20]
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.00409c81
push dword [ebp - 8]
call sub.OLMAPI32.dll_Ordinal_17
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x409ec3
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.00409b6c
mov esp, ebp
pop ebp
ret 8
Function at 0x40be76
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x41c320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x10
pop ecx
mov esi, str.SoftwarePoliciesMicrosoftOffice16.0CommonLanguageResources
and dword [ebp - 0x158], 0
lea edi, [ebp - 0x9c]
mov eax, dword [0x421764]
mov ebx, dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
push 0xe
pop ecx
push 7
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x58]
mov esi, str.SoftwareMicrosoftOffice16.0CommonLanguageResources
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x20]
mov esi, str.UILanguageTag
pop ecx
rep movsd dword es:[edi], dword [esi]
cmp eax, 0xffffffff
jne 0x40bffb
lea eax, [ebp - 0x150]
mov dword [ebp - 0x154], 0xaa
push eax
xor esi, esi
lea eax, [ebp - 0x9c]
inc esi
push esi
push 0
push eax
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
mov dword [ebp - 0x14c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40bf5b
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x14c]
push eax
push 2
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp - 0x150]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x40bf53
cmp dword [ebp - 0x14c], esi
jne 0x40bf53
push eax
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
mov esi, dword [ebp - 0x158]
mov dword [ebx], eax
push dword [ebp - 0x150]
call edi
test esi, esi
je 0x40bff2
lea eax, [ebp - 0x150]
mov dword [ebp - 0x154], 0xaa
push eax
xor esi, esi
lea eax, [ebp - 0x58]
inc esi
push esi
push 0
push eax
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
mov dword [ebp - 0x14c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bfea
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x14c]
push eax
push 2
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp - 0x150]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x40bfd8
cmp dword [ebp - 0x14c], esi
jne 0x40bfd8
push eax
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
jmp 0x40bfde
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push dword [ebp - 0x150]
mov dword [ebx], eax
call edi
jmp 0x40bff2
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov dword [ebx], eax
mov eax, dword [ebx]
mov dword [0x421764], eax
jmp 0x40bffd
mov dword [ebx], eax
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416547
mov esp, ebp
pop ebp
ret 4

Function at 0x40e701
Capabilities:
Allocate thread local storage

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x40e727
cmp al, 3
ja 0x40e727
cmp esi, 2
ja 0x40e727
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
jmp 0x40e718
mov eax, esi
pop esi
ret
Function at 0x40f86f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
mov edi, dword [ecx + 0x24]
xor esi, esi
test edi, edi
jne 0x40f884
cmp dword [ecx + 0x28], esi
jne 0x40f884
xor eax, eax
inc eax
jmp 0x40f8dc
push ebx
mov ebx, dword [ecx + 0x28]
test edi, edi
je 0x40f8b3
call fcn.0041194e
push 5
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40f8af
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x40f8b3
xor eax, eax
jmp 0x40f8db
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test byte [eax], 1
jne 0x40f8c5
cmp word [eax + 0xa], si
je 0x40f8cb
cmp word [eax + 0xc], si
jne 0x40f8ce
xor esi, esi
inc esi
test edi, edi
je 0x40f8d9
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
pop edi
pop esi
ret

Function at 0x40fd39
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
inc edi
cmp dword [ebp + 8], 0
je 0x40fdf5
call fcn.0041194e
push 0xf0
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.0040e694
test eax, eax
je 0x40fdf5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x40fdf5
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, dword [ebp - 4]
mov esi, eax
movzx eax, word [esi]
test ax, ax
je 0x40fde7
mov edx, dword [esi + 4]
mov ecx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 8], edx
mov edx, 0x401
cmp ax, dx
jne 0x40fdb4
mov eax, 0x180
jmp 0x40fdc7
mov dword [ebp + 8], 0x403
mov edx, 0x143
cmp ax, word [ebp + 8]
cmove eax, edx
push esi
push 0
movzx eax, ax
push eax
push ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
add esi, dword [ebp - 8]
test edi, edi
jne 0x40fd8c
mov ebx, dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
je 0x40fe0d
mov eax, dword [ebp - 4]
push 0
push 0
push 0
push 0
push 0x364
push dword [eax + 4]
call fcn.00410551
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41292d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
mov edi, esi
call fcn.0041194e
push 5
push dword [ebp + 8]
mov ebx, eax
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x4129b0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4129b0
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x4129a9
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [0x425a4c]
mov edi, eax
push edi
test ecx, ecx
je 0x41298f
call ecx
jmp 0x412996
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov esi, eax
test esi, esi
je 0x4129a9
push edi
push dword [ebp - 8]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4129b9
mov dword [eax], edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x416224
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41c320]
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 0x41628d
cmp dword [ebp - 0x210], 4
jb 0x41628d
test edi, edi
lea eax, [ebp - 0x20c]
cmovne esi, edi
push esi
push eax
call fcn.00416347
jmp 0x41628f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00416547
mov esp, ebp
pop ebp
ret 8

Function at 0x4162a1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41c320]
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 0x416334
mov ecx, dword [ebp - 0x210]
cmp ecx, 4
jb 0x416334
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.00416347
jmp 0x416336
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00416547
mov esp, ebp
pop ebp
ret 4
Function at 0x416555
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 [0x41c320], eax
je 0x416577
cmp dword [0x41c320], ebx
jne 0x41660b
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 0x41c320
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, 0x41c320
push 4
push edi
mov dword [0x41c320], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push edi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x41c320]
not eax
mov dword [0x421a18], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416846
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x41efb0
call fcn.00416c09
push 1
call fcn.004168c9
pop ecx
test al, al
jne 0x4166ef
push 7
call fcn.00416f9a
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00416894
mov byte [ebp - 0x24], al
mov eax, dword [0x425b2c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4166e8
test eax, eax
jne 0x416759
mov dword [0x425b2c], ecx
push 0x41a360
push 0x41a34c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x41673c
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x416840
push 0x41a348
push 0x41a324
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x425b2c], 2
jmp 0x41675e
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00416a26
pop ecx
call fcn.00416f8e
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x41678e
push esi
call fcn.00416999
pop ecx
test al, al
je 0x41678e
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.004171c9
call esi
call fcn.00416f94
mov esi, eax
cmp dword [esi], edi
je 0x4167ac
push esi
call fcn.00416999
pop ecx
test al, al
je 0x4167ac
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.004170af
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.004170e2
test al, al
jne 0x4167e5
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x4167ee
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.00416a43
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x416840
call fcn.00416c4f
ret
call fcn.00416555
jmp 0x4166d0