joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443230
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
jne 0x443250
push ebx
push ebx
push ebx
push 2
call fcn.00446ee0
pop edi
xor al, al
pop ebx
pop ebp
ret 8
push esi
mov esi, dword [edi + 0x18]
test esi, esi
je 0x443267
mov ecx, esi
mov esi, dword [esi + 0x3c]
push 1
mov eax, dword [ecx]
call dword [eax]
test esi, esi
jne 0x443258
push 2
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
push 0
push ebx
mov dword [edi + 8], 0xffffffff
mov dword [edi + 4], 0xffffffff
call fcn.0045782c
push ebx
call fcn.00457c3f
push 0
mov esi, eax
push 0
push ebx
mov dword [ebp + 8], esi
call fcn.0045782c
add esp, 0x1c
test esi, esi
jg 0x4432c1
push 0
push 0
push 0
push 0xc
mov ecx, edi
call fcn.00446ee0
pop esi
pop edi
xor al, al
pop ebx
pop ebp
ret 8
lea eax, [esi + 1]
push eax
call fcn.00452b71
push ebx
mov ebx, dword [ebp + 8]
mov esi, eax
push 1
push ebx
push esi
mov byte [esi], 0
call fcn.004576f1
add esp, 0x14
cmp eax, 1
je 0x443305
push esi
call fcn.00455c91
add esp, 4
mov ecx, edi
push 0
push 0
push 0
push 2
call fcn.00446ee0
pop esi
pop edi
xor al, al
pop ebx
pop ebp
ret 8
mov byte [esi + ebx], 0
mov eax, esi
cmp byte [esi], 0
mov ecx, esi
je 0x44332e
mov dl, byte [eax]
cmp dl, 0xd
jne 0x443325
inc eax
mov byte [ecx], 0xa
inc ecx
cmp byte [eax], 0xa
jne 0x443329
jmp 0x443328
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], 0
jne 0x443312
push dword [ebp + 0xc]
mov byte [ecx], 0
mov ecx, edi
mov eax, dword [edi]
push 0
push esi
call dword [eax + 8]
push esi
call fcn.00455c91
add esp, 4
xor eax, eax
cmp byte [edi + 0x40], al
sete al
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x4442b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b348
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x559410]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], 0
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 4
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov edi, dword [ebp + 8]
mov dword [esi], 0x526430
mov dword [ebp - 4], 0
cmp byte [edi], 0
jne 0x444345
xor ecx, ecx
jmp 0x444359
mov ecx, edi
lea ebx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x444350
sub ecx, ebx
push ecx
push edi
lea ecx, [esi + 0x20]
call fcn.00405b80
mov byte [esi + 0x40], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x448a60
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x103]
push esi
push edi
push 0xff
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.00455160
push 0xff
lea eax, [ebp - 0x203]
mov byte [ebp - 0x204], 0
push 0
push eax
call fcn.00455160
mov esi, dword [ebp + 0x14]
add esp, 0x18
mov edi, dword [ebp + 0x10]
xor ecx, ecx
jmp 0x448ac0
mov eax, ecx
mov byte [ebp + ecx - 0x104], cl
cdq
idiv esi
mov al, byte [edx + edi]
mov byte [ebp + ecx - 0x204], al
inc ecx
cmp ecx, 0x100
jl 0x448ac0
xor edi, edi
xor esi, esi
jmp 0x448af0
mov dl, byte [ebp + esi - 0x104]
movzx eax, byte [ebp + esi - 0x204]
add eax, edi
movzx ecx, dl
add ecx, eax
mov edi, ecx
and edi, 0x800000ff
jns 0x448b18
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [ebp + edi - 0x104]
mov byte [ebp + esi - 0x104], al
inc esi
mov byte [ebp + edi - 0x104], dl
cmp esi, 0x100
jl 0x448af0
xor edx, edx
xor esi, esi
xor edi, edi
cmp dword [ebp + 0xc], edx
jle 0x448bb1
inc edx
and edx, 0x800000ff
jns 0x448b52
dec edx
or edx, 0xffffff00
inc edx
mov cl, byte [ebp + edx - 0x104]
movzx eax, cl
add esi, eax
and esi, 0x800000ff
jns 0x448b6e
dec esi
or esi, 0xffffff00
inc esi
mov al, byte [ebp + esi - 0x104]
mov byte [ebp + edx - 0x104], al
mov byte [ebp + esi - 0x104], cl
movzx eax, byte [ebp + edx - 0x104]
movzx ecx, cl
add ecx, eax
and ecx, 0x800000ff
jns 0x448ba0
dec ecx
or ecx, 0xffffff00
inc ecx
movzx ecx, byte [ebp + ecx - 0x104]
xor byte [ebx + edi], cl
inc edi
cmp edi, dword [ebp + 0xc]
jl 0x448b41
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00453c72
mov esp, ebp
pop ebp
ret
Function at 0x449310
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0x68]
test eax, eax
jne 0x44938c
push 0x37
push eax
mov eax, 0x29
mov byte [edi + 0x28], 0x80
add eax, edi
push eax
call fcn.00455160
mov edx, dword [edi + 0x70]
add esp, 0xc
mov ebx, dword [edi + 0x74]
shld ebx, edx, 3
shl edx, 3
mov eax, ebx
mov ecx, edx
mov byte [edi + 0x67], dl
shrd ecx, eax, 8
mov byte [edi + 0x63], bl
shr eax, 8
mov byte [edi + 0x66], cl
mov eax, ebx
mov ecx, edx
shrd ecx, eax, 0x10
shr eax, 0x10
mov eax, ebx
mov byte [edi + 0x65], cl
shrd edx, eax, 0x18
mov ecx, edi
shr eax, 0x18
mov eax, ebx
mov byte [edi + 0x64], dl
shr eax, 8
mov byte [edi + 0x62], al
mov eax, ebx
shr eax, 0x10
shr ebx, 0x18
mov byte [edi + 0x60], bl
mov byte [edi + 0x61], al
pop edi
pop ebx
jmp fcn.00448ed0
cmp eax, 0x38
jae 0x449419
push esi
mov esi, 0x38
mov byte [eax + edi + 0x28], 0x80
sub esi, eax
lea eax, [esi - 1]
push eax
mov eax, dword [edi + 0x68]
add eax, 0x29
add eax, edi
push 0
push eax
call fcn.00455160
mov edx, dword [edi + 0x70]
add esi, edi
mov ebx, dword [edi + 0x74]
add esp, 0xc
add esi, dword [edi + 0x68]
shld ebx, edx, 3
shl edx, 3
mov eax, ebx
mov ecx, edx
mov byte [esi + 0x2f], dl
shrd ecx, eax, 8
mov byte [esi + 0x2b], bl
shr eax, 8
mov byte [esi + 0x2e], cl
mov eax, ebx
mov ecx, edx
shrd ecx, eax, 0x10
shr eax, 0x10
mov eax, ebx
mov byte [esi + 0x2d], cl
shrd edx, eax, 0x18
mov ecx, edi
shr eax, 0x18
mov eax, ebx
mov byte [esi + 0x2c], dl
shr eax, 8
mov byte [esi + 0x2a], al
mov eax, ebx
shr eax, 0x10
shr ebx, 0x18
mov byte [esi + 0x28], bl
mov byte [esi + 0x29], al
pop esi
pop edi
pop ebx
jmp fcn.00448ed0
jne 0x449430
xor ecx, ecx
mov byte [edi + 0x60], 0x80
mov dword [edi + eax + 0x29], ecx
mov word [edi + eax + 0x2d], cx
mov byte [edi + eax + 0x2f], cl
jmp 0x44944f
mov byte [eax + edi + 0x28], 0x80
mov eax, 0x3f
sub eax, dword [edi + 0x68]
push eax
lea eax, [edi + 0x29]
add eax, dword [edi + 0x68]
push 0
push eax
call fcn.00455160
add esp, 0xc
mov ecx, edi
call fcn.00448ed0
push 0x38
lea eax, [edi + 0x28]
push 0
push eax
call fcn.00455160
mov ecx, dword [edi + 0x70]
mov eax, dword [edi + 0x74]
shld eax, ecx, 3
push eax
shl ecx, 3
lea eax, [edi + 0x60]
push ecx
push eax
call fcn.00449610
add esp, 0x18
mov ecx, edi
pop edi
pop ebx
jmp fcn.00448ed0

Function at 0x4496b0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
mov dword [eax + 0x28], 0
pop ebp
ret
Function at 0x44a2e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x44a30c
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00455160
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x20e], 0x5c
lea esi, [ebp + eax*2 - 0x20e]
je 0x44a2fb
lea eax, [ebp - 0x20c]
cmp esi, eax
jbe 0x44a378
lea esp, [esp]
cmp word [esi], 0x5c
je 0x44a378
xor eax, eax
mov word [esi], ax
sub esi, 2
lea eax, [ebp - 0x20c]
cmp esi, eax
ja 0x44a360
lea eax, [ebp - 0x20c]
cmp esi, eax
jne 0x44a396
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [esi], ax
sub esi, 2
lea eax, [ebp - 0x20c]
cmp esi, eax
je 0x44a2fb
push edi
cmp esi, eax
jbe 0x44a401
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
jmp 0x44a3c0
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
jne 0x44a3fa
cmp word [esi], 0x5c
je 0x44a3e9
jmp 0x44a3e0
sub esi, 2
cmp word [esi], 0x5c
jne 0x44a3e0
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x20c]
cmp esi, eax
ja 0x44a3c0
jmp 0x44a401
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi + 2], 0
push ebx
je 0x44a436
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, 0x5c
mov word [esi], bx
add esi, 2
cmp word [esi], 0
jne 0x44a417
push 0
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x44a44c
cmp word [esi + 2], 0
jne 0x44a414
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00453c72
mov esp, ebp
pop ebp
ret
Function at 0x44a460
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x888
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
mov dword [ebp - 0x888], ebx
call esi
test eax, eax
jne 0x44a49d
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00455160
add esp, 0xc
lea eax, [ebp - 0x414]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x414]
push eax
call esi
cmp word [ebp + eax*2 - 0x416], 0x5c
je 0x44a4e7
push 0x523dbc
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.00455160
push 0x525570
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push 0x524b8c
push eax
call fcn.00421970
add esp, 0x1c
lea eax, [ebp - 0x884]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x44a48b
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov edi, edi
test byte [ebp - 0x884], 0x10
je 0x44a5cd
push 0x524b3c
lea eax, [ebp - 0x858]
push eax
call edi
test eax, eax
je 0x44a688
cmp word [ebp - 0x858], 0x2e
je 0x44a688
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00455160
lea eax, [ebp - 0x858]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x524b8c
push eax
call fcn.00421970
lea eax, [ebp - 0x20c]
push 1
push eax
call fcn.0044a460
add esp, 0x24
jmp 0x44a688
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00455160
lea eax, [ebp - 0x858]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x524b8c
push eax
call fcn.00421970
xor eax, eax
mov dword [ebp - 0x620], 7
add esp, 0x1c
mov dword [ebp - 0x624], 0
mov word [ebp - 0x634], ax
cmp word [ebp - 0x20c], ax
je 0x44a64f
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44a640
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x634]
call fcn.004197f0
lea eax, [ebp - 0x20c]
push eax
call fcn.0044a870
add esp, 4
cmp dword [ebp - 0x620], 8
jb 0x44a688
push dword [ebp - 0x634]
call fcn.00406890
add esp, 4
lea eax, [ebp - 0x884]
push eax
push esi
call ebx
test eax, eax
jne 0x44a550
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x888]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00453c72
mov esp, ebp
pop ebp
ret
Function at 0x44a6c0
Capabilities:
Copy file
Delete file
Move file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b736
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x290]
mov esi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push ecx
push eax
mov dword [ebp - 0x298], eax
call ebx
cmp eax, 0xffffffff
je 0x44a730
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
push eax
call edi
cmp dword [ebp + 0x10], 0
jne 0x44a74e
lea eax, [ebp - 0x290]
push eax
push esi
call ebx
cmp eax, 0xffffffff
je 0x44a74e
push eax
call edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
push esi
call fcn.0044a2e0
add esp, 4
lea eax, [ebp - 0x290]
push eax
push esi
call ebx
cmp eax, 0xffffffff
je 0x44a846
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x44a846
push esi
lea ecx, [ebp - 0x40]
call fcn.00419370
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x294]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x294], 0x5c
call fcn.00429080
cmp eax, 0xffffffff
je 0x44a83e
push 0xffffffffffffffff
inc eax
lea ecx, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00421930
push 0x208
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.00455160
add esp, 0xc
lea eax, [ebp - 0x248]
push 0x208
push eax
push 0x526f0c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x248]
push eax
push 0x524af0
push eax
call fcn.00421970
add esp, 0x10
lea eax, [ebp - 0x248]
push 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x28]
test eax, eax
jne 0x44a839
call fcn.004193d0
lea ecx, [ebp - 0x40]
call fcn.004193d0
jmp 0x44a730
call fcn.004193d0
lea ecx, [ebp - 0x40]
call fcn.004193d0
push 1
push esi
push dword [ebp - 0x298]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x44a730
mov eax, 1
jmp 0x44a732
Function at 0x44a870
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
test esi, esi
je 0x44a9dd
push 0x81e
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.00455160
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44a8b2
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.004540d0
add esp, 0xc
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x44a8fa
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x44a8e6
lea ecx, [ebp - 0x824]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x44a926
mov eax, dword [0x526f14]
mov dword [ecx], eax
mov eax, dword [0x526f18]
mov dword [ecx + 4], eax
mov ax, word [0x526f1c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov word [ecx + 8], ax
lea eax, [ebp - 0x824]
push 1
push eax
push esi
call edi
test eax, eax
jne 0x44a9ca
lea ecx, [ebp - 0x824]
lea edx, [ecx + 2]
jmp 0x44a970
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44a970
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 4]
cmp eax, 0x40f
jae 0x44a9ec
lea eax, [ebp - 0x824]
add eax, 0xfffffffe
mov cx, word [eax + 2]
lea eax, [eax + 2]
test cx, cx
jne 0x44a992
mov ecx, dword [0x526f14]
mov dword [eax], ecx
mov ecx, dword [0x526f18]
mov dword [eax + 4], ecx
mov cx, word [0x526f1c]
mov word [eax + 8], cx
lea eax, [ebp - 0x824]
push 1
push eax
push esi
call edi
test eax, eax
je 0x44a962
push 4
push 0
lea eax, [ebp - 0x824]
push eax
call edi
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00453c72
mov esp, ebp
pop ebp
ret
Function at 0x44ab50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b766
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.0044ca30
push 0x523dbc
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00434600
mov edi, eax
add esp, 0x10
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x44abd9
cmp dword [ebp - 0x14], 8
jb 0x44abbc
push dword [ebp - 0x28]
call fcn.00406890
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0041b9d0
cmp dword [ebp - 0x2c], 8
jb 0x44abea
push dword [ebp - 0x40]
call fcn.00406890
add esp, 4
push 0xa
push 0x524afc
lea ecx, [ebp - 0x28]
call fcn.0041c070
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov edx, esi
cmovae ecx, dword [ebp - 0x28]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x44ac06
push 1
push 0x523dbc
lea ecx, [ebp - 0x28]
call fcn.0041c070
push 0xe
push str.InpaintMAX.exe
lea ecx, [ebp - 0x28]
call fcn.0041c070
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44ac52
mov esi, 1
jmp 0x44ac72
mov ecx, 0x524a84
sub esi, ecx
lea esp, [esp]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi + ecx - 2], ax
test ax, ax
jne 0x44ac60
xor esi, esi
cmp dword [ebp - 0x14], 8
jb 0x44ac83
push dword [ebp - 0x28]
call fcn.00406890
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret

Function at 0x44ad20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x104
push 0
push eax
call fcn.00455160
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x108]
add esp, 0xc
sub edx, ecx
lea ecx, [ecx]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x44ad60
lea esi, [ebp - 0x108]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x44ad76
lea eax, [ebp - 0x10c]
sub esi, ecx
push eax
push ebx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x44add5
push esi
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push edi
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x44add5
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00453c72
mov esp, ebp
pop ebp
ret
Function at 0x44b390
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x5634a8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x44b3e4
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x44b3d4
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [0x5634a8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebp
ret
mov eax, 1
pop ebp
ret

Function at 0x44b3f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x254]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x44b4dd
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x38
lea eax, [ebp - 0x28c]
push 0
push eax
call fcn.00455160
mov eax, dword [ebp + 0x10]
add esp, 0xc
neg eax
mov dword [ebp - 0x290], 0x3c
mov dword [ebp - 0x28c], 0x40
sbb eax, eax
mov dword [ebp - 0x288], 0
and eax, 5
mov dword [ebp - 0x284], str.open
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x290]
push eax
mov dword [ebp - 0x280], edi
mov dword [ebp - 0x27c], ebx
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x270], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp + 0x14], 0
mov edi, eax
je 0x44b4be
push 0x7d0
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
je 0x44b4ca
mov eax, dword [ebp - 0x258]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00453c72
mov esp, ebp
pop ebp
ret

Function at 0x44b4f0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push dword [ebp + 0x10]
movzx eax, ax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x44b56d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x44b56d
push 0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret