joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427560
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4b4aeb
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x4e02dc]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push ebp
push esi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x444]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [0x4e1fdc], ebx
mov dword [esp + 0x10], ebx
je 0x4275ca
push 0xffffffffffffffff
push ebx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push 0x4e1fc8
mov ecx, edi
mov word [edi + 4], bx
call fcn.00401a10
jmp 0x4276f1
push 0x208
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.0049a440
push 0x208
lea ecx, [esp + 0x248]
push ebx
push ecx
call fcn.0049a440
add esp, 0x18
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
push 0x104
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x454], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
call esi
test eax, eax
je 0x4276c0
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.log_
lea ecx, [esp + 0x34]
push ecx
call ebp
push ebx
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42765d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4276c0
push 0x104
lea eax, [esp + 0x23c]
push eax
push 0x400000
call esi
test eax, eax
je 0x4276c0
lea ecx, [esp + 0x238]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea edx, [esp + 0x34]
push edx
call ebp
lea eax, [esp + 0x30]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x427692
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401b00
push 4
push str..log
lea esi, [esp + 0x1c]
call fcn.00401910
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x1c]
push ecx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
mov ecx, edi
mov word [edi + 4], bx
call fcn.00401a10
cmp dword [esp + 0x2c], 8
jb 0x4276f1
mov edx, dword [esp + 0x18]
push edx
call fcn.004935b1
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x444]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.004935b6
add esp, 0x440
ret

Function at 0x427950
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
mov ecx, dword [0x4e47fc]
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x427977
xor al, al
add esp, 0xc
ret
cmp dword [esp + 4], 0
ja 0x427987
cmp dword [esp], 0xa00000
jbe 0x427990
mov eax, 1
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret
Function at 0x427ac0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4b843d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
xor ebx, ebx
cmp byte [0x4e47f6], bl
je 0x427b03
mov al, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x2c
ret
call fcn.00427490
call fcn.00427730
mov eax, dword [0x4e4800]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x34], ebx
mov eax, dword [0x4e47fc]
cmp eax, ebx
je 0x427b35
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4e47fc], ebx
cmp dword [0x4e47f8], ebx
jne 0x427b62
push 0x1c
call fcn.00493965
add esp, 4
cmp eax, ebx
je 0x427b5b
mov dword [eax + 0x18], 7
mov dword [eax + 0x14], ebx
mov word [eax + 4], bx
jmp 0x427b5d
xor eax, eax
mov dword [0x4e47f8], eax
lea edi, [esp + 0x10]
call fcn.00427560
push 0xffffffffffffffff
push ebx
mov byte [esp + 0x3c], 1
mov ecx, dword [0x4e47f8]
push eax
call fcn.00401a10
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
jb 0x427b97
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004935b1
add esp, 4
mov edx, dword [esp + 0x3c]
cmp dword [edx], ebx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
jne 0x427bca
mov eax, dword [0x4e47f8]
cmp dword [eax + 0x18], 8
jb 0x427bc0
mov eax, dword [eax + 4]
jmp 0x427bc3
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004279a0
mov bl, al
mov eax, dword [0x4e4800]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, bl
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x2c
ret
Function at 0x427d40
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b6fb4
mov eax, dword fs:[0]
push eax
sub esp, 0x4c8
mov eax, dword [0x4e02dc]
xor eax, esp
mov dword [esp + 0x4c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x4dc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4ec]
mov dword [esp + 0x14], ebp
lea edi, [ebp + 4]
push 0x4c8d70
push edi
mov dword [esp + 0x4ec], 1
call fcn.004049f0
add esp, 8
lea ecx, [esp + 0x18]
mov eax, edi
call fcn.004287a0
mov byte [esp + 0x4e4], 2
cmp dword [eax + 0x18], 8
jb 0x427dc0
mov eax, dword [eax + 4]
jmp 0x427dc3
add eax, 4
push 0xfde9
lea ecx, [esp + 0x3c]
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], ecx
call fcn.00402c30
mov byte [esp + 0x4e4], 3
mov edx, dword [esp + 0x34]
xor ebx, ebx
mov eax, edx
mov dword [esp + 0xd0], 0xf
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], bl
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x427e06
sub eax, esi
push eax
push edx
lea ecx, [esp + 0xc0]
call fcn.00405f10
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x38]
cmp eax, edx
je 0x427e34
push eax
call fcn.0049504d
add esp, 4
mov byte [esp + 0x4e4], 6
cmp dword [esp + 0x30], 8
jb 0x427e50
mov eax, dword [esp + 0x1c]
push eax
call fcn.004935b1
add esp, 4
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.00427730
mov ecx, dword [0x4e4800]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [esp + 0x4e4], 7
call fcn.004279a0
test al, al
mov esi, 0x10
je 0x427ece
mov edx, dword [0x4e47fc]
push 2
push ebx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0xd0], esi
mov eax, dword [esp + 0xbc]
jae 0x427eb3
lea eax, [esp + 0xbc]
mov edx, dword [esp + 0xcc]
push ebx
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
mov eax, dword [0x4e47fc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [esp + 0x4e4], 6
mov ecx, dword [0x4e4800]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp], 4
jne 0x427f32
mov eax, dword [esp + 0xcc]
cmp eax, 0x400
jb 0x427efc
mov eax, 0x400
cmp dword [esp + 0xd0], esi
mov ecx, dword [esp + 0xbc]
jae 0x427f13
lea ecx, [esp + 0xbc]
push eax
push ecx
lea edx, [esp + 0xdc]
push 0x400
push edx
call fcn.004998e5
add esp, 0x10
int3
cmp dword [esp + 0xd0], esi
jb 0x427f4b
mov eax, dword [esp + 0xbc]
push eax
call fcn.004935b1
add esp, 4
mov ecx, dword [ebp + 0x8c]
push ecx
mov dword [esp + 0xd4], 0xf
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xc0], bl
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x4c]
mov ecx, esi
mov dword [esp + 0x4e4], 0xffffffff
call fcn.00428710
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.00492d4f
add esp, 4
mov ecx, dword [esp + 0x4dc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c0]
xor ecx, esp
call fcn.004935b6
add esp, 0x4d4
ret 4
Function at 0x429160
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b5f46
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.KDirectInfoc::KInstallSerialize.0
push 0x400
mov dword [esi + 8], 0x400
call fcn.004929e2
xor edi, edi
add esp, 4
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esp + 0x14], edi
push 0x400
mov dword [esi + 0x18], 0x400
call fcn.004929e2
add esp, 4
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov word [esi + 0x34], di
mov dword [esi + 0x38], 1
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x429270
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b39b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4e02dc]
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 ebx, ecx
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3844
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
call dword [0x4e0024]
test ebx, ebx
jne 0x4292c9
xor ecx, ecx
xor eax, eax
jmp 0x429323
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x42930b
lea edi, [eax + eax]
mov eax, edi
call fcn.004a4af0
mov esi, esp
test esi, esi
je 0x42930b
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x42930d
xor eax, eax
mov ecx, eax
test ecx, ecx
je 0x429323
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x429318
sub eax, esi
mov edi, eax
push ecx
lea eax, [ebp - 0x14]
call fcn.00407860
mov edi, dword [ebp - 0x14]
mov eax, dword [edi - 0xc]
movzx ecx, ax
mov dword [ebp - 0x18], ecx
movzx ecx, ax
xor eax, eax
test ecx, ecx
jle 0x42934e
xor byte [eax + edi], 0x88
add eax, 1
cmp eax, ecx
jl 0x429343
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x18]
add esi, 4
push edx
mov ebx, 2
call fcn.00429080
movzx ebx, word [ebp - 0x18]
push edi
call fcn.00429080
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42938f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x28]
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.004935b6
mov esp, ebp
pop ebp
ret 4
Function at 0x429fc0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x14
mov eax, dword [0x4e02dc]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 8], ecx
mov byte [esp + 0xc], 0
mov dword [esp + 0xd], edi
mov dword [esp + 4], edi
je 0x42a0cc
cmp word [eax], di
je 0x42a0cc
push ebp
push edi
push 0x80
push 3
push edi
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x42a0b9
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
jbe 0x42a09e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea edx, [esp + 0x14]
push edx
push 4
lea eax, [esp + 0x24]
push eax
push ebp
call ebx
test eax, eax
je 0x42a09d
lea ecx, [esp + 0x18]
call fcn.0042a130
test eax, eax
je 0x42a09d
add esi, 0xfffffffc
lea ecx, [esi + 1]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x42a09d
mov edx, dword [esp + 0x14]
push 0
push 0
push 4
push ebp
mov dword [edx], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x14]
push eax
push esi
push edi
push ebp
call ebx
test eax, eax
je 0x42a09d
mov ecx, edi
call fcn.0042a0e0
test eax, eax
jge 0x42a09d
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor edi, edi
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
mov eax, edi
pop edi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004935b6
add esp, 0x14
ret
pop ebp
mov eax, edi
pop edi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004935b6
add esp, 0x14
ret
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
xor ecx, esp
call fcn.004935b6
add esp, 0x14
ret

Function at 0x42a0e0
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
je 0x42a11e
test esi, esi
jbe 0x42a11e
mov edx, esi
shr edx, 2
mov eax, 0
je 0x42a102
xor dword [ecx + eax*4], 0xd8d8d8d8
add eax, 1
cmp eax, edx
jb 0x42a0f4
add eax, eax
add eax, eax
cmp eax, esi
jae 0x42a11b
lea ebx, [ebx]
xor byte [eax + ecx], 0xd8
add eax, 1
cmp eax, esi
jb 0x42a110
xor eax, eax
ret
mov eax, 0x80004005
ret

Function at 0x42a1d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b4abc
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.KChannel.0
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3844
call edx
add eax, 0x10
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 8], eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x42bb70
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4b8340
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24]
mov esi, ecx
lea eax, [esp + 0x10]
push eax
or edi, 0xffffffff
call fcn.00401400
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.0041c8e0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00413540
add esp, 4
push 0
push ebp
call fcn.004965a0
add esp, 8
test eax, eax
jne 0x42bc44
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebp
call fcn.00413d00
add esp, 4
test eax, eax
jne 0x42bc44
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.00401400
push 1
push 0x4c88a8
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x28], 1
call fcn.00407aa0
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, esi
call fcn.00432870
mov byte [esp + 0x1c], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42bc42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
push 0
push edi
push 0x14
mov ecx, 0x4e1fe4
call fcn.00433060
push esi
push ebp
push edi
push str.UpdateFile_return:_d__src:_ws__dst:_ws
mov ecx, 0x4e49b4
call fcn.00419ab0
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42bc90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4
Function at 0x42d260
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4b6e58
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x18]
mov dword [esp + 0x28], ebx
push eax
mov dword [esp + 0x18], 1
call fcn.00413170
add esp, 4
mov edi, 0x4e4b10
mov byte [esp + 0x28], 1
call fcn.0040a8e0
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d2d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push 0x4e4b10
push ecx
mov ebx, 0x4ca030
call fcn.0040e670
add esp, 8
mov edi, 0x4e4b0c
mov byte [esp + 0x28], 2
call fcn.0040a8e0
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42d323
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
mov dword [0x4e4b00], 1
call fcn.0042e520
test eax, eax
mov esi, dword [esp + 0x10]
je 0x42d37f
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push str.Clean_Temp_Dir1
push esi
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x14]
push eax
push str.Auto_Clean:_d
mov ecx, 0x4e49b4
mov dword [0x4e4b00], eax
call fcn.00419ab0
add esp, 8
test esi, esi
je 0x42d38a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x42df00
Capabilities:
Access peb ldr_data
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4b6df0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x14]
call fcn.0042dbb0
push eax
lea eax, [esp + 0x14]
push eax
mov ebx, str.update_rebootconfig.dat
mov dword [esp + 0x30], 0
call fcn.0040e670
add esp, 8
mov byte [esp + 0x28], 1
call fcn.0040a8e0
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42df7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42dfa3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
cmp eax, 0xffffffff
je 0x42dfcf
test al, 0x10
jne 0x42dfcf
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0x1c]
call fcn.0042dbb0
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, str.update_rebootconfig2.dat
mov dword [esp + 0x30], 2
call fcn.0040e670
add esp, 8
mov byte [esp + 0x28], 3
call fcn.0040a8e0
mov byte [esp + 0x28], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42e022
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e04a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [edi]
push edi
call esi
cmp eax, 0xffffffff
je 0x42e05c
test al, 0x10
je 0x42dfb7
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x42e0e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4b6da8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], ebx
call fcn.0042e520
test eax, eax
mov esi, dword [esp + 0x14]
je 0x42e182
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push str.TryNo
mov edi, 4
push esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x42e182
cmp dword [esp + 0x1c], edi
jne 0x42e182
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x42e182
cmp esi, ebx
mov edi, eax
je 0x42e16d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
cmp esi, ebx
je 0x42e18d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x42e1b0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4b6d78
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, dword [0x4e479c]
mov dword [esp + 0xc], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.0042e520
test eax, eax
mov esi, dword [esp + 0xc]
je 0x42e23b
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0
push str.TryNo
push esi
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x42e23b
test esi, esi
je 0x42e224
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
test esi, esi
je 0x42e246
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x42e260
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b82c0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x2c], ebx
je 0x42e2c0
lea eax, [esp + 0x2c]
push eax
push ecx
call fcn.004743c0
add esp, 4
push eax
mov ecx, str.default_tryno
call fcn.00473be0
mov eax, dword [eax]
push eax
mov ebx, 1
call fcn.004957b9
add esp, 4
mov ebp, eax
jmp 0x42e2c2
xor ebp, ebp
test bl, 1
je 0x42e2e7
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e2e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x4e3844]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e3844
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x2c], edi
lea esi, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.0042dc60
mov byte [esp + 0x24], 1
mov edx, dword [eax]
test edx, edx
je 0x42e327
lea edi, [esp + 0x2c]
call fcn.00401710
mov edi, dword [esp + 0x2c]
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e34c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
push ebp
push str.TryNo
push 0x4c9d4c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
lea eax, [edi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e384
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x431bc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b4a38
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 8], eax
push esi
lea edi, [esp + 0x20]
mov dword [esp + 0x18], eax
call fcn.00431130
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x30], eax
mov eax, edi
call fcn.0042b150
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x10
ret