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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
mov edi, ecx
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, ebx
je 0x475c93
push esi
cmp eax, 0xffffffff
je 0x475c7d
mov eax, dword [ebp - 0x1c]
cmp eax, 0x8012
je 0x475c92
cmp dword [edi + 0xc], ebx
je 0x475c36
lea ecx, [eax - 0x100]
cmp ecx, 9
ja 0x475c36
cmp byte [edi + 8], bl
jne 0x475c7d
mov esi, 0x100
cmp eax, esi
jne 0x475bfa
push dword [ebp - 0x20]
mov ecx, dword [edi + 0xc]
push dword [ebp - 0x18]
mov eax, dword [ecx]
push 0xfffffffffffffffd
pop edx
call dword [eax + 0x30]
test eax, eax
jne 0x475c7d
lea eax, [ebp - 4]
push eax
push 0x475b47
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 4], ebx
jne 0x475c36
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 4]
cmp eax, dword [edi + 0x10]
jne 0x475c27
cmp dword [ebp - 0x1c], esi
jne 0x475c36
cmp dword [ebp - 0x18], 9
jne 0x475c69
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x475c7d
cmp dword [ebp - 0x1c], 0x20a
jne 0x475c69
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov esi, eax
cmp esi, ebx
je 0x475c69
cmp esi, dword [ebp - 0x20]
je 0x475c69
push ebx
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x56bfa4]
jne 0x475c69
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, ebx
jne 0x475ba8
pop esi
mov eax, dword [ebp - 0x18]
pop edi
pop ebx
leave
ret

Function at 0x47728f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
movzx eax, dx
push 5
mov esi, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x47730c
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4772e8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4772ec
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x47730b
push esi
push dword [ebp - 4]
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x477309
mov dword [eax], esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x477f09
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
push ebx
mov dword [ebp - 4], edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
and dword [ebp - 0x10], 0
and dword [ebp - 8], 0
and dword [ebp - 0xc], 0
mov esi, eax
push 2
inc esi
push esi
lea ecx, [ebp - 0x10]
call fcn.004a1126
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp - 4]
push esi
push dword [ebp - 0x10]
call fcn.004a1043
and dword [ebp - 8], 0
lea ecx, [ebp - 0x10]
call fcn.004a0bd2
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x47a0cb
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
inc edi
push edi
push 0
push 2
push 2
mov esi, ecx
call fcn.0047f197
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x47a105
mov ebx, dword [esi]
push 0
push edi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, esi
call dword [ebx + 0xc]
xor al, al
jmp 0x47a1e5
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push eax
mov dword [ebp - 4], edi
call ebx
test eax, eax
jne 0x47a0fe
push 0x1a73
push eax
lea ecx, [ebp - 0x24]
call fcn.0049ca27
push eax
mov ecx, esi
call fcn.0047d526
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
push 0x524d84
call edi
push 0x524d7c
mov dword [ebp - 0x10], eax
call edi
push 8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0xc
push 0
push dword [esi + 4]
call ebx
test eax, eax
jne 0x47a0fe
mov byte [ebp - 8], al
lea edi, [ebp - 7]
stosw word es:[edi], ax
push 4
stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
push 9
push 0
push dword [esi + 4]
call ebx
test eax, eax
jne 0x47a0fe
push 4
lea eax, [ebp - 4]
push eax
push 0xb
push 0
push dword [esi + 4]
mov dword [ebp - 4], 1
call ebx
test eax, eax
jne 0x47a0fe
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push dword [esi + 4]
mov edi, 0xff
mov dword [ebp - 4], edi
call ebx
test eax, eax
jne 0x47a0fe
push 4
lea eax, [ebp - 4]
push eax
push 0xa
push 0
push dword [esi + 4]
mov dword [ebp - 4], edi
call ebx
test eax, eax
jne 0x47a0fe
mov ecx, esi
call fcn.0047dbf5
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47a1f4
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push edi
movzx edi, word [esi + 0x10]
call fcn.004a0e99
push eax
movzx eax, di
push eax
push 0x524db0
lea eax, [ebp - 0x194]
push 0x100
push eax
call fcn.0049f8ba
add esp, 0x14
push 5
pop ecx
lea edi, [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
mov eax, 0x1a73
mov word [ebp - 4], ax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x95], 0
call fcn.004729f6
lea eax, [ebp - 0x194]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x47a263
push dword [ebp + 8]
sub eax, ecx
lea ecx, [ebp - 0x94]
push ecx
push 0
push eax
lea eax, [ebp - 0x194]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
test eax, eax
pop edi
setg cl
pop esi
mov al, cl
pop ebx
leave
ret 8

Function at 0x47a8de
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push 1
push 0
push 2
push 2
mov esi, ecx
call fcn.0047f197
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0xffff
push dword [esi + 4]
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x47a919
xor al, al
jmp 0x47a93d
push 0x14e7
call fcn.0047a893
push eax
lea ecx, [ebp - 0x18]
call fcn.0049ca27
push eax
mov ecx, esi
call fcn.0047d526
mov ecx, esi
call fcn.0047dbf5
mov al, 1
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
pop eax
push dword [ebp + 8]
mov word [ebp - 0x14], ax
mov eax, 0xe714
mov esi, ecx
mov byte [ebp - 4], 0
mov byte [ebp - 3], 0
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_htonl_1]
push 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 2
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
test eax, eax
setg cl
pop edi
mov al, cl
pop esi
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dl, byte [ebp + 0xc]
push esi
push edi
push dword [ebp + 0x14]
mov esi, ecx
push dword [ebp + 0x10]
lea ecx, [ebp - 0xc]
push dword [ebp + 0x10]
call fcn.0047a8a2
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
pop eax
push dword [ebp + 8]
mov word [ebp - 0x1c], ax
mov eax, 0xe714
mov word [ebp - 0x1a], ax
call dword [sym.imp.WS2_32.dll_htonl_1]
push 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xc
lea eax, [ebp - 0xc]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
test eax, eax
setg cl
pop edi
mov al, cl
pop esi
leave
ret 0x10
Function at 0x47b150
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x8004667e
push edi
mov ebx, ecx
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x47b183
or eax, eax
jmp 0x47b22f
mov ecx, dword [ebp + 0xc]
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004729f6
call fcn.0047cfd9
push dword [ebp + 8]
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x47b1e4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
je 0x47b1dc
cmp esi, 0x2734
je 0x47b1dc
push esi
push dword [0x896304]
mov ecx, ebx
call fcn.0047b0ab
mov eax, esi
jmp 0x47b22e
mov ecx, dword [ebp + 0xc]
call fcn.0047deb6
call fcn.0047cff8
push dword [ebp + 0x10]
mov ecx, ebx
push edi
call fcn.0047afa9
mov dword [ebp + 8], eax
call fcn.0047cfd9
cmp dword [ebp + 8], 0
je 0x47b21e
mov esi, dword [0x896638]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
mov ecx, ebx
call fcn.0047b0ab
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp + 0xc]
call fcn.0047d45c
call fcn.0047cff8
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
leave
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
and dword [ebp + 0x10], 0
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], eax
xor ebx, ebx
jmp 0x47b298
push dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
push dword [ebp + 8]
call fcn.0047af27
test eax, eax
jne 0x47b29c
push eax
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x47b2aa
mov eax, dword [ebp + 0xc]
add dword [ebp - 8], eax
sub esi, eax
add ebx, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x47b2c5
test eax, eax
je 0x47b2c5
test esi, esi
jg 0x47b254
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
pop esi
pop ebx
leave
ret 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 4]
mov esi, eax
push esi
push dword [0x896308]
call fcn.0047b0ab
mov eax, esi
jmp 0x47b2a2
mov eax, ebx
jmp 0x47b2a4
Function at 0x47b51a
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push esi
push edi
push 0
mov edi, ecx
push 0
lea ecx, [ebp - 0x28]
call fcn.0049ca27
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [ebp + 8]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x47b54e
push 0xfffffffffffffffe
pop eax
jmp 0x47b5c9
lea eax, [ebp - 0x28]
push eax
push esi
mov ecx, edi
call fcn.0047b4eb
test eax, eax
je 0x47b572
push 0xa
push dword [0x8965f8]
mov ecx, edi
call fcn.0047b059
or eax, 0xffffffff
jmp 0x47b5c9
lea ecx, [ebp - 0x14]
call fcn.0049c9ec
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0047b43b
test eax, eax
jne 0x47b5c9
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x14]
call fcn.004729f6
lea eax, [ebp - 0x14]
push eax
push 0x5126b0
lea eax, [ebp - 0x38]
push 0x10
push eax
call fcn.0049f8ba
add esp, 0x10
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push eax
push dword [esi]
mov ecx, edi
call fcn.0047b150
pop edi
pop esi
leave
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], eax
xor ebx, ebx
jmp 0x47b627
push dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
push dword [ebp + 8]
call fcn.0047afa9
test eax, eax
jne 0x47b62b
push eax
push eax
push eax
lea eax, [ebp + 0x10]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x47b639
mov eax, dword [ebp + 0x10]
add dword [ebp - 8], eax
sub esi, eax
add ebx, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x47b654
test esi, esi
jg 0x47b5ea
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
pop esi
pop ebx
leave
ret 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 4]
mov esi, eax
push esi
push dword [0x89630c]
call fcn.0047b0ab
mov eax, esi
jmp 0x47b631
mov eax, ebx
jmp 0x47b633

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ecx + 4]
mov dword [ebp - 4], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x47ce1d
call fcn.0049c9ec
jmp 0x47ce29
lea eax, [ebp - 0x84]
push eax
call fcn.0049ca78
mov eax, dword [ebp + 8]
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
sub esp, 0x98
cmp eax, 0xffffffff
jne 0x47cf55
or eax, 0xffffffff
leave
ret
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x98]
push ecx
push eax
mov dword [ebp - 4], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x47cf50
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.0049ca78
movzx eax, word [eax + 0x10]
leave
ret
Function at 0x47dc20
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x47dd15
cmp byte [ebp + 8], 0
je 0x47dc5d
xor ecx, ecx
inc ecx
mov word [ebp + 8], cx
xor ecx, ecx
push 4
mov word [ebp + 0xa], cx
lea ecx, [ebp + 8]
push ecx
push 0x80
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test byte [esi + 0xe], 0x20
je 0x47dce7
mov eax, dword [esi + 0x54]
push ebx
xor ebx, ebx
cmp eax, ebx
jge 0x47dc78
neg eax
mov dword [ebp + 8], eax
jmp 0x47dc7b
mov dword [ebp + 8], ebx
mov eax, dword [esi + 0x68]
cmp eax, ebx
jge 0x47dc89
neg eax
mov dword [ebp - 4], eax
jmp 0x47dc8c
mov dword [ebp - 4], ebx
cmp dword [esi + 0xc4], ebx
push edi
jle 0x47dcb8
lea edi, [esi + 0xb0]
cmp dword [edi], 0
je 0x47dcac
mov eax, dword [ebp + 8]
mov ecx, dword [edi]
cdq
add dword [ecx + 0x28], eax
adc dword [ecx + 0x2c], edx
inc ebx
add edi, 4
cmp ebx, dword [esi + 0xc4]
jl 0x47dc9b
xor ebx, ebx
cmp dword [esi + 0xc4], ebx
jle 0x47dce5
lea edi, [esi + 0xb0]
cmp dword [edi], 0
je 0x47dcd9
mov eax, dword [ebp - 4]
mov ecx, dword [edi]
cdq
add dword [ecx + 0x30], eax
adc dword [ecx + 0x34], edx
inc ebx
add edi, 4
cmp ebx, dword [esi + 0xc4]
jl 0x47dcc8
pop edi
pop ebx
mov ecx, dword [esi + 4]
call fcn.0047cef0
or dword [esi + 4], 0xffffffff
test byte [esi + 0xe], 0x20
je 0x47dd15
cmp byte [esi + 0x18], 6
jb 0x47dd15
push 2
push 0x40
mov ecx, esi
call fcn.0047ca72
push 2
push 0x40
mov ecx, esi
call fcn.0047ca53
and byte [esi + 0xe], 0xdf
test byte [esi + 0xe], 0x80
je 0x47dd40
lea eax, [esi + 0xc8]
mov esi, dword [eax]
and dword [eax], 0
test esi, esi
je 0x47dd40
mov ecx, esi
call fcn.004ffe81
push 0
xor edx, edx
mov ecx, esi
call fcn.004fdded
pop esi
leave
ret 4
Function at 0x47f1de
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push 0
xor esi, esi
push 0
mov ebx, ecx
mov ecx, dword [ebp + 8]
inc esi
push esi
call fcn.0040cb36
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
mov ecx, ebx
call fcn.0047f197
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jne 0x47f21c
xor al, al
jmp 0x47f2ce
push edi
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x47f25c
call sub.msvcrt.dll__errno
mov esi, eax
call sub.msvcrt.dll__errno
push dword [esi]
mov edi, eax
call sub.msvcrt.dll_strerror
push eax
push dword [edi]
push dword [ebx + 4]
call fcn.00466ca2
add esp, 0x10
mov esi, dword [ebp + 8]
push esi
mov ecx, ebx
call fcn.0047d526
cmp eax, 0xffffffff
jne 0x47f299
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
jne 0x47f2c3
push 5
pop ecx
xor eax, eax
lea edi, [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 8], ax
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
call fcn.0047d526
cmp eax, 0xffffffff
jne 0x47f2a5
jmp 0x47f2c3
push esi
push dword [ebx + 4]
call fcn.00466ca2
add esp, 8
push 0xa
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x47f2c7
push dword [ebp + 8]
push dword [ebx + 4]
call fcn.00466ca2
add esp, 8
xor al, al
jmp 0x47f2cd
mov byte [ebx + 0xe], 0
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x480a91
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x24], esi
call ebx
and dword [ebp - 0xc], 0
cmp byte [esi], 0
mov edi, eax
mov dword [ebp - 8], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
je 0x480c31
jmp 0x480ac4
mov edi, dword [ebp - 0x20]
push 0x19
pop esi
call ebx
cmp byte [0x88ce5c], 0
jne 0x480adb
call fcn.004c9f19
test al, al
je 0x480ae5
push 0x19
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov ecx, esi
call fcn.0047ce35
mov dword [ebp - 0x14], eax
call fcn.004b859b
mov dword [0x88c8e0], eax
mov dword [0x88c8e4], edx
call ebx
mov esi, eax
sub eax, edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x10], eax
jg 0x480b11
mov dword [ebp - 0x10], edi
mov eax, esi
sub eax, dword [ebp - 8]
mov ecx, 0x3e8
mov dword [ebp - 0x20], esi
mov byte [ebp - 1], 0
cmp eax, ecx
jb 0x480b4a
lea eax, [esi - 0x1388]
cmp eax, dword [ebp - 8]
jbe 0x480b34
mov dword [ebp - 8], eax
add dword [ebp - 8], ecx
mov eax, esi
sub eax, dword [ebp - 8]
mov byte [ebp - 1], 1
cmp eax, 0x7d0
jb 0x480b4a
mov dword [ebp - 8], esi
call fcn.0047cfd9
mov ecx, dword [ebp - 0x14]
call fcn.00480a48
cmp byte [0x88cbf8], 0
jne 0x480b70
call fcn.004ffd73
mov ecx, dword [0x88e088]
call fcn.004b2496
mov eax, esi
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp eax, 0x32
jb 0x480bd0
call fcn.004b859b
cmp dword [0x88cd58], 0
mov dword [0x88c8e0], eax
mov dword [0x88c8e4], edx
jbe 0x480bb2
mov eax, dword [0x88cd50]
mov ecx, dword [eax + edi*4]
test byte [ecx + 0xe], 0x20
je 0x480ba9
call fcn.0047f745
inc edi
cmp edi, dword [0x88cd58]
jb 0x480b96
mov ecx, dword [ebp - 0x14]
call fcn.0047e357
mov ecx, dword [ebp - 0x14]
call fcn.0047e726
mov edx, dword [ebp - 0x10]
mov cl, byte [ebp - 1]
mov dword [ebp - 0x18], esi
call fcn.0047d07b
cmp byte [ebp - 1], 0
je 0x480c0d
cmp byte [0x88cbf8], 0
jne 0x480be4
call fcn.00426557
mov ecx, esi
sub ecx, dword [ebp - 0x1c]
call fcn.0047f60f
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x1e
mov dword [ebp - 0x1c], esi
jne 0x480c0d
call fcn.0047dfe1
call fcn.00429cbd
call fcn.004b7830
and dword [ebp - 0xc], 0
mov cl, byte [ebp - 1]
call fcn.0047f5b5
mov edx, dword [ebp - 0x10]
mov cl, byte [ebp - 1]
call fcn.004809fd
call fcn.0047cff8
mov eax, dword [ebp - 0x24]
cmp byte [eax], 0
jne 0x480ac1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x480f94
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x480fa2
push 8
pop eax
pop esi
ret
mov eax, dword [esi]
test eax, eax
jne 0x480fac
push 2
jmp 0x480f9f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x525bd4
push eax
call edi
test eax, eax
je 0x48102b
call eax
push 0x525bbc
push dword [esi]
call edi
test eax, eax
je 0x48102b
call eax
push 0x525ba4
push dword [esi]
call edi
test eax, eax
je 0x48102b
call eax
cmp eax, 1
jne 0x481000
mov eax, dword [esi + 8]
cmp eax, 2
je 0x481000
cmp eax, 1
jne 0x481030
push 0x525b7c
push dword [esi]
call edi
test eax, eax
je 0x48102b
call eax
push 0x525b5c
push dword [esi]
call edi
test eax, eax
je 0x48102b
call eax
push 0x525b1c
push dword [esi]
call edi
test eax, eax
je 0x48102b
call eax
push 0x525b48
push dword [esi]
call edi
test eax, eax
jne 0x481037
push 5
pop eax
jmp 0x48103b
push 0x525b2c
jmp 0x480ff6
call eax
xor eax, eax
pop edi
pop esi
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x482124
test al, 0x10
jne 0x482124
xor eax, eax
inc eax
ret
xor eax, eax
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48213b
test al, 0x10
je 0x48213b
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x48245f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push esi
push edi
mov edi, edx
mov esi, 0x104
test ecx, ecx
jne 0x482489
lea eax, [ebp - 0x618]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x618]
lea eax, [ebp - 0x208]
push eax
push 0
push 0x526050
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4824c3
call sub.msvcrt.dll_rand
push eax
call sub.msvcrt.dll_rand
push eax
push 0x526038
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.0049f973
add esp, 0x14
test edi, edi
je 0x482508
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4824cc
sub eax, edx
sar eax, 1
mov ecx, 0x103
sub ecx, eax
push ecx
lea edx, [ebp - 0x208]
lea ecx, [ebp - 0x410]
call fcn.00428b90
mov eax, edi
lea ecx, [ebp - 0x410]
call fcn.004068fc
lea ecx, [ebp - 0x410]
jmp 0x48250e
lea ecx, [ebp - 0x208]
call fcn.0042876e
pop edi
pop esi
leave
ret

Function at 0x4825a8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 0x10]
mov edi, edx
push dword [ebp + 0xc]
mov ebx, ecx
call fcn.0048207a
test eax, eax
jne 0x4825f8
push esi
mov esi, dword [ebp + 8]
push eax
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4825de
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4825f7
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x4825f5
sub esi, eax
push esi
add eax, edi
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 0xc