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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [0x422068]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x406587
xor eax, eax
jmp 0x4065a8
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
pop esi
leave
ret

Function at 0x4065cc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push dword [0x422068]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4065eb
xor eax, eax
leave
ret
push esi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret

Function at 0x406d72
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4223b0]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov esi, 0x43f298
xor ebx, ebx
push edi
mov ecx, esi
mov dword [ebp - 0x48], ebx
mov dword [0x43bdcc], eax
call fcn.0040205e
mov dword [ebp - 0x4c], eax
push 0xf
xor eax, eax
mov byte [ebp - 0x44], bl
pop ecx
lea edi, [ebp - 0x43]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x44]
push eax
call fcn.0040618d
pop ecx
lea eax, [ebp - 0x44]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
cmp edi, ebx
je 0x406df7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406df7
cmp dword [0x43bb0c], ebx
jne 0x406dee
mov ecx, esi
call fcn.0040205e
push eax
call fcn.004068f5
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406e6c
xor edi, edi
inc edi
push edi
call fcn.0040674b
pop ecx
push ebx
push dword [ebp + 8]
mov eax, 0x80000000
push ebx
push ebx
push ebx
push eax
push ebx
push eax
push 0xcf0000
push dword [ebp - 0x4c]
push 0x43bd00
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
cmp esi, ebx
je 0x406e6c
push ebx
push esi
mov dword [0x43bb10], esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, 0x440794
mov dword [0x43bdd0], edi
call fcn.0040b77f
test eax, eax
je 0x406e5b
push ebx
push esi
call dword [0x440794]
push dword [0x43bb0c]
push esi
call fcn.00406c51
pop ecx
pop ecx
mov dword [ebp - 0x48], edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x48]
pop edi
pop esi
pop ebx
call fcn.0040f3ac
leave
ret
Function at 0x407b4c
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4223b0]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetCursorPos]
mov dword [esp + 0x24], eax
push edi
lea eax, [esp + 0x10]
push eax
call esi
mov ebx, dword [esp + 0x30]
push ebx
call fcn.00407a3a
pop ecx
lea eax, [esp + 0x10]
push eax
call esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, dword [sym.imp.USER32.dll_SetFocus]
mov edi, 0x3fe
lea eax, [esp + 0x18]
push eax
push edi
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push dword [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x407beb
lea eax, [edi - 0x3fe]
cmp eax, 0x24
jge 0x407bcb
push 0x41b8d4
push edi
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push edi
push ebx
call esi
cmp dword [0x4409b0], eax
je 0x407beb
push edi
push ebx
call esi
push eax
mov dword [0x4409b0], eax
call ebp
push dword [0x440964]
call ebp
inc edi
lea eax, [edi - 0x3fe]
cmp eax, 0x28
jl 0x407b8c
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
call fcn.0040f3ac
add esp, 0x1c
ret

Function at 0x407f66
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4223b0]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x1c]
push eax
push dword [0x44095c]
mov dword [0x44096c], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x407fa9
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
call fcn.0040755c
add esp, 0x14
mov byte [ebp - 0xc], 0
xor eax, eax
lea edi, [ebp - 0xb]
stosd dword es:[edi], eax
mov esi, 0x408
stosb byte es:[edi], al
mov edi, esi
mov dword [ebp + 8], 0x1a
push 6
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.0040f3c0
add esp, 0xc
push 2
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
lea eax, [ebp - 0xc]
push eax
call fcn.00411008
pop ecx
push eax
push edi
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
inc edi
dec dword [ebp + 8]
jne 0x407fc2
and dword [0x4222ac], 0
push ebx
call fcn.00407c08
push 0xa
push 0x3fe
push ebx
call fcn.00407724
push 0x1a
push esi
push ebx
call fcn.00407724
add esp, 0x1c
call fcn.00407c4a
push 0x407dcc
push 0x32
push 1
push ebx
call dword [sym.imp.USER32.dll_SetTimer]
call fcn.004074f5
mov edi, 0xc8
push edi
push 0
mov esi, 0x4407b0
push esi
call fcn.0040f3c0
add esp, 0xc
push edi
push esi
push dword [0x440964]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp - 4]
xor eax, eax
inc eax
call fcn.0040f3ac
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4080bd
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4223b0]
and dword [ebp - 0x48], 0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov byte [ebp - 0x44], 0
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0x43]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00407cb9
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push edi
call esi
mov dword [0x440964], eax
mov eax, dword [ebp + 0x18]
push ebx
push edi
mov dword [0x440958], ebx
mov dword [0x4407a8], eax
mov dword [0x440968], edi
call esi
push dword [ebp + 0x14]
mov dword [0x440964], eax
push edi
call esi
push 0x40
mov dword [0x440960], eax
lea eax, [ebp - 0x44]
push eax
push ebx
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x44]
push eax
push 0x4407b0
call fcn.0040f1f0
cmp dword [0x44096c], 0
pop ecx
pop ecx
jne 0x408182
call fcn.004078ea
push 0
push 0x40806d
push edi
push 0x6c
push dword [ebp + 8]
mov dword [0x44095c], edi
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 5
push eax
mov dword [0x44096c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 0x48], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x48]
pop edi
pop esi
pop ebx
call fcn.0040f3ac
leave
ret

Function at 0x40af6c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4223b0]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 4], eax
lea edi, [ebx + ebx]
lea eax, [edi + 1]
push eax
call fcn.0040fd03
pop ecx
xor ecx, ecx
test ebx, ebx
mov esi, eax
mov byte [ebp - 0x14], 0x30
mov byte [ebp - 0x13], 0x31
mov byte [ebp - 0x12], 0x32
mov byte [ebp - 0x11], 0x33
mov byte [ebp - 0x10], 0x34
mov byte [ebp - 0xf], 0x35
mov byte [ebp - 0xe], 0x36
mov byte [ebp - 0xd], 0x37
mov byte [ebp - 0xc], 0x38
mov byte [ebp - 0xb], 0x39
mov byte [ebp - 0xa], 0x41
mov byte [ebp - 9], 0x42
mov byte [ebp - 8], 0x43
mov byte [ebp - 7], 0x44
mov byte [ebp - 6], 0x45
mov byte [ebp - 5], 0x46
jbe 0x40afef
mov eax, dword [ebp + 8]
add eax, ecx
mov dl, byte [eax]
shr dl, 4
mov byte [esi + ecx*2], dl
mov al, byte [eax]
and al, 0xf
mov byte [esi + ecx*2 + 1], al
inc ecx
cmp ecx, ebx
jb 0x40afd5
xor eax, eax
test edi, edi
jbe 0x40b005
movzx ecx, byte [eax + esi]
mov cl, byte [ebp + ecx - 0x14]
mov byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x40aff5
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40b014
mov eax, dword [eax]
cmp eax, edi
jae 0x40b014
mov edi, eax
push edi
push esi
push dword [ebp + 0x10]
call fcn.0040f480
push esi
call fcn.0040fbeb
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
pop ebx
call fcn.0040f3ac
leave
ret
Function at 0x40b0f5
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4223b0]
mov dword [ebp + 0x74], eax
push esi
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x1c]
cmp eax, 6
jbe 0x40b128
push 7
jmp 0x40b15f
jne 0x40b13f
cmp dword [ebp - 0x18], 1
jbe 0x40b134
push 7
jmp 0x40b155
je 0x40b130
cmp dword [ebp - 0x18], esi
jne 0x40b168
push 6
jmp 0x40b155
cmp eax, 5
jne 0x40b160
cmp dword [ebp - 0x18], 2
jne 0x40b14d
push eax
jmp 0x40b155
cmp dword [ebp - 0x18], 1
jne 0x40b158
push 4
pop esi
jmp 0x40b168
cmp dword [ebp - 0x18], esi
jne 0x40b168
push 3
pop esi
cmp eax, 4
ja 0x40b168
xor esi, esi
inc esi
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.0040f3ac
add ebp, 0x78
leave
ret

Function at 0x40b22c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x40b24a
xor eax, eax
leave
ret
push esi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret

Function at 0x40b276
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 4
pop esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40b29d
xor eax, eax
jmp 0x40b2cb
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret

Function at 0x40b30b
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0xd8]
sub esp, 0x158
mov eax, dword [0x4223b0]
push esi
push edi
push 0xff
mov dword [ebp + 0xd4], eax
xor esi, esi
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.0040f3c0
push dword [ebp + 0xe0]
call fcn.0040f2f0
push eax
push dword [ebp + 0xe0]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040f480
push 0x44
pop edi
push edi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0040f3c0
add esp, 0x28
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push 0x8000020
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
mov dword [ebp - 0x80], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
cmp edi, 1
jne 0x40b3ab
mov eax, dword [ebp + 0xe4]
cmp eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x40b3a1
push dword [ebp - 0x3c]
call esi
jmp 0x40b3a6
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
push dword [ebp - 0x38]
call esi
mov ecx, dword [ebp + 0xd4]
mov eax, edi
pop edi
pop esi
call fcn.0040f3ac
add ebp, 0xd8
leave
ret
Function at 0x40b3c2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4223b0]
mov dword [ebp - 4], eax
call fcn.0040b2ce
test eax, eax
mov eax, str.SOFTWAREWow6432NodeMicrosoftCryptographyDefaultsProviderComyiSafe_CSP_V3.0_
jne 0x40b3e3
mov eax, str.SOFTWAREMicrosoftCryptographyDefaultsProviderComyiSafe_CSP_V3.0_
lea ecx, [ebp - 0x48]
push ecx
push 1
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b441
push esi
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push str.version
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x48]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
test esi, esi
mov byte [eax], 0
pop esi
jne 0x40b441
lea ecx, [ebp - 0x44]
push ecx
push eax
call fcn.0040f1f0
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
call fcn.0040f3ac
leave
ret

Function at 0x40b44b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 1]
push 1
push eax
mov byte [ebp - 1], 0
call fcn.0040b0b6
mov al, byte [ebp - 1]
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push 0x39
lea esi, [ecx + 1]
pop edi
mov byte [ecx], al
mov byte [ecx + 0xe6], al
mov edx, esi
push ebx
mov ecx, dword [edx]
mov ebx, ecx
shr ebx, 0x15
shl ecx, 0xb
or ebx, ecx
mov dword [edx], ebx
add edx, 4
dec edi
jne 0x40b479
mov ecx, esi
mov esi, 0xe6
pop ebx
xor al, byte [ecx]
mov dl, al
shr dl, 5
shl al, 3
or dl, al
add dl, 5
mov al, dl
mov byte [ecx], al
inc ecx
dec esi
jne 0x40b495
pop edi
pop esi
leave
ret

Function at 0x40b4b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov al, byte [esi]
push edi
lea edi, [esi + 1]
mov byte [ebp + 0xb], al
mov ecx, edi
mov dword [ebp - 4], 0xe6
push ebx
mov dl, byte [ecx]
mov al, dl
sub al, 5
mov bl, al
shr bl, 3
shl al, 5
or bl, al
xor bl, byte [ebp + 0xb]
mov byte [ebp + 0xb], dl
mov byte [ecx], bl
inc ecx
dec dword [ebp - 4]
jne 0x40b4cb
push 0x39
pop edx
mov ecx, edi
pop ebx
mov eax, dword [ecx]
mov edi, eax
shl edi, 0x15
shr eax, 0xb
or edi, eax
mov dword [ecx], edi
add ecx, 4
dec edx
jne 0x40b4ef
mov al, byte [esi]
sub al, byte [esi + 0xe6]
pop edi
neg al
pop esi
sbb eax, eax
inc eax
leave
ret
Function at 0x40b669
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0xc8]
sub esp, 0x148
mov eax, dword [0x4223b0]
push ebx
push esi
push edi
push 0x44
pop esi
push esi
mov dword [ebp + 0xc4], eax
xor ebx, ebx
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.0040f3c0
push 0x10
mov dword [ebp - 0x80], esi
push ebx
mov esi, 0x440cc8
push esi
mov dword [ebp - 0x78], str.comydesk20
mov word [ebp - 0x50], 5
mov dword [ebp - 0x54], 1
call fcn.0040f3c0
mov byte [ebp - 0x3c], bl
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x3b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0040b62d
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0040f1f0
push dword [ebp + 0xd0]
lea eax, [ebp - 0x3c]
push eax
call fcn.0040f200
add esp, 0x28
push esi
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push 0x90
push ebx
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40b723
push ebx
push str.Error
push 0x41e518
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp + 0xd4]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40b73d
mov ecx, dword [0x440cc8]
mov dword [eax], ecx
jmp 0x40b745
push dword [0x440cc8]
call esi
push dword [0x440ccc]
call esi
mov ecx, dword [ebp + 0xc4]
pop edi
pop esi
pop ebx
call fcn.0040f3ac
add ebp, 0xc8
leave
ret

Function at 0x40b77f
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xb4]
sub esp, 0x134
mov eax, dword [0x4223b0]
push ebx
push esi
push edi
mov dword [ebp + 0xb0], eax
mov ebx, ecx
push 0x3f
xor eax, eax
pop ecx
mov byte [ebp - 0x80], 0
lea edi, [ebp - 0x7f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x41e570
lea edi, [ebp + 0x80]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 8
xor eax, eax
cmp dword [ebx + 8], 0
pop ecx
lea edi, [ebp + 0x8d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jne 0x40b862
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp + 0x80]
push eax
call esi
test eax, eax
mov dword [ebx + 8], eax
jne 0x40b83e
push 0xff
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x40b823
lea eax, [ebp - 0x80]
push eax
call fcn.0040f2f0
cmp byte [ebp + eax - 0x81], 0x5c
pop ecx
je 0x40b823
lea eax, [ebp - 0x80]
push 0x41b3bc
push eax
call fcn.0040f200
pop ecx
pop ecx
lea eax, [ebp + 0x80]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0040f200
pop ecx
pop ecx
lea eax, [ebp - 0x80]
push eax
call esi
mov dword [ebx + 8], eax
mov eax, dword [ebx + 8]
test eax, eax
je 0x40b862
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTSRegisterSessionNotification
push eax
call esi
push str.WTSUnRegisterSessionNotification
push dword [ebx + 8]
mov dword [ebx], eax
call esi
mov dword [ebx + 4], eax
mov ecx, dword [ebp + 0xb0]
xor eax, eax
cmp dword [ebx], eax
pop edi
pop esi
setne al
pop ebx
call fcn.0040f3ac
add ebp, 0xb4
leave
ret
Function at 0x40b966
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.ABCWatertekOnlineUpdate
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40b989
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40b993
push dword [esp + 8]
call fcn.0040c100
pop ecx
test esi, esi
je 0x40b99e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x40ba30
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x440ffc]
test eax, eax
je 0x40ba49
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
and dword [0x440ffc], 0
push 2
push dword [esp + 8]
call dword [sym.imp.USER32.dll_EndDialog]
xor eax, eax
ret

Function at 0x40bab2
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x4223b0]
push esi
push edi
mov dword [ebp + 0x84], eax
push 0x40
xor eax, eax
mov byte [ebp - 0x80], 0
pop ecx
push dword [ebp + 0x90]
lea edi, [ebp - 0x7f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x80]
push eax
call fcn.0040f1f0
lea eax, [ebp - 0x80]
push str.XJABCVer.ini
push eax
call fcn.0040f200
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
call esi
push dword [ebp + 0x90]
lea eax, [ebp - 0x80]
push eax
call fcn.0040f1f0
lea eax, [ebp - 0x80]
push str.XJABCSetup.exe
push eax
call fcn.0040f200
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
call esi
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0x90]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp + 0x84]
pop edi
pop esi
call fcn.0040f3ac
add ebp, 0x88
leave
ret
Function at 0x40bb59
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4223b0]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
push 0x40
xor eax, eax
pop ecx
mov byte [ebp - 0x20c], 0
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x108], 0
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
xor ebx, ebx
mov edi, str._sAbcCyInstUpdate_d_
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0040f420
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call esi
test eax, eax
je 0x40bbf5
lea eax, [ebp - 0x108]
push eax
call fcn.0040bab2
inc ebx
cmp ebx, 0x7d0
pop ecx
jl 0x40bbba
xor ebx, ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0040f420
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call esi
test eax, eax
je 0x40bc32
lea eax, [ebp - 0x108]
push eax
call fcn.0040bab2
inc ebx
cmp ebx, 0x7d0
pop ecx
jl 0x40bbf7
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x40bc5b
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call fcn.0040f1f0
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
call fcn.0040f3ac
leave
ret

Function at 0x40c007
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
mov esi, 0x43bdd8
push edi
mov ecx, esi
call fcn.00408adf
push eax
xor ebp, ebp
push ebp
mov ecx, esi
call fcn.0040aea3
mov esi, dword [esp + 0x14]
mov ebx, 0x43eefc
push ebx
push esi
mov dword [0x440ff8], esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x43ef7c
push 0x13ee
push esi
call edi
push 0x43f104
push 0x13ef
push esi
call edi
push 0x43d6dc
push 2
push esi
call edi
push 0x43f03c
push ebx
push 0x43f1c4
push 0x43d70c
push 0x43d6fc
push 0x43d6ec
push 0x43d6cc
call fcn.0040b9a0
push esi
call fcn.0040b054
add esp, 0x20
push ebp
push ebp
push ebp
push 0x40bffd
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
mov dword [0x440ffc], eax
xor eax, eax
pop ebp
inc eax
pop ebx
ret
Function at 0x40c648
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c28
call fcn.0040fd20
mov eax, dword [0x4223b0]
push edi
push 0x1c24
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c28]
push 0
push eax
call fcn.0040f3c0
add esp, 0xc
lea eax, [ebp - 0x1c28]
push eax
push 0x40c5b9
call dword [sym.imp.USER32.dll_EnumWindows]
xor edi, edi
cmp dword [ebp - 8], edi
jle 0x40c6b6
push esi
lea esi, [ebp - 0x1c28]
push dword [esi]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
inc edi
add esi, 0x48
cmp edi, dword [ebp - 8]
jl 0x40c694
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
inc eax
pop edi
call fcn.0040f3ac
leave
ret

Function at 0x40c6c4
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c28
call fcn.0040fd20
mov eax, dword [0x4223b0]
push esi
push 0x1c24
mov dword [ebp - 4], eax
xor esi, esi
lea eax, [ebp - 0x1c28]
push esi
push eax
call fcn.0040f3c0
add esp, 0xc
lea eax, [ebp - 0x1c28]
push eax
push 0x40c5b9
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 8], esi
jle 0x40c709
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
call fcn.0040f3ac
leave
ret

Function at 0x40c73b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
sub esi, dword [ebp - 8]
sub edi, dword [ebp - 4]
add esi, dword [ebp - 0x18]
add edi, dword [ebp - 0x14]
push 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x41
push 0
push 0
add edi, 0xfffffffe
push edi
add esi, 0xfffffffe
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
leave
ret