joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b7d0
Capabilities:
Delete registry key

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
neg eax
push esi
sbb eax, eax
push edi
and eax, 0x100
add eax, 0xf003f
mov edi, eax
lea eax, [esp + 0xc]
push eax
push edi
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionAuthenticationCredential_Providers
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 0
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x40b852
mov ecx, dword [esp + 0xc]
push str.DA06D5BF_2A41_457d_AC88_8FFBE92BD6E7
push ecx
call esi
test eax, eax
je 0x40b83f
push eax
push str.Providers
push str.del__s_ret:_ld
mov ecx, 0x457c84
call fcn.0040cd20
mov ecx, eax
call fcn.0040cea0
add esp, 0xc
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push str.CLSIDDA06D5BF_2A41_457d_AC88_8FFBE92BD6E7InprocServer32
push SysReAllocString
call esi
push str.CLSIDDA06D5BF_2A41_457d_AC88_8FFBE92BD6E7
push SysReAllocString
call esi
lea eax, [esp + 0xc]
push eax
push edi
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionAuthenticationCredential_Provider_Filters
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x40b8a1
mov ecx, dword [esp + 0xc]
push str.91A69170_2A85_4126_86EC_FC13EA55211E
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push str.CLSID91A69170_2A85_4126_86EC_FC13EA55211EInprocServer32
push SysReAllocString
call esi
push str.CLSID91A69170_2A85_4126_86EC_FC13EA55211E
push SysReAllocString
call esi
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
test eax, eax
je 0x40b8cb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret

Function at 0x40b8e0
Capabilities:
Delete registry value
Persist via ginadll registry key

Disassembly:
push ecx
push esi
xor esi, esi
neg eax
sbb eax, eax
lea ecx, [esp + 4]
push ecx
and eax, 0x100
add eax, 0xf003f
push eax
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40b932
push eax
push str.WInlogon
push str.open__s_ret:_ld
mov ecx, 0x457c84
call fcn.0040cd20
mov ecx, eax
call fcn.0040cea0
add esp, 0xc
jmp 0x40b949
mov edx, dword [esp + 4]
push str.GinaDll
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x40b949
lea esi, [eax + 1]
mov eax, dword [esp + 4]
test eax, eax
je 0x40b958
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
Function at 0x40b960
Capabilities:
Get common file path

Disassembly:
push edi
push 1
push 0x23
push esi
xor edi, edi
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40b997
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.cant_get_appdata_folder:0x_x
mov ecx, 0x457c84
call fcn.0040cd20
mov ecx, eax
call fcn.0040cea0
add esp, 8
mov eax, edi
pop edi
ret
push 0x459a2c
push 0x104
push esi
call fcn.00431b06
push 0
push esi
call fcn.00432ad6
add esp, 0x14
cmp eax, 0xffffffff
je 0x40b9fc
push str.Skin
push 0x104
push esi
call fcn.00431b06
push 0
push esi
call fcn.00432ad6
add esp, 0x14
cmp eax, 0xffffffff
je 0x40b9fc
push str.UIResource
push 0x104
push esi
call fcn.00431b06
push 0
push esi
call fcn.00432ad6
add esp, 0x14
cmp eax, 0xffffffff
mov eax, 1
jne 0x40b9fe
mov eax, edi
pop edi
ret

Function at 0x40ba00
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub esp, 0x54
push esi
push 0x44
mov esi, eax
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00435330
add esp, 0xc
xor eax, eax
xor ecx, ecx
lea edx, [esp + 4]
push edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push esi
push ecx
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 1
mov word [esp + 0x6c], cx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40ba84
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcess_0x_x__s
mov ecx, 0x457c84
call fcn.0040cd20
mov ecx, eax
call fcn.0040cea0
add esp, 0xc
xor eax, eax
pop esi
add esp, 0x54
ret
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ecx
call esi
mov edx, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x7530
push edx
mov dword [esp + 0x14], 0
call edi
cmp eax, 0x102
jne 0x40bae8
push str.wait_process_time_out
mov ecx, 0x457c84
call fcn.0040cd20
mov ecx, eax
call fcn.0040cdd0
mov eax, dword [esp + 0xc]
add esp, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 8]
push ecx
call esi
mov dword [esp + 8], 0
push 0x7d0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
pop edi
mov eax, 1
pop esi
add esp, 0x54
ret
Function at 0x40bda0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x44a988
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x465ac0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.00401730
mov eax, str.ObSec
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40be00
sub eax, edx
sar eax, 1
push eax
mov eax, str.ObSec
lea ecx, [esp + 0x10]
call fcn.0040be60
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.00401730
cmp dword [esp + 0x24], 8
jb 0x40be4c
mov edx, dword [esp + 0x10]
push edx
call fcn.0041455c
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x40c4b0
Capabilities:
Delete file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x465ac0]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.00435330
push esi
lea edx, [esp + 0x14]
push 0x104
push edx
call fcn.004321b6
add esp, 0x18
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40c516
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00430e7d
add esp, 0x20c
ret
lea esi, [esp + 4]
mov eax, reloc.OLEAUT32.dll_SysReAllocStringLen
call fcn.0040c460
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00430e7d
add esp, 0x20c
ret

Function at 0x40c540
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x465ac0]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x216]
push ecx
mov word [esp + 0x218], ax
call fcn.00435330
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x1a]
push eax
mov word [esp + 0x1c], dx
call fcn.00435330
add esp, 0x18
push 0
push 0x10
lea ecx, [esp + 0x214]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp + 0x20c]
push edx
lea eax, [esp + 8]
push 0x104
push eax
call fcn.004321b6
push 0x458c54
lea ecx, [esp + 0x14]
push 0x104
push ecx
call fcn.00431b06
push esi
lea edx, [esp + 0x20]
push 0x104
push edx
call fcn.00431b06
push str..lnk
lea eax, [esp + 0x2c]
push 0x104
push eax
call fcn.00431b06
add esp, 0x30
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40c619
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00430e7d
add esp, 0x414
ret
lea esi, [esp + 4]
mov eax, reloc.OLEAUT32.dll_SysReAllocStringLen
call fcn.0040c460
mov ecx, dword [esp + 0x414]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00430e7d
add esp, 0x414
ret
Function at 0x40c650
Capabilities:
Delete directory
Get common file path

Disassembly:
sub esp, 0x61c
mov eax, dword [0x465ac0]
xor eax, esp
mov dword [esp + 0x618], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x41e]
push ecx
mov word [esp + 0x420], ax
call fcn.00435330
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x1a]
push eax
mov word [esp + 0x1c], dx
call fcn.00435330
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x22e]
push edx
mov word [esp + 0x230], cx
call fcn.00435330
add esp, 0x24
push 0
push 2
lea eax, [esp + 0x41c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x414]
push ecx
lea edx, [esp + 8]
push 0x104
push edx
call fcn.004321b6
push 0x458c54
lea eax, [esp + 0x14]
push 0x104
push eax
call fcn.00431b06
push esi
lea ecx, [esp + 0x20]
push 0x104
push ecx
call fcn.00431b06
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x234]
push 0x104
push eax
call fcn.004321b6
push 0x458c54
lea ecx, [esp + 0x240]
push 0x104
push ecx
call fcn.00431b06
push edi
lea edx, [esp + 0x24c]
push 0x104
push edx
call fcn.00431b06
add esp, 0x48
push str..lnk
lea eax, [esp + 0x210]
push 0x104
push eax
call fcn.00431b06
add esp, 0xc
lea ecx, [esp + 0x20c]
call fcn.0040c4b0
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea esi, [esp + 0x414]
mov eax, reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040c460
mov ecx, dword [esp + 0x61c]
pop esi
mov eax, 1
xor ecx, esp
call fcn.00430e7d
add esp, 0x61c
ret

Function at 0x40c7b0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x465ac0]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x216]
push ecx
mov word [esp + 0x218], ax
call fcn.00435330
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x1a]
push eax
mov word [esp + 0x1c], dx
call fcn.00435330
add esp, 0x18
test esi, esi
je 0x40c821
lea edx, [esp + 0x20c]
mov eax, esi
sub edx, esi
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40c810
jmp 0x40c835
push 0
push 0x10
lea ecx, [esp + 0x214]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp + 0x20c]
push edx
lea eax, [esp + 8]
push 0x104
push eax
call fcn.004321b6
push 0x458c54
lea ecx, [esp + 0x14]
push 0x104
push ecx
call fcn.00431b06
push edi
lea edx, [esp + 0x20]
push 0x104
push edx
call fcn.00431b06
push str..lnk
lea eax, [esp + 0x2c]
push 0x104
push eax
call fcn.00431b06
add esp, 0x30
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40c8ac
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00430e7d
add esp, 0x414
ret
lea esi, [esp + 4]
mov eax, reloc.OLEAUT32.dll_SysReAllocStringLen
call fcn.0040c460
mov ecx, dword [esp + 0x414]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00430e7d
add esp, 0x414
ret
Function at 0x40c8e0
Capabilities:
Delete directory
Get common file path

Disassembly:
sub esp, 0x61c
mov eax, dword [0x465ac0]
xor eax, esp
mov dword [esp + 0x618], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x41e]
push ecx
mov word [esp + 0x420], ax
call fcn.00435330
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x1a]
push eax
mov word [esp + 0x1c], dx
call fcn.00435330
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x22e]
push edx
mov word [esp + 0x230], cx
call fcn.00435330
add esp, 0x24
test esi, esi
je 0x40c971
lea edx, [esp + 0x414]
mov eax, esi
sub edx, esi
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40c960
jmp 0x40c985
push 0
push 2
lea eax, [esp + 0x41c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x414]
push ecx
lea edx, [esp + 8]
push 0x104
push edx
call fcn.004321b6
push 0x458c54
lea eax, [esp + 0x14]
push 0x104
push eax
call fcn.00431b06
push edi
lea ecx, [esp + 0x20]
push 0x104
push ecx
call fcn.00431b06
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x234]
push 0x104
push eax
call fcn.004321b6
push 0x458c54
lea ecx, [esp + 0x240]
push 0x104
push ecx
call fcn.00431b06
push ebx
lea edx, [esp + 0x24c]
push 0x104
push edx
call fcn.00431b06
add esp, 0x48
push str..lnk
lea eax, [esp + 0x210]
push 0x104
push eax
call fcn.00431b06
add esp, 0xc
lea ecx, [esp + 0x20c]
call fcn.0040c4b0
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea esi, [esp + 0x414]
mov eax, reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040c460
mov ecx, dword [esp + 0x61c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00430e7d
add esp, 0x61c
ret
Function at 0x40d040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a2b0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x465ac0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.0040d200
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
lea edi, [ebx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, 0xffffffff
je 0x40d1e6
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40d101
lea eax, [ebp - 0x54]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x40d1da
cmp dword [ebp - 0x34], 0
jne 0x40d101
cmp dword [ebp - 0x38], 0
jne 0x40d101
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 2
lea edx, [ebp - 0x20]
push edx
push esi
mov dword [ebp - 0x20], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40d1da
add dword [ebx + 4], 2
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40d1da
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d127
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, dword [ebp + 0x10]
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d140
sub eax, esi
sar eax, 1
lea edi, [eax + edx + 0x1b]
xor ecx, ecx
lea ebx, [edi + 1]
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00414567
mov esi, eax
add esp, 4
test esi, esi
je 0x40d1d7
mov eax, dword [ebp + 0x10]
movzx edx, word [ebp - 0x24]
mov ecx, dword [ebp + 0xc]
push eax
movzx eax, word [ebp - 0x26]
push ecx
movzx ecx, word [ebp - 0x28]
push edx
movzx edx, word [ebp - 0x2a]
push eax
movzx eax, word [ebp - 0x2e]
push ecx
movzx ecx, word [ebp - 0x30]
push edx
push eax
push ecx
push str._04d__02d__02d__02d:_02d:_02d___s_____s_r_n
push ebx
push esi
call fcn.00431b83
mov ecx, dword [ebp - 0x18]
add esp, 0x2c
push 0
lea edx, [ebp - 0x1c]
push edx
lea eax, [edi + edi]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40d1ce
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
add dword [eax + 4], edx
push esi
call fcn.0041455c
add esp, 4
mov esi, dword [ebp - 0x18]
cmp esi, 0xffffffff
je 0x40d1e6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d200
Capabilities:
Check if file exists
Create directory
Get file attributes
Move file
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xfffffffffffffffe
push 0x4603e0
push 0x435b80
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x465ac0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
lea esi, [edi + 0x212]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d270
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40d270
push str.create_log_dir_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea esi, [edi + 8]
xor eax, eax
cmp ax, word [esi]
je 0x40d36b
mov eax, dword [edi + 4]
xor ebx, ebx
cmp eax, ebx
jle 0x40d292
cmp eax, 0x200000
jl 0x40d36b
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x3c]
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x40d364
mov eax, dword [ebp - 0x1c]
cmp eax, 0x200000
ja 0x40d2dd
cmp dword [ebp - 0x20], ebx
ja 0x40d2dd
mov dword [edi + 4], eax
jmp 0x40d364
xor edx, edx
mov word [ebp], dx
push 0x206
push ebx
lea eax, [ebp + 2]
push eax
call fcn.00435330
push esi
push 0x104
lea ecx, [ebp]
push ecx
call fcn.004321b6
add esp, 0x18
lea eax, [ebp]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d310
sub eax, edx
sar eax, 1
sub eax, 4
xor edx, edx
mov word [ebp + eax*2], dx
push str..0.log
push 0x104
lea eax, [ebp]
push eax
call fcn.00431b06
add esp, 0xc
push 9
lea ecx, [ebp]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [edi + 4], ebx
jmp 0x40d364
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00430e7d
add ebp, 0x20c
mov esp, ebp
pop ebp
ret
Function at 0x40d400
Capabilities:
Get session user name

Disassembly:
sub esp, 0x21c
mov eax, dword [0x465ac0]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
push 0x206
xor esi, esi
lea ecx, [esp + 0x1a]
xor eax, eax
push esi
push ecx
mov dword [esp + 0x18], 0x104
mov word [esp + 0x20], ax
call fcn.00435330
add esp, 0xc
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x40d47a
lea ecx, [esp + 0x14]
push str.SYSTEM
push ecx
call fcn.004312c1
add esp, 8
neg eax
sbb eax, eax
inc eax
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00430e7d
add esp, 0x21c
ret
push 0x104
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jbe 0x40d4d2
lea eax, [esp + 0x14]
push 0x5c
push eax
call fcn.00431ada
add esp, 8
cmp eax, esi
je 0x40d4d2
add eax, 2
push str.winlogon.exe
push eax
call fcn.004312c1
add esp, 8
test eax, eax
jne 0x40d4d2
mov eax, 1
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00430e7d
add esp, 0x21c
ret
lea ecx, [esp + 4]
push ecx
push 8
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40d504
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00430e7d
add esp, 0x21c
ret
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
push 4
lea eax, [esp + 0x18]
push eax
push 0x14
push ecx
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40d530
cmp dword [esp + 8], 4
jne 0x40d530
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00430e7d
add esp, 0x21c
ret

Function at 0x40dcf0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x70
mov eax, dword [0x465ac0]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
mov ebx, dword [esp + 0x7c]
push esi
push edi
mov edi, dword [esp + 0x80]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
xor eax, eax
push 0
test ebx, ebx
push 4
setne al
lea edx, [esp + 0x20]
push edx
push 0x222070
push edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, eax
test esi, esi
jne 0x40dd82
push 0x62
push eax
lea ecx, [esp + 0x1e]
push ecx
mov word [esp + 0x20], ax
call fcn.00435330
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push ebx
push str.set_file_protect:_d_handle:0x_x_0x_x_n
lea edx, [esp + 0x24]
push 0x32
push edx
call fcn.00431b83
add esp, 0x18
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, esi
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00430e7d
add esp, 0x70
ret 8
Function at 0x40dfa0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x1cc
mov eax, dword [0x465ac0]
xor eax, esp
mov dword [esp + 0x1c8], eax
push esi
mov esi, dword [esp + 0x1d4]
xor eax, eax
push 0xfe
push eax
lea ecx, [esp + 0xd6]
push ecx
mov word [esp + 0xd8], ax
call fcn.00435330
push str.HMObSecCtrl
push str.._s
lea edx, [esp + 0xe0]
push 0x80
push edx
call fcn.00431b83
add esp, 0x1c
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea eax, [esp + 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
pop esi
cmp eax, 0xffffffff
je 0x40e039
mov eax, 1
mov ecx, dword [esp + 0x1c8]
xor ecx, esp
call fcn.00430e7d
add esp, 0x1cc
ret 4
xor ecx, ecx
push 0xc6
push ecx
lea edx, [esp + 0xa]
push edx
mov word [esp + 0xc], cx
call fcn.00435330
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0xcc]
push eax
push str.create__s_failed_0x_x_n
lea ecx, [esp + 0xc]
push 0x64
push ecx
call fcn.00431b83
add esp, 0x14
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x1c8]
xor ecx, esp
xor eax, eax
call fcn.00430e7d
add esp, 0x1cc
ret 4
Function at 0x40f2d0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x44a8e2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x465ac0]
xor eax, esp
mov dword [esp + 0x210], eax
push ebp
push esi
push edi
mov eax, dword [0x465ac0]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x22c], 2
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
push eax
mov eax, 0x457f40
call fcn.00401680
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x22]
push edx
mov dword [esp + 0x1c], 1
mov word [esp + 0x24], cx
call fcn.00435330
mov ebp, 8
add esp, 0xc
cmp dword [edi + 0x18], ebp
jb 0x40f375
mov edi, dword [edi + 4]
jmp 0x40f378
add edi, 4
mov ecx, dword [esp + 0x254]
cmp dword [esp + 0x268], ebp
jae 0x40f38f
lea ecx, [esp + 0x254]
mov eax, dword [esp + 0x238]
cmp dword [esp + 0x24c], ebp
jae 0x40f3a6
lea eax, [esp + 0x238]
push edi
push 0x104
lea edx, [esp + 0x20]
push edx
push str.NoString
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f3c5
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x1c]
call fcn.00401680
cmp dword [esp + 0x24c], ebp
jb 0x40f3f7
mov eax, dword [esp + 0x238]
push eax
call fcn.0041455c
add esp, 4
xor ecx, ecx
mov dword [esp + 0x24c], 7
mov dword [esp + 0x248], 0
mov word [esp + 0x238], cx
cmp dword [esp + 0x268], ebp
jb 0x40f430
mov edx, dword [esp + 0x254]
push edx
call fcn.0041455c
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00430e7d
add esp, 0x220
ret 0x38