joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49aae0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73f559
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x8312b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea eax, [esi + 0x14]
mov dword [esi], vtable.CBaseThread.0
push eax
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0x3e8
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0
mov dword [esi], vtable.CRepairManager.0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x48], eax
lea eax, [esi + 0x50]
push 2
push eax
mov dword [esi + 0x4c], 0
call fcn.00517b28
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [esi + 0x34]
cmp dword [esi + 0x38], ecx
je 0x49aba3
mov eax, dword [ebp + 8]
mov dword [ecx], eax
add dword [esi + 0x34], 4
jmp 0x49abb0
lea eax, [ebp + 8]
push eax
push ecx
lea ecx, [esi + 0x30]
call fcn.0045c140
xor cl, cl
lea eax, [esi + 0x2d]
xchg byte [eax], cl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x49abd0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x8312b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
push ebx
push esi
mov edx, dword [eax + 0x4c]
add eax, 4
push edi
mov edi, ecx
cmp dword [eax + 0x14], 8
jb 0x49abf9
mov eax, dword [eax]
push edx
push eax
lea eax, [ebp - 0x20]
push str.LoopCallNotifyWnd_id:_s_res:_d_n
push eax
call fcn.00460c10
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x49ac14
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], 0
cmovae eax, dword [ebp - 0x20]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x20]
call fcn.0044bf40
mov eax, dword [edi + 0x34]
xor ecx, ecx
mov esi, dword [edi + 0x30]
mov ebx, eax
sub ebx, esi
xor edi, edi
add ebx, 3
shr ebx, 2
cmp esi, eax
cmova ebx, ecx
test ebx, ebx
je 0x49ac6c
mov ecx, dword [esi]
test ecx, ecx
je 0x49ac64
mov eax, dword [ecx]
push dword [ebp - 0x24]
call dword [eax]
inc edi
add esi, 4
cmp edi, ebx
jne 0x49ac57
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret 4
Function at 0x4ad660
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
mov byte [0x83ceb8], 0
push ebx
push esi
mov dword [ebp - 8], eax
mov ebx, 2
lea esi, [eax + 4]
mov ecx, esi
call fcn.004ad580
test al, al
je 0x4ad760
push edi
call fcn.00541600
mov edi, eax
test edi, edi
je 0x4ad6be
push 0x800
push dword [ebp + 8]
push 0
push edi
call fcn.00541d30
add esp, 0x10
test eax, eax
jne 0x4ad6be
push edi
push 0x282a
push dword [esi]
call fcn.00541120
add esp, 0xc
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push 0x7f3f3c
push edi
push eax
mov dword [ebp - 4], 0
call fcn.00716f05
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x4ad75f
mov ecx, dword [ebp - 8]
push eax
push 0x2711
push dword [esi]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
call fcn.00541120
push esi
push 0x2711
push dword [esi]
lea eax, [ebp - 0x10]
mov dword [esi + 4], eax
call fcn.00541120
push 0x4ad5e0
push 0x4e2b
push dword [esi]
call fcn.00541120
push 0x64
push 0xd
push dword [esi]
call fcn.00541120
push 1
push 0x34
push dword [esi]
call fcn.00541120
mov eax, dword [esi]
push 1
push 0x2b
push eax
call fcn.00541120
add esp, 0x48
push dword [esi]
call fcn.0053da60
push dword [ebp - 4]
mov ebx, eax
call fcn.007178b2
add esp, 8
test ebx, ebx
je 0x4ad75f
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
xor eax, eax
test ebx, ebx
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4adff0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x4ae021
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x4ae010
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x4b44d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4b4529
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4b4529
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4b4518
cmp esi, edx
jae 0x4b4529
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4b4506
cmp esi, edx
jae 0x4b4529
cmp word [esi], 0
je 0x4b4529
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4c2500
Capabilities:
Get file version info

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7429d2
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x250
mov eax, dword [0x8312b0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov dword [ebp - 0x248], edi
mov esi, ecx
mov dword [ebp - 0x258], esi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x25c], 0
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
push 0x7f4fec
mov word [esi], ax
call fcn.0044bdc0
mov dword [ebp - 4], 0
mov eax, edi
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x25c], 1
jb 0x4c25a5
mov eax, dword [edi]
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x24c], eax
test eax, eax
je 0x4c2788
inc eax
push eax
mov dword [ebp - 0x244], eax
call fcn.006f4f6d
mov edi, eax
add esp, 4
test edi, edi
je 0x4c2788
push dword [ebp - 0x244]
push 0
push edi
call fcn.0070dcd0
mov ecx, dword [ebp - 0x248]
add esp, 0xc
cmp dword [ecx + 0x14], 8
jb 0x4c25fa
mov ecx, dword [ecx]
push edi
push dword [ebp - 0x24c]
push 0
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x4c261c
push edi
call fcn.006f4f76
add esp, 4
jmp 0x4c2788
lea eax, [ebp - 0x264]
mov dword [ebp - 0x250], 0
push eax
lea eax, [ebp - 0x250]
mov ecx, edi
push eax
call fcn.004c2430
push edi
test eax, eax
je 0x4c260f
mov eax, dword [ebp - 0x250]
mov ecx, dword [eax + 8]
mov edx, ecx
mov eax, dword [eax + 0xc]
movzx ecx, cx
mov dword [ebp - 0x244], ecx
mov ecx, eax
shr edx, 0x10
shr ecx, 0x10
movzx eax, ax
mov dword [ebp - 0x258], edx
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x24c], eax
call fcn.006f4f76
add esp, 4
lea eax, [ebp - 0x228]
push 0x208
push 0
push eax
call fcn.0070dcd0
add esp, 0xc
mov dword [ebp - 4], 1
lea eax, [ebp - 0x228]
push dword [ebp - 0x24c]
push dword [ebp - 0x248]
push dword [ebp - 0x244]
push dword [ebp - 0x258]
push 0x7f4ff4
push 0x208
push eax
call fcn.004c24e0
add esp, 0x1c
mov dword [ebp - 0x230], 0
xor eax, eax
mov dword [ebp - 0x22c], 7
lea ecx, [ebp - 0x228]
mov word [ebp - 0x240], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c26f0
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x240]
call fcn.0044bdc0
lea eax, [ebp - 0x240]
cmp esi, eax
je 0x4c2757
mov ecx, esi
call fcn.0044bf40
movups xmm0, xmmword [ebp - 0x240]
xor eax, eax
mov word [ebp - 0x240], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x230]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 7
lea ecx, [ebp - 0x240]
call fcn.0044bf40
jmp 0x4c2788
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.006f4f1e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4ca630
Capabilities:
Check if file exists
Delete file
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7431c8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x8312b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x30]
mov dword [esi + 0x10], 1
mov ecx, edi
call fcn.004d6300
cmp dword [esi + 0x2c], 0x10
lea ecx, [esi + 0x18]
jb 0x4ca679
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x28], 0
lea eax, [ebp - 0x40]
push edi
mov byte [ecx], 0
push eax
mov word [esi + 0x238], 0
call fcn.004ca030
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.004c84b0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x4ca6dc
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4ca6d2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ca742
push edx
push ecx
call fcn.006f4f2f
add esp, 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], 0
push eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.004c82d0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ca71f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x28]
call fcn.0044bf40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret
call fcn.00710a9c
int3
Function at 0x4d3360
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x743c66
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x8312b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
lea ecx, [edi + 0x10]
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
lea eax, [esi + 0x10]
push eax
call fcn.00460ac0
mov dword [ebp - 4], 0
lea ecx, [edi + 0x44]
movzx eax, byte [esi + 0x28]
mov byte [edi + 0x28], al
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x3c], eax
movzx eax, byte [esi + 0x40]
mov byte [edi + 0x40], al
lea eax, [esi + 0x44]
push eax
call fcn.00460ac0
lea eax, [esi + 0x5c]
mov byte [ebp - 4], 1
push eax
lea ecx, [edi + 0x5c]
call fcn.00460ac0
mov eax, dword [esi + 0x74]
mov dword [edi + 0x74], eax
mov eax, dword [esi + 0x78]
mov dword [edi + 0x78], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4d3420
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x743ca0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x8312b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov bl, byte [edi + 0x68]
lea eax, [ebp - 0x4c]
lea esi, [edi + 0x30]
mov dword [ebp - 0x14], eax
push esi
mov ecx, eax
call fcn.004609e0
lea eax, [esi + 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x34]
call fcn.004609e0
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x10], bl
mov dword [ebp - 4], 1
mov ecx, dword [edi + 0x2c]
test ecx, ecx
je 0x4d34bd
mov eax, dword [ecx]
lea edx, [ebp - 0x4c]
push edx
lea edx, [ebp - 0x10]
push edx
call dword [eax + 8]
lea ecx, [ebp - 0x34]
call fcn.0044bf40
lea ecx, [ebp - 0x4c]
call fcn.0044bf40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.005176b3
int3
Function at 0x4d5fe0
Capabilities:
Get file version info

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x743f52
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x250
mov eax, dword [0x8312b0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov dword [ebp - 0x248], edi
mov esi, ecx
mov dword [ebp - 0x258], esi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x25c], 0
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
push 0x7f5044
mov word [esi], ax
call fcn.0044bdc0
mov dword [ebp - 4], 0
mov eax, edi
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x25c], 1
jb 0x4d6085
mov eax, dword [edi]
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x24c], eax
test eax, eax
je 0x4d6268
inc eax
push eax
mov dword [ebp - 0x244], eax
call fcn.006f4f6d
mov edi, eax
add esp, 4
test edi, edi
je 0x4d6268
push dword [ebp - 0x244]
push 0
push edi
call fcn.0070dcd0
mov ecx, dword [ebp - 0x248]
add esp, 0xc
cmp dword [ecx + 0x14], 8
jb 0x4d60da
mov ecx, dword [ecx]
push edi
push dword [ebp - 0x24c]
push 0
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x4d60fc
push edi
call fcn.006f4f76
add esp, 4
jmp 0x4d6268
lea eax, [ebp - 0x264]
mov dword [ebp - 0x250], 0
push eax
lea eax, [ebp - 0x250]
mov ecx, edi
push eax
call fcn.004d5f60
push edi
test eax, eax
je 0x4d60ef
mov eax, dword [ebp - 0x250]
mov ecx, dword [eax + 8]
mov edx, ecx
mov eax, dword [eax + 0xc]
movzx ecx, cx
mov dword [ebp - 0x244], ecx
mov ecx, eax
shr edx, 0x10
shr ecx, 0x10
movzx eax, ax
mov dword [ebp - 0x258], edx
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x24c], eax
call fcn.006f4f76
add esp, 4
lea eax, [ebp - 0x228]
push 0x208
push 0
push eax
call fcn.0070dcd0
add esp, 0xc
mov dword [ebp - 4], 1
lea eax, [ebp - 0x228]
push dword [ebp - 0x24c]
push dword [ebp - 0x248]
push dword [ebp - 0x244]
push dword [ebp - 0x258]
push 0x7f504c
push 0x208
push eax
call fcn.004c24e0
add esp, 0x1c
mov dword [ebp - 0x230], 0
xor eax, eax
mov dword [ebp - 0x22c], 7
lea ecx, [ebp - 0x228]
mov word [ebp - 0x240], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d61d0
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x240]
call fcn.0044bdc0
lea eax, [ebp - 0x240]
cmp esi, eax
je 0x4d6237
mov ecx, esi
call fcn.0044bf40
movups xmm0, xmmword [ebp - 0x240]
xor eax, eax
mov word [ebp - 0x240], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x230]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 7
lea ecx, [ebp - 0x240]
call fcn.0044bf40
jmp 0x4d6268
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.006f4f1e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4db590
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7449d0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x8312b0]
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
sub esp, 8
add ecx, 0x34
mov eax, esp
mov dword [eax], 0x7f7bc4
mov dword [eax + 4], 9
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_class_std::basic_string_view_wchar_t__struct_std::char_traits_wchar_t___const]
mov ebx, eax
test ebx, ebx
je 0x4db71d
call fcn.004d2150
cmp dword [eax + 0x10], 3
jne 0x4db6d8
call fcn.004d2150
mov ecx, eax
call fcn.004ccb80
xor ecx, ecx
test al, al
setne cl
inc ecx
push ecx
mov ecx, ebx
call fcn.004f6f10
lea ecx, [ebp - 0x4c]
call fcn.0045b760
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
call fcn.004c82d0
cmp dword [eax + 0x14], 8
jb 0x4db62b
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], eax
call fcn.0044bf40
mov dword [ebp - 4], 1
or edi, 0xffffffff
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x4db66d
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4db66d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x4db66d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xffffffff
je 0x4db71d
lea ecx, [ebp - 0x4c]
call fcn.0045b760
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 2
push eax
call fcn.004c82d0
push eax
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.004f6f90
lea ecx, [ebp - 0x40]
call fcn.0044bf40
mov dword [ebp - 4], 4
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x4db71d
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4db71d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4db71d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x4db71d
push 0
mov ecx, ebx
call fcn.004f6f10
xor eax, eax
mov dword [ebp - 0x18], 0
push eax
push 0x7f8948
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0044bdc0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 5
push eax
mov ecx, ebx
call fcn.004f6f90
lea ecx, [ebp - 0x28]
call fcn.0044bf40
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.006f4f1e
mov esp, ebp
pop ebp
ret

Function at 0x4de970
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov dword [ebp + 8], eax
add ecx, 4
pop ebp
jmp fcn.004dc060
Function at 0x4dee10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x744e26
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x8312b0]
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 esi, ecx
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], esi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [esi], vtable.CDllToolSetting.0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 7
mov word [esi + 4], ax
mov word [esi + 0x1c], ax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov word [esi + 0x4c], ax
mov dword [esi + 0x4e], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], 7
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], 7
mov word [esi + 0x68], ax
lea edi, [esi + 0x98]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov byte [ebp - 4], 4
mov byte [esi + 0xb0], al
cmp dword [esi + 0x80], eax
je 0x4def0c
push eax
push 0x7e5130
mov dword [esi + 0x80], eax
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.0044bc80
add esp, 0x10
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4deef7
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x50]
push eax
push str.driver_problem
push 0x7f9324
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 3
xor eax, eax
mov dword [esi + 0x84], 0
push 0x7f8bc0
lea ecx, [ebp - 0x80]
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
call fcn.0044bdc0
lea edx, [ebp - 0x80]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x68]
call fcn.004ded40
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 7
call fcn.0044bf40
cmp dword [ebp - 0x54], 8
lea eax, [ebp - 0x68]
push 0
cmovae eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0xb
push str.config.ini
lea ecx, [ebp - 0x68]
call fcn.00460700
cmp dword [ebp - 0x54], 8
lea ecx, [ebp - 0x68]
cmovae ecx, dword [ebp - 0x68]
mov edx, ecx
lea ebx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4defb0
sub edx, ebx
sar edx, 1
push edx
push ecx
mov ecx, edi
call fcn.0044bdc0
lea ecx, [ebp - 0x68]
call fcn.0044bf40
mov eax, esi
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.006f4f1e
mov esp, ebp
pop ebp
ret
Function at 0x4df580
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x8312b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, byte [ebp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x4f], bl
je 0x4df642
push edi
push 0xf003f
push 0
push 0
mov byte [esi + 0x4f], bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4df606
push 0xf01ff
push str.WINRepairSvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ecx, eax
mov dword [ebp - 0x48], ecx
test ecx, ecx
je 0x4df5ff
push 0
push 0
push 0
push 0
push 0
push 0
push 0
movzx eax, bl
push 0xffffffffffffffff
xor eax, 1
add eax, 2
push eax
push 0xffffffffffffffff
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, byte [esi + 0x4f]
push eax
push 0x7e5130
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.0044bc80
add esp, 0x10
lea eax, [esi + 0x98]
cmp dword [eax + 0x14], 8
pop edi
jb 0x4df62d
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x44]
push eax
push str.open_regular_scan
push 0x7f8f40
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret 4