joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46edf5
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 0x46ef0d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46ef0d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004a4464
mov esi, eax
test esi, esi
je 0x46ef0d
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 0x46ef0d
mov ecx, esi
call fcn.0046ecb0
cmp edi, eax
jge 0x46ef0d
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 0x46ee93
mov dword [esp + 0x34], 1
jmp 0x46eeee
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46ef0d
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.0046c240
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 0x475d80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
lea eax, [esp]
push esi
push eax
push 1
push 0
push str.Control_PanelDesktop
push reloc.WS2_32.dll_accept
mov esi, 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x475df3
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.WheelScrollLines
push ecx
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x475de8
push 0xa
lea edx, [esp + 0x14]
push eax
push edx
call fcn.00492edf
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x8c
ret
Function at 0x487600
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4b67a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x4f768c]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
lea ecx, [esp + 8]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xac], ebx
call fcn.004a4e08
cmp dword [0x52c9c8], ebx
je 0x487670
lea ecx, [esp + 8]
mov dword [esp + 0xa8], 0xffffffff
call fcn.004a29fb
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
add esp, 0xa4
ret
mov edx, dword [0x4f768c]
push ebp
push edi
mov edi, 1
mov dword [0x52c9c8], edi
mov dword [esp + 0x40], edx
cmp esi, ebx
mov byte [esp + 0xb0], 1
jne 0x487699
mov dword [esp + 0x20], ebx
jmp 0x4876a0
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, esi
call fcn.004a6f4a
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], 5
mov dword [esp + 0x34], edx
call fcn.004a2ae8
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x1c], edx
jne 0x4876fe
mov dword [esp + 0x14], ebx
jmp 0x487705
mov ebp, dword [eax + 0x1c]
mov dword [esp + 0x14], ebp
cmp ecx, 0xd
jne 0x48771f
mov eax, dword [eax + 0x3c4]
cmp eax, edi
je 0x487719
cmp eax, 2
jne 0x48771f
mov dword [esp + 0x18], edi
jmp 0x487723
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x487731
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004a443d
mov edi, eax
cmp edi, ebx
jne 0x487741
xor eax, eax
jmp 0x487744
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x48776c
mov ecx, esi
call fcn.004a6f4a
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
je 0x487784
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x18]
mov dword [0x52c9c8], 0
test eax, eax
je 0x4877ad
mov esi, dword [esp + 0x14]
push esi
call ebx
test eax, eax
je 0x4877ad
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 0
call fcn.004a29fb
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0xffffffff
call fcn.004a29fb
mov ecx, dword [esp + 0xa8]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x489670
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b6998
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004a963f
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.004895b0
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
add ecx, 0x64
add eax, 0x64
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004a956d
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x489737
cmp dword [esp + 0x40], 1
jne 0x489735
cmp ecx, eax
jge 0x489737
mov eax, ecx
cmp eax, 0x12c
jge 0x489743
mov eax, 0x12c
mov ecx, esi
mov dword [esi + 0x194], eax
mov dword [esi + 0x1dc], 1
call fcn.00489790
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a96b1
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x48d9e0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4b6e86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x4f768c]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.004a4e08
mov edx, dword [0x4f768c]
mov dword [esp + 0x3c], edx
cmp esi, ebx
mov byte [esp + 0xac], 1
jne 0x48da3a
mov dword [esp + 0x1c], ebx
jmp 0x48da41
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
push edi
mov ecx, esi
call fcn.004a6f4a
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
call fcn.004a2ae8
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x48da92
mov dword [esp + 0x14], ebx
jmp 0x48da99
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x48dab4
mov eax, dword [eax + 0x3c4]
cmp eax, edi
je 0x48daae
cmp eax, 2
jne 0x48dab4
mov dword [esp + 0x18], edi
jmp 0x48dab8
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x48dac6
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004a443d
mov edi, eax
cmp edi, ebx
jne 0x48dad6
xor eax, eax
jmp 0x48dad9
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x48db01
mov ecx, esi
call fcn.004a6f4a
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x48db1d
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x48db3c
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x48db3c
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.004a29fb
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 0xffffffff
call fcn.004a29fb
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4a4e08
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a4e40
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.004a2e56
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a2e2e
jmp 0x4a4e4c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a6679
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 0x4a66bb
call fcn.004ad2f6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a66bb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a66b2
xor eax, eax
jmp 0x4a66c3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a66c9
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ad826
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 0x4ad854
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ad872
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ad78c
jmp 0x4ad872
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ad872
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ad78c
test edi, edi
mov eax, edi
jne 0x4ad85c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4b00b4
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4b00dc
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4b00ed
push 2
call edi
test ax, ax
jge 0x4b00ed
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004a443d
cmp dword [esi + 0x30], ebx
jne 0x4b01c7
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004a443d
cmp eax, dword [esp + 0x34]
jne 0x4b01c7
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4b0163
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4b01a8
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4b01c7
cmp eax, 0x205
je 0x4b01c7
cmp eax, 0x201
je 0x4b01c7
cmp eax, 0x204
je 0x4b01c7
cmp eax, ebx
jne 0x4b018e
cmp dword [esp + 0x1c], 0x1b
je 0x4b01c7
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x52e7b4]
jbe 0x4b01bd
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4b0120
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x402300
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 0x40233d
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.00409ba0
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.00409ba0
mov dword [esi], eax
mov dword [esi + 4], edx
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x402430
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 0x402459
push 0x57
call fcn.00411cb0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
cmp byte [edi], 0
mov esi, edi
je 0x4024ec
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x402482
cmp al, 0x5c
je 0x402482
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x402476
mov eax, esi
sub eax, edi
add eax, 2
cmp eax, 0x105
jb 0x402495
mov eax, 0x105
push eax
push edi
lea eax, [esp + 0x18]
push eax
call fcn.00410330
cmp eax, 0x104
jae 0x40244c
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4024df
call ebx
cmp eax, 0xb7
je 0x4024c7
cmp eax, 5
jne 0x40244c
lea edx, [esp + 0x10]
push edx
call ebp
cmp eax, 0xffffffff
je 0x40244c
test al, 0x10
je 0x40244c
cmp byte [esi], 0
je 0x4024ec
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x402470
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret

Function at 0x402aa0
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 0x402ace
push eax
push 0x41c
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
jmp 0x402ae8
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 0x402b07
push eax
call fcn.0040e340
add esp, 4
push eax
push 0x41d
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
jmp 0x402b21
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 0x402b3a
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 0x402f50
Capabilities:
Delete file
Get file size
Move file

Disassembly:
push ecx
call fcn.004094f0
mov eax, dword [0x43d880]
test eax, eax
je 0x402f7b
push 0
push 0
push eax
call fcn.0040be60
test eax, eax
jne 0x402f71
mov dword [esp + 8], eax
mov dword [0x43d880], 0
push ebx
mov ebx, dword [0x43edbc]
test bl, 1
push esi
push edi
jne 0x402f8d
test ebx, ebx
jne 0x402f8f
xor ebx, ebx
mov edi, dword [esp + 0x14]
test bl, 1
jne 0x402fe0
test ebx, ebx
je 0x402fe0
test edi, edi
je 0x402faa
lea eax, [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
mov ecx, 0x43edb4
call fcn.0041b860
mov eax, dword [eax + 4]
test al, 1
jne 0x402fc0
test eax, eax
jne 0x402fc4
xor esi, esi
jmp 0x402fc6
mov esi, eax
mov ecx, ebx
call fcn.00404820
push 0
push 0xfffffffffffffffe
push str.._AUDELETENODE__
push ebx
call fcn.0040fb50
mov ebx, esi
jmp 0x402f93
mov ebx, dword [0x43d994]
test bl, 1
jne 0x402fef
test ebx, ebx
jne 0x402ff1
xor ebx, ebx
push ebp
test bl, 1
jne 0x4030ee
test ebx, ebx
je 0x4030ee
test edi, edi
je 0x40309b
lea esi, [ebx + 0x10c]
push esi
call fcn.00403140
add esp, 4
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
lea edi, [ebx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4030a5
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 0x4030b4
cmp eax, 0xffffffff
je 0x4030a5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4030a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov ebp, eax
push ebp
push esi
push 0x7f
call fcn.004029d0
push ebp
call fcn.0040e340
push eax
push esi
push edi
push str.ERROR:_unable_to_move_file__s_nto__s_n_s_n_n
call fcn.0040e170
add esp, 0x24
mov dword [esp + 0x18], 0
lea ecx, [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebx + 4]
test al, 1
jne 0x4030b0
test eax, eax
jne 0x4030cb
xor esi, esi
jmp 0x4030cd
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
push str.WARNING:_file__s_is_zero_length__ndid_not_move_it_n_n
call fcn.0040e170
add esp, 8
jmp 0x4030a5
mov esi, eax
mov ecx, ebx
call fcn.00404820
push 0
push 0xfffffffffffffffe
push str.._AUMOVENODE__
push ebx
call fcn.0040fb50
mov edi, dword [esp + 0x18]
mov ebx, esi
jmp 0x402ff2
mov ebx, dword [0x43d778]
test bl, 1
pop ebp
jne 0x4030fe
test ebx, ebx
jne 0x403100
xor ebx, ebx
test bl, 1
jne 0x403134
test ebx, ebx
je 0x403134
mov eax, dword [ebx + 4]
test al, 1
jne 0x403114
test eax, eax
jne 0x403118
xor esi, esi
jmp 0x40311a
mov esi, eax
mov ecx, ebx
call fcn.00404820
push 0
push 0xfffffffffffffffe
push str.._AUCHECKNODE__
push ebx
call fcn.0040fb50
mov ebx, esi
jmp 0x403100
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x403140
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x403155
mov eax, 1
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
neg eax
sbb eax, eax
inc eax
ret
Function at 0x4033e0
Capabilities:
Check if file exists

Disassembly:
push esi
push edi
push 0x43d888
push 0x800
push 0x43cf70
call fcn.004091a0
add esp, 0xc
test eax, eax
jne 0x403400
pop edi
pop esi
ret
push 0x43d888
call fcn.004034d0
push 0x43d888
mov esi, eax
call fcn.00402f00
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
test eax, eax
jne 0x40346a
push 0
push esi
push 0x43d888
call fcn.00403170
add esp, 0xc
test eax, eax
jne 0x40346a
call edi
cmp eax, 2
je 0x40346a
call edi
push 0
mov esi, eax
push esi
push str.temporary_archive_file
push 0x7f
call fcn.004029d0
push esi
call fcn.0040e340
push eax
push str.ERROR:_unable_to_create_temporary_patch_archive_n_s_n_n
call fcn.0040e170
add esp, 0x1c
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [0x43edf0]
push 0
push 0
push 0
push 1
push 0x4000
or eax, 0x20
push eax
push esi
call fcn.00409f80
test eax, eax
mov dword [0x43d880], eax
jne 0x4034bc
call edi
push 0
mov edi, eax
push edi
push str.temporary_archive_file
push 0x7e
call fcn.004029d0
push edi
call fcn.0040e340
push eax
push esi
push str.ERROR:_unable_to_create_archive__s_n_s_n_n
call fcn.0040e170
add esp, 0x20
pop edi
xor eax, eax
pop esi
ret
pop edi
mov eax, 1
pop esi
ret

Function at 0x4034d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [0x43d994]
test bl, 1
push edi
jne 0x4034e7
test ebx, ebx
jne 0x4034e9
xor ebx, ebx
mov edi, dword [esp + 0x110]
test bl, 1
jne 0x403520
test ebx, ebx
je 0x403520
push 0x7fffffff
lea eax, [ebx + 0x10c]
push eax
push edi
call fcn.00410210
test eax, eax
je 0x403514
mov ebx, dword [ebx + 4]
jmp 0x4034f0
pop edi
lea eax, [ebx + 8]
pop ebx
add esp, 0x104
ret
push esi
push 0
push 0
push 2
mov ecx, 0x43d98c
call fcn.00404640
push 0x104
mov esi, eax
push edi
lea ecx, [esi + 0x10c]
push ecx
call fcn.00410330
push 0x104
push edi
lea edx, [esp + 0x14]
push edx
call fcn.00410330
lea eax, [esp + 0xc]
push eax
call fcn.0040e680
add esi, 8
push esi
push 0
push 0x438ccc
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40359a
mov eax, dword [0x438b84]
mov ecx, eax
push ecx
push str.PTC_d.TMP
inc eax
push 0x104
push esi
mov dword [0x438b84], eax
call fcn.004104c0
add esp, 0x10
mov eax, esi
pop esi
pop edi
pop ebx
add esp, 0x104
ret

Function at 0x4037b0
Capabilities:
Get common file path

Disassembly:
push 0x104
push 0x43daa0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x4037da
call fcn.0040e3d0
push eax
push str.ERROR:_unable_to_get_Windows_Directory_n_s_n_n
call fcn.0040e170
add esp, 8
xor eax, eax
ret
mov eax, 1
ret
Function at 0x403ae0
Capabilities:
Delete file
Delete registry key

Disassembly:
mov eax, dword [0x43edc0]
test eax, eax
push esi
jne 0x403b13
mov al, byte [0x43e3a8]
test al, al
mov esi, 0x43e3a8
je 0x403b13
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
push esi
call edi
push esi
call fcn.00410400
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x403b00
pop edi
pop esi
jmp 0x403b20
sub esp, 0x204
push ebx
push ebp
push esi
push edi
push 0x200
lea eax, [esp + 0x18]
push eax
push 2
call fcn.00417640
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 0x403b8b
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 0x403b80
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 0x403be6
push edi
call fcn.0040e340
push eax
push str.WARNING:_couldnt_open_registry_key_for_deletion_n_s_n_n
call fcn.0040e170
add esp, 0xc
test ebx, ebx
jne 0x403c2f
test esi, esi
jne 0x403bc7
mov esi, edi
push esi
call fcn.0040e340
push eax
push str.WARNING:_couldnt_open_registry_key_for_deletion_n_s_n_n
call fcn.0040e170
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 0x403c1f
push edi
call fcn.0040e340
push eax
push str.WARNING:_couldnt_delete_registry_key_n_s_n_n
call fcn.0040e170
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403c2f
mov ecx, dword [esp + 0x10]
push ecx
mov ebp, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
jne 0x403c4d
test esi, esi
jne 0x403c39
mov esi, edi
push esi
call fcn.0040e340
push eax
push str.WARNING:_couldnt_delete_registry_key_n_s_n_n
call fcn.0040e170
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret