joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434c92
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [ebp + 8]
cmp eax, dword [ebx]
je 0x434cba
cmp esi, dword [ebx + 0x54]
je 0x434d7c
push dword [ebx]
call dword [sym.imp.USER32.dll_SetFocus]
cmp esi, dword [ebx + 0x54]
je 0x434d7c
cmp dword [ebx + 0x54], 0
push edi
je 0x434d0d
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x100]
xor edi, edi
mov ecx, ebx
push edi
push edi
push edi
push str.killfocus
push dword [ebx + 0x54]
call fcn.00434a77
mov dword [ebx + 0x54], edi
test esi, esi
je 0x434d7b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, ebx
jne 0x434d7b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc0]
test al, al
je 0x434d7b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xcc]
test al, al
je 0x434d7b
push 7
pop ecx
xor eax, eax
mov dword [ebx + 0x54], esi
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x100]
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push str.setfocus
push dword [ebx + 0x54]
call fcn.00434a77
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x43589a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4358cc
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x437b4a
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x4b422a
call fcn.00496f31
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.00437ede
call fcn.00432e89
push eax
lea ecx, [ebp - 0x94]
call fcn.0043140e
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00432e8f
mov ecx, eax
call fcn.00431bb2
test al, al
je 0x437c60
push ebx
lea ecx, [ebp - 0x94]
call fcn.004316af
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.00432e6a
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push edi
cmp eax, 0xffffffff
jne 0x437bd1
push str.Error_opening_file
jmp 0x437d42
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x437cdb
cmp edi, 0x400000
ja 0x437cec
and dword [ebp - 0x2c8], 0
push edi
call fcn.00430a77
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 0x437c49
push ebx
call fcn.00491f5e
pop ecx
mov ecx, esi
call fcn.00437ede
push 0
push str.Could_not_read_file
jmp 0x437d42
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.00437d91
push dword [ebp - 0x2cc]
jmp 0x437d70
call fcn.00432e8f
push eax
lea ecx, [ebp - 0x94]
call fcn.00431692
call fcn.00432f34
test al, al
je 0x437c81
call fcn.00432e95
jmp 0x437c99
push edi
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.00432e6a
push eax
call fcn.00442f1e
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x437caa
push eax
push str.Error_opening_zip_file
jmp 0x437d42
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.0044293c
add esp, 0x14
test eax, eax
je 0x437cd1
push 0
push str.Could_not_find_ziped_file
jmp 0x437d42
mov ebx, dword [ebp - 0x98]
test ebx, ebx
jne 0x437ce4
push 0
push str.File_is_empty
jmp 0x437d42
cmp ebx, 0x400000
jbe 0x437cf5
push 0
push 0x4ba22c
jmp 0x437d42
push ebx
call fcn.00430a77
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.004432ec
add esp, 0x18
test eax, eax
je 0x437d4d
cmp eax, 0x600
je 0x437d4d
push dword [ebp - 0x2c8]
call fcn.00491f5e
pop ecx
call fcn.00432f34
test al, al
jne 0x437d3b
push edi
call fcn.0044279b
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.00437f06
mov bl, al
jmp 0x437d78
call fcn.00432f34
test al, al
jne 0x437d5d
push edi
call fcn.0044279b
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c8]
mov ecx, esi
push ebx
push edi
call fcn.00437d91
push edi
mov bl, al
call fcn.00491f5e
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0043152f
mov al, bl
call fcn.00496eef
ret 8
Function at 0x4424a4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x4d0], edi
je 0x44250e
cmp dword [ebp + 8], 0x100
jne 0x4424fd
cmp word [ebp + 0xc], 0xd
jne 0x4424fd
cmp byte [esi + 0x4d6], 0
je 0x4424e4
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4424fd
cmp byte [esi + 0x4d7], 0
jne 0x4424fd
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x4424f9
push edi
push edi
push edi
push str.return
push esi
call fcn.00434a77
xor eax, eax
jmp 0x442511
mov eax, dword [esi + 0x4d0]
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 0x4427e5
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4d84d0]
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 0x44289b
movzx eax, word [esi]
test ax, ax
je 0x44289b
push edi
mov edi, esi
mov ecx, esi
cmp ax, 0x2f
je 0x442825
cmp ax, 0x5c
jne 0x442827
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x442819
cmp edi, esi
je 0x44286e
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.00499735
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x4428ab
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004427e5
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00499629
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004995fa
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.004909b2
mov esp, ebp
pop ebp
ret
call fcn.00495a4b
int3

Function at 0x442e8d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi + 4], 0
jne 0x442f12
cmp dword [edi + 8], 0xffffffff
jne 0x442f12
push esi
lea esi, [edi + 0x13c]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x4b78c0
push esi
call fcn.004995fa
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x442edc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x442edc
mov eax, 0x2000000
jmp 0x442f17
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004453b5
mov ecx, eax
add esp, 0x10
test ecx, ecx
jne 0x442efc
mov eax, dword [ebp - 4]
jmp 0x442f17
mov eax, dword [edi]
push ecx
mov dword [ecx + 0x1c], eax
call fcn.00445acd
mov dword [edi + 4], eax
mov eax, dword [0x4dba98]
pop ecx
jmp 0x442f17
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4454c2
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 0x445507
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 0x4454f1
mov byte [edi + 8], 1
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x445502
push dword [ebp + 0x10]
push dword [ebp + 8]
call eax
pop ecx
pop ecx
mov eax, dword [ebp + 0x10]
jmp 0x44552e
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x445517
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.004915c0
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 0x4456a1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4456af
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x44576a
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4bb600]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4bb600]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4bb600]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4bb600]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4bb600]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4bb600]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4bb600]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4bb600]
dec edi
jne 0x4456cd
pop edi
test esi, esi
je 0x445783
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4bb600]
inc edx
dec esi
jne 0x44576e
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x455342
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4d84d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x4553af
cmp dword [esi + 0x10], 0
je 0x4553af
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00499ee0
mov ebx, esp
test ebx, ebx
je 0x4553af
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1b8
call fcn.004315c7
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.00434a77
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004909b2
mov esp, ebp
pop ebp
ret 0x10

Function at 0x45e2a4
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 0x45e2c8
cmp dword [esi + 8], edi
jge 0x45e2c0
push esi
call fcn.0045c59d
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov ecx, dword [esi + 8]
xor edx, edx
test ecx, ecx
jle 0x45e2ee
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub ecx, 8
mov byte [ebp + edx + 8], al
inc edx
shr edi, 8
mov dword [esi + 0xc], edi
test ecx, ecx
jg 0x45e2d4
mov dword [esi + 8], ecx
jmp 0x45e306
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x45e2f9
xor eax, eax
jmp 0x45e301
mov cl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, cl
mov byte [ebp + edx + 8], al
inc edx
cmp edx, 4
jl 0x45e2ee
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 0x45e340
push str.zlib_corrupt
call fcn.0045c458
add esp, 4
jmp 0x45e37d
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x45e350
push str.read_past_buffer
jmp 0x45e336
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x45e367
push edi
push esi
call fcn.0045c467
pop ecx
pop ecx
test eax, eax
je 0x45e37d
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004915c0
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 0x461890
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4d84d0]
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 0x4618e0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4618da
shr eax, 8
cmp al, 2
jne 0x4618da
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004909b2
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.004909b2
mov esp, ebp
pop ebp
ret
Function at 0x46d640
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 + 0x154]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x46d6be
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x46d68e
pop esi
pop edi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push dword [ebp + 8]
call fcn.00478ce0
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.0046d330
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 0x46d8a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x190]
test eax, eax
je 0x46d8c9
push dword [esi + 0x11c]
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 0x46d8ff
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x4c1e70
push 2
push eax
call fcn.004939d5
push dword [esi + 0x118]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004939d5
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x530]
test esi, esi
je 0x46daa7
mov eax, dword [edi + 0x44]
test eax, eax
je 0x46daa7
push 0x46e830
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
push ecx
mov byte [ebp - 4], 0
push dword [eax + 0x30]
call fcn.00476240
add esp, 0xc
cmp byte [ebp - 4], 0
jne 0x46dab0
mov dword [edi + 0x530], 0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x46dab9
mov dword [eax], esi
cmp byte [esi + 0x178], 0
mov edi, dword [esi + 0x154]
jne 0x46daa7
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
or ecx, 0xffffffff
test eax, eax
cmove edi, ecx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46df10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x4d84d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4dbc20]
mov dword [ebp - 0xa4], 0x4020
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], 4
test eax, eax
jne 0x46dfba
push 0x9c
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00490e10
add esp, 0xc
mov dword [ebp - 0xa0], 0x9c
mov dword [ebp - 0x9c], 6
push 3
push 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x46dfae
mov dword [0x4dbc20], 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004909b2
mov esp, ebp
pop ebp
ret
mov dword [0x4dbc20], 1
jmp 0x46dfbf
cmp eax, 2
je 0x46e00e
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xa8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x46dff2
mov eax, dword [ebp - 0xa8]
cmp eax, dword [ebp - 0xa4]
jg 0x46e00e
push 4
lea eax, [ebp - 0xa4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004909b2
mov esp, ebp
pop ebp
ret
Function at 0x46e1a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4d84d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x8c], 2
mov ebx, dword [edi]
je 0x46e35b
cmp byte [edi + 0x1c1], 0
push esi
jne 0x46e351
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 0x46e22b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00478ce0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0046d330
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004909b2
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 0x46e27e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00478ce0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0046d330
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004909b2
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xe8]
push eax
lea esi, [edi + 0xb8]
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.0046e850
add esp, 0xc
test al, al
jne 0x46e2cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00478ce0
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0046d330
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004909b2
mov esp, ebp
pop ebp
ret
movdqu xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movdqu xmmword [edi + 0x58], xmm0
movdqu xmm0, xmmword [esi + 0x10]
movdqu xmmword [edi + 0x68], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0x78], xmm0
mov dword [edi + 0x80], eax
mov ax, word [esi + 0x2c]
mov word [edi + 0x84], ax
lea eax, [edi + 0x11c]
push eax
lea eax, [edi + 0xec]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0046e850
add esp, 0xc
test al, al
jne 0x46e351
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00478ce0
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0046d330
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004909b2
mov esp, ebp
pop ebp
ret
push edi
call fcn.0046de50
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004909b2
mov esp, ebp
pop ebp
ret
Function at 0x46eb60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4d84d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0x3d4], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x46ebbd
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0046d3d0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004909b2
mov esp, ebp
pop ebp
ret
push dword [esi + 0x3d8]
mov dword [ebp - 0x10], 1
call fcn.00475f70
push dword [esi + 0x3dc]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.00475f70
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x46ec2d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.0046d3d0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004909b2
mov esp, ebp
pop ebp
ret

Function at 0x46ec40
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]
movzx eax, byte [esi + 0x2e6]
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 0x46ec8b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00478ce0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0046d3d0
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0046d3d0
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x475f50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.004651b0
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.004a57b2

Function at 0x478790
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.0x4787a1
jmp dword [eax*4 + 0x478814]
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