joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4536d0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x453703
push esi
call fcn.00456700
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4536fc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x453789
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x453772
mov eax, dword [esi + 8]
test eax, eax
je 0x453727
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45376e
cmp eax, 2
je 0x453772
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45371a
cmp eax, 3
je 0x45374d
cmp eax, 1
jne 0x45371a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45371a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45371a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004537b0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x453798
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004537b0
add esp, 4
pop esi
ret

Function at 0x45f490
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x45f533
test eax, eax
jbe 0x45f533
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x45f533
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45f4de
xor esi, esi
jmp 0x45f4e4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45f50f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00415e90
add esi, eax
push esi
mov ebx, esi
call fcn.00415e90
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x45f4f0
pop ebp
test edi, edi
pop edi
jne 0x45f533
test ebx, ebx
je 0x45f533
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004b6400
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x45f675
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45f78d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45f78d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004c9214
mov esi, eax
test esi, esi
je 0x45f78d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45f78d
mov ecx, esi
call fcn.0045f5e0
cmp edi, eax
jge 0x45f78d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x45f713
mov dword [esp + 0x34], 1
jmp 0x45f76e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45f78d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0045eb50
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x46d3e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x110]
call fcn.0046d1e0
pop edi
add esp, 0x104
ret 4

Function at 0x46d440
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x46d4a6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x46d4a6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x46d487
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x46dd00
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x46dd49
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x46e1c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d8590
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0046dd70
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0046ddf0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0046ddf0
lea ecx, [esi + 0xc]
call fcn.004c7752
lea ecx, [esi + 0x10]
call fcn.004c7752
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0046f380
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0046f380
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0046f380
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004c77c7
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004c77c7
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x47aa90
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x47aac3
push esi
call fcn.0047f780
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x47aabc
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x47ab49
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x47ab32
mov eax, dword [esi + 8]
test eax, eax
je 0x47aae7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x47ab2e
cmp eax, 2
je 0x47ab32
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47aada
cmp eax, 3
je 0x47ab0d
cmp eax, 1
jne 0x47aada
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x47aada
mov edx, dword [esi + 0x144]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47aada
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0047ab80
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x47ab69
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.0047ab80
add esp, 4
pop esi
ret

Function at 0x4c9bb7
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c9bef
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c7c6e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c7c46
jmp 0x4c9bfb
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4cb2ae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4cb2f0
call fcn.004d104e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4cb2f0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4cb2e7
xor eax, eax
jmp 0x4cb2f8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004cb2fe
pop edi
pop esi
pop ebx
ret 4
Function at 0x4d157e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d15ac
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d15ca
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d14e4
jmp 0x4d15ca
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d15ca
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d14e4
test edi, edi
mov eax, edi
jne 0x4d15b4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x18b3370
Capabilities:
Decompress data using aplib

Disassembly:
call 0x18b34c0
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x18b3396
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x18b3382
add dl, dl
jne 0x18b33a1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x18b33f4
xor eax, eax
add dl, dl
jne 0x18b33ae
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x18b3495
add dl, dl
jne 0x18b33bd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18b33c8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18b33d3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18b33de
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x18b33ea
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x18b338d
mov eax, 1
add dl, dl
jne 0x18b3402
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18b340d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x18b33f9
sub eax, ebx
mov ebx, 1
jne 0x18b3440
mov ecx, 1
add dl, dl
jne 0x18b3426
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18b3431
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x18b341d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x18b338d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18b3457
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18b3462
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x18b344e
cmp eax, 0x7d00
jae 0x18b3485
cmp eax, 0x500
jb 0x18b3480
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x18b338d
cmp eax, 0x7f
ja 0x18b3488
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x18b338d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x18b34b6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x18b338d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401f50
Capabilities:
Get disk size

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esi], 0
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x401f8d
pop esi
add esp, 8
ret
mov edx, dword [esp + 0x14]
mov dword [esi + 4], 0
mov eax, dword [esi + 4]
push eax
mov ecx, edx
push ecx
mov dword [esi], edx
mov edx, dword [esp + 0x18]
push 0
push edx
call fcn.00408d70
mov dword [esi], eax
mov ecx, dword [esi]
mov eax, edx
push eax
push ecx
mov dword [esi + 4], edx
mov edx, dword [esp + 0xc]
push 0
push edx
call fcn.00408d70
mov dword [esi], eax
mov dword [esi + 4], edx
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x402080
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x11c]
test edi, edi
jne 0x4020a9
push 0x57
call fcn.0040c3e0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
cmp byte [edi], 0
mov esi, edi
je 0x40213c
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x4020d2
cmp al, 0x5c
je 0x4020d2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4020c6
mov eax, esi
sub eax, edi
add eax, 2
cmp eax, 0x105
jb 0x4020e5
mov eax, 0x105
push eax
push edi
lea eax, [esp + 0x18]
push eax
call fcn.0040a830
cmp eax, 0x104
jae 0x40209c
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40212f
call ebx
cmp eax, 0xb7
je 0x402117
cmp eax, 5
jne 0x40209c
lea edx, [esp + 0x10]
push edx
call ebp
cmp eax, 0xffffffff
je 0x40209c
test al, 0x10
je 0x40209c
cmp byte [esi], 0
je 0x40213c
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4020c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret

Function at 0x4026f0
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp]
test eax, eax
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
je 0x40271e
push eax
push 0x41c
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
jmp 0x402738
push 0
push 0x41c
push esi
call ebx
push eax
call edi
push 0
push 0x41f
push esi
call ebx
push eax
call edi
mov eax, dword [ebp + 4]
test eax, eax
je 0x402757
push eax
call fcn.00425240
add esp, 4
push eax
push 0x41d
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
jmp 0x402771
push 0
push 0x41d
push esi
call ebx
push eax
call edi
push 0
push 0x420
push esi
call ebx
push eax
call edi
mov eax, dword [ebp + 8]
test eax, eax
je 0x40278a
push eax
push 0x41b
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0
push 0x41b
push esi
call ebx
push eax
call edi
push 0
push 0x41e
push esi
call ebx
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x402b80
Capabilities:
Delete file
Get file size
Move file

Disassembly:
push ecx
call fcn.004086c0
mov eax, dword [0x42fa70]
test eax, eax
je 0x402bab
push 0
push 0
push eax
call fcn.00423110
test eax, eax
jne 0x402ba1
mov dword [esp + 8], eax
mov dword [0x42fa70], 0
mov eax, dword [0x430fac]
xor ecx, ecx
test eax, eax
setle cl
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
dec ecx
and ecx, eax
mov esi, ecx
test esi, esi
jle 0x402c0b
test ebx, ebx
je 0x402bd5
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
mov eax, esi
jne 0x402be0
mov eax, 0x430fa8
mov eax, dword [eax + 4]
xor ecx, ecx
test eax, eax
setle cl
dec ecx
and ecx, eax
mov edi, ecx
mov ecx, esi
call fcn.00418290
push 0
push 0xfffffffffffffffe
push str.._AUDELETENODE__
push esi
call fcn.0040a0f0
test edi, edi
mov esi, edi
jg 0x402bc7
mov eax, dword [0x42fb84]
xor edx, edx
test eax, eax
setle dl
dec edx
and edx, eax
mov edi, edx
test edi, edi
jle 0x402d08
push ebp
test ebx, ebx
je 0x402cbf
lea esi, [edi + 0x10c]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
lea ebx, [edi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x402cc9
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebp
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x402d5d
cmp eax, 0xffffffff
je 0x402cc9
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x402cc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov ebp, eax
push ebp
push esi
push 0x7f
call fcn.00402620
push ebp
call fcn.00425240
push eax
push esi
push ebx
push str.ERROR:_unable_to_move_file__s_nto__s_n_s_n_n
call fcn.004250f0
add esp, 0x24
mov dword [esp + 0x18], 0
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test edi, edi
mov eax, edi
jne 0x402cd4
mov eax, 0x42fb80
mov eax, dword [eax + 4]
xor ecx, ecx
test eax, eax
setle cl
dec ecx
and ecx, eax
mov esi, ecx
mov ecx, edi
call fcn.00418290
push 0
push 0xfffffffffffffffe
push str.._AUMOVENODE__
push edi
call fcn.0040a0f0
test esi, esi
mov ebx, dword [esp + 0x18]
mov edi, esi
jg 0x402c25
pop ebp
mov eax, dword [0x42f968]
xor edx, edx
test eax, eax
setle dl
dec edx
and edx, eax
mov esi, edx
test esi, esi
jle 0x402d56
lea ecx, [ecx]
test esi, esi
mov eax, esi
jne 0x402d2b
mov eax, 0x42f964
mov eax, dword [eax + 4]
xor ecx, ecx
test eax, eax
setle cl
dec ecx
and ecx, eax
mov edi, ecx
mov ecx, esi
call fcn.00418290
push 0
push 0xfffffffffffffffe
push str.._AUCHECKNODE__
push esi
call fcn.0040a0f0
test edi, edi
mov esi, edi
jg 0x402d20
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push str.WARNING:_file__s_is_zero_length__ndid_not_move_it_n_n
call fcn.004250f0
add esp, 8
jmp 0x402cc9
Function at 0x402d80
Capabilities:
Check if file exists
Copy file

Disassembly:
push esi
push edi
push 0x42fa78
push 0x800
push 0x42f160
call fcn.00408360
add esp, 0xc
test eax, eax
jne 0x402da0
pop edi
pop esi
ret
push 0x42fa78
call fcn.00402e60
push 0x42fa78
mov esi, eax
call fcn.00402b30
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
test eax, eax
jne 0x402e08
push 0
push esi
push 0x42fa78
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x402e08
call edi
cmp eax, 2
je 0x402e08
call edi
push 0
mov esi, eax
push esi
push str.temporary_archive_file
push 0x7f
call fcn.00402620
push esi
call fcn.00425240
push eax
push str.ERROR:_unable_to_create_temporary_patch_archive_n_s_n_n
call fcn.004250f0
add esp, 0x1c
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [0x430fe0]
push 0
push 1
push 0x4000
or eax, 0x20
push eax
push esi
call fcn.00421740
test eax, eax
mov dword [0x42fa70], eax
jne 0x402e56
call edi
push 0
mov edi, eax
push edi
push str.temporary_archive_file
push 0x7e
call fcn.00402620
push edi
call fcn.00425240
push eax
push esi
push str.ERROR:_unable_to_create_archive__s_n_s_n_n
call fcn.004250f0
add esp, 0x20
pop edi
xor eax, eax
pop esi
ret
pop edi
mov eax, 1
pop esi
ret

Function at 0x402e60
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x42fb84]
sub esp, 0x104
xor ecx, ecx
test eax, eax
setle cl
push esi
push edi
mov edi, dword [esp + 0x110]
dec ecx
and ecx, eax
mov esi, ecx
test esi, esi
jle 0x402eae
push 0x7fffffff
lea edx, [esi + 0x10c]
push edx
push edi
call fcn.0040a7b0
test eax, eax
je 0x402f32
test esi, esi
jne 0x402ea7
mov esi, 0x42fb80
mov esi, dword [esi + 4]
test esi, esi
jg 0x402e84
push 0
push 0
push 2
mov ecx, 0x42fb7c
call fcn.00403f10
push 0x104
mov esi, eax
push edi
lea eax, [esi + 0x10c]
push eax
call fcn.0040a830
push 0x104
push edi
lea ecx, [esp + 0x10]
push ecx
call fcn.0040a830
lea edx, [esp + 8]
push edx
call fcn.00425820
add esi, 8
push esi
push 0
push 0x42aabc
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x402f27
mov eax, dword [0x42a974]
mov ecx, eax
push ecx
push str.PTC_d.TMP
inc eax
push 0x104
push esi
mov dword [0x42a974], eax
call fcn.0040ac20
add esp, 0x10
pop edi
mov eax, esi
pop esi
add esp, 0x104
ret
pop edi
lea eax, [esi + 8]
pop esi
add esp, 0x104
ret

Function at 0x403140
Capabilities:
Get common file path

Disassembly:
push 0x104
push 0x42fc90
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x40316a
call fcn.004252d0
push eax
push str.ERROR:_unable_to_get_Windows_Directory_n_s_n_n
call fcn.004250f0
add esp, 8
xor eax, eax
ret
mov eax, 1
ret
Function at 0x403440
Capabilities:
Delete file
Delete registry key

Disassembly:
mov eax, dword [0x430fb0]
test eax, eax
push esi
jne 0x403473
mov al, byte [0x430598]
test al, al
mov esi, 0x430598
je 0x403473
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
push esi
call edi
push esi
call fcn.0040a9d0
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x403460
pop edi
pop esi
jmp 0x403480
sub esp, 0x204
push ebx
push ebp
push esi
push edi
push 0x200
lea eax, [esp + 0x18]
push eax
push 2
call fcn.00411730
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
xor ebp, ebp
push ebp
lea edx, [esp + 0x20]
push edx
push 0x80000002
xor ebx, ebx
call edi
mov esi, eax
test esi, esi
jne 0x4034eb
mov eax, dword [str.Patch]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
test esi, esi
jne 0x4034e0
mov ebp, ebx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x80000001
call edi
mov edi, eax
test edi, edi
je 0x403546
push edi
call fcn.00425240
push eax
push str.WARNING:_couldnt_open_registry_key_for_deletion_n_s_n_n
call fcn.004250f0
add esp, 0xc
test ebx, ebx
jne 0x40358f
test esi, esi
jne 0x403527
mov esi, edi
push esi
call fcn.00425240
push eax
push str.WARNING:_couldnt_open_registry_key_for_deletion_n_s_n_n
call fcn.004250f0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret
mov edx, dword [str.Patch]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, eax
test edi, edi
je 0x40357f
push edi
call fcn.00425240
push eax
push str.WARNING:_couldnt_delete_registry_key_n_s_n_n
call fcn.004250f0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40358f
mov ecx, dword [esp + 0x10]
push ecx
mov ebp, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
jne 0x4035ad
test esi, esi
jne 0x403599
mov esi, edi
push esi
call fcn.00425240
push eax
push str.WARNING:_couldnt_delete_registry_key_n_s_n_n
call fcn.004250f0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret