joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000741f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, dword [0x10037e50]
push edi
xor edi, edi
test esi, esi
je 0x100074a5
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esi + 4]
test eax, eax
jne 0x10007445
cmp dword [esi + 0xc], eax
jne 0x10007450
call ebx
mov dword [esi + 0xc], eax
mov edi, esi
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x10007434
jmp 0x100074a4
test eax, eax
jne 0x10007445
call ebx
sub eax, dword [esi + 0xc]
cmp eax, 0x3e8
jbe 0x10007445
cmp dword [esi + 0x10], 0
jne 0x10007471
push 2
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [esi + 0x1c]
call sub.WS2_32.dll_closesocket
test eax, eax
je 0x10007483
cmp dword [esi + 0x10], 2
je 0x10007445
mov eax, dword [esi + 0x20]
push esi
test edi, edi
je 0x10007499
mov dword [edi + 0x20], eax
call fcn.100150a2
mov esi, dword [edi + 0x20]
pop ecx
jmp 0x1000744a
mov dword [0x10037e50], eax
call fcn.100150a2
pop ecx
pop ebx
pop edi
pop esi
ret

Function at 0x100074a8
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, dword [0x10037e50]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [0x10037e54], ebx
jne 0x10007575
push 0x100000
call fcn.1001517f
pop ecx
mov dword [0x10037e54], eax
jmp 0x10007575
cmp dword [esi + 4], 1
jne 0x10007572
push dword [esi]
call sub.WS2_32.dll_htonl
mov ecx, dword [0x10037e54]
mov dword [ecx], eax
lea eax, [ebp - 4]
push eax
push 0x4004667f
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [ebp - 4], 0xffffc
jbe 0x10007519
mov dword [ebp - 4], 0xffffc
cmp eax, 0xffffffff
je 0x1000753d
cmp dword [ebp - 4], ebx
jbe 0x10007572
push dword [ebp - 4]
mov eax, dword [0x10037e54]
push dword [esi + 0x1c]
add eax, 4
call fcn.10006dab
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x10007554
push 4
push 4
push dword [0x10037e54]
mov dword [esi + 4], ebx
call fcn.100012d0
add esp, 0xc
jmp 0x10007572
mov ecx, dword [ebp - 4]
cmp eax, ecx
jne 0x10007572
push 5
add ecx, 4
push ecx
push dword [0x10037e54]
call fcn.100012d0
add esp, 0xc
inc dword [ebp - 8]
mov esi, dword [esi + 0x20]
cmp esi, ebx
jne 0x100074de
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret
Function at 0x10008810
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0x10], 0
push esi
push edi
push dword [ebp + 0xc]
xor eax, eax
push dword [ebp + 8]
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
call fcn.10006bfa
lea eax, [ebp - 0x10]
add esp, 0xc
push eax
call fcn.10006c13
pop ecx
mov edi, eax
push edi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10008860
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x10008872
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x23
call fcn.10001f5d
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret
Function at 0x100088ea
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94c
push ebx
push esi
push edi
push 0x7ff
xor esi, esi
lea eax, [ebp - 0x947]
push esi
push eax
mov byte [ebp - 0x948], 0
call fcn.1001cd70
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push dword [ebp + 8]
push eax
call fcn.10006bfa
lea eax, [ebp - 0x18]
push eax
call fcn.10006c13
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push 0x8000
push eax
call fcn.10001669
add esp, 0x24
cmp dword [ebp - 4], esi
jle 0x10008950
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
call fcn.100016b9
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.100032e2
pop ecx
test eax, eax
je 0x1000896a
mov dword [ebp - 8], 0x1002d6dc
jmp 0x10008981
call fcn.1000dc1b
mov dword [ebp - 8], 0x1002d6dc
test eax, eax
jne 0x10008981
mov dword [ebp - 8], 0x1002d6e0
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10008ac3
lea eax, [ebp - 0x148]
push eax
push ebx
mov dword [ebp - 0x148], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x100089bb
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10008ac3
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x140]
push 0
call fcn.100068c1
neg eax
sbb eax, eax
and eax, 0xc00
add eax, 0x400
push eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x10008a0f
push dword [ebp - 0x140]
lea eax, [ebp - 0x124]
push dword [ebp - 0x130]
push eax
lea eax, [ebp - 0x18]
push str._s_t_d_t_d_n
push eax
call fcn.1000170c
add esp, 0x14
jmp 0x10008a82
lea eax, [ebp - 0x948]
push eax
push edi
call fcn.1000887d
pop ecx
pop ecx
test eax, eax
jne 0x10008a28
mov byte [ebp - 0x948], al
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x140]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x10008a40
or dword [ebp - 0x1c], 0xffffffff
push edi
call fcn.100032e2
test eax, eax
pop ecx
mov eax, 0x1002d6e0
jne 0x10008a53
mov eax, dword [ebp - 8]
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x948]
push ecx
push eax
push dword [ebp - 0x140]
lea eax, [ebp - 0x124]
push dword [ebp - 0x130]
push eax
lea eax, [ebp - 0x18]
push str._s_t_d_t_d_t_s_t_s_t_d_n
push eax
call fcn.1000170c
add esp, 0x20
push edi
call esi
lea eax, [ebp - 0x148]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100089c1
push ebx
call esi
cmp dword [ebp - 4], 0
lea eax, [ebp - 0x18]
jne 0x10008aaa
push 0x11
jmp 0x10008aac
push 0x16
call fcn.1000176e
push eax
lea eax, [ebp - 0x18]
call fcn.1000176b
push eax
call fcn.100012d0
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
call fcn.1000174b
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10008b0f
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, 0x8000
push ebx
call fcn.1001517f
push dword [ebp + 8]
mov edi, eax
push str._s
push ebx
push edi
call fcn.100152d6
mov esi, dword [ebp + 0xc]
add esp, 0x14
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push edi
mov dword [ebp - 4], eax
call fcn.100150a2
cmp dword [ebp - 4], 0xffffffff
pop ecx
je 0x10008bce
test byte [esi], 0x10
lea eax, [esi + 0x2c]
je 0x10008bd3
push 2
mov edi, 0x1002d70c
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x10008bb4
mov esi, eax
push 3
mov edi, 0x1002d710
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10008bb4
push ebx
call fcn.1001517f
mov esi, dword [ebp + 0xc]
add esi, 0x2c
push esi
push 0x1002d524
mov edi, eax
push ebx
push edi
call fcn.100152d6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.10008ad2
push 1
push edi
push dword [ebp + 8]
call dword [ebp + 0x10]
push edi
call fcn.100150a2
add esp, 0x34
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10008b50
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret
push 0
push eax
push dword [ebp + 8]
call dword [ebp + 0x10]
add esp, 0xc
jmp 0x10008bb7

Function at 0x10008ebb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.100095db
mov dword [ebp - 8], eax
mov eax, 1
test eax, eax
je 0x10008f19
mov ecx, dword [ebp - 8]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x10008f0e
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x40
jb 0x10008f0e
cmp dword [ebp - 4], 0x400
jae 0x10008f0e
mov edx, dword [ebp - 4]
add edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
jne 0x10008f0e
jmp 0x10008f19
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
jmp 0x10008ec9
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x100091fb
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + 6]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x10009282
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
add edx, dword [ecx + 0x14]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0x14]
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x24]
and eax, 0x20000000
je 0x10009277
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [ebp - 0x10]
add edx, 0x28
mov dword [ebp - 0x10], edx
jmp 0x1000921e
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000962b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push edi
mov byte [ebp - 0x30], 0x6b
mov byte [ebp - 0x2f], 0x65
mov byte [ebp - 0x2e], 0x72
mov byte [ebp - 0x2d], 0x6e
mov byte [ebp - 0x2c], 0x65
mov byte [ebp - 0x2b], 0x6c
mov byte [ebp - 0x2a], 0x33
mov byte [ebp - 0x29], 0x32
mov byte [ebp - 0x28], 0
mov byte [ebp - 0x24], 0x4c
mov byte [ebp - 0x23], 0x6f
mov byte [ebp - 0x22], 0x61
mov byte [ebp - 0x21], 0x64
mov byte [ebp - 0x20], 0x4c
mov byte [ebp - 0x1f], 0x69
mov byte [ebp - 0x1e], 0x62
mov byte [ebp - 0x1d], 0x72
mov byte [ebp - 0x1c], 0x61
mov byte [ebp - 0x1b], 0x72
mov byte [ebp - 0x1a], 0x79
mov byte [ebp - 0x19], 0x41
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x14], 0x4c
mov byte [ebp - 0x13], 0x6f
mov byte [ebp - 0x12], 0x61
mov byte [ebp - 0x11], 0x64
mov byte [ebp - 0x10], 0x4c
mov byte [ebp - 0xf], 0x69
mov byte [ebp - 0xe], 0x62
mov byte [ebp - 0xd], 0x72
mov byte [ebp - 0xc], 0x61
mov byte [ebp - 0xb], 0x72
mov byte [ebp - 0xa], 0x79
mov byte [ebp - 9], 0x45
mov byte [ebp - 8], 0x78
mov byte [ebp - 7], 0x41
mov byte [ebp - 6], 0
mov byte [ebp - 0x50], 0x56
mov byte [ebp - 0x4f], 0x69
mov byte [ebp - 0x4e], 0x72
mov byte [ebp - 0x4d], 0x74
mov byte [ebp - 0x4c], 0x75
mov byte [ebp - 0x4b], 0x61
mov byte [ebp - 0x4a], 0x6c
mov byte [ebp - 0x49], 0x41
mov byte [ebp - 0x48], 0x6c
mov byte [ebp - 0x47], 0x6c
mov byte [ebp - 0x46], 0x6f
mov byte [ebp - 0x45], 0x63
mov byte [ebp - 0x44], 0
mov byte [ebp - 0x40], 0x56
mov byte [ebp - 0x3f], 0x69
mov byte [ebp - 0x3e], 0x72
mov byte [ebp - 0x3d], 0x74
mov byte [ebp - 0x3c], 0x75
mov byte [ebp - 0x3b], 0x61
mov byte [ebp - 0x3a], 0x6c
mov byte [ebp - 0x39], 0x50
mov byte [ebp - 0x38], 0x72
mov byte [ebp - 0x37], 0x6f
mov byte [ebp - 0x36], 0x74
mov byte [ebp - 0x35], 0x65
mov byte [ebp - 0x34], 0x63
mov byte [ebp - 0x33], 0x74
mov byte [ebp - 0x32], 0
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
call edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
call edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
lea edx, [ebp - 0x50]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
call edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
call edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], eax
lea edi, [ebp - 0x30]
xor al, al
mov ecx, 9
rep stosb byte es:[edi], al
lea edi, [ebp - 0x24]
xor al, al
mov ecx, 0xd
rep stosb byte es:[edi], al
lea edi, [ebp - 0x14]
xor al, al
mov ecx, 0xf
rep stosb byte es:[edi], al
lea edi, [ebp - 0x50]
xor al, al
mov ecx, 0xd
rep stosb byte es:[edi], al
lea edi, [ebp - 0x40]
xor al, al
mov ecx, 0xf
rep stosb byte es:[edi], al
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10009b4b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.1000a26b
mov dword [ebp - 8], eax
mov eax, 1
test eax, eax
je 0x10009ba9
mov ecx, dword [ebp - 8]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x10009b9e
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x40
jb 0x10009b9e
cmp dword [ebp - 4], 0x400
jae 0x10009b9e
mov edx, dword [ebp - 4]
add edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
jne 0x10009b9e
jmp 0x10009ba9
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
jmp 0x10009b59
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10009e8b
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + 6]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x10009f12
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
add edx, dword [ecx + 0x14]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0x14]
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x24]
and eax, 0x20000000
je 0x10009f07
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [ebp - 0x10]
add edx, 0x28
mov dword [ebp - 0x10], edx
jmp 0x10009eae
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000a63e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, 0x400
push edi
mov dword [0x1003af04], eax
call fcn.1001517f
push edi
mov esi, eax
push 0
push esi
mov dword [0x1003af08], esi
call fcn.1001cd70
push 0
push 1
push 1
push edi
push esi
call fcn.1000b53d
add esp, 0x24
xor eax, eax
xor byte [eax + 0x10032020], 0x2e
inc eax
cmp eax, 0x1000
jl 0x1000a67d
push 0x1000
lea eax, [esp + 0x14]
push 0x10032020
push eax
call fcn.10006bfa
lea eax, [esp + 0x1c]
push eax
call fcn.10006c56
add esp, 0x10
jmp 0x1000a75b
lea eax, [esp + 0x10]
push eax
call fcn.10006c56
movzx edi, ax
lea eax, [esp + 0x14]
push eax
call fcn.10006c56
movsx ebx, si
pop ecx
pop ecx
movzx ecx, ax
mov eax, dword [0x1003af08]
shl ebx, 3
lea esi, [ebx + eax]
movsx eax, di
dec eax
mov word [esi], di
je 0x1000a73a
dec eax
je 0x1000a723
dec eax
jne 0x1000a750
movsx edi, cx
push edi
call fcn.1001517f
pop ecx
push edi
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
push edi
push eax
call fcn.10006c81
pop ecx
pop ecx
push eax
push dword [esi + 4]
call fcn.1001bb80
push 0
push 1
push 1
push edi
push dword [esi + 4]
call fcn.1000b53d
add esp, 0x20
jmp 0x1000a750
lea eax, [esp + 0x10]
push eax
call fcn.10006c13
pop ecx
mov ecx, dword [0x1003af08]
mov dword [ebx + ecx + 4], eax
jmp 0x1000a750
lea eax, [esp + 0x10]
push eax
call fcn.10006c56
pop ecx
mov ecx, dword [0x1003af08]
mov word [ebx + ecx + 4], ax
lea eax, [esp + 0x10]
push eax
call fcn.10006c56
pop ecx
movzx esi, ax
test si, si
jg 0x1000a6b2
push 0x1000
push 0
push 0x10032020
call fcn.1001cd70
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000aea9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
inc dword [0x10037e88]
push 0x27
pop edx
call fcn.1000a5f2
cmp ax, 1
jne 0x1000aec6
pop ebp
jmp fcn.1000ae54
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x1000aeda
Capabilities:
Create thread
Terminate process

Disassembly:
push esi
push edi
push 0x37
pop edx
call fcn.1000a5f2
push 0x27
pop edx
movzx edi, ax
call fcn.1000a5f2
movzx esi, ax
call fcn.1000b5e3
cmp edi, 1
jne 0x1000af15
cmp esi, edi
jne 0x1000af0d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000af00
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
cmp esi, 1
jne 0x1000af39
push 0xffffffffffffffff
xor eax, eax
push eax
push eax
push eax
push dword [sym.imp.KERNEL32.dll_ExitProcess]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
ret
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1000b29a
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1000af85
push 0x10037e90
push 3
push 9
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_LogonUserA]
test eax, eax
jne 0x1000b2d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x18
call fcn.10001f17
pop ecx
pop ecx
jmp 0x1000b3b3
push dword [0x10037e90]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x1000b2f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x19
jmp 0x1000b2ca
push 0x800
call fcn.10006b7f
pop ecx
mov esi, 0x200
push esi
push eax
mov dword [0x10037ea0], eax
call fcn.10006c81
push esi
push dword [0x10037ea0]
mov dword [0x10037e94], eax
call fcn.10006c81
push 0x400
push dword [0x10037ea0]
mov dword [0x10037e98], eax
call fcn.10006c81
mov edi, 0x100
push edi
push dword [0x10037e98]
mov dword [0x10037e9c], eax
push dword [ebp + 0xc]
call fcn.1000296e
add esp, 0x24
push edi
push dword [0x10037e94]
push dword [ebp + 8]
call fcn.1000296e
add esp, 0xc
push esi
push dword [0x10037e9c]
push dword [ebp + 0x10]
call fcn.1000296e
add esp, 0xc
push dword [ebp + 0xc]
mov edi, 0x400
push dword [0x10037e90]
mov dword [0x10037ea4], 1
call fcn.1000afc1
pop ecx
pop ecx
test eax, eax
je 0x1000b3b3
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1000b39c
sub eax, ecx
push 0xf
push eax
push dword [ebp + 0xc]
call fcn.100012d0
add esp, 0xc
pop edi
pop esi
pop ecx
pop ebp
ret
Function at 0x1000b456
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x1000b4b4
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1000b4ab
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x1000b7bd
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push 0
push 1
lea eax, [esi + edi]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1000b7f5
add esi, eax
cmp esi, 2
jb 0x1000b7ed
cmp byte [esi + edi - 1], 0xa
jne 0x1000b7ed
cmp byte [esi + edi - 2], 0xd
je 0x1000b7fb
cmp esi, 0x800
jb 0x1000b7c3
or eax, 0xffffffff
pop esi
pop ebp
ret
mov byte [esi + edi - 2], 0
mov eax, esi
jmp 0x1000b7f8

Function at 0x1000b868
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
call fcn.10002636
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000b88e
push eax
call sub.WS2_32.dll_closesocket
jmp 0x1000b8e2
push 2
pop eax
push dword [ebp + 8]
mov word [ebp - 0x10], ax
call sub.WS2_32.dll_htons
mov word [ebp - 0xe], ax
push 0x10
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 0xc], 0x100007f
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1000b8bd
push esi
jmp 0x1000b887
push 0x78
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1000b8ba
push dword [ebp + 0xc]
push esi
call fcn.1000b724
push eax
push 0x1000b804
call fcn.1000aea9
add esp, 0x10
pop esi
leave
ret
Function at 0x1000bac2
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, eax
xor edx, edx
push 3
lea eax, [edi + 2]
pop ebx
div ebx
mov ecx, dword [ebp + 0x10]
shl eax, 2
inc eax
cmp dword [ecx], eax
jae 0x1000baec
push 6
mov dword [ecx], eax
pop eax
jmp 0x1000bbce
xor edx, edx
push 3
mov eax, edi
pop ebx
div ebx
mov ecx, dword [ebp + 0xc]
xor edx, edx
imul eax, eax, 3
test eax, eax
jbe 0x1000bb6b
dec eax
push ebx
pop edi
div edi
mov edi, eax
inc edi
mov edx, edi
imul edx, edx, 3
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi + 1]
movzx ebx, byte [esi]
shr eax, 4
shl ebx, 4
add eax, ebx
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
movzx eax, byte [esi + 2]
movzx ebx, byte [esi + 1]
shr eax, 6
lea eax, [eax + ebx*4]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
movzx eax, byte [esi + 2]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
add esi, 3
dec edi
jne 0x1000bb0e
mov edi, dword [ebp + 8]
cmp edx, edi
jae 0x1000bbc1
movzx eax, byte [esi]
inc edx
cmp edx, edi
jae 0x1000bb7d
movzx esi, byte [esi + 1]
jmp 0x1000bb7f
xor esi, esi
mov ebx, eax
shr ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], bl
shl eax, 4
mov ebx, esi
shr ebx, 4
add ebx, eax
and ebx, 0x3f
mov al, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
cmp edx, edi
jae 0x1000bbb7
and esi, 0xf
movsx eax, byte [esi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x1000bbba
push 0x3d
pop eax
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov eax, dword [ebp + 0x10]
mov byte [ecx], 0
sub ecx, dword [ebp + 0xc]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret