joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007aad
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 8], esi
call fcn.10006f9b
mov eax, dword [ebp + 8]
lea ebx, [esi + 0x20]
xor ecx, ecx
mov dword [esi], vtable.UDPStream.0
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], ecx
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
mov dword [ebp - 4], 0x10
call sub.WS2_32.dll_getsockname
mov eax, dword [ebp - 8]
lea edi, [esi + 0x40]
mov esi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ebx
lea edi, [eax + 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10007cf2
Capabilities:
Get socket status

Disassembly:
push 0x11c
mov eax, 0x100832ae
call fcn.1005825d
mov edi, ecx
xor esi, esi
cmp dword [edi], esi
jne 0x10007dd7
mov eax, dword [edi + 4]
push 0xfc
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push esi
push eax
mov dword [ebp - 0x114], 1
call fcn.1005b200
mov eax, dword [0x100ad6e0]
mov ebx, 0x3e8
cdq
add esp, 0xc
idiv ebx
mov dword [ebp - 0x120], eax
mov eax, dword [0x100ad6e0]
cdq
idiv ebx
imul eax, edx, 0x3e8
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x120]
push eax
push esi
push esi
lea eax, [ebp - 0x114]
push eax
push esi
call sub.WS2_32.dll_select
test eax, eax
je 0x10007dd7
cmp eax, 1
jne 0x10007dd4
push esi
push esi
push dword [edi + 4]
call sub.WS2_32.dll_accept
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10007dd4
push 0x18
call fcn.10057b2a
pop ecx
mov dword [ebp - 0x118], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x10007dac
push edi
push ebx
mov ecx, eax
call fcn.10007a2e
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x128]
mov dword [ebp - 0x118], esi
push eax
lea ecx, [edi + 8]
call fcn.10006e13
mov eax, dword [ebp - 0x118]
jmp 0x10007dd9
or dword [edi], 0xffffffff
xor eax, eax
call fcn.1005820c
ret

Function at 0x10007ddf
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0x4004667f
push dword [esi + 4]
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x10007e03
or dword [esi + 0xc], eax
xor eax, eax
jmp 0x10007e06
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x10008702
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x100ac040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x1000878d
mov eax, dword [esi + 4]
push ebx
push edi
push 0xfc
mov dword [ebp - 0x104], eax
xor edi, edi
xor ebx, ebx
lea eax, [ebp - 0x100]
push edi
inc ebx
push eax
mov dword [ebp - 0x108], ebx
call fcn.1005b200
add esp, 0xc
mov dword [ebp - 0x110], edi
lea eax, [ebp - 0x110]
mov dword [ebp - 0x10c], edi
push eax
push edi
push edi
lea eax, [ebp - 0x108]
push eax
push edi
call sub.WS2_32.dll_select
sub eax, edi
je 0x10008788
sub eax, ebx
je 0x1000877a
or dword [esi + 0xc], 0xffffffff
jmp 0x10008788
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
test eax, eax
jne 0x10008788
mov dword [esi + 0xc], ebx
mov eax, dword [esi + 0xc]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100581ea
leave
ret

Function at 0x100087b0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 0xf
jbe 0x100087c1
mov eax, dword [esi]
push eax
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x100087f2
cmp dword [esi + 0x14], 0xf
jbe 0x100087d4
mov esi, dword [esi]
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x100087e3
or eax, 0xffffffff
jmp 0x100087f2
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x100087f0
mov eax, dword [eax]
jmp 0x100087f2
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x10008829
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x100ac040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x10c], eax
cmp dword [edi + 0xc], 0
je 0x10008859
xor eax, eax
jmp 0x10008970
mov eax, dword [0x100ad6dc]
push esi
mov esi, ebx
test eax, eax
je 0x1000887b
mov ecx, dword [0x100ae020]
call sub.WINMM.dll_timeGetTime
mov ecx, eax
mov eax, dword [0x100ad6dc]
add ecx, eax
jmp 0x10008881
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x114], ecx
mov ecx, dword [ebp - 0x10c]
add ecx, ebx
cmp ebx, ecx
jae 0x1000896b
and dword [ebp - 0x110], 0
test eax, eax
je 0x100088c1
mov ecx, dword [0x100ae020]
call sub.WINMM.dll_timeGetTime
mov ecx, dword [ebp - 0x114]
sub ecx, eax
push 0
pop eax
cmovs ecx, eax
mov dword [ebp - 0x110], ecx
mov eax, dword [edi + 4]
push 0xfc
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x100]
push 0
push eax
mov dword [ebp - 0x108], 1
call fcn.1005b200
mov eax, dword [ebp - 0x110]
mov ecx, 0x3e8
cdq
add esp, 0xc
idiv ecx
xor ecx, ecx
mov dword [ebp - 0x11c], eax
imul eax, edx, 0x3e8
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x11c]
push eax
push ecx
push ecx
lea eax, [ebp - 0x108]
push eax
push ecx
call sub.WS2_32.dll_select
cmp eax, 1
jne 0x10008967
mov eax, dword [ebp - 0x10c]
push 0
add eax, ebx
sub eax, esi
push eax
push esi
push dword [edi + 4]
call sub.WS2_32.dll_recv
test eax, eax
je 0x1000895e
cmp eax, 0xffffffff
je 0x10008967
add esi, eax
mov eax, dword [ebp - 0x10c]
add eax, ebx
cmp esi, eax
jae 0x1000896b
mov eax, dword [0x100ad6dc]
jmp 0x10008897
mov dword [edi + 0xc], 1
jmp 0x1000896b
or dword [edi + 0xc], 0xffffffff
sub esi, ebx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.100581ea
leave
ret 8
Function at 0x100089c3
Capabilities:
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x100ac040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x54], 0
jne 0x10008b1f
mov eax, dword [0x100ad6d8]
test eax, eax
je 0x10008a04
mov ecx, dword [0x100ae020]
call sub.WINMM.dll_timeGetTime
mov ebx, eax
mov eax, dword [0x100ad6d8]
add ebx, eax
jmp 0x10008a0a
mov ebx, dword [ebp - 0x114]
xor edi, edi
test eax, eax
je 0x10008a25
mov ecx, dword [0x100ae020]
call sub.WINMM.dll_timeGetTime
mov edi, ebx
sub edi, eax
push 0
pop eax
cmovs edi, eax
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x100]
push 0xfc
push 0
push eax
mov dword [ebp - 0x108], 1
mov dword [ebp - 0x104], ecx
call fcn.1005b200
mov eax, edi
mov ecx, 0x3e8
cdq
add esp, 0xc
idiv ecx
xor ecx, ecx
mov dword [ebp - 0x11c], eax
imul eax, edx, 0x3e8
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x11c]
push eax
push ecx
push ecx
lea eax, [ebp - 0x108]
push eax
push ecx
call sub.WS2_32.dll_select
test eax, eax
je 0x10008b1f
cmp eax, 1
jne 0x10008b1b
or dword [ebp - 0x110], 0xffffffff
lea eax, [ebp - 0x110]
push eax
push 0x4004667f
push dword [esi + 4]
call sub.WS2_32.dll_ioctlsocket
test eax, eax
jne 0x10008b1b
lea eax, [ebp - 0x109]
push eax
push dword [ebp - 0x110]
lea edi, [esi + 8]
mov ecx, edi
call fcn.10007811
and dword [esi + 0x50], 0
lea eax, [ebp - 0x114]
push eax
lea eax, [esi + 0x30]
mov dword [ebp - 0x114], 0x10
push eax
push 0
push dword [ebp - 0x110]
push dword [edi]
push dword [esi + 4]
call sub.WS2_32.dll_recvfrom
cmp eax, 0xffffffff
jne 0x10008b03
mov eax, dword [0x100ad6d8]
jmp 0x10008a0a
lea ecx, [ebp - 0x109]
push ecx
push eax
mov ecx, edi
call fcn.10007811
mov ecx, esi
call fcn.10008800
jmp 0x10008b21
or dword [esi + 0x54], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100581ea
leave
ret

Function at 0x10008b59
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x54], 0
je 0x10008b69
xor eax, eax
jmp 0x10008bc1
push edi
mov edi, dword [esi + 0x18]
push dword [ebp + 8]
sub edi, dword [esi + 0x14]
call sub.WS2_32.dll_htonl
mov dword [esi + 0x44], eax
mov eax, dword [ebp + 0xc]
test eax, eax
movzx eax, ax
jne 0x10008b89
movzx eax, word [esi + 0x22]
push eax
call sub.WS2_32.dll_htons
push 0x10
mov word [esi + 0x42], ax
lea eax, [esi + 0x40]
push eax
push 0
push edi
push dword [esi + 0x14]
push dword [esi + 4]
call sub.WS2_32.dll_sendto
cmp eax, edi
je 0x10008bb3
or eax, 0xffffffff
mov dword [esi + 0x54], eax
jmp 0x10008bc0
mov ecx, dword [esi + 0x14]
cmp ecx, dword [esi + 0x18]
je 0x10008bbe
mov dword [esi + 0x18], ecx
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x10008d56
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
jne 0x10008d7a
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x10008d7c
or dword [esi + 0xc], eax
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x1000a00f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
test eax, eax
jg 0x1000a033
jl 0x1000a02a
test ebx, ebx
jne 0x1000a033
xor eax, eax
xor edx, edx
jmp 0x1000a0f0
cmp dword [esi + 0x38], 0
je 0x1000a048
push eax
push ebx
push dword [ebp + 8]
call fcn.1000a0f6
jmp 0x1000a0f0
mov eax, dword [esi + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x1000a08b
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x1000a08b
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [ebp + 8]
cmovb esi, dword [eax]
push esi
push ecx
push edi
call fcn.1005a7a0
mov ecx, dword [ebp - 4]
add edi, esi
mov dword [ebp + 8], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x1000a091
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [esi + 0x4c], 0
je 0x1000a0e5
mov ecx, esi
call fcn.1000927e
mov ecx, dword [ebp + 8]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x1000a0d0
push dword [esi + 0x4c]
push eax
push 1
push ecx
call fcn.100638af
mov ecx, dword [ebp + 8]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp + 8], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x1000a0e5
jmp 0x1000a0a3
test edx, edx
je 0x1000a0e5
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.100638af
add esp, 0x10
sub edi, eax
mov edx, dword [ebp + 0x10]
sub ebx, edi
mov eax, ebx
sbb edx, 0
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10017c75
Capabilities:
Rebuild import table

Disassembly:
push 0xc
mov eax, 0x10083ffc
call fcn.1005822a
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 0x10]
lea ecx, [ebx + 0x2c]
push dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
call fcn.10002112
and dword [ebp - 4], 0
lea edi, [ebx + 0x48]
mov byte [ebx + 0x44], 1
xor eax, eax
stosd dword es:[edi], eax
push 0xf
pop edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], edx
mov byte [ebx + 0x48], 0
xor eax, eax
lea edi, [ebx + 0x60]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x74], edx
mov byte [ebx + 0x60], al
mov byte [ebx + 0x78], al
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], eax
push eax
mov byte [ebp - 4], 3
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x8c], eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov ecx, ebx
call fcn.1001860c
push 8
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.WINMM.dll_timeGetDevCaps]
push dword [ebp - 0x18]
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
mov edi, 0x94
lea esi, [ebx + 0x90]
push edi
push 0
push esi
call fcn.1005b200
add esp, 0xc
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push str.ddraw.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x10017d70
push str.SetAppCompatData
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10017d69
push 0
push 0xc
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
call fcn.100581f8
ret 0xc
Function at 0x1001a509
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xf
jbe 0x1001a517
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
push 0
pop ecx
setne cl
xor edx, edx
inc ecx
cmp eax, 0xffffffff
cmove ecx, edx
mov eax, ecx
pop ebp
ret 4

Function at 0x1001ad48
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [esi - 0xc7]
cmp eax, 0xc
ja case.0x1001ad5a.202
jmp dword [eax*4 + 0x1001ae78]
push 3
pop eax
jmp 0x1001ae71
push 4
jmp 0x1001ad63
xor eax, eax
inc eax
jmp 0x1001ae71
push 2
jmp 0x1001ad63
push 5
jmp 0x1001ad63
push 6
jmp 0x1001ad63
push 0x1c
jmp 0x1001ad63
push 0x1d
jmp 0x1001ad63
push 0x1f
jmp 0x1001ad63
push 0x1e
jmp 0x1001ad63
push edi
push 1
and esi, 0x7f
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov edi, eax
test edi, edi
je 0x1001ae6e
mov ecx, dword [0x100ae0f4]
push 0x2a
call fcn.1001a757
mov ecx, dword [0x100ae0f4]
shl al, 7
push 0x36
mov byte [0x100ae1a0], al
call fcn.1001a757
mov ecx, dword [0x100ae0f4]
shl al, 7
mov byte [0x100ae1a1], al
or al, byte [0x100ae1a0]
push 0x1d
mov byte [0x100ae110], al
call fcn.1001a757
mov ecx, dword [0x100ae0f4]
shl al, 7
push 0x9d
mov byte [0x100ae1a2], al
call fcn.1001a757
mov ecx, dword [0x100ae0f4]
shl al, 7
mov byte [0x100ae1a3], al
or al, byte [0x100ae1a2]
push 0x38
mov byte [0x100ae111], al
call fcn.1001a757
mov ecx, dword [0x100ae0f4]
shl al, 7
push 0xb8
mov byte [0x100ae1a4], al
call fcn.1001a757
shl al, 7
mov byte [0x100ae1a5], al
or al, byte [0x100ae1a4]
push 0
mov byte [0x100ae112], al
lea eax, [ebp + 8]
push eax
push 0x100ae100
push esi
push edi
call dword [sym.imp.USER32.dll_ToAscii]
cmp eax, 1
jne 0x1001ae6e
movzx eax, word [ebp + 8]
movzx eax, al
jmp 0x1001ae70
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x1002266d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100ac040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x1008bfa4
push eax
call fcn.10064421
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1002285e
push ebx
push edi
push 4
lea eax, [ebp - 0x118]
push 1
push eax
call fcn.100638af
push 4
lea eax, [ebp - 0x118]
push str.DDS
push eax
call fcn.10064440
add esp, 0x1c
test eax, eax
jne 0x10022854
push edi
push 1
lea eax, [ebp - 0x90]
push 0x7c
push eax
call fcn.100638af
add esp, 0x10
cmp dword [ebp - 0x90], 0x7c
jne 0x10022854
push 0x7c
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.1005a7a0
add esp, 0xc
xor ebx, ebx
cmp dword [ebp - 0xbc], 0x31545844
push 8
pop eax
cmove ebx, eax
cmp dword [ebp - 0xbc], 0x33545844
push 0x10
pop eax
cmove ebx, eax
cmp dword [ebp - 0xbc], 0x35545844
jne 0x1002273a
mov ebx, eax
jmp 0x10022742
test ebx, ebx
je 0x10022854
or dword [ebp - 0xa0], eax
lea edx, [ebp - 0x110]
mov eax, dword [esi]
and dword [ebp - 0x110], 0
push 0
push edx
mov ecx, dword [eax]
lea edx, [ebp - 0x10c]
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
js 0x10022854
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.1005b200
mov esi, dword [ebp - 0x110]
add esp, 0xc
and dword [ebp - 0x114], 0
mov dword [ebp - 0x14], 0x401008
mov eax, dword [esi]
push esi
call dword [eax + 4]
jmp 0x10022801
mov ecx, dword [ebp - 0x104]
mov eax, dword [ebp - 0x100]
add eax, 3
shr eax, 2
lea ecx, [ecx + 3]
shr ecx, 2
imul ecx, eax
push edi
push 1
imul ecx, ebx
push ecx
push dword [ebp - 0xe8]
call fcn.100638af
add esp, 0x10
test eax, eax
je 0x10022818
mov eax, dword [esi]
push 0
push esi
call dword [eax + 0x80]
mov eax, dword [esi]
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push esi
call dword [eax + 0x30]
test eax, eax
js 0x1002283f
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov esi, dword [ebp - 0x114]
push esi
mov eax, dword [esi]
call dword [eax + 8]
mov eax, dword [esi]
lea ecx, [ebp - 0x10c]
push 0
push 1
push ecx
push 0
push esi
call dword [eax + 0x64]
test eax, eax
jns 0x1002279b
push edi
call fcn.10062fff
mov eax, dword [esi]
pop ecx
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x110]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x114]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x1002285b
push edi
call fcn.10062fff
mov eax, dword [esi]
pop ecx
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x110]
jmp 0x1002285d
push edi
call fcn.10062fff
pop ecx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100581ea
leave
ret 8
Function at 0x10022baf
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x2c], esi
je 0x10022bcd
push 0x8000
push esi
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push ebx
push 0x40
push 0x3000
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 8]
mov dword [edi + 0x2c], eax
add eax, 0x40
mov dword [edi + 0x30], eax
mov eax, dword [ecx + 0xc]
mov dword [edi], eax
mov edx, dword [ecx + 0x1c]
mov dword [edi + 8], edx
mov ebx, dword [ecx + 0x10]
mov dword [ebp + 8], edx
mov dword [edi + 0xc], ebx
mov edx, dword [ecx + 0x14]
mov dword [edi + 0x10], edx
mov ecx, dword [ecx + 0x18]
mov dword [ebp - 4], edx
cdq
and edx, 7
mov dword [edi + 0x14], ecx
add eax, edx
mov dword [edi + 0x18], esi
mov edx, dword [ebp + 8]
sar eax, 3
mov dword [edi + 4], eax
test edx, edx
jne 0x10022c2e
mov esi, 0xff000000
mov dword [edi + 0x18], esi
test ebx, ebx
pop ebx
jne 0x10022c3c
or esi, 0xff0000
mov dword [edi + 0x18], esi
cmp dword [ebp - 4], 0
jne 0x10022c4b
or esi, 0xff00
mov dword [edi + 0x18], esi
test ecx, ecx
jne 0x10022c58
or esi, 0xff
mov dword [edi + 0x18], esi
lea eax, [edi + 0x1d]
push eax
lea esi, [edi + 0x1c]
push esi
push edx
call fcn.10022065
add byte [esi], 0x18
lea eax, [edi + 0x1f]
push eax
lea esi, [edi + 0x1e]
push esi
push dword [edi + 0xc]
call fcn.10022065
add byte [esi], 0x10
lea eax, [edi + 0x21]
push eax
lea esi, [edi + 0x20]
push esi
push dword [edi + 0x10]
call fcn.10022065
add byte [esi], 8
lea eax, [edi + 0x23]
push eax
lea eax, [edi + 0x22]
push eax
push dword [edi + 0x14]
call fcn.10022065
push dword [edi + 0x14]
mov ecx, dword [edi + 0x2c]
mov esi, 0x100ae2d8
push dword [edi + 0x10]
mov eax, dword [edi + 0x30]
push dword [edi + 0xc]
mov dword [edi + 0x24], ecx
push dword [edi + 8]
mov dword [edi + 0x28], eax
push dword [edi]
push ecx
mov ecx, esi
call fcn.10021459
push dword [edi + 0x14]
mov ecx, esi
push dword [edi + 0x10]
push dword [edi + 0xc]
push dword [edi + 8]
push dword [edi]
push dword [edi + 0x30]
call fcn.10021651
pop edi
pop esi
leave
ret 4

Function at 0x10024a88
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], ecx
jle 0x10024ae5
push ebx
push esi
mov esi, dword [ebp + 8]
push 0x1f
inc esi
pop ebx
movzx eax, word [edi + ecx*2]
shr eax, 0xa
and eax, ebx
imul eax, eax, 0xff
cdq
idiv ebx
mov byte [esi + 1], al
movzx eax, word [edi + ecx*2]
shr eax, 5
and eax, ebx
imul eax, eax, 0xff
cdq
idiv ebx
mov byte [esi], al
lea esi, [esi + 4]
movzx eax, word [edi + ecx*2]
and eax, ebx
imul eax, eax, 0xff
cdq
idiv ebx
inc ecx
mov byte [esi - 5], al
cmp ecx, dword [ebp + 0x10]
jl 0x10024a9f
pop esi
pop ebx
pop edi
pop ebp
ret
Function at 0x10024bc9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
push esi
xor esi, esi
test edx, edx
jle 0x10024c3a
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
inc ecx
push edi
mov edi, dword [ebp + 0xc]
mov al, byte [edi]
movzx eax, al
test esi, esi
je 0x10024c0b
and eax, 0xf
mov al, byte [ebx + eax*4]
mov byte [ecx - 1], al
movzx eax, byte [edi]
and eax, 0xf
mov al, byte [ebx + eax*4 + 1]
mov byte [ecx], al
mov al, byte [edi]
inc edi
movzx eax, al
and eax, 0xf
jmp 0x10024c26
shr eax, 4
mov al, byte [ebx + eax*4]
mov byte [ecx - 1], al
movzx eax, byte [edi]
shr eax, 4
mov al, byte [ebx + eax*4 + 1]
mov byte [ecx], al
movzx eax, byte [edi]
shr eax, 4
mov al, byte [ebx + eax*4 + 2]
xor esi, 1
mov byte [ecx + 1], al
add ecx, 4
sub edx, 1
jne 0x10024be2
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x1002968c
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0x14], 0xca
jne 0x100296c1
push esi
call fcn.10031fd7
cmp byte [esi + 0x40], 0
pop ecx
je 0x100296b8
mov dword [esi + 0x14], 0xcf
mov al, 1
jmp 0x10029756
mov dword [esi + 0x14], 0xcb
jmp 0x100296ca
cmp dword [esi + 0x14], 0xcb
jne 0x1002972f
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x10029724
mov eax, dword [esi + 8]
test eax, eax
je 0x100296e1
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x190]
push esi
call dword [eax]
pop ecx
test eax, eax
je 0x10029720
cmp eax, 2
je 0x10029724
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x100296d6
cmp eax, 3
je 0x10029705
cmp eax, 1
jne 0x100296d6
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x100296d6
mov eax, dword [esi + 0x11c]
add eax, edi
mov dword [edx + 8], eax
jmp 0x100296d6
xor al, al
jmp 0x10029756
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x1002974f
cmp dword [esi + 0x14], 0xcc
je 0x1002974f
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x14
mov ecx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
call dword [eax]
pop ecx
push esi
call fcn.1002975a
pop ecx
pop edi
pop esi
pop ebp
ret