joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c2b0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebx, dword [esp + 0x18]
xor esi, esi
test ebx, ebx
je 0x1000c2ec
mov ebp, dword [esp + 0x14]
push 2
push ebx
push ebp
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x1000c2ec
mov edi, eax
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
and edi, 0x7fffffff
xor esi, esi
test al, al
cmove esi, edi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10011f50
Capabilities:
Get system information on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x3c
xorps xmm0, xmm0
call 0x10011f5f
pop edi
lea eax, [esp + 0x18]
mov dword [esp + 0x38], 0
movups xmmword [esp + 0x28], xmm0
movups xmmword [esp + 0x18], xmm0
push eax
call sub.KERNEL32.dll_GetSystemInfo
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x10011fff
mov ecx, dword [esp + 0x54]
xor edx, edx
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x50]
mov eax, ecx
div esi
lea eax, [esi + ecx]
sub eax, edx
test edx, edx
cmove eax, ecx
test eax, eax
cmove eax, esi
test ebx, ebx
mov dword [esp + 4], eax
je 0x10011fe7
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x10], 0
mov dword [esp], 0
mov dword [esp + 8], 0
xor edx, edx
mov dword [esp + 0xc], 0
mov eax, dword [ecx]
lea ebp, [ecx + ebx*8]
mov ebx, dword [ecx + 4]
mov esi, dword [eax*4 + 0x100121b4]
xor eax, eax
add esi, edi
jmp esi
mov ebx, dword [esp + 4]
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [esp + 8], 0
test dl, dl
je 0x10012009
jmp 0x10012016
push 0x100ca134
call fcn.1004dc10
mov eax, 1
test cl, cl
je 0x1001212d
mov dword [ebp + 4], 7
jmp 0x100121a2
test esi, esi
je 0x1001213a
mov dword [ebp + 4], 8
jmp 0x100121a2
push eax
push 0x3000
push ebx
push dword [esp + 0x14]
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
je 0x10012157
mov dword [ebp], 1
jmp 0x1001218b
call fcn.10021f50
mov dword [ebp + 4], 0xa
jmp 0x1001219f
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ebx
jmp 0x100121a9
mov dword [ebp + 8], eax
mov dword [ebp], 2
mov eax, ebp
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100156c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1038
call fcn.1003da20
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10017410
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], edx
lea edi, [ebp - 0x1044]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x1000
push 0
push edi
call fcn.1003f090
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push 0x10024500
push eax
push 0x1000
push edi
mov dword [ebp - 0x20], esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x10015813
mov esi, dword [sym.imp.KERNEL32.dll_SleepEx]
push 1
push 0xffffffffffffffff
call esi
cmp dword [ebp - 0x30], 0
je 0x1001574a
cmp dword [ebp - 0x2c], 0
jne 0x10015819
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x10015819
cmp edi, 0x1000
ja 0x10015855
xor ebx, ebx
nop dword [eax]
mov eax, edi
sub eax, ebx
jb 0x1001583d
xorps xmm0, xmm0
lea edx, [ebp - 0x30]
lea ecx, [ebp + ebx - 0x1044]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], edx
push 0x10024500
lea edx, [ebp - 0x44]
push edx
push eax
push ecx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x10015813
nop dword [eax]
push 1
push 0xffffffffffffffff
call esi
cmp dword [ebp - 0x30], 0
je 0x100157c0
cmp dword [ebp - 0x2c], 0
jne 0x10015819
add ebx, dword [ebp - 0x28]
cmp ebx, edi
jne 0x10015780
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
push 0x10024500
lea eax, [ebp - 0x44]
push eax
push 0x1000
lea eax, [ebp - 0x1044]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x1001574a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x24]
call esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1038
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 0x100cb1c8
push edi
push ebx
call fcn.1004db50
add esp, 0xc
jmp 0x1001586f
mov dword [ebp - 0x10], 0
push 0x100cb1c8
push 0x1000
push edi
call fcn.1004db30
add esp, 0xc
ud2
Function at 0x10016f00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x100174c0
lea eax, [ebp - 0x18]
mov ebx, dword [ebp + 0x10]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x100ef049]
push 4
push 8
call fcn.1000be60
add esp, 8
test eax, eax
je 0x10016fe2
mov esi, eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], ecx
push 0
push 0x10000
push esi
push 0x10017060
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10016f7d
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x10016fcf
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x24], eax
push eax
mov dword [ebp - 0x20], ecx
call dword [ecx]
add esp, 4
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
mov eax, dword [ecx + 4]
test eax, eax
je 0x10016fb4
push dword [ecx + 8]
push eax
push dword [ebp - 0x24]
call fcn.1000be70
add esp, 0xc
push 4
push 8
push dword [ebp - 0x28]
call fcn.1000be70
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [edi], 0
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 8
push 4
call fcn.1004d680
add esp, 8
ud2
Function at 0x1001cf90
Capabilities:
Create directory

Disassembly:
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
push dword [esp + 0x40]
call fcn.10026e70
add esp, 4
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp ecx, 0x80000000
je 0x1001cff3
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edi
lea eax, [esp + 0x18]
mov ecx, esp
push 1
push eax
push ecx
call fcn.1001ca20
add esp, 0xc
mov ebx, dword [esp]
mov edi, dword [esp + 4]
cmp ebx, 0x80000000
jne 0x1001d001
mov eax, dword [esp + 8]
mov dword [esi], edi
mov dword [esi + 4], eax
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1001d017
mov byte [esi], 4
test ebx, ebx
jne 0x1001d027
jmp 0x1001cff8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x1001cff8
add ebx, ebx
push 2
push ebx
push edi
call fcn.1000be70
add esp, 0xc
jmp 0x1001cff8
Function at 0x1001d6b0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov esi, esp
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], esp
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0x1001d8d0
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
lea ecx, [esi + 0x38]
mov eax, dword fs:[0]
mov dword [esi + 0x38], eax
mov dword fs:[0], ecx
lea ecx, [esi + 0x24]
push ebx
call fcn.10026e70
add esp, 4
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
cmp ecx, 0x80000000
je 0x1001d736
mov dword [esi + 8], ecx
mov dword [esi + 0x10], eax
lea eax, [esi + 8]
mov dword [esi + 0xc], edx
lea ecx, [esi + 0x18]
push 1
push eax
push ecx
call fcn.1001ca20
add esp, 0xc
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
cmp eax, 0x80000000
jne 0x1001d755
mov eax, dword [esi + 0x20]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov dword [edi], 1
mov eax, dword [esi + 0x38]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp + 0x18]
mov dword [esi], edx
mov edx, dword [ebp + 0x14]
mov dword [esi + 4], eax
mov dword [esi + 0x40], 0
lea ecx, [esi + 0x24]
push edi
call fcn.10026e70
add esp, 4
mov ecx, dword [esi + 0x24]
mov edi, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
lea edx, [esi + 0x18]
cmp ecx, 0x80000000
je 0x1001d7b0
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], eax
push 1
lea eax, [esi + 8]
push eax
push edx
call fcn.1001ca20
add esp, 0xc
mov ebx, dword [esi + 0x18]
mov edi, dword [esi + 0x1c]
cmp ebx, 0x80000000
jne 0x1001d7e1
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
mov dword [ecx], 1
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
test eax, eax
je 0x1001d742
add eax, eax
push 2
push eax
push dword [esi]
call fcn.1000be70
add esp, 0xc
jmp 0x1001d742
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
push 0
push 0
lea eax, [esi + 8]
push eax
push 0x1001d890
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
je 0x1001d824
mov eax, dword [esi + 8]
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov dword [edx], 0
test ebx, ebx
jne 0x1001d83e
jmp 0x1001d7bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov byte [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx], 1
test ebx, ebx
je 0x1001d7bf
add ebx, ebx
push 2
push ebx
push edi
call fcn.1000be70
add esp, 0xc
jmp 0x1001d7bf
Function at 0x1001de10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10020d30
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
test esi, esi
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
je 0x1001de6c
js 0x1001dee1
movzx eax, byte [0x100ef049]
push 1
push esi
call fcn.1000be60
add esp, 8
test eax, eax
jne 0x1001de71
mov eax, 1
push esi
push eax
call fcn.1004d660
mov eax, 1
mov edi, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
push eax
call fcn.1003e760
add esp, 0xc
mov ebx, dword [edi + 0x30]
cmp ebx, dword [edi + 0x28]
jne 0x1001dea8
lea eax, [edi + 0x28]
mov dword [ebp - 0x10], 0
push eax
mov dword [ebp - 0x24], ebx
call fcn.10026010
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp + 8]
add esp, 4
mov eax, dword [edi + 0x2c]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x20]
lea ecx, [ebx + ebx*4]
inc ebx
mov dword [eax + ecx*4], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edx
mov byte [eax + ecx*4 + 0x10], 0
mov dword [edi + 0x30], ebx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
push esi
push eax
call fcn.1004d660
nop word [eax + eax]
push ebp
sub esp, 0xc
add ebp, 0xc
cmp dword [ebp + 0x10], 0
je 0x1001df0d
push 1
push dword [ebp + 0x10]
push dword [ebp - 0x20]
call fcn.1000be70
add esp, 0xc
add esp, 0xc
pop ebp
ret

Function at 0x1001df20
Capabilities:
Check if file exists
Create process on windows
Encode data using base64
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x16c
call fcn.1001df31

Function at 0x10020480
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push edi
push esi
sub esp, 0x40
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
lea ecx, [esp + 0x18]
mov dword [esp], eax
call fcn.10026e70
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
cmp edx, 0x80000000
jne 0x100204c3
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], bind
jmp 0x100204ef
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], ecx
lea edx, [esp + 0x24]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], eax
mov dword [esp + 4], edx
mov dword [esp], ecx
call fcn.10019060
mov edi, dword [esp + 0xc]
cmp edi, 0x80000000
jne 0x10020506
lea ecx, [esp + 0xc]
call fcn.10014f20
mov dword [esi], bind
mov eax, esi
add esp, 0x40
pop esi
pop edi
ret
movsd xmm0, qword [esp + 0x10]
movups xmmword [esp + 0x30], xmm0
movss dword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x10020531
movups xmm0, xmmword [esp + 0x30]
mov dword [esi], edi
movlps qword [esi + 4], xmm0
jmp 0x100204fe
movups xmm0, xmmword [esp + 0x30]
test edi, edi
mov dword [esi], bind
je 0x100204fe
add edi, edi
movss dword [esp], xmm0
mov dword [esp + 8], 2
mov dword [esp + 4], edi
call fcn.1000be70
jmp 0x100204fe
Function at 0x10025c60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x10025ca4
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x10025caa
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x10025cdf
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x10025cef
mov dword [esi + 4], 0
jmp 0x10025d01
cmp eax, 0x103
je 0x10025d1b
test eax, eax
js 0x10025d0c
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x10025d04
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x100cd2ec
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.10014390
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.1000ba10
mov ecx, 7
int 0x29
ud2
Function at 0x10025d80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x10025dc4
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x10025dca
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x10025e06
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x10025e28
test eax, eax
js 0x10025e12
mov eax, dword [esp + 0xc]
mov bl, 4
jmp 0x10025e1b
xor ebx, ebx
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
mov byte [esi], bl
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x100cd2ec
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.10014390
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.1000ba10
mov ecx, 7
int 0x29
ud2

Function at 0x100268f0
Capabilities:
Create udp socket

Disassembly:
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov ebx, 0x17
cmp word [eax], 0
mov eax, 2
cmove ebx, eax
push 0x81
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.WS2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x10026934
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x10026948
cmp eax, 0x2739
jne 0x10026973
push 1
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.WS2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x1002697b
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1002698c
mov dword [esi + 4], edi
jmp 0x1002692b
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x1002692e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x1002692e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1002692e
Function at 0x100269b0
Capabilities:
Resolve dns

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1b8
mov ebx, dword [esp + 0x1d4]
mov esi, dword [esp + 0x1cc]
mov edi, dword [esp + 0x1d0]
mov edx, ebx
jmp 0x100269e4
cmp edx, ebx
ja 0x10026a0a
push edx
push edi
push 0x3a
call fcn.100396d0
add esp, 0xc
cmp eax, 1
jne 0x10026a06
cmp edx, ebx
jae 0x100269e0
cmp byte [edi + edx], 0x3a
jne 0x100269e0
mov ebp, edx
lea eax, [edx + 1]
jmp 0x10026a1a
test eax, eax
jne 0x10026a1a
mov byte [esi + 4], 2
mov dword [esi + 8], 0x100cd53c
jmp 0x10026a9f
sub ebx, eax
add eax, edi
push ebx
push eax
call fcn.100388d0
add esp, 8
test al, 1
jne 0x10026a94
shr eax, 0x10
mov word [esp + 2], ax
mov eax, dword [0x100ef124]
cmp eax, 3
jne 0x10026b1c
lea eax, [esp + 2]
cmp ebp, 0x17f
mov dword [esp + 8], eax
ja 0x10026b3d
lea ebx, [esp + 0x38]
push ebp
push edi
push ebx
call fcn.1003e760
add esp, 0xc
mov byte [esp + ebp + 0x38], 0
inc ebp
lea eax, [esp + 0xc]
push ebp
push ebx
push eax
call fcn.1003ab10
add esp, 0xc
cmp dword [esp + 0xc], 0
je 0x10026ab2
mov eax, dword [0x100cb748]
mov ecx, dword [0x100cb74c]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
jmp 0x10026a9f
mov byte [esi + 4], 2
mov dword [esi + 8], 0x100cd55c
mov dword [esi], 1
mov eax, esi
add esp, 0x1b8
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x10]
xorps xmm0, xmm0
lea ecx, [esp + 4]
mov dword [esp + 4], 0
lea edx, [esp + 0x18]
movups xmmword [esp + 0x18], xmm0
movups xmmword [esp + 0x28], xmm0
mov dword [esp + 0x20], 1
push ecx
push edx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x10026b03
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], ecx
jmp 0x10026aa5
mov eax, dword [esp + 4]
movzx ecx, word [esp + 2]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor eax, eax
mov word [esi + 0xc], cx
mov dword [esi], eax
jmp 0x10026aa5
push 0x100ef124
call fcn.1004c6f0
add esp, 4
lea eax, [esp + 2]
cmp ebp, 0x17f
mov dword [esp + 8], eax
jbe 0x10026a56
lea eax, [esp + 8]
push 0x100cd568
push eax
push ebp
push edi
push esi
call fcn.1004c890
add esp, 0x14
jmp 0x10026aa5
Function at 0x10027040
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x43c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10028ad0
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov esi, 0x200
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 2
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 0
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], eax
cmp esi, 0x201
jae 0x100270d0
jmp 0x100270be
jbe 0x10027159
cmp esi, 0x201
jae 0x100270d0
mov dword [ebp - 0x30], 0x200
lea ebx, [ebp - 0x448]
mov edi, esi
jmp 0x10027101
mov edi, dword [ebp - 0x34]
sub esi, edi
je 0x100270f5
mov dword [ebp - 0x10], 0
push esi
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.1004d2a0
add esp, 0xc
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push ebx
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x10027128
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100271bc
cmp esi, edi
jne 0x100270b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100271db
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x100270be
jmp 0x100270d0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x100271f8
lea eax, [ebp - 0x48]
push esi
push ebx
push eax
call fcn.10017670
add esp, 0xc
movsd xmm0, qword [ebp - 0x48]
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x40]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x100271a6
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.1000be70
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x43c
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], bind
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x10027196
jmp 0x100271a6
mov dword [ebp - 0x10], 0
push 0x100cd710
push 0x28
push 0x100cd6e8
call fcn.1004d870
add esp, 0xc
jmp 0x10027207
push 0x100cd6d8
push eax
push esi
call fcn.1004db30
add esp, 0xc
ud2