joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b7f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x810
mov eax, dword [0x4895f0]
xor eax, esp
mov dword [esp + 0x80c], eax
mov eax, dword [esp + 0x814]
mov dx, word [0x46e994]
xor ecx, ecx
mov dword [esp + 4], ecx
mov dword [esp], ecx
mov ecx, dword [str.CLSID_]
push ebx
mov ebx, dword [esp + 0x820]
mov dword [esp + 0x10], ecx
mov cl, byte [0x46e996]
push ebp
mov ebp, dword [esp + 0x820]
mov byte [esp + 0x1a], cl
push esi
mov dword [esp + 0x14], 0x400
mov word [esp + 0x1c], dx
mov ecx, eax
nop
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x41b850
push edi
lea edi, [esp + 0x1c]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x41b865
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x1c]
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
pop edi
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x41b885
mov edx, dword [str.InprocServer32]
mov ecx, dword [0x46e984]
mov dword [eax], edx
mov edx, dword [0x46e988]
mov dword [eax + 4], ecx
mov ecx, dword [0x46e98c]
mov dword [eax + 8], edx
lea edx, [esp + 0xc]
push edx
push 0xf003f
mov dword [eax + 0xc], ecx
push 0
lea eax, [esp + 0x24]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41b934
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x41c]
push edx
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x41b934
cmp byte [esp + 0x419], 0x3a
jne 0x41b934
lea eax, [esp + 0x418]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41b903
sub eax, edx
cmp eax, dword [ebx]
jge 0x41b934
mov dword [ebx], eax
lea eax, [esp + 0x418]
mov edx, ebp
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x41b921
mov esi, 1
jmp 0x41b938
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41b947
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x818]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044ce74
add esp, 0x810
ret
Function at 0x41b9d0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebp
push edi
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocStringLen
push eax
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x1c], edi
je 0x41bb94
push esi
push 0x1000
call fcn.004282da
mov esi, eax
add esp, 4
test esi, esi
je 0x41bb73
push 0x1000
push ebp
push esi
call fcn.0044cf00
add esp, 0xc
push ebp
lea ecx, [esp + 0x1c]
push ecx
push 0x500
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bb73
cmp dword [esp + 0x18], 0x500
jb 0x41bb73
cmp word [esi], 0x5a4d
jne 0x41bb73
mov eax, dword [esi + 0x3c]
cmp eax, 0x500
jge 0x41bb73
test eax, eax
jle 0x41bb73
add eax, esi
mov edx, eax
sub edx, esi
add edx, 0xf8
cmp edx, 0x500
jge 0x41bb73
cmp dword [eax], 0x4550
jne 0x41bb73
movzx edx, word [eax + 0x14]
push ebx
lea ebx, [edx + eax + 0x18]
lea ecx, [eax + 4]
mov edx, ecx
sub edx, esi
add edx, 0x14
cmp edx, 0x500
mov dword [esp + 0x18], ebx
jge 0x41bb72
mov edx, ebx
sub edx, esi
add edx, 0x28
cmp edx, 0x500
jge 0x41bb72
movzx edx, word [ecx + 2]
cmp dx, 0x14
ja 0x41bb72
cmp word [eax + 0x5c], 1
je 0x41bb72
mov eax, dword [eax + 0x28]
test eax, eax
mov dword [esp + 0x14], eax
je 0x41bb72
movzx edi, dx
xor eax, eax
xor ecx, ecx
test edi, edi
jle 0x41bb4e
lea eax, [ebx + 0xc]
mov ebx, 0x20
sub ebx, esi
lea ecx, [ecx]
lea edx, [eax + ebx - 4]
cmp edx, 0x500
jge 0x41bb72
mov edx, dword [eax]
mov ebp, dword [eax - 4]
add ebp, edx
cmp ebp, dword [esp + 0x14]
jbe 0x41bb2f
cmp edx, dword [esp + 0x14]
jb 0x41bb41
mov ebp, dword [esp + 0x10]
add ecx, 1
add eax, 0x28
cmp ecx, edi
jl 0x41bb10
mov eax, ebp
jmp 0x41bb4a
mov ebp, dword [esp + 0x10]
mov eax, 1
mov ebx, dword [esp + 0x18]
cmp dword [ebx + 0x10], 0
je 0x41bb6d
test eax, eax
je 0x41bb72
lea eax, [ecx + ecx*4]
mov ecx, dword [ebx + eax*8 + 0x24]
and ecx, 0xe0000000
cmp ecx, 0xe0000000
jne 0x41bb72
mov ebp, 1
pop ebx
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x41bb8b
push esi
call fcn.004282df
add esp, 4
pop esi
pop edi
mov eax, ebp
pop ebp
add esp, 0x18
ret
pop edi
mov eax, ebp
pop ebp
add esp, 0x18
ret
Function at 0x41bf90
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x318
mov eax, dword [0x4895f0]
xor eax, esp
mov dword [esp + 0x314], eax
push ebx
push esi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x119]
push ebx
push eax
xor esi, esi
mov byte [esp + 0x120], bl
call fcn.0044cf00
push 0x103
lea ecx, [esp + 0x229]
push ebx
push ecx
mov byte [esp + 0x230], bl
call fcn.0044cf00
push 0x103
lea edx, [esp + 0x2d]
push ebx
push edx
mov byte [esp + 0x34], bl
call fcn.0044cf00
mov eax, dword [esp + 0x34c]
add esp, 0x24
cmp eax, 0x104
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebx
jge 0x41c0e8
mov ecx, dword [esp + 0x330]
cmp ecx, 0x104
jge 0x41c0e8
cmp eax, ebx
jle 0x41c0e8
cmp ecx, ebx
jle 0x41c0e8
mov eax, dword [esp + 0x32c]
lea edx, [esp + 0x218]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x41c042
mov eax, dword [esp + 0x324]
lea edx, [esp + 0x10]
sub edx, eax
jmp 0x41c060
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x41c060
push 0x5c
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0041bf30
add esp, 0xc
test eax, eax
je 0x41c0d9
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.0041be70
add esp, 8
test eax, eax
je 0x41c0d9
mov eax, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
push 0xf003f
push ebx
lea edx, [esp + 0x120]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41c0d9
mov edx, dword [esp + 8]
lea ecx, [esp + 0x218]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x41c0d9
lea esi, [eax + 1]
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x41c0e8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x31c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0044ce74
add esp, 0x318
ret
Function at 0x41c2f0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x10254
call fcn.0044ced0
mov eax, dword [0x4895f0]
xor eax, esp
mov dword [esp + 0x10250], eax
push ebx
mov ebx, dword [esp + 0x10264]
push esi
mov esi, dword [esp + 0x10260]
push edi
mov edi, dword [esp + 0x10268]
push 0x103
lea eax, [esp + 0x59]
push 0
push eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x60], 0
call fcn.0044cf00
mov eax, 0x3fff
push edi
push esi
mov dword [esp + 0x44], 0x104
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.0041c2b0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x41c527
push ebp
push ebx
push esi
call fcn.0041c2b0
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x38], ebp
je 0x41c526
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x80]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
xor esi, esi
cmp dword [esp + 0x1c], esi
jbe 0x41c445
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
jmp 0x41c3e0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xc264]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x4274]
push eax
push esi
push edi
mov dword [esp + 0x34], 0x3fff
mov byte [esp + 0x4280], 0
call ebx
test eax, eax
jne 0x41c43c
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push ecx
lea edx, [esp + 0xc264]
push edx
push eax
push 0
lea ecx, [esp + 0x4270]
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esi, 1
cmp esi, dword [esp + 0x1c]
jb 0x41c3e0
xor ebx, ebx
cmp dword [esp + 0x10], ebx
jbe 0x41c51a
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ecx]
lea edx, [esp + 0x50]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x170]
push ecx
push ebx
push edi
mov dword [esp + 0x4c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x41c509
mov edx, dword [esp + 0x24]
push edx
lea eax, [esp + 0x8264]
push eax
call ebp
push 0x469140
lea ecx, [esp + 0x8264]
push ecx
call esi
lea edx, [esp + 0x15c]
push edx
lea eax, [esp + 0x8264]
push eax
call esi
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x264]
push edx
call ebp
push 0x469140
lea eax, [esp + 0x264]
push eax
call esi
lea ecx, [esp + 0x15c]
push ecx
lea edx, [esp + 0x264]
push edx
call esi
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x8260]
push eax
lea ecx, [esp + 0x264]
push ecx
push edx
call fcn.0041c2f0
add esp, 0xc
add ebx, 1
cmp ebx, dword [esp + 0x10]
jb 0x41c460
mov ebp, dword [esp + 0x38]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call esi
push ebp
call esi
pop ebp
mov ecx, dword [esp + 0x1025c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044ce74
add esp, 0x10254
ret
Function at 0x41c620
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x4895f0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push str.SYSTEMCurrentControlSetControlSafeBoot
push reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
call fcn.0041c5e0
add esp, 8
test eax, eax
jne 0x41c6a9
push 0x104
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.RepairSystem
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
push str.SeRestorePrivilege
call fcn.0041c540
lea edx, [esp + 4]
push edx
push str.NewSafeBoot
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyA]
test eax, eax
jne 0x41c6d4
push str.SYSTEMCurrentControlSetControlSafeBoot
push str.NewSafeBootControlSet001ControlSafeBoot
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0041c2f0
add esp, 0xc
push str.NewSafeBoot
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyA]
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0044ce74
add esp, 0x108
ret
mov ecx, dword [esp + 0x108]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0044ce74
add esp, 0x108
ret

Function at 0x41d340
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x463dcd
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x4895f0]
xor eax, esp
mov dword [esp + 0x164], eax
push esi
push edi
mov eax, dword [0x4895f0]
xor eax, esp
push eax
lea eax, [esp + 0x174]
mov dword fs:[0], eax
mov esi, dword [esp + 0x184]
xor edi, edi
cmp dword [esi], edi
jne 0x41d413
push 8
call fcn.004282af
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, edi
mov dword [esp + 0x17c], edi
je 0x41d3ac
mov ecx, eax
call fcn.00433fc4
jmp 0x41d3ae
xor eax, eax
cmp eax, edi
mov dword [esp + 0x17c], 0xffffffff
mov dword [esi], eax
je 0x41d413
cmp dword [esp + 0x188], edi
mov eax, 0x4010
je 0x41d3d2
mov eax, 0x4011
push eax
push 0x160
lea eax, [esp + 0x18]
push eax
push 0x80
push str..txt
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [esi]
push eax
call fcn.004341c6
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
push 0xffffffffffffffff
push eax
call fcn.0042933c
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.0041d240
mov eax, 1
jmp 0x41d415
mov eax, edi
mov ecx, dword [esp + 0x174]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.0044ce74
add esp, 0x174
ret 8
Function at 0x4204d0
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x42051b
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x420521
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret 4
mov ecx, dword [esi + 4]
push 0
push eax
mov eax, dword [esp + 0x10]
push eax
push 2
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push 0
push 0
push 0
push 4
push eax
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
pop esi
ret 4

Function at 0x4205a0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, ecx
je 0x4205ef
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x138
jbe 0x4205ee
cmp word [ecx], 0x5a4d
jne 0x4205ee
mov edx, dword [ecx + 0x3c]
test edx, edx
jle 0x4205ee
push edi
lea edi, [edx + 0xf8]
cmp esi, edi
jbe 0x4205ed
add edx, ecx
mov edi, edx
sub edi, ecx
add edi, 0xf8
cmp esi, edi
jbe 0x4205ed
cmp dword [edx], 0x4550
jne 0x4205ed
mov eax, 1
pop edi
pop esi
ret 8

Function at 0x420600
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
or esi, 0xffffffff
test edi, edi
je 0x4206ec
push ebp
mov ebp, dword [esp + 0x18]
cmp ebp, 0x138
jbe 0x4206eb
push ebp
push edi
call fcn.004205a0
cmp eax, 1
jne 0x4206eb
mov ecx, dword [edi + 0x3c]
test ecx, ecx
jle 0x4206eb
lea eax, [ecx + 0xf8]
cmp ebp, eax
jbe 0x4206eb
lea eax, [ecx + edi]
mov edx, eax
sub edx, edi
add edx, 0xf8
cmp ebp, edx
jbe 0x4206eb
movzx edx, word [eax + 6]
movzx eax, word [eax + 0x14]
lea eax, [eax + ecx + 0x18]
lea ecx, [edx - 1]
cmp cx, 0x13
ja 0x4206eb
cmp eax, 0x40
jbe 0x4206eb
push ebx
movzx ebx, dx
lea edx, [ebx + ebx*4]
lea ecx, [eax + edx*8]
cmp ebp, ecx
jbe 0x4206ea
test ebx, ebx
mov dword [esp + 0x18], 0
jle 0x4206ea
mov ecx, 0x1c
sub ecx, edi
lea eax, [eax + edi + 0xc]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
jmp 0x4206b4
mov ecx, dword [esp + 0x10]
add ecx, eax
cmp ebp, ecx
jbe 0x4206ea
mov ecx, dword [eax]
cmp edi, ecx
mov edx, dword [eax + 8]
jb 0x4206f8
mov ebp, dword [eax - 4]
add ebp, ecx
cmp edi, ebp
ja 0x4206f4
mov esi, edx
sub esi, ecx
add esi, edi
cmp esi, edx
jb 0x4206e7
mov ebp, dword [esp + 0x1c]
cmp esi, ebp
ja 0x4206e7
mov ecx, dword [eax + 4]
add ecx, edx
cmp esi, ecx
jbe 0x4206f8
or esi, 0xffffffff
pop ebx
pop ebp
pop edi
mov eax, esi
pop esi
pop ecx
ret 0xc
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add ecx, 1
add eax, 0x28
cmp ecx, ebx
mov dword [esp + 0x18], ecx
jl 0x4206b0
pop ebx
pop ebp
pop edi
mov eax, esi
pop esi
pop ecx
ret 0xc
Function at 0x422140
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x4895f0]
xor eax, esp
mov dword [esp + 0x40c], eax
push esi
mov esi, dword [esp + 0x418]
push edi
xor edi, edi
push 0x3ff
lea eax, [esp + 0x19]
push edi
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], edi
mov byte [esp + 0x20], 0
call fcn.0044cf00
add esp, 0xc
test esi, esi
mov dword [esp + 0xc], 0x400
je 0x422221
lea ecx, [esp + 8]
push ecx
push 0xf003f
push edi
push str.SOFTWARETENCENTQQ
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x422212
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push edi
push str.Install
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42220d
lea eax, [esp + 0x14]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4221e0
sub eax, edx
cmp eax, 2
jl 0x422212
cmp byte [esp + 0x15], 0x3a
jne 0x42220d
lea eax, [esp + 0x14]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x422201
mov edi, 1
mov eax, dword [esp + 8]
test eax, eax
je 0x422221
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x414]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0044ce74
add esp, 0x410
ret 4
Function at 0x422ed0
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
sub esp, 8
push ebp
mov ebp, ecx
mov dword [esp + 4], ebp
call fcn.004226e0
cmp dword [ebp + 4], 0
mov dword [esp + 8], 0
jle 0x422fd0
push ebx
push esi
push edi
lea ebx, [ebp + 0x820]
lea ebx, [ebx]
mov edi, 0x479918
mov esi, ebx
mov ecx, 1
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x422f5d
lea ebp, [ebx + 0x400]
mov edi, 0x479918
mov esi, ebp
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x422f59
mov eax, ebp
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x422f30
sub eax, edx
mov edx, eax
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x422f42
push edx
sub eax, esi
push ebp
push eax
push ebx
call fcn.0041bf90
add esp, 0x10
mov ebp, dword [esp + 0x10]
lea eax, [ebx + 0x800]
mov edi, 0x479918
mov esi, eax
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x422f7e
push eax
call fcn.0041bba0
add esp, 4
push 0x20
lea esi, [ebx - 0x400]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x422fb3
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp + 8], 1
mov eax, dword [esp + 0x14]
add eax, 1
add ebx, 0x1414
cmp eax, dword [ebp + 4]
mov dword [esp + 0x14], eax
jl 0x422f00
pop edi
pop esi
pop ebx
call fcn.0041c620
xor eax, eax
pop ebp
add esp, 8
ret

Function at 0x4230c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3c
mov eax, dword [0x4895f0]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
push esi
mov esi, dword [esp + 0x44]
push edi
push 0
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
call fcn.00422ff0
mov edi, eax
test edi, edi
jne 0x42310d
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0044ce74
add esp, 0x3c
ret
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
call fcn.00423060
test eax, eax
je 0x4230fa
sub esi, dword [esp + 0x24]
push ebx
add esi, dword [esp + 0x30]
mov ebx, dword [edi + 0x20]
push ebp
mov ebp, esi
mov esi, dword [edi + 0x1c]
add esi, ebp
add ebx, ebp
cmp dword [edi + 0x18], 0
mov dword [esp + 0x10], 0
jle 0x423188
mov eax, dword [ebx]
mov edx, dword [esp + 0x1c]
add eax, ebp
push edx
push eax
add ebx, 4
call fcn.0044e806
add esp, 8
test eax, eax
je 0x423176
mov eax, dword [esp + 0x10]
add eax, 1
add esi, 4
cmp eax, dword [edi + 0x18]
mov dword [esp + 0x10], eax
jl 0x423148
jmp 0x423188
mov eax, dword [esi]
mov ecx, dword [esp + 0x14]
add eax, ebp
mov dword [ecx], eax
mov edx, dword [esi]
mov eax, dword [esp + 0x18]
mov dword [eax], edx
mov ecx, dword [esp + 0x48]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0044ce74
add esp, 0x3c
ret
Function at 0x4231a0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
or esi, 0xffffffff
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, esi
je 0x42323e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
cmp esi, ebx
je 0x423245
cmp esi, 0xffffffff
je 0x42323e
push ebp
push ebx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [esp + 0x28]
push ecx
mov ebp, eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push eax
push ebp
call fcn.004230c0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x423232
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
call fcn.0044d2f0
add esp, 0xc
test ebp, ebp
je 0x42323d
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x423250
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x425c00
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, ecx
je 0x425c30
mov edx, dword [esp + 8]
test edx, edx
je 0x425c30
shr edx, 2
je 0x425c2b
push esi
mov esi, dword [esp + 0x10]
lea esp, [esp]
xor dword [ecx + eax*4], esi
add eax, 1
cmp eax, edx
jb 0x425c20
pop esi
mov eax, 1
ret

Function at 0x425c40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x425c4b
xor eax, eax
ret
push ebp
mov ebp, dword [esp + 0x10]
cmp ebp, 8
push esi
mov esi, dword [esp + 0xc]
not esi
jl 0x425d44
push edi
mov edi, ebp
shr edi, 3
mov eax, edi
neg eax
lea ebp, [ebp + eax*8]
mov edi, edi
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x46f960]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46f960]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x46f960]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46f960]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46f960]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46f960]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46f960]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46f960]
add ecx, 1
sub edi, 1
mov esi, eax
jne 0x425c70
pop edi
test ebp, ebp
je 0x425d6c
jmp 0x425d50
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x46f960]
add ecx, 1
sub ebp, 1
jne 0x425d50
mov eax, esi
pop esi
not eax
pop ebp
ret