joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434290
Capabilities:
Check os version
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push 0x110
lea eax, [ebp - 0x158]
push edi
push eax
mov dword [ebp - 0x16c], edi
mov dword [ebp - 0x160], edi
mov dword [ebp - 0x164], edi
mov dword [ebp - 0x168], edi
mov dword [ebp - 0x15c], 0x114
call fcn.00453220
add esp, 0xc
lea ecx, [ebp - 0x160]
push ecx
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4343cb
lea edx, [ebp - 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4343cb
cmp dword [ebp - 0x158], 6
jb 0x43436b
mov edx, dword [ebp - 0x160]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x168]
push eax
push 4
lea ecx, [ebp - 0x170]
push ecx
push 0x12
push edx
call esi
test eax, eax
je 0x4343cb
cmp dword [ebp - 0x170], 3
jne 0x43436b
mov edx, dword [ebp - 0x160]
lea eax, [ebp - 0x168]
push eax
push 4
lea ecx, [ebp - 0x164]
push ecx
push 0x13
push edx
call esi
test eax, eax
je 0x4343cb
cmp dword [ebp - 0x164], edi
jne 0x43438d
mov ecx, dword [ebp - 0x160]
lea eax, [ebp - 0x164]
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x4343cb
lea edx, [ebp - 0x168]
push edx
lea eax, [ebp - 0x48]
push eax
push edi
push 0x1a
mov dword [ebp - 0x168], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x4343cb
mov eax, dword [ebp - 0x164]
lea ecx, [ebp - 0x16c]
push ecx
lea edx, [ebp - 0x48]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4343d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x160]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x4343ea
push eax
call esi
mov dword [ebp - 0x160], edi
mov eax, dword [ebp - 0x164]
cmp eax, edi
je 0x4343f7
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x16c]
pop edi
xor ecx, ebp
pop esi
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret
Function at 0x43c0e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00453220
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x43c14e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43c135
and eax, 0xffff
or eax, 0x80070000
test eax, eax
js 0x43c1bc
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret
cmp word [ebp + eax*2 - 0x20e], 0x5c
push esi
je 0x43c169
lea esi, [ebp - 0x20c]
call fcn.00441d90
test eax, eax
js 0x43c1bb
lea esi, [ebp - 0x20c]
call fcn.00441ce0
mov esi, eax
test esi, esi
js 0x43c1b9
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
jne 0x43c1b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43c1a3
and eax, 0xffff
or eax, 0x80070000
test eax, eax
js 0x43c1bb
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret

Function at 0x43c790
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x43c7dc
push edi
call fcn.0044d7a2
mov ecx, dword [ebp - 4]
add esp, 4
push eax
push edi
push ecx
push ebx
mov dword [esi], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov edx, dword [esi]
test eax, eax
jne 0x43c7e3
push edx
call fcn.0044f328
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
push str.VarFileInfoTranslation
push edx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x43c800
mov eax, dword [esi]
push eax
jmp 0x43c7c7
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
movzx edx, word [eax + 2]
shl ecx, 0x10
or ecx, edx
mov dword [esi + 4], ecx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x43db60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468628
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x43dc81
cmp byte [edi + 0x49], bl
je 0x43dc81
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x43dc75
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x43dbd5
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x43dbed
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x43dc16
dec eax
je 0x43dc1a
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x43dc70
jmp 0x43dc7c
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x43dc2a
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x43dc53
cmp ebx, 0x10
jae 0x43dc39
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00451130
add esp, 0x10
cmp esi, eax
jne 0x43dc6d
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x43dc79
test esi, esi
jne 0x43dbe1
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00426780
jmp 0x43dbdb
lea ecx, [ebp - 0x2c]
call fcn.00430410
xor al, al
jmp 0x43dc83
lea ecx, [ebp - 0x2c]
call fcn.00430410
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret
Function at 0x442000
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push esi
push SysReAllocStringLen
mov dword [ebx], esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x442053
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x442042
mov esi, eax
jmp 0x44218f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x44218f
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
test eax, eax
jne 0x44206e
mov dword [ebp - 4], 1
jmp 0x442177
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebx], eax
test eax, eax
jne 0x442089
mov dword [ebp - 4], 0x8007000e
jmp 0x442177
mov ecx, dword [edi]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x4420a6
mov dword [ebp - 4], 0x8007000e
jmp 0x442177
mov eax, dword [edi]
mov ecx, dword [ebp - 0xc]
push 0
lea edx, [ebp - 0x10]
push edx
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4420e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x4420d0
mov dword [ebp - 4], eax
jmp 0x442177
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x442177
xor edx, edx
xor ecx, ecx
mov dword [ebp - 8], edx
cmp dword [edi], edx
jbe 0x442112
lea ecx, [ecx]
mov al, byte [ecx + esi]
cmp al, 9
je 0x44210a
cmp al, 0xd
je 0x44210a
cmp al, 0xa
je 0x44210a
mov ebx, dword [ebx]
mov byte [edx + ebx], al
mov ebx, dword [ebp + 8]
inc edx
jmp 0x44210d
inc dword [ebp - 8]
inc ecx
cmp ecx, dword [edi]
jb 0x4420f0
mov edx, dword [ebp - 8]
sub dword [edi], edx
mov ecx, dword [ebx]
cmp byte [ecx], 0xef
mov eax, dword [edi]
jne 0x442177
cmp byte [ecx + 1], 0xbb
jne 0x442177
cmp byte [ecx + 2], 0xbf
jne 0x442177
add eax, 0xfffffffd
push eax
push 0x40
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x442149
mov dword [ebp - 4], 0x8007000e
jmp 0x442177
mov eax, dword [edi]
mov ecx, dword [ebx]
push eax
add ecx, 3
push ecx
push esi
call fcn.0044efa0
add esp, 0xc
test eax, eax
jne 0x44216a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x442177
mov edx, dword [ebx]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebx], esi
xor esi, esi
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x44218c
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 4]
test esi, esi
jns 0x4421ac
mov eax, dword [ebx]
test eax, eax
je 0x4421a0
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebx], 0
mov dword [edi], 0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x443080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x4789b0
push eax
mov ebx, edx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x34], ecx
call fcn.004521f6
mov edi, eax
add esp, 8
mov dword [ebp - 0x30], edi
test edi, edi
jne 0x4430e8
test esi, esi
je 0x4430d5
call fcn.00452328
mov edx, dword [eax]
push edx
call fcn.0045227c
mov ebx, eax
add esp, 4
mov eax, esi
call fcn.004216a0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4430f6
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
jmp 0x4430fd
mov dword [ebp - 0x3c], 0
xor eax, eax
xor ecx, ecx
mov esi, ebx
mov word [ebp - 0x2c], cx
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
call fcn.004013e0
push 2
push 0
push edi
call fcn.004523fb
push edi
call fcn.0045260b
mov edx, dword [ebp - 0x30]
push 0
push 0
push edx
mov edi, eax
call fcn.004523fb
add esp, 0x1c
xor esi, esi
test edi, edi
je 0x443203
push edi
call fcn.0044d7a2
mov esi, eax
mov eax, dword [ebp - 0x30]
push eax
push 1
push edi
push esi
mov dword [ebp - 0x38], esi
call fcn.004528ba
add esp, 0x14
push 0
push 0
push edi
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jns 0x443195
push 0x80070057
call fcn.00401680
mov eax, dword [ebx]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, esi
or ecx, edx
jge 0x4431b1
mov eax, esi
mov ecx, ebx
call fcn.00401440
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x38]
push esi
push eax
push edi
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, esi
cmp esi, 0xffffffff
jne 0x4431e1
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x4431e5
push ecx
push eax
call fcn.0045013c
add esp, 8
test eax, eax
js 0x44318b
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x44318b
mov dword [ecx - 0xc], eax
mov edx, dword [ebx]
xor ecx, ecx
mov word [edx + eax*2], cx
mov edx, dword [ebp - 0x38]
push edx
call fcn.0044f328
add esp, 4
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x44321f
push esi
push edi
lea ecx, [ebp - 0x2c]
push ecx
push str._s_d_bytes_to__d_wide_chars
mov edi, eax
call fcn.00428b20
add esp, 0x10
mov edx, dword [ebp - 0x30]
push edx
call fcn.00451ea3
mov eax, dword [ebp - 0x34]
add esp, 4
test eax, eax
je 0x443237
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret
Function at 0x443250
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov esi, edx
push 0x4789f0
push eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x2d], 1
call fcn.004521f6
add esp, 8
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x4432bf
test esi, esi
je 0x4432ac
call fcn.00452328
mov eax, dword [eax]
push eax
call fcn.0045227c
mov ebx, eax
add esp, 4
mov eax, esi
call fcn.004216a0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4432ca
mov ecx, dword [ebx]
mov dword [ebp - 0x40], ecx
jmp 0x4432d1
mov dword [ebp - 0x40], 0
xor eax, eax
xor edx, edx
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
mov eax, dword [edi]
mov word [ebp - 0x2c], dx
mov esi, dword [eax - 0xc]
xor edi, edi
test esi, esi
je 0x443362
push edi
push edi
push edi
push edi
push esi
push eax
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.0044d7a2
add esp, 4
push 0
push 0
mov ebx, eax
lea eax, [edi + 1]
push eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
push ebx
push esi
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x38]
push edx
push 1
push edi
push ebx
call fcn.00451130
cmp eax, 1
push ebx
sete byte [ebp - 0x2d]
call fcn.0044f328
mov ebx, dword [ebp - 0x3c]
add esp, 0x14
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x443380
push edi
lea ecx, [ebp - 0x2c]
push ecx
push esi
push str._d_wide_chars_to__s_d_bytes
mov edi, eax
call fcn.00428b20
add esp, 0x10
mov eax, edi
cmp byte [ebp - 0x2d], 0
jne 0x4433a7
test eax, eax
je 0x4433a7
call fcn.00452328
mov edx, dword [eax]
push edx
call fcn.0045227c
mov ebx, eax
mov eax, dword [ebp - 0x34]
add esp, 4
call fcn.004216a0
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
push eax
call fcn.00451ea3
add esp, 4
test ebx, ebx
je 0x4433bc
mov ecx, dword [ebp - 0x40]
mov dword [ebx], ecx
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x2d]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret
Function at 0x446ce0
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x4789b0
push eax
lea eax, [ebp - 0x808]
push eax
mov esi, ecx
call fcn.0045220d
xor ebx, ebx
add esp, 0xc
cmp dword [ebp - 0x808], ebx
jne 0x446d2b
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
push edi
lea ecx, [ecx]
mov ecx, dword [ebp - 0x808]
push ecx
push 0x800
lea edx, [ebp - 0x804]
push 1
push edx
call fcn.004528ba
mov edi, eax
lea eax, [ebp - 0x804]
push eax
mov ecx, edi
add ebx, edi
call fcn.00446a80
add esp, 0x14
cmp edi, 0x800
jge 0x446d50
mov ecx, dword [ebp - 0x808]
push ecx
call fcn.00451ea3
add esp, 4
mov ecx, esi
call fcn.00446bb0
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret
Function at 0x4482b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46b0a3
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x4846a0]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push esi
mov eax, dword [0x4846a0]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
lea ecx, [esp + 0x14]
call fcn.00446db0
mov dword [esp + 0xa8], 0
mov eax, dword [esp + 0x14]
mov ebx, 0x10
cmp dword [esp + 0x28], ebx
jae 0x44831b
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x44839b
xor ecx, ecx
mov dword [esp + 0x40], eax
mov word [esp + 0x30], cx
push 0x17
mov eax, str.Failed_to_write_to_pipe
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], 7
call fcn.00430290
push 0x217
push str.....CommonSourceADXBootstrapperClickTwice.DownloaderPipe.cpp
sub esp, 0x48
lea ebx, [esp + 0x80]
mov esi, esp
mov byte [esp + 0xf8], 1
mov dword [esp + 0x60], esp
call fcn.00422b20
lea esi, [esp + 0x9c]
call fcn.004290a0
add esp, 0x50
push 0x47b974
mov edx, esi
push edx
call fcn.00453150
cmp dword [esp + 0x28], ebx
jb 0x4483ae
mov eax, dword [esp + 0x14]
push eax
call fcn.0044ebcc
add esp, 4
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret 4
Function at 0x448830
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 3
push 0
push 0
mov esi, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x448881
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x28]
push 0
push 0
push 0x4776c8
push 0
push 0
push esi
push 1
push 2
push 0x10
push 0xf01ff
push edx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
je 0x44890d
mov eax, dword [ebp - 0x24]
mov ebx, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
lea ecx, [ebp - 0x2c]
push ecx
push 1
push esi
mov dword [ebp - 0x2c], eax
call ebx
test eax, eax
je 0x44890d
mov eax, 0xdbba0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
mov eax, 0x4776c8
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x40]
push eax
mov ecx, 1
push 2
lea edx, [ebp - 0x1c]
push esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x40], 0x15180
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], edx
call ebx
test eax, eax
jne 0x448916
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x448926
push esi
call edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret
Function at 0x448940
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push edi
push 1
push eax
push eax
mov esi, ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x448998
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret
push 0x10024
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x448a08
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4489fd
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4489fc
lea esp, [esp]
cmp dword [ebp - 0x1c], 3
jne 0x4489fc
push 0x3e8
call ebx
lea edx, [ebp - 0x20]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4489e0
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x448a11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x448a21
push esi
call edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
pop edi
xor ecx, ebp
pop esi
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret
Function at 0x448a40
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
push esi
push 1
push eax
push eax
mov esi, ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
jne 0x448a9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret
push edi
push 0x14
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x448b0a
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push esi
call edi
test eax, eax
je 0x448afb
cmp dword [ebp - 0x1c], 3
jne 0x448afb
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
lea ecx, [ebp - 0x20]
push ecx
push esi
call edi
test eax, eax
je 0x448af8
jmp 0x448ae0
cmp dword [ebp - 0x1c], 3
jne 0x448af8
push 0x3e8
call ebx
lea edx, [ebp - 0x20]
push edx
push esi
call edi
test eax, eax
jne 0x448ae0
mov ebx, dword [ebp - 0x28]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x448b13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call edi
test esi, esi
je 0x448b23
push esi
call edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret

Function at 0x4492c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esi + 0x60]
push ebx
push edi
mov byte [eax + esi + 0x20], 0x80
mov edi, 1
add dword [esi + 0x60], edi
cmp eax, 0x37
mov eax, dword [esi + 0x60]
jle 0x449315
mov ecx, 0x40
xor bl, bl
cmp eax, ecx
jge 0x4492f3
mov byte [eax + esi + 0x20], bl
add dword [esi + 0x60], edi
mov eax, dword [esi + 0x60]
cmp eax, ecx
jl 0x4492e5
mov ecx, esi
call fcn.00448bf0
mov ecx, 0x38
cmp dword [esi + 0x60], ecx
jge 0x44932e
mov eax, dword [esi + 0x60]
mov byte [esi + eax + 0x20], bl
add dword [esi + 0x60], edi
cmp dword [esi + 0x60], ecx
jl 0x449304
jmp 0x44932e
mov ecx, 0x38
cmp eax, ecx
jge 0x44932e
xor bl, bl
mov byte [eax + esi + 0x20], bl
add dword [esi + 0x60], edi
mov eax, dword [esi + 0x60]
cmp eax, ecx
jl 0x449320
movzx ecx, byte [esi + 0x1f]
movzx edx, byte [esi + 0x1e]
movzx eax, byte [esi + 0x1d]
mov byte [esi + 0x58], cl
movzx ecx, byte [esi + 0x1c]
mov byte [esi + 0x59], dl
movzx edx, byte [esi + 0x1b]
mov byte [esi + 0x5b], cl
movzx ecx, byte [esi + 0x19]
mov byte [esi + 0x5a], al
movzx eax, byte [esi + 0x1a]
mov byte [esi + 0x5c], dl
movzx edx, byte [esi + 0x18]
pop edi
mov byte [esi + 0x5e], cl
mov byte [esi + 0x5d], al
mov byte [esi + 0x5f], dl
mov ecx, esi
pop ebx
jmp fcn.00448bf0