joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b0f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4feef8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x502664]
push 0
lea ecx, [esp + 0x20]
call fcn.004f51c3
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0049aa90
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004f50f1
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004f18d5
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004f18d5
push 1
push 0
push 0
mov ecx, esi
call fcn.004f187d
push 1
push 0
push 1
mov ecx, esi
call fcn.004f187d
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004f5235
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x49b270
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4fef18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004f51c3
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0049aa90
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004f50f1
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x502664]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x49b334
cmp dword [esp + 0x40], 1
jne 0x49b332
cmp ecx, eax
jge 0x49b334
mov eax, ecx
cmp eax, 0xc8
jge 0x49b340
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0049b0f0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x502660]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004f5235
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x49bac0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4fef83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004efcf2
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x502160]
push eax
mov ecx, edi
call fcn.004f546b
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004f6a06
test eax, eax
je 0x49bbdc
mov ecx, dword [esp + 0x3c]
call fcn.004f5498
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x502684]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x49bba0
push edi
mov ecx, esi
call fcn.004f2a53
mov ecx, esi
call fcn.0049bd40
cmp dword [esp + 0x38], 1
jne 0x49bbd5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004f2bbd
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x49e610
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x49e643
push esi
call fcn.004a1700
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x49e63c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x49e6c9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x49e6b2
mov eax, dword [esi + 8]
test eax, eax
je 0x49e667
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x49e6ae
cmp eax, 2
je 0x49e6b2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x49e65a
cmp eax, 3
je 0x49e68d
cmp eax, 1
jne 0x49e65a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x49e65a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x49e65a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0049e6f0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x49e6d8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0049e6f0
add esp, 4
pop esi
ret
Function at 0x4b16c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ffad0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004b1270
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004b12f0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004b12f0
lea ecx, [esi + 0xc]
call fcn.004ee659
lea ecx, [esi + 0x10]
call fcn.004ee659
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004b2880
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004b2880
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004b2880
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004ee6ce
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004ee6ce
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4b5c00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4ffe38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.004b6000
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0xa29cb4
call fcn.004ccb08
mov ecx, dword [0x9bbf54]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.004b3380
mov esi, 0x9bbfac
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x4b5ca7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4b5c9e
cmp al, 0xff
je 0x4b5c9e
dec al
mov byte [ecx], al
jmp 0x4b5ca7
push ecx
call fcn.004ee438
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.004ea130
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x4b5ced
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4b5ce4
cmp al, 0xff
je 0x4b5ce4
dec al
mov byte [ecx], al
jmp 0x4b5ced
push ecx
call fcn.004ee438
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.004ccb8f
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x4e47b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5017b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.004d94dd
mov eax, dword [0x9c0960]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.004d940f
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004e5250
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x4e4857
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4e484e
cmp al, 0xff
je 0x4e484e
dec al
mov byte [ecx], al
jmp 0x4e4857
push ecx
call fcn.004ee438
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4e4888
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4e487f
cmp al, 0xff
je 0x4e487f
dec al
mov byte [ecx], al
jmp 0x4e4888
push ecx
call fcn.004ee438
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4010b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
lea ecx, [ebp - 0x20]
push ebx
sub esp, 0x3c
mov dword [ebp - 0x20], 0x1fe
mov dword [esp + 0x14], ecx
lea ecx, [ebp - 0x1c]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
mov ebx, eax
test eax, eax
jne 0x4010f8
cmp dword [ebp - 0x1c], 1
je 0x401108
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [edi], 0
je 0x401158
mov eax, edi
add eax, 2
cmp word [eax], 0
jne 0x401110
sub eax, edi
add eax, 2
xor ecx, ecx
mov esi, dword [sym.imp.ucrtbase.dll_wcschr]
mov word [edi + eax], cx
jmp 0x401138
xor edx, edx
lea edi, [eax + 2]
mov word [eax], dx
mov dword [esp + 4], 0x2c
mov dword [esp], edi
call esi
test eax, eax
jne 0x401130
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 2
jmp 0x40111e
Function at 0x401d40
Capabilities:
Check if process is running under wine

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x218]
sub esp, 0x23c
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x21c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareWineWineBrowser
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
je 0x401db0
mov esi, str._usr_bin_open
mov ecx, 0x21
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movzx eax, word [esi]
mov word [edi], ax
mov edx, dword [ebp - 0x22c]
mov eax, ebx
call sym._launch_app
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x21c]
mov ecx, ebx
mov edx, str.Mailers
call sym._get_commands.constprop.0
mov esi, eax
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test esi, esi
je 0x401d92
jmp 0x401d7e

Function at 0x401de0
Capabilities:
Check if process is running under wine

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x218]
sub esp, 0x23c
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x21c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareWineWineBrowser
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
je 0x401e48
mov esi, str.xdg_open
mov ecx, 0x1f
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x22c]
mov eax, ebx
call sym._launch_app
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x21c]
mov ecx, ebx
mov edx, str.Browsers
call sym._get_commands.constprop.0
mov esi, eax
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test esi, esi
je 0x401e2c
jmp 0x401e1e

Function at 0x402e80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x402edb
cmp byte [esi + ebx - 1], 0xa
je 0x402eaf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4070c4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x403940
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x4011f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
cmp word [0x4161d8], 0
jne 0x401271
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareLenovoAccess_ConnectionsInstall
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0x200
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401271
lea ecx, [esp + 4]
push ecx
push 0x4161d8
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x10]
push str.Path
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x4161d8
push str.CACGinaHelper::GetInstalledPath:_szTpInstallPath___s
call dword [sym.imp.ACHelper.dll_public:_static_class_AcLogInfo____cdecl_AcLogInfo::GetLogInfoInstance_void_]
push eax
call dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::NormalPrintLogFile_unsigned_short_int__]
mov ecx, dword [esp + 0xc]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x4161d8
add esp, 0xc
ret
Function at 0x401360
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe14
mov eax, dword [0x4161c0]
push ebx
mov dword [esp + 0xe14], eax
push esi
push edi
mov esi, ecx
xor eax, eax
xor edx, edx
mov word [esp + 0x218], dx
mov ecx, 0xff
lea edi, [esp + 0x21a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x618], dx
mov ecx, 0xff
lea edi, [esp + 0x61a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x10], dx
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LR____zj1.G_1sW_x43h__fXWou___TnJ__x1]
mov ebx, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
push str.tvt_gina.dll
lea ecx, [esp + 0x14]
push ecx
push str._s_s
lea edx, [esp + 0x224]
push 0x200
push edx
call ebx
push str.tvt_gina_api.dll
lea eax, [esp + 0x28]
push eax
push str._s_s
lea ecx, [esp + 0x638]
push 0x200
push ecx
call ebx
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x28
lea edx, [esp + 0x218]
push edx
call edi
test eax, eax
jne 0x40143a
lea eax, [esp + 0x218]
push eax
jmp 0x401450
lea ecx, [esp + 0x618]
push ecx
call edi
test eax, eax
jne 0x401478
lea edx, [esp + 0x618]
push edx
push str.EnableACGina:__s_not_found
call dword [sym.imp.ACHelper.dll_public:_static_class_AcLogInfo____cdecl_AcLogInfo::GetLogInfoInstance_void_]
push eax
call dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::NormalPrintLogFile_unsigned_short_int__]
add esp, 0xc
mov ecx, dword [esp + 0xe1c]
call fcn.00409e63
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
mov ecx, esi
mov byte [esp + 0x13], 0
call fcn.00401170
test al, al
jne 0x401491
push str.EnableACGina:_Fail_to_call_TVT_EnableGina.
jmp 0x401496
push str.EnableACGina:_TVT_EnableGina_returned_TRUE
call dword [sym.imp.ACHelper.dll_public:_static_class_AcLogInfo____cdecl_AcLogInfo::GetLogInfoInstance_void_]
push eax
call dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::NormalPrintLogFile_unsigned_short_int__]
mov word [esp + 0xa20], 0
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0xa22]
rep stosd dword es:[edi], eax
add esp, 8
push str.ACGina.dll
mov ecx, esi
mov byte [esp + 0x13], 0
stosw word es:[edi], ax
call fcn.004011f0
push eax
push str._s_s
lea eax, [esp + 0xa24]
push 0x200
push eax
call ebx
add esp, 0x14
lea ecx, [esp + 0xf]
push ecx
lea edx, [esp + 0xa1c]
push edx
mov ecx, esi
call fcn.00401120
cmp al, 1
jne 0x401518
cmp byte [esp + 0xf], 1
jne 0x401511
push str.EnableACGina:_need_restart_or_logon_logoff
jmp 0x40151d
push str.EnableACGina:_need_restart
jmp 0x40151d
push str.EnableACGina:_TVT_AddPlugin_returned_FALSE
call dword [sym.imp.ACHelper.dll_public:_static_class_AcLogInfo____cdecl_AcLogInfo::GetLogInfoInstance_void_]
push eax
call dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::NormalPrintLogFile_unsigned_short_int__]
mov ecx, dword [esp + 0xe24]
add esp, 8
call fcn.00409e63
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401540
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe14
mov eax, dword [0x4161c0]
push ebx
mov dword [esp + 0xe14], eax
mov ebx, ecx
push esi
push edi
xor eax, eax
xor edx, edx
mov word [esp + 0x218], dx
mov ecx, 0xff
lea edi, [esp + 0x21a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x618], dx
mov ecx, 0xff
lea edi, [esp + 0x61a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x10], dx
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LR____zj1.G_1sW_x43h__fXWou___TnJ__x1]
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
push str.tvt_gina.dll
lea ecx, [esp + 0x14]
push ecx
push str._s_s
lea edx, [esp + 0x224]
push 0x200
push edx
call esi
push str.tvt_gina_api.dll
lea eax, [esp + 0x28]
push eax
push str._s_s
lea ecx, [esp + 0x638]
push 0x200
push ecx
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x28
lea edx, [esp + 0x218]
push edx
call edi
test eax, eax
jne 0x40161a
lea eax, [esp + 0x218]
push eax
jmp 0x401630
lea ecx, [esp + 0x618]
push ecx
call edi
test eax, eax
jne 0x401658
lea edx, [esp + 0x618]
push edx
push str.DisableACGina:__s_not_found
call dword [sym.imp.ACHelper.dll_public:_static_class_AcLogInfo____cdecl_AcLogInfo::GetLogInfoInstance_void_]
push eax
call dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::NormalPrintLogFile_unsigned_short_int__]
add esp, 0xc
mov ecx, dword [esp + 0xe1c]
call fcn.00409e63
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov word [esp + 0xa18], 0
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0xa1a]
rep stosd dword es:[edi], eax
push str.ACGina.dll
mov ecx, ebx
mov byte [esp + 0x13], 0
stosw word es:[edi], ax
call fcn.004011f0
push eax
push str._s_s
lea eax, [esp + 0xa24]
push 0x200
push eax
call esi
add esp, 0x14
lea ecx, [esp + 0xf]
push ecx
lea edx, [esp + 0xa1c]
push edx
mov ecx, ebx
call fcn.004010d0
cmp al, 1
jne 0x4016bc
push str.DisableACGina:_need_restart
jmp 0x4016c1
push str.DisableACGina:_TVT_RemovePlugin_returned_FALSE
call dword [sym.imp.ACHelper.dll_public:_static_class_AcLogInfo____cdecl_AcLogInfo::GetLogInfoInstance_void_]
push eax
call dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::NormalPrintLogFile_unsigned_short_int__]
mov ecx, dword [esp + 0xe24]
add esp, 8
call fcn.00409e63
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret