joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475814
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4758b3
cmp dword [ebx + 0x94], 0
jne 0x4758ad
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x47579c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4758ad
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x475873
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4758ad
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041e2dc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x475882
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x475acc
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x58af20]
cmp dword [eax + 0x30], 0
je 0x475c29
test bl, bl
jne 0x475b7a
cmp dword [esi + 0x9c], 0
jne 0x475b6f
mov eax, esi
call fcn.0047841c
push eax
push 0x4759f8
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x475b40
mov eax, dword [0x58af20]
call fcn.00478afc
test al, al
je 0x475b40
mov eax, dword [0x58af44]
call fcn.00406a34
mov edi, eax
cmp edi, 0
jl 0x475b40
push 0
mov eax, dword [0x58af44]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x475b2a
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x475b6f
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041e2dc
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x475b4f
inc dword [esi + 0x9c]
jmp 0x475c29
cmp dword [esi + 0x9c], 0
jle 0x475c29
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x475c29
cmp dword [esi + 0x44], 0
je 0x475bd5
mov eax, dword [0x58af20]
call fcn.00478afc
test al, al
je 0x475bd5
mov eax, dword [0x58af44]
call fcn.00406a34
mov edi, eax
cmp edi, 0
jl 0x475bd5
push 5
mov eax, dword [0x58af44]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x475bbf
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x475c04
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041e2dc
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x475be4
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x58af44
mov ecx, 1
mov edx, dword [0x4759d8]
call fcn.00406be8
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x476710
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x47677a
mov eax, ebx
call fcn.00478afc
test al, al
jne 0x47677a
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004056d4
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x476767
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x476787
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405638
jmp 0x476787
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405638
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x477c20
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x477c8e
mov eax, esi
call fcn.004606b8
test al, al
je 0x477c8e
mov eax, dword [ebx + 0x84]
call fcn.00460318
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x477c8e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x477c82
push 0
mov eax, dword [ebx + 0x84]
call fcn.00460318
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004580a8
jmp 0x477c8e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00477a5c
pop esi
pop ebx
ret
Function at 0x47c5a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov dword [esp], edx
movzx ebx, word [0x573138]
cmp dword [esp], 0x20
jge 0x47c5e4
mov edx, dword [esp]
dec edx
test edx, edx
jl 0x47c627
inc edx
xor esi, esi
movzx edi, bx
shr edi, 8
movzx edi, word [edi*2 + 0x572f38]
shl ebx, 8
xor di, bx
movzx ebx, byte [eax + esi]
xor di, bx
mov ebx, edi
inc esi
dec edx
jne 0x47c5c1
jmp 0x47c627
mov edx, dword [esp]
test edx, edx
jns 0x47c5ee
add edx, 0x1f
sar edx, 5
inc edx
xor esi, esi
mov edi, dword [esp]
dec edi
mov dword [esp + 4], edi
cmp esi, dword [esp + 4]
jge 0x47c627
movzx edi, bx
shr edi, 8
movzx edi, word [edi*2 + 0x572f38]
shl ebx, 8
xor di, bx
movzx ebx, byte [eax + esi]
xor di, bx
mov ebx, edi
add esi, edx
cmp esi, dword [esp + 4]
jl 0x47c602
mov esi, 2
movzx eax, bx
shr eax, 8
movzx eax, word [eax*2 + 0x572f38]
shl ebx, 8
xor ax, bx
movzx edx, cx
shr edx, 8
xor ax, dx
mov ebx, eax
shl cx, 8
dec esi
jne 0x47c62c
mov eax, ebx
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x47c65c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov dword [esp], edx
mov ebx, dword [0x57353c]
cmp dword [esp], 0x20
jge 0x47c69b
mov edx, dword [esp]
dec edx
test edx, edx
jl 0x47c6da
inc edx
xor esi, esi
mov edi, ebx
shr edi, 0x18
mov edi, dword [edi*4 + 0x57313c]
shl ebx, 8
xor edi, ebx
movzx ebx, byte [eax + esi]
xor edi, ebx
mov ebx, edi
inc esi
dec edx
jne 0x47c67c
jmp 0x47c6da
mov edx, dword [esp]
test edx, edx
jns 0x47c6a5
add edx, 0x1f
sar edx, 5
inc edx
xor esi, esi
mov edi, dword [esp]
dec edi
mov dword [esp + 4], edi
cmp esi, dword [esp + 4]
jge 0x47c6da
mov edi, ebx
shr edi, 0x18
mov edi, dword [edi*4 + 0x57313c]
shl ebx, 8
xor edi, ebx
movzx ebx, byte [eax + esi]
xor edi, ebx
mov ebx, edi
add esi, edx
cmp esi, dword [esp + 4]
jl 0x47c6b9
mov esi, 4
mov eax, ebx
shr eax, 0x18
mov eax, dword [eax*4 + 0x57313c]
shl ebx, 8
xor eax, ebx
mov edx, ecx
shr edx, 0x18
xor eax, edx
mov ebx, eax
shl ecx, 8
dec esi
jne 0x47c6df
mov eax, ebx
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x47d598
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.00403e38
ret
Function at 0x47d778
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405a64
xor eax, eax
push ebp
push 0x47d8c6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
call fcn.0047d598
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00405a74
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x47d8a5
xor eax, eax
push ebp
push 0x47d89e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x47d887
xor eax, eax
push ebp
push 0x47d880
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x47d869
xor eax, eax
push ebp
push 0x47d862
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ecx, eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
call fcn.0047d5d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d869
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d887
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d8a5
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x6c]
call fcn.0047d654
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d8cd
lea eax, [ebp - 4]
call fcn.004055e4
ret

Function at 0x47dad4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jle 0x47daf5
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
movzx ebx, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x47dae2
pop edi
pop esi
pop ebx
ret
Function at 0x48a1b4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x48a23d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x58b098
push 0x202
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x48a227
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.004111f8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x48a254
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x582e98]
mov dl, 1
mov eax, dword [0x489930]
call fcn.00411b34
call fcn.00404f18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a244
lea eax, [ebp - 0x1c]
call fcn.004055e4
ret

Function at 0x48a8e4
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, eax
xor esi, esi
xor edi, edi
movzx eax, byte [0x48a940]
cmp al, byte [ebx + 0x28]
je 0x48a908
mov esi, 0x401
mov eax, ebx
call fcn.0048aa50
mov edi, eax
movzx eax, byte [ebx + 0x28]
push eax
push esi
push edi
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
movzx eax, byte [0x48a940]
cmp al, byte [ebx + 0x28]
jne 0x48a938
xor eax, eax
mov dword [esp], eax
push esp
push 0x8004667e
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_ioctlsocket
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x48a9cc
Capabilities:
Connect socket

Disassembly:
push esi
push edi
mov edi, eax
mov eax, edi
call fcn.0048a8e4
mov cl, 1
mov edx, edi
mov eax, edi
mov si, 0xffff
call fcn.004048a0
mov edx, dword [0x58b230]
mov eax, 0x58b244
mov ecx, 5
call fcn.004035b8
push 0x10
lea eax, [edi + 0x18]
push eax
mov eax, dword [edi + 4]
push eax
call sub.wsock32.dll_connect
mov edx, eax
mov ecx, 0x48aa48
mov eax, edi
call fcn.0048a0f8
mov byte [edi + 0x29], 0
test byte [edi + 0x28], 0x10
jne 0x48aa3b
cmp dword [edi + 4], 0xffffffff
setne al
mov byte [edi + 8], al
mov cl, 2
mov edx, edi
mov eax, edi
mov si, 0xffff
call fcn.004048a0
pop edi
pop esi
ret

Function at 0x48aa6c
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00405a74
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00403e38
test ebx, ebx
je 0x48aabb
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
movzx ecx, byte [edx]
mov byte [esp + 4], cl
movzx ecx, byte [edx + 1]
mov byte [esp + 5], cl
movzx ecx, byte [edx + 2]
mov byte [esp + 6], cl
movzx eax, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x48ab98
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x48abc9
mov ecx, dword [0x582bec]
mov dl, 1
mov eax, dword [0x489930]
call fcn.00411af8
call fcn.00404f18
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x48abf6
mov ecx, dword [0x582aa8]
mov dl, 1
mov eax, dword [0x489930]
call fcn.00411af8
call fcn.00404f18
xor eax, eax
push ebp
push 0x48ac82
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0048a43c
mov eax, dword [ebp - 4]
call fcn.0048a478
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.004048a0
cmp byte [ebp + 8], 0
je 0x48ac5e
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0048ab00
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0048a9cc
jmp 0x48ac78
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0048a4ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48ac9f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48ae80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0048a774
xor eax, eax
push ebp
push 0x48b008
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x48aff2
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x48aecc
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x48aed6
call fcn.00404fc4
jmp 0x48b00f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00421110
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x48afe7
mov edx, dword [0x58b228]
mov eax, 0x58b234
mov ecx, 5
call fcn.004035b8
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x48af9a
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x48af87
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004048a0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0048ae38
pop ecx
mov eax, dword [ebp - 4]
movzx edx, byte [0x48b01c]
cmp dl, byte [eax + 0x28]
je 0x48afee
call fcn.00411a10
jmp 0x48afee
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00421130
jmp 0x48afee
cmp edi, ebx
jge 0x48afb6
mov eax, dword [ebp - 0xc]
add eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00421130
jmp 0x48aed6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00421110
cmp edx, dword [esp + 4]
jne 0x48afd6
cmp eax, dword [esp]
pop edx
pop eax
jne 0x48aed6
push ebp
call fcn.0048ae38
pop ecx
jmp 0x48afee
push ebp
call fcn.0048ae38
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b00f
mov eax, dword [ebp - 4]
call fcn.0048a780
ret
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48b020
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48b157
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0048a774
xor eax, eax
push ebp
push 0x48b13a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x48b070
call fcn.00404fc4
jmp 0x48b141
mov edx, dword [0x58b228]
mov eax, 0x58b234
mov ecx, 5
call fcn.004035b8
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x48b124
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x48b124
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004048a0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x48b124
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.004111f8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x48b170
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x582e98]
mov dl, 1
mov eax, dword [0x489930]
call fcn.00411b34
call fcn.00404f18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b141
mov eax, dword [ebp - 4]
call fcn.0048a780
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b15e
lea eax, [ebp - 0x28]
call fcn.004055e4
ret
Function at 0x48b1c0
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48b31f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0048a774
xor eax, eax
push ebp
push 0x48b302
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x48b225
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x48b225
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x48b2ec
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x48b238
call fcn.00404fc4
jmp 0x48b309
mov edx, dword [0x58b22c]
mov eax, 0x58b23c
mov ecx, 5
call fcn.004035b8
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x48b2ec
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x48b2ec
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004048a0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x48b2ec
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.004111f8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x48b338
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x582e98]
mov dl, 1
mov eax, dword [0x489930]
call fcn.00411b34
call fcn.00404f18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b309
mov eax, dword [ebp - 4]
call fcn.0048a780
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b326
lea eax, [ebp - 0x28]
call fcn.004055e4
ret

Function at 0x48b97c
Capabilities:
Get socket status

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ecx, edx
mov ebx, eax
mov eax, ecx
mov esi, 0x3e8
cdq
idiv esi
mov dword [esp], eax
mov eax, ecx
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [esp + 4], eax
lea eax, [esp + 8]
call fcn.00489878
lea edx, [esp + 8]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
call fcn.00489868
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
setg al
add esp, 0x10c
pop esi
pop ebx
ret
Function at 0x48bd9c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push 0x48be68
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
je 0x48be65
push 0x48be74
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58b22c], eax
push 0x58b254
push 0x40
push 8
mov eax, dword [0x58b22c]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x48bded
mov edx, 0x58b23c
mov eax, dword [0x58b22c]
mov ecx, 5
call fcn.004035b8
push 0x48be7c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58b228], eax
push 0x58b24c
push 0x40
push 8
mov eax, dword [0x58b228]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x48be29
mov edx, 0x58b234
mov eax, dword [0x58b228]
mov ecx, 5
call fcn.004035b8
push 0x48be84
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58b230], eax
push 0x58b25c
push 0x40
push 8
mov eax, dword [0x58b230]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x48be65
mov edx, 0x58b244
mov eax, dword [0x58b230]
mov ecx, 5
call fcn.004035b8
pop ebx
ret

Function at 0x48bfe8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48c0e8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040567c
lea eax, [ebp - 4]
call fcn.00405acc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405a74
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x48c0d2
mov eax, ebx
call fcn.0040320c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x48c0cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405a74
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x48c0b5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x48c0fc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x48c0b5
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c0d2
mov eax, dword [ebp - 0x10]
call fcn.00403228
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c0ef
lea eax, [ebp - 4]
call fcn.004055e4
ret