joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419ae5
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp byte [edi], 0
je 0x419af7
mov al, 1
jmp 0x419b86
mov al, byte [ebp + 8]
lea ecx, [edi + 4]
push ebx
push esi
push dword [ebp + 0xc]
mov byte [edi], 1
mov byte [edi + 1], al
call fcn.00409e7f
push str..pipeToServer
lea ecx, [ebp + 8]
call fcn.00404f61
mov eax, dword [edi + 4]
lea ecx, [ebp + 8]
push dword [eax - 0xc]
push eax
call fcn.00402b67
xor esi, esi
cmp byte [edi + 1], 0
je 0x419b59
push esi
push 0x1388
mov eax, 0x7f90
push eax
push eax
push 0xff
push 6
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp byte [edi + 1], 0
mov dword [edi + 8], eax
jne 0x419b70
push esi
push esi
push 3
push esi
push esi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 8], eax
cmp dword [edi + 8], 0xffffffff
mov ecx, dword [ebp + 8]
setne bl
add ecx, 0xfffffff0
call fcn.004052ff
pop esi
mov al, bl
pop ebx
pop edi
pop ebp
ret 8

Function at 0x419dae
Capabilities:
Connect pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [ebp + 0x10], 0
push esi
mov esi, ecx
jne 0x419df6
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x419df6
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
add eax, 1
jne 0x419df6
cmp byte [esi + 0x11], al
jne 0x419df6
call fcn.0040522e
mov ecx, dword [ebp + 8]
push eax
call fcn.004028b4
mov eax, dword [ebp + 8]
jmp 0x419e61
push edi
push 0
lea eax, [ebp + 0x10]
push eax
push 0x7f90
push dword [esi + 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp + 0x10]
xor edi, edi
mov ecx, dword [esi + 0xc]
shr edx, 1
mov word [ecx + edx*2], di
test eax, eax
je 0x419e4f
cmp dword [ebp + 0x10], edi
je 0x419e4f
push dword [esi + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00404f61
mov edi, dword [ebp + 0xc]
lea ecx, [edi - 0x10]
call fcn.0040ab13
mov esi, dword [ebp + 8]
lea ecx, [edi - 0x10]
add eax, 0x10
mov dword [esi], eax
call fcn.004052ff
mov eax, esi
jmp 0x419e60
call fcn.0040522e
mov ecx, dword [ebp + 8]
push eax
call fcn.004028b4
mov eax, dword [ebp + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x419e68
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x419e84
call fcn.0040522e
mov ecx, dword [ebp + 8]
push eax
call fcn.004028b4
jmp 0x419eb2
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x10]
push 0
push edx
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x419e74
push 1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.00419dae
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret 0xc
Function at 0x419eba
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0
mov esi, ecx
mov edx, dword [eax]
lea eax, [ebp + 8]
push eax
mov eax, dword [edx - 0xc]
add eax, eax
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop esi
pop ebp
ret 4

Function at 0x41a8ea
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
xor edi, edi
lea eax, [esp + 0x1c]
push eax
inc edi
mov eax, 0x101
cmp byte [esp + 0x34], 0
cmove eax, edi
xor ebp, ebp
push eax
push ebp
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x14
mov dword [esp + 0x1c], edi
mov esi, eax
pop edi
push edi
call fcn.004246fb
push edi
mov ebx, eax
mov dword [esp + 0x18], edi
call fcn.004246fb
push eax
mov dword [esp + 0x3c], edi
call fcn.00424704
push edi
call fcn.004246fb
mov edi, eax
add esp, 0x10
mov eax, ebp
mov dword [esp + 0x14], eax
test esi, esi
jne 0x41aa14
mov esi, str.AI_InstallLanguage
lea ecx, [esp + 0x30]
push ecx
push edi
lea ecx, [esp + 0x20]
push ecx
push ebp
lea ecx, [esp + 0x20]
push ecx
push ebx
push eax
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [esp + 0x24], eax
cmp eax, 0xea
jne 0x41a9c2
push ebx
call fcn.00424704
push dword [esp + 0x14]
call fcn.004246fb
push edi
mov ebx, eax
call fcn.00424704
push dword [esp + 0x3c]
call fcn.004246fb
add esp, 0x10
mov edi, eax
lea eax, [esp + 0x30]
push eax
push edi
lea eax, [esp + 0x20]
push eax
push ebp
lea eax, [esp + 0x20]
push eax
push ebx
push dword [esp + 0x2c]
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ecx, ebx
lea eax, [esi - 1]
sub ecx, str.AI_InstallLanguage
mov dword [esp + 0x20], ecx
inc eax
mov cl, byte [ecx + eax]
mov dl, byte [eax]
cmp cl, dl
jl 0x41a9eb
jg 0x41a9eb
test cl, cl
je 0x41aa00
test dl, dl
je 0x41aa00
mov ecx, dword [esp + 0x20]
jmp 0x41a9d1
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp dword [esp + 0x24], ebp
je 0x41a955
jmp 0x41aa14
or dword [esp + 0x24], 0xffffffff
lea edx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.0040154f
pop ecx
mov ebp, eax
push edi
call fcn.00424704
push ebx
call fcn.00424704
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x41aab6
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x88
mov eax, dword [0x448010]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov eax, edx
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push ecx
mov dword [esp + 0x38], eax
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41abc4
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x41abc4
cmp edi, dword [esp + 0x9c]
jbe 0x41abc4
sub edi, dword [esp + 0x9c]
push 0x43a4f1
push 0x10000
call fcn.00424bbb
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41abbd
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x13], bl
call fcn.00401748
push ebx
lea eax, [esp + 0x18]
push eax
push 0x10000
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41aba5
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x41aba5
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx]
cmp eax, edi
jbe 0x41ab88
mov ecx, edi
mov byte [esp + 0x13], 1
sub ecx, edx
mov dword [esp + 0x14], ecx
push ecx
push esi
lea ecx, [esp + 0x28]
call fcn.004015d4
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
cmp byte [esp + 0x13], bl
je 0x41ab51
lea ecx, [esp + 0x20]
call fcn.00401673
push dword [esp + 0x1c]
lea ecx, [esp + 0x24]
call fcn.004016f3
mov bl, al
push esi
call fcn.00424704
pop ecx
test ebp, ebp
je 0x41abcf
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x94]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004246ea
add esp, 0x88
ret
Function at 0x41b3d0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x22c
mov eax, dword [0x448010]
xor eax, esp
mov dword [esp + 0x224], eax
mov ecx, dword [esp + 0x230]
and dword [esp + 8], 0
mov eax, dword [esp + 0x23c]
push ebx
push ebp
mov dword [esp + 0x1c], ecx
mov ecx, dword [ecx]
push esi
push edi
sub ecx, 0x10
mov dword [esp + 0x1c], eax
call fcn.0040ab13
cmp byte [esp + 0x244], 0
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
je 0x41b43d
push 0x5c
push esi
call fcn.00426705
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x41b437
or ebx, 0xffffffff
jmp 0x41b440
sub ebx, esi
sar ebx, 1
jmp 0x41b440
mov ebx, dword [esi - 0xc]
cmp byte [esp + 0x244], 0
je 0x41b464
push ebx
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
call fcn.0040999a
mov edi, dword [esp + 0x14]
xor ecx, ecx
inc ecx
jmp 0x41b47a
lea ecx, [esi - 0x10]
call fcn.0040ab13
push 2
pop ecx
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
lea eax, [esp + 0x14]
mov dl, byte [esp + 0x248]
mov dword [esp + 0x10], ecx
mov ecx, eax
call fcn.0041bbe0
mov ebp, eax
mov eax, dword [esp + 0x10]
test al, 2
je 0x41b4a9
and eax, 0xfffffffd
lea ecx, [edi - 0x10]
mov dword [esp + 0x10], eax
call fcn.004052ff
mov eax, dword [esp + 0x10]
test al, 1
je 0x41b4b9
mov ecx, dword [esp + 0x20]
lea ecx, [ecx - 0x10]
call fcn.004052ff
test ebp, ebp
jne 0x41b4c5
xor ebx, ebx
inc ebx
jmp 0x41b5a6
cmp byte [esp + 0x244], 0
jne 0x41b54a
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x10], 0x104
push ecx
push ecx
push ecx
push ecx
push eax
lea eax, [esp + 0x3c]
mov ebx, ecx
push eax
push ecx
push ebp
call edi
test eax, eax
jne 0x41b546
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
call fcn.00404f61
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.00409766
mov ecx, dword [esp + 0x14]
inc ebx
lea ecx, [ecx - 0x10]
call fcn.004052ff
xor eax, eax
mov dword [esp + 0x10], 0x104
push eax
push eax
push eax
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ebx
push ebp
call edi
test eax, eax
je 0x41b4fb
mov esi, dword [esp + 0x18]
xor ebx, ebx
jmp 0x41b5a6
call fcn.0040522e
push eax
lea ecx, [esp + 0x14]
call fcn.004028b4
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x10]
push eax
lea eax, [ebx + 1]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00409a20
mov edx, eax
mov ecx, ebp
call fcn.0041b701
pop ecx
mov ecx, dword [esp + 0x18]
mov ebx, eax
lea ecx, [ecx - 0x10]
call fcn.004052ff
test ebx, ebx
jne 0x41b59a
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call fcn.00409766
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.004052ff
test ebp, ebp
je 0x41b5b1
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.004052ff
mov ecx, dword [esp + 0x234]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004246ea
add esp, 0x22c
ret 0x10
Function at 0x41b701
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov edi, edx
push eax
lea eax, [ebp - 8]
mov ebx, ecx
push eax
push 0
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 0xea
jne 0x41b767
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
call fcn.00404e33
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
mov esi, dword [edi]
push eax
call fcn.0040280d
push eax
lea eax, [ebp - 8]
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0xffffffffffffffff
call fcn.0040aaea
xor eax, eax
test esi, esi
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b775
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x28c
mov eax, dword [0x448010]
xor eax, esp
mov dword [esp + 0x284], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2a4]
mov ebx, ecx
push esi
mov esi, dword [esp + 0x2a4]
lea ecx, [esp + 0x29c]
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebp
call fcn.0040ab6c
call fcn.0040522e
push eax
lea ecx, [esp + 0x18]
call fcn.004028b4
lea eax, [esp + 0x14]
push eax
push esi
push ecx
mov ecx, dword [esp + 0x2ac]
mov esi, esp
add ecx, 0xfffffff0
call fcn.0040ab13
add eax, 0x10
mov dword [esi], eax
call fcn.0041b9ac
test al, al
je 0x41b833
push ecx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
call fcn.004112c8
push ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
call fcn.00411463
push eax
mov ecx, ebp
call fcn.00409766
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.004052ff
lea eax, [esp + 0x2c]
mov ecx, ebx
push eax
call fcn.0041bad3
test al, al
je 0x41b833
xor ebp, ebp
jmp 0x41b94b
mov edi, dword [esp + 0x2a4]
xor ebp, ebp
inc ebp
cmp edi, ebp
jl 0x41b94b
mov ecx, dword [esp + 0x2a0]
lea ecx, [ecx - 0x10]
call fcn.0040ab13
add eax, 0x10
lea ecx, [esp + 0x10]
push 0x44137c
mov dword [esp + 0x14], eax
call fcn.004028da
mov esi, dword [esp + 0x10]
cmp dword [esi - 4], ebp
jle 0x41b882
push dword [esi - 0xc]
lea ecx, [esp + 0x14]
call fcn.00404d3d
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
lea eax, [esp + 0x40]
push eax
push ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp ebx, 0xffffffff
setne cl
test cl, cl
je 0x41b938
lea ecx, [esp + 0x40]
call fcn.0041b983
test al, al
je 0x41b918
lea eax, [esp + 0x6c]
push eax
lea edx, [esp + 0x2a4]
lea ecx, [esp + 0x24]
call fcn.0040988c
pop ecx
push dword [esp + 0x18]
lea eax, [edi - 1]
mov edi, dword [esp + 0x24]
push dword [esp + 0x20]
push eax
lea eax, [edi - 0x10]
push ecx
mov ecx, eax
mov dword [esp + 0x38], eax
mov ebx, esp
call fcn.0040ab13
mov ecx, dword [esp + 0x34]
add eax, 0x10
mov dword [ebx], eax
call fcn.0041b775
test eax, eax
je 0x41b92a
mov ecx, dword [esp + 0x28]
call fcn.004052ff
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x2a4]
lea eax, [esp + 0x40]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebp
je 0x41b8ae
jmp 0x41b938
lea ecx, [edi - 0x10]
call fcn.004052ff
mov ebx, dword [esp + 0x10]
xor ebp, ebp
test ebx, ebx
je 0x41b943
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esi - 0x10]
call fcn.004052ff
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004052ff
mov ecx, dword [esp + 0x2a0]
add ecx, 0xfffffff0
call fcn.004052ff
mov ecx, dword [esp + 0x294]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004246ea
add esp, 0x28c
ret 0x10
Function at 0x41bc56
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
cmp byte [esp + 0x10], 0
push ebx
push ebp
push esi
push edi
jne 0x41bc94
mov dl, byte [esp + 0x1c]
mov ecx, dword [esp + 0x18]
call fcn.0041bbe0
cmp byte [esp + 0x24], 0
je 0x41bc7d
test eax, eax
setne bl
jmp 0x41bc82
test eax, eax
sete bl
test eax, eax
je 0x41bc8d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x41bd26
mov ebx, dword [esp + 0x18]
push 0x5c
push dword [ebx]
call fcn.00426705
pop ecx
pop ecx
mov esi, eax
push 3
pop edi
test esi, esi
je 0x41bd13
sub esi, dword [ebx]
sar esi, 1
js 0x41bd13
push esi
push 0
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
call fcn.0040999a
mov dl, byte [esp + 0x1c]
lea ecx, [esp + 0x20]
call fcn.0041bbe0
mov ebp, eax
test ebp, ebp
je 0x41bd07
lea edx, [esi + 1]
mov ecx, ebx
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00409a20
mov esi, dword [esp + 0x1c]
xor eax, eax
push eax
push eax
push eax
push eax
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esi - 0x10]
mov edi, eax
call fcn.004052ff
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.004052ff
cmp byte [esp + 0x24], 0
je 0x41bd21
test edi, edi
sete al
jmp 0x41bd26
test edi, edi
setne al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
Function at 0x41c3b7
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
push 0x43a4f1
push 0x400
mov ebp, ecx
call fcn.00424bbb
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41c3ef
push 3
pop edi
mov ebx, edi
push esi
call fcn.00424704
pop ecx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x28
ret 4
xor ebx, ebx
push 2
mov ecx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov eax, ebx
mov edx, ebx
pop edi
add eax, 0xa
sub edx, 0x400
mov dword [esp + 0x1c], eax
inc ecx
mov eax, edx
mov dword [esp + 0x28], edx
cdq
mov dword [esp + 0x20], ecx
mov ecx, eax
cmp dword [esp + 0x20], 1
mov eax, edx
mov dword [esp + 0x14], eax
jle 0x41c437
mov eax, dword [esp + 0x1c]
cdq
add ecx, eax
mov eax, dword [esp + 0x14]
adc eax, edx
push edi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push ecx
push dword [esp + 0x48]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
jne 0x41c463
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41c3da
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x400
push esi
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c3da
cmp dword [esp + 0x18], 0x400
jne 0x41c3da
lea eax, [esi + 0x3f6]
jmp 0x41c4b0
push 0xa
push str.ADVINSTSFX
push eax
call fcn.004267e0
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x14]
je 0x41c4d0
dec eax
mov dword [esp + 0x14], eax
cmp eax, esi
jae 0x41c497
or eax, 0xffffffff
test eax, eax
jns 0x41c4d4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
jmp 0x41c402
sub eax, esi
jmp 0x41c4bb
mov ecx, dword [esp + 0x2c]
add ecx, 0xffffffc0
mov dword [esp + 0x34], ebx
add eax, ecx
lea ecx, [esp + 0x34]
push ebx
push ecx
push eax
push dword [esp + 0x48]
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x41c3da
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x4a
push ebp
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c3da
cmp dword [esp + 0x18], ebx
je 0x41c3da
push 0xa
lea eax, [ebp + 0x40]
push str.ADVINSTSFX
push eax
call fcn.004267e0
add esp, 0xc
test eax, eax
jne 0x41c541
cmp dword [ebp + 0xc], 0x64
je 0x41c548
push 5
jmp 0x41c3d9
mov ecx, dword [esp + 0x30]
sub ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x34]
sbb eax, ebx
mov dword [ebp + 0x50], ecx
mov dword [ebp + 0x54], eax
jmp 0x41c3dc
Function at 0x41c5e5
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
mov ebx, ecx
xor ebp, ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov dword [ebx + 0x10], edi
cmp dword [ebx + 4], ebp
jne 0x41c5fd
xor eax, eax
jmp 0x41c66b
test edi, edi
je 0x41c61e
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
lea ecx, [ebx + 0x14]
call fcn.00409839
mov eax, dword [edi]
mov ecx, edi
push dword [ebx + 0x14]
call dword [eax + 0x20]
lea eax, [esp + 0x14]
push eax
push ebp
push ebx
push 0x41c672
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test edi, edi
je 0x41c63f
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [esp + 0x14]
test ebx, ebx
je 0x41c669
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41cb2e
Capabilities:
Delete file

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
push edi
push 0x2e
push dword [ebx]
mov ebp, ecx
call fcn.00426705
pop ecx
pop ecx
test eax, eax
je 0x41ccc9
sub eax, dword [ebx]
sar eax, 1
test eax, eax
jle 0x41ccc9
push eax
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
call fcn.0040995a
call fcn.0040522e
push eax
lea ecx, [esp + 0x20]
call fcn.004028b4
push dword [esp + 0x14]
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x20]
push dword [ebx]
push dword [esi]
push str.__verbose___log_file__s____remove_pack_file___s____s_
push eax
call fcn.0040a5cf
mov ecx, dword [ebp + 0x10]
add esp, 0x14
test ecx, ecx
je 0x41cba1
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
push 0
lea eax, [esp + 0x2c]
push 0x8000008
push eax
lea ecx, [ebp + 0xc]
lea edx, [esp + 0x28]
call fcn.00410365
add esp, 0xc
mov byte [esp + 0x30], 1
lea ecx, [esp + 0x14]
call fcn.0040b323
test al, al
je 0x41cbdb
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x41cc96
call fcn.0040522e
push eax
lea ecx, [esp + 0x34]
call fcn.004028b4
lea edx, [esp + 0x30]
mov ecx, esi
call fcn.00410bf8
call fcn.0040522e
push eax
lea ecx, [esp + 0x1c]
call fcn.004028b4
mov edx, 0xca
lea ecx, [esp + 0x20]
call fcn.0041aa2c
mov esi, dword [esp + 0x14]
push 0x5c
push esi
mov edi, dword [esi - 0xc]
call fcn.00426705
pop ecx
pop ecx
test eax, eax
jne 0x41cc2c
or eax, 0xffffffff
jmp 0x41cc30
sub eax, esi
sar eax, 1
sub edi, eax
lea ecx, [esp + 0x14]
push edi
lea eax, [esp + 0x28]
push eax
call fcn.00410db2
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x20]
push edi
push dword [eax]
lea eax, [esp + 0x20]
push esi
push eax
call fcn.0040a5cf
mov ecx, dword [esp + 0x34]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.004052ff
xor dl, dl
lea ecx, [esp + 0x18]
call fcn.004162fd
lea ecx, [esi - 0x10]
mov byte [esp + 0x30], 0
call fcn.004052ff
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.004052ff
lea ecx, [edi - 0x10]
call fcn.004052ff
mov esi, dword [esp + 0x34]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ccab
mov eax, dword [ecx]
push ebx
call dword [eax + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004052ff
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004052ff
mov al, byte [esp + 0x30]
jmp 0x41cccb
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
Function at 0x41cdbb
Capabilities:
Create thread

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x20], edi
mov dword [edi + 0x10], eax
cmp dword [eax], ebp
je 0x41cdf5
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
lea ecx, [edi + 0x14]
call fcn.00409839
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x10]
lea eax, [esp + 0x3c]
push eax
push ebp
push edi
push 0x41d05a
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [edi + 0x10]
mov ebx, eax
mov dword [esp + 0x24], ebx
cmp dword [ecx], ebp
je 0x41cea8
mov ecx, edi
call fcn.0041cede
mov esi, dword [edi + 4]
xorps xmm0, xmm0
mov ecx, dword [edi]
mov dword [esp + 0x28], eax
movlpd qword [esp + 0x30], xmm0
mov eax, dword [esi + 4]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x41ce8b
mov ebx, dword [esp + 0x10]
lea eax, [ecx + 0x78]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x18], eax
push ebx
mov ecx, edi
call fcn.00409706
mov ecx, dword [esp + 0x18]
push dword [eax]
call fcn.0040e9b5
mov eax, dword [eax + 0xc]
add ebp, eax
adc esi, 0
inc ebx
cmp ebx, dword [esp + 0x1c]
jl 0x41ce61
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov eax, dword [edi + 0x10]
add ebp, dword [esp + 0x28]
adc esi, dword [esp + 0x2c]
mov ecx, dword [eax]
push esi
push ebp
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x3c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [esp + 0x3c]
test ebx, ebx
je 0x41ced2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4