joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10258c80
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
test cl, cl
mov byte [0x102ddd89], cl
mov ecx, dword [0x102e2ac8]
push ebx
push esi
push edi
mov esi, dword [ecx]
je 0x10258d75
cmp esi, ecx
je 0x10258d26
mov edi, dword [esi + 0x14]
test edi, edi
je 0x10258cdb
mov bl, byte [esi + 0x18]
lea eax, [ebp - 4]
push eax
push 0x40
push 1
push edi
call edx
lea eax, [ebp - 4]
mov byte [edi], bl
push eax
push dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 1
push edi
call eax
mov ecx, dword [0x102e2ac8]
mov edx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp byte [esi + 0xd], 0
jne 0x10258d22
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x10258d00
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x10258d22
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x10258cf4
jmp 0x10258d22
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10258d20
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x10258d20
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10258d10
mov esi, eax
cmp esi, ecx
jne 0x10258ca7
xor edi, edi
mov esi, 0x678f47
xor eax, eax
nop
mov bl, byte [eax + 0x102d84a4]
lea eax, [ebp - 4]
push eax
push 0x40
push 1
push esi
call edx
lea eax, [ebp - 4]
mov byte [esi], bl
push eax
push dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 1
push esi
call eax
mov edx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edi, [edi + 1]
lea eax, [edi*8]
mov esi, dword [eax + 0x102d84a0]
test esi, esi
jne 0x10258d30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, ecx
je 0x10258dfb
nop dword [eax]
mov edi, dword [esi + 0x14]
test edi, edi
je 0x10258db4
mov bl, byte [esi + 0x19]
lea eax, [ebp - 4]
push eax
push 0x40
push 1
push edi
call edx
lea eax, [ebp - 4]
mov byte [edi], bl
push eax
push dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 1
push edi
call eax
mov ecx, dword [0x102e2ac8]
mov edx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp byte [esi + 0xd], 0
jne 0x10258df7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x10258ddc
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x10258df7
nop dword [eax]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x10258dd0
jmp 0x10258df7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10258df5
cmp esi, dword [eax + 8]
jne 0x10258df5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10258de5
mov esi, eax
cmp esi, ecx
jne 0x10258d80
xor edi, edi
mov esi, 0x678f47
xor eax, eax
mov bl, byte [eax + 0x102d84a5]
lea eax, [ebp - 4]
push eax
push 0x40
push 1
push esi
call edx
lea eax, [ebp - 4]
mov byte [esi], bl
push eax
push dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 1
push esi
call eax
mov edx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edi, [edi + 1]
lea eax, [edi*8]
mov esi, dword [eax + 0x102d84a0]
test esi, esi
jne 0x10258e04
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10258e50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push edi
push eax
push 0x40
push 4
push 0x181d95c
mov edi, ecx
call esi
lea eax, [ebp - 4]
mov dword [0x181d95c], 0xffffffff
push eax
push dword [ebp - 4]
push 4
push 0x181d95c
call esi
mov eax, dword [edi + 4]
test eax, eax
jns 0x10258ec7
xor esi, esi
push esi
call fcn.1000ac00
add esp, 4
test eax, eax
je 0x10258ea7
mov ax, word [eax + 0x3e]
cmp ax, word [edi + 8]
je 0x10258eb6
inc esi
cmp esi, 0x190
jl 0x10258e90
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
mov eax, 0x5d7945
call eax
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push eax
call fcn.1000ac00
add esp, 4
test eax, eax
je 0x10258eeb
mov ax, word [eax + 0x3e]
cmp ax, word [edi + 8]
jne 0x10258eeb
push dword [edi + 4]
mov eax, 0x5d7945
call eax
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10259c20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x102dd418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov edx, dword [ebp + 0xc]
movq qword [ecx + 4], xmm0
mov word [ecx + 0xc], 0
push ebx
lea ebx, [ecx + 4]
movq qword [ebp - 0x10], xmm0
mov byte [ebx + 0xa], 0
movups xmmword [ecx + 0xf], xmm0
push edi
lea edi, [ecx + 0xf]
mov word [ebp - 8], 0
mov dword [edi + 0x10], 0
lea ecx, [ebp - 0x28]
mov byte [edi + 0x14], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
movq xmm0, qword [eax]
mov ax, word [eax + 8]
mov word [ebp - 8], ax
mov eax, dword [edx + 0x10]
xor byte [ebp - 8], 0xab
xor byte [ebp - 7], 0xfc
mov dword [ebp - 0x18], eax
mov eax, 1
sub eax, ecx
movq qword [ebp - 0x10], xmm0
movups xmm0, xmmword [edx]
xor byte [ebp - 0x10], 0xfc
xor byte [ebp - 0xf], 0xcf
xor byte [ebp - 0xe], 0xab
xor byte [ebp - 0xd], 0xfc
xor byte [ebp - 0xc], 0xcf
xor byte [ebp - 0xb], 0xab
xor byte [ebp - 0xa], 0xfc
xor byte [ebp - 9], 0xcf
mov dword [ebp - 0x30], eax
mov eax, 2
sub eax, ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x34], eax
xor edi, edi
mov eax, 3
mov dword [ebp - 0x40], ebx
mov ebx, dword [ebp - 0x30]
sub eax, ecx
mov dword [ebp - 0x38], eax
mov eax, 4
sub eax, ecx
mov byte [ebp - 6], 0
mov byte [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x2c], 0xcffc
mov byte [ebp - 0x2a], 0xab
mov dword [ebp - 0x3c], eax
push esi
mov eax, 0xaaaaaaab
lea esi, [ebp - 0x28]
mul edi
add esi, edi
mov ecx, edi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
movzx eax, byte [ebp + ecx - 0x2c]
lea ecx, [esi + ebx]
xor byte [esi], al
mov eax, 0xaaaaaaab
mul ecx
mov ecx, edi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
movzx eax, byte [ebp + ecx - 0x2b]
xor byte [esi + 1], al
mov eax, 0xaaaaaaab
mov ecx, dword [ebp - 0x34]
lea ecx, [esi + ecx]
mul ecx
mov ecx, edi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
movzx eax, byte [ebp + ecx - 0x2a]
xor byte [esi + 2], al
mov eax, 0xaaaaaaab
mov ecx, dword [ebp - 0x38]
lea ecx, [esi + ecx]
mul ecx
mov ecx, edi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
movzx eax, byte [ebp + ecx - 0x29]
xor byte [esi + 3], al
mov eax, 0xaaaaaaab
mov ecx, dword [ebp - 0x3c]
lea ecx, [esi + ecx]
mul ecx
mov ecx, edi
add edi, 5
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
movzx eax, byte [ebp + ecx - 0x28]
xor byte [esi + 4], al
cmp edi, 0x14
jl 0x10259d04
mov ebx, dword [ebp - 0x40]
lea ecx, [ebp - 0x10]
mov edi, dword [ebp - 0x44]
mov eax, ecx
sub ebx, eax
pop esi
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ebx + ecx - 1], al
test al, al
jne 0x10259db0
lea eax, [ebp - 0x28]
mov ecx, eax
sub edi, ecx
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edi + eax - 1], cl
test cl, cl
jne 0x10259dc4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1029978f
mov esp, ebp
pop ebp
ret 8
Function at 0x1025a3e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea eax, [ebp - 4]
mov edi, ecx
push eax
push 0x40
push 1
push edi
mov bl, dl
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
mov byte [edi], bl
push eax
push dword [ebp - 4]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1025a420
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [ebp + 8]
cmp al, 0xff
je 0x1025a440
mov byte [esi], al
mov eax, dword [ebp + 0x10]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10261f70
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x1505
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 0xc]
jae 0x10261fc3
mov edx, dword [ebp - 8]
shl edx, 5
add edx, dword [ebp - 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov cl, byte [eax]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
push edx
call fcn.10272cd0
add esp, 4
movsx eax, al
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
jmp 0x10261f86
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 0x3f
div ecx
mov eax, edx
mov esp, ebp
pop ebp
ret
Function at 0x1026e7f0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0x673], 0
je 0x1026e87c
cmp dword [esi + 0x19c], 0
je 0x1026e843
push esi
call fcn.1025d5f0
push 1
push esi
mov byte [esp + 0x14], al
call fcn.1025d880
push dword [esi + 0x14c]
mov eax, dword [esi + 0x19c]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call eax
push dword [esp + 0x28]
push esi
call fcn.1025d880
add esp, 0x28
pop esi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x1026e87c
push dword [esi + 0x148]
lea eax, [eax + eax*2]
push 1
add eax, 0x102c2c68
push 2
push eax
call fcn.102a2fa5
push dword [esi + 0x148]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.102a2fa5
add esp, 0x20
pop esi
ret

Function at 0x10270ef0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x102c30c8
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x10270f0a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x102c30e4
push esi
call fcn.102a8bf0
add esp, 8
test eax, eax
je 0x10270f52
test ebp, ebp
je 0x10270f43
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x10270f78
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10270f78
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x1027102f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10270f95
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10271025
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10271025
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10270fc7
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10270fe0
sub ecx, edx
add ecx, ebx
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x10270ff0
test ebp, ebp
je 0x1027101c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x102dd004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x102dd004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x10276e10
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10276e2f
cmp dword [esi + 0x84], 0
je 0x10276e2f
push 2
push 3
push esi
call fcn.102732f0
add esp, 0xc
push dword [esp + 0xc]
call fcn.10276870
add esp, 4
test esi, esi
je 0x10276e53
cmp dword [esi + 0x84], 0
je 0x10276e53
push 3
push esi
call fcn.10273330
add esp, 8
pop esi
ret

Function at 0x10276f60
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10276fa0
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x104], 0
jne 0x10276f8f
push 0
call fcn.10276f60
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x104], cl
mov ecx, dword [esi + 0x7c]
xor eax, eax
pop esi
cmp byte [ecx + 0x104], 2
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x10276fbd
xor esi, esi
xor eax, eax
cmp eax, esi
pop esi
sbb eax, eax
neg eax
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
cmp eax, esi
pop esi
sbb eax, eax
neg eax
ret
Function at 0x10280b40
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.10262a20
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.102b060f
push dword [esp + 0x40]
mov edi, eax
call fcn.102b060f
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x10280bd5
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.10262a20
movups xmm0, xmmword [esp + 0x14]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.10262ac0
add esp, 0x20
test edx, edx
ja 0x10280bf9
jb 0x10280bc7
cmp eax, 0x3e8
ja 0x10280bf9
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x10280b90
test edi, edi
je 0x10280be2
push edi
call fcn.102a2a5d
add esp, 4
test esi, esi
je 0x10280bef
push esi
call fcn.102a2a5d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x10280c06
push edi
call fcn.102a2a5d
add esp, 4
test esi, esi
je 0x10280c13
push esi
call fcn.102a2a5d
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x10281110
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebx
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [eax], ebx
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x102812a1
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x1028128c
push ebp
push edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1028116e
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10281160
sub eax, edx
lea ecx, [eax + 1]
jmp 0x10281170
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [esp + 0x14], ecx
cmp eax, 2
jne 0x10281181
lea ebp, [eax + 0xe]
jmp 0x1028118d
cmp eax, 0x17
jne 0x1028122e
lea ebp, [eax + 5]
cmp dword [esi + 0x18], 0
je 0x1028122e
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1028122e
cmp eax, ebp
jb 0x1028122e
lea eax, [ecx + 0x20]
add eax, ebp
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x1028127d
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ebp
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.1029c6c0
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x1028121a
mov eax, dword [edi + 0x18]
add eax, ebp
push ecx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.1029c6c0
add esp, 0xc
mov eax, dword [esp + 0x18]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x1028122a
mov dword [eax + 0x1c], edi
mov dword [esp + 0x18], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x10281152
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop edi
pop ebp
test eax, eax
je 0x1028124e
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x10281288
test ebx, ebx
je 0x1028126d
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x102dd004]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x10281256
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x28]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
mov esi, 8
mov dword [esp + 0x10], esi
jmp 0x1028123d
test ebx, ebx
jne 0x10281298
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x10281730
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ecx, 0x2b
test edi, edi
je 0x102817db
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
nop dword [eax]
mov ebx, 4
lea eax, [esp + 0x1c]
push 4
push eax
cmp edi, ebx
push ebp
cmovb ebx, edi
call fcn.102681a0
add esp, 0xc
cmp eax, 4
jne 0x10281796
cmp byte [0x102def18], 0
jne 0x102817a2
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x102817dd
mov eax, dword [esp + 0x1c]
jmp 0x102817bf
imul eax, dword [0x102def1c], 0x41c64e6d
add eax, 0x3039
mov dword [0x102def1c], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x102817d3
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x102817c3
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x10281750
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x102817f0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
sub ebx, 1
je 0x1028188f
mov esi, dword [esp + 0x14]
mov ebp, 0x3e
nop
push 4
lea eax, [esp + 0x20]
push eax
push esi
call fcn.102681a0
add esp, 0xc
cmp eax, 4
jne 0x10281870
cmp byte [0x102def18], 0
jne 0x10281853
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
je 0x10281874
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
ret
imul eax, dword [0x102def1c], 0x41c64e6d
add eax, 0x3039
mov dword [0x102def1c], eax
rol eax, 0x10
mov dword [esp + 0x1c], eax
jmp 0x10281874
test eax, eax
jne 0x10281894
mov eax, dword [esp + 0x1c]
cmp eax, 0xfffffffc
jae 0x10281810
xor edx, edx
div ebp
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789]
mov byte [edi], al
inc edi
sub ebx, 1
jne 0x10281810
mov byte [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x102818a0
Capabilities:
Generate random numbers via winapi

Disassembly:
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call fcn.1029c430
add esp, 0xc
push 2
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
ret
Function at 0x102848c0
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x102dd008]
mov edi, eax
add esp, 8
test edi, edi
je 0x10284897
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x102848af
cmp esi, ebx
je 0x102848af
cmp esi, 0x8000
ja 0x102848af
cmp esi, ebx
jb 0x102848a8
push esi
push edi
call dword [0x102dd008]
mov edi, eax
add esp, 8
test edi, edi
jne 0x10284860
push ebp
call dword [0x102dd004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x102dd004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
jmp 0x10284840

Function at 0x10289900
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x102def20]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x10289951
push 3
push 2
push eax
push eax
push 6
call fcn.1028ec60
add esp, 0x14
test al, al
je 0x10289945
mov dword [0x102def20], 2
add esp, 0xc
ret
mov dword [0x102def20], 1
jmp 0x10289956
cmp eax, 2
je 0x1028999c
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10289981
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x1028999c
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x1028a250
Capabilities:
Connect socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [ebx + 8]
push dword [edi + 0x14]
lea eax, [edi + 0x18]
push eax
push dword [edi + 0x98]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1028a28e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [edi + 0xbc]
push eax
push dword [esp + 0x18]
call fcn.1028a660
add esp, 0xc
pop edi
pop ebx
ret
push dword [esp + 0x10]
mov byte [edi + 0x15e], 1
push ebx
call fcn.1028a3e0
push dword [edi + 0xec]
cmp dword [edi], 5
lea eax, [edi + 0xbc]
push eax
push dword [edi + 0x120]
lea eax, [edi + 0xf0]
mov ecx, 0x102c8a48
push eax
push dword [edi + 0x98]
mov eax, str.QUIC
cmovne eax, ecx
push eax
push str._s_socket__d_connected:___s:_d_______s:_d_
push ebx
push dword [esp + 0x38]
call fcn.1026e9e0
push 1
push dword [edi + 0x98]
call fcn.10293220
add esp, 0x34
xor eax, eax
pop edi
pop ebx
ret

Function at 0x1028a300
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x102dd418]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x10c]
push esi
push edi
mov edi, dword [esp + 0x120]
mov eax, dword [ebx]
push 0
push dword [esp + 0x120]
mov eax, dword [eax + 8]
push ecx
mov dword [edi], 0
push dword [eax + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1028a39f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x1028a36c
mov dword [edi], 0x51
jmp 0x1028a39c
push 0x100
lea eax, [esp + 0x10]
push eax
push esi
call fcn.1027f6c0
push eax
push str.Recv_failure:__s
push dword [ebx + 4]
call fcn.1026e880
mov eax, dword [ebx + 4]
add esp, 0x18
mov dword [eax + 0x8e4], esi
mov dword [edi], 0x38
or esi, 0xffffffff
push dword [edi]
push esi
push dword [esp + 0x124]
push str.nw_in_read_len_zu______d__err_d
push dword [ebx]
push dword [ebx + 4]
call fcn.1026e9e0
mov ecx, dword [esp + 0x124]
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1029978f
add esp, 0x104
ret