joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100029d8
Capabilities:
Set file attributes
Write file on windows

Disassembly:
sub esp, 4
push ecx
push 2
push str...DATA_delete_me.vdf
call sub.KERNEL32.DLL_SetFileAttributesA
push 2
push 0x1000e857
call sub.KERNEL32.DLL_SetFileAttributesA
push 0
push 2
push 2
push 0
push 7
push 0xc0000000
push 0x1000e857
call sub.KERNEL32.DLL_CreateFileA
cmp eax, 0xffffffff
jne 0x10002a30
push 0
push 2
push 2
push 0
push 7
push 0xc0000000
push str...DATA_delete_me.vdf
call sub.KERNEL32.DLL_CreateFileA
cmp eax, 0xffffffff
je 0x10002a5d
push eax
xor ecx, ecx
push ecx
mov ecx, esp
push 0
push ecx
push 0x1a5ac7
push str.Modified_versions_of_the_latest_Ikarus_and_LeGo._r_nThese_scripts_are_not_loaded_by_default___only_if_a_patch_needs_them._r_n_r_n_______DO_NOT_USE_THESE_SCRIPTS________r_n_They_are_specifically_tailored_to_Ninja_
push eax
call sub.KERNEL32.DLL_WriteFile
add esp, 4
mov dword [esp + 8], eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [esp + 4]
test eax, eax
jne 0x10002a75
push 0x12010
push section..data
push str.IO_operations_failed._Try_starting_the_application_with_administrative_privileges_and_or_delete_the_hidden_file_Data_delete_me.vdf
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
pop ecx
add esp, 4
ret
Function at 0x57ea60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x111000]
push edi
jmp 0x57ea7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x57ea81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57ea70
mov eax, 1
add ebx, ebx
jne 0x57ea93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x57eaa4
jne 0x57eac3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57eac3
dec eax
add ebx, ebx
jne 0x57eab0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x57ea88
add ebx, ebx
jne 0x57eabf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x57eb15
xor ecx, ecx
sub eax, 3
jb 0x57eadb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x57eb4a
sar eax, 1
mov ebp, eax
jmp 0x57eae6
add ebx, ebx
jne 0x57eae6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57eab4
inc ecx
add ebx, ebx
jne 0x57eaf4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57eab4
add ebx, ebx
jne 0x57eb01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x57eaf6
jne 0x57eb12
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x57eaf6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x57eb34
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x57eb26
jmp 0x57ea76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x57eb34
add edi, ecx
jmp 0x57ea76
pop esi
mov edi, esi
mov ecx, 0x6273
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x57eb52
cmp byte [edi], 0x1e
jne 0x57eb52
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x57eb57
lea edi, [esi + 0x17b000]
mov eax, dword [edi]
or eax, eax
je 0x57ebcf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1943b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1944bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x57eb84
mov ecx, edi
jns 0x57ebb3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1944c0]
or eax, eax
je 0x57ebc9
mov dword [ebx], eax
add ebx, 4
jmp 0x57eba1
call dword [esi + 0x1944d0]
mov ebp, dword [esi + 0x1944c4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x57ec03
sub esp, 0xffffff80
jmp 0x4ccbe5

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401974
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push ebx
push eax
xor ebx, ebx
push 0x20019
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401999
xor eax, eax
jmp 0x4019f6
push esi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 4]
push ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
or edi, 0xffffffff
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4019e4
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x18]
jge 0x4019e4
lea eax, [ebp + 0xc]
inc dword [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, ebx
je 0x4019e4
mov eax, dword [ebp + 0x14]
mov byte [eax], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, ebx
pop edi
pop esi
sete al
pop ebx
leave
ret

Function at 0x401a7f
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push esi
push eax
lea eax, [ebp + 0xc]
xor esi, esi
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x401aaa
xor eax, eax
jmp 0x401aec
cmp dword [ebp + 0x14], esi
jne 0x401abd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x401ada
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret
Function at 0x10002080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10002099
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100020d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x100020d0
lea ebx, [ebx]
cmp esi, eax
jae 0x100020d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x100020c0
cmp esi, eax
jb 0x100020da
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x10002fc0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b4828
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x100f9124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x6c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push edx
mov dword [ebp - 0x24], edx
xor ecx, ecx
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x14]
push edx
lea eax, [esi + 0x28]
push eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [esi + 0x30], ecx
mov dword [ebp - 4], ecx
mov dword [eax], 0xa
mov dword [esi + 0x2c], ebx
mov ecx, dword [edi + 0x68]
push esi
push ecx
lea ecx, [edi + 4]
call fcn.1000d950
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov ebx, 1
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x10003095
cmp dword [esi + 0x28], 0
lea eax, [esi + 0x28]
jne 0x10003141
cmp dword [ebp + 0x10], 0
jne 0x10003141
mov edx, dword [ebp - 0x24]
push edx
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x14]
push edx
push eax
mov dword [eax], 0xa
mov ecx, dword [edi + 0x68]
push esi
push ecx
lea ecx, [edi + 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 3
call fcn.1000d950
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov ebx, 1
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x10003141
cmp dword [esi + 0x28], 0
lea eax, [esi + 0x28]
jne 0x100031e8
cmp dword [ebp + 0x10], 0
jne 0x100031e8
push 0x1d1
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x14]
push edx
push eax
mov dword [eax], 0xa
mov ecx, dword [edi + 0x68]
push esi
push ecx
lea ecx, [edi + 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 6
call fcn.1000d950
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ecx
mov dword [edi + 0x6c], 0x1d1
mov ebx, 1
jmp 0x100031ec
test ebx, ebx
je 0x100031f4
lea ecx, [edi + 0x70]
call fcn.100022e0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10003930
Capabilities:
Encode data using base64

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x10003b27
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x10003b27
cmp dword [esp + 0x20], 0
je 0x10003b27
mov eax, 0x55555556
imul dword [esp + 0x18]
push ebx
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
lea ecx, [ebx*4]
mov eax, 0x6bca1af3
imul ecx
sar edx, 5
push ebp
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
xor ecx, ecx
test ebp, ebp
mov eax, 0x13
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], ecx
jl 0x10003a82
mov edx, dword [esp + 0x2c]
and edx, 2
mov dword [esp + 0x14], edx
cmp ecx, ebp
jne 0x100039cb
mov edx, ebp
imul edx, edx, 0x4c
lea eax, [ebx*4]
sub eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x24], eax
test eax, eax
jle 0x10003a3a
mov edx, eax
movzx eax, byte [edi + 2]
xor ecx, ecx
mov ch, byte [edi]
add edi, 3
add esi, 4
mov cl, byte [edi - 2]
shl ecx, 8
or ecx, eax
shl ecx, 8
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__f]
mov byte [esi - 4], al
shl ecx, 6
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__f]
shl ecx, 6
mov byte [esi - 3], al
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__f]
shr ecx, 0x14
and ecx, 0x3f
sub edx, 1
mov byte [esi - 2], al
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__f]
mov byte [esi - 1], cl
jne 0x100039d1
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x14], 0
mov edx, dword [esp + 0x1c]
lea edx, [edx + eax*4]
mov dword [esp + 0x1c], edx
jne 0x10003a5d
mov byte [esi], 0xd
add esi, 1
mov byte [esi], 0xa
add esi, 1
add dword [esp + 0x1c], 2
add ecx, 1
cmp ecx, ebp
mov dword [esp + 0x10], ecx
jle 0x100039ae
cmp dword [esp + 0x1c], 0
je 0x10003a82
cmp dword [esp + 0x14], 0
jne 0x10003a82
sub esi, 2
sub dword [esp + 0x1c], 2
mov ecx, dword [esp + 0x20]
lea eax, [ebx + ebx*2]
sub ecx, eax
je 0x10003b0e
lea ebp, [ecx + 1]
test ebp, ebp
je 0x10003b0e
xor eax, eax
test ecx, ecx
jle 0x10003aa4
movzx eax, byte [edi]
add edi, 1
shl eax, 8
cmp ecx, 1
jle 0x10003ab4
movzx edx, byte [edi]
or eax, edx
add edi, 1
shl eax, 8
cmp ecx, 2
jle 0x10003ac1
movzx ecx, byte [edi]
or eax, ecx
shl eax, 8
test ebp, ebp
jle 0x10003ae8
mov ecx, ebp
lea ebx, [ebx]
mov edx, eax
shr edx, 0x1a
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__f]
mov byte [esi], dl
add esi, 1
shl eax, 6
sub ecx, 1
jne 0x10003ad0
add dword [esp + 0x1c], ebp
test byte [esp + 0x2c], 1
jne 0x10003b0e
mov edi, 4
sub edi, ebp
test edi, edi
jle 0x10003b0a
push edi
push 0x3d
push esi
call fcn.100956b0
add esp, 0xc
add dword [esp + 0x1c], edi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
pop ebp
pop ebx
pop edi
mov dword [eax], ecx
mov eax, 1
pop esi
add esp, 8
ret 0x14
pop edi
xor eax, eax
pop esi
add esp, 8
ret 0x14
Function at 0x100045d0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ecx
mov ecx, dword [ecx + 4]
push esi
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x8003
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x100045fa
xor esi, esi
jmp 0x1000463a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov esi, eax
test esi, esi
je 0x1000463a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 4]
push 0
lea edx, [esp + 0x14]
push edx
push eax
push 2
push ecx
mov dword [esp + 0x24], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov esi, eax
mov eax, dword [esp + 4]
test eax, eax
je 0x10004649
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, esi
pop esi
pop ecx
ret 0xc
Function at 0x100086f0
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x100b4efb
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x100f9124]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push edi
mov eax, dword [0x100f9124]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
mov edi, dword [esp + 0x228]
push 0x100f0984
push edi
mov esi, ecx
call fcn.10004fa0
add esp, 8
test al, al
je 0x100087cf
push 0x102
lea eax, [esp + 0x116]
push 0
push eax
mov word [esp + 0x11c], 0
call fcn.100956b0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x114]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x100087cf
lea edx, [esp + 0x10]
mov dword [esp + 0xc], edx
call dword [0x100fa5b0]
push eax
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0x14]
call fcn.10004b20
mov ecx, dword [esp + 0xc]
push ecx
lea ecx, [esi + 0x2c]
mov dword [esp + 0x224], 0
call fcn.100032f0
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
cmp eax, edx
je 0x100087d8
push eax
call fcn.10096194
add esp, 4
jmp 0x100087d8
push edi
lea ecx, [esi + 0x2c]
call fcn.10002850
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.1009536d
add esp, 0x218
ret 4
Function at 0x1000c460
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100b59d6
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100f9124]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov dword [esi], vtable.CPJNSMTPMessage.0
xor edi, edi
mov eax, vtable.CArray_class_CPJNSMTPAddress__class_CPJNSMTPAddress__.0
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edi
mov dword [esp + 0x20], edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
lea ebx, [esi + 0x40]
mov byte [esp + 0x20], 2
mov dword [esp + 0x14], ebx
call fcn.1008c1dc
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x1000c4f0
push 0x80004005
call fcn.10002060
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x20], 3
call fcn.1008c1dc
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x1000c51d
push 0x80004005
call fcn.10002060
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx + 4], eax
mov byte [esp + 0x20], 4
call fcn.1008c1dc
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x1000c54b
push 0x80004005
call fcn.10002060
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x48], eax
push 0x100b7678
lea ecx, [esi + 0x4c]
mov byte [esp + 0x24], 5
call fcn.100033e0
lea ebx, [esi + 0x50]
mov byte [esp + 0x20], 6
mov dword [esp + 0x14], ebx
call fcn.1008c1dc
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x1000c592
push 0x80004005
call fcn.10002060
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x20], 7
call fcn.1008c1dc
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x1000c5bf
push 0x80004005
call fcn.10002060
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx + 4], eax
lea ecx, [esi + 0x58]
mov byte [esp + 0x20], 8
call fcn.1000c240
mov byte [esp + 0x20], 9
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0xb0], 0xffffffff
call fcn.1008c1dc
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x1000c610
push 0x80004005
call fcn.10002060
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xb4], eax
lea ecx, [esi + 0xb8]
mov byte [esp + 0x20], 0xa
call fcn.1008ce19
mov dword [esi + 0xcc], edi
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x1000e810
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100f9124]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x18], ecx
call dword [0x100fa5b0]
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
mov word [ebp - 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
test esi, esi
mov word [ebp - 0x12], ax
je 0x1000e8b0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x1000e86c
xor esi, esi
jmp 0x1000e883
lea edi, [eax + eax]
mov eax, edi
call fcn.10097b70
mov eax, esp
push ebx
push edi
push esi
push eax
call fcn.1000e720
mov esi, eax
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x1000e8bb
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1000e8a6
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
jmp 0x1000e8b8
push 0x2726
call fcn.1000e790
push 0
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1000e8da
push 0
call fcn.1000e790
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009536d
mov esp, ebp
pop ebp
ret 8

Function at 0x1000e8f0
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100f9124]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
call dword [0x100fa5b0]
test edi, edi
mov ebx, eax
jne 0x1000e919
xor esi, esi
jmp 0x1000e945
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x1000e92e
xor esi, esi
jmp 0x1000e945
lea esi, [eax + eax]
mov eax, esi
call fcn.10097b70
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.1000e720
mov esi, eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push eax
mov word [ebp - 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x1000e98b
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1000e9a3
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1000e9aa
push 0
call fcn.1000e790
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009536d
mov esp, ebp
pop ebp
ret 8
Function at 0x1000e9c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 4]
push eax
mov eax, dword [esp + 8]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1000e9e5
push 0
call fcn.1000e790
ret 0xc

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

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 4]
push eax
mov eax, dword [esp + 8]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1000ea15
push 0
call fcn.1000e790
ret 0xc

Function at 0x1000ea20
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
mov esi, dword [esp + 0x114]
mov eax, 0x10624dd3
mul esi
mov eax, dword [ecx + 4]
shr edx, 6
mov dword [esp + 4], edx
imul edx, edx, 0x3e8
sub esi, edx
lea ecx, [esp + 4]
imul esi, esi, 0x3e8
push ecx
push 0
push 0
lea edx, [esp + 0x18]
push edx
push 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
pop esi
jne 0x1000ea80
push 0
call fcn.1000e790
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add esp, 0x10c
ret 4