joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4266e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481e68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d0
lea eax, [ebp - 0x1dc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1dc]
mov dword [ebp - 0x10], 0
movups xmmword [ebp - 0x24], xmm0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x426730
sub ecx, edx
lea eax, [ebp - 0x1dc]
push ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.00408700
push 0xb
push str.config.ini
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.00406d90
push 1
push 0x40
push 2
push eax
lea ecx, [ebp - 0xd8]
call fcn.00420230
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 2
cmp ecx, 0xf
jbe 0x4267ab
mov edx, dword [ebp - 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4267a1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4267a1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00435aee
add esp, 8
push dword [ebp + 8]
lea eax, [ebp - 0xd8]
mov dword [ebp - 0x14], 0
push eax
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
call fcn.0041f2f0
add esp, 8
lea ecx, [ebp - 0xd4]
call fcn.0041d5c0
test eax, eax
jne 0x4267f6
push eax
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0xd8]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0xd8]
call fcn.00421620
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x427be0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ecx]
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x427c3d
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x427c00
mov eax, dword [esi]
jmp 0x427d1b
cmp eax, 0x4e0
jb 0x427d1b
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x427c56
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x427ca1
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x428c50
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xorps xmm0, xmm0
push str.ntdll.dll
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
movups xmmword [esi + 0x24], xmm0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x428dbb
push edi
push str.Creating_ProcessInfo_n
push 3
call fcn.00428c40
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 8
push str.NtQueryInformationProcess
push ebx
call edi
push str.NtQuerySystemInformation
push ebx
mov dword [esi + 0x18], eax
call edi
push str.NtQueryInformationThread
push ebx
mov dword [esi + 0x1c], eax
call edi
cmp dword [esi + 0x18], 0
mov dword [esi + 0x20], eax
je 0x428db2
cmp dword [esi + 0x1c], 0
je 0x428db2
test eax, eax
je 0x428db2
push 0
mov dword [esi + 0xc], 0x10000
mov dword [esi + 4], 0
call fcn.00416680
add esp, 4
mov edx, 0xc
cmp eax, 0x3d
mov ecx, 0x15
cmovne ecx, edx
push str.NtDelayExecution
push ebx
mov dword [ebp - 4], ecx
call edi
add eax, dword [ebp - 4]
push str.NtWaitForSingleObject
push ebx
mov dword [esi + 0x24], eax
call edi
add eax, dword [ebp - 4]
push str.NtWaitForMultipleObjects
push ebx
mov dword [esi + 0x28], eax
call edi
add eax, dword [ebp - 4]
push str.NtSignalAndWaitForSingleObject
push ebx
mov dword [esi + 0x2c], eax
call edi
mov ebx, dword [ebp - 4]
add eax, ebx
mov dword [esi + 0x30], eax
call fcn.00416670
cmp eax, 0x3839
jb 0x428da3
push str.win32u.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x38], eax
test eax, eax
je 0x428da3
push str.NtUserMsgWaitForMultipleObjectsEx
push eax
call edi
add eax, ebx
mov dword [esi + 0x34], eax
push str.ProcessInfo_initialized_n
push 3
call fcn.00428c40
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4309f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482150
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4
push ebx
push esi
push edi
push 1
push 0x40
push 0x24
push dword [ebp + 8]
lea ecx, [ebp - 0xe0]
call fcn.0041b030
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xe0]
mov dword [ebp - 4], 0
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::good_void_const]
test al, al
jne 0x430a54
mov esi, 0x20000001
mov eax, str.Cant_open_file_n
jmp 0x430b90
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xe0]
call dword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
adc eax, dword [ebp - 0x24]
test eax, eax
jg 0x430a8d
jl 0x430a7e
cmp ecx, 0x1000
jae 0x430a8d
mov esi, 0x20000002
mov eax, str.Specified_file_is_too_small_n
jmp 0x430b90
push 0x496140
push 0x1000
call fcn.00435d82
mov edi, eax
add esp, 8
test edi, edi
je 0x430b86
push 0x1000
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xe0]
push 0
push 0
push 0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
push 0
push 0x1000
push edi
lea ecx, [ebp - 0xe0]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
lea ecx, [ebp - 0xd0]
call fcn.0041d5c0
test eax, eax
jne 0x430b06
push eax
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xe0]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov eax, 0x5a4d
push edi
cmp word [edi], ax
je 0x430b25
call fcn.00435d7d
add esp, 4
mov esi, 0x20000003
mov eax, str.Invalid_DOS_header_signature_n
jmp 0x430b90
mov eax, dword [edi + 0x3c]
cmp eax, 0x1000
jle 0x430b43
call fcn.00435d7d
add esp, 4
mov esi, 0x20000003
mov eax, str.Invalid_nt_header_offset_n
jmp 0x430b90
movzx ecx, word [eax + edi + 4]
mov esi, dword [eax + edi]
movzx ebx, word [eax + edi + 0x16]
mov dword [ebp - 0x10], ecx
call fcn.00435d7d
add esp, 4
cmp esi, 0x4550
jne 0x430b7a
mov eax, dword [ebp - 0x10]
movzx eax, ax
cmp eax, dword [ebp + 0xc]
jne 0x430b7a
test ebx, 0x2000
je 0x430b7a
xor esi, esi
jmp 0x430b9b
mov esi, 0x20000003
mov eax, str.Invalid_PE_header_n
jmp 0x430b90
mov esi, 0x20000004
mov eax, str.Memory_allocation_failed_n
push eax
push 1
call fcn.00428c40
add esp, 8
lea ecx, [ebp - 0xe0]
call fcn.0041b660
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4320f0
Capabilities:
Download url
Get common file path
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4822ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
lea eax, [ebp - 0x12c]
mov dword [ebp - 4], 1
push eax
push 0x104
mov dword [ebp - 0x10], 0x495d20
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x432150
push esi
sub ecx, edx
lea eax, [ebp - 0x12c]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00408700
cmp dword [ebp + 0x34], 0xf
lea edx, [ebp + 0x20]
mov byte [ebp - 4], 2
cmova edx, dword [ebp + 0x20]
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x432180
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00406d90
cmp dword [eax + 0x14], 0xf
jbe 0x43219b
mov eax, dword [eax]
cmp dword [ebp + 0x1c], 0xf
lea edx, [ebp - 0x10]
push edx
push 0
lea ecx, [ebp + 8]
cmova ecx, dword [ebp + 8]
push eax
push ecx
push 0
call sub.urlmon.dll_URLDownloadToFileA
mov ecx, dword [ebp - 0x14]
mov esi, eax
cmp ecx, 0xf
jbe 0x4321ed
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4321e3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4321e3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00435aee
add esp, 8
test esi, esi
jne 0x432200
push 0x495d4c
call fcn.00416060
add esp, 4
jmp 0x43223c
cmp esi, 0x8007000e
jne 0x432217
push str.Buffer_length_invalid__or_insufficient_memory_n
call fcn.00416060
add esp, 4
jmp 0x43223c
cmp esi, 0x800c0008
jne 0x43222e
push str.URL_is_invalid_n
call fcn.00416060
add esp, 4
jmp 0x43223c
push esi
push str.Other_error:__d_n
call fcn.00416060
add esp, 8
mov ecx, dword [ebp + 0x1c]
pop esi
cmp ecx, 0xf
jbe 0x43226d
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x432263
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4322a5
push ecx
push edx
call fcn.00435aee
add esp, 8
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0xf
jbe 0x4322b5
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4322ab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4322ab
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00435aee
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4355dc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x435603
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x435606
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004355b8
pop esi
leave
ret 8

Function at 0x436748
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x436787
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x436787
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x436787
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x436787
cmp dword [ecx + 0x74], 0xe
jbe 0x436787
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x440140
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x18
mov eax, dword [0x7a9080]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x44020b
lea eax, [esp + 4]
push eax
push esi
push 2
call fcn.0045b220
add esp, 0xc
test eax, eax
jne 0x44020b
lea eax, [esp + 8]
push eax
push esi
push 0x17
call fcn.0045b220
add esp, 0xc
test eax, eax
jne 0x44020b
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x440194
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.0045b1f0
add esp, 0xc
test eax, eax
je 0x4401c8
sub eax, esi
push eax
push 0x2e
push esi
call fcn.0045b1f0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4401ca
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x4401f6
mov al, byte [esi]
push eax
call fcn.0044e480
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x4401d8
pop edi
movzx eax, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004365e1
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
xor ecx, esp
call fcn.004365e1
add esp, 0x18
ret
Function at 0x449fb0
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x608], 0
je 0x449ff4
push 1
push edi
call fcn.0043be30
push dword [edi + 0x59c]
mov eax, dword [edi + 0x608]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.0043be30
add esp, 0x24
mov eax, esi
pop edi
pop esi
ret
mov edx, dword [esp + 0x10]
mov ecx, edx
sub ecx, 0
je 0x44a009
sub ecx, 1
je 0x44a009
sub ecx, 1
jne 0x44a03a
push dword [edi + 0x598]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea eax, [edx*2 + 0x498fb0]
push 1
add eax, edx
push 2
push eax
call esi
push dword [edi + 0x598]
push 1
push dword [esp + 0x30]
push dword [esp + 0x30]
call esi
add esp, 0x20
pop edi
xor eax, eax
pop esi
ret

Function at 0x44a740
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
mov eax, dword [0x7a9080]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push ebx
mov ebx, dword [esp + 0x114]
mov dword [esp + 8], eax
xor eax, eax
push ebp
mov ebp, dword [esp + 0x128]
mov ecx, dword [ebx + 0x424]
cmp edx, ecx
push esi
sete al
mov esi, 0x448
push edi
lea eax, [eax*4 + 0x420]
mov eax, dword [eax + ebx]
mov dword [esp + 0x10], eax
mov eax, 0x458
cmove esi, eax
mov eax, dword [ebx + 0x548]
add esi, ebx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x44a84e
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x438]
cmp dword [eax + ebx], 0x44a300
jne 0x44a84e
cmp dword [esi], 0
je 0x44a7d8
test edi, edi
je 0x44a84e
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.004599d0
add esp, 0x14
cmp eax, 0xffffffff
je 0x44a84e
test al, 1
je 0x44a84e
mov ecx, dword [esi]
test ecx, ecx
jne 0x44a82b
mov eax, dword [ebx]
mov eax, dword [eax + 0x90c]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x7a90d4]
mov edi, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x44a847
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x44a84e
add dword [esi + 8], eax
jmp 0x44a84e
mov dword [esi + 4], 0
push 0
push dword [esp + 0x130]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x44a8b7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x44a888
mov dword [ebp], 0
lea eax, [edi + 0x52]
jmp 0x44a8bc
push 0x100
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.004376c0
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.0044a040
mov eax, dword [ebx]
add esp, 0x18
mov dword [eax + 0xd44], esi
mov eax, 0x37
jmp 0x44a8b9
xor eax, eax
mov dword [ebp], edi
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004365e1
add esp, 0x10c
ret
Function at 0x44acf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x474], 0
je 0x44ad0d
push eax
call fcn.00444530
add esp, 4
test eax, eax
jne 0x44ad2c
xor al, al
ret
mov eax, dword [eax + 0x420]
cmp eax, 0xffffffff
je 0x44ad0a
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x44ad0a
mov al, 1
ret
Function at 0x44cab0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x44caca
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x499424
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
add esp, 8
test eax, eax
je 0x44cb13
test ebp, ebp
je 0x44cb04
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x44cb39
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44cb39
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x44cbef
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44cb56
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x7a90d4]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x44cbe5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x44cbe5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44cb88
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44cba0
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x44cbb0
test ebp, ebp
je 0x44cbdc
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x7a90d8]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x7a90d8]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x452090
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4520a4
mov eax, dword [eax]
mov eax, dword [eax + 0x78]
mov al, byte [eax + 0xe7]
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x4520b8
xor al, al
ret
push eax
push 0
call fcn.0044ac20
add esp, 8
mov al, 1
ret
Function at 0x457ef0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x34
mov eax, dword [0x7a9080]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [esp + 0x48]
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 6
push 1
push 2
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x18], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x4580d6
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [esp + 0x20], xmm0
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x18], eax
xor eax, eax
push 4
mov word [esp + 0x1a], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4580c4
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4580c4
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4580c4
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x4580c4
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x4580c4
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4580c4
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x4580c4
push ebx
push 0x49ace8
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.0044d150
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x458022
push 0
sub esi, ecx
lea eax, [esp + 0x28]
push esi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x4580c4
push 0
push 0xc
lea eax, [esp + 0x38]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x4580c4
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x458077
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x45807c
add ecx, 4
add edx, 4
sub esi, 4
jae 0x458066
cmp esi, 0xfffffffc
je 0x4580a9
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4580c4
cmp esi, 0xfffffffd
je 0x4580a9
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4580c4
cmp esi, 0xfffffffe
je 0x4580a9
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4580c4
cmp esi, 0xffffffff
je 0x4580a9
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x4580c4
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004365e1
add esp, 0x34
ret
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
mov ecx, dword [esp + 0x3c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004365e1
add esp, 0x34
ret