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

Disassembly:
push 0x10
mov eax, 0x4face4
call fcn.004d766c
xor ebx, ebx
lea ecx, [ebp - 0x10]
call fcn.004907c2
lea eax, [ebp - 0x14]
push str.rcmdhelper.exe
xor edi, edi
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.004065f0
pop ecx
pop ecx
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
jne 0x4c97db
cmp dword [0x55ac14], edi
je 0x4c97bb
push str.KDubaPushPop::_OpenUrlByRcmdHelper::rcmdhelper.exe_is_not_exsit
push ecx
call fcn.004022da
add esp, 4
call fcn.00402322
mov esi, eax
call fcn.0040234b
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004012f9
xor eax, eax
call fcn.004d7744
ret 4
lea eax, [ebp - 0x18]
push str.dataopen_url_tool_cfg.xml
push eax
lea ecx, [ebp - 0x10]
call fcn.004065f0
pop ecx
pop ecx
mov byte [ebp - 4], 2
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x4c9844
cmp dword [0x55ac14], edi
je 0x4c981d
push str.KDubaPushPop::_OpenUrlByRcmdHelper::open_url_tool_cfg.xml_is_not_exsit
push ecx
call fcn.004022da
add esp, 4
call fcn.00402322
mov esi, eax
call fcn.0040234b
xor esi, esi
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, esi
jmp 0x4c97d3
mov eax, dword [0x55a320]
mov ecx, 0x55a320
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x1c]
push str._openurl:1__from:dbpushpop__url:__s_
call fcn.00401a17
mov edi, dword [ebp - 0x1c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
mov edx, edi
call fcn.0049336c
mov esi, eax
neg esi
sbb esi, esi
lea eax, [edi - 0x10]
inc esi
call fcn.004012f9
jmp 0x4c981f
Function at 0x4ca143
Capabilities:
Create process on windows

Disassembly:
push 0x18
mov eax, 0x4f8185
call fcn.004d766c
cmp dword [0x55ac14], 0
mov edi, 0x5115d8
je 0x4ca1a7
push str.OpenUrlByUserToken
push 0x511610
push str.KDubaPushPop::_OpenUrlByCmpp
push 0x5115dc
lea eax, [ebp - 0x10]
push eax
push edi
mov dword [ebp - 0x10], 0x12d
call fcn.004022da
call fcn.00402322
call fcn.00423ea4
call fcn.00402322
call fcn.00402322
call fcn.00402322
call fcn.00402322
mov esi, eax
call fcn.0040234b
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x4ca1b9
xor eax, eax
jmp 0x4ca38c
xor ebx, ebx
lea ecx, [ebp - 0x14]
call fcn.00490637
and dword [ebp - 4], ebx
mov eax, dword [0x55a320]
mov ecx, 0x55a320
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
push dword [esi]
lea eax, [ebp - 0x10]
push str._url:__s_
call fcn.00401a17
cmp dword [0x55ac14], 0
pop ecx
pop ecx
mov ebx, 0x5115dc
je 0x4ca2b0
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push str.OpenUrlByUserToken::
push 0x511610
push str.KDubaPushPop::_OpenUrlByCmpp
push ebx
push eax
push edi
push ecx
mov dword [ebp - 0x18], 0x137
call fcn.004022da
add esp, 4
call fcn.00402322
call fcn.00423ea4
call fcn.00402322
call fcn.00402322
call fcn.00402322
call fcn.00402322
call fcn.00402322
mov esi, eax
call fcn.0040234b
cmp dword [0x55ac14], 0
je 0x4ca2ad
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push str.OpenUrlByUserToken::
push 0x511610
push str.KDubaPushPop::_OpenUrlByCmpp
push ebx
push eax
push edi
push ecx
mov dword [ebp - 0x18], 0x138
call fcn.004022da
add esp, 4
call fcn.00402322
call fcn.00423ea4
call fcn.00402322
call fcn.00402322
call fcn.00402322
call fcn.00402322
call fcn.00402322
mov esi, eax
call fcn.0040234b
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.0049336c
test eax, eax
je 0x4ca371
mov eax, dword [esi]
push 1
xor ecx, ecx
push ecx
push ecx
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [0x55ac14], 0
cdq
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
je 0x4ca362
test edx, edx
jl 0x4ca2f9
jg 0x4ca2f3
cmp eax, 0x20
jbe 0x4ca2f9
mov byte [ebp + 0xb], 1
jmp 0x4ca2fd
mov byte [ebp + 0xb], 0
mov esi, dword [esi]
lea eax, [ebp + 0xb]
push eax
push str.___result:
push esi
push str.ShellExecute_
push 0x511610
push str.KDubaPushPop::_OpenUrlByCmpp
push ebx
lea eax, [ebp - 0x18]
push eax
push edi
push ecx
mov dword [ebp - 0x18], 0x13e
call fcn.004022da
add esp, 4
call fcn.00402322
call fcn.00423ea4
call fcn.00402322
call fcn.00402322
call fcn.00402322
call fcn.00402322
call fcn.00402322
call fcn.00402322
call fcn.004333be
mov esi, eax
call fcn.0040234b
xor esi, esi
cmp dword [ebp - 0x1c], esi
jl 0x4ca374
jg 0x4ca371
cmp dword [ebp - 0x20], 0x20
jbe 0x4ca374
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, esi
call fcn.004d7744
ret 4
Function at 0x4cbc0f
Capabilities:
Create thread

Disassembly:
push 0xc
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
xor ecx, ecx
cmp eax, ecx
jne 0x4cbc20
xor eax, eax
ret
mov edx, dword [esp + 4]
push ecx
push ecx
push eax
push 0x4cb372
mov dword [eax], edx
mov edx, dword [esp + 0x18]
push ecx
push ecx
mov dword [eax + 8], edx
mov dword [eax + 4], 0x4cb846
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
ret
Function at 0x4cc9c6
Capabilities:
Check if file exists

Disassembly:
push 0x44
mov eax, 0x500d48
call fcn.004d766c
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 0x6c8], esi
jne 0x4cc9f3
push dword [edi + 0x6b8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4cca83
mov eax, dword [edi + 0x6b4]
sub eax, 0x10
call fcn.00401311
add eax, 0x10
mov dword [ebp - 0x14], eax
push str..lnk
lea ebx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.004253df
lea eax, [ebp - 0x50]
push eax
call fcn.00455f6b
lea eax, [edi + 0x6b8]
lea edi, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00402a4c
mov edi, dword [ebp - 0x14]
push edi
lea ecx, [ebp - 0x50]
call fcn.00455fe4
test eax, eax
jne 0x4cca4f
lea esi, [ebp - 0x50]
call fcn.00455fce
lea eax, [edi - 0x10]
jmp 0x4cca7e
mov edi, dword [ebp + 0xc]
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.USER32.dll_SetRect]
lea ebx, [ebp - 0x50]
call fcn.0045669d
test eax, eax
mov esi, ebx
jne 0x4cca8d
call fcn.00456157
lea esi, [ebp - 0x50]
call fcn.00455fce
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004012f9
xor al, al
call fcn.004d7744
ret 8
call fcn.00456157
mov eax, dword [edi + 8]
sub eax, dword [edi]
test eax, eax
jle 0x4cca70
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
test eax, eax
jle 0x4cca70
lea esi, [ebp - 0x1c]
call fcn.00455e66
test eax, eax
je 0x4ccac2
mov eax, dword [ebp - 0x1c]
add dword [edi], eax
add dword [edi + 8], eax
mov eax, dword [ebp - 0x18]
add dword [edi + 4], eax
add dword [edi + 0xc], eax
add dword [edi + 0xc], 0xfffffff1
push 0
push 0xfffffffffffffff1
push edi
call dword [sym.imp.USER32.dll_InflateRect]
fild dword [edi]
mov esi, dword [ebp + 8]
fdiv dword [esi + 0x6cc]
call fcn.004d7420
fild dword [edi + 8]
mov dword [edi], eax
fdiv dword [esi + 0x6cc]
call fcn.004d7420
fild dword [edi + 4]
mov dword [edi + 8], eax
fdiv dword [esi + 0x6cc]
call fcn.004d7420
fild dword [edi + 0xc]
mov dword [edi + 4], eax
fdiv dword [esi + 0x6cc]
call fcn.004d7420
lea esi, [ebp - 0x50]
mov dword [edi + 0xc], eax
call fcn.00455fce
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004012f9
mov al, 1
jmp 0x4cca85
Function at 0x4ccc5d
Capabilities:
Check if file exists

Disassembly:
push 0x17c
mov eax, 0x4fabec
call fcn.004d766c
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4ccc7d
xor al, al
call fcn.004d7744
ret 4
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ccc73
push 0x517db0
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.MSVCR80.dll__wfopen_s]
add esp, 0xc
cmp dword [ebp - 0x10], esi
je 0x4ccc73
lea eax, [ebp - 0x188]
call fcn.0046791b
mov dword [ebp - 4], esi
mov ebx, dword [ebp - 0x10]
call fcn.00467af3
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.MSVCR80.dll_fclose]
xor ebx, ebx
cmp esi, ebx
pop ecx
lea eax, [ebp - 0x188]
je 0x4ccce1
or dword [ebp - 4], 0xffffffff
push eax
call fcn.00467a2f
jmp 0x4ccc73
push ebx
call fcn.00462618
mov esi, eax
cmp esi, ebx
jne 0x4cccf5
lea eax, [ebp - 0x188]
jmp 0x4cccd5
push str.shortcuts
call fcn.00462618
cmp eax, ebx
je 0x4ccced
push 0x525064
call fcn.00462618
push eax
push edi
call fcn.004ccd9b
cmp al, bl
je 0x4ccced
push str.shadow
mov eax, esi
call fcn.00462618
cmp eax, ebx
jne 0x4ccd3f
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x188]
push eax
call fcn.00467a2f
mov al, bl
jmp 0x4ccc75
lea ecx, [ebp + 8]
push ecx
push 0x50c094
mov dword [ebp + 8], ebx
call fcn.004626a6
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov bl, 1
jmp 0x4ccd28
Function at 0x4cea0f
Capabilities:
Check if file exists

Disassembly:
push 0x44
mov eax, 0x500d1d
call fcn.004d766c
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 0x6c8], esi
jne 0x4cea3c
push dword [edi + 0x6b8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ceacc
mov eax, dword [edi + 0x6b4]
sub eax, 0x10
call fcn.00401311
add eax, 0x10
mov dword [ebp - 0x14], eax
push str..lnk
lea ebx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.004253df
lea eax, [ebp - 0x50]
push eax
call fcn.00455f6b
lea eax, [edi + 0x6b8]
lea edi, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00402a4c
mov edi, dword [ebp - 0x14]
push edi
lea ecx, [ebp - 0x50]
call fcn.00455fe4
test eax, eax
jne 0x4cea98
lea esi, [ebp - 0x50]
call fcn.00455fce
lea eax, [edi - 0x10]
jmp 0x4ceac7
mov edi, dword [ebp + 0xc]
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.USER32.dll_SetRect]
lea ebx, [ebp - 0x50]
call fcn.0045669d
test eax, eax
mov esi, ebx
jne 0x4cead6
call fcn.00456157
lea esi, [ebp - 0x50]
call fcn.00455fce
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004012f9
xor al, al
call fcn.004d7744
ret 8
call fcn.00456157
mov eax, dword [edi + 8]
sub eax, dword [edi]
test eax, eax
jle 0x4ceab9
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
test eax, eax
jle 0x4ceab9
lea esi, [ebp - 0x1c]
call fcn.00455e66
test eax, eax
je 0x4ceb0b
mov eax, dword [ebp - 0x1c]
add dword [edi], eax
add dword [edi + 8], eax
mov eax, dword [ebp - 0x18]
add dword [edi + 4], eax
add dword [edi + 0xc], eax
add dword [edi + 0xc], 0xfffffff1
push 0
push 0xfffffffffffffff1
push edi
call dword [sym.imp.USER32.dll_InflateRect]
fild dword [edi]
mov esi, dword [ebp + 8]
fdiv dword [esi + 0x6cc]
call fcn.004d7420
fild dword [edi + 8]
mov dword [edi], eax
fdiv dword [esi + 0x6cc]
call fcn.004d7420
fild dword [edi + 4]
mov dword [edi + 8], eax
fdiv dword [esi + 0x6cc]
call fcn.004d7420
fild dword [edi + 0xc]
mov dword [edi + 4], eax
fdiv dword [esi + 0x6cc]
call fcn.004d7420
lea esi, [ebp - 0x50]
mov dword [edi + 0xc], eax
call fcn.00455fce
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004012f9
mov al, 1
jmp 0x4ceace
Function at 0x4cf356
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5044c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5550ec]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.9E17783B_FC0D_4152_BFB5_91D4F1C24A4CLieShow
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x2c4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4cf3c1
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00402cc5
mov dword [esp + 0x38], ebx
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.00452fe5
lea edi, [esi + 0x2bc]
push edi
lea eax, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.004534d9
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
jne 0x4cf432
lea eax, [esi + 0x2c0]
push str.poptype_empty
push eax
call fcn.00402d02
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call fcn.00453058
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, ebx
jmp 0x4cf3ac
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x10]
lea edi, [esi + 0x2b8]
call fcn.00402a4c
push ebx
mov ecx, esi
call fcn.00438bf3
mov ebx, eax
jmp 0x4cf411

Function at 0x4d5aa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eaf67
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5550ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi], vtable.Json::StyledWriter.0
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x14]
mov dword [ebp - 4], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [esi + 0x4c], 0x4a
mov dword [esi + 0x50], 3
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4d6874
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x5550ec]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004d67b3
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4d68c3
cmp dword [ebp - 0x1c], 5
jb 0x4d68db
jmp 0x4d68d7
cmp dword [ebp - 0x10], 1
jne 0x4d68db
cmp dword [ebp - 0x1c], 4
ja 0x4d68d7
jne 0x4d68db
cmp dword [ebp - 0x18], 0
jbe 0x4d68db
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x50718c
call fcn.00435fb3
test eax, eax
jge 0x4d68fc
mov byte [0x55ac7c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004d6e66
add ebp, 0x78
leave
ret

Function at 0x4d6aae
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x55a3a4], 0
push esi
jne 0x4d6a21
call fcn.004d694c
test eax, eax
je 0x4d6a64
mov eax, dword [0x55a3a4]
cmp eax, 1
jne 0x4d6a42
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4d6a64
pop esi
ret
push eax
call dword [0x55a3ac]
test eax, eax
jne 0x4d6aac
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4d6a68
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x55a3a4]
call dword [0x55a3ac]
mov edi, eax
test edi, edi
je 0x4d6a8f
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4d6aab
lea edi, [esi + 0xff0]
push esi
push dword [0x55a3a4]
call dword [0x55a3a8]
add esi, 0x10
cmp esi, edi
jb 0x4d6a95
mov eax, esi
pop edi
pop esi
ret
jmp 0x4d6a0e

Function at 0x4d7b28
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5550ec]
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 0x4d7b69
cmp byte [ebp - 0x194], 2
jne 0x4d7b63
cmp byte [ebp - 0x193], 2
je 0x4d7b6c
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d6e66
leave
ret

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

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4df89a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret
Function at 0x4df9bb
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x4df9db
push dword [esi + 0xf4]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x4dfa16
cmp eax, 2
jg 0x4dfa16
imul eax, eax, 3
push edi
push dword [esi + 0xf0]
mov edi, dword [sym.imp.MSVCR80.dll_fwrite]
push 1
add eax, 0x507f80
push 2
push eax
call edi
push dword [esi + 0xf0]
push 1
push dword [esp + 0x24]
push dword [esp + 0x24]
call edi
add esp, 0x20
pop edi
xor eax, eax
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x12c]
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
and dword [edi], 0
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x4dfc4e
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x4dfc28
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x4dfc4d
push ebx
push esi
call fcn.004e8d99
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.004dfb48
mov eax, dword [esi]
mov dword [eax + 0x855c], ebx
add esp, 0x14
mov dword [edi], 0x37
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret
Function at 0x4e02fd
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x5550ec]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
mov esi, dword [ebp + 0x98]
cmp dword [esi + 0x198], 0
mov ebx, dword [esi]
push edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], ebx
jne 0x4e041a
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x9c]
mov edi, 0x80
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4e037a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004e8d99
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004dfb48
add esp, 0x18
jmp 0x4e0421
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x9c]
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4e03ad
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004e8d99
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x4e036c
lea edi, [esi + 0xc8]
lea ebx, [esi + 0x9a]
lea esi, [ebp - 0x74]
call fcn.004e02c4
test eax, eax
jne 0x4e03e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004e8d99
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
jmp 0x4e036d
mov eax, dword [ebp - 0x78]
lea edi, [eax + 0xfc]
lea ebx, [eax + 0xcc]
lea esi, [ebp + 0xc]
call fcn.004e02c4
test eax, eax
jne 0x4e0417
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004e8d99
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x4e03dd
mov esi, dword [ebp - 0x78]
push esi
call fcn.004e0275
pop ecx
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d6e66
add ebp, 0x90
leave
ret

Function at 0x4e0439
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x308]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x4e047e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004e8d99
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004dfad5
add esp, 0x14
jmp 0x4e048b
push str.TCP_NODELAY_set_n
push esi
call fcn.004dfad5
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x4e08e2
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x520]
cmp eax, 0xffffffff
push esi
je 0x4e0935
mov ecx, dword [ecx + 0x514]
mov ecx, dword [ecx]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
je 0x4e0935
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x4e090f
mov dword [ecx], eax
cmp dword [eax + 0x144], 0
mov esi, dword [eax + 0x12c]
jne 0x4e0935
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4e0935
mov eax, esi
jmp 0x4e0938
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x4e1a06
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
and dword [eax], 0
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
mov dword [ebp - 8], eax
jne 0x4e1b78
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
mov dword [ebp - 0xc], esi
je 0x4e1b5d
push ebx
push edi
jmp 0x4e1a4e
mov esi, dword [ebp - 0xc]
cmp dword [esi + 4], 2
jne 0x4e1af1
cmp dword [esi + 0x18], 0
je 0x4e1af1
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x4e1af1
push 0x10
pop edi
cmp eax, edi
jb 0x4e1af1
push 0x20
call dword [0x555110]
mov ebx, eax
xor eax, eax
cmp ebx, eax
pop ecx
je 0x4e1b01
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov ecx, dword [esi + 0xc]
push edi
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x1c], eax
call dword [0x555110]
test eax, eax
pop ecx
mov dword [ebx + 0x18], eax
je 0x4e1b0a
mov esi, dword [esi + 0x18]
mov edi, eax
mov eax, dword [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4e1ad8
push eax
call dword [0x55511c]
test eax, eax
pop ecx
mov dword [ebx + 0x14], eax
je 0x4e1b1a
cmp dword [ebp - 4], 0
jne 0x4e1ae1
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4e1aeb
mov dword [eax + 0x1c], ebx
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
mov dword [ebp - 0xc], esi
jne 0x4e1a4b
jmp 0x4e1b33
mov dword [ebp - 8], 8
jmp 0x4e1b33
push ebx
mov dword [ebp - 8], 8
call dword [0x555114]
jmp 0x4e1b32
push dword [ebx + 0x18]
mov dword [ebp - 8], 8
call dword [0x555114]
push ebx
call dword [0x555114]
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 0x10], esi
pop edi
pop ebx
je 0x4e1b45
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], esi
je 0x4e1b58
push dword [ebp - 4]
call fcn.004e19ca
pop ecx
mov dword [ebp - 4], esi
jmp 0x4e1b6c
cmp dword [ebp - 4], esi
jne 0x4e1b6c
mov eax, 0x2af9
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop esi
leave
ret