joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1014ac10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101fb3c0
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x10252964]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xac], ecx
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, dword [esi + 4]
mov edx, edi
mov ecx, dword [esi]
sub edx, ecx
cmp edx, 0x400
jbe 0x1014ac63
lea edi, [ecx + 0x400]
jmp 0x1014aca1
jae 0x1014aca4
mov eax, dword [esi + 8]
sub eax, ecx
cmp eax, 0x400
jae 0x1014ac89
lea eax, [ebp - 0xa5]
mov ecx, esi
push eax
push 0x400
call fcn.100c1b10
mov edi, dword [esi + 4]
jmp 0x1014aca4
mov ecx, 0x400
mov eax, edi
sub ecx, edx
push ecx
push 0
push eax
lea edi, [eax + ecx]
call fcn.101d82a0
add esp, 0xc
mov dword [esi + 4], edi
mov ecx, dword [esi]
sub edi, ecx
cmp dword [ebx + 0x18], 0x10
mov dword [ebp - 0x14], edi
lea edi, [ebx + 4]
mov dword [ebp - 0x18], 0
mov eax, edi
jb 0x1014acbf
mov eax, dword [edi]
lea edx, [ebp - 0x14]
push edx
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0
push eax
mov eax, dword [ebp - 0xac]
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
cmp ebx, 0xea
jne 0x1014ad14
push dword [ebp - 0x14]
mov ecx, esi
call fcn.100c2cd0
cmp dword [edi + 0x14], 0x10
jb 0x1014acf6
mov edi, dword [edi]
lea eax, [ebp - 0x14]
push eax
push dword [esi]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xac]
push 0
push edi
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test ebx, ebx
jne 0x1014ad2a
cmp dword [ebp - 0x18], 3
jne 0x1014ad4f
push dword [ebp - 0x14]
mov ecx, esi
call fcn.100c2cd0
jmp 0x1014ad2f
mov eax, dword [esi]
mov dword [esi + 4], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101c1860
mov esp, ebp
pop ebp
ret 8
push 0x8c
lea ecx, [ebp - 0xa4]
call fcn.1007e350
lea ecx, [ebp - 0xa4]
call fcn.100dd480
lea eax, [ebp - 0xa4]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x138]
call fcn.100dd1c0
push 0x10234538
lea eax, [ebp - 0x138]
push eax
call fcn.101d78f7
int3
Function at 0x1014cbc0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov eax, dword [0x10252964]
xor eax, esp
mov dword [esp + 4], eax
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
add edx, 4
mov dword [esp], eax
cmp dword [edx + 0x14], 0x10
jb 0x1014cbe4
mov edx, dword [edx]
push 4
lea eax, [esp + 4]
push eax
push 4
push 0
push edx
push dword [ecx + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.101c1860
add esp, 8
ret 8

Function at 0x1014cde0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push edi
mov edi, dword [esp + 0x18]
xor cl, cl
mov eax, edi
mov bh, 1
mov dword [esp + 8], eax
test edi, edi
je 0x1014ce3c
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
nop
movzx edx, bh
lea esi, [esi + 1]
inc bh
mov bl, byte [edx + ebp]
add cl, bl
mov byte [esp + 0x20], cl
movzx ecx, cl
mov al, byte [ecx + ebp]
mov byte [edx + ebp], al
mov byte [ecx + ebp], bl
movzx ecx, byte [edx + ebp]
add cl, bl
movzx ecx, cl
movzx ecx, byte [ecx + ebp]
xor byte [esi - 1], cl
mov cl, byte [esp + 0x20]
sub edi, 1
jne 0x1014ce00
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret

Function at 0x1014ceb0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [ecx]
push ebp
mov ebp, dword [ecx + 8]
push esi
mov esi, dword [esp + 0x24]
push edi
movzx edi, word [ebp + ebx*4 + 0x14]
movzx eax, word [ebp + ebx*4 + 0x10]
movzx ecx, word [ebp + ebx*4 + 0x18]
shl edi, 0x10
or edi, eax
mov dword [esp + 0x20], ebx
movzx eax, word [ebp + ebx*4 + 0x1c]
xor edi, dword [esi]
shl eax, 0x10
or eax, ecx
lea ecx, [ebx - 1]
xor eax, edi
mov dword [esp + 0x18], ecx
xor eax, dword [esi + 4]
test ecx, ecx
js 0x1014cf9e
nop dword [eax + eax]
movzx ebx, word [ebp + ecx*4]
mov edx, eax
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
mov si, dx
mov dword [esp + 0x14], ecx
shr si, 8
movzx ecx, si
xor dword [esp + 0x14], ecx
movzx ecx, dl
mov edx, dword [esp + 0x14]
xor edx, ecx
mov word [esp + 0x12], si
mov ecx, eax
mov dword [esp + 0x14], edx
shr ecx, 8
inc dl
xor cl, bl
xor cl, al
add cl, dl
rol cl, 2
mov dl, cl
mov dword [esp + 0x1c], ecx
add dl, byte [esp + 0x14]
rol dl, 2
lea ecx, [edx + 1]
add cl, byte [esp + 0x12]
rol cl, 2
movzx esi, cl
shl esi, 8
movzx ecx, dl
mov edx, dword [esp + 0x1c]
or esi, ecx
shl esi, 8
movzx ecx, dl
or esi, ecx
lea ecx, [edx + eax]
shl esi, 8
rol cl, 2
movzx ecx, cl
or esi, ecx
mov ecx, dword [esp + 0x18]
xor esi, edi
sub ecx, 1
mov edi, eax
mov dword [esp + 0x18], ecx
mov eax, esi
jns 0x1014cf00
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
movzx edx, word [ebp + ebx*4 + 0xc]
movzx ecx, word [ebp + ebx*4 + 8]
shl edx, 0x10
or edx, ecx
movzx ecx, word [ebp + ebx*4]
xor edx, eax
xor edi, edx
movzx edx, word [ebp + ebx*4 + 4]
shl edx, 0x10
or edx, ecx
mov dword [esi + 4], edi
pop edi
xor edx, eax
mov dword [esi], edx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x1014cfe0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
mov ebp, dword [eax + 4]
mov esi, ecx
mov ecx, dword [eax]
xor ebx, ebx
push edi
xor edi, edi
mov dword [esp + 0x10], ecx
mov eax, dword [esi]
cdq
sub eax, edx
sar eax, 1
add eax, 4
test eax, eax
jle 0x1014d0c2
nop dword [eax]
mov eax, ebp
xor eax, ebx
mov dword [esp + 0x1c], eax
mov eax, ecx
shr eax, 0x10
mov ebx, eax
movzx edx, al
shr ecx, 8
xor cl, byte [esp + 0x10]
shr ebx, 8
xor edx, ebx
inc bl
mov al, dl
xor al, byte [esp + 0x1c]
inc al
add cl, al
mov eax, dword [esp + 0x1c]
rol cl, 2
mov dword [esp + 0x14], ecx
mov ecx, eax
shr eax, 0x10
shr ecx, 8
xor cl, byte [esp + 0x14]
add cl, dl
mov dword [esp + 0x1c], eax
shr eax, 8
rol cl, 2
xor al, cl
add al, bl
mov ebx, dword [esp + 0x10]
rol al, 2
movzx edx, al
movzx eax, cl
mov ecx, dword [esp + 0x14]
shl edx, 8
or edx, eax
movzx eax, cl
xor cl, byte [esp + 0x1c]
add cl, byte [esp + 0x10]
shl edx, 8
or edx, eax
rol cl, 2
movzx eax, cl
shl edx, 8
or edx, eax
mov eax, dword [esi + 8]
movzx ecx, dx
mov dword [eax + edi*8], ecx
mov ecx, edx
mov eax, dword [esi + 8]
shr ecx, 0x10
mov dword [eax + edi*8 + 4], ecx
mov ecx, ebp
mov eax, dword [esi]
mov ebp, edx
cdq
inc edi
sub eax, edx
mov dword [esp + 0x10], ecx
sar eax, 1
add eax, 4
cmp edi, eax
jl 0x1014d010
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x1014d120
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [esp + 0x38]
mov eax, ebp
push esi
shr eax, 3
mov esi, ecx
and ebp, 7
mov dword [esp + 0x10], esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x40], ebp
je 0x1014d15e
sub eax, 1
mov dword [esp + 0x10], eax
jne 0x1014d15e
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov esi, dword [edx]
mov edi, dword [edx + 4]
jmp 0x1014d2c0
mov ebx, dword [esp + 0x3c]
test eax, eax
je 0x1014d2b0
mov dword [esp + 0x20], ebx
jmp 0x1014d174
mov esi, dword [esp + 0x14]
mov edi, dword [esi]
mov esi, dword [esi + 8]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 0x28], ecx
movzx ebp, word [esi + edi*4 + 0x14]
movzx eax, word [esi + edi*4 + 0x10]
shl ebp, 0x10
or ebp, eax
mov dword [esp + 0x2c], edx
movzx eax, word [esi + edi*4 + 0x1c]
xor ebp, ecx
movzx ecx, word [esi + edi*4 + 0x18]
shl eax, 0x10
or eax, ecx
mov dword [esp + 0x24], edi
xor eax, edx
mov dword [esp + 0x1c], esi
lea ecx, [edi - 1]
mov dword [esp + 0x3c], ebp
xor eax, ebp
mov dword [esp + 0x18], ecx
test ecx, ecx
js 0x1014d255
movzx ebx, word [esi + ecx*4]
mov ecx, eax
shr ecx, 0x10
mov esi, ebx
mov bp, cx
shr esi, 8
movzx ecx, cl
xor esi, ecx
shr bp, 8
movzx ecx, bp
xor esi, ecx
movzx edx, ax
movzx ecx, bl
shr edx, 8
xor edx, ecx
movzx ebx, al
movzx ecx, al
xor ecx, edx
inc ecx
add ecx, esi
rol cl, 2
movzx edi, cl
add ebx, edi
rol bl, 2
lea ecx, [edi + esi]
rol cl, 2
movzx edx, cl
movzx ecx, bp
mov ebp, eax
inc ecx
add ecx, edx
rol cl, 2
movzx esi, cl
shl esi, 8
or esi, edx
movzx ecx, bl
shl esi, 8
or esi, edi
shl esi, 8
or esi, ecx
mov ecx, dword [esp + 0x18]
xor esi, dword [esp + 0x3c]
sub ecx, 1
mov eax, esi
mov dword [esp + 0x3c], ebp
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
jns 0x1014d1c5
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
movzx edx, word [esi + edi*4 + 0xc]
movzx ecx, word [esi + edi*4 + 8]
shl edx, 0x10
or edx, ecx
movzx ecx, word [esi + edi*4]
xor edx, eax
xor ebp, edx
movzx edx, word [esi + edi*4 + 4]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
shl edx, 0x10
or edx, ecx
mov dword [ebx + 4], ebp
xor edx, eax
mov dword [ebx], edx
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
xor dword [ebx], eax
mov eax, dword [edx + 4]
xor dword [ebx + 4], eax
add ebx, 8
sub dword [esp + 0x10], 1
mov dword [esp + 0x20], ebx
mov dword [edx], esi
mov dword [edx + 4], edi
jne 0x1014d170
mov ebp, dword [esp + 0x40]
jmp 0x1014d2bc
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
test ebp, ebp
je 0x1014d304
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x14]
push ebx
mov dword [edx], eax
call fcn.1014ceb0
test ebp, ebp
je 0x1014d2f5
lea edx, [ebx + 8]
nop dword [eax + eax]
mov cl, byte [edx]
lea edx, [edx + 1]
mov al, byte [edx - 9]
xor al, cl
mov byte [edx - 1], al
mov byte [edx - 9], cl
sub ebp, 1
jne 0x1014d2e0
mov ecx, dword [esp + 0x14]
push ebx
call fcn.1014ceb0
xor dword [ebx], esi
xor dword [ebx + 4], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc
Function at 0x101671c0
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0xd0010086
jg 0x1016721f
je 0x10167219
add eax, 0x2ffefffe
cmp eax, 0xf
ja case.0x101672a2.803471260
movzx eax, byte [eax + 0x1016794c]
jmp dword [eax*4 + 0x10167928]
mov eax, 0xf9
ret
mov eax, 0xfa
ret
mov eax, 0xfb
ret
mov eax, 0xfc
ret
mov eax, 0xfd
ret
mov eax, 0xfe
ret
mov eax, 0xff
ret
mov eax, pe_nt_image_headers32
ret
mov eax, 0x101
ret
test eax, eax
jg 0x10167335
je 0x10167332
cmp eax, 0xd01c0061
jg 0x1016727a
je 0x10167274
cmp eax, 0xd0100089
jg 0x10167263
je 0x1016725d
cmp eax, 0xd0020001
je 0x10167257
cmp eax, 0xd0100088
jne case.0x101672a2.803471260
mov eax, 0x103
ret
mov eax, 0x102
ret
mov eax, 0x104
ret
cmp eax, 0xd010008a
jne case.0x101672a2.803471260
mov eax, 0x105
ret
mov eax, 0x106
ret
cmp eax, 0xdc010009
jg 0x10167321
je 0x1016731b
add eax, 0x2fe3ff9e
cmp eax, 0xfe
ja case.0x101672a2.803471260
movzx eax, byte [eax + 0x101679ac]
jmp dword [eax*4 + 0x1016795c]
mov eax, 0x107
ret
mov eax, 0x108
ret
mov eax, 0x109
ret
mov eax, 0x10a
ret
mov eax, 0x10b
ret
mov eax, 0x10c
ret
mov eax, 0x10d
ret
mov eax, 0x10e
ret
mov eax, 0x10f
ret
mov eax, 0x110
ret
mov eax, 0x111
ret
mov eax, 0x112
ret
mov eax, 0x113
ret
mov eax, 0x114
ret
mov eax, 0x115
ret
mov eax, 0x116
ret
mov eax, 0x117
ret
mov eax, 0x118
ret
mov eax, 0x119
ret
mov eax, 0x11a
ret
cmp eax, 0xdc010200
jne case.0x101672a2.803471260
mov eax, 0x11b
ret
xor eax, eax
ret
dec eax
cmp eax, 0x30b
ja case.0x101672a2.803471260
movzx eax, byte [eax + 0x10167e90]
jmp dword [eax*4 + 0x10167aac]
mov eax, 0xd8ef
ret

Function at 0x10169550
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov dword [0x10264824], eax
mov eax, dword [esi + 0x14]
mov dword [0x10264820], eax
cmp dword [esi + 4], ebx
jne 0x101695fb
mov ebp, dword [esp + 0x14]
mov ecx, 0x2710
mov eax, 0xcccccccd
mul dword [esi + 0x18]
shr edx, 3
cmp edx, 0x3e8
jae 0x1016959d
mov edx, 0x3e8
jmp 0x101695a6
cmp edx, 0x2710
cmova edx, ecx
push edx
mov dword [0x10264828], edx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1026481c
push 0x24
push esi
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x101695fb
mov eax, dword [esi + 0x14]
cmp eax, dword [0x10264820]
jbe 0x101695e4
call edi
mov dword [0x10264824], eax
mov eax, dword [esi + 0x14]
mov dword [0x10264820], eax
jmp 0x101695f1
call edi
sub eax, dword [0x10264824]
cmp eax, dword [esi + 0x18]
ja 0x10169602
mov ecx, 0x2710
cmp dword [esi + 4], ebx
je 0x10169583
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
Function at 0x10169610
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x28
mov eax, dword [0x10252964]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push esi
mov esi, dword [esp + 0x34]
xorps xmm0, xmm0
push 0x20000
push 0
push 0
movups xmmword [esp + 0x14], xmm0
mov dword [esp + 0x34], 0
movups xmmword [esp + 0x24], xmm0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x10169661
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.101c1860
add esp, 0x28
ret
push edi
push 0x14
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x1016968d
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.101c1860
add esp, 0x28
ret
push 0x1026481c
push 0x24
lea eax, [esp + 0x14]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x10169747
mov eax, dword [esp + 0x10]
cmp eax, 4
je 0x10169727
cmp eax, 1
je 0x101696c1
cmp eax, 3
jne 0x10169747
push 3
lea eax, [esp + 0x10]
push eax
push edi
call fcn.10169550
add esp, 0xc
test al, al
je 0x10169747
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x10169727
push 2
lea eax, [esp + 0x10]
mov esi, 3
push eax
push edi
call fcn.10169550
add esp, 0xc
test al, al
jne 0x10169719
nop dword [eax]
test esi, esi
jle 0x10169719
push 2
lea eax, [esp + 0x10]
dec esi
push eax
push edi
call fcn.10169550
add esp, 0xc
test al, al
je 0x10169700
lea eax, [esp + 0xc]
push eax
push edi
call fcn.10169530
add esp, 8
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push edi
call esi
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.101c1860
add esp, 0x28
ret
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push edi
call esi
mov ecx, dword [esp + 0x30]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101c1860
add esp, 0x28
ret
Function at 0x1016a080
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ecx
mov edx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
cmp edi, 0xffffffff
jae 0x1016a1c4
mov ecx, dword [esp + 0x10]
cmp edi, 4
jb 0x1016a1c4
push ebx
push esi
mov al, byte [ecx]
test al, al
je 0x1016a1c2
movsx eax, al
cmp eax, 0x80
jae 0x1016a1c2
mov bh, byte [eax + 0x10057498]
cmp bh, 0xff
je 0x1016a1c2
movsx eax, byte [ecx + 1]
cmp eax, 0x80
jae 0x1016a1c2
mov al, byte [eax + 0x10057498]
mov byte [esp + 0xf], al
movsx eax, al
cmp eax, 0xffffffff
je 0x1016a1c2
mov bl, byte [ecx + 2]
mov byte [esp + 0x1c], bl
cmp bl, 0x3d
je 0x1016a116
movsx esi, bl
cmp esi, 0x80
jae 0x1016a1c2
cmp byte [esi + 0x10057498], 0xff
je 0x1016a1c2
mov bl, byte [ecx + 3]
sub edi, 4
add ecx, 4
mov byte [esp + 0xe], bl
cmp bl, 0x3d
mov bl, byte [esp + 0x1c]
je 0x1016a146
movsx esi, byte [esp + 0xe]
cmp esi, 0x80
jae 0x1016a1c2
cmp byte [esi + 0x10057498], 0xff
je 0x1016a1c2
sar eax, 4
and al, 3
shl bh, 2
or al, bh
mov byte [edx], al
inc edx
cmp bl, 0x3d
je 0x1016a1b9
movsx esi, bl
cmp esi, 0x80
jae 0x1016a16c
movsx eax, byte [esi + 0x10057498]
jmp 0x1016a16f
or eax, 0xffffffff
mov bl, byte [esp + 0xf]
sar eax, 2
and al, 0xf
shl bl, 4
or al, bl
mov byte [edx], al
inc edx
mov al, byte [esp + 0xe]
cmp al, 0x3d
je 0x1016a1b9
cmp esi, 0x80
jae 0x1016a198
mov bl, byte [esi + 0x10057498]
jmp 0x1016a19b
or bl, 0xff
movsx eax, al
cmp eax, 0x80
jae 0x1016a1ad
mov al, byte [eax + 0x10057498]
jmp 0x1016a1af
or al, 0xff
and al, 0x3f
shl bl, 6
or al, bl
mov byte [edx], al
inc edx
cmp edi, 4
jae 0x1016a0a2
pop esi
pop ebx
sub edx, dword [esp + 0xc]
mov eax, edx
pop edi
pop ecx
ret
Function at 0x1016a1d0
Capabilities:
Encode data using base64

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0x18]
mov eax, 0xaaaaaaab
lea ecx, [edi + 2]
mul ecx
mov ebx, edx
shr ebx, 1
shl ebx, 2
mov dword [esp + 0x18], ebx
cmp ebx, 0xbffffffd
ja 0x1016a312
cmp edi, 0xfffffffd
jae 0x1016a312
cmp dword [esp + 0x10], ebx
jb 0x1016a312
mov ecx, dword [esp + 0xc]
push ebp
xor ebp, ebp
push esi
mov esi, dword [esp + 0x1c]
cmp edi, 3
jb 0x1016a29c
mov eax, 0xaaaaaaab
mul edi
mov ebx, edx
shr ebx, 1
lea ebp, [ebx*4]
movzx eax, byte [esi]
sub edi, 3
shr eax, 2
movzx eax, byte [eax + 0x10057450]
mov byte [ecx], al
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
shr eax, 4
shl edx, 4
or edx, eax
movzx eax, byte [edx + 0x10057450]
mov byte [ecx + 1], al
movzx edx, byte [esi + 1]
movzx eax, byte [esi + 2]
and edx, 0xf
shr eax, 6
shl edx, 2
or edx, eax
movzx eax, byte [edx + 0x10057450]
mov byte [ecx + 2], al
movzx eax, byte [esi + 2]
add esi, 3
and eax, 0x3f
movzx eax, byte [eax + 0x10057450]
mov byte [ecx + 3], al
add ecx, 4
sub ebx, 1
jne 0x1016a231
mov ebx, dword [esp + 0x20]
test edi, edi
je 0x1016a2ff
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + 0x10057450]
mov byte [ecx], al
cmp edi, 1
jne 0x1016a2c9
movzx eax, byte [esi]
mov dl, 0x3d
and eax, 3
shl eax, 4
mov al, byte [eax + 0x10057450]
mov byte [ecx + 1], al
jmp 0x1016a2f2
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
shr eax, 4
shl edx, 4
or edx, eax
mov al, byte [edx + 0x10057450]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
and eax, 0xf
mov dl, byte [eax*4 + 0x10057450]
mov byte [ecx + 2], dl
mov byte [ecx + 3], 0x3d
add ecx, 4
add ebp, 4
lea eax, [ebx + 1]
cmp dword [esp + 0x18], eax
mov eax, ebp
jb 0x1016a30d
mov byte [ecx], 0
pop esi
pop ebp
pop edi
pop ebx
ret
pop edi
xor eax, eax
pop ebx
ret
Function at 0x1016b5b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101fe02d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x10252964]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
inc ebp
hlt
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ecx]
xor esi, esi
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
cmp byte [eax + 0xd], 0
jne 0x1016b650
mov esi, eax
nop dword [eax + eax]
cmp dword [edi + 0x14], 0x10
mov edx, edi
mov dword [ebp - 0x14], esi
jb 0x1016b60d
mov edx, dword [edi]
cmp dword [esi + 0x24], 0x10
lea ecx, [esi + 0x10]
jb 0x1016b619
mov ecx, dword [esi + 0x10]
push dword [edi + 0x10]
push edx
push dword [esi + 0x20]
push ecx
call fcn.10081260
shr eax, 0x1f
add esp, 0x10
test al, al
je 0x1016b638
mov esi, dword [esi + 8]
mov ecx, dword [ebp - 0x10]
jmp 0x1016b63f
mov ecx, esi
mov esi, dword [esi]
mov dword [ebp - 0x10], ecx
movzx eax, al
xor eax, 1
cmp byte [esi + 0xd], 0
mov dword [ebp - 0x20], eax
je 0x1016b600
mov esi, eax
cmp byte [ecx + 0xd], 0
jne 0x1016b6a2
cmp dword [ecx + 0x24], 0x10
lea edx, [ecx + 0x10]
jb 0x1016b662
mov edx, dword [ecx + 0x10]
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x1016b66c
mov eax, dword [edi]
push dword [ecx + 0x20]
push edx
push dword [edi + 0x10]
push eax
call fcn.10081260
shr eax, 0x1f
add esp, 0x10
test al, al
jne 0x1016b6a2
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x18]
cmp dword [eax + 4], 0x4924924
je 0x1016b76f
mov dword [ebp - 0x24], eax
push 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
call fcn.101c1316
mov edx, eax
add esp, 4
mov dword [edx + 0x20], 0
mov dword [edx + 0x24], 0
movups xmm0, xmmword [edi]
movups xmmword [edx + 0x10], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [edx + 0x20], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [edx + 0x28], 0
mov dword [edx + 0x2c], 0
mov eax, dword [edi + 0x18]
mov dword [edx + 0x28], eax
mov eax, dword [edi + 0x1c]
mov dword [edx + 0x2c], eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 0x28]
mov dword [edx + 0x34], ecx
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov word [edx + 0xc], 0
mov ecx, dword [ebp - 0x18]
push edx
push esi
push dword [ebp - 0x14]
call fcn.1007d500
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, ecx
mov byte [ecx + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
call fcn.1007e0b0
int3
Function at 0x10172980
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push 0
push dword [esp + 0x14]
mov esi, ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x10172a03
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
je 0x101729bb
mov eax, dword [esi + 0x14]
push 0
push 0
push 0x10044b20
push eax
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
je 0x101729f4
mov eax, dword [esi + 0x14]
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jns 0x101729e9
mov dword [esi + 0xc], 0x64
and dword [esi + 8], 0xfffffffd
mov dword [esi + 0x14], 0xffffffff
call fcn.100e14d0
mov dword [esi + 0xc], 0x66
or eax, 0xffffffff
pop esi
ret 0xc
Function at 0x10172a10
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x124
mov eax, dword [0x10252964]
xor eax, esp
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0x12c]
push ebx
push ebp
mov ebx, ecx
mov dword [esp + 0x10], eax
push esi
push edi
xor esi, esi
xor ebp, ebp
mov edi, dword [ebx + 0xb8]
test edi, edi
je 0x10172b7d
push 0xfc
lea eax, [esp + 0x38]
push ebp
push eax
call fcn.101d82a0
add esp, 0xc
mov dword [esp + 0x14], esi
test edi, edi
jle 0x10172b4a
mov ebp, dword [esp + 0x138]
mov eax, 2
mov dword [esp + 0x28], 0x1388
cmp edi, eax
mov dword [esp + 0x30], ebp
lea ecx, [ebp + 1]
mov dword [esp + 0x2c], 1
cmovb eax, edi
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov dword [esp + 0x10], eax
test eax, eax
jle 0x10172af8
lea eax, [esp + 0x2c]
push eax
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10172b29
push 0
push dword [esp + 0x144]
push dword [esp + 0x20]
push ebp
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jns 0x10172b42
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x10172b29
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax + 0x10]
mov eax, 0xfffffffe
jmp 0x10172b9f
jne 0x10172b29
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], 0
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 4
push eax
push 0x1007
push 0xffff
push ebp
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
js 0x10172b6b
mov eax, dword [esp + 0x14]
mov edi, dword [ebx + 0xb8]
add eax, 2
mov dword [esp + 0x14], eax
cmp eax, edi
jl 0x10172a6d
mov ebp, dword [esp + 0x10]
test esi, esi
jg 0x10172b9d
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax + 0x10]
test esi, esi
jns 0x10172b5e
mov dword [ebx + 0xc], 0x67
test ebp, ebp
jle 0x10172b98
test esi, esi
jne 0x10172b98
lea eax, [esi - 2]
jmp 0x10172b9f
mov eax, dword [ebx]
mov ecx, ebx
push 1
or esi, 0xffffffff
call dword [eax + 0x10]
mov ebp, dword [esp + 0x10]
jmp 0x10172b57
push 0
push dword [esp + 0x144]
push eax
push dword [esp + 0x144]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
jmp 0x10172b46
or eax, 0xffffffff
jmp 0x10172b9f
mov eax, esi
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101c1860
add esp, 0x124
ret 0xc