joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49945a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x688], edi
je 0x4994c7
cmp dword [ebp + 8], 0x100
jne 0x4994b6
cmp word [ebp + 0xc], 0xd
jne 0x4994b6
cmp byte [esi + 0x68e], 0
je 0x49949a
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4994b6
cmp byte [esi + 0x68f], 0
jne 0x4994b6
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x4994b2
push edi
push edi
push edi
push str.return
push esi
call fcn.00487043
xor eax, eax
jmp 0x4994ca
mov eax, dword [esi + 0x688]
pop edi
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x4997a1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x55c380]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x499857
movzx eax, word [esi]
test ax, ax
je 0x499857
push edi
mov edi, esi
mov ecx, esi
cmp ax, 0x2f
je 0x4997e1
cmp ax, 0x5c
jne 0x4997e3
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x4997d5
cmp edi, esi
je 0x49982a
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.004fff86
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x499867
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004997a1
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0050903b
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0050900a
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004f5c8b
mov esp, ebp
pop ebp
ret
call fcn.004f62c7
int3

Function at 0x499e30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x499eac
cmp dword [edi + 4], 0xffffffff
jne 0x499eac
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x5442c0
push esi
call fcn.0050900a
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x499e7e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x499e7e
mov eax, 0x2000000
jmp 0x499eb1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0049c34b
add esp, 0x10
test eax, eax
jne 0x499e9c
mov eax, dword [ebp - 4]
jmp 0x499eb1
push eax
call fcn.0049ca53
mov dword [edi], eax
mov eax, dword [0x565924]
pop ecx
jmp 0x499eb1
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49c458
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x49c48c
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x49c487
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x49c4b3
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x49c49c
mov esi, dword [edi + 0x14]
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.004f93a0
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x49c634
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x49c6f3
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x526f30]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x526f30]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x526f30]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x526f30]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x526f30]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x526f30]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x526f30]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x526f30]
sub edi, 1
jne 0x49c64c
pop edi
test esi, esi
je 0x49c70f
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x526f30]
inc edx
sub esi, 1
jne 0x49c6f7
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x49fde5
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x5226e5
call fcn.004f657a
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.004a0174
call fcn.00484cda
push eax
lea ecx, [ebp - 0x94]
call fcn.00488779
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00484ce0
mov ecx, eax
call fcn.004891b1
test al, al
je 0x49fefb
push ebx
lea ecx, [ebp - 0x94]
call fcn.00488aaa
push edi
push 0x80
push 3
push edi
push 1
push accept
lea ecx, [ebp - 0x94]
call fcn.00488f90
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push edi
cmp eax, 0xffffffff
jne 0x49fe6c
push 0x528b54
jmp 0x49ffdc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x49ff75
cmp edi, 0x400000
ja 0x49ff86
and dword [ebp - 0x2c8], 0
push edi
call fcn.004f63a3
pop ecx
mov ebx, eax
lea eax, [ebp - 0x2c8]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x2d0]
mov dword [ebp - 0x2cc], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], edi
je 0x49fee4
push ebx
call fcn.004f63ac
pop ecx
mov ecx, esi
call fcn.004a0174
push 0
push str.Could_not_read_file
jmp 0x49ffdc
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.004a0027
push dword [ebp - 0x2cc]
jmp 0x4a000a
call fcn.00484ce0
push eax
lea ecx, [ebp - 0x94]
call fcn.00488a8d
call fcn.00484da2
test al, al
je 0x49ff1c
call fcn.00484ce6
jmp 0x49ff33
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.00488f90
push eax
call fcn.00499eb8
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x49ff44
push eax
push str.Error_opening_zip_file
jmp 0x49ffdc
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.004998f5
add esp, 0x14
test eax, eax
je 0x49ff6b
push 0
push str.Could_not_find_ziped_file
jmp 0x49ffdc
mov ebx, dword [ebp - 0x98]
test ebx, ebx
jne 0x49ff7e
push 0
push str.File_is_empty
jmp 0x49ffdc
cmp ebx, 0x400000
jbe 0x49ff8f
push 0
push 0x528b98
jmp 0x49ffdc
push ebx
call fcn.004f63a3
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.0049a278
add esp, 0x18
test eax, eax
je 0x49ffe7
cmp eax, 0x600
je 0x49ffe7
push dword [ebp - 0x2c8]
call fcn.004f63ac
pop ecx
call fcn.00484da2
test al, al
jne 0x49ffd5
push edi
call fcn.0049974f
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.004a019c
mov bl, al
jmp 0x4a0012
call fcn.00484da2
test al, al
jne 0x49fff7
push edi
call fcn.0049974f
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c8]
mov ecx, esi
push ebx
push edi
call fcn.004a0027
push edi
mov bl, al
call fcn.004f63ac
pop ecx
lea ecx, [ebp - 0x94]
call fcn.004888e4
mov al, bl
call fcn.004f6524
ret 8
Function at 0x4a762f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x4a7653
cmp dword [esi + 8], edi
jge 0x4a764b
push esi
call fcn.004a5925
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x4a767c
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x4a765f
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x4a7699
mov edx, dword [esi]
cmp edx, dword [esi + 4]
jb 0x4a7687
xor eax, eax
jmp 0x4a768f
mov al, byte [edx]
inc edx
mov dword [esi], edx
movzx eax, al
mov byte [ebp + ecx + 8], al
inc ecx
cmp ecx, 4
jl 0x4a767e
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x4a76ce
push str.zlib_corrupt
call fcn.004a57e0
add esp, 4
jmp 0x4a770b
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4a76de
push str.read_past_buffer
jmp 0x4a76c4
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x4a76f5
push edi
push esi
call fcn.004a57ef
pop ecx
pop ecx
test eax, eax
je 0x4a770b
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004f93a0
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x4bb048
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x4bb06b
or esi, 1
push 1
call edi
test ax, ax
jns 0x4bb077
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x4bb083
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x4bb08f
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret

Function at 0x4bb39f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x55c380]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x4bb40c
cmp dword [esi + 0x10], 0
je 0x4bb40c
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004f6630
mov ebx, esp
test ebx, ebx
je 0x4bb40c
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x368
call fcn.00488982
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00487043
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f5c8b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4bc581
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x4bc6e7
push ebx
mov edx, 0x10000000
cmp eax, 0x7c
je 0x4bc6e6
cmp eax, 0x29
jne 0x4bc5b9
cmp dword [esi + 0x10], 0
jne 0x4bc6e6
test dword [esi + 0x50], edx
je 0x4bc6f3
cmp eax, 0x2e
jne 0x4bc5d4
push 5
lea ecx, [esi + 0x24]
call fcn.004be1fd
mov ecx, esi
call fcn.004be23d
jmp 0x4bc6d1
cmp eax, 0x5c
jne 0x4bc62f
mov ecx, esi
call fcn.004be23d
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x4bc606
cmp byte [esi + 0x48], 0x62
jne 0x4bc606
push 4
lea ecx, [esi + 0x24]
call fcn.004be1fd
mov ecx, esi
call fcn.004be23d
jmp 0x4bc6d8
test eax, eax
je 0x4bc623
cmp byte [esi + 0x48], 0x42
jne 0x4bc623
push 4
lea ecx, [esi + 0x24]
call fcn.004be1fd
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x4bc5fa
mov ecx, esi
call fcn.004bc6fb
jmp 0x4bc6d1
cmp eax, 0x5b
jne 0x4bc64f
mov ecx, esi
call fcn.004be23d
mov ecx, esi
call fcn.004bcbca
cmp dword [esi + 0x4c], 0x5d
je 0x4bc5c8
push 4
jmp 0x4bc6f5
cmp eax, 0x28
jne 0x4bc677
mov ecx, esi
call fcn.004be23d
mov ecx, esi
call fcn.004be7a8
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x4bc6f3
mov ecx, esi
call fcn.004be23d
jmp 0x4bc6cd
cmp eax, 0x5e
jne 0x4bc683
push 2
jmp 0x4bc5f2
cmp eax, 0x24
jne 0x4bc68f
push 3
jmp 0x4bc5f2
cmp eax, 0x2a
je 0x4bc6ef
cmp eax, 0x2b
je 0x4bc6ef
cmp eax, 0x3f
je 0x4bc6ef
cmp eax, 0x7b
je 0x4bc6ef
cmp eax, 0x7d
jne 0x4bc6ad
test dword [esi + 0x50], edx
je 0x4bc6eb
cmp eax, 0x5d
jne 0x4bc6b7
test dword [esi + 0x50], edx
je 0x4bc648
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.004bbf38
mov ecx, esi
call fcn.004be23d
mov bl, 1
test bl, bl
je 0x4bc6d8
mov ecx, esi
call fcn.004be266
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x4bc593
pop ebx
mov al, cl
pop esi
ret
push 6
jmp 0x4bc6f5
push 0xa
jmp 0x4bc6f5
push 5
call fcn.004f3ddc
int3
Function at 0x4c9590
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x55c380]
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 0x4c95e0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4c95da
shr eax, 8
cmp al, 2
jne 0x4c95da
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f5c8b
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.004f5c8b
mov esp, ebp
pop ebp
ret
Function at 0x4caa30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4caa5c
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4caa4d
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x4caa90
cmp dword [esi + 8], 0
jne 0x4caa80
push 0x548da4
push dword [eax + 8]
call fcn.005008e7
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4caa80
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.005012b4
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4caab2
mov eax, dword [esi + 8]
test eax, eax
je 0x4caaac
push eax
call fcn.00500974
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4d65b0
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 0x4d662e
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4d65fe
pop esi
pop edi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push dword [ebp + 8]
call fcn.004d8eb0
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.004d6290
mov eax, dword [ebp + 8]
add esp, 0x14
mov eax, dword [eax]
mov dword [eax + 0x858c], esi
mov eax, edi
mov dword [ebx], 0x37
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4d6810
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 0x4d6839
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 0x4d686f
push dword [esi + 0xf0]
lea eax, [eax + eax*2]
push 1
add eax, 0x531394
push 2
push eax
call fcn.00508230
push dword [esi + 0xf0]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00508230
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x550]
cmp ecx, 0xffffffff
je 0x4d6a9b
mov eax, dword [eax + 0x544]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x4d6a9b
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4d6a69
mov dword [ecx], eax
cmp dword [eax + 0x150], 0
push esi
mov esi, dword [eax + 0x130]
je 0x4d6a7f
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 0x4d6f40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x55c380]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x1a4], 0
mov ebx, dword [edi]
jne 0x4d70b3
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 0x4d6fbe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004d8eb0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004d6290
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f5c8b
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 0x4d7011
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004d8eb0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004d6290
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f5c8b
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.004d7540
add esp, 0xc
test eax, eax
jne 0x4d7062
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004d8eb0
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004d6290
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f5c8b
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.004d7540
add esp, 0xc
test eax, eax
jne 0x4d70b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004d8eb0
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004d6290
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f5c8b
mov esp, ebp
pop ebp
ret
push edi
call fcn.004d6ca0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004f5c8b
mov esp, ebp
pop ebp
ret
Function at 0x4d7930
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 4
cmp dword [esi + 0x408], eax
setne al
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 8
push 0xffff
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4d7970
push dword [ebp + 0xc]
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004d6330
add esp, 0xc
pop esi
pop ebp
ret

Function at 0x4d7980
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 0x4d79ca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004d8eb0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004d6330
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004d6330
add esp, 8
pop edi
pop esi
pop ebp
ret

Function at 0x4d85d0
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.0x4d85e1
jmp dword [eax*4 + 0x4d8654]
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 0x4d8a10
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4d8b8b
push edi
mov edi, dword [ebp - 8]
test edi, edi
je 0x4d8b77
push esi
nop dword [eax]
cmp dword [edi + 4], 2
jne 0x4d8b08
cmp dword [edi + 0x18], 0
je 0x4d8b08
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4d8b08
cmp eax, 0x10
jb 0x4d8b08
push 0x20
call dword [0x55c2e4]
mov esi, eax
add esp, 4
test esi, esi
je 0x4d8b6c
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x55c2e4]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x4d8b5b
mov ecx, dword [edi + 0x18]
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4d8af6
push eax
call dword [0x55c2f0]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x4d8b41
mov eax, dword [ebp - 4]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x4d8b05
mov dword [eax + 0x1c], esi
mov dword [ebp - 4], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4d8a50
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
pop esi
test eax, eax
je 0x4d8b25
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x4d8b73
push ebx
call fcn.004d89c0
mov eax, dword [ebp + 0x14]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x18]
mov edi, 8
call dword [0x55c2e8]
push esi
call dword [0x55c2e8]
add esp, 8
jmp 0x4d8b16
push esi
mov edi, 8
call dword [0x55c2e8]
add esp, 4
jmp 0x4d8b16
mov edi, 8
jmp 0x4d8b16
test ebx, ebx
jne 0x4d8b83
mov edi, 0x2af9
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4da3b0
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.0050b1a5
add esp, 0x18
test eax, eax
je 0x4da3d2
cmp eax, 0xffffffff
jne 0x4da3d4
xor eax, eax
pop ebp
ret