joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009ad0
Capabilities:
Allocate or change rwx memory

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], 0x1000aa20
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x40
push 0x1000
push 0x6065e
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
push 0x6065e
push 0x1004fbbc
push eax
call fcn.1003eb30
add esp, 0xc
lea edi, [ebp - 0x28]
push esi
push edi
call fcn.10005d20
add esp, 8
push edi
call fcn.10005bc0
add esp, 4
test eax, eax
jne 0x10009b50
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.10023680
add esp, 0xc
jmp 0x10009b40
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x10], 0
push 0x100b021c
push 0x1004fb7c
push edi
push 0x2b
push 0x1004fb40
call fcn.1004dab0
add esp, 0x14
ud2
Function at 0x1000c6d0
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 0x1000c70c
mov ebp, dword [esp + 0x14]
push 2
push ebx
push ebp
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x1000c70c
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 0x10012150
Capabilities:
Get system information on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x3c
xorps xmm0, xmm0
call 0x1001215f
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 0x100121ff
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 0x100121e7
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 + 0x100123b4]
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 0x10012209
jmp 0x10012216
push 0x100b5a84
call fcn.1004dfe0
mov eax, 1
test cl, cl
je 0x1001232d
mov dword [ebp + 4], 7
jmp 0x100123a2
test esi, esi
je 0x1001233a
mov dword [ebp + 4], 8
jmp 0x100123a2
push eax
push 0x3000
push ebx
push dword [esp + 0x14]
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
je 0x10012357
mov dword [ebp], 1
jmp 0x1001238b
call fcn.10022330
mov dword [ebp + 4], 0xa
jmp 0x1001239f
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ebx
jmp 0x100123a9
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 0x10015a90
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.1003ddf0
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x100177e0
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.1003f460
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 0x10024900
push eax
push 0x1000
push edi
mov dword [ebp - 0x20], esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x10015be3
mov esi, dword [sym.imp.KERNEL32.dll_SleepEx]
push 1
push 0xffffffffffffffff
call esi
cmp dword [ebp - 0x30], 0
je 0x10015b1a
cmp dword [ebp - 0x2c], 0
jne 0x10015be9
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x10015be9
cmp edi, 0x1000
ja 0x10015c25
xor ebx, ebx
nop dword [eax]
mov eax, edi
sub eax, ebx
jb 0x10015c0d
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 0x10024900
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 0x10015be3
nop dword [eax]
push 1
push 0xffffffffffffffff
call esi
cmp dword [ebp - 0x30], 0
je 0x10015b90
cmp dword [ebp - 0x2c], 0
jne 0x10015be9
add ebx, dword [ebp - 0x28]
cmp ebx, edi
jne 0x10015b50
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
push 0x10024900
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 0x10015b1a
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 0x100b6b18
push edi
push ebx
call fcn.1004df20
add esp, 0xc
jmp 0x10015c3f
mov dword [ebp - 0x10], 0
push 0x100b6b18
push 0x1000
push edi
call fcn.1004df00
add esp, 0xc
ud2
Function at 0x100172d0
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], 0x10017890
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 [0x100da049]
push 4
push 8
call fcn.1000c280
add esp, 8
test eax, eax
je 0x100173b2
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 0x10017430
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1001734d
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x1001739f
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 0x10017384
push dword [ecx + 8]
push eax
push dword [ebp - 0x24]
call fcn.1000c290
add esp, 0xc
push 4
push 8
push dword [ebp - 0x28]
call fcn.1000c290
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.1004da50
add esp, 8
ud2
Function at 0x1001d360
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.10027270
add esp, 4
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp ecx, 0x80000000
je 0x1001d3c3
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.1001cdf0
add esp, 0xc
mov ebx, dword [esp]
mov edi, dword [esp + 4]
cmp ebx, 0x80000000
jne 0x1001d3d1
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 0x1001d3e7
mov byte [esi], 4
test ebx, ebx
jne 0x1001d3f7
jmp 0x1001d3c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x1001d3c8
add ebx, ebx
push 2
push ebx
push edi
call fcn.1000c290
add esp, 0xc
jmp 0x1001d3c8
Function at 0x1001da80
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], 0x1001dca0
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.10027270
add esp, 4
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
cmp ecx, 0x80000000
je 0x1001db06
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.1001cdf0
add esp, 0xc
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
cmp eax, 0x80000000
jne 0x1001db25
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.10027270
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 0x1001db80
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.1001cdf0
add esp, 0xc
mov ebx, dword [esi + 0x18]
mov edi, dword [esi + 0x1c]
cmp ebx, 0x80000000
jne 0x1001dbb1
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 0x1001db12
add eax, eax
push 2
push eax
push dword [esi]
call fcn.1000c290
add esp, 0xc
jmp 0x1001db12
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
push 0
push 0
lea eax, [esi + 8]
push eax
push 0x1001dc60
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
je 0x1001dbf4
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 0x1001dc0e
jmp 0x1001db8f
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 0x1001db8f
add ebx, ebx
push 2
push ebx
push edi
call fcn.1000c290
add esp, 0xc
jmp 0x1001db8f
Function at 0x1001e1e0
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], 0x10021110
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
test esi, esi
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
je 0x1001e23c
js 0x1001e2b1
movzx eax, byte [0x100da049]
push 1
push esi
call fcn.1000c280
add esp, 8
test eax, eax
jne 0x1001e241
mov eax, 1
push esi
push eax
call fcn.1004da30
mov eax, 1
mov edi, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
push eax
call fcn.1003eb30
add esp, 0xc
mov ebx, dword [edi + 0x30]
cmp ebx, dword [edi + 0x28]
jne 0x1001e278
lea eax, [edi + 0x28]
mov dword [ebp - 0x10], 0
push eax
mov dword [ebp - 0x24], ebx
call fcn.10026410
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.1004da30
nop word [eax + eax]
push ebp
sub esp, 0xc
add ebp, 0xc
cmp dword [ebp + 0x10], 0
je 0x1001e2dd
push 1
push dword [ebp + 0x10]
push dword [ebp - 0x20]
call fcn.1000c290
add esp, 0xc
add esp, 0xc
pop ebp
ret

Function at 0x1001e2f0
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.1001e301

Function at 0x10020850
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.10027270
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
cmp edx, 0x80000000
jne 0x10020893
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], bind
jmp 0x100208bf
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.10019430
mov edi, dword [esp + 0xc]
cmp edi, 0x80000000
jne 0x100208d6
lea ecx, [esp + 0xc]
call fcn.100152f0
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 0x10020901
movups xmm0, xmmword [esp + 0x30]
mov dword [esi], edi
movlps qword [esi + 4], xmm0
jmp 0x100208ce
movups xmm0, xmmword [esp + 0x30]
test edi, edi
mov dword [esi], bind
je 0x100208ce
add edi, edi
movss dword [esp], xmm0
mov dword [esp + 8], 2
mov dword [esp + 4], edi
call fcn.1000c290
jmp 0x100208ce
Function at 0x10026060
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 0x100260a4
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 0x100260aa
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 0x100260df
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x100260ef
mov dword [esi + 4], 0
jmp 0x10026101
cmp eax, 0x103
je 0x1002611b
test eax, eax
js 0x1002610c
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 0x10026104
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x100b8c3c
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.10014740
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.10013320
mov ecx, 7
int 0x29
ud2
Function at 0x10026180
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 0x100261c4
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 0x100261ca
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 0x10026206
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x10026228
test eax, eax
js 0x10026212
mov eax, dword [esp + 0xc]
mov bl, 4
jmp 0x1002621b
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], 0x100b8c3c
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.10014740
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.10013320
mov ecx, 7
int 0x29
ud2

Function at 0x10026cf0
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 0x10026d34
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 0x10026d48
cmp eax, 0x2739
jne 0x10026d73
push 1
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.WS2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x10026d7b
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x10026d8c
mov dword [esi + 4], edi
jmp 0x10026d2b
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x10026d2e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x10026d2e
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 0x10026d2e
Function at 0x10026db0
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 0x10026de4
cmp edx, ebx
ja 0x10026e0a
push edx
push edi
push 0x3a
call fcn.10039aa0
add esp, 0xc
cmp eax, 1
jne 0x10026e06
cmp edx, ebx
jae 0x10026de0
cmp byte [edi + edx], 0x3a
jne 0x10026de0
mov ebp, edx
lea eax, [edx + 1]
jmp 0x10026e1a
test eax, eax
jne 0x10026e1a
mov byte [esi + 4], 2
mov dword [esi + 8], 0x100b8e8c
jmp 0x10026e9f
sub ebx, eax
add eax, edi
push ebx
push eax
call fcn.10038ca0
add esp, 8
test al, 1
jne 0x10026e94
shr eax, 0x10
mov word [esp + 2], ax
mov eax, dword [0x100da124]
cmp eax, 3
jne 0x10026f1c
lea eax, [esp + 2]
cmp ebp, 0x17f
mov dword [esp + 8], eax
ja 0x10026f3d
lea ebx, [esp + 0x38]
push ebp
push edi
push ebx
call fcn.1003eb30
add esp, 0xc
mov byte [esp + ebp + 0x38], 0
inc ebp
lea eax, [esp + 0xc]
push ebp
push ebx
push eax
call fcn.1003aee0
add esp, 0xc
cmp dword [esp + 0xc], 0
je 0x10026eb2
mov eax, dword [0x100b7098]
mov ecx, dword [0x100b709c]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
jmp 0x10026e9f
mov byte [esi + 4], 2
mov dword [esi + 8], 0x100b8eac
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 0x10026f03
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 0x10026ea5
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 0x10026ea5
push 0x100da124
call fcn.1004cac0
add esp, 4
lea eax, [esp + 2]
cmp ebp, 0x17f
mov dword [esp + 8], eax
jbe 0x10026e56
lea eax, [esp + 8]
push 0x100b8eb8
push eax
push ebp
push edi
push esi
call fcn.1004cc60
add esp, 0x14
jmp 0x10026ea5
Function at 0x10027440
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], 0x10028ed0
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 0x100274d0
jmp 0x100274be
jbe 0x10027559
cmp esi, 0x201
jae 0x100274d0
mov dword [ebp - 0x30], 0x200
lea ebx, [ebp - 0x448]
mov edi, esi
jmp 0x10027501
mov edi, dword [ebp - 0x34]
sub esi, edi
je 0x100274f5
mov dword [ebp - 0x10], 0
push esi
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.1004d670
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 0x10027528
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100275bc
cmp esi, edi
jne 0x100274b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100275db
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x100274be
jmp 0x100274d0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x100275f8
lea eax, [ebp - 0x48]
push esi
push ebx
push eax
call fcn.10017a40
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 0x100275a6
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.1000c290
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 0x10027596
jmp 0x100275a6
mov dword [ebp - 0x10], 0
push 0x100b9060
push 0x28
push str.internal_error:_entered_unreachable_codes
call fcn.1004dc40
add esp, 0xc
jmp 0x10027607
push 0x100b9028
push eax
push esi
call fcn.1004df00
add esp, 0xc
ud2