joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f390
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101c42b0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x1023d1bc]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x1023d1bc]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
cmp word [esi + 0x10], 0
lea edi, [esi + 0x10]
mov dword [esp + 0x28], eax
jne 0x1000f3e4
push 0
call fcn.1000f120
mov ebx, dword [esi + 4]
mov dword [esp + 0x2c], vtable.CLogMutex.0
mov dword [esp + 0x30], ebx
test ebx, ebx
je 0x1000f403
push 0x1388
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x88], 0
mov dword [esp + 0x10], vtable.CAhnI2s_File.0
mov dword [esp + 0x14], 0xffffffff
push 1
push edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x90], 1
call fcn.1000fd90
lea ecx, [esp + 0x10]
test eax, eax
je 0x1000f5c0
call fcn.1000fe20
test eax, eax
jl 0x1000f5bc
cmp eax, dword [esi + 0x430]
jl 0x1000f4a8
lea ecx, [esp + 0x10]
call fcn.1000fe00
lea eax, [esi + 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi + 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 1
push edi
lea ecx, [esp + 0x18]
call fcn.1000fd90
lea ecx, [esp + 0x10]
test eax, eax
je 0x1000f5c0
call fcn.1000fe20
test eax, eax
jl 0x1000f5bc
cmp eax, dword [esi + 0x430]
jge 0x1000f5bc
push 2
push 0
lea ecx, [esp + 0x18]
call fcn.1000ff10
test eax, eax
jl 0x1000f5bc
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0x26]
movzx eax, word [esp + 0x24]
movzx ecx, word [esp + 0x22]
push edx
movzx edx, word [esp + 0x24]
push eax
movzx eax, word [esp + 0x26]
push ecx
movzx ecx, word [esp + 0x26]
push edx
push eax
movzx eax, word [esp + 0x2c]
push ecx
cdq
mov ecx, 0xa
idiv ecx
push edx
push str._d_x_02d._02d_02d_02d_03d.
lea edx, [esp + 0x54]
push 0x40
push edx
call fcn.10009420
lea eax, [esp + 0x5c]
push 0x40
push eax
call fcn.1000f8f0
add esp, 0x30
push eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x18]
call fcn.1000fee0
mov edx, dword [0x1023e490]
push edx
push 0x1023e480
lea ecx, [esp + 0x18]
call fcn.1000fee0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._x:
lea eax, [esp + 0x3c]
push 0x40
push eax
call fcn.10009420
lea ecx, [esp + 0x44]
push 0x40
push ecx
call fcn.1000f8f0
add esp, 0x18
push eax
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x18]
call fcn.1000fee0
mov edi, dword [esp + 0x28]
push closesocket
push edi
call fcn.1000f8f0
add esp, 8
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.1000fee0
push 2
push 0x101c7408
lea ecx, [esp + 0x18]
call fcn.1000fee0
lea ecx, [esp + 0x10]
call fcn.1000ff30
test byte [esi + 0x42c], 1
je 0x1000f5bc
lea ecx, [esp + 0x10]
call fcn.1000ff50
lea ecx, [esp + 0x10]
mov byte [esp + 0x88], 0
call fcn.1000ff60
test ebx, ebx
je 0x1000f5d8
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.10010588
mov esp, ebp
pop ebp
ret 8
Function at 0x1000fea0
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov esi, ecx
call dword [sym.imp.MSVCR90.dll__errno]
mov edi, dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 4]
push edi
push eax
push ecx
call dword [sym.imp.MSVCR90.dll__read]
add esp, 0xc
xor edx, edx
cmp edi, eax
sete dl
pop edi
pop esi
mov eax, edx
ret 8

Function at 0x1000ff30
Capabilities:
Clear file content

Disassembly:
mov eax, dword [ecx + 4]
push eax
call dword [sym.imp.MSVCR90.dll__get_osfhandle]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
ret

Function at 0x10010260
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x1023d1bc]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100102c2
cmp eax, 0x104
jae 0x100102c2
push 0x101c74f0
push 0x104
lea eax, [esp + 0xc]
push eax
call fcn.100023a0
jmp 0x100102c9
xor ecx, ecx
mov word [esp + 4], cx
mov edx, dword [esp + 0x214]
push edx
push 0x104
lea eax, [esp + 0xc]
push eax
call fcn.100023a0
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.10010180
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.10010588
add esp, 0x20c
ret 4

Function at 0x10010588
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1023d1bc]
jne 0x10010592
repz ret
jmp fcn.10010b7c

Function at 0x100112f6
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x1023d1bc]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
inc eax
cmp dword [ebp - 0x7c], 6
ja 0x10011347
jne 0x10011345
cmp dword [ebp - 0x78], eax
jae 0x10011347
xor eax, eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.10010588
add ebp, 0x98
leave
ret
Function at 0x10011425
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1023d1bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR90.dll_memset
xor eax, eax
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR90.dll_memset
add esp, 0x18
test edi, edi
je 0x100114c6
push edi
call dword [sym.imp.MSVCR90.dll_wcslen]
pop ecx
test eax, eax
jbe 0x100114c6
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100114c6
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x101c7554
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.100113cd
add esp, 0x14
test eax, eax
jl 0x100114c6
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x100114c8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10010588
leave
ret

Function at 0x100114d5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 0x18], 0
test ebx, ebx
jne 0x100114e8
push 0x57
pop eax
leave
ret
push edi
mov edi, str.wintrust.dll
call fcn.10011425
mov edi, eax
test edi, edi
jne 0x1001150f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100115c6
push 0x7e
pop eax
jmp 0x100115c6
push esi
call fcn.100112f6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WinVerifyTrust
push edi
mov dword [ebp - 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push edi
mov dword [ebp - 4], eax
call esi
push str.WTHelperGetProvSignerFromChain
push edi
mov dword [ebp - 8], eax
call esi
push str.WTHelperGetProvCertFromChain
push edi
mov dword [ebp - 0xc], eax
call esi
mov dword [ebp - 0x10], eax
xor eax, eax
cmp dword [ebp - 4], eax
je 0x10011573
cmp dword [ebp - 8], eax
je 0x10011573
cmp dword [ebp - 0xc], eax
je 0x10011573
cmp dword [ebp - 0x10], eax
je 0x10011573
cmp dword [ebp - 0x14], eax
jne 0x1001158d
push str.WintrustLoadFunctionPointers
push edi
call esi
mov esi, eax
test esi, esi
jne 0x10011592
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x10011582
push 0x7f
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x100115c5
mov esi, dword [ebp - 0x18]
jmp 0x10011594
xor eax, eax
push 0x18
push eax
push ebx
call sub.MSVCR90.dll_memset
mov eax, dword [ebp - 4]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x10]
add esp, 0xc
cmp dword [ebp - 0x14], 0
mov dword [ebx], edi
mov dword [ebx + 0x10], eax
jne 0x100115c3
mov dword [ebx + 0x14], esi
xor eax, eax
pop esi
pop edi
leave
ret
Function at 0x100118b1
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xf8
mov eax, dword [0x1023d1bc]
xor eax, ebp
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x7c]
xor ecx, ecx
push esi
push edi
mov dword [ebp - 0x8c], eax
cmp ebx, ecx
je 0x10011a68
cmp dword [ebp + 0x78], ecx
jl 0x10011a68
jg 0x100118ef
cmp dword [ebp + 0x74], ecx
jbe 0x10011a68
cmp eax, ecx
je 0x10011a68
cmp dword [ebp + 0x78], ecx
jg 0x10011911
jl 0x10011907
cmp dword [ebp + 0x74], 0xf0
ja 0x10011911
mov eax, 0x22000009
jmp 0x10011a6d
push 0xf0
push ecx
lea eax, [ebp - 0x88]
push eax
call sub.MSVCR90.dll_memset
mov esi, dword [sym.imp.MSVCR90.dll_fread]
push ebx
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x88]
push 0x40
push eax
call esi
add esp, 0x1c
cmp eax, edi
je 0x1001194a
mov eax, 0x22000005
jmp 0x10011a6d
push 2
lea eax, [ebp - 0x88]
push 0x101c77bc
push eax
call sub.MSVCR90.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10011907
movzx eax, byte [ebp - 0x49]
movzx ecx, byte [ebp - 0x4a]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x4b]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x4c]
shl eax, 8
or eax, ecx
xor ecx, ecx
cmp dword [ebp + 0x78], ecx
jg 0x10011999
jl 0x10011907
cmp dword [ebp + 0x74], eax
jbe 0x10011907
push 0
push eax
push ebx
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
test eax, eax
jl 0x10011940
push ebx
push edi
lea eax, [ebp - 0x48]
push 4
push eax
call esi
add esp, 0x10
cmp eax, edi
jne 0x10011940
push 4
lea eax, [ebp - 0x48]
push 0x101c77b4
push eax
call sub.MSVCR90.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10011907
push ebx
push edi
lea eax, [ebp - 0x44]
push 0x14
push eax
call esi
add esp, 0x10
cmp eax, edi
jne 0x10011940
push ebx
push edi
lea eax, [ebp - 0x30]
push 2
push eax
call esi
add esp, 0x10
cmp eax, edi
jne 0x10011940
movzx ax, byte [ebp - 0x2f]
movzx cx, byte [ebp - 0x30]
shl ax, 8
or ax, cx
mov ecx, 0x20b
cmp ax, cx
jne 0x10011a51
push ebx
push edi
push 0x96
lea eax, [ebp - 0x2e]
push eax
call esi
add esp, 0x10
cmp eax, edi
jne 0x10011940
push 0xf0
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x8c]
call sub.MSVCR90.dll_memcpy
add esp, 0xc
xor eax, eax
jmp 0x10011a6d
mov ecx, 0x10b
cmp ax, cx
jne 0x10011907
push ebx
push edi
push 0x86
jmp 0x10011a22
mov eax, 0x22000001
mov ecx, dword [ebp + 0x68]
pop edi
xor ecx, ebp
pop esi
call fcn.10010588
add ebp, 0x6c
leave
ret
Function at 0x1002e291
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x18], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
xor eax, eax
inc eax
ret

Function at 0x1002f660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x1023d1bc]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp edi, eax
je 0x1002f724
cmp dword [ebp + 0xc], eax
jl 0x1002f724
jg 0x1002f68e
cmp dword [ebp + 8], eax
jbe 0x1002f724
cmp ebx, eax
je 0x1002f724
cmp dword [ebp + 0xc], eax
jg 0x1002f6aa
jl 0x1002f6a3
cmp dword [ebp + 8], 0x3c
jae 0x1002f6aa
mov eax, 0x22000009
jmp 0x1002f729
push 0x3c
push eax
lea eax, [ebp - 0x40]
push eax
call sub.MSVCR90.dll_memset
push edi
push 1
lea eax, [ebp - 0x40]
push 0x3c
push eax
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x1c
cmp eax, 1
je 0x1002f6d4
mov eax, 0x22000005
jmp 0x1002f729
push 4
lea eax, [ebp - 0x40]
push str.MSCF
push eax
call sub.MSVCR90.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x1002f6a3
test byte [ebp - 0x22], 4
jne 0x1002f6f8
mov eax, 0x2200000e
jmp 0x1002f729
movzx ax, byte [ebp - 0x1b]
movzx cx, byte [ebp - 0x1c]
shl ax, 8
or ax, cx
push 0x14
pop ecx
cmp cx, ax
jne 0x1002f6f1
push 0x3c
lea eax, [ebp - 0x40]
push eax
push ebx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
xor eax, eax
jmp 0x1002f729
mov eax, 0x22000001
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010588
leave
ret
Function at 0x10035f70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc
call fcn.10010a90
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10067870
add esp, 8
mov dword [ebp - 8], eax
mov dword [ebp - 4], 1
push 0x62
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCR90.dll_strchr
add esp, 8
test eax, eax
jne 0x10035fb2
mov eax, dword [ebp - 4]
or eax, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
jne 0x10036061
call fcn.1004ff40
push str.BIO_new_file
push 0x43
push str.....Srcopenssl_3.0.10crypto_bio_bss_file.c
call fcn.1004fff0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.calling_fopen__s___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
call fcn.10050120
add esp, 0x14
call sub.MSVCR90.dll__errno
cmp dword [eax], 2
je 0x10036007
call sub.MSVCR90.dll__errno
cmp dword [eax], 6
jne 0x10036033
call fcn.1004ff40
push str.BIO_new_file
push 0x4b
push str.....Srcopenssl_3.0.10crypto_bio_bss_file.c
call fcn.1004fff0
add esp, 0xc
push 0
push 0x80
push 0x20
call fcn.10050120
add esp, 0xc
jmp 0x1003605d
call fcn.1004ff40
push str.BIO_new_file
push 0x4d
push str.....Srcopenssl_3.0.10crypto_bio_bss_file.c
call fcn.1004fff0
add esp, 0xc
push 0
push 0x80002
push 0x20
call fcn.10050120
add esp, 0xc
xor eax, eax
jmp 0x100360af
call fcn.10036120
push eax
call fcn.10034ee0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10036088
mov eax, dword [ebp - 8]
push eax
call sub.MSVCR90.dll_fclose
add esp, 4
xor eax, eax
jmp 0x100360af
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10035190
add esp, 8
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
push 0x6a
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10035ac0
add esp, 0x10
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x10036310
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.10010a90
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
je 0x10036384
cmp dword [ebp + 0xc], 0
je 0x10036384
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
and edx, 0
je 0x1003635c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
push ecx
push 1
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR90.dll_fwrite
add esp, 0x10
mov dword [ebp - 4], eax
jmp 0x10036378
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x28]
push edx
push 1
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCR90.dll_fwrite
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10036384
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1005a6d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.10010a90
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], 0
jmp 0x1005a6ff
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x1005a726
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
xor edx, ecx
movzx eax, byte [ebp - 1]
or eax, edx
mov byte [ebp - 1], al
jmp 0x1005a6f6
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x10066500
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.10010a90
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0xc]
mov dword [ecx], 0
mov edx, dword [ebp + 0x18]
mov byte [edx], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100665cf
mov ecx, dword [ebp - 8]
movsx edx, word [ecx + 8]
cmp edx, 2
jne 0x100665af
mov eax, dword [ebp - 8]
movsx ecx, word [eax + 0xa]
cmp ecx, 4
jne 0x100665af
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 4], eax
jmp 0x1006656c
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp dword [edx], 0
je 0x100665af
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
movzx eax, word [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.10066290
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0
jne 0x100665a2
mov eax, 8
jmp 0x10066615
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
add ecx, 0x1c
mov dword [ebp - 0xc], ecx
jmp 0x10066563
push 0x400
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
push 0x401
mov ecx, dword [ebp + 0x18]
push ecx
call sub.MSVCR90.dll_strncpy_s
add esp, 0x10
xor eax, eax
jmp 0x10066615
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
sub edx, 0x2af9
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 3
ja case.default.0x100665ed
mov eax, dword [ebp - 0x10]
jmp dword [eax*4 + 0x1006661c]
mov eax, 0x2af9
jmp 0x10066615
mov eax, 0x2afa
jmp 0x10066615
mov eax, 0x2afb
jmp 0x10066615
mov eax, 0x2af9
jmp 0x10066615
mov eax, 0x2af9
mov esp, ebp
pop ebp
ret 0x18
Function at 0x100675a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x1023f198], 0
jne 0x10067643
mov dword [0x1023f198], 1
push 0x190
push 0
push 0x1023f008
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x1023f008
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10067643
call fcn.1004ff40
push str.BIO_sock_init
push 0x94
push str.....Srcopenssl_3.0.10crypto_bio_bio_sock.c
call fcn.1004fff0
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.10050120
add esp, 0xc
call fcn.1004ff40
push str.BIO_sock_init
push 0x96
push str.....Srcopenssl_3.0.10crypto_bio_bio_sock.c
call fcn.1004fff0
add esp, 0xc
push 0
push 0x7a
push 0x20
call fcn.10050120
add esp, 0xc
or eax, 0xffffffff
jmp 0x10067648
mov eax, 1
pop ebp
ret

Function at 0x10067670
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.10010a90
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x100676ca
call fcn.1004ff40
push str.BIO_socket_ioctl
push 0xd1
push str.....Srcopenssl_3.0.10crypto_bio_bio_sock.c
call fcn.1004fff0
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.10050120
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10067730
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x11c
call fcn.10010a90
cmp dword [ebp + 8], 0
jl 0x10067749
cmp dword [ebp + 8], 0x40
jl 0x10067751
or eax, 0xffffffff
jmp 0x1006786c
mov eax, dword [ebp + 0x10]
or eax, dword [ebp + 0x14]
jne 0x10067763
mov eax, 1
jmp 0x1006786c
push 0
call fcn.100464f0
add esp, 4
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], edx
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [ebp - 0x114]
jg 0x10067798
jl 0x10067791
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 0x118]
jae 0x10067798
xor eax, eax
jmp 0x1006786c
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x11c], 0
jmp 0x100677bd
mov eax, dword [ebp - 0x11c]
add eax, 1
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x11c]
cmp ecx, dword [ebp - 0x110]
jae 0x100677e1
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp + edx*4 - 0x10c]
cmp eax, dword [ebp + 8]
jne 0x100677df
jmp 0x100677e1
jmp 0x100677ae
mov ecx, dword [ebp - 0x11c]
cmp ecx, dword [ebp - 0x110]
jne 0x10067817
cmp dword [ebp - 0x110], 0x40
jae 0x10067817
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x10c], eax
mov ecx, dword [ebp - 0x110]
add ecx, 1
mov dword [ebp - 0x110], ecx
xor edx, edx
jne 0x100677a2
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x118]
mov ecx, dword [ebp + 0x14]
sbb ecx, dword [ebp - 0x114]
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
not eax
lea ecx, [ebp - 0x110]
and eax, ecx
push eax
mov edx, dword [ebp + 0xc]
neg edx
sbb edx, edx
lea eax, [ebp - 0x110]
and edx, eax
push edx
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov esp, ebp
pop ebp
ret
Function at 0x1008b220
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.10010a90
mov dword [ebp - 4], 0
jmp 0x1008b23f
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jge 0x1008b25f
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
cmp eax, edx
jne 0x1008b25f
jmp 0x1008b236
mov eax, dword [ebp + 0x10]
sub eax, 1
mov dword [ebp - 0xc], eax
jmp 0x1008b273
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jl 0x1008b299
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xc]
movzx eax, byte [edx]
test eax, eax
jne 0x1008b299
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
cmp edx, 0xff
jne 0x1008b299
jmp 0x1008b26a
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jge 0x1008b2a9
or eax, 0xffffffff
jmp 0x1008b376
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0xc]
jle 0x1008b2bc
mov eax, dword [ebp - 4]
shl eax, 3
jmp 0x1008b376
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
xor eax, edx
mov byte [ebp - 5], al
movzx eax, byte [ebp - 5]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
sub ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x7e
ja case.0x1008b2f3.1
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x1008b39c]
jmp dword [eax*4 + 0x1008b37c]
mov dword [ebp - 0xc], 7
jmp 0x1008b33e
mov dword [ebp - 0xc], 6
jmp 0x1008b33e
mov dword [ebp - 0xc], 5
jmp 0x1008b33e
mov dword [ebp - 0xc], 4
jmp 0x1008b33e
mov dword [ebp - 0xc], 3
jmp 0x1008b33e
mov dword [ebp - 0xc], 2
jmp 0x1008b33e
mov dword [ebp - 0xc], 1
jmp 0x1008b33e
or eax, 0xffffffff
jmp 0x1008b376
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
movzx eax, byte [ebp - 5]
and edx, eax
jne 0x1008b366
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
movzx eax, byte [ebp - 5]
and edx, eax
movzx ecx, byte [ebp - 5]
cmp edx, ecx
je 0x1008b36d
or eax, 0xffffffff
jmp 0x1008b376
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
lea eax, [eax + edx*8]
mov esp, ebp
pop ebp
ret