joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4901b4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x57d074]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ecx + 0x74], 1
push ebx
push esi
push edi
je 0x490242
test dword [ecx + 0x74], 0x2000
jne 0x490242
call fcn.00490ad4
mov edi, eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 3
jl 0x490242
xor esi, esi
mov ecx, edi
push esi
call fcn.00474210
push 0x5c
pop ebx
cmp ax, bx
jne 0x490213
push 1
mov ecx, edi
call fcn.00474210
cmp ax, bx
jne 0x490213
push 2
mov ecx, edi
call fcn.00474210
cmp ax, bx
jne 0x490242
test esi, esi
js 0x490255
push esi
mov ecx, edi
call fcn.004741f0
mov word [ebp + esi*2 - 0xc], ax
inc esi
cmp esi, 3
jl 0x490213
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
setne al
jmp 0x490244
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da696
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0040d795
int3

Function at 0x490260
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push 0x10
mov eax, 0x517cc8
call fcn.004db273
mov esi, ecx
mov dword [ebp - 0x1c], esi
call fcn.00490ad4
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.00478850
and dword [ebp - 4], 0
push 0x5c
push dword [edi]
call fcn.004de987
pop ecx
pop ecx
test eax, eax
jne 0x490298
or eax, 0xffffffff
jmp 0x49029c
sub eax, dword [edi]
sar eax, 1
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00406cff
xor ebx, ebx
lea ecx, [ebp - 0x10]
inc ebx
mov byte [ebp - 4], bl
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00410e44
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0040d05a
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4902e5
push 0x80
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push dword [ebp - 0x10]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4902fe
mov dword [esi + 0x14], ebx
jmp 0x490382
push edi
push 3
lea ecx, [esi + 0x1c]
call fcn.0049bc6b
lea ecx, [ebp - 0x14]
call fcn.0040cd94
push 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x1c]
call fcn.0049bd7c
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push 0x541bf4
push eax
call fcn.00411637
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.0040d05a
mov esi, dword [ebp - 0x1c]
lea ecx, [esi + 0x184]
call fcn.004964fa
push 0
push 0x20
push 0
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.0049c9cc
add esp, 0xc
test al, al
jne 0x490374
mov dword [esi + 0x14], ebx
jmp 0x490376
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0040d05a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d05a
mov eax, ebx
call fcn.004db23c
ret
Function at 0x491320
Capabilities:
Write file on windows

Disassembly:
push 0x30
mov eax, 0x517f81
call fcn.004db273
mov esi, ecx
mov eax, dword [esi + 0x1d8]
test eax, eax
je 0x49145d
cmp eax, 0xffffffff
je 0x49145d
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x1c], 0x103
jne 0x49145d
lea ecx, [ebp - 0x3c]
call fcn.004a41e7
xor ebx, ebx
lea ecx, [ebp - 0x18]
push str.Advinst_Estimate_
mov dword [ebp - 4], ebx
call fcn.0040d859
mov byte [ebp - 4], 1
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00490ad4
push ecx
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
call fcn.00484690
pop ecx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.0047baa0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
push dword [ebp - 0x14]
call fcn.004898ff
push eax
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
call fcn.00473df0
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.004a4225
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0040d05a
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0040d05a
push str.CLOSE
lea ecx, [ebp - 0x10]
call fcn.0040d859
mov byte [ebp - 4], 6
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
push ebx
push edx
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0040d05a
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040d05a
mov byte [ebp - 4], 7
push dword [ebp - 0x24]
call fcn.004dadb0
pop ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], bl
call fcn.0040d05a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004a42fe
call fcn.004db23c
ret
Function at 0x492239
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x24
mov eax, 0x5181b9
call fcn.004db273
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp byte [edi + 0xc0], 0
je 0x4923b8
cmp byte [edi + 0xd8], 0
jne 0x4923b8
xor ebx, ebx
inc ebx
cmp dword [edi + 0x90], 3
je 0x492291
call fcn.00494181
mov eax, dword [edi + 0x90]
cmp eax, 2
je 0x492291
cmp eax, ebx
je 0x492291
test byte [edi + 0x44], 0x48
je 0x492291
mov ecx, edi
call fcn.00492da1
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], bl
mov ebx, ecx
mov eax, dword [edi + 0xa8]
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x4922ff
lea eax, [edi + 0xa4]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
push ebx
mov ecx, eax
call fcn.004124b0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x4922f4
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.004124b0
push eax
lea ecx, [ebp - 0x30]
call fcn.00470830
mov eax, dword [ebp - 0x10]
inc ebx
cmp ebx, edi
jl 0x4922c6
mov edi, dword [ebp - 0x14]
mov ebx, dword [edi + 0xb4]
lea eax, [edi + 0xb0]
sub ebx, 1
mov dword [ebp - 0x18], eax
js 0x49234a
mov edi, eax
push ebx
mov ecx, edi
call fcn.004124b0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x492342
push ebx
mov ecx, edi
call fcn.004124b0
push eax
lea ecx, [ebp - 0x24]
call fcn.00470830
sub ebx, 1
jns 0x492315
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x30]
push eax
lea ecx, [edi + 0xa4]
call fcn.00495989
lea ebx, [edi + 0xb0]
mov ecx, ebx
call fcn.00455f07
mov esi, dword [ebp - 0x20]
jmp 0x49237c
push esi
lea ecx, [ebp - 0x24]
call fcn.004124b0
push eax
mov ecx, ebx
call fcn.00470830
sub esi, 1
jns 0x49236b
cmp dword [edi + 0xa8], 0
jne 0x492398
cmp dword [edi + 0xb4], 0
jne 0x492398
xor eax, eax
inc eax
jmp 0x49239a
xor al, al
mov byte [edi + 0xd8], al
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.00455f07
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00455f07
call fcn.004db23c
ret
Function at 0x494181
Capabilities:
Delete file

Disassembly:
push 0x20
mov eax, 0x518632
call fcn.004db273
mov esi, ecx
test byte [esi + 0x44], 1
je 0x49419f
test byte [esi + 0x44], 0x40
je 0x4942e8
mov eax, dword [esi + 0x7c]
xor edi, edi
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x4942e8
lea eax, [esi + 0x78]
push edi
mov ecx, eax
call fcn.0049581d
mov ebx, eax
cmp byte [ebx + 0x1c], 0
je 0x4942db
cmp dword [ebx], 1
je 0x4941f8
cmp dword [ebx], 3
je 0x4941f8
cmp dword [ebx], 7
je 0x4941f8
cmp dword [ebx], 8
je 0x4941f8
cmp dword [ebx], 0x64
jb 0x49421f
mov eax, dword [esi + 0x90]
cmp eax, 2
je 0x4942db
cmp eax, 5
jne 0x49421f
jmp 0x4942db
mov eax, dword [esi + 0x90]
cmp eax, 4
je 0x49421f
cmp eax, 2
je 0x4942db
cmp eax, 1
je 0x4942db
test byte [ebx + 8], 1
jne 0x4942db
push dword [ebx + 4]
mov ecx, esi
call fcn.00495059
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.00406ff4
and dword [ebp - 4], 0
mov ecx, dword [ebx + 0x18]
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00410e44
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x49425f
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040d588
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4942aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x4942aa
lea ecx, [ebp - 0x2c]
call fcn.0040cd94
lea ecx, [ebp - 0x28]
call fcn.0040cd94
xor eax, eax
mov word [ebp - 0x24], ax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x2c]
call fcn.0048d1b7
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.004540ed
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.00479020
mov edx, dword [ebp - 0x14]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0047a060
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0040d05a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d05a
inc edi
lea eax, [esi + 0x78]
cmp edi, dword [ebp - 0x1c]
jl 0x4941b2
call fcn.004db23c
ret
Function at 0x4942ee
Capabilities:
Read file on windows

Disassembly:
push 0x34
mov eax, 0x51865d
call fcn.004db273
mov ebx, ecx
xor eax, eax
cmp dword [ebx + 0x10], eax
je 0x49447b
mov ecx, dword [ebx + 0x1c]
add ecx, dword [ebx + 0x58]
push 0
adc eax, dword [ebx + 0x5c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push ecx
push dword [ebx + 0x88]
mov dword [ebp - 0x20], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x49434d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.00494fe3
push 2
pop eax
jmp 0x49447b
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
xor eax, eax
xorps xmm0, xmm0
mov dword [ebp - 0x40], eax
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], al
call fcn.0040cd94
mov byte [ebp - 0x24], 0
xor esi, esi
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], esi
and dword [ebp - 0x18], esi
mov byte [ebp - 4], 3
cmp dword [ebx + 0x10], esi
jbe 0x494455
xor edi, edi
push 0
lea eax, [ebp - 0x14]
push eax
push 0x18
lea eax, [ebp - 0x40]
push eax
push dword [ebx + 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x494485
cmp dword [ebp - 0x14], 0
je 0x494485
test edi, edi
je 0x4943c9
push esi
call fcn.004dadb0
and dword [ebp - 0x10], 0
pop ecx
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x10]
inc eax
push eax
call fcn.0048c259
mov esi, dword [ebp - 0x10]
test al, al
je 0x494481
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x2c]
add eax, eax
push eax
push esi
push dword [ebx + 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x494485
cmp dword [ebp - 0x14], 0
je 0x494485
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebx + 0x78]
call fcn.0049583f
push dword [ebp - 0x18]
lea ecx, [ebx + 0x78]
call fcn.0049581d
mov edi, eax
test esi, esi
jne 0x494432
xor eax, eax
jmp 0x494439
push esi
call fcn.004e07a4
pop ecx
push eax
push esi
lea ecx, [edi + 0x18]
call fcn.0040d7d9
mov eax, dword [ebp - 0x18]
mov edi, esi
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ebx + 0x10]
jb 0x494390
xor ebx, ebx
push esi
mov byte [ebp - 4], 2
call fcn.004dadb0
and dword [ebp - 0x10], 0
pop ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 7
call fcn.0040d05a
or dword [ebp - 4], 0xffffffff
mov eax, ebx
call fcn.004db23c
ret
push 3
jmp 0x49449e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.00494fe3
push 2
pop ebx
jmp 0x494457
Function at 0x4944a9
Capabilities:
Read file on windows

Disassembly:
push 0x28
mov eax, 0x518688
call fcn.004db273
mov edi, ecx
xor eax, eax
cmp dword [edi + 0x9c], eax
jg 0x494666
mov ecx, dword [edi + 0xc]
add ecx, dword [edi + 0x58]
mov dword [ebp - 0x34], ecx
adc eax, dword [edi + 0x5c]
xor ebx, ebx
push ebx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push ecx
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x49450c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.00494fe3
push 2
pop eax
jmp 0x494666
mov esi, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], ebx
cmp dword [edi + 8], 0
mov dword [ebp - 0x18], ebx
jbe 0x494655
push 2
mov dword [ebp - 0x1c], ebx
pop ebx
push 0
lea eax, [ebp - 0x14]
push eax
push 8
lea eax, [ebp - 0x24]
push eax
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49463e
cmp dword [ebp - 0x14], 0
je 0x49463e
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040cd94
cmp dword [ebp - 0x1c], 0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
je 0x49457d
push esi
call fcn.004dadb0
and dword [ebp - 0x10], 0
pop ecx
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
inc eax
push eax
call fcn.0048c259
mov esi, dword [ebp - 0x10]
test al, al
je 0x494629
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
add eax, eax
push eax
push esi
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x494610
cmp dword [ebp - 0x14], 0
je 0x494610
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov word [esi + eax*2], cx
test esi, esi
jne 0x4945c9
xor eax, eax
jmp 0x4945d0
push esi
call fcn.004e07a4
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040d7d9
lea eax, [ebp - 0x2c]
push eax
lea ecx, [edi + 0x98]
call fcn.00495784
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.0040d05a
mov eax, dword [ebp - 0x18]
inc eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
cmp eax, dword [edi + 8]
jb 0x49452d
xor ebx, ebx
jmp 0x494655
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.00494fe3
jmp 0x49462c
push 3
pop ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0040d05a
mov byte [ebp - 4], 0
jmp 0x494655
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.00494fe3
or dword [ebp - 4], 0xffffffff
push esi
call fcn.004dadb0
and dword [ebp - 0x10], 0
mov eax, ebx
pop ecx
call fcn.004db23c
ret

Function at 0x49572e
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, ecx
push esi
xor esi, esi
push edi
lea edi, [ebx + 0xe0]
cmp dword [ebx + 0xe4], esi
jle 0x49575c
push esi
mov ecx, edi
call fcn.004124b0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [ebx + 0xe4]
jl 0x495743
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.00455f07
Function at 0x495b22
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5188f8
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword [0x57d074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x2c], 0
je 0x495b5a
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esi + 0xc]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x495bb1
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov ebx, str.SoftwareCaphyonSetups
push ebx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 0x10], 0
je 0x495bb1
push dword [edi]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea ecx, [ebp - 0x14]
call fcn.0040d859
lea edx, [ebp - 0x14]
call fcn.0049c7a0
lea ecx, [ebp - 0x14]
call fcn.0040d05a
lea ecx, [esi + 0x1c]
call fcn.00409f09
lea ecx, [esi + 0x10]
call fcn.00409f09
mov ecx, edi
call fcn.0040d05a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x495e44
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x57d074]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push edi
mov edi, ecx
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0
je 0x495ed6
push 0x104
lea eax, [ebp - 0x7c]
push eax
push dword [0x57f2d8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x495ed6
push esi
lea esi, [eax + eax]
cmp esi, 0x208
jae 0x495eec
xor eax, eax
and dword [ebp - 0x80], eax
mov word [ebp + esi - 0x7c], ax
lea eax, [ebp - 0x80]
push eax
push str.SoftwareCaphyonSetups
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp dword [ebp - 0x80], 0
je 0x495ed5
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x7c]
push eax
push 1
push 0
push dword [edi + 0xc]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop edi
call fcn.004da696
lea esp, [ebp + 0x190]
pop ebp
ret
call fcn.004daeef
int3
Function at 0x496031
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x3c
mov eax, dword [0x57d074]
xor eax, esp
mov dword [esp + 0x38], eax
movaps xmm0, xmmword [0x54bb80]
xor eax, eax
and dword [esp + 4], 0
push ebx
push ebp
push esi
movups xmmword [esp + 0x24], xmm0
push edi
movaps xmm0, xmmword [0x54bb80]
mov edi, ecx
mov byte [esp + 0x13], dl
movups xmmword [esp + 0x38], xmm0
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push str.kernel32.dll
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetSystemDefaultUILanguage
push esi
call ebx
test eax, eax
je 0x4960ae
call eax
movzx eax, ax
mov dword [esp + 0x1c], eax
push str.GetUserDefaultUILanguage
push esi
call ebx
test eax, eax
je 0x4960c3
call eax
movzx eax, ax
mov dword [esp + 0x14], eax
mov ebp, dword [edi + 4]
xor esi, esi
test ebp, ebp
jle 0x496167
mov bl, byte [esp + 0x13]
push esi
mov ecx, edi
call fcn.00409ee7
movzx edx, bl
movzx ecx, word [eax]
mov eax, dword [esp + 0x20]
cmp cx, ax
jne 0x4960ef
mov dword [esp + edx*8 + 0x2c], esi
cmp cl, al
jne 0x4960f7
mov dword [esp + edx*8 + 0x3c], esi
mov eax, dword [esp + 0x18]
cmp cx, ax
jne 0x496117
and dword [esp + 0x24], 0
test bl, bl
push 0xc
pop eax
cmovne eax, dword [esp + 0x24]
mov dword [esp + eax + 0x28], esi
mov eax, dword [esp + 0x18]
cmp cl, al
jne 0x496125
movzx eax, bl
xor eax, 1
mov dword [esp + eax*8 + 0x3c], esi
mov eax, dword [esp + 0x1c]
cmp cx, ax
jne 0x496132
mov dword [esp + edx*8 + 0x28], esi
cmp cl, al
jne 0x49613a
mov dword [esp + edx*8 + 0x38], esi
mov eax, dword [esp + 0x14]
mov dl, bl
xor dl, 1
cmp cx, ax
jne 0x496153
movzx eax, dl
mov dword [esp + eax*4 + 0x2c], esi
mov eax, dword [esp + 0x14]
cmp cl, al
jne 0x49615e
movzx eax, dl
mov dword [esp + eax*8 + 0x38], esi
inc esi
cmp esi, ebp
jl 0x4960d4
xor eax, eax
mov edx, dword [esp + eax*4 + 0x28]
test edx, edx
jns 0x49617b
inc eax
cmp eax, 8
jb 0x496169
push 0
jmp 0x49617c
push edx
mov ecx, edi
call fcn.00409ee7
mov ecx, dword [esp + 0x48]
pop edi
pop esi
mov ax, word [eax]
pop ebp
pop ebx
xor ecx, esp
call fcn.004da696
add esp, 0x3c
ret
Function at 0x496227
Capabilities:
Get geographical location

Disassembly:
push 0x14
mov eax, 0x5189ce
call fcn.004db273
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040cd94
push 0
push 0x534080
mov dword [ebp - 4], ebx
push 2
movzx ebx, di
push ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0x18], eax
lea ecx, [eax - 1]
push ecx
push 0x78
lea ecx, [ebp - 0x10]
call fcn.0045058e
xor eax, eax
inc eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 4], eax
jle 0x496291
push dword [ecx - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040d588
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x18]
push ecx
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push dword [ebp - 0x10]
push edi
push str._d__s
push esi
call fcn.00411637
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040d05a
mov eax, esi
call fcn.004db23c
ret

Function at 0x49656d
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x2c
mov eax, dword [0x57d074]
xor eax, esp
mov dword [esp + 0x24], eax
push ebp
push esi
mov ebp, ecx
push 2
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
xorps xmm0, xmm0
lea eax, [esp + 0x1c]
push eax
push esi
movups xmmword [esp + 0x24], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
xor eax, eax
cmp byte [ebp + 0x2c], al
push 5
pop ecx
cmovne eax, ecx
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0x3e9
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esp + 0xc]
mov dword [esp + 8], eax
push ecx
xorps xmm0, xmm0
push eax
movups xmmword [esp + 0x14], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [ebp + 0x30], 0
jne 0x4965f1
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x30], eax
cmp byte [ebp + 0x2c], 0
je 0x4965fc
mov eax, dword [ebp + 0x30]
jmp 0x496600
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push 0x206
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.00410810
mov ecx, dword [esp + 0x2c]
pop esi
pop ebp
xor ecx, esp
call fcn.004da696
add esp, 0x2c
ret
Function at 0x496923
Capabilities:
Terminate thread

Disassembly:
push 0x18
mov eax, 0x518a48
call fcn.004db273
mov eax, dword [ebp + 8]
xor edi, edi
or dword [ebp - 0x1c], 0xffffffff
mov esi, 0x544c30
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
push edi
push edi
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], edi
call fcn.004a81af
mov ecx, dword [ebp - 0x20]
call fcn.004966dd
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x20], edi
je 0x4969b3
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4969aa
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4969aa
cmp dword [ebp + 8], 0x103
jne 0x4969aa
push edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004db23c
ret 4