joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462630
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x6680c8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x703580]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x703580]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x7c]
mov esi, dword [esp + 0x80]
mov ebp, dword [esp + 0x88]
push 0x1c
xor ebx, ebx
push str.boost::filesystem::copy_file
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00408e00
mov eax, 8
mov dword [esp + 0x74], ebx
cmp dword [esi + 0x14], eax
jb 0x4626a8
mov ecx, dword [esi]
jmp 0x4626aa
mov ecx, esi
cmp dword [edi + 0x14], eax
jb 0x4626b3
mov eax, dword [edi]
jmp 0x4626b5
mov eax, edi
xor edx, edx
cmp dword [esp + 0x84], ebx
sete dl
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4626df
cmp ebp, ebx
je 0x46271f
mov dword [ebp], ebx
call fcn.00467c40
mov dword [ebp + 4], eax
jmp 0x46271f
call fcn.00467c40
cmp ebp, ebx
jne 0x462711
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
push esi
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x44]
call fcn.00461700
push 0x6f29a8
lea ecx, [esp + 0x34]
push ecx
call fcn.0046abf2
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp], eax
mov dword [ebp + 4], esi
cmp dword [esp + 0x28], 0x10
jb 0x462733
mov edx, dword [esp + 0x14]
push edx
call fcn.00469cdd
add esp, 4
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00469ae8
add esp, 0x64
ret
Function at 0x462b80
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x6681c8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x703580]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x703580]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
xor ebx, ebx
push ebx
push ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
cmp esi, ebx
jne 0x462bdb
mov esi, 1
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045adfe
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
push 0x1f
push str.boost::filesystem::current_path
lea ecx, [esp + 0x28]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00408e00
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push ecx
push edi
push esi
mov byte [esp + 0x58], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
sete dl
movzx eax, dl
push eax
call fcn.004619a0
add esp, 0xc
cmp dword [esp + 0x34], 0x10
jb 0x462c5c
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00469cdd
add esp, 4
xor edx, edx
mov dword [ebp + 0x14], 7
mov dword [ebp + 0x10], ebx
mov word [ebp], dx
mov byte [esp + 0x48], 2
call fcn.0045c5f0
mov eax, edi
lea edx, [eax + 2]
jmp 0x462c80
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x462c80
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, ebp
call fcn.00443cc6
push edi
call fcn.0046ac3e
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00469ae8
add esp, 0x38
ret

Function at 0x462cd0
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x6681f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x703580]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x703580]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
push 0x1f
push str.boost::filesystem::current_path
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.00408e00
cmp dword [esi + 0x14], 8
mov dword [esp + 0x34], 0
jb 0x462d3f
mov eax, dword [esi]
jmp 0x462d41
mov eax, esi
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
sete dl
movzx eax, dl
push eax
call fcn.00461ba0
add esp, 0x10
cmp dword [esp + 0x20], 0x10
jb 0x462d74
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00469cdd
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00469ae8
add esp, 0x2c
ret
Function at 0x464480
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x6685e0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x703580]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x703580]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, dword [esp + 0x54]
cmp dword [edi + 0x14], 8
mov esi, dword [esp + 0x58]
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x1c], esi
jb 0x4644cc
mov eax, dword [edi]
jmp 0x4644ce
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4644ec
push esi
push edi
push ebp
call fcn.00462350
add esp, 0xc
jmp 0x46463f
test ebx, 0x400
je 0x4645fb
cmp dword [edi + 0x14], 8
jb 0x464502
mov edx, dword [edi]
jmp 0x464504
mov edx, edi
xor eax, eax
mov word [esp + 0x20], ax
mov eax, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x464520
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.0042db17
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], 0
jae 0x464551
lea eax, [esp + 0x20]
push 0
push 0x2000000
push 3
push 0
push 7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x14], esi
cmp dword [esp + 0x34], 8
mov byte [esp + 0x48], 2
jb 0x464586
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00469cdd
add esp, 4
xor edx, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], dx
cmp esi, 0xffffffff
jne 0x4645b6
mov eax, dword [esp + 0x1c]
push eax
push edi
push ebp
call fcn.00462350
add esp, 0xc
jmp 0x46463f
push edi
call fcn.004601b0
add esp, 4
test al, al
jne 0x4645e8
push ebx
push edi
call fcn.00461f90
add esp, 8
push esi
mov dword [ebp], 9
mov dword [ebp + 4], eax
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x46463f
push esi
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x46460d
mov dword [esi], 0
call fcn.00467c40
mov dword [esi + 4], eax
push ebx
push edi
mov dword [esp + 0x1c], 3
test bl, 0x10
jne 0x464624
mov dword [esp + 0x1c], 2
call fcn.00461f90
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esp, 8
mov dword [ebp], ecx
mov dword [ebp + 4], edx
mov eax, ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00469ae8
add esp, 0x38
ret
Function at 0x464660
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x18]
cmp dword [esi + 0x14], 8
jb 0x464673
mov eax, dword [esi]
jmp 0x464675
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x46469e
mov eax, dword [esp + 0x1c]
push eax
push esi
mov esi, dword [esp + 0x1c]
push esi
call fcn.00462350
add esp, 0xc
mov eax, esi
pop esi
pop ebx
add esp, 8
ret
push edi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x4646b5
mov dword [edi], 0
call fcn.00467c40
mov dword [edi + 4], eax
pop edi
test ebx, 0x400
je 0x4646df
push esi
call fcn.004601b0
add esp, 4
push ebx
push esi
mov dword [esp + 0x10], 4
test al, al
jne 0x4646f6
mov dword [esp + 0x10], 9
jmp 0x4646f6
push ebx
push esi
mov dword [esp + 0x10], 3
test bl, 0x10
jne 0x4646f6
mov dword [esp + 0x10], 2
call fcn.00461f90
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
add esp, 8
pop esi
mov dword [eax + 4], ecx
mov dword [eax], edx
pop ebx
add esp, 8
ret
Function at 0x468e40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x668f58
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x703580]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x24]
push edi
call fcn.0046957a
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
xor ebx, ebx
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push ebx
add edi, 0x14
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edi
mov dword [esp + 0x28], ebx
mov byte [ecx], bl
call fcn.00408d10
mov dword [esi + 0x30], vtable.boost::exception.0
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0xffffffff
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x468ef0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x668f90
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x703580]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.0046957a
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push 0
lea edx, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov dword [esp + 0x24], 0
mov byte [ecx], 0
call fcn.00408d10
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
mov dword [esp + 0x18], 1
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x468f7e
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov edx, dword [edi + 0x40]
mov dword [esi + 0x40], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x469ae8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x703580]
jne 0x469af2
repz ret
jmp fcn.004727cc
Function at 0x48d62a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x703580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004721b5
and dword [ebp - 0x14], 0
cmp dword [0x7220d0], 0
mov dword [ebp - 0x18], eax
jne 0x48d6dd
push 0x67cbe0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x48d785
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x48d785
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x7220d0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x7220d4], eax
call edi
push eax
call esi
push 0x67cb94
push ebx
mov dword [0x7220d8], eax
call edi
push eax
call esi
mov dword [0x7220e0], eax
test eax, eax
je 0x48d6dd
push 0x67cb7c
push ebx
call edi
push eax
call esi
mov dword [0x7220dc], eax
mov eax, dword [0x7220dc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x48d736
cmp dword [0x7220e0], ecx
je 0x48d736
push eax
call esi
push dword [0x7220e0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x48d736
test ebx, ebx
je 0x48d736
call edi
test eax, eax
je 0x48d72d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x48d72d
test byte [ebp - 8], 1
jne 0x48d736
or dword [ebp + 0x10], 0x200000
jmp 0x48d769
mov eax, dword [0x7220d4]
cmp eax, dword [ebp - 0x18]
je 0x48d769
push eax
call esi
test eax, eax
je 0x48d769
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x48d769
mov eax, dword [0x7220d8]
cmp eax, dword [ebp - 0x18]
je 0x48d769
push eax
call esi
test eax, eax
je 0x48d769
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x7220d0]
call esi
test eax, eax
je 0x48d785
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x48d787
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00469ae8
leave
ret
Function at 0x495580
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x9eb4
call fcn.0046b300
mov eax, dword [0x703580]
xor eax, esp
mov dword [esp + 0x9eb0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
movzx ecx, cx
push ecx
push eax
push str.udp:___s:_d
mov ebx, edx
push 0xffffffffffffffff
lea edx, [esp + 0x4f08]
push 0x100
push edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
call fcn.0046ad85
lea eax, [esp + 0x4f10]
push 0
push eax
mov byte [esp + 0x5017], 0
call fcn.005e7220
mov edi, eax
add esp, 0x20
test edi, edi
js 0x495746
mov dword [esp + 0x48], 0x64
mov dword [esp + 0x4c], 0x18
mov dword [esp + 0x20], 0
lea eax, [esp + 0x38]
push eax
push edi
mov edx, 3
mov ecx, ebx
call fcn.00495140
add esp, 8
test eax, eax
js 0x49572b
lea ecx, [esp + 0x30]
push ecx
push 0
lea esi, [ebx + 0x2c]
push 0
mov dword [esi], 0
push esi
lea edx, [edi + 1]
mov dword [ebx + 0x30], edi
inc dword [esi]
push edx
mov dword [esp + 0x44], 2
mov dword [esp + 0x48], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x49572b
push esi
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x49572b
push 0
push 0x4ebc
lea eax, [esp + 0x5000]
push eax
push edi
call fcn.005e7390
mov esi, eax
add esp, 0x10
test esi, esi
jle 0x49572b
mov eax, dword [ebx]
lea ecx, [esp + 0x4ff8]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x38]
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], edx
push ecx
lea edx, [esp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [eax + 4]
push edx
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], 0x4ebc
call fcn.005f14f0
add esp, 0x10
test eax, eax
js 0x495746
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x4ff8]
push eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x20]
push edx
push ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], 0x4ebc
call fcn.005f14f0
add esp, 0x10
test eax, eax
js 0x495746
mov edx, dword [ebx + 0x134]
cmp edx, dword [esp + 0x44]
jne 0x49572b
mov eax, 4
cmp ax, word [esp + 0x3e]
je 0x49575e
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, 3
jl 0x495608
push edi
call fcn.005e6f40
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x9eb0]
xor ecx, esp
call fcn.00469ae8
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
push ecx
lea ebx, [esp + 0x4c]
call fcn.004952b0
push edi
mov esi, eax
call fcn.005e6f40
mov ecx, dword [esp + 0x9ec4]
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00469ae8
mov esp, ebp
pop ebp
ret
Function at 0x496790
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, 0x9d7c
call fcn.0046b300
mov eax, dword [0x703580]
xor eax, esp
mov dword [esp + 0x9d78], eax
mov ecx, dword [ebx]
push 0
push 0x4ebc
lea eax, [esp + 0x4ec4]
push eax
push ecx
call fcn.005e7390
add esp, 0x10
test eax, eax
jg 0x4967de
or eax, 0xffffffff
mov ecx, dword [esp + 0x9d78]
xor ecx, esp
call fcn.00469ae8
add esp, 0x9d7c
ret
mov ecx, dword [esi]
lea edx, [esp]
push edx
push eax
lea eax, [esp + 0x4ec4]
push eax
push ecx
call fcn.00494fc0
add esp, 0x10
test eax, eax
js 0x4967c6
movzx eax, word [esp + 6]
sub eax, 2
je 0x496850
sub eax, 2
jne 0x49687e
push edi
push esi
lea edi, [esp + 8]
mov eax, ebx
call fcn.00496660
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [ebx + 4]
imul edx, edx, 0xeb4
add edx, dword [esi + 0x18]
push eax
push ecx
push edx
call fcn.00494ed0
add esp, 0x14
pop edi
xor eax, eax
mov ecx, dword [esp + 0x9d78]
xor ecx, esp
call fcn.00469ae8
add esp, 0x9d7c
ret
push ebx
lea edx, [esp + 4]
mov ecx, esi
call fcn.00496590
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [ebx + 4]
imul eax, eax, 0xeb4
add eax, dword [esi + 0x18]
push ecx
push edx
push eax
call fcn.00494ed0
add esp, 0x14
mov ecx, dword [esp + 0x9d78]
xor ecx, esp
xor eax, eax
call fcn.00469ae8
add esp, 0x9d7c
ret
Function at 0x496da0
Capabilities:
Get socket status

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, eax
xor ebx, ebx
push edi
mov dword [esi + 0x138], ebx
mov dword [esi + 4], 8
cmp dword [esi + 0x10], ebx
jle 0x496e16
mov dword [esp + 0x10], ebx
xor ebp, ebp
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x14]
add eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x496df1
test dl, dl
je 0x496ded
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x496df1
add ecx, 2
add eax, 2
test dl, dl
jne 0x496dd1
xor eax, eax
jmp 0x496df6
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
sete cl
add dword [esp + 0x10], 0xeb4
inc ebx
add ebp, 0x24
lea ecx, [ecx + ecx + 2]
mov dword [edi + ebp - 0x1c], ecx
cmp ebx, dword [esi + 0x10]
jl 0x496dc3
lea eax, [esi + 0x1c]
push 0
push eax
call fcn.005e82e0
add esp, 8
mov ecx, esi
call fcn.00495b20
test eax, eax
jne 0x496f1b
lea edi, [esi + 0x2c]
push esi
call fcn.004962d0
push esi
call fcn.00496450
lea eax, [esi + 0x1c]
push 0
push eax
call fcn.005e82e0
add esp, 0x10
cmp dword [esi + 0x10], 0
mov dword [edi], 0
mov dword [esp + 0x10], 0
jle 0x496ea9
xor edx, edx
mov ebp, dword [edi]
xor eax, eax
test ebp, ebp
je 0x496e83
mov ecx, dword [esi + 0x14]
mov ebx, dword [edx + ecx]
lea ecx, [esi + 0x30]
cmp dword [ecx], ebx
je 0x496e83
inc eax
add ecx, 4
cmp eax, ebp
jb 0x496e77
cmp eax, ebp
jne 0x496e98
cmp ebp, 0x40
jae 0x496e98
mov ecx, dword [esi + 0x14]
mov ecx, dword [edx + ecx]
mov dword [esi + eax*4 + 0x30], ecx
inc dword [edi]
mov eax, dword [esp + 0x10]
inc eax
add edx, 0x24
mov dword [esp + 0x10], eax
cmp eax, dword [esi + 0x10]
jl 0x496e66
mov eax, dword [esi + 0x130]
lea edx, [esp + 0x14]
push edx
xor ebp, ebp
push ebp
push ebp
push edi
inc eax
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 0x2710
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x496f0c
mov dword [esp + 0x10], ebp
cmp dword [esi + 0x10], ebp
jle 0x496f0c
lea ebx, [ebx]
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + ebp]
push edi
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x496efb
mov ebx, dword [esi + 0x14]
add ebx, ebp
call fcn.00496790
mov eax, dword [esp + 0x10]
inc eax
add ebp, 0x24
mov dword [esp + 0x10], eax
cmp eax, dword [esi + 0x10]
jl 0x496ee0
mov ecx, esi
call fcn.00495b20
test eax, eax
je 0x496e36
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x497a40
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.0046b300
mov eax, dword [0x703580]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x497ac7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x497ac7
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x100
push edx
call fcn.0047969b
add esp, 0x10
test eax, eax
jns 0x497a9d
mov eax, 0x100
push 0
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00469ae8
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0xff
push edx
call fcn.0047969b
add esp, 0x10
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x497b55
call fcn.00497900
test eax, eax
jle 0x497b55
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
mov esi, eax
push 1
lea eax, [esp + 0x28]
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00469ae8
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.00469ae8
add esp, 0x108
ret

Function at 0x497bc0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
je 0x497be2
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
sub esi, eax
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc eax
or cl, dl
dec edi
jne 0x497bd6
pop esi
movzx eax, cl
pop edi
ret

Function at 0x497ec0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x703580]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x497f12
mov eax, dword [esp]
cmp al, 2
jne 0x497f0c
shr eax, 8
cmp al, 2
jne 0x497f0c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00469ae8
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.00469ae8
add esp, 0x194
ret