joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44aed0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4780f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046b447
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00470adf
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047203e
test eax, eax
je 0x44afec
mov ecx, dword [esp + 0x3c]
call fcn.00470b0c
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44afb0
push edi
mov ecx, esi
call fcn.0046e177
mov ecx, esi
call fcn.0044b150
cmp dword [esp + 0x38], 1
jne 0x44afe5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046e2b2
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44da10
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44da43
push esi
call fcn.00450b20
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44da3c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44dac9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44dab2
mov eax, dword [esi + 8]
test eax, eax
je 0x44da67
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44daae
cmp eax, 2
je 0x44dab2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44da5a
cmp eax, 3
je 0x44da8d
cmp eax, 1
jne 0x44da5a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44da5a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44da5a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044daf0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44dad8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044daf0
add esp, 4
pop esi
ret

Function at 0x46c23c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46c274
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046a2c9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046a2a1
jmp 0x46c280
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46d931
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46d973
call fcn.00473424
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46d973
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46d96a
xor eax, eax
jmp 0x46d97b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046d981
pop edi
pop esi
pop ebx
ret 4

Function at 0x473954
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x473982
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4739a0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004738ba
jmp 0x4739a0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4739a0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004738ba
test edi, edi
mov eax, edi
jne 0x47398a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4de7e9
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1da75e8
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x4de869
arpl word [edx + esi], si
sti
xchg byte [0x19011225], bh
ja 0x4de825
call 0x49aa743c
xchg byte [edx - 0x4fe4dbd5], dh
in al, dx
invalid
cmpsb byte [esi], byte es:[edi]
invalid
pop esp
mov fs, word [edx - 0x17d69105]
jae 0x4de805
cmpsb byte [esi], byte es:[edi]
lodsb al, byte [esi]
and eax, 0x16a8f107
scasd eax, dword es:[edi]
pop ebx
pop ss
jl 0x4de8a5
mov edx, 0x8123adf4
rcr dword [eax - 0x495e4d6d], 1
outsd dx, dword [esi]
invalid
lahf
push ecx
push esi
rcl dword [edx - 0x488bb1e3], cl
inc byte [ebx + 0x15d913f2]
pop es
jo 0x4de839
salc
dec eax
test eax, 0x8aacb907
into
sbb dword [eax + edx*2 + 0x4b], ebx
in eax, 0x84
shl cl, 0x53
loope 0x4de8df
and byte fs:[edi - 0x6c], bl
and byte fs:[edi - 0x6c], bl
mov esp, 0x425005e5
nop
xor byte [esi], 0xbc
xor byte [esi], 0xbc
enter 0x37da, 0xfffffffffffffff7
fbstp tbyte [esi]
inc edi
fstp dword [edi - 0x9552f08]
pop eax
jp 0x4de88d
clc
shr byte [edx - 0x1e85a70a], 1
scasd eax, dword es:[edi]
mov ch, 0x6a
mov edx, fs
out 0xc4, al
mov cl, al
sbb esp, dword [eax - 0x6418c6c7]
loop 0x4de898
les ecx, [edx + 0x39a01bc8]
cmp edi, esp
wait
movsb byte es:[edi], byte [esi]
imul edx, dword [edi], 0x57
jne 0x4de8cf
and cl, bh
int1
int1
cmp byte [ecx], dl
add byte [ebp - 0x744a6e4], dh
xor eax, eax
xchg ebp, eax
sub al, 0x86
or bl, ah
movsb byte es:[edi], byte [esi]
aad 0xe2
inc eax
insb byte es:[edi], dx
stc
mov byte [ebx], cl
xchg esp, eax
sub edi, 0x28
sar byte [edx - 0x3e], cl
sub dl, dl
jp 0x4de8a5
jbe 0x4de8d0
loope 0x4de88a
add dword [edi], 0xffffffe2
jg 0x4de8b0
hlt
Function at 0x10001670
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x10001697
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push 0
push 0x10031b50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x100038a0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1007224c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10003905
call dword [sym.imp.KERNEL32.dll_GetLastError]
push section..data
push eax
lea ecx, [ebp - 0x10]
call fcn.10002330
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], str.D:ProgrammsLibrares_boost_boost_asiodetailimplwin_tss_ptr.ipp
mov dword [ebp - 0x1c], str.win_tss_ptr_create
mov dword [ebp - 0x18], 0x2e
mov dword [ebp - 0x14], 0x1a
test al, 1
je 0x10003905
cmp eax, 1
jne 0x10003916
cmp dword [ebp - 0x10], 0
setne al
test al, al
jne 0x10003916
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1003e0d6
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push 0x1005e364
lea eax, [ebp - 0x10]
push eax
call fcn.10002b50
int3
Function at 0x1000af80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005b435
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1007224c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [edi + 4]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], edi
test al, 1
jne 0x1000afeb
push dword [0x10074ab0]
and eax, 0xfffffffc
mov esi, dword [eax + 8]
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1000afeb
nop dword [eax]
cmp dword [eax], esi
je 0x1000b006
mov eax, dword [eax + 8]
test eax, eax
jne 0x1000afe0
push dword [0x10074ab0]
lea eax, [edi + 1]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1000b072
mov eax, dword [eax + 4]
jmp 0x1000b074
cmp dword [eax + 4], 0
je 0x1000afeb
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
mov dword [ebx], 0
mov dword [ebp - 4], 0
nop
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push eax
call fcn.10006dd0
add esp, 8
nop
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1000b0fc
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
jmp 0x1000b0fc
xor eax, eax
push 1
push 0x28
push eax
push dword [ebp - 0x1c]
call fcn.10006d20
mov edx, eax
add esp, 0x10
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0x10020e90
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x1c], 0
mov eax, dword [ebx]
mov dword [edx + 0x20], eax
mov dword [ebx], 0
mov ecx, dword [edi + 4]
mov eax, ecx
and ecx, 3
and eax, 0xfffffffc
shr ecx, 1
push ecx
push edx
mov ecx, dword [eax + 8]
call fcn.1002cb50
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 7
call fcn.1002ebe0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003e0d6
mov esp, ebp
pop ebp
ret 4
Function at 0x10018ec0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005b9ce
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1007224c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x34], edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [edi], vtable.boost::asio::detail::win_iocp_io_context.0
mov dword [ebp - 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0xffffffff
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
lea ecx, [edi + 0x38]
mov byte [ebp - 4], 3
mov dword [edi + 0x34], 0
call fcn.100190d0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], esi
mov dword [edi + 0x60], 0
or eax, 0xffffffff
mov byte [ebp - 4], 6
test esi, esi
cmovns eax, esi
push eax
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x10018ff6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push section..data
push eax
lea ecx, [ebp - 0x1c]
call fcn.10002330
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], str.D:ProgrammsLibrares_boost_boost_asiodetailimplwin_iocp_io_context.ipp
mov dword [ebp - 0x2c], str.win_iocp_io_context
mov dword [ebp - 0x28], 0x67
mov dword [ebp - 0x24], 0x1a
test al, 1
je 0x10018ff6
cmp eax, 1
jne 0x100190b6
cmp dword [ebp - 0x1c], 0
setne al
test al, al
jne 0x100190b6
cmp byte [ebp + 0x10], 0
je 0x10019097
lea eax, [edi + 0x18]
lock inc dword [eax]
push 0xc
call fcn.1003dd7e
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 7
test esi, esi
je 0x10019072
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
push 0x10
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.1003dd7e
add esp, 4
mov dword [ebp - 0x38], eax
test eax, eax
je 0x10019065
xorps xmm0, xmm0
mov ecx, esi
push 0
movups xmmword [eax], xmm0
push eax
mov dword [eax], vtable.boost::asio::detail::win_thread::func_struct_boost::asio::detail::win_iocp_io_context::thread_function_.0
mov dword [eax + 0xc], edi
call fcn.10031e60
jmp 0x10019074
xor eax, eax
mov ecx, esi
push eax
push eax
call fcn.10031e60
jmp 0x10019074
xor esi, esi
mov eax, dword [edi + 0x60]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10019094
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push dword [ebp - 0x20]
call fcn.1003ddae
add esp, 8
mov dword [edi + 0x60], esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003e0d6
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x30]
push eax
push str.iocp
lea eax, [ebp - 0x1c]
push eax
call fcn.10002b50
int3
Function at 0x1001d210
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push dword [0x10074ab0]
mov esi, ecx
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1001d330
cmp dword [eax], esi
je 0x1001d246
mov eax, dword [eax + 8]
test eax, eax
jne 0x1001d236
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [eax + 4]
test esi, esi
je 0x1001d330
mov eax, dword [esi + 0x28]
sub eax, 0
je 0x1001d2f6
sub eax, 1
jne 0x1001d330
mov dword [esi + 0x28], 2
lea eax, [ebp - 0x10]
add esi, 0x2c
push esi
push eax
call fcn.1003c439
lea eax, [ebp - 0x10]
mov dword [ebp - 0x24], vtable.boost::asio::multiple_exceptions.0
push eax
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x20], xmm0
call fcn.1003c439
lea eax, [ebp - 0x10]
push eax
call fcn.1003c561
lea eax, [ebp - 8]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 8], xmm0
call fcn.1003c476
push 0x1006faf4
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
call fcn.1003c450
lea eax, [ebp - 0x18]
push eax
call fcn.1003c561
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
call fcn.1003f211
lea eax, [ebp - 8]
push eax
push esi
call fcn.1003c429
lea eax, [ebp - 8]
push eax
call fcn.1003c561
add esp, 0x38
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov dword [esi + 0x28], 1
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 8], xmm0
call fcn.1003c476
lea eax, [ebp - 8]
push eax
call fcn.1003c485
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0x2c]
push eax
call fcn.1003c429
lea eax, [ebp - 8]
push eax
call fcn.1003c561
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001dee0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1007224c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
push edi
mov edi, dword [ebp + 0x14]
cmp esi, 0xffffffff
je 0x1001e0c6
cmp byte [ebp + 0x10], 0
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
je 0x1001df4e
mov al, byte [ecx]
test al, 8
je 0x1001df4e
or al, 8
xor edx, edx
push 4
mov byte [ecx], al
lea eax, [ebp - 8]
push eax
push 0x80
push 0xffff
push esi
mov dword [ebp - 8], edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1001df4e
call ebx
push section..data
push eax
lea ecx, [ebp - 0x14]
call fcn.10002330
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 8], eax
test eax, eax
jne 0x1001df77
xorps xmm0, xmm0
movq qword [edi], xmm0
pop ebx
mov dword [edi + 8], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003e0d6
mov esp, ebp
pop ebp
ret
call ebx
push section..data
push eax
lea ecx, [ebp - 0x14]
call fcn.10002330
movq xmm0, qword [eax]
movq qword [edi], xmm0
mov eax, dword [eax + 8]
mov dword [edi + 8], eax
mov eax, dword [0x10072008]
mov ebx, dword [0x1007200c]
cmp eax, 0x257edfd1
jne 0x1001dfaf
cmp ebx, 0xb2ab117a
je 0x1001dfbe
cmp eax, 0x257edfd0
jne 0x1001dfc2
cmp ebx, 0xb2ab117a
jne 0x1001dfc2
mov al, 1
jmp 0x1001dfdc
mov eax, dword [section..data]
mov ecx, section..data
push 0x2733
mov eax, dword [eax + 0x18]
call eax
mov ebx, dword [0x1007200c]
movzx eax, al
add eax, 2
mov dword [ebp - 0x14], 0x2733
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 0x10], 0x10072000
call fcn.1001a4a0
add esp, 8
test al, al
jne 0x1001e07b
mov eax, dword [0x10072008]
cmp eax, 0x257edfd1
jne 0x1001e018
cmp ebx, 0xb2ab117a
je 0x1001e027
cmp eax, 0x257edfd0
jne 0x1001e02b
cmp ebx, 0xb2ab117a
jne 0x1001e02b
mov al, 1
jmp 0x1001e03f
mov eax, dword [section..data]
mov ecx, section..data
push 0x4d5
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
add eax, 2
mov dword [ebp - 0x14], 0x4d5
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 0x10], 0x10072000
call fcn.1001a4a0
add esp, 8
test al, al
jne 0x1001e07b
mov eax, dword [ebp - 8]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003e0d6
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 0x18]
push esi
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
test esi, esi
setne al
movzx eax, al
push eax
push edi
call fcn.10025d30
add esp, 8
mov eax, esi
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003e0d6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.1003e0d6
mov esp, ebp
pop ebp
ret
Function at 0x10021ea0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005be1d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1007224c]
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 - 0x20], ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x1c]
cmp dword [eax], 0xffffffff
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
je 0x10021f55
mov ecx, dword [0x10072068]
mov eax, dword [0x1007206c]
cmp ecx, 0x257edfd1
jne 0x10021f08
cmp eax, 0xb2ab117a
je 0x10021f17
cmp ecx, 0x257edfd0
jne 0x10021f1b
cmp eax, 0xb2ab117a
jne 0x10021f1b
mov al, 1
jmp 0x10021f2c
mov eax, dword [0x10072060]
mov ecx, 0x10072060
push 1
mov eax, dword [eax + 0x18]
call eax
mov dword [esi], 1
mov dword [esi + 4], 0x10072060
movzx ecx, al
add ecx, 2
mov dword [esi + 8], ecx
movq xmm0, qword [esi]
movq qword [edi], xmm0
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
jmp 0x10022061
push 1
push 0
push 0
push ebx
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10021f99
cmp dword [ebp - 0x18], 0x17
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
jne 0x10021fbe
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x1b
push 0x29
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
jmp 0x10021fbe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push section..data
push eax
lea ecx, [ebp - 0x30]
call fcn.10002330
or ebx, 0xffffffff
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
cmp ebx, 0xffffffff
jne 0x10021fdd
movq xmm0, qword [esi]
movq qword [edi], xmm0
mov eax, dword [esi + 8]
jmp 0x1002205e
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x3c]
push esi
push ebx
push eax
mov ecx, dword [ecx + 4]
call fcn.1002e510
mov ecx, dword [eax + 8]
test cl, 1
je 0x10022018
cmp ecx, 1
jne 0x10022000
cmp dword [eax], 0
je 0x10022018
movq xmm0, qword [esi]
lea ecx, [ebp - 0x18]
movq qword [edi], xmm0
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
call fcn.1001a190
jmp 0x10022061
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0xffffffff
mov dword [eax], ebx
sub ecx, 1
je 0x1002203d
sub ecx, 1
je 0x10022037
mov byte [eax + 4], 0
jmp 0x10022041
mov byte [eax + 4], 0x20
jmp 0x10022041
mov byte [eax + 4], 0x10
push dword [ebp - 0x1c]
lea ecx, [eax + 8]
push 0
call fcn.100117e0
xorps xmm0, xmm0
xor eax, eax
movq qword [esi], xmm0
mov dword [esi + 8], eax
movq qword [edi], xmm0
mov dword [edi + 8], eax
mov eax, edi
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.1003e0d6
mov esp, ebp
pop ebp
ret 0x18
Function at 0x10023880
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
jne 0x10023939
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
cmp edi, 4
jb 0x1002391a
mov ecx, eax
sub ecx, ebx
mov dword [ebp - 4], ecx
nop word [eax + eax]
movzx esi, byte [ecx + ebx + 2]
movzx ecx, byte [eax + 3]
movzx edx, byte [ebx + 3]
shl ecx, 8
or esi, ecx
shl edx, 8
movzx ecx, byte [eax]
shl esi, 0x10
or esi, ecx
movzx ecx, byte [eax + 1]
and ecx, 0xffdfdfdf
and esi, 0xdfdfdfdf
shl ecx, 8
or esi, ecx
movzx ecx, byte [ebx + 2]
or edx, ecx
movzx ecx, byte [ebx]
shl edx, 0x10
or edx, ecx
movzx ecx, byte [ebx + 1]
and ecx, 0xffdfdfdf
and edx, 0xdfdfdfdf
shl ecx, 8
or edx, ecx
cmp edx, esi
jne 0x10023939
mov ecx, dword [ebp - 4]
sub edi, 4
add eax, 4
add ebx, 4
cmp edi, 4
jae 0x100238b0
test edi, edi
je 0x10023930
sub ebx, eax
mov cl, byte [ebx + eax]
xor cl, byte [eax]
test cl, 0xdf
jne 0x10023939
inc eax
sub edi, 1
jne 0x10023920
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret