joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a7a4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
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 + 8]
mov dword [ebp - 0x9c], eax
test esi, esi
je 0x43a9bd
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x43a9bd
xor eax, eax
mov byte [ebp - 0x95], al
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x88]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x94], eax
test eax, eax
je 0x43a9b5
push edi
push eax
call fcn.00442c83
pop ecx
mov edi, eax
push edi
push dword [ebp - 0x94]
push dword [ebp - 0x88]
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x43a9ad
test bl, 1
je 0x43a89e
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x90]
push eax
push 0x484090
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x43a89e
cmp dword [ebp - 0x8c], 0
mov esi, dword [ebp - 0x9c]
je 0x43a8a4
mov ecx, dword [ebp - 0x90]
cmp dword [ecx], 0xfeef04bd
jne 0x43a8a4
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._04d
push 0x40
push esi
call fcn.00401e36
add esp, 0x1c
mov byte [ebp - 0x95], 1
jmp 0x43a8a4
mov esi, dword [ebp - 0x9c]
test bl, 2
je 0x43a9ad
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x94]
push eax
push str.VarFileInfoTranslation
lea ebx, [esi + 0x40]
push edi
mov byte [ebx], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x43a9ad
cmp dword [ebp - 0x8c], 4
jb 0x43a9ad
mov esi, 0x80
lea eax, [ebp - 0x84]
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x94]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04xFileDescription
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.00401e36
add esp, 0x20
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x84]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x43a9ad
mov esi, dword [ebp - 0x8c]
test esi, esi
je 0x43a9ad
cmp dword [ebp - 0x90], 0
je 0x43a9ad
mov eax, 0xff
lea ecx, [eax + 1]
cmp esi, ecx
cmovae esi, eax
mov dword [ebp - 0x8c], esi
test esi, esi
je 0x43a9a2
test ebx, ebx
jne 0x43a980
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov esi, dword [ebp - 0x8c]
jmp 0x43a9a2
cmp esi, ecx
jbe 0x43a992
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x22
jmp 0x43a972
push esi
push dword [ebp - 0x90]
push ebx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov ecx, dword [ebp - 0x9c]
mov byte [ecx + esi + 0x40], 0
push edi
call fcn.00442c8c
pop ecx
pop edi
mov al, byte [ebp - 0x95]
jmp 0x43a9bf
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00442ef0
leave
ret
Function at 0x43b083
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x48f85c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
test edi, edi
jne 0x43b0ab
xor al, al
jmp 0x43b159
push ebx
xor bl, bl
mov byte [ebp - 9], bl
test eax, eax
je 0x43b156
push esi
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x43b0e3
push dword [ebp - 0x10]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x43b155
and dword [ebp - 0x14], 0
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 9]
push eax
push str.QueryFullProcessImageNameW
push 0x484058
call fcn.00439f11
mov bl, byte [ebp - 9]
add esp, 0x1c
test bl, bl
jne 0x43b14e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp + 0x10]
mov esi, eax
push edi
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
setne bl
test eax, eax
jne 0x43b14e
push dword [ebp + 0x10]
push edi
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
setne bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00442ef0
leave
ret

Function at 0x43b3f2
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x48f85c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x43b4ab
xor eax, eax
cmp ax, word [esi]
je 0x43b4ab
push 0x410
push eax
lea eax, [ebp - 0x414]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x414]
push 0
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x43b4ab
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43b4a7
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.downlevel
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43b4ab
mov al, 1
jmp 0x43b4ad
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00442ef0
leave
ret
Function at 0x43b5e3
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x48f85c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x60]
mov word [ebp - 0x54], 0x500
push eax
xor ebx, ebx
push 8
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x58], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x43b63b
lea eax, [ebp - 0x5c]
push eax
push 0x4c
lea eax, [ebp - 0x50]
push eax
push 1
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0x60]
test eax, eax
jne 0x43b64a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00442ef0
leave
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x43b63b
push esi
push dword [ebp - 0x64]
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x64]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, esi
pop esi
jmp 0x43b63d

Function at 0x43b89f
Capabilities:
Enumerate processes
Get process image filename
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
mov eax, dword [0x48f85c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x33c], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x43b8d6
xor al, al
jmp 0x43b9c3
lea eax, [ebp - 0x338]
mov dword [ebp - 0x338], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x43b9ba
lea eax, [ebp - 0x314]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x43b9a3
push dword [ebp - 0x330]
push ebx
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x43b9b8
cmp dword [ebp + 0xc], ebx
jl 0x43b957
or dword [ebp - 0x10c], 0xffffffff
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x330]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x43b957
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x10c], eax
jne 0x43b99d
push 0x104
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x104
push eax
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameA
push 0x3e7
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x33c]
lea eax, [ebp - 0x338]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x43b8f5
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00442ef0
leave
ret
Function at 0x43bc37
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x48f85c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push 0x4841bc
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
xor edi, edi
push eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x43bcea
cmp dword [ebp - 0x18], edi
je 0x43bcea
movzx eax, word [ebx + 0xe]
mov dword [ebx], 0x28
mov dword [ebx + 0x10], edi
cmp eax, 0x10
jae 0x43bc8f
push 4
pop edi
mov cl, al
shl edi, cl
push esi
mov esi, dword [ebx + 0x14]
lea eax, [edi + 0x36]
push dword [ebp - 0x18]
mov dword [ebp - 0xa], eax
mov ecx, 0x4d42
add eax, esi
mov word [ebp - 0x14], cx
mov dword [ebp - 0x12], eax
xor eax, eax
push 0xe
mov dword [ebp - 0xe], eax
lea eax, [ebp - 0x14]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [ebp - 0x18]
mov eax, dword [ebx]
add eax, edi
push eax
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [ebp - 0x18]
push esi
push 1
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x34
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00442ef0
leave
ret

Function at 0x43bef5
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0x10
push 0x48acc0
call fcn.00443870
mov ebx, ecx
mov dword [ebp - 0x20], ebx
xor edi, edi
push edi
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x43bfce
push edi
push edi
push edi
push 3
push edi
push edi
push edi
push 0xffffffffffffffff
push edi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x43bf38
cmp eax, 0x80010119
jne 0x43bfc8
push ebx
push 0x486378
push 1
push edi
push 0x486368
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x43bfc8
mov dword [ebp - 4], edi
mov ecx, dword [ebx]
mov esi, dword [ecx]
lea eax, [ebx + 4]
push eax
push edi
push edi
push 0x80
push edi
push edi
push edi
push str.ROOTCIMV2
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x44977c]
call dword [esi + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x43bf9e
test eax, eax
js 0x43bfc1
push edi
push edi
push 3
push 3
push edi
push edi
push 0xa
push dword [ebx + 4]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x43bfc1
mov byte [ebx + 8], 1
xor eax, eax
jmp 0x43bfd1
mov ecx, ebx
call fcn.0043bfe1
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43c0e9
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x48f85c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
push eax
mov esi, ecx
movlpd qword [ebp - 0x10], xmm0
call fcn.0043c097
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x43c15e
cmp dword [edi + 4], 0
je 0x43c15e
push 0x1d4c0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x43c147
mov eax, dword [edi + 8]
xor esi, esi
inc esi
mov dword [0x491240], eax
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x43c161
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.0043c17d
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, dword [ebp - 8]
jmp 0x43c161
xor esi, esi
inc esi
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x43c16d
call fcn.00403051
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00442ef0
leave
ret

Function at 0x43c21f
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 8]
push eax
push 4
push edx
push 0x43c280
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
test ecx, ecx
jne 0x43c24a
xor al, al
jmp 0x43c27b
mov eax, dword [esi]
push dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [esi]
add ecx, 0xc
call fcn.00415f51
mov eax, dword [esi]
mov ecx, 0x491130
push dword [eax + 8]
push dword [ebp + 8]
call fcn.0043c05c
mov eax, dword [esi]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x43c33a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x48f85c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov edx, dword [ebp + 8]
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43c3af
cmp dword [ebp - 8], 1
je 0x43c384
cmp dword [ebp - 8], 2
jne 0x43c39f
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x43c3a9
test ecx, ecx
je 0x43c3a4
test cl, 1
jne 0x43c39f
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x43c3a9
push 0xd
pop eax
jmp 0x43c3af
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00442ef0
leave
ret 0xc
Function at 0x43c62d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x48f85c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push 2
push eax
xor edi, edi
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call fcn.00437e0e
mov eax, dword [ebp + 0x14]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push edi
push esi
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
test esi, esi
je 0x43c68d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00442ef0
leave
ret 0x10
Function at 0x43c740
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x48f85c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 4
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ecx, eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
jne 0x43c773
mov eax, 0x480464
jmp 0x43c8fc
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov word [0x491248], ax
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x43c783
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push 1
push 0x20
sub esi, edx
push ecx
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
test eax, eax
jne 0x43c8eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x43c8eb
mov eax, dword [ebp - 0xc]
cmp eax, 0x40000
jae 0x43c8eb
lea edi, [eax + 1]
push edi
call fcn.00442c83
mov ebx, eax
pop ecx
test ebx, ebx
je 0x43c8eb
push edi
xor eax, eax
push eax
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
mov edi, dword [ebp - 0x2c]
push ebx
push 1
push 0x20
push edi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
test eax, eax
je 0x43c8e2
mov edx, dword [ebp - 8]
xor eax, eax
mov dword [ebp - 0x30], eax
test edx, edx
je 0x43c8e2
mov eax, ebx
mov dword [ebp - 0x2c], ebx
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x3c], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x38], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x34]
jne 0x43c842
sub ecx, dword [ebp - 0x38]
sar ecx, 1
cmp ecx, esi
jb 0x43c8ab
push esi
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x28]
call fcn.0043c6bf
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, dword [ebp + 8]
cmovae eax, dword [ebp - 0x28]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43c897
test dx, dx
je 0x43c893
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43c897
add eax, 4
add ecx, 4
test dx, dx
jne 0x43c871
xor eax, eax
jmp 0x43c89c
sbb eax, eax
or eax, 1
test eax, eax
je 0x43c8c5
lea ecx, [ebp - 0x28]
call fcn.00403176
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
inc ecx
add eax, 0x24
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
cmp ecx, edx
jb 0x43c835
jmp 0x43c8e2
mov eax, dword [ebp - 0x2c]
push dword [eax]
push 0x20
push 0x491248
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.00403176
push ebx
call fcn.00442c8c
pop ecx
jmp 0x43c8ee
mov edi, dword [ebp - 0x2c]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 0x491248
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00442ef0
leave
ret
Function at 0x43c909
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x48f85c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx], 0
je 0x43c933
lea eax, [ebp - 0x20]
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x43c933
mov eax, dword [ebp - 0x1c]
jmp 0x43c935
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00442ef0
leave
ret

Function at 0x43c97d
Capabilities:
Start service

Disassembly:
push esi
push edi
xor esi, esi
mov edi, ecx
push esi
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x43c995
xor al, al
jmp 0x43c9b8
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.0043c909
inc esi
cmp eax, 4
je 0x43c9b5
cmp esi, 0x64
jl 0x43c995
cmp eax, 4
sete al
pop edi
pop esi
ret

Function at 0x43d38d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x48f85c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov ecx, ebx
push 0x480464
lea esi, [edi + 0xe0]
call fcn.0043a04d
test al, al
je 0x43d413
push 0x200
xor ebx, ebx
lea eax, [ebp - 0x204]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x204]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x43d41b
lea eax, [ebp - 0x204]
mov ecx, esi
push eax
call fcn.004031cf
push 0x484090
mov ecx, esi
call fcn.0043cd8a
push 0x44a338
mov ecx, esi
call fcn.0043cd8a
jmp 0x43d41b
push ebx
mov ecx, esi
call fcn.0041f571
push esi
mov ecx, edi
call fcn.0041f571
push str.data_
mov ecx, edi
call fcn.0043cd8a
push str.Zoom.us.ini
mov ecx, edi
call fcn.0043cd8a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00442ef0
leave
ret 4

Function at 0x43dd9e
Capabilities:
Read file via mapping

Disassembly:
push 0x10
push 0x48b028
call fcn.00443870
mov esi, ecx
mov dword [ebp - 0x20], esi
lea eax, [esi + 0x28]
xor ebx, ebx
cmp dword [eax + 0x18], ebx
je 0x43ddc0
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], ebx
cmp dword [esi + 4], ebx
jne 0x43de25
mov edi, ebx
cmp dword [esi], edi
je 0x43dde5
push dword [ebp + 8]
push ebx
push ebx
push 6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [esi + 4], edi
test edi, edi
je 0x43de25
mov edx, dword [ebp + 8]
mov ecx, edx
shr ecx, 1
mov al, byte [ecx + edi]
mov byte [ecx + edi], al
mov al, byte [edi + edx - 1]
mov byte [edi + edx - 1], al
mov dword [esi + 0xc], edx
mov byte [ebp - 0x19], 1
jmp 0x43de25
mov dword [ebp - 4], 0xfffffffe
add esi, 0x28
cmp dword [esi + 0x18], ebx
je 0x43de3b
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x43ff8f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
cmp dword [ecx + 0x14], 8
jb 0x43ff9d
mov ecx, dword [ecx]
push ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop ebp
ret 0x14

Function at 0x440311
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x440421
xor eax, eax
cmp ax, word [edi]
je 0x440421
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x44033c
call fcn.0044024c
push ebx
push 0x80
push 3
push ebx
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x440421
test eax, eax
je 0x440421
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x40
jb 0x440421
push ebx
push edi
push ebx
push 2
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
je 0x440421
test eax, eax
je 0x440421
push edi
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x440421
lea edx, [ecx + edi]
mov dword [esi + 8], edx
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 4], edx
cmp eax, 0x40
jb 0x440421
lea edi, [eax + ecx]
lea eax, [edi + 0xf8]
mov dword [esi + 0x10], edi
cmp edx, eax
jb 0x440421
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x440421
cmp dword [edi], 0x4550
jne 0x440421
movzx eax, word [edi + 4]
mov ecx, 0x14c
cmp ax, cx
je 0x440401
mov ecx, 0x8664
cmp ax, cx
jne 0x440421
mov bl, 1
mov eax, 0x108
jmp 0x440406
mov eax, 0xf8
lea edx, [edi + eax]
mov byte [esi + 0x18], bl
mov dword [esi + 0x14], edx
movzx ecx, word [edi + 6]
imul ecx, ecx, 0x28
add ecx, edx
cmp dword [ebp - 4], ecx
jb 0x440421
mov al, 1
jmp 0x44042a
mov ecx, esi
call fcn.0044024c
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4