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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
je 0x47fea7
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
or edx, 0x20019
push ecx
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x47feaa
mov esi, dword [ebp + 8]
test esi, esi
je 0x48005d
call fcn.0047e240
test eax, eax
je 0x47ff55
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 0x14]
push 0
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x480051
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x47fef9
cmp eax, 2
je 0x47fef9
cmp eax, 6
je 0x47fef9
cmp eax, 7
jne 0x480051
mov ecx, dword [ebp + 0xc]
add ecx, 2
push ecx
call fcn.005acc0c
mov edx, dword [ebp + 0xc]
mov ebx, eax
xor eax, eax
mov edi, ebx
lea ecx, [edx + 2]
add esp, 4
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebx
jne 0x48003c
mov ecx, dword [ebp + 0x18]
call fcn.0046b6c0
cmp esi, dword [ebp + 8]
je 0x480026
jmp 0x48001f
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x47ff61
mov dword [ebp + 0x10], eax
jmp 0x47ff96
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.00453240
mov edx, dword [ebp + 0x10]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 0x10], edi
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x14]
push 0
push ecx
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x480051
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x47ffd0
cmp eax, 2
je 0x47ffd0
cmp eax, 6
je 0x47ffd0
cmp eax, 7
jne 0x480051
mov eax, dword [ebp + 0xc]
add eax, 2
push eax
call fcn.005acc0c
mov ecx, dword [ebp + 0xc]
mov ebx, eax
add ecx, 2
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebx
jne 0x48003c
mov ecx, dword [ebp + 0x18]
call fcn.0046b790
cmp esi, dword [ebp + 8]
je 0x480026
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.005acc35
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.005acc35
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x64bfd8
call fcn.0046b6c0
cmp esi, dword [ebp + 8]
je 0x48005d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x480a70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5cec68
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x480ac6
lea ecx, [ebp + 0x14]
mov ebx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x14]
lea edx, [ebp + 0xc]
or ecx, 0x20006
push edx
push 0
push ecx
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x480acb
mov esi, dword [ebp + 8]
mov ebx, esi
test esi, esi
je 0x480bba
call fcn.0047e240
test eax, eax
je 0x480b1a
mov edi, dword [ebp + 0x18]
push edi
call fcn.00451ffc
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 0x10]
push edx
push edi
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x480baf
cmp esi, ebx
je 0x480b10
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x480bbc
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x480b25
xor edi, edi
jmp 0x480b5a
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.00453240
mov ecx, dword [ebp + 0x10]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push ecx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0xc]
push edx
call fcn.00465440
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x480ba0
cmp esi, ebx
je 0x480b8a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.00465c50
mov eax, 1
jmp 0x480bbc
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.00465c50
cmp esi, ebx
je 0x480bba
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x481830
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
push 0
push 0
mov ebx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4819ad
mov eax, dword [esp + 0x10]
test eax, eax
je 0x48198c
mov eax, dword [esp + 0x1c]
cmp eax, 0x104
jae 0x481886
mov eax, 0x104
mov dword [esp + 0x1c], eax
lea edx, [eax + eax + 2]
push edx
call fcn.005acc0c
mov esi, eax
add esp, 4
test esi, esi
je 0x4819ad
mov eax, dword [esp + 0x1c]
mov edi, esi
lea ecx, [eax + eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4819a4
mov ebp, dword [esp + 0x20]
mov eax, ebp
or eax, 0x2001f
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x20]
push ecx
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4819a4
mov edi, dword [esp + 0x20]
test edi, edi
je 0x4819a4
push ebp
push edi
call fcn.00481830
add esp, 8
test eax, eax
je 0x481999
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x657e14]
test eax, eax
je 0x481935
test ebp, ebp
je 0x481935
push 0
push ebp
push esi
push ebx
call eax
test eax, eax
jne 0x4819a4
jmp 0x481941
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4819a4
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
je 0x481983
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + edx + 2]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4819a4
mov eax, dword [esp + 0x14]
jmp 0x4818de
push esi
call fcn.005acc35
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
test edi, edi
je 0x4819a4
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.005acc35
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x4819c0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push esi
mov esi, dword [ecx]
push edi
mov edi, dword [ecx + 4]
test esi, esi
je 0x481a29
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4819e9
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x481a29
pop edi
mov eax, 1
pop esi
ret 4
push edi
push esi
call fcn.00481830
add esp, 8
test eax, eax
je 0x481a29
mov eax, dword [0x657e14]
test eax, eax
je 0x481a16
test edi, edi
je 0x481a16
push 0
push edi
push 0
push esi
call eax
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 4
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x481e00
Capabilities:
Get user security identifier

Disassembly:
mov eax, dword [0x657e74]
sub esp, 0x120
push ebx
xor ebx, ebx
push ebp
cmp eax, ebx
push edi
jne 0x481e4c
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, 2
jne 0x481e47
mov dword [0x657e78], eax
mov dword [0x657e74], eax
cmp dword [0x657e78], ebx
jne 0x481e60
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret
mov ebp, dword [esp + 0x130]
mov edi, dword [esp + 0x134]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x14]
push ebx
push eax
push ebx
push ebp
push ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x481eac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x481eac
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret
mov ecx, dword [esp + 0xc]
push esi
push ecx
call fcn.005acc0c
mov edx, dword [esp + 0x18]
mov dword [edi], eax
lea eax, [edx + edx]
push eax
call fcn.005acc0c
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x481ef1
test esi, esi
je 0x481f02
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x18]
push esi
push ecx
push eax
push ebp
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test esi, esi
je 0x481efe
push esi
call fcn.005acc35
add esp, 4
test ebx, ebx
jne 0x481f11
mov edi, dword [edi]
test edi, edi
je 0x481f11
push edi
call fcn.005acc35
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x120
ret
Function at 0x482620
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ced98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
mov eax, dword [0x657e1c]
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [ebp - 0x10], esp
jne 0x48280b
push 1
push 0x657e28
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push esi
push esi
push 1
push 0x657e28
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea ecx, [ebp - 0x34]
mov dword [0x657e40], 0xc
mov dword [0x657e48], esi
mov dword [0x657e44], 0x657e28
call fcn.004720f0
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], esi
call fcn.005ab223
mov eax, dword [0x657e7c]
mov byte [ebp - 4], 1
cmp eax, esi
mov dword [ebp - 0x24], str.S_1_1_0
mov dword [ebp - 0x20], str.S_1_15_2_1
mov dword [ebp - 0x1c], str.S_1_15_2_2
mov ebx, 3
jne 0x482721
mov ecx, 0x44
xor eax, eax
lea edi, [ebp - 0x158]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x15c], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x14c]
mov ecx, 2
cmp eax, ecx
jne 0x482717
mov eax, dword [ebp - 0x158]
cmp eax, 6
ja 0x48270d
jne 0x482717
cmp dword [ebp - 0x154], ecx
jb 0x482717
mov dword [0x657e80], 1
mov dword [0x657e7c], 1
cmp dword [0x657e80], esi
jne 0x48272e
mov ebx, 1
cmp ebx, esi
jle 0x482775
lea esi, [ebp - 0x24]
mov edi, ebx
mov ecx, dword [esi]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0046ab70
mov edx, dword [ebp - 0x30]
push eax
push edx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00472850
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0046b3e0
mov eax, dword [ebp - 0x40]
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x48]
call fcn.005ab447
add esi, 4
dec edi
jne 0x482737
xor esi, esi
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x34]
push ecx
push edx
push 0x657e60
mov byte [ebp - 4], 3
call fcn.004821e0
add esp, 0xc
cmp eax, esi
jne 0x4827c9
lea eax, [ebp - 0x18]
push 0x607658
push eax
mov dword [ebp - 0x18], esi
call fcn.0045331e
push 1
push 0x657e60
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
push 0x657e60
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov eax, 0x4827c7
ret
mov eax, 1
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], eax
mov dword [0x657e50], 0xc
mov dword [0x657e58], esi
mov dword [0x657e54], 0x657e60
mov dword [0x657e1c], eax
mov byte [ebp - 4], 0
call fcn.005ab256
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.00472100
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x483ca0
Capabilities:
Read .ini file

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x20c
push ebx
push ebp
push esi
xor esi, esi
cmp edx, esi
push edi
je 0x483dcc
mov ebp, dword [esp + 0x224]
cmp ebp, esi
je 0x483dcc
mov ebx, dword [esp + 0x228]
cmp ebx, esi
je 0x483dcc
cmp word [edx], si
je 0x483dcc
cmp word [ebp], si
je 0x483dcc
cmp word [ebx], si
je 0x483dcc
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
lea eax, [esp + 0x18]
push 0x104
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, esi
je 0x483dcc
cmp eax, 0x103
jae 0x483d4a
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x230]
call fcn.005ac6da
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20c
ret
mov dword [esp + 0x10], esi
mov esi, 0x400
cmp esi, 0xa00000
jae 0x483dbd
add esi, esi
lea edx, [esi + esi]
push edx
call fcn.005acc0c
mov edi, eax
add esp, 4
test edi, edi
je 0x483dbd
mov eax, dword [esp + 0x220]
push eax
push esi
push edi
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x483d8e
lea ecx, [esi - 1]
cmp eax, ecx
jb 0x483d99
push edi
call fcn.005acc35
add esp, 4
jmp 0x483d53
mov ecx, dword [esp + 0x22c]
push edi
mov dword [esp + 0x14], 1
mov word [edi + eax*2], 0
call fcn.005ac6da
push edi
call fcn.005acc35
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20c
ret
Function at 0x486940
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
mov esi, 0x8000
push edi
cmp eax, esi
mov dword [esp + 0x14], esi
jbe 0x48695e
mov dword [esp + 0x14], eax
mov esi, eax
push esi
call fcn.005acc0c
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
mov ebp, dword [esp + 0x24]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x10], ebx
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x24]
push 0
push 0
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jne 0x48699d
xor ebx, ebx
jmp 0x4869ba
lea eax, [esp + 0x24]
push 0
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4869b6
or ebx, 0xffffffff
jmp 0x4869ba
mov ebx, dword [esp + 0x24]
push 0
push 0
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x486a0d
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push 0
push ecx
push eax
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4869f2
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
je 0x486a09
mov ecx, dword [esp + 0x10]
push ecx
call fcn.005acc35
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x2c]
cmp ebx, esi
jae 0x486a32
test ebx, ebx
je 0x486b06
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push 0
push edx
push ebx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x486b06
lea ecx, [ebx + edi]
add edi, eax
push esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edi
call fcn.005acc0c
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x24], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x486a66
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jg 0x486aa5
push 0
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
je 0x486aa5
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push 0
push eax
push esi
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x486a9f
or esi, 0xffffffff
jmp 0x486aa7
mov esi, dword [esp + 0x28]
jmp 0x486aa7
xor esi, esi
mov edx, dword [esp + 0x2c]
push 0
push 0
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test ebx, ebx
je 0x486acf
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push 0
push eax
push ebx
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
add edx, ebx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x20]
add edi, esi
mov dword [esp + 0x10], edx
test esi, esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
mov ebx, esi
jg 0x486a62
push eax
call fcn.005acc35
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call fcn.005acc35
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x486b20
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
call edi
cmp eax, 0xffffffff
jne 0x486b43
or ebx, eax
jmp 0x486b45
mov ebx, eax
push 2
push 0
push 0
push esi
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
je 0x486b5f
mov dword [esp + 0x1c], eax
push 0
push ebx
push esi
call fcn.00486e60
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub eax, ebp
sub ecx, ebp
add esp, 0xc
cmp ecx, eax
mov dword [esp + 0x20], ecx
jl 0x486b87
mov dword [esp + 0x20], eax
push 0x8000
call fcn.005acc0c
mov ebx, eax
add esp, 4
mov ecx, 0x2000
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
push 0
push 0
lea ecx, [eax + ebp]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x24]
push 0
push edx
push 0x8000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x486bd1
or eax, 0xffffffff
jmp 0x486c0d
mov edi, dword [esp + 0x24]
mov eax, edi
test edi, edi
mov dword [esp + 0x14], eax
jle 0x486c0d
push 0
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test edi, edi
je 0x486c09
lea eax, [esp + 0x10]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x486c18
cmp dword [esp + 0x10], edi
jne 0x486c18
mov eax, dword [esp + 0x14]
add ebp, eax
cmp eax, 0x8000
jne 0x486c2b
jmp 0x486ba1
push ebx
call fcn.005acc35
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push 0
sub eax, ecx
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call fcn.005acc35
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x486c60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5cf16b
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
mov ebx, dword [esp + 0x134]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
je 0x486e04
push ebx
call fcn.00451ffc
add esp, 4
test eax, eax
je 0x486e04
push ebx
lea ecx, [esp + 0x18]
call fcn.005ac5b7
mov esi, dword [esp + 0x144]
mov dword [esp + 0x138], ebp
cmp esi, ebp
je 0x486cd1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x486df0
neg esi
sbb esi, esi
mov dword [esp + 0x18], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
and esi, 0xc0000000
add esi, 0xc0000000
or edi, 0xffffffff
cmp edi, 0xffffffff
jne 0x486da4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x486d07
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x634ae4]
cmp eax, 0xffffffff
jne 0x486d42
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x114
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, 2
sete al
mov dword [0x634ae4], eax
test eax, eax
je 0x486d5b
push 0
push 0x80
push 4
push 0
push 1
push esi
push ebx
call ebp
mov edi, eax
jmp 0x486d89
push ebx
lea ecx, [esp + 0x14]
call fcn.00465440
mov edx, dword [esp + 0x10]
push 0
push 0x80
push 4
push 0
push 1
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.00465c50
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 3
mov dword [esp + 0x18], eax
jl 0x486cee
cmp edi, 0xffffffff
je 0x486e3a
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push edi
call esi
cmp eax, 0xffffffff
jne 0x486dbc
or ebp, eax
jmp 0x486dbe
mov ebp, eax
push 2
push 0
push 0
push edi
call esi
cmp eax, 0xffffffff
jne 0x486dd0
or ebx, eax
jmp 0x486dd2
mov ebx, eax
push 0
push 0
push ebp
push edi
call esi
test ebx, ebx
jne 0x486e3a
mov eax, dword [esp + 0x144]
test eax, eax
je 0x486e20
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], 0xffffffff
call fcn.005ac543
or eax, 0xffffffff
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret
lea eax, [esp + 0x10]
push 2
push eax
push 0
push edi
mov dword [esp + 0x20], 0xfeff
call fcn.00486940
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], 0xffffffff
call fcn.005ac543
mov eax, edi
jmp 0x486e07
Function at 0x4876c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5cf27b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [0x5e45d4]
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push 0x104
push ecx
mov dword [esp + 0x228], 0
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.0046b6c0
lea eax, [esp + 8]
push 1
push eax
mov ecx, esi
call fcn.0046d9a0
mov ecx, dword [eax]
push 0x62261c
push ecx
call fcn.004528be
add esp, 8
lea ecx, [esp + 8]
mov edi, eax
call fcn.0046b3e0
test edi, edi
je 0x487740
push 0x62261c
mov ecx, esi
call fcn.0046c020
mov ecx, dword [esp + 0x218]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret

Function at 0x4878a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5cf2bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [0x5e45d4]
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push 0x104
push ecx
mov dword [esp + 0x228], 0
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.0046b6c0
lea eax, [esp + 8]
push 1
push eax
mov ecx, esi
call fcn.0046d9a0
mov ecx, dword [eax]
push 0x62261c
push ecx
call fcn.004528be
add esp, 8
lea ecx, [esp + 8]
mov edi, eax
call fcn.0046b3e0
test edi, edi
je 0x487920
push 0x62261c
mov ecx, esi
call fcn.0046c020
mov ecx, dword [esp + 0x218]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret