joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401253
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x42f094]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
call fcn.00403a98
and dword [ebp - 0x118], 0
lea eax, [ebp - 0x118]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push str._user_path
lea ecx, [ebp - 0x130]
mov esi, eax
call fcn.004017bc
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x130]
push eax
lea ecx, [esi + ecx*4]
push ecx
push esi
call fcn.00403bcd
add esp, 0xc
lea ecx, [ebp - 0x130]
mov esi, eax
call fcn.004017e4
push esi
call fcn.00404890
mov esi, str.ZoomCptService
push esi
call fcn.00404fce
push esi
mov dword [0x430f88], eax
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.0040f8a0
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x104]
and dword [ebp - 0x108], 0
add esp, 0x14
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x110], 0x4013b0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0040a55e
leave
ret 0x10
Function at 0x403bff
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42f094]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
test esi, esi
je 0x403cc8
test eax, eax
je 0x403cc8
cmp dword [ebp + 0x10], 0
je 0x403cc8
push ebx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push esi
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
test eax, eax
je 0x403cc3
push edi
push eax
call fcn.0040aa1f
pop ecx
mov edi, eax
push edi
push dword [ebp - 0x14]
push dword [ebp - 8]
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x403cbb
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x423cbc
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x403cbb
cmp dword [ebp - 0xc], ebx
je 0x403cbb
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0xfeef04bd
jne 0x403cbb
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 dword [ebp + 0x10]
push dword [ebp - 0x18]
call fcn.0040481d
add esp, 0x1c
mov bl, 1
push edi
call fcn.0040a56f
pop ecx
pop edi
mov al, bl
pop ebx
jmp 0x403cca
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040a55e
leave
ret
Function at 0x403cd7
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x42f094]
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 0x403eed
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x403eed
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 0x403ee5
push edi
push eax
call fcn.0040aa1f
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 0x403edd
test bl, 1
je 0x403dd1
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x90]
push eax
push 0x423cbc
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x403dd1
cmp dword [ebp - 0x8c], 0
mov esi, dword [ebp - 0x9c]
je 0x403dd7
mov ecx, dword [ebp - 0x90]
cmp dword [ecx], 0xfeef04bd
jne 0x403dd7
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.0040481d
add esp, 0x1c
mov byte [ebp - 0x95], 1
jmp 0x403dd7
mov esi, dword [ebp - 0x9c]
test bl, 2
je 0x403edd
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 0x403edd
cmp dword [ebp - 0x8c], 4
jb 0x403edd
mov esi, 0x80
lea eax, [ebp - 0x84]
push esi
push 0
push eax
call fcn.0040dd30
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.0040481d
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 0x403edd
mov esi, dword [ebp - 0x8c]
test esi, esi
je 0x403edd
cmp dword [ebp - 0x90], 0
je 0x403edd
mov eax, 0xff
lea ecx, [eax + 1]
cmp esi, ecx
cmovae esi, eax
mov dword [ebp - 0x8c], esi
test esi, esi
je 0x403ed2
test ebx, ebx
jne 0x403eb1
call fcn.00412743
mov dword [eax], 0x16
call fcn.0040facb
mov esi, dword [ebp - 0x8c]
jmp 0x403ed2
cmp esi, ecx
jbe 0x403ec2
call fcn.00412743
mov dword [eax], 0x22
jmp 0x403ea4
push esi
push dword [ebp - 0x90]
push ebx
call fcn.0040d7b0
add esp, 0xc
mov ecx, dword [ebp - 0x9c]
mov byte [ecx + esi + 0x40], 0
push edi
call fcn.0040a56f
pop ecx
pop edi
mov al, byte [ebp - 0x95]
jmp 0x403eef
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a55e
leave
ret
Function at 0x4045f5
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x42f094]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4046ae
xor eax, eax
cmp ax, word [esi]
je 0x4046ae
push 0x410
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0040dd30
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 0x4046ae
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 0x4046aa
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 0x4046ae
mov al, 1
jmp 0x4046b0
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040a55e
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
mov eax, dword [0x42f094]
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 0x4046f4
xor al, al
jmp 0x4047e0
lea eax, [ebp - 0x338]
mov dword [ebp - 0x338], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4047d7
lea eax, [ebp - 0x314]
push edi
push eax
call fcn.00412847
pop ecx
pop ecx
test eax, eax
jne 0x4047c0
push dword [ebp - 0x330]
push ebx
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4047d5
cmp dword [ebp + 0xc], ebx
jl 0x404774
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 0x404774
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x10c], eax
jne 0x4047ba
push 0x104
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0040dd30
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 0x404713
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.0040a55e
leave
ret
Function at 0x404dfd
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x42f094]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx], 0
je 0x404e33
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x404e33
mov eax, dword [ebp - 0x10]
jmp 0x404e35
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a55e
leave
ret

Function at 0x405089
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42f094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
push eax
lea eax, [ebp + 8]
mov dword [ebp - 0x210], ebx
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], ebx
push eax
push str.WTSQueryUserToken
push str.Wtsapi32.dll
call fcn.00404a29
add esp, 0x14
cmp dword [ebp - 0x214], ebx
je 0x4051c3
test esi, esi
je 0x4051c3
mov ecx, str.Zoom
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405118
test dx, dx
je 0x405114
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405118
add eax, 4
add ecx, 4
test dx, dx
jne 0x4050f2
mov eax, ebx
jmp 0x40511d
sbb eax, eax
or eax, 1
test eax, eax
je 0x405157
mov ecx, str.ZoomRooms
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40514e
test dx, dx
je 0x40514a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40514e
add eax, 4
add ecx, 4
test dx, dx
jne 0x405128
mov eax, ebx
jmp 0x405153
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4051c3
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0040dd30
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x210]
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4051c3
test edi, edi
je 0x4051c3
push 0x423cbc
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00412756
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00412756
lea eax, [ebp - 0x20c]
push eax
push ebx
push edi
call fcn.0040f8a0
add esp, 0x24
mov bl, 1
cmp dword [ebp - 0x210], 0
je 0x4051d8
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a55e
leave
ret 0xc

Function at 0x405293
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0
jbe 0x4052bb
cmp dword [esi + 0xc], 0
je 0x4052bb
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4052bd
xor al, al
pop esi
pop ebp
ret 4
Function at 0x405535
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x42f094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x61c]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0x208
push 0
push eax
call fcn.0040dd30
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0040dd30
push 1
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
push esi
push edi
push ebx
call fcn.00405885
add esp, 0x30
test eax, eax
je 0x405653
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0040dd30
lea eax, [ebp - 0x414]
mov esi, 0x104
push eax
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040f8a0
push str..tmp
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00412756
add esp, 0x24
lea eax, [ebp - 0x20c]
push 0
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
call fcn.004011cc
test esi, esi
je 0x40564f
xor ecx, ecx
inc ecx
push ecx
push ecx
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, eax
call fcn.004035ab
test al, al
jne 0x40562a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
jmp 0x405661
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x405626
mov eax, esi
jmp 0x405661
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x405626
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a55e
leave
ret

Function at 0x405850
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x405881
cmp dword [ebp + 0xc], 0
je 0x405881
push dword [ebp + 8]
xor eax, eax
push eax
push eax
push 0x26
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x405881
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405885
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x42f094]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x41c], eax
xor eax, eax
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040dd30
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0040dd30
add esp, 0x18
test edi, edi
je 0x405902
xor eax, eax
cmp word [edi], ax
je 0x405902
push edi
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040f8a0
add esp, 0xc
jmp 0x40591b
lea eax, [ebp - 0x414]
push eax
xor eax, eax
push eax
call fcn.004057d4
pop ecx
pop ecx
test eax, eax
je 0x4059f6
mov edi, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test esi, esi
je 0x405951
xor eax, eax
cmp word [esi], ax
je 0x405951
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040f8a0
add esp, 0xc
jmp 0x40597d
lea eax, [ebp - 0x20c]
push eax
call fcn.00405801
pop ecx
test eax, eax
je 0x4059f6
cmp byte [ebp + 0x1c], 0
je 0x40597d
xor ecx, ecx
lea eax, [ebp - 0x20c]
push ecx
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x4059aa
lea ecx, [ebp - 0x414]
push ecx
push 0x104
push eax
call fcn.0040f8a0
add esp, 0xc
test ebx, ebx
je 0x4059c3
lea eax, [ebp - 0x20c]
push eax
push 0x104
push ebx
call fcn.0040f8a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4059f1
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0040536a
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
jmp 0x405a00
xor eax, eax
inc eax
jmp 0x405a00
push 3
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a55e
leave
ret
Function at 0x405a82
Capabilities:
Read file via mapping

Disassembly:
push 0x10
push 0x42c310
call fcn.0040add0
mov esi, ecx
mov dword [ebp - 0x20], esi
lea eax, [esi + 0x28]
xor ebx, ebx
cmp dword [eax + 0x18], ebx
je 0x405aa4
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 0x405b09
mov edi, ebx
cmp dword [esi], edi
je 0x405ac9
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 0x405b09
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 0x405b09
mov dword [ebp - 4], 0xfffffffe
add esi, 0x28
cmp dword [esi + 0x18], ebx
je 0x405b1f
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 0x405ebc
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 0x405fcc
xor eax, eax
cmp ax, word [edi]
je 0x405fcc
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x405ee7
call fcn.00405df7
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 0x405fcc
test eax, eax
je 0x405fcc
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x40
jb 0x405fcc
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 0x405fcc
test eax, eax
je 0x405fcc
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 0x405fcc
lea edx, [ecx + edi]
mov dword [esi + 8], edx
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 4], edx
cmp eax, 0x40
jb 0x405fcc
lea edi, [eax + ecx]
lea eax, [edi + 0xf8]
mov dword [esi + 0x10], edi
cmp edx, eax
jb 0x405fcc
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x405fcc
cmp dword [edi], 0x4550
jne 0x405fcc
movzx eax, word [edi + 4]
mov ecx, 0x14c
cmp ax, cx
je 0x405fac
mov ecx, 0x8664
cmp ax, cx
jne 0x405fcc
mov bl, 1
mov eax, 0x108
jmp 0x405fb1
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 0x405fcc
mov al, 1
jmp 0x405fd5
mov ecx, esi
call fcn.00405df7
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4068f7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x42f094]
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 0x4245a0
lea esi, [edi + 0xe0]
call fcn.00403a60
test al, al
je 0x40697d
push 0x200
xor ebx, ebx
lea eax, [ebp - 0x204]
push ebx
push eax
call fcn.0040dd30
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 0x406985
lea eax, [ebp - 0x204]
mov ecx, esi
push eax
call fcn.00401812
push 0x423cbc
mov ecx, esi
call fcn.00406354
push str.Zoom
mov ecx, esi
call fcn.00406354
jmp 0x406985
push ebx
mov ecx, esi
call fcn.004062eb
push esi
mov ecx, edi
call fcn.004062eb
push str.data_
mov ecx, edi
call fcn.00406354
push str.Zoom.us.ini
mov ecx, edi
call fcn.00406354
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a55e
leave
ret 4

Function at 0x4074cf
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
cmp dword [ecx + 0x14], 8
jb 0x4074dd
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 0x409e60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42f094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0xc], 0
je 0x409f6a
cmp byte [edi + 0x60], 0
push esi
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x20], esi
je 0x409f47
mov edx, dword [edi + 0x68]
mov ecx, dword [edi + 0x58]
lea eax, [edx + esi]
cmp eax, ecx
jle 0x409f47
mov esi, dword [edi + 0x5c]
cmp esi, 1
jne 0x409eeb
sub ecx, edx
push ecx
mov dword [ebp - 0x24], ecx
call fcn.0040aa1f
push dword [ebp - 0x24]
mov esi, eax
push 0x20
push esi
call fcn.0040dd30
push dword [edi + 0xc]
push dword [ebp - 0x24]
push 1
push esi
call fcn.00412667
push esi
call fcn.0040a56f
xor esi, esi
push esi
push esi
push dword [edi + 0xc]
call fcn.00413c89
add esp, 0x30
mov dword [edi + 0x68], esi
jmp 0x409f44
jle 0x409f44
mov ecx, edi
call fcn.004098d8
mov ecx, edi
call fcn.00409ad0
test al, al
je 0x409f44
cmp dword [edi + 0x6c], esi
jle 0x409f44
mov eax, dword [edi + 0x70]
mov esi, dword [eax]
cmp esi, eax
je 0x409f44
and dword [ebp - 0xc], 0
lea eax, [esi + 0x14]
and dword [ebp - 8], 0
lea ecx, [ebp - 0x1c]
push eax
call fcn.0040279d
push esi
lea ecx, [edi + 0x70]
call fcn.00409556
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x409f44
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x1c]
call fcn.00401985
pop ecx
pop ecx
mov esi, dword [ebp - 0x20]
cmp dword [ebx + 0x14], 0x10
jb 0x409f4f
mov ebx, dword [ebx]
push dword [edi + 0xc]
push esi
push 1
push ebx
call fcn.00412667
push dword [edi + 0xc]
call fcn.00413978
add esp, 0x14
add dword [edi + 0x68], esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040a55e
leave
ret 8
Function at 0x40a19e
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42f094]
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.0040a181
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x40a213
cmp dword [edi + 4], 0
je 0x40a213
push 0x1d4c0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40a1fc
mov eax, dword [edi + 8]
xor esi, esi
inc esi
mov dword [0x4303e8], eax
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x40a216
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.0040a232
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, dword [ebp - 8]
jmp 0x40a216
xor esi, esi
inc esi
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x40a222
call fcn.004094b1
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0040a55e
leave
ret

Function at 0x40a2d4
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 0x40a340
push 0
push 0
call fcn.0041446c
mov ecx, eax
add esp, 0x18
test ecx, ecx
jne 0x40a2fe
xor al, al
jmp 0x40a32f
mov eax, dword [esi]
push dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [esi]
add ecx, 0xc
call fcn.00402a24
mov eax, dword [esi]
mov ecx, 0x4302d8
push dword [eax + 8]
push dword [ebp + 8]
call fcn.0040a147
mov eax, dword [esi]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
pop esi
pop ebp
ret 4