joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dc020
Capabilities:
Modify service

Disassembly:
push 0xffffffffffffffff
push 0x61071b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa24
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
xor ebp, ebp
xor esi, esi
call fcn.005e65fe
mov eax, dword [esp + 0xa60]
mov dword [esp + 0xa38], ebp
cmp eax, ebp
je 0x4dc067
push eax
lea ecx, [esp + 0x18]
call fcn.005e67da
mov eax, dword [esp + 0xa64]
cmp eax, ebp
je 0x4dc07c
push eax
lea ecx, [esp + 0x18]
call fcn.005e67da
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x232]
mov word [esp + 0x230], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], 0x400
cmp eax, ebp
jle 0x4dc0e7
lea eax, [esp + 0xc]
lea ecx, [esp + 0x230]
push eax
push ecx
lea edx, [esp + 0x1c]
push ebp
push edx
call fcn.00494e20
add esp, 0x10
test eax, eax
jne 0x4dc0e0
lea ecx, [esp + 0x14]
mov dword [esp + 0xa38], 0xffffffff
call fcn.005e6631
xor eax, eax
jmp 0x4dc1b5
lea esi, [esp + 0x230]
mov eax, dword [esp + 0xa50]
mov ecx, dword [esp + 0xa6c]
mov edx, dword [esp + 0xa68]
push ebx
push eax
mov eax, dword [esp + 0xa64]
push ecx
mov ecx, dword [esp + 0xa64]
push edx
mov edx, dword [esp + 0xa5c]
push esi
mov esi, dword [esp + 0xa54]
push ebp
push eax
mov eax, dword [esp + 0xa64]
push ecx
mov ecx, dword [esp + 0xa64]
push edx
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov ebx, eax
cmp ebx, ebp
je 0x4dc19e
mov ebp, dword [esp + 0xa58]
test ebp, ebp
je 0x4dc19e
test esi, esi
je 0x4dc19e
call fcn.00533530
mov eax, dword [0x6a5284]
test eax, eax
je 0x4dc19e
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], 0
rep stosd dword es:[edi], eax
push 0
lea edx, [esp + 0x30]
push 0x104
push edx
push 0xffffffffffffffff
push ebp
stosw word es:[edi], ax
call fcn.00493a20
add esp, 0x14
lea ecx, [esp + 0x14]
lea eax, [esp + 0x2c]
push ecx
push 1
push esi
mov dword [esp + 0x20], eax
call dword [0x6a5284]
lea ecx, [esp + 0x18]
mov dword [esp + 0xa3c], 0xffffffff
call fcn.005e6631
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0xa30]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0xa30
ret
Function at 0x4dc950
Capabilities:
Set registry value

Disassembly:
push edi
mov edi, dword [esp + 0x10]
cmp edi, 0xffffffff
je 0x4dc96d
cmp edi, 4
jbe 0x4dc96d
mov dword [0x6a4678], 0x57
xor eax, eax
pop edi
ret
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
cmp eax, 0xffffffff
mov ebx, dword [esi]
je 0x4dc98c
push eax
mov eax, dword [str.Type]
push eax
mov ecx, esi
call fcn.00490730
cmp edi, 0xffffffff
je 0x4dc9a0
mov ecx, dword [str.Start]
push edi
push ecx
mov ecx, esi
call fcn.00490730
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x4dc9b8
mov edx, dword [str.ErrorControl]
push eax
push edx
mov ecx, esi
call fcn.00490730
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4dc9ce
push eax
mov eax, dword [str.DisplayName]
push eax
mov ecx, esi
call fcn.004908e0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4dc9e5
mov ecx, dword [str.Description]
push eax
push ecx
mov ecx, esi
call fcn.004908e0
mov edi, dword [esp + 0x28]
test edi, edi
je 0x4dca0d
push edi
call fcn.00465c4f
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [str.ImagePath]
push edx
push edi
push 2
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4dca24
mov ecx, dword [str.Group]
push eax
push ecx
mov ecx, esi
call fcn.004908e0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4dca3b
mov edx, dword [str.DependOnGroup]
push eax
push edx
mov ecx, esi
call fcn.00490d30
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4dca51
push eax
mov eax, dword [str.DependOnService]
push eax
mov ecx, esi
call fcn.00490d30
pop esi
pop ebx
mov eax, 1
pop edi
ret

Function at 0x4dd6c0
Capabilities:
Persist via run registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6108f8
push eax
mov dword fs:[0], esp
sub esp, 8
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x4dd6f3
xor eax, eax
pop edi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push edi
call fcn.00465c4f
add esp, 4
test eax, eax
jne 0x4dd710
pop edi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push esi
lea ecx, [esp + 8]
xor esi, esi
call fcn.0048f4d0
mov eax, dword [str.SoftwareMicrosoftWindowsCurrentVersionRunServices]
push 0x2001f
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], esi
call fcn.0048f5f0
test eax, eax
je 0x4dd756
push edi
lea ecx, [esp + 0xc]
call fcn.00491900
lea ecx, [esp + 8]
mov esi, eax
call fcn.0048f640
test esi, esi
jne 0x4dd789
mov ecx, dword [str.SystemCurrentControlSetServicesVxD]
push 0x2001f
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x14]
call fcn.0048f5f0
test eax, eax
je 0x4dd789
push edi
lea ecx, [esp + 0xc]
call fcn.00491900
lea ecx, [esp + 8]
mov esi, eax
call fcn.0048f640
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call fcn.0048f570
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
pop edi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4dd7b0
Capabilities:
Persist via run registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x610930
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x4dd7e3
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
cmp word [esi], 0
jne 0x4dd7fb
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esp + 4]
call fcn.0048f4d0
mov eax, dword [str.SoftwareMicrosoftWindowsCurrentVersionRunServices]
push 0x20019
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0
call fcn.0048f5f0
test eax, eax
je 0x4dd8a7
push 1
push esi
lea ecx, [esp + 0xc]
call fcn.00491ac0
test eax, eax
jne 0x4dd85c
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0048f570
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push edi
mov edi, dword [esp + 0x28]
test edi, edi
je 0x4dd88f
lea ecx, [esp + 0x28]
push esi
push ecx
lea ecx, [esp + 0x10]
call fcn.0048fc20
push eax
mov ecx, edi
mov byte [esp + 0x1c], 1
call fcn.005eced8
lea ecx, [esp + 0x28]
mov byte [esp + 0x18], 0
call fcn.005ecd91
mov eax, dword [esp + 0x24]
pop edi
test eax, eax
je 0x4dd96e
mov dword [eax], 0x10
jmp 0x4dd96e
mov edx, dword [0x682534]
mov dword [esp + 0x1c], edx
mov eax, dword [str.SystemCurrentControlSetServicesVxD]
push esi
push eax
lea ecx, [esp + 0x24]
push 0x66b78c
push ecx
mov byte [esp + 0x24], 2
call fcn.005e20b1
mov edx, dword [esp + 0x2c]
add esp, 0x10
lea ecx, [esp + 4]
push 0x20019
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0048f5f0
test eax, eax
jne 0x4dd91b
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], al
call fcn.005ecd91
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0048f570
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov esi, dword [esp + 0x24]
test esi, esi
je 0x4dd952
mov eax, dword [0x68abe4]
lea ecx, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.0048fc20
push eax
mov ecx, esi
mov byte [esp + 0x18], 3
call fcn.005eced8
lea ecx, [esp + 0x24]
mov byte [esp + 0x14], 2
call fcn.005ecd91
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4dd960
mov dword [eax], 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0
call fcn.005ecd91
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0048f570
mov ecx, dword [esp + 0xc]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4dd9a0
Capabilities:
Persist via run registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x610958
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x24]
xor ebx, ebx
cmp edi, ebx
je 0x4ddab1
mov esi, dword [esp + 0x2c]
cmp esi, ebx
je 0x4ddab1
cmp word [edi], bx
je 0x4ddab1
cmp word [esi], bx
je 0x4ddab1
lea ecx, [esp + 0xc]
call fcn.0048f4d0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], ebx
cmp eax, 2
je 0x4dda4f
cmp eax, 1
je 0x4dda4f
mov eax, dword [str.SoftwareMicrosoftWindowsCurrentVersionRunServices]
push 0x2001f
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
call fcn.0048f5f0
test eax, eax
jne 0x4dda3d
mov ecx, dword [str.SoftwareMicrosoftWindowsCurrentVersionRunServices]
push 0x2001f
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
call fcn.0048f660
test eax, eax
je 0x4ddaa0
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.004908e0
mov esi, eax
jmp 0x4ddb36
mov edx, dword [0x682534]
mov dword [esp + 0x24], edx
mov eax, dword [str.SystemCurrentControlSetServicesVxD]
push edi
push eax
lea ecx, [esp + 0x2c]
push 0x66b78c
push ecx
mov byte [esp + 0x2c], 1
call fcn.005e20b1
mov edx, dword [esp + 0x34]
add esp, 0x10
lea ecx, [esp + 0xc]
push 0x2001f
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0048f5f0
test eax, eax
jne 0x4ddac5
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], bl
call fcn.005ecd91
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0048f570
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov eax, dword [0x682534]
mov dword [esp + 0x2c], eax
push 0x5c
push esi
mov byte [esp + 0x24], 2
call fcn.004663c1
add esp, 8
cmp eax, ebx
je 0x4ddaef
add eax, 2
lea ecx, [esp + 0x2c]
push eax
call fcn.005ecf28
mov eax, dword [esp + 0x2c]
cmp dword [eax - 8], ebx
jne 0x4ddb08
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 1
call fcn.005ecd91
jmp 0x4dda93
mov ecx, dword [0x68abe4]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004908e0
lea ecx, [esp + 0x2c]
mov esi, eax
mov byte [esp + 0x1c], 1
call fcn.005ecd91
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], bl
call fcn.005ecd91
lea ecx, [esp + 0xc]
call fcn.0048f640
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0048f570
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4e0190
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x610b25
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
mov eax, dword [0x682534]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push 0x104
push ecx
mov dword [esp + 0x434], 1
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x4e02a3
lea edx, [esp + 0x14]
push 0x5c
push edx
call fcn.004663c1
add esp, 8
cmp eax, ebx
je 0x4e0224
mov word [eax], bx
lea eax, [esp + 0x21c]
test eax, eax
je 0x4e029c
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x4e029c
mov eax, dword [esp + 0x438]
mov esi, 0x7a
cmp eax, ebx
je 0x4e026d
lea edx, [esp + 0x14]
push eax
push edx
push 0x66b78c
lea eax, [esp + 0x228]
push 0x104
push eax
call fcn.004674a3
add esp, 0x14
xor esi, esi
mov eax, esi
jmp 0x4e02a9
lea ecx, [esp + 0x14]
push ecx
call fcn.00465c4f
add esp, 4
cmp eax, 0x104
jae 0x4e0298
lea edx, [esp + 0x14]
lea eax, [esp + 0x21c]
push edx
push eax
call fcn.00466936
add esp, 8
xor esi, esi
mov eax, esi
jmp 0x4e02a9
mov eax, 0x57
jmp 0x4e02a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [0x6a46ec], eax
je 0x4e02bb
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4e02cc
lea ecx, [esp + 0x21c]
push ecx
lea ecx, [esp + 0x10]
call fcn.005ecf28
mov esi, dword [esp + 0x434]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.005ecafe
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x42c], bl
call fcn.005ecd91
mov ecx, dword [esp + 0x424]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x424
ret
Function at 0x4e0660
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x610b75
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
mov eax, dword [0x682534]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push 0x104
push ecx
mov dword [esp + 0x434], 1
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x4e0759
lea edx, [esp + 0x21c]
test edx, edx
je 0x4e0752
lea eax, [esp + 0x14]
test eax, eax
je 0x4e0752
mov eax, dword [esp + 0x438]
mov esi, 0x7a
cmp eax, ebx
je 0x4e0723
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x66b78c
lea edx, [esp + 0x228]
push 0x104
push edx
call fcn.004674a3
add esp, 0x14
xor esi, esi
mov eax, esi
jmp 0x4e075f
lea eax, [esp + 0x14]
push eax
call fcn.00465c4f
add esp, 4
cmp eax, 0x104
jae 0x4e074e
lea ecx, [esp + 0x14]
lea edx, [esp + 0x21c]
push ecx
push edx
call fcn.00466936
add esp, 8
xor esi, esi
mov eax, esi
jmp 0x4e075f
mov eax, 0x57
jmp 0x4e075f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [0x6a46ec], eax
je 0x4e0771
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4e0782
lea eax, [esp + 0x21c]
lea ecx, [esp + 0xc]
push eax
call fcn.005ecf28
mov esi, dword [esp + 0x434]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.005ecafe
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x42c], bl
call fcn.005ecd91
mov ecx, dword [esp + 0x424]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x424
ret
Function at 0x4e0e20
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x610bc5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x620
mov eax, dword [0x682534]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bx
rep stosd dword es:[edi], eax
mov dword [esp + 0x634], 1
stosw word es:[edi], ax
call fcn.004d8310
test eax, eax
je 0x4e0f43
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x426]
mov word [esp + 0x424], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x424]
push 0x104
push ecx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x4e0f28
lea edx, [esp + 0x14]
test edx, edx
je 0x4e0f21
lea eax, [esp + 0x424]
test eax, eax
je 0x4e0f21
mov eax, dword [esp + 0x640]
mov esi, 0x7a
cmp eax, ebx
je 0x4e0ef1
lea ecx, [esp + 0x424]
push eax
push ecx
push 0x66b78c
lea edx, [esp + 0x20]
push 0x104
push edx
call fcn.004674a3
add esp, 0x14
xor esi, esi
jmp 0x4e0f30
lea eax, [esp + 0x424]
push eax
call fcn.00465c4f
add esp, 4
cmp eax, 0x104
jae 0x4e0f30
lea ecx, [esp + 0x424]
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00466936
add esp, 8
xor esi, esi
jmp 0x4e0f30
mov esi, 0x57
jmp 0x4e0f30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
mov dword [0x6a46ec], esi
je 0x4e1029
jmp 0x4e1022
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x4e1010
push 0x103
lea ecx, [esp + 0x220]
push 0x68af18
push ecx
call fcn.004675ca
lea edx, [esp + 0x20]
add esp, 0xc
test edx, edx
je 0x4e1009
lea eax, [esp + 0x21c]
test eax, eax
je 0x4e1009
mov eax, dword [esp + 0x640]
mov esi, 0x7a
cmp eax, ebx
je 0x4e0fd9
lea ecx, [esp + 0x21c]
push eax
push ecx
push 0x66b78c
lea edx, [esp + 0x20]
push 0x104
push edx
call fcn.004674a3
add esp, 0x14
xor esi, esi
jmp 0x4e1018
lea eax, [esp + 0x21c]
push eax
call fcn.00465c4f
add esp, 4
cmp eax, 0x104
jae 0x4e1018
lea ecx, [esp + 0x21c]
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00466936
add esp, 8
xor esi, esi
jmp 0x4e1018
mov esi, 0x57
jmp 0x4e1018
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
mov dword [0x6a46ec], esi
je 0x4e1029
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp esi, ebx
sete al
cmp eax, ebx
je 0x4e1042
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
call fcn.005ecf28
mov esi, dword [esp + 0x63c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.005ecafe
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x634], bl
call fcn.005ecd91
mov ecx, dword [esp + 0x62c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x62c
ret
Function at 0x4e4c00
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x410
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
push str.ALLUSERSPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jbe 0x4e4d3a
cmp eax, 0x104
jae 0x4e4d3a
lea ecx, [esp + 4]
push esi
push ecx
call fcn.004df260
add esp, 4
test eax, eax
je 0x4e4cc1
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x212]
mov word [esp + 0x210], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x210]
push 0x104
lea eax, [esp + 0xc]
push edx
push eax
call fcn.004def20
lea ecx, [esp + 0x21c]
push ecx
call fcn.00465c4f
mov esi, eax
add esp, 0x10
cmp esi, 0x104
jge 0x4e4cc1
lea edx, [esp + 0x210]
push esi
lea eax, [esp + 0xc]
push edx
push eax
call fcn.0046634f
add esp, 0xc
mov word [esp + esi*2 + 8], 0
mov edi, dword [esp + 0x41c]
test edi, edi
je 0x4e4d2c
mov esi, dword [esp + 0x420]
test esi, esi
je 0x4e4d2c
lea ecx, [esp + 8]
test ecx, ecx
je 0x4e4d2c
mov eax, dword [esp + 0x424]
test eax, eax
je 0x4e4d0d
lea edx, [esp + 8]
push eax
push edx
push 0x66b78c
push esi
push edi
call fcn.004674a3
add esp, 0x14
mov eax, 1
pop esi
pop edi
add esp, 0x410
ret
lea eax, [esp + 8]
push eax
call fcn.00465c4f
add esp, 4
cmp esi, eax
jbe 0x4e4d2c
lea ecx, [esp + 8]
push ecx
push edi
call fcn.00466936
add esp, 8
pop esi
mov eax, 1
pop edi
add esp, 0x410
ret
xor eax, eax
pop edi
add esp, 0x410
ret

Function at 0x4e6370
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
jne 0x4e6391
push 0x57
mov dword [0x6a46ec], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x4e63c2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4e63c2
test al, 0x10
jne 0x4e63c2
test al, 1
je 0x4e638c
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
Function at 0x4e82a0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
test ebx, ebx
jne 0x4e82bc
xor eax, eax
pop ebx
add esp, 0x104
ret
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.00466960
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.004678c0
mov esi, eax
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x4e8340
cmp byte [esp + 0x10], 0x5c
jne 0x4e8340
cmp byte [esp + 0x11], 0x5c
jne 0x4e8340
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.004678c0
add esp, 8
test eax, eax
je 0x4e83be
inc eax
push 0x5c
push eax
call fcn.004678c0
add esp, 8
mov esi, eax
test esi, esi
je 0x4e83be
lea eax, [esp + 0x10]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x4e8382
test bl, 1
je 0x4e8371
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 0xfffffffe
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x4e83f4
cmp ebx, 0xffffffff
je 0x4e838b
test edi, edi
jne 0x4e839a
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x4e83f4
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.004678c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4e8344
test ebp, ebp
je 0x4e83f4
mov ebx, dword [esp + 0x118]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4e83e9
test al, 0x10
jne 0x4e83f4
test al, 1
je 0x4e83dc
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x4e83f4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x4e8410
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
jne 0x4e842c
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.0046634f
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.004668e3
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.00465c4f
add esp, 0x18
cmp eax, 2
jbe 0x4e84b1
cmp word [esp + 0x10], di
jne 0x4e84b1
cmp word [esp + 0x12], di
jne 0x4e84b1
lea eax, [esp + 0x14]
push edi
push eax
call fcn.004668e3
add esp, 8
test eax, eax
je 0x4e8539
add eax, 2
push edi
push eax
call fcn.004668e3
add esp, 8
mov esi, eax
test esi, esi
je 0x4e8539
lea ecx, [esp + 0x10]
mov word [esi], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x4e84f9
test bl, 1
je 0x4e84e8
mov edx, ebx
lea eax, [esp + 0x10]
and edx, 0xfffffffe
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x4e856f
cmp ebx, 0xffffffff
je 0x4e8502
test edi, edi
jne 0x4e8511
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x4e856f
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.004668e3
mov esi, eax
add esp, 8
test esi, esi
jne 0x4e84b9
test ebp, ebp
je 0x4e856f
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4e8564
test al, 0x10
jne 0x4e856f
test al, 1
je 0x4e8557
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x4e856f
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x208
ret