joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472c92
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37c8
call fcn.004aa360
mov eax, dword [0x4f5470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov ebx, edi
mov esi, edi
push esi
lea eax, [ebp - 0x104]
push str..PhysicalDrive_d
push eax
call fcn.004a7cd6
add esp, 0xc
lea eax, [ebp - 0x104]
push edi
push edi
push 3
push edi
push 3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x37c8], eax
cmp eax, 0xffffffff
je 0x472e7b
mov dword [ebp - 0x37c4], edi
xor eax, eax
lea edi, [ebp - 0x37c0]
stosd dword es:[edi], eax
push 0x2710
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x33cc]
xor edi, edi
push edi
push eax
mov dword [ebp - 0x37c0], edi
mov dword [ebp - 0x37bc], edi
call fcn.004a84b0
add esp, 0xc
lea eax, [ebp - 0x37c4]
push edi
mov edi, dword [ebp - 0x37c8]
push eax
push 0x2710
lea eax, [ebp - 0x33cc]
push eax
push 0xc
lea eax, [ebp - 0x37c0]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x472e72
lea eax, [ebp - 0xcbc]
push eax
push 0
push dword [ebp - 0x33c0]
lea eax, [ebp - 0x33cc]
push eax
call fcn.00472e98
lea eax, [ebp - 0x8d4]
push eax
push 0
push dword [ebp - 0x33bc]
lea eax, [ebp - 0x33cc]
push eax
call fcn.00472e98
lea eax, [ebp - 0x37b4]
push eax
push 0
push dword [ebp - 0x33b8]
lea eax, [ebp - 0x33cc]
push eax
call fcn.00472e98
lea eax, [ebp - 0x4ec]
push eax
push 1
push dword [ebp - 0x33b4]
lea eax, [ebp - 0x33cc]
push eax
call fcn.00472e98
add esp, 0x40
cmp byte [0x4f7548], 0
jne 0x472e38
movsx eax, byte [ebp - 0x4ec]
push eax
call fcn.004ad936
pop ecx
test eax, eax
jne 0x472df2
movsx eax, byte [ebp - 0x4d9]
push eax
call fcn.004ad936
pop ecx
test eax, eax
je 0x472e38
xor eax, eax
cmp byte [ebp - 0x4ec], 0x20
jne 0x472e08
inc eax
cmp byte [ebp + eax - 0x4ec], 0x20
je 0x472dfd
lea ecx, [ebp - 0x4ec]
mov edx, 0x4f7548
add ecx, eax
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x472e17
xor ecx, ecx
mov al, byte [ebp + ecx - 0x8d4]
mov byte [ecx + 0x4f7948], al
inc ecx
test al, al
jne 0x472e23
xor ebx, ebx
inc ebx
push 0x2710
lea eax, [ebp - 0x33cc]
push 0
push eax
call fcn.004a84b0
add esp, 0xc
lea eax, [ebp - 0x37c4]
xor ecx, ecx
push ecx
push eax
push 0x2710
lea eax, [ebp - 0x33cc]
push eax
push ecx
push ecx
push 0x700a0
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc esi
cmp esi, 0x10
jl 0x472cb2
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a7e44
mov esp, ebp
pop ebp
ret

Function at 0x47300c
Capabilities:
Hash data with md5

Disassembly:
push esi
push 0x40
mov esi, ecx
push 0
push esi
call fcn.004a84b0
and dword [esi + 0x44], 0
add esp, 0xc
and dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x48], 0x67452301
mov dword [esi + 0x4c], 0xefcdab89
mov dword [esi + 0x50], 0x98badcfe
mov dword [esi + 0x54], 0x10325476
pop esi
ret
Function at 0x4740c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
test edi, edi
jne 0x4740e2
xor al, al
jmp 0x47414e
push esi
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a7e15
pop ecx
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x474140
mov edi, dword [ebp + 8]
mov ecx, edi
push eax
push esi
call fcn.00408730
cmp dword [edi + 0x14], 8
jb 0x47411c
mov ecx, dword [edi]
jmp 0x47411e
mov ecx, edi
mov eax, dword [edi + 0x10]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x47413e
mov ebx, 0x4efc78
push ebx
call fcn.004047d0
pop ecx
push eax
push ebx
mov ecx, edi
call fcn.004069c0
mov bl, 1
test esi, esi
je 0x47414b
push esi
call fcn.004a7e10
pop ecx
mov al, bl
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x475226
Capabilities:
Get token membership

Disassembly:
call fcn.004164c0
cmp eax, 3
jl 0x475246
call fcn.0047557c
test al, al
je 0x475246
call fcn.0041dc80
test al, al
jne 0x47532b
jmp fcn.0047557c
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push 8
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x475381
push dword [ebp - 8]
lea ecx, [ebp - 4]
call fcn.0040e690
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
push eax
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
push 0x14
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x475381
cmp dword [ebp - 0xc], ebx
setne bl
lea ecx, [ebp - 4]
call fcn.0040e6f0
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47557c
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4f5470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4755bd
xor al, al
jmp 0x4755e5
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test esi, esi
pop esi
je 0x4755b9
cmp dword [ebp - 0x10], ebx
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a7e44
mov esp, ebp
pop ebp
ret

Function at 0x476ff9
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4f5470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x20001
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x477028
xor al, al
jmp 0x477077
push 4
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edx, eax
mov dword [ebp - 0x24], edx
test edx, edx
je 0x47706e
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x477065
cmp dword [ebp - 0x1c], 4
je 0x477063
cmp dword [ebp - 0x1c], 2
jne 0x477065
mov bl, 1
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a7e44
mov esp, ebp
pop ebp
ret
Function at 0x478e58
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x70
push 0
push esi
call fcn.004a84b0
add esp, 0xc
mov dword [esi], 0x6a09e667
xor eax, eax
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
inc eax
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
pop esi
pop ebp
ret

Function at 0x4825f5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
push esi
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor ecx, eax
dec esi
jne 0x4825fd
mov dword [edx*4 + 0x4fb240], ecx
inc edx
cmp edx, 0x100
jb 0x4825f8
mov esi, 0x800
jmp 0x482644
mov ecx, dword [edx*4 + 0x4fae40]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x4fb240]
mov dword [edx*4 + 0x4fb240], ecx
inc edx
cmp edx, esi
jb 0x482628
mov dword [0x4f80c8], 0x48314e
call fcn.00482fcb
mov ecx, dword [0x4f80c8]
test eax, eax
mov edx, 0x4831eb
cmove ecx, edx
mov dword [0x4f80c8], ecx
pop esi
ret
Function at 0x4834a9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0xc
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
mov esi, dword [esi]
and esi, 7
cmp eax, 5
jae 0x4834ca
xor eax, eax
jmp 0x483611
add dword [ebp + 0x10], 5
lea ecx, [eax - 4]
mov edx, dword [ebp + 8]
push ebx
or ebx, 0xffffffff
add ecx, edx
mov dword [ebp + 0xc], ecx
add edx, edi
mov dword [ebp - 4], edx
cmp edx, ecx
jae 0x4834f6
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x4834f3
inc edx
cmp edx, ecx
jb 0x4834e6
mov dword [ebp - 4], edx
mov edi, edx
sub edi, dword [ebp + 8]
cmp edx, ecx
jae 0x4835f5
mov ecx, edi
sub ecx, ebx
cmp ecx, 3
jbe 0x48354c
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [ebp - 0xc], ebx
test al, al
je 0x48351e
cmp al, 0xff
jne 0x483575
movzx ecx, al
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
mov edx, dword [ebp + 0x10]
shl ecx, 8
or ecx, eax
cmp dword [ebp + 0x18], 0
je 0x483589
lea ebx, [ecx + edi]
add ebx, edx
jmp 0x48358f
dec ecx
shl esi, cl
and esi, 7
je 0x48350e
movzx eax, byte [esi + 0x4d86cc]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x4d86c4], 0
mov al, byte [ecx + 4]
je 0x483573
test al, al
je 0x483573
cmp al, 0xff
jne 0x48350e
mov ebx, edi
and esi, 3
add esi, esi
or esi, 1
inc edi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
jmp 0x4834dd
mov ebx, ecx
sub ebx, edi
sub ebx, edx
test esi, esi
je 0x4835c9
movzx eax, byte [esi + 0x4d86cc]
shl eax, 3
push 0x18
pop ecx
sub ecx, eax
mov dword [ebp - 8], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x4835b1
cmp al, 0xff
jne 0x4835c9
xor eax, eax
push 0x20
pop ecx
sub ecx, dword [ebp - 8]
inc eax
shl eax, cl
mov ecx, eax
mov dword [ebp - 8], eax
dec ecx
xor ecx, ebx
jmp 0x48353f
mov edx, dword [ebp - 4]
mov eax, ebx
shr eax, 0x18
and al, 1
dec al
not al
mov byte [edx + 1], bl
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
mov ebx, dword [ebp - 0xc]
shr eax, 8
add edi, 5
mov byte [edx + 2], al
jmp 0x48357e
mov edx, edi
xor eax, eax
sub edx, ebx
pop ebx
lea ecx, [edx - 1]
shl esi, cl
and esi, 7
cmp edx, 3
cmova esi, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48515d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4f5470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
and dword [ebp - 0x5c], 0
push ebx
push edi
push 0
mov dword [ebp - 0x60], eax
or edi, 0xffffffff
mov eax, dword [ebp + 0xc]
mov ebx, edi
push 0x8000
push eax
mov dword [ebp - 0x64], ecx
call fcn.004af385
add esp, 0xc
mov dword [ebp - 0x58], eax
test eax, eax
jns 0x4851a6
push 6
pop eax
jmp 0x485287
push esi
lea ecx, [ebp - 0x54]
push ecx
push eax
call fcn.004853ff
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x48525c
push eax
push 0x8000
push dword [ebp - 0x60]
call fcn.004af385
mov edi, eax
add esp, 0xc
test edi, edi
jns 0x4851dc
push 6
pop esi
jmp 0x48525c
lea eax, [ebp - 0x34]
push eax
push edi
call fcn.004af00f
pop ecx
pop ecx
test eax, eax
jne 0x4851d4
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x20], eax
je 0x4851f8
push 8
jmp 0x4851d6
push eax
call fcn.004adfde
mov esi, eax
mov dword [ebp - 0x5c], esi
pop ecx
test esi, esi
jne 0x48520b
inc esi
jmp 0x48525c
push dword [ebp - 0x4c]
push esi
push edi
call fcn.004bb6c1
add esp, 0xc
cmp eax, dword [ebp - 0x4c]
jne 0x4851d4
push dword [ebp - 0x4c]
push esi
call fcn.0047d79a
pop ecx
pop ecx
cmp eax, dword [ebp - 0x48]
je 0x485231
push 4
jmp 0x4851d6
push 0
push 0x8301
push dword [ebp - 0x64]
call fcn.004af385
mov ebx, eax
add esp, 0xc
test ebx, ebx
js 0x4851d4
push ebx
push esi
push dword [ebp - 0x58]
lea eax, [ebp - 0x54]
push eax
call fcn.00485297
add esp, 0x10
mov esi, eax
push dword [ebp - 0x5c]
call fcn.004a7dd8
push dword [ebp - 0x58]
call fcn.004abefa
pop ecx
pop ecx
test edi, edi
js 0x485279
push edi
call fcn.004abefa
pop ecx
test ebx, ebx
js 0x485284
push ebx
call fcn.004abefa
pop ecx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004a7e44
mov esp, ebp
pop ebp
ret
Function at 0x485297
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebx + 0x14]
add edi, dword [ebx + 0x18]
mov eax, dword [ebx + 8]
add eax, dword [ebp + 0x10]
add edi, dword [ebx + 0x1c]
push edi
mov dword [ebp - 8], eax
call fcn.004adfde
pop ecx
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x4852ca
inc eax
jmp 0x4853f9
push esi
xor esi, esi
test edi, edi
je 0x485308
mov edx, bind
mov eax, edi
cmp edi, edx
cmovg eax, edx
push eax
push ecx
push dword [ebp + 0xc]
call fcn.004bb6c1
add esp, 0xc
test eax, eax
js 0x485301
sub edi, eax
test eax, eax
jne 0x4852fc
test edi, edi
jne 0x4853ea
mov ecx, dword [ebp - 4]
jmp 0x4852cd
push 6
jmp 0x4853ec
mov eax, dword [ebx + 0x14]
mov edi, ecx
add eax, ecx
mov ecx, dword [ebx + 0x18]
add ecx, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x1c]
mov ebx, dword [ebp - 0xc]
add eax, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_ntohl]
push dword [edi + 4]
mov dword [edi], eax
call dword [sym.imp.WS2_32.dll_ntohl]
push dword [edi + 8]
mov dword [edi + 4], eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov edx, dword [edi]
mov ecx, dword [ebp + 0x10]
mov dword [edi + 8], eax
lea eax, [edx + ecx]
cmp eax, dword [ebp - 8]
ja 0x4853ea
lea eax, [edx + ebx]
cmp eax, dword [ebp - 0x10]
ja 0x4853ea
mov dword [ebp - 0xc], esi
test edx, edx
je 0x485382
mov edx, ebx
sub ecx, ebx
mov al, byte [ecx + edx]
add byte [edx], al
inc esi
inc edx
cmp esi, dword [edi]
jb 0x485375
xor esi, esi
mov eax, dword [edi]
push eax
push ebx
push dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
call fcn.004aadb3
mov ecx, dword [ebp - 0xc]
add esp, 0xc
cmp eax, ecx
jne 0x4853e6
add dword [ebp + 0x10], ecx
add ebx, ecx
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 8]
add eax, ecx
cmp eax, dword [ebp - 0x14]
ja 0x4853ea
mov eax, dword [edi + 4]
push eax
push ecx
push dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
call fcn.004aadb3
mov ecx, dword [ebp - 0xc]
add esp, 0xc
cmp eax, ecx
jne 0x4853e6
add dword [ebp + 8], ecx
mov ecx, dword [ebp + 0x10]
add ecx, dword [edi + 8]
mov dword [ebp + 0x10], ecx
cmp ecx, dword [ebp - 8]
ja 0x4853ea
add edi, 0xc
cmp edi, dword [ebp - 0x18]
jb 0x48532b
jmp 0x4853ed
push 7
jmp 0x4853ec
push 8
pop esi
push dword [ebp - 4]
call fcn.004a7dd8
pop ecx
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4853ff
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4f5470]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 0xc]
push 0x20
push edi
push dword [ebp + 8]
call fcn.004bb6c1
add esp, 0xc
cmp eax, 0x20
je 0x48542a
push 6
jmp 0x4854a1
push esi
push dword [edi + 8]
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
call esi
push dword [edi + 0xc]
mov dword [edi + 8], eax
call esi
push dword [edi + 0x10]
mov dword [edi + 0xc], eax
call esi
push dword [edi + 0x14]
mov dword [edi + 0x10], eax
call esi
push dword [edi + 0x18]
mov dword [edi + 0x14], eax
call esi
push dword [edi + 0x1c]
mov dword [edi + 0x18], eax
call esi
mov dword [edi + 0x1c], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call fcn.004af00f
pop ecx
pop ecx
pop esi
test eax, eax
jne 0x485426
cmp dword [edi], 0x4944424d
jne 0x48549f
cmp dword [edi + 4], 0x30314646
jne 0x48549f
mov ecx, dword [edi + 0x14]
add ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
add eax, 0x20
add eax, ecx
sub eax, dword [ebp - 0x20]
neg eax
sbb eax, eax
and eax, 8
jmp 0x4854a2
push 8
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004a7e44
mov esp, ebp
pop ebp
ret

Function at 0x485de1
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4f5470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4f8c18]
mov ecx, eax
inc eax
mov dword [0x4f8c18], eax
test ecx, ecx
je 0x485e0c
xor eax, eax
jmp 0x485e92
push ebx
mov ebx, dword [ebp + 8]
mov dword [fcn.004adfde], 0x4adfde
mov dword [fcn.004a7dd8], 0x4a7dd8
mov dword [fcn.004adf33], 0x4adf33
mov dword [fcn.004ae34b], 0x4ae34b
mov dword [fcn.004ac7a8], 0x4ac7a8
test bl, 2
je 0x485e76
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x485e7f
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x485e6e
shr eax, 8
cmp al, 2
je 0x485e76
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x485e7f
call fcn.004068a0
test eax, eax
je 0x485e84
push 2
pop eax
jmp 0x485e91
mov dword [0x4f8c1c], ebx
call fcn.00491063
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret
Function at 0x488948
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x48
push 1
call dword [0x4f53ec]
mov esi, dword [ebp + 8]
mov edi, eax
pop ecx
pop ecx
push 8
mov dword [esi + 0x3bc], edi
pop ebx
test edi, edi
je 0x488a08
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [esi + 0x3b4], ecx
mov dword [esi + 0x3b8], ecx
mov dword [esi + 0x3b0], ecx
push eax
push dword [ebp + 0xc]
mov dword [esi + 0x3ac], eax
or dword [edi + 4], 0xffffffff
mov dword [edi], ecx
lea ecx, [edi + 0x10]
push ecx
call fcn.00488a28
add esp, 0x10
test eax, eax
je 0x488a08
mov eax, dword [esi + 0x3a8]
test eax, eax
je 0x4889c3
push eax
call dword [0x4f53e0]
and dword [esi + 0x3a8], 0
pop ecx
push dword [ebp + 0xc]
call dword [0x4f53e8]
mov dword [esi + 0x3a8], eax
pop ecx
test eax, eax
je 0x488a08
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x488a08
lea eax, [edi + 0x10]
push eax
push 0x4888bb
call fcn.00492ad8
mov dword [edi], eax
pop ecx
pop ecx
test eax, eax
jne 0x488a23
call fcn.004adaf7
mov ebx, dword [eax]
lea eax, [esi + 0x3a8]
push eax
call fcn.004887f5
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
inc eax
jmp 0x488a1e

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [edi + eax*4 + 0x130]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov esi, eax
and dword [ebx], 0
cmp esi, 0xffffffff
jne 0x4901e5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x4901bd
xor esi, esi
mov dword [ebx], 0x51
jmp 0x4901e5
push eax
push edi
call fcn.004854b1
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.0048feb2
mov eax, dword [edi]
add esp, 0x14
mov ecx, dword [ebp + 8]
mov dword [eax + 0x856c], ecx
mov dword [ebx], 0x37
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x49036e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x164]
test eax, eax
je 0x490396
push dword [esi + 0xf4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
jmp 0x4903ce
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4903cc
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
push 2
add eax, 0x4dab84
push eax
call fcn.004aad31
push dword [esi + 0xf0]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004aad31
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x490528
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov ecx, dword [eax + 0x530]
cmp ecx, edi
je 0x49057c
mov eax, dword [eax + 0x524]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x49057c
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x490555
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
mov esi, dword [eax + 0x130]
jne 0x49057c
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
cmove esi, edi
mov eax, esi
jmp 0x49057e
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4906cf
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4f5470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x19c], 0
mov ebx, dword [edi]
jne 0x4907ef
lea eax, [ebp - 0x108]
mov esi, 0x80
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x490741
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004854b1
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0048feb2
add esp, 0x18
jmp 0x4907f6
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], esi
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x49077a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004854b1
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x490733
lea eax, [edi + 0xcc]
push eax
lea eax, [edi + 0x9e]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00490b51
add esp, 0xc
test eax, eax
jne 0x4907b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004854b1
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x490733
lea eax, [edi + 0x100]
push eax
lea eax, [edi + 0xd0]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00490b51
add esp, 0xc
test eax, eax
jne 0x4907ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004854b1
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x490733
push edi
call fcn.00490582
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a7e44
mov esp, ebp
pop ebp
ret
Function at 0x490f2f
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 4
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 1
push 6
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x490f77
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004854b1
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0048ff48
add esp, 0x14
jmp 0x490f84
push str.TCP_NODELAY_set_n
push esi
call fcn.0048ff48
pop ecx
pop ecx
pop edi
pop esi
pop ebp
ret

Function at 0x491853
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov cl, byte [ebp + 8]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x491864
jmp dword [eax*4 + 0x4918d7]
mov al, 0x41
pop ebp
ret
mov al, 0x42
pop ebp
ret
mov al, 0x43
pop ebp
ret
mov al, 0x44
pop ebp
ret
mov al, 0x45
pop ebp
ret
mov al, 0x46
pop ebp
ret
mov al, 0x47
pop ebp
ret
mov al, 0x48
pop ebp
ret
mov al, 0x49
pop ebp
ret
mov al, 0x4a
pop ebp
ret
mov al, 0x4b
pop ebp
ret
mov al, 0x4c
pop ebp
ret
mov al, 0x4d
pop ebp
ret
mov al, 0x4e
pop ebp
ret
mov al, 0x4f
pop ebp
ret
mov al, 0x50
pop ebp
ret
mov al, 0x51
pop ebp
ret
mov al, 0x52
pop ebp
ret
mov al, 0x53
pop ebp
ret
mov al, 0x54
pop ebp
ret
mov al, 0x55
pop ebp
ret
mov al, 0x56
pop ebp
ret
mov al, 0x57
pop ebp
ret
mov al, 0x58
pop ebp
ret
mov al, 0x59
pop ebp
ret
mov al, 0x5a
pop ebp
ret
mov al, cl
pop ebp
ret