joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415e80
Capabilities:
Access peb ldr_data
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x447f80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [0x45eef8]
mov dword [esp + 0x28], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov bl, 2
mov byte [esp + 0x28], bl
call fcn.0040fc70
mov edi, eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push ecx
test eax, eax
mov ecx, esp
je 0x416034
lea edx, [esp + 0x34]
mov dword [esp + 0x18], esp
push edx
call fcn.00438aa3
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.00410a00
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 3
call fcn.00438e1b
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00438d2e
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x10]
call fcn.00438e1b
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
mov eax, dword [edx - 8]
inc eax
push eax
push 0
call fcn.00436f73
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00407cf0
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push eax
push 0
mov byte [esp + 0x30], 4
call fcn.00436fcb
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00438d2e
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esi + 0x78]
call fcn.00438e1b
lea edx, [esp + 0xc]
lea ecx, [esi + 0x74]
push edx
call fcn.00438e1b
push ecx
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00438aa3
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.00410940
mov eax, dword [eax]
mov ecx, edi
push eax
mov byte [esp + 0x2c], 5
call fcn.00410ec0
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00438d2e
push 0
push 0
push 0
push 0
push 0x44b740
call fcn.0043d04f
push esi
mov ecx, eax
mov dword [esi + 0x6c], eax
call fcn.00415e70
push 0
push 0
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00438aa3
push ecx
lea eax, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0x3c], 6
call fcn.00438aa3
mov ecx, dword [esi + 0x6c]
mov byte [esp + 0x38], bl
call fcn.004062a0
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00438aa3
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov byte [esp + 0x34], 7
call fcn.00438aa3
mov ecx, esi
mov byte [esp + 0x30], bl
call fcn.00416570
jmp 0x41605f
lea edx, [esp + 0x34]
mov dword [esp + 0x20], esp
push edx
call fcn.00438aa3
mov ecx, esi
call fcn.00416500
mov esi, dword [esi + 0x68]
push 0
push 0
push 0x8015
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00438d2e
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.00438d2e
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.00438d2e
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 4
Function at 0x415fb2
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x447f80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [0x45eef8]
mov dword [esp + 0x28], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov bl, 2
mov byte [esp + 0x28], bl
call fcn.0040fc70
mov edi, eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push ecx
test eax, eax
mov ecx, esp
je 0x416034
lea edx, [esp + 0x34]
mov dword [esp + 0x18], esp
push edx
call fcn.00438aa3
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.00410a00
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 3
call fcn.00438e1b
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00438d2e
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x10]
call fcn.00438e1b
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
mov eax, dword [edx - 8]
inc eax
push eax
push 0
call fcn.00436f73
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00407cf0
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push eax
push 0
mov byte [esp + 0x30], 4
call fcn.00436fcb
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00438d2e
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esi + 0x78]
call fcn.00438e1b
lea edx, [esp + 0xc]
lea ecx, [esi + 0x74]
push edx
call fcn.00438e1b
push ecx
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00438aa3
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.00410940
mov eax, dword [eax]
mov ecx, edi
push eax
mov byte [esp + 0x2c], 5
call fcn.00410ec0
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00438d2e
push 0
push 0
push 0
push 0
push 0x44b740
call fcn.0043d04f
push esi
mov ecx, eax
mov dword [esi + 0x6c], eax
call fcn.00415e70
push 0
push 0
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00438aa3
push ecx
lea eax, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0x3c], 6
call fcn.00438aa3
mov ecx, dword [esi + 0x6c]
mov byte [esp + 0x38], bl
call fcn.004062a0
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00438aa3
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov byte [esp + 0x34], 7
call fcn.00438aa3
mov ecx, esi
mov byte [esp + 0x30], bl
call fcn.00416570
jmp 0x41605f
lea edx, [esp + 0x34]
mov dword [esp + 0x20], esp
push edx
call fcn.00438aa3
mov ecx, esi
call fcn.00416500
mov esi, dword [esi + 0x68]
push 0
push 0
push 0x8015
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00438d2e
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.00438d2e
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.00438d2e
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 4
Function at 0x4160a0
Capabilities:
Access peb ldr_data
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x447fc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [0x45eef8]
mov dword [esp + 0x28], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov bl, 2
mov byte [esp + 0x28], bl
call fcn.0040fc70
mov edi, eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push ecx
test eax, eax
mov ecx, esp
je 0x4161e6
lea edx, [esp + 0x34]
mov dword [esp + 0x18], esp
push edx
call fcn.00438aa3
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.00410a00
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 3
call fcn.00438e1b
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00438d2e
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x10]
call fcn.00438e1b
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
mov eax, dword [edx - 8]
push eax
push 0
call fcn.00436f73
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00407cf0
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push eax
push 0
mov byte [esp + 0x30], 4
call fcn.00436fcb
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00438d2e
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esi + 0x78]
call fcn.00438e1b
lea edx, [esp + 0xc]
lea ecx, [esi + 0x74]
push edx
call fcn.00438e1b
push 0
push 0
push 0
push 0
push 0x44b858
call fcn.0043d04f
push esi
mov ecx, eax
mov dword [esi + 0x70], eax
call fcn.00415e70
push 0
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00438aa3
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x38], 5
call fcn.00438aa3
mov ecx, dword [esi + 0x70]
mov byte [esp + 0x34], bl
call fcn.00406fa0
jmp 0x416211
lea eax, [esp + 0x34]
mov dword [esp + 0x20], esp
push eax
call fcn.00438aa3
mov ecx, esi
call fcn.00416500
mov esi, dword [esi + 0x68]
push 0
push 0
push 0x8015
mov ecx, dword [esi + 0x2c]
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00438d2e
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.00438d2e
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.00438d2e
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 4
Function at 0x416db0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x44819f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
push str.1970_01_01
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebp
call fcn.00438d9c
mov eax, dword [esp + 0x3c]
mov ecx, dword [edi + 0x78]
push eax
mov dword [esp + 0x34], 1
call fcn.0040a2a0
mov ecx, eax
call fcn.004077f0
test eax, eax
jle 0x416f2e
mov ecx, dword [esp + 0x3c]
push ebp
push ecx
mov ecx, dword [edi + 0x78]
call fcn.0040a2a0
mov ecx, eax
call fcn.00407800
mov esi, eax
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.00424ca0
mov ecx, dword [0x462c24]
mov eax, dword [eax]
push ecx
push eax
call fcn.0042a604
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.00438d2e
test bl, bl
je 0x416f11
mov eax, dword [esi + 4]
test eax, eax
jle 0x416f11
mov edx, dword [esp + 0x10]
push str.1970_01_01
push edx
call fcn.0042a604
add esp, 8
test eax, eax
je 0x416e8c
mov eax, dword [esp + 0x10]
push str.1970_01_01_00:00:00
push eax
call fcn.0042a604
add esp, 8
test eax, eax
jne 0x416f11
mov al, byte [esp + 0x40]
push ecx
test al, al
je 0x416ecc
mov ecx, esp
mov dword [esp + 0x28], esp
push 0
push ecx
mov ecx, esi
call fcn.004173d0
mov ecx, dword [edi + 0x7c]
lea edx, [esp + 0x1c]
push edx
call fcn.0040ec90
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call fcn.00438e1b
mov byte [esp + 0x30], 1
lea ecx, [esp + 0x18]
jmp 0x416f01
mov eax, esp
mov dword [esp + 0x28], esp
push 0
push eax
mov ecx, esi
call fcn.004173d0
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [edi + 0x7c]
call fcn.0040eb70
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 3
call fcn.00438e1b
mov byte [esp + 0x30], 1
lea ecx, [esp + 0x1c]
call fcn.00438d2e
mov eax, dword [esi + 4]
test eax, eax
jg 0x416e5c
mov edx, dword [esp + 0x3c]
mov ecx, dword [edi + 0x78]
push edx
inc ebp
call fcn.0040a2a0
mov ecx, eax
call fcn.004077f0
cmp ebp, eax
jl 0x416e06
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00438aa3
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call fcn.00438d2e
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 0xc
Function at 0x417aa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4482f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x45eef8]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x14], eax
xor ecx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x30]
push ecx
mov dword [ebp + 0x80], eax
mov dword [ebp + 0x8c], ecx
lea eax, [eax + eax*2]
mov bl, 1
mov ecx, esp
mov dword [esp + 0x34], esp
lea edx, [ebp + eax*4 + 0x98]
mov byte [esp + 0x2c], bl
push edx
call fcn.00438aa3
mov ecx, dword [ebp + 0x6090]
lea eax, [esp + 0x1c]
push eax
call fcn.00410870
mov esi, eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 2
push ecx
mov ecx, dword [ebp + 0x6090]
call fcn.00407cd0
mov edx, dword [esi]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x1c]
push str._s_s
push ecx
mov byte [esp + 0x38], 3
call fcn.00437677
add esp, 0x10
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 2
call fcn.00438d2e
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.00438d2e
mov eax, dword [ebp + 0x80]
push ecx
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x34], esp
lea edx, [eax + eax*2]
lea eax, [ebp + edx*4]
push eax
call fcn.00438aa3
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [ebp + 0x6090]
call fcn.00410870
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 4
call fcn.00438e1b
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.00438d2e
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 0x60a0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x6098]
call fcn.0040a280
push eax
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00438aa3
mov eax, dword [ebp + 0x80]
mov byte [esp + 0x30], 5
lea ecx, [eax + eax*2]
push ecx
lea edx, [ebp + ecx*4 + 0x98]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00438aa3
mov ecx, dword [ebp + 0x609c]
mov byte [esp + 0x34], bl
call fcn.0040ea70
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.00438d2e
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.00438d2e
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 4

Function at 0x417cd8
Capabilities:
Get disk size

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push ebx
push esi
mov esi, ecx
push eax
mov ecx, dword [esi + 0x6090]
call fcn.00407cd0
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
lea ecx, [esp + 0x20]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
lea ecx, [esp + 8]
sete bl
call fcn.00438d2e
test bl, bl
jne 0x417d2f
mov eax, dword [esi + 0x70]
mov ecx, dword [esp + 0x10]
cdq
cmp ecx, edx
jb 0x417d2f
ja 0x417d27
mov edx, dword [esp + 0xc]
cmp edx, eax
jbe 0x417d2f
pop esi
mov al, 1
pop ebx
add esp, 0x1c
ret
pop esi
xor al, al
pop ebx
add esp, 0x1c
ret
Function at 0x418130
Capabilities:
Resume thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi + 0x7c], eax
sub eax, 0
je 0x418193
dec eax
je 0x41816c
dec eax
jne 0x4181b6
mov eax, dword [esi + 0x74]
mov ecx, dword [eax + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esi + 0x74]
push 0
push 0
push 0x8010
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
pop esi
ret 4
mov ecx, dword [esi + 0x70]
mov edx, dword [ecx + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0x70]
push 0
push 0
push 0x8010
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
pop esi
ret 4
mov edx, dword [esi + 0x6c]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esi + 0x6c]
push 0
push 0
push 0x8010
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
pop esi
ret 4

Function at 0x4181c0
Capabilities:
Suspend thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x7c]
sub eax, 0
je 0x4181e3
dec eax
je 0x4181da
dec eax
jne 0x4181f0
mov eax, dword [esi + 0x74]
mov ecx, dword [eax + 0x28]
push ecx
jmp 0x4181ea
mov edx, dword [esi + 0x70]
mov eax, dword [edx + 0x28]
push eax
jmp 0x4181ea
mov ecx, dword [esi + 0x6c]
mov edx, dword [ecx + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [esi + 0x7c]
inc edx
mov eax, edx
mov dword [esi + 0x7c], edx
cmp eax, 3
jge 0x418208
push eax
mov ecx, esi
call fcn.00418130
pop esi
ret
mov eax, dword [esi + 0xa8]
mov ecx, dword [esi + 0x68]
push edi
mov edi, dword [sym.imp.USER32.dll_PostThreadMessageA]
mov edx, dword [ecx + 0x2c]
push eax
push 0x64
push 0x8006
push edx
call edi
mov eax, dword [esi + 0x68]
push 0
push 0x64
push 0x8007
mov ecx, dword [eax + 0x2c]
push ecx
call edi
mov edx, dword [esi + 0x68]
push 0
push 5
push 0x8004
mov eax, dword [edx + 0x2c]
push eax
call edi
mov ecx, dword [esi + 0x2c]
push 0
push 0
push 0x12
push ecx
call edi
pop edi
pop esi
ret
Function at 0x418500
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4483a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x45eef8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov ecx, dword [esi + 0x94]
lea eax, [ebp - 0x20]
mov bl, 2
push eax
mov byte [ebp - 4], bl
call fcn.00407c90
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push eax
push ecx
mov byte [ebp - 4], 3
call fcn.00437677
add esp, 8
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00438d2e
push 0x92
lea edx, [ebp - 0x18]
push 0x45e7b0
push edx
call fcn.00437677
mov eax, dword [ebp - 0x18]
add esp, 0xc
push 0x45e7ac
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [ebp - 0x20]
mov edi, eax
push ecx
mov ecx, dword [esi + 0x94]
mov byte [ebp - 4], 4
call fcn.00407d10
mov edx, dword [eax]
push str.UpdaterCopy.exe
push edx
lea eax, [ebp - 0x14]
push str._s_s
push eax
mov byte [ebp - 4], 5
call fcn.00437677
add esp, 0x10
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.00438d2e
mov ecx, dword [ebp - 0x14]
push 0x1001
push ecx
lea ecx, [ebp - 0x34]
call fcn.00439350
push 0x64
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push ebx
lea ecx, [ebp - 0x34]
call fcn.00439604
lea ecx, [ebp - 0x34]
call fcn.004396c8
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.004393f0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 1
call fcn.00438d2e
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00438d2e
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00438d2e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4191e0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4484b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, ecx
push edi
push eax
mov ecx, ebx
call fcn.00407800
lea ecx, [esp + 0x24]
mov edi, eax
push ecx
mov ecx, ebx
call fcn.00407c90
mov ebp, eax
mov ecx, dword [esi + 0x9c]
lea edx, [esp + 0x28]
xor ebx, ebx
push 0x2740
push edx
mov dword [esp + 0x24], ebx
call fcn.004120a0
mov ecx, dword [ebp]
mov eax, dword [eax]
push ecx
lea edx, [esi + 0x6c]
push eax
push edx
mov byte [esp + 0x28], 1
call fcn.00437677
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], bl
call fcn.00438d2e
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00438d2e
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x84]
push eax
push ecx
mov ecx, esi
call fcn.00419950
mov ecx, esi
mov dword [esi + 0x78], eax
mov dword [esi + 0x74], ebx
call fcn.0041a2b0
cmp byte [edi + 8], bl
je 0x419344
mov edx, dword [0x45eef8]
mov dword [esp + 0x28], edx
push ecx
mov ecx, edi
mov eax, esp
mov dword [esp + 0x28], esp
push eax
mov dword [esp + 0x24], 2
call fcn.00419dd0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x98]
call fcn.00410870
mov ebp, eax
mov ecx, dword [esi + 0x9c]
lea edx, [esp + 0x24]
push 0x271a
push edx
mov byte [esp + 0x24], 3
call fcn.004120a0
mov ecx, dword [ebp]
mov eax, dword [eax]
push ecx
lea edx, [esp + 0x2c]
push eax
push edx
mov byte [esp + 0x28], 4
call fcn.00437677
add esp, 0xc
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 3
call fcn.00438d2e
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 2
call fcn.00438d2e
mov eax, dword [esp + 0x28]
push ebx
push 0x24
push eax
call fcn.0044070d
cmp eax, 7
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x28]
jne 0x41933f
call fcn.00438d2e
jmp 0x4193a6
call fcn.00438d2e
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.00419dd0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
lea ecx, [esp + 0x10]
sete byte [esp + 0x28]
call fcn.00438d2e
cmp byte [esp + 0x28], bl
je 0x419380
mov edx, dword [esi + 0x68]
push ebx
push 6
push 0x8002
mov eax, dword [edx + 0x2c]
push eax
jmp 0x4193a0
mov ebp, dword [esi + 0x7c]
mov ecx, esi
inc ebp
mov dword [esi + 0x74], 1
mov dword [esi + 0x7c], ebp
call fcn.0041a2b0
mov ecx, dword [esi + 0x2c]
push ebx
push ebx
push 0x8012
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 8
Function at 0x419880
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0xc]
push eax
call fcn.00407800
mov edi, dword [eax + 8]
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call fcn.00419dd0
mov edx, dword [eax]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x10]
call fcn.00438d2e
mov eax, dword [esi + 0x2c]
push 0
push 0
push 0x8012
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
pop edi
pop esi
ret 8

Function at 0x41ac30
Capabilities:
Delete file

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x10]
push ecx
mov ecx, edi
mov eax, esp
mov dword [esp + 0xc], esp
push eax
call fcn.00419dd0
mov ecx, esi
call fcn.0041af80
test al, al
jne 0x41ac73
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.00419dd0
mov edx, dword [eax]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
call fcn.00438d2e
jmp 0x41ac8c
push 1
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
push eax
mov ecx, edi
call fcn.00419dd0
mov ecx, dword [esi + 0x70]
call fcn.00410cc0
mov eax, dword [esi + 0x88]
mov ecx, esi
inc eax
mov dword [esi + 0x88], eax
call fcn.0041af30
mov ecx, dword [esi + 0x2c]
push 0
push 0
push 0x8013
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
pop edi
pop esi
pop ecx
ret 4
Function at 0x420b40
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4496f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [0x45eef8]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x64]
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0x64], ebx
call fcn.00419dd0
mov ecx, dword [ebp + 0x2f8]
call fcn.00411380
cmp al, bl
jne 0x420bbe
lea edx, [esp + 0x14]
mov ecx, esi
push edx
call fcn.00419dd0
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
lea ecx, [esp + 0x14]
sete byte [esp + 0x64]
call fcn.00438d2e
cmp byte [esp + 0x64], bl
jne 0x420c77
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x64]
mov ecx, esi
push eax
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x20], 0x40
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.00419dd0
mov eax, dword [eax]
lea ecx, [esp + 0x64]
mov dword [esp + 0x28], eax
call fcn.00438d2e
lea ecx, [esp + 0x64]
push ecx
mov ecx, esi
call fcn.0041b130
mov eax, dword [eax]
lea ecx, [esp + 0x64]
mov dword [esp + 0x2c], eax
call fcn.00438d2e
push ecx
mov ecx, dword [ebp + 0x2fc]
mov edx, esp
mov dword [esp + 0x68], esp
push edx
call fcn.00414ee0
mov ecx, dword [ebp + 0x2f8]
lea eax, [esp + 0x68]
push eax
call fcn.00410940
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x60], 1
call fcn.00438e1b
lea ecx, [esp + 0x64]
mov byte [esp + 0x5c], bl
call fcn.00438d2e
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], 5
mov dword [esp + 0x3c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00438d2e
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x50
ret 4