joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017b0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
push ebx
push 8
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40181d
call edi
cmp eax, 0x3f0
jne 0x40180b
lea ecx, [ebp - 0x10]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40181d
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401d7f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [ebp - 0x14]
push edx
push ebx
push ebx
push 2
push eax
call esi
test eax, eax
jne 0x401885
call edi
cmp eax, 0x7a
jne 0x401885
mov ecx, dword [ebp - 0x14]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
je 0x401885
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push eax
push edi
push 2
push ecx
call esi
test eax, eax
je 0x401885
lea edx, [ebp - 0x18]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x401898
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401d7f
mov esp, ebp
pop ebp
ret
xor esi, esi
mov dword [ebp - 0x1c], ebx
cmp dword [edi], ebx
jbe 0x4018c6
lea ebx, [edi + 4]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebx]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4018bf
inc esi
add ebx, 8
cmp esi, dword [edi]
jb 0x4018a4
jmp 0x4018c6
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00401d7f
mov esp, ebp
pop ebp
ret

Function at 0x4018f0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401956
lea ecx, [ebp - 0x10]
push ecx
push 0x40aa9c
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401960
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401d7f
mov esp, ebp
pop ebp
ret
Function at 0x401c20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
mov edi, eax
call fcn.00401970
imul eax, eax, 0x64
push 0
push 0x401310
add eax, 0x63
movzx eax, ax
push 0
push eax
push edi
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov ebx, eax
cmp ebx, 1
jne 0x401d5d
push esi
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREBrotherBrother_MFL_Pro
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x401cb9
push 4
push 0x40db40
push 4
push eax
mov eax, dword [ebp - 4]
push str.LangIDEx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x401cad
push 0x14
push 0x36
call fcn.00401700
add esp, 8
mov ebx, eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401cc7
push 0x14
push 0x36
call fcn.00401700
add esp, 8
mov ebx, eax
call fcn.00401070
cmp al, 1
jne 0x401d46
test esi, esi
jne 0x401d76
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 4]
push eax
push esi
push 0xf013f
push esi
push esi
push esi
push str.SOFTWAREBrotherBrother_MFL_Pro
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x401d38
mov ecx, dword [ebp - 4]
push 4
push 0x40db40
push 4
push eax
push str.LangIDEx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x401d2c
push 0x14
push 0x36
call fcn.00401700
add esp, 8
mov ebx, eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401d46
push 0x14
push 0x36
call fcn.00401700
add esp, 8
mov ebx, eax
test esi, esi
jne 0x401d76
push 0x44
push 0x33
call fcn.00401700
add esp, 8
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 0xffffffff
jne 0x401d79
push 0x14
push 0x36
call fcn.00401700
add esp, 8
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401d7f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c004]
jne 0x401d89
repz ret
jmp fcn.00402085
Function at 0x406dfc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403588
and dword [ebp - 0x14], 0
cmp dword [0x40db18], 0
mov dword [ebp - 0x18], eax
jne 0x406eaf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406f57
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40a180
push ebx
call edi
test eax, eax
je 0x406f57
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40db18], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40db1c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40db20], eax
call edi
push eax
call esi
mov dword [0x40db28], eax
test eax, eax
je 0x406eaf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40db24], eax
mov eax, dword [0x40db24]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406f08
cmp dword [0x40db28], ecx
je 0x406f08
push eax
call esi
push dword [0x40db28]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406f08
test ebx, ebx
je 0x406f08
call edi
test eax, eax
je 0x406eff
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406eff
test byte [ebp - 8], 1
jne 0x406f08
or dword [ebp + 0x10], 0x200000
jmp 0x406f3b
mov eax, dword [0x40db1c]
cmp eax, dword [ebp - 0x18]
je 0x406f3b
push eax
call esi
test eax, eax
je 0x406f3b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406f3b
mov eax, dword [0x40db20]
cmp eax, dword [ebp - 0x18]
je 0x406f3b
push eax
call esi
test eax, eax
je 0x406f3b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40db18]
call esi
test eax, eax
je 0x406f57
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406f59
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401d7f
leave
ret
Function at 0x401930
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0
mov eax, 0x444980
call fcn.00442f38
mov edi, ecx
mov esi, dword [ebp + 8]
xor bl, bl
test esi, esi
je 0x401a14
cmp word [ebp + 0xc], 0
jne 0x401a03
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4914a8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4907e4]
cmp eax, dword [ecx + 4]
jg 0x401a1e
cmp dword [esi + 4], 0
jle 0x401992
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x49017c], eax
call fcn.004018c3
inc dword [eax + 0x180]
mov al, byte [0x4907e0]
cmp al, byte [esi + 1]
je 0x4019c3
push esi
mov ecx, edi
call fcn.00401acd
push 0
mov ecx, edi
call fcn.00401a86
mov cl, byte [esi + 1]
mov bl, al
mov byte [0x4907e0], cl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4907dc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4907dc]
cmp eax, 0x7530
jbe 0x4019dc
cmp dword [esi + 4], 0
jg 0x4019e3
cmp eax, 0x7d00
jbe 0x401a14
push esi
mov ecx, edi
call fcn.00401acd
push 0
mov ecx, edi
call fcn.00401a86
mov bl, al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4907dc], eax
jmp 0x401a14
push esi
call fcn.00401cba
push 1
mov ecx, edi
call fcn.00401a86
mov bl, al
mov al, bl
call fcn.00442f01
ret 8
push 0x4907e4
call fcn.0044327a
cmp dword [0x4907e4], 0xffffffff
pop ecx
jne 0x401976
and dword [ebp - 4], 0
mov al, byte [esi + 1]
mov byte [0x4907e0], al
or dword [ebp - 4], 0xffffffff
push 0x4907e4
call fcn.00443230
pop ecx
jmp 0x401976

Function at 0x401bfd
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x48f85c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
test eax, eax
je 0x401c51
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x401c51
lea eax, [ebp - 0x104]
mov byte [ebp - 0xe5], 0
push eax
lea eax, [esi + 0x1d4]
push 0x40
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00442ef0
leave
ret 4
Function at 0x40416f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x48f85c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x204]
push 0xff
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x4042a7
push 4
mov ecx, str.OpusApp
lea eax, [ebp - 0x204]
pop ebx
mov dx, word [eax]
xor esi, esi
cmp dx, word [ecx]
jne 0x4041d7
test dx, dx
je 0x4041d3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4041d7
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x4041b1
mov eax, esi
jmp 0x4041dc
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4042a7
push 0xff
lea eax, [ebp - 0x204]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x4042a7
mov ecx, str.Word
lea eax, [ebp - 0x204]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40422e
test dx, dx
je 0x40422a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40422e
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x40420a
mov eax, esi
jmp 0x404233
sbb eax, eax
or eax, 1
test eax, eax
je 0x4042a3
mov ecx, str.Microsoft_Word
lea eax, [ebp - 0x204]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404264
test dx, dx
je 0x404269
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404264
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x404242
jmp 0x404269
sbb esi, esi
or esi, 1
test esi, esi
je 0x4042a3
push 6
lea eax, [ebp - 0x204]
push str.Word__
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x4042a3
push 0x10
lea ecx, [ebp - 0x204]
push str.Microsoft_Word__
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x4042a7
mov al, 1
jmp 0x4042a9
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00442ef0
leave
ret
Function at 0x4043e5
Capabilities:
Get graphical window text

Disassembly:
push 0xa14
mov eax, 0x445041
call fcn.00442f6c
mov esi, dword [ebp + 8]
xor bl, bl
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xa1c], esi
call fcn.00403fdb
cmp dword [eax + 4], 1
ja 0x404539
push esi
call fcn.004042b8
pop ecx
test al, al
je 0x404539
mov esi, 0x400
lea eax, [ebp - 0xa18]
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push esi
lea eax, [ebp - 0x618]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
xor esi, esi
push 0x1ff
lea eax, [ebp - 0x618]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jg 0x40446d
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x404448
cmp word [ebp - 0x618], 0
je 0x404539
push 0x1ff
lea eax, [ebp - 0xa18]
push eax
push dword [ebp - 0xa1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x404539
lea eax, [ebp - 0xa18]
push eax
lea eax, [ebp - 0x618]
push eax
call fcn.00404c70
pop ecx
pop ecx
lea ecx, [ebp - 0x618]
cmp ecx, eax
jne 0x404539
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameW]
push 0x44a200
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x404539
mov esi, 0x490824
mov bl, 1
mov dword [ebp - 0xa20], esi
cmp dword [0x49083c], eax
je 0x404515
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0xa1c], bl
and dword [ebp - 4], 0
mov dword [0x490820], edi
or dword [ebp - 4], 0xffffffff
cmp dword [0x49083c], 0
je 0x404539
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
call fcn.00442f16
ret
Function at 0x404541
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x48f85c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x408]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 0x81c], eax
lea eax, [ebp - 0x404]
push 0x1ff
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x404760
lea eax, [ebp - 0x404]
push 0x44a098
push eax
call fcn.00404c70
pop ecx
pop ecx
lea ecx, [ebp - 0x404]
cmp eax, ecx
jbe 0x404760
movzx edx, word [eax - 2]
lea esi, [eax + 0x1c]
movzx ebx, word [esi]
mov dword [ebp - 0x818], 0x28
mov ecx, ebx
cmp word [ebp - 0x818], dx
jne 0x4045dc
mov dword [ebp - 0x818], 0x29
cmp word [ebp - 0x818], cx
je 0x4045f7
mov dword [ebp - 0x818], 0x5b
cmp word [ebp - 0x818], dx
jne 0x4045ff
push 0x5d
pop edx
cmp dx, cx
jne 0x4045ff
lea esi, [eax + 0x1e]
movzx eax, word [esi]
jmp 0x404601
mov eax, ebx
test ax, ax
je 0x4046dc
push 0xd
push str.___Microsoft
push esi
xor ebx, ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x404627
push 3
add esi, 0x1a
pop ebx
push 7
pop eax
sub eax, ebx
push eax
lea eax, [ebx*2 + str.___Word]
push eax
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x404652
push str.winword.exe
push str.OpusApp
jmp 0x404701
push 8
pop eax
sub eax, ebx
push eax
lea eax, [ebx*2 + str.___Excel]
push eax
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x404697
push str.excel.exe
push str.XLMAIN
push dword [ebp - 0x408]
push edi
call fcn.00404b3f
add esp, 0x10
test al, al
je 0x404760
push 4
pop eax
jmp 0x404717
push 0xd
pop eax
sub eax, ebx
push eax
lea eax, [ebx*2 + 0x44a168]
push eax
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x404760
push str.powerpnt.exe
push str.PPTFrameClass
push dword [ebp - 0x408]
push edi
call fcn.00404b3f
add esp, 0x10
test al, al
je 0x404760
push 2
jmp 0x404691
push 0x12
lea eax, [ebp - 0x404]
push str.Microsoft_Excel__
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x404760
push str.excel.exe
push str.XLMAIN
push dword [ebp - 0x408]
push edi
call fcn.00404b3f
add esp, 0x10
test al, al
je 0x404760
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x81c]
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x404]
push eax
mov dword [ebp - 0x810], ecx
lea ecx, [ebp - 0x80c]
push 0x1ff
push ecx
mov dword [ebp - 0x814], edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea ecx, [ebp - 0x814]
push ecx
mov ecx, 0x490840
call fcn.00403bb3
mov al, 1
jmp 0x404762
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00442ef0
leave
ret
Function at 0x404d5b
Capabilities:
Get common file path
Identify system language via api
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x48f85c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push str.zWinRes.dll
mov edi, ecx
call fcn.0043b9d2
mov dword [edi], eax
mov dword [esp], str.reslib.dll
call fcn.0043b9d2
cmp dword [edi], 0
pop ecx
mov dword [edi + 4], eax
je 0x404ee5
test eax, eax
je 0x404ee5
push ebx
lea ebx, [edi + 8]
push ebx
push str.ReslibStartupEx
push eax
call fcn.00404cae
add esp, 0xc
test al, al
je 0x404ee4
lea eax, [edi + 0xc]
push eax
push str.ReslibShutdown
push dword [edi + 4]
call fcn.00404cae
add esp, 0xc
test al, al
je 0x404ee4
lea eax, [edi + 0x10]
push eax
push str.LoadStringFromRes
push dword [edi + 4]
call fcn.00404cae
add esp, 0xc
test al, al
je 0x404ee4
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov esi, 0x409
call fcn.0043ce5c
mov ecx, eax
call fcn.0043cfc2
cmp dword [eax + 0x14], 8
jb 0x404e21
mov eax, dword [eax]
xor ecx, ecx
cmp word [eax], cx
je 0x404e40
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
jmp 0x404e68
lea eax, [ebp - 0x20c]
push eax
push ecx
push ecx
push 0x1a
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x404e68
push 0x44a338
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp word [ebp - 0x20c], 0
je 0x404eb9
push str.data
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.Zoom.us.ini
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
lea ecx, [ebp - 0x20c]
movzx eax, ax
push ecx
push eax
push str.com.zoom.client.langid
push str.ZoomChat
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
push esi
mov esi, dword [ebx]
mov ecx, esi
push dword [edi]
call dword [0x44977c]
call esi
pop ecx
pop ecx
test al, al
jne 0x404ee3
mov esi, dword [ebx]
mov ecx, esi
push 0x409
push dword [edi]
call dword [0x44977c]
call esi
pop ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00442ef0
leave
ret

Function at 0x40c91f
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
call fcn.0043a9d0
pop ecx
pop ecx
cmp eax, 0x3e
jl 0x40c97d
mov eax, dword [esi + 0x128]
cmp dword [eax], 2
je 0x40c97d
cmp dword [eax], 3
je 0x40c97d
push edi
mov edi, ebx
mov esi, ebx
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.USER32.dll_FindWindowExW]
mov edi, eax
test edi, edi
je 0x40c978
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edi
call dword [0x44977c]
call dword [ebp + 8]
test eax, eax
je 0x40c978
inc esi
cmp esi, 0x7d0
jb 0x40c94b
mov al, 1
pop edi
jmp 0x40c990
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnumWindows]
dec eax
neg eax
sbb al, al
inc al
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40d77d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x48f85c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x414]
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x208
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push ebx
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x414]
mov ebx, 0x104
push ebx
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40d80d
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40d80d
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.VCRUNTIME140.dll_wcsstr
pop ecx
pop ecx
lea ecx, [ebp - 0x20c]
cmp eax, ecx
jne 0x40d80d
mov al, 1
jmp 0x40d80f
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00442ef0
leave
ret 8

Function at 0x414962
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x48f85c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x28], edi
jne 0x414a98
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ebx, 0x104
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x414a94
push str.Magnification.dll
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x28], eax
test eax, eax
je 0x414a94
push str.MagInitialize
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MagUninitialize
push dword [esi + 0x28]
mov dword [esi + 0x78], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MagSetColorEffect
push dword [esi + 0x28]
mov dword [esi + 0x7c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MagSetWindowSource
push dword [esi + 0x28]
mov dword [esi + 0x80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MagSetWindowTransform
push dword [esi + 0x28]
mov dword [esi + 0x84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MagSetWindowFilterList
push dword [esi + 0x28]
mov dword [esi + 0x8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MagSetImageScalingCallback
push dword [esi + 0x28]
mov dword [esi + 0x88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x90], eax
cmp dword [esi + 0x78], edi
je 0x414a8d
cmp dword [esi + 0x7c], edi
je 0x414a8d
cmp dword [esi + 0x84], edi
je 0x414a8d
cmp dword [esi + 0x8c], edi
je 0x414a8d
cmp dword [esi + 0x88], edi
je 0x414a8d
test eax, eax
jne 0x414a98
mov ecx, esi
call fcn.004145e4
xor al, al
jmp 0x414a9a
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00442ef0
leave
ret
Function at 0x41678b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x48f85c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
push 0x1ec
mov dword [ebp - 0x804], eax
lea eax, [ebp - 0x7f0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x7f0]
xor ecx, ecx
mov dword [ebp - 0x7f4], ecx
push ecx
push 0x1ec
push eax
lea eax, [ebp - 0x7f4]
push eax
push ecx
push esi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
lea eax, [ebp - 0x7f8]
mov ecx, 0x100
push eax
push ecx
lea eax, [ebp - 0x204]
mov dword [ebp - 0x7f8], ecx
push eax
push esi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
push 0x20019
push 1
push 0
push 1
push esi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov esi, eax
cmp esi, 0xffffffff
je 0x416875
lea eax, [ebp - 0x7fc]
mov dword [ebp - 0x7fc], 0x400
push eax
lea eax, [ebp - 0x604]
push eax
lea eax, [ebp - 0x800]
push eax
push 0
push str.EDID
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41686e
push dword [ebp - 0x804]
lea eax, [ebp - 0x604]
mov ecx, ebx
push eax
call fcn.00416a29
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00442ef0
leave
ret 0xc