joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47cd10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x568744]
xor edx, edx
cmp eax, edx
jne 0x47cd36
xor eax, eax
mov byte [eax + 0x568644], al
inc eax
cmp eax, 0x100
jl 0x47cd1e
mov dword [0x568744], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x568644
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x47cdc7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x47cd9a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x47cd68
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x47cdd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x47ce23
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x47ce0a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4837d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c3e7e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004840f0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x5188cc
call fcn.004b5661
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x483863
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004b5661
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x48385c
push 0
mov ecx, eax
call fcn.0047a940
mov dword [esi + 0xc], eax
jmp 0x483865
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x483865
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x495200
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x495321
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x495305
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x495257
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x495235
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x495d69
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x495dc0
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
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]
test esi, esi
pop esi
jne 0x495dc0
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x495dc0
xor eax, eax
inc eax
jmp 0x495dc2
xor eax, eax
leave
ret 0x10
Function at 0x495deb
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x495e59
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x51c894
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x495e50
cmp dword [ebp - 0xc], 4
jne 0x495e50
cmp dword [ebp - 0x10], edi
je 0x495e50
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x54bf88], edi
xor eax, eax
jmp 0x495e98
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x54bf88], edi
jge 0x495e93
lea eax, [ebp - 0x34]
push eax
mov dword [0x54bf88], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x495e93
cmp word [ebp - 0x14], 5
jb 0x495e93
call fcn.00495dc6
test eax, eax
je 0x495e93
emms
mov dword [0x54bf88], 1
mov eax, dword [0x54bf88]
pop edi
leave
ret

Function at 0x4b7cc7
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b7cff
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b5d7b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b5d53
jmp 0x4b7d0b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b93b5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b93f7
call fcn.004bee6e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b93f7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b93ee
xor eax, eax
jmp 0x4b93ff
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b9405
pop edi
pop esi
pop ebx
ret 4

Function at 0x4bf39e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4bf3cc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4bf3ea
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004bf304
jmp 0x4bf3ea
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4bf3ea
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004bf304
test edi, edi
mov eax, edi
jne 0x4bf3d4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x438caf
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x438a14
sub ebx, 0x65da8774
mov ebx, ebx
call fcn.00438ce7
add ecx, ecx
dec ecx
xor dword [esi], edx
push 0x233f37db
pop ecx
sub ecx, 1
mov ecx, 0xa0197a4f
inc esi
sub ecx, 0x9ea6f024
cmp esi, eax
jne fcn.00438caf
add ecx, ecx
ret
Function at 0x401360
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edi
push 0
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x401377
pop edi
pop ebx
ret
push esi
push edi
call fcn.0040226e
push edi
mov esi, eax
push 0
push esi
call fcn.00405680
add esp, 0x10
push edi
push esi
call ebx
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401395
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
mov eax, esi
je 0x4013b4
push 0x411834
call fcn.00401260
add esp, 4
pop esi
pop edi
pop ebx
ret

Function at 0x4013c0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
push 0
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x4013d7
pop edi
pop ebx
ret
push esi
push edi
call fcn.0040226e
push edi
mov esi, eax
push 0
push esi
call fcn.00405680
add esp, 0x10
push edi
push esi
call ebx
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4013f5
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
mov eax, esi
je 0x401414
push 0x411834
call fcn.00401260
add esp, 4
pop esi
pop edi
pop ebx
ret
Function at 0x401490
Capabilities:
Get common file path

Disassembly:
mov ecx, str.temp
mov eax, ecx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4014b7
test dl, dl
je 0x4014b3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4014b7
add eax, 2
add ecx, 2
test dl, dl
jne 0x401497
xor eax, eax
jmp 0x4014bc
sbb eax, eax
sbb eax, 0xffffffff
push esi
test eax, eax
jne 0x401531
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edi
push eax
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x4014e4
push str.setup.exe
call fcn.00401260
add esp, 4
pop edi
pop ebx
pop esi
ret
push edi
call fcn.0040226e
push edi
mov esi, eax
push 0
push esi
call fcn.00405680
add esp, 0x10
push esi
push edi
call ebx
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401501
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
mov eax, esi
je 0x401520
push 0x411834
call fcn.00401260
add esp, 4
push str.setup.exe
call fcn.00401260
add esp, 4
pop edi
pop ebx
pop esi
ret
mov ecx, str.current
mov eax, str.temp
jmp 0x401540
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401560
test dl, dl
je 0x40155c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401560
add eax, 2
add ecx, 2
test dl, dl
jne 0x401540
xor eax, eax
jmp 0x401565
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4015a9
call fcn.00401420
mov esi, eax
push 0x5c
push esi
call fcn.004025b0
add esp, 8
test eax, eax
jne 0x40158e
push str.setup.exe
call fcn.00401260
add esp, 4
pop esi
ret
sub eax, esi
inc eax
push esi
call fcn.004012f0
add esp, 4
push str.setup.exe
call fcn.00401260
add esp, 4
pop esi
ret
mov ecx, str.system
mov eax, str.temp
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4015d3
test dl, dl
je 0x4015cf
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4015d3
add eax, 2
add ecx, 2
test dl, dl
jne 0x4015b3
xor eax, eax
jmp 0x4015d8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4015f0
push str.setup.exe
call fcn.00401360
call fcn.00401260
add esp, 4
pop esi
ret
mov ecx, str.windows
mov eax, str.temp
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401620
test dl, dl
je 0x40161c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401620
add eax, 2
add ecx, 2
test dl, dl
jne 0x401600
xor eax, eax
jmp 0x401625
sbb eax, eax
sbb eax, 0xffffffff
push str.setup.exe
test eax, eax
jne 0x40163d
call fcn.004013c0
call fcn.00401260
add esp, 4
pop esi
ret
mov eax, str.temp
call fcn.00401260
mov ecx, eax
add esp, 4
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x401650
sub ecx, esi
cmp byte [ecx + eax - 1], 0x5c
je 0x40166d
push 0x411834
call fcn.00401260
add esp, 4
pop esi
ret
Function at 0x401670
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x41329c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x13c], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x140], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x124
lea ecx, [ebp - 0x130]
push 0
push ecx
mov dword [ebp - 0x138], 0
call fcn.00405680
add esp, 0xc
lea edx, [ebp - 0x134]
push edx
push esi
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.00402310
add esp, 8
test eax, eax
je 0x401739
mov edx, dword [ebp - 0x12c]
push edx
push 0
push 1
call edi
mov esi, eax
lea eax, [ebp - 0x138]
push eax
push esi
call ebx
mov ecx, dword [ebp - 0x138]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x401739
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x134]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4016eb
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040205c
mov esp, ebp
pop ebp
ret 4
Function at 0x401770
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Set registry value
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x41329c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov dword [ebp - 0x114], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4017ba
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040205c
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4017a6
call fcn.00401490
push 0
push 0
push 2
push 0
push 0
mov ebx, eax
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x4017a6
mov ecx, dword [ebp - 0x114]
push 0
lea eax, [ebp - 0x11c]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.setup.exe
call fcn.00401670
push str.setup.tmp
call fcn.00401670
push str.ColorCursor
lea edx, [ebp - 0x110]
push str.Software_s
push edx
call fcn.0040206b
add esp, 0xc
cmp byte [0x415bd7], 0
je 0x40189e
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x110]
push ecx
push 0x80000001
mov dword [ebp - 0x118], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [ebp - 0x114]
push 4
lea edx, [ebp - 0x118]
push edx
push 4
push 0
push str.InstallMode
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push str._VERYSILENT__SP_
jmp 0x4018f6
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x110]
push eax
push 0x80000001
mov dword [ebp - 0x118], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [ebp - 0x114]
push 4
lea ecx, [ebp - 0x118]
push ecx
push 4
push 0
push str.InstallMode
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0x4118ad
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040205c
mov esp, ebp
pop ebp
ret
Function at 0x401920
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x41329c]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
push 0x104
lea eax, [esp + 0x12c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x415708
push 0x415ad8
push 0x415970
lea ecx, [esp + 0x134]
push 0x415808
push ecx
call fcn.00402882
mov eax, 0x415ad8
add esp, 0x14
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401980
sub eax, edx
lea edi, [eax + 1]
push edi
mov dword [esp + 0x18], edi
call fcn.00402263
mov esi, eax
mov eax, 0x415ad8
mov edx, esi
add esp, 4
mov dword [esp + 0x10], esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4019a8
push str.xkcc_
push 0x415ad8
call fcn.004024c0
add esp, 8
test eax, eax
je 0x401a12
push 0x4118b8
push esi
mov byte [0x415bd7], 1
dec edi
call fcn.004024c0
add esp, 8
test eax, eax
je 0x4019e6
sub eax, esi
jmp 0x4019e9
or eax, 0xffffffff
push edi
inc eax
push eax
lea edx, [esp + 0x18]
push edx
lea ebx, [esp + 0x24]
call fcn.004010b0
lea esi, [esp + 0x10]
call fcn.00401020
mov eax, dword [esp + 0x18]
push eax
call fcn.004024d7
add esp, 4
jmp 0x401a28
push 0x4118bc
push 0x4118c0
lea ebx, [esp + 0x18]
call fcn.004011b0
add esp, 8
push str.ColorCursor
lea ecx, [esp + 0x24]
push str.Software_s
push ecx
call fcn.0040206b
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
add esp, 0xc
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [esp + 0x3c]
push eax
push 0x80000001
call esi
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [esp + 0x3c]
push edx
push 0x80000001
call esi
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x401a9b
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401a92
jmp 0x401acb
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [esp + 0x3c]
push edx
push 0x80000001
call esi
test eax, eax
jne 0x401ae3
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ac4
sub eax, edx
push eax
mov eax, dword [esp + 0x10]
push edi
push 1
push 0
push str.TerminalNo
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0xa
push str.IDR_LUA
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x401afd
mov ecx, eax
call fcn.00401770
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.004024d7
mov ecx, dword [esp + 0x238]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040205c
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40205c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41329c]
jne 0x402066
repz ret
jmp fcn.0040358a
Function at 0x408ecc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41329c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004050d3
and dword [ebp - 0x14], 0
cmp dword [0x41534c], 0
mov dword [ebp - 0x18], eax
jne 0x408f7f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409027
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x409027
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41534c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x415350], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x415354], eax
call edi
push eax
call esi
mov dword [0x41535c], eax
test eax, eax
je 0x408f7f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x415358], eax
mov eax, dword [0x415358]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408fd8
cmp dword [0x41535c], ecx
je 0x408fd8
push eax
call esi
push dword [0x41535c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408fd8
test ebx, ebx
je 0x408fd8
call edi
test eax, eax
je 0x408fcf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x408fcf
test byte [ebp - 8], 1
jne 0x408fd8
or dword [ebp + 0x10], 0x200000
jmp 0x40900b
mov eax, dword [0x415350]
cmp eax, dword [ebp - 0x18]
je 0x40900b
push eax
call esi
test eax, eax
je 0x40900b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40900b
mov eax, dword [0x415354]
cmp eax, dword [ebp - 0x18]
je 0x40900b
push eax
call esi
test eax, eax
je 0x40900b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41534c]
call esi
test eax, eax
je 0x409027
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409029
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040205c
leave
ret
Function at 0x1000cb2e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x1000cb66
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x1000cb54
mov al, 1
jmp 0x1000cbb7
cmp dword [ebx + 0x54], ecx
jne 0x1000cb5d
mov al, 2
jmp 0x1000cbb7
cmp dword [ebx + 0x7c], ecx
jne 0x1000cbb7
mov al, 3
jmp 0x1000cbb7
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x1000cb7b
mov al, 4
jmp 0x1000cbb7
cmp ecx, 5
jne 0x1000cb9b
cmp ebx, 0
jne 0x1000cb89
mov al, 5
jmp 0x1000cbb7
cmp ebx, 1
jne 0x1000cb92
mov al, 6
jmp 0x1000cbb7
cmp ebx, 2
jne 0x1000cb9b
mov al, 7
jmp 0x1000cbb7
cmp ecx, 6
jne 0x1000cba7
cmp ebx, 0
jne 0x1000cba9
mov al, 8
jmp 0x1000cbb7
cmp ebx, 1
jne 0x1000cbb0
mov al, 9
cmp ebx, 2
jne 0x1000cbb7
mov al, 0xa
pop ebx
mov esp, ebp
pop ebp
ret