joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4836b8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5490a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push 0x1a
push eax
push esi
call fcn.00483bc8
lea eax, [ebp - 0x20c]
push eax
call fcn.0049dd7d
add esp, 0x14
test eax, eax
je 0x483770
lea eax, [ebp - 0x20c]
push 0x50fa54
push eax
call fcn.0049dd98
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0049dd98
lea eax, [ebp - 0x20c]
push 0x50fa54
push eax
call fcn.0049dd98
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x483749
lea eax, [ebp - 0x20c]
push eax
call fcn.0048362e
pop ecx
cmp word [ebp - 0x20c], si
je 0x483761
lea eax, [ebp - 0x20c]
push eax
call fcn.0049dd7d
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00403840
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413c46
mov esp, ebp
pop ebp
ret

Function at 0x4838a9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5490a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x56019c]
test al, al
jne 0x483942
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0048d530
add esp, 0xc
lea eax, [ebp - 0x20c]
xor ebx, ebx
inc ebx
push ebx
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x483939
lea eax, [ebp - 0x20c]
push eax
call fcn.0049034c
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.0048c8e4
pop ecx
pop ecx
test eax, eax
jne 0x483931
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.0048c8e4
pop ecx
pop ecx
test eax, eax
je 0x483939
mov byte [0x56019c], bl
jmp 0x48393f
mov bl, byte [0x56019c]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413c46
mov esp, ebp
pop ebp
ret
Function at 0x483950
Capabilities:
Check if file exists

Disassembly:
push 0xc54
mov eax, 0x50daa6
call fcn.004b4d7f
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc40]
mov ebx, dword [ebp + 0xc]
mov esi, 0x208
and dword [ebp - 0xc60], 0
push esi
push 0
push eax
call fcn.0048d530
push esi
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.0048d530
push esi
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0048d530
push esi
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.0048d530
push esi
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0048d530
push esi
xor esi, esi
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.0048d530
xor eax, eax
mov dword [ebp - 0xc44], 7
add esp, 0x48
mov dword [ebp - 0xc48], esi
mov word [ebp - 0xc58], ax
push esi
push 0x1a
lea eax, [ebp - 0xc40]
mov dword [ebp - 4], esi
push eax
push esi
call fcn.00483bc8
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0049dd5b
lea eax, [ebp - 0x218]
push eax
call fcn.0049dd7d
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0048d68a
add esp, 0x24
test eax, eax
jne 0x483a54
lea eax, [ebp - 0xc58]
push ebx
push eax
call fcn.004836b8
pop ecx
pop ecx
lea eax, [ebp - 0xc58]
mov ecx, edi
push eax
call fcn.00401d50
push esi
push 1
jmp 0x483bb5
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.0049dd5b
lea eax, [ebp - 0x830]
push 0x51f910
push eax
call fcn.0049dd98
add esp, 0x10
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
inc ecx
test eax, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
cmovne esi, ecx
push eax
call fcn.0049dd5b
lea eax, [ebp - 0x628]
push str.LocalLow
push eax
call fcn.0049dd98
add esp, 0x10
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa38]
mov dword [ebp - 0xc5c], ecx
push eax
call fcn.0049dd5b
lea eax, [ebp - 0xa38]
push str.Roaming
push eax
call fcn.0049dd98
add esp, 0x10
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
test esi, esi
je 0x483b92
cmp dword [ebp - 0xc5c], 0
je 0x483b92
test ecx, ecx
je 0x483b92
push ebx
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push str._s_s_
push eax
call fcn.00403cf0
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x483b62
lea eax, [ebp - 0x420]
push eax
call fcn.0048362e
pop ecx
cmp word [ebp - 0x420], 0
jne 0x483b70
xor eax, eax
jmp 0x483b7d
lea eax, [ebp - 0x420]
push eax
call fcn.0049dd7d
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xc58]
call fcn.00403840
jmp 0x483ba1
lea eax, [ebp - 0xc58]
push ebx
push eax
call fcn.004836b8
pop ecx
pop ecx
lea eax, [ebp - 0xc58]
mov ecx, edi
push eax
call fcn.00401d50
xor eax, eax
push 0
inc eax
push eax
lea ecx, [ebp - 0xc58]
call fcn.0047c3c1
mov eax, edi
call fcn.004b4d3a
ret
Function at 0x484ada
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
mov dword [esi + 4], eax
pop esi
pop ebp
ret 4
Function at 0x484e17
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5490a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push str..del
push esi
call fcn.0048c8e4
pop ecx
pop ecx
test eax, eax
je 0x484e4f
push 5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x484ede
push edi
xor edi, edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0048d530
add esp, 0xc
lea eax, [ebp - 0x20c]
test edi, edi
jne 0x484e83
push esi
push str._s.del
push eax
call fcn.00403cf0
add esp, 0xc
jmp 0x484e93
push edi
push esi
push str._s.del_d
push eax
call fcn.00403cf0
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x484ebd
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x484ebd
cmp edi, 0xa
jge 0x484edd
inc edi
jmp 0x484e52
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0049ddc9
pop ecx
pop ecx
push 5
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00413c46
mov esp, ebp
pop ebp
ret

Function at 0x489180
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
sub esi, 1
jne 0x489188
mov dword [edx*4 + 0x5602c8], ecx
inc edx
cmp edx, 0x100
jb 0x489183
mov esi, 0x800
jmp 0x4891d1
mov ecx, dword [edx*4 + 0x55fec8]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x5602c8]
mov dword [edx*4 + 0x5602c8], ecx
inc edx
cmp edx, esi
jb 0x4891b5
mov dword [0x5622c8], 0x4851c8
call fcn.00489593
mov ecx, dword [0x5622c8]
test eax, eax
mov edx, 0x485261
cmove ecx, edx
mov dword [0x5622c8], ecx
pop esi
ret

Function at 0x48964a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
jne 0x48965c
xor eax, eax
jmp 0x489683
push ebx
mov ebx, dword [ebp + 8]
push dword [ebx]
push esi
push 1
push dword [ebp + 0xc]
call fcn.004a0879
add esp, 0x10
mov dword [edi], eax
cmp eax, esi
jne 0x48967a
xor eax, eax
jmp 0x489682
push dword [ebx]
call fcn.004a05aa
pop ecx
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x4896d6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
jne 0x4896e8
xor eax, eax
jmp 0x48970f
push ebx
mov ebx, dword [ebp + 8]
push dword [ebx]
push esi
push 1
push dword [ebp + 0xc]
call fcn.004a009a
add esp, 0x10
mov dword [edi], eax
cmp eax, esi
jne 0x489706
xor eax, eax
jmp 0x48970e
push dword [ebx]
call fcn.004a05aa
pop ecx
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x48a29d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x10
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
mov esi, dword [esi]
and esi, 7
cmp eax, 5
jae 0x48a2be
xor eax, eax
jmp 0x48a413
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 - 8], ecx
add edx, edi
mov dword [ebp - 4], edx
cmp edx, ecx
jae 0x48a2ea
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x48a2e7
inc edx
cmp edx, ecx
jb 0x48a2da
mov dword [ebp - 4], edx
mov edi, edx
sub edi, dword [ebp + 8]
cmp edx, ecx
jae 0x48a3f7
mov ecx, edi
sub ecx, ebx
cmp ecx, 3
jbe 0x48a322
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test al, al
je 0x48a35f
cmp al, 0xff
je 0x48a35f
and esi, 3
xor eax, eax
add esi, esi
or esi, 1
inc eax
jmp 0x48a3f0
dec ecx
shl esi, cl
and esi, 7
je 0x48a302
movzx eax, byte [esi + 0x51fa28]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x51fa20], 0
mov al, byte [ecx + 4]
je 0x48a349
test al, al
je 0x48a349
cmp al, 0xff
jne 0x48a302
and esi, 3
mov ebx, edi
add esi, esi
or esi, 1
inc edi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
jmp 0x48a2d1
movzx ebx, al
movzx eax, byte [edx + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 1]
mov edx, dword [ebp + 0x10]
shl ebx, 8
or ebx, eax
cmp dword [ebp + 0x18], 0
je 0x48a38c
add ebx, edi
add ebx, edx
jmp 0x48a390
sub ebx, edi
sub ebx, edx
mov dword [ebp + 0xc], ebx
test esi, esi
je 0x48a3c6
movzx eax, byte [esi + 0x51fa28]
shl eax, 3
push 0x18
pop ecx
sub ecx, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x48a3b5
cmp al, 0xff
jne 0x48a3c6
xor ebx, ebx
push 0x20
pop ecx
sub ecx, dword [ebp - 0xc]
inc ebx
shl ebx, cl
dec ebx
xor ebx, dword [ebp + 0xc]
jmp 0x48a380
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 - 0x10]
shr eax, 8
push 5
mov byte [edx + 2], al
pop eax
add edi, eax
jmp 0x48a354
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 0x48b4de
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push esi
xor ecx, ecx
xor edx, edx
xor esi, esi
push edi
cmp dword [ebp + 0xc], ecx
jle 0x48b5bf
mov edi, dword [ebp + 8]
mov al, byte [esi + edi]
cmp al, 0x3d
jne 0x48b502
inc edx
cmp edx, 2
jg 0x48b540
cmp al, 0x7f
ja 0x48b540
movzx eax, al
mov al, byte [eax + 0x51fbf0]
cmp al, 0x7f
je 0x48b540
cmp al, 0x40
jae 0x48b51b
test edx, edx
jne 0x48b540
inc ecx
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x48b4f5
test ecx, ecx
je 0x48b5bf
mov edi, dword [ebp + 0x14]
imul eax, ecx, 6
add eax, 7
sar eax, 3
cmp dword [edi], eax
jge 0x48b545
mov dword [edi], eax
push 0xfffffffffffffff0
jmp 0x48b542
push 0xffffffffffffffee
pop eax
jmp 0x48b5c1
mov edx, dword [ebp + 0x10]
xor eax, eax
push ebx
xor ebx, ebx
mov dword [ebp + 0xc], eax
test esi, esi
jle 0x48b5b9
mov eax, dword [ebp + 8]
push 3
pop edi
movzx eax, byte [eax]
mov cl, byte [eax + 0x51fbf0]
xor eax, eax
cmp cl, 0x40
sete al
shl ebx, 6
sub edi, eax
movzx eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 0x3f
or ebx, eax
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, 4
jne 0x48b5aa
xor eax, eax
mov dword [ebp + 0xc], eax
test edi, edi
jle 0x48b595
mov eax, ebx
shr eax, 0x10
mov byte [edx], al
inc edx
cmp edi, 1
jle 0x48b5a2
mov eax, ebx
shr eax, 8
mov byte [edx], al
inc edx
cmp edi, 2
jle 0x48b5aa
mov byte [edx], bl
inc edx
mov eax, dword [ebp + 8]
dec esi
inc eax
mov dword [ebp + 8], eax
test esi, esi
jg 0x48b55a
mov edi, dword [ebp + 0x14]
sub edx, dword [ebp + 0x10]
mov dword [edi], edx
pop ebx
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x4a50b3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a4d73

Function at 0x4ab9c5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ab844

Function at 0x4b6770
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5490a4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4b67c0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4b67ba
shr eax, 8
cmp al, 2
jne 0x4b67ba
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413c46
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.00413c46
mov esp, ebp
pop ebp
ret
Function at 0x4b8540
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x48
push 1
call dword [0x549db0]
mov esi, dword [ebp + 8]
mov edi, eax
add esp, 8
mov ebx, 8
mov dword [esi + 0x3bc], edi
test edi, edi
je 0x4b861c
push dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
lea eax, [edi + 0x10]
push ecx
push dword [ebp + 0xc]
mov dword [esi + 0x3ac], ecx
mov dword [esi + 0x3b4], 0
mov dword [esi + 0x3b8], 0
mov dword [esi + 0x3b0], 0
push eax
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0
call fcn.004b8650
add esp, 0x10
test eax, eax
je 0x4b861c
mov eax, dword [esi + 0x3a8]
test eax, eax
je 0x4b85d4
push eax
call dword [0x549da4]
add esp, 4
mov dword [esi + 0x3a8], 0
push dword [ebp + 0xc]
call dword [0x549dac]
add esp, 4
mov dword [esi + 0x3a8], eax
test eax, eax
je 0x4b861c
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x4b861c
lea eax, [edi + 0x10]
push eax
push 0x4b84b0
call fcn.004c6c20
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x4b8639
call fcn.00494bb3
mov ebx, dword [eax]
lea eax, [esi + 0x3a8]
push eax
call fcn.004b83c0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + eax*4 + 0x130]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x4c123e
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4c120e
pop esi
pop edi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push dword [ebp + 8]
call fcn.004c5720
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.004c0ea0
mov eax, dword [ebp + 8]
add esp, 0x14
mov eax, dword [eax]
mov dword [eax + 0x856c], esi
mov eax, edi
mov dword [ebx], 0x37
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4c1420
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 0x4c1449
push dword [esi + 0xf4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4c147f
push dword [esi + 0xf0]
lea eax, [eax + eax*2]
push 1
add eax, 0x534098
push 2
push eax
call fcn.004a009a
push dword [esi + 0xf0]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004a009a
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4c1610
Capabilities:
Receive data
Receive data on socket

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5490a4]
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 0x4c19c3
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4c18ce
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004c5720
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004c0ea0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413c46
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 0x80
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4c1921
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004c5720
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004c0ea0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413c46
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xcc]
push eax
lea eax, [edi + 0x9e]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004c1dc0
add esp, 0xc
test eax, eax
jne 0x4c1972
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004c5720
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004c0ea0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413c46
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x100]
push eax
lea eax, [edi + 0xd0]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004c1dc0
add esp, 0xc
test eax, eax
jne 0x4c19c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004c5720
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004c0ea0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413c46
mov esp, ebp
pop ebp
ret
push edi
call fcn.004c1670
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00413c46
mov esp, ebp
pop ebp
ret
Function at 0x4c2230
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 0x4c227a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004c5720
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004c0f40
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004c0f40
add esp, 8
pop edi
pop esi
pop ebp
ret

Function at 0x4c42d0
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.0x4c42e1
jmp dword [eax*4 + 0x4c4354]
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
Function at 0x4c50a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5490a4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5634ac], 0
mov dword [ebp - 0x230], str.getaddrinfo
mov dword [ebp - 0x22c], 0x4c4bb0
mov dword [ebp - 0x228], str.getnameinfo
mov dword [ebp - 0x224], 0x4c4e50
mov dword [ebp - 0x220], str.freeaddrinfo
mov dword [ebp - 0x21c], fcn.004c4b60
jne 0x4c5222
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4c5218
push ebx
push esi
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.004a11e3
push str.ws2_32
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.004deeef
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x4c5178
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x4c51cd
push edi
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.004a11e3
push str.wship6
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.004deeef
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4c5215
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x4c51cd
push edi
call esi
jmp 0x4c5215
xor esi, esi
nop
push dword [ebp + esi*8 - 0x230]
push edi
call ebx
mov dword [ebp + esi*8 - 0x22c], eax
test eax, eax
je 0x4c520e
inc esi
cmp esi, 3
jl 0x4c51d0
mov eax, dword [ebp - 0x22c]
mov dword [0x549db8], eax
mov eax, dword [ebp - 0x224]
mov dword [0x549dc0], eax
mov eax, dword [ebp - 0x21c]
mov dword [fcn.004c4b60], eax
jmp 0x4c5215
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
mov dword [0x5634ac], 1
movzx eax, word [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, dword [eax*8 + 0x549db8]
call fcn.00413c46
mov esp, ebp
pop ebp
ret 4
Function at 0x4c54e0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push edi
mov edi, dword [ebp + 0x1c]
push dword [ebp + 8]
mov dword [edi], 0
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x4c556e
cmp word [ebx + 8], 2
push esi
jne 0x4c5542
cmp word [ebx + 0xa], 4
jne 0x4c5542
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x4c5542
nop dword [eax + eax]
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004c5400
mov dword [edi], eax
test eax, eax
je 0x4c5562
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x4c5520
push 0x400
push dword [ebx]
push 0x401
push dword [ebp + 0x18]
call fcn.004a3b6e
add esp, 0x10
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
pop esi
pop edi
mov eax, 8
pop ebx
pop ebp
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x4c557e.11001
jmp dword [eax*4 + 0x4c55a8]
pop edi
mov eax, 0x2af9
pop ebx
pop ebp
ret 0x18
pop edi
mov eax, 0x2afa
pop ebx
pop ebp
ret 0x18
pop edi
mov eax, 0x2afb
pop ebx
pop ebp
ret 0x18

Function at 0x4c6c20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.00494e6a
add esp, 0x18
test eax, eax
je 0x4c6c42
cmp eax, 0xffffffff
jne 0x4c6c44
xor eax, eax
pop ebp
ret